diff --git a/backend/controllers/lnd/channels.js b/backend/controllers/lnd/channels.js index 5f35b7ad..7e70360d 100644 --- a/backend/controllers/lnd/channels.js +++ b/backend/controllers/lnd/channels.js @@ -140,7 +140,7 @@ export const postChannel = (req, res, next) => { options.form.target_conf = trans_type_value; } else if (trans_type === '2') { - options.form.sat_per_byte = trans_type_value; + options.form.sat_per_vbyte = trans_type_value; } if (commitment_type) { options.form.commitment_type = commitment_type; @@ -171,8 +171,8 @@ export const closeChannel = (req, res, next) => { if (req.query.target_conf) { options.url = options.url + '&target_conf=' + req.query.target_conf; } - if (req.query.sat_per_byte) { - options.url = options.url + '&sat_per_byte=' + req.query.sat_per_byte; + if (req.query.sat_per_vbyte) { + options.url = options.url + '&sat_per_vbyte=' + req.query.sat_per_vbyte; } logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Closing Channel Options URL', data: options.url }); request.delete(options); diff --git a/backend/controllers/lnd/transactions.js b/backend/controllers/lnd/transactions.js index cb715822..2d23ba28 100644 --- a/backend/controllers/lnd/transactions.js +++ b/backend/controllers/lnd/transactions.js @@ -30,7 +30,7 @@ export const postTransactions = (req, res, next) => { options.form = { amount: amount, addr: address, - sat_per_byte: fees, + sat_per_vbyte: fees, target_conf: blocks }; if (sendAll) { diff --git a/backend/controllers/lnd/wallet.js b/backend/controllers/lnd/wallet.js index be5a7296..800cde3a 100644 --- a/backend/controllers/lnd/wallet.js +++ b/backend/controllers/lnd/wallet.js @@ -120,7 +120,7 @@ export const getUTXOs = (req, res, next) => { }); }; export const bumpFee = (req, res, next) => { - const { txid, outputIndex, targetConf, satPerByte } = req.body; + const { txid, outputIndex, targetConf, satPerVByte } = req.body; logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Wallet', msg: 'Bumping Fee..' }); options = common.getOptions(req); if (options.error) { @@ -135,8 +135,8 @@ export const bumpFee = (req, res, next) => { if (targetConf) { options.form.target_conf = targetConf; } - else if (satPerByte) { - options.form.sat_per_byte = satPerByte; + else if (satPerVByte) { + options.form.sat_per_vbyte = satPerVByte; } options.form = JSON.stringify(options.form); request.post(options).then((body) => { diff --git a/frontend/190.2c3aaa03801c7b66.js b/frontend/190.2c3aaa03801c7b66.js deleted file mode 100644 index 895893ab..00000000 --- a/frontend/190.2c3aaa03801c7b66.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[190],{39190(AC,ut,y){y.d(ut,{LNDModule:()=>NC});var _=y(72200),ie=y(38132),w=y(43694),dt=y(9881),e=y(73664),V=y(67575),f=y(52920);function ht(t,s){1&t&&e.nrm(0,"mat-progress-bar",3)}let Be=(()=>{var t;class s{constructor(i){this.router=i,this.loading=!1,this.router.events.subscribe(o=>{switch(!0){case o instanceof w.Z:this.loading=!0;break;case o instanceof w.wF:case o instanceof w.j5:case o instanceof w.L6:this.loading=!1}})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lnd-root"]],standalone:!1,decls:4,vars:1,consts:[["outlet","outlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,ht,1,0,"mat-progress-bar",2),e.nrm(2,"router-outlet",null,0),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",a.loading))},dependencies:[_.bT,V.HM,f.DJ,f.sA,f.UI,w.n3],encapsulation:2,data:{animation:[dt.E]}}))}return t(),s})();var h=y(21413),g=y(56977),ge=y(53993),U=y(5964),Oe=y(90614),x=y(45383),c=y(4416),H=y(79647),F=y(63536),r=y(2615),D=y(98570),L=y(59640),K=y(11747),$=y(82571),O=y(20060),_t=y(22598),k=y(25596),Ce=y(82885),oe=y(12629),Se=y(59115),j=y(16038),A=y(96850),G=y(96695),R=y(2042),u=y(19295),E=y(96183),Y=y(51585),T=y(190),d=y(89417),N=y(88834),M=y(33746),C=y(69588),X=y(23029),he=y(30450),ee=y(40455),te=y(89587),ae=y(56114);function ft(t,s){1&t&&(e.j41(0,"span",32),e.EFF(1,"= "),e.k0s())}function gt(t,s){if(1&t&&(e.j41(0,"span",33),e.nrm(1,"fa-icon",34),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Ct(t,s){if(1&t&&e.nrm(0,"span",35),2&t){const n=e.XpG();e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function yt(t,s){if(1&t&&(e.j41(0,"mat-option",36),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(e.bMT(2,2,n))}}function bt(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.invoiceError)}}function Ft(t,s){if(1&t&&(e.j41(0,"div",37),e.nrm(1,"fa-icon",38),e.DNE(2,bt,2,1,"span",39),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.invoiceError)}}let xt=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.store=a,this.decimalPipe=l,this.commonService=p,this.actions=m,this.faExclamationTriangle=x.zpE,this.convertedCurrency=null,this.memo="",this.isAmp=!1,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=c.md,this.timeUnitEnum=c.F7,this.timeUnits=c.SY,this.selTimeUnit=c.F7.SECS,this.invoiceError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(i=>i.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===i.payload.action&&(this.invoiceError=i.payload.message,i.payload.status===c.wn.ERROR&&(this.invoiceError=i.payload.message),i.payload.status===c.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(i){this.invoiceError="";let o=0;o=this.expiry?this.selTimeUnit!==c.F7.SECS?this.commonService.convertTime(this.expiry,this.selTimeUnit,c.F7.SECS):this.expiry:c.It,this.store.dispatch((0,T.VK)({payload:{uiMessage:c.MZ.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:o,is_amp:this.isAmp,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.isAmp=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=c.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onTimeUnitChange(i){this.expiry&&this.selTimeUnit!==i.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,i.value)),this.selTimeUnit=i.value}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(L.il),e.rXU(_.QX),e.rXU($.h),e.rXU(K.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-create-invoices"]],standalone:!1,decls:55,vars:20,consts:[["addInvoiceForm","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","name","memo",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start end"],["matInput","","type","number","name","invoiceValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxFlex","24","fxLayoutAlign","start end"],["matInput","","type","number","name","expiry",3,"ngModelChange","step","min","ngModel"],["name","timeUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"ml-2"],["fxFlex","49","fxLayoutAlign","start start"],["color","primary","name","private",3,"ngModelChange","ngModel"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["color","primary","name","amp",3,"ngModelChange","ngModel"],["matTooltip","Atomic multipath payment invoice","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Create Invoice"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0)(11,"mat-form-field",9)(12,"mat-label"),e.EFF(13,"Memo"),e.k0s(),e.j41(14,"input",10),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.memo,m)||(a.memo=m),r.Njj(m)}),e.k0s()(),e.j41(15,"mat-form-field",11)(16,"mat-label"),e.EFF(17,"Amount"),e.k0s(),e.j41(18,"input",12),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.invoiceValue,m)||(a.invoiceValue=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onInvoiceValueChange())}),e.k0s(),e.j41(19,"span",13),e.EFF(20,"Sats "),e.k0s(),e.j41(21,"mat-hint",14),e.DNE(22,ft,2,0,"span",15)(23,gt,2,1,"span",16)(24,Ct,1,1,"span",17),e.EFF(25),e.k0s()(),e.j41(26,"mat-form-field",18)(27,"mat-label"),e.EFF(28,"Expiry"),e.k0s(),e.j41(29,"input",19),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.expiry,m)||(a.expiry=m),r.Njj(m)}),e.k0s(),e.j41(30,"span",13),e.EFF(31),e.nI1(32,"titlecase"),e.k0s()(),e.j41(33,"mat-form-field",18)(34,"mat-label"),e.EFF(35,"Time Unit"),e.k0s(),e.j41(36,"mat-select",20),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.onTimeUnitChange(m))}),e.DNE(37,yt,3,4,"mat-option",21),e.k0s()(),e.j41(38,"div",22)(39,"div",23)(40,"mat-slide-toggle",24),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.private,m)||(a.private=m),r.Njj(m)}),e.EFF(41,"Private Routing Hints"),e.k0s(),e.j41(42,"mat-icon",25),e.EFF(43,"info_outline"),e.k0s()(),e.j41(44,"div",23)(45,"mat-slide-toggle",26),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.isAmp,m)||(a.isAmp=m),r.Njj(m)}),e.EFF(46,"AMP Invoice"),e.k0s(),e.j41(47,"mat-icon",27),e.EFF(48,"info_outline"),e.k0s()()(),e.DNE(49,Ft,3,2,"div",28),e.j41(50,"div",29)(51,"button",30),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(52,"Clear Field"),e.k0s(),e.j41(53,"button",31),e.bIt("click",function(){r.eBV(l);const m=e.sdS(10);return r.Njj(a.onAddInvoice(m))}),e.EFF(54,"Create Invoice"),e.k0s()()()()()()}2&o&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(8),e.R50("ngModel",a.memo),e.R7$(4),e.Y8G("step",100)("min",1),e.R50("ngModel",a.invoiceValue),e.R7$(4),e.Y8G("ngIf",""!==a.invoiceValueHint),e.R7$(),e.Y8G("ngIf",a.convertedCurrency&&"FA"===a.convertedCurrency.iconType&&""!==a.invoiceValueHint),e.R7$(),e.Y8G("ngIf",a.convertedCurrency&&"SVG"===a.convertedCurrency.iconType&&""!==a.invoiceValueHint),e.R7$(),e.SpI(" ",a.invoiceValueHint," "),e.R7$(4),e.Y8G("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1),e.R50("ngModel",a.expiry),e.R7$(2),e.SpI("",e.bMT(32,18,a.selTimeUnit)," "),e.R7$(5),e.Y8G("value",a.selTimeUnit),e.R7$(),e.Y8G("ngForOf",a.timeUnits),e.R7$(3),e.R50("ngModel",a.private),e.R7$(5),e.R50("ngModel",a.isAmp),e.R7$(4),e.Y8G("ngIf",""!==a.invoiceError))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.VZ,d.vS,d.cV,O.aY,Y.tx,N.$z,k.m2,k.MM,oe.An,M.fg,C.rl,C.nJ,C.MV,C.yw,f.DJ,f.sA,f.UI,E.VO,X.wT,he.sG,ee.oV,te.N,ae.V,_.PV],encapsulation:2}))}return t(),s})();var vt=y(46391),I=y(11771),J=y(52929),B=y(10497);const Tt=()=>["all"],kt=t=>({"error-border":t}),St=()=>["no_invoice"],ye=t=>({"mr-0":t}),re=t=>({width:t}),Rt=t=>({"display-none":t});function Et(t,s){1&t&&(e.j41(0,"span",19),e.EFF(1,"= "),e.k0s())}function It(t,s){if(1&t&&(e.j41(0,"span",20),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Lt(t,s){if(1&t&&e.nrm(0,"span",22),2&t){const n=e.XpG(2);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function wt(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",6,0)(2,"mat-form-field",7)(3,"mat-label"),e.EFF(4,"Memo"),e.k0s(),e.j41(5,"input",8),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.memo,o)||(a.memo=o),r.Njj(o)}),e.k0s()(),e.j41(6,"mat-form-field",9)(7,"mat-label"),e.EFF(8,"Amount"),e.k0s(),e.j41(9,"input",10),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.invoiceValue,o)||(a.invoiceValue=o),r.Njj(o)}),e.bIt("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onInvoiceValueChange())}),e.k0s(),e.j41(10,"span",11),e.EFF(11,"Sats "),e.k0s(),e.j41(12,"mat-hint",12),e.DNE(13,Et,2,0,"span",13)(14,It,2,1,"span",14)(15,Lt,1,1,"span",15),e.EFF(16),e.k0s()(),e.j41(17,"div",16)(18,"button",17),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(19,"Clear Field"),e.k0s(),e.j41(20,"button",18),e.bIt("click",function(){r.eBV(n);const o=e.sdS(1),a=e.XpG();return r.Njj(a.onAddInvoice(o))}),e.EFF(21,"Create Invoice"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.R50("ngModel",n.memo),e.R7$(4),e.Y8G("step",100)("min",1),e.R50("ngModel",n.invoiceValue),e.R7$(4),e.Y8G("ngIf",""!==n.invoiceValueHint),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.invoiceValueHint),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.invoiceValueHint),e.R7$(),e.SpI(" ",n.invoiceValueHint," ")}}function jt(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",23)(1,"button",24),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.openCreateInvoiceModal())}),e.EFF(2,"Create Invoice"),e.k0s()()}}function Gt(t,s){if(1&t&&(e.j41(0,"mat-option",72),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Dt(t,s){1&t&&e.nrm(0,"mat-progress-bar",73)}function Nt(t,s){1&t&&e.nrm(0,"th",74)}function Pt(t,s){if(1&t&&e.nrm(0,"span",80),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function $t(t,s){if(1&t&&e.nrm(0,"span",81),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function At(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function Mt(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function Bt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Pt,1,3,"span",76)(2,$t,1,3,"span",77)(3,At,1,3,"span",78)(4,Mt,1,3,"span",79),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","OPEN"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","SETTLED"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","ACCEPTED"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","CANCELED"===(null==n?null:n.state))}}function Ot(t,s){1&t&&e.nrm(0,"th",84)}function Vt(t,s){if(1&t&&(e.j41(0,"span",87),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faEyeSlash)}}function Yt(t,s){if(1&t&&(e.j41(0,"span",88),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faEye)}}function Xt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Vt,2,1,"span",85)(2,Yt,2,1,"span",86),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.private),e.R7$(),e.Y8G("ngIf",!n.private)}}function Ut(t,s){1&t&&e.nrm(0,"th",89)}function Ht(t,s){if(1&t&&(e.j41(0,"span",92),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faArrowsTurnToDots)}}function qt(t,s){if(1&t&&(e.j41(0,"span",93),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faArrowsTurnRight)}}function zt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Ht,2,1,"span",90)(2,qt,2,1,"span",91),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.is_keysend),e.R7$(),e.Y8G("ngIf",!n.is_keysend)}}function Jt(t,s){1&t&&e.nrm(0,"th",94)}function Qt(t,s){if(1&t&&(e.j41(0,"span",97),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faMoneyBill1)}}function Wt(t,s){if(1&t&&(e.j41(0,"span",98),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faBurst)}}function Zt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Qt,2,1,"span",95)(2,Wt,2,1,"span",96),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",!n.is_amp),e.R7$(),e.Y8G("ngIf",n.is_amp)}}function Kt(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Date Created"),e.k0s())}function en(t,s){if(1&t&&(e.j41(0,"td",75),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,1e3*(null==n?null:n.creation_date),"dd/MMM/y HH:mm"))}}function tn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Date Settled"),e.k0s())}function nn(t,s){if(1&t&&(e.j41(0,"td",75),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(0!=+(null==n?null:n.settle_date)?e.i5U(2,1,1e3*+(null==n?null:n.settle_date),"dd/MMM/y HH:mm"):"-")}}function an(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Memo"),e.k0s())}function sn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.memo)}}function on(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Preimage"),e.k0s())}function ln(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.r_preimage)}}function rn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Preimage Hash"),e.k0s())}function cn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.r_hash)}}function pn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Payment Address"),e.k0s())}function mn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_addr)}}function un(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Payment Request"),e.k0s())}function dn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request)}}function hn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Description Hash"),e.k0s())}function _n(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash)}}function fn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Expiry"),e.k0s())}function gn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.expiry)," ")}}function Cn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"CLTV Expiry"),e.k0s())}function yn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.cltv_expiry)," ")}}function bn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Add Index"),e.k0s())}function Fn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.add_index)," ")}}function xn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Settle Index"),e.k0s())}function vn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.settle_index)," ")}}function Tn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Amount (Sats)"),e.k0s())}function kn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.value)," ")}}function Sn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Amount Settled (Sats)"),e.k0s())}function Rn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.amt_paid_sat)," ")}}function En(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",104)(1,"div",105)(2,"mat-select",106),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",107),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function In(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",108)(1,"div",105)(2,"mat-select",109),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",107),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onInvoiceClick(o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",107),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onRefreshInvoice(o))}),e.EFF(7,"Refresh"),e.k0s()()()()}}function Ln(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No invoice available."),e.k0s())}function wn(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting invoices..."),e.k0s())}function jn(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Gn(t,s){if(1&t&&(e.j41(0,"td",110),e.DNE(1,Ln,2,0,"p",111)(2,wn,2,0,"p",111)(3,jn,2,1,"p",111),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Dn(t,s){if(1&t&&e.nrm(0,"tr",112),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,Rt,(null==n.invoices?null:n.invoices.data)&&(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)>0))}}function Nn(t,s){1&t&&e.nrm(0,"tr",113)}function Pn(t,s){1&t&&e.nrm(0,"tr",114)}function $n(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",25)(1,"div",26)(2,"div",27),e.nrm(3,"fa-icon",28),e.j41(4,"span",29),e.EFF(5,"Invoices History"),e.k0s()(),e.j41(6,"div",30)(7,"mat-form-field",31)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",32),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,Gt,2,2,"mat-option",33),e.k0s()()(),e.j41(13,"mat-form-field",31)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",34),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()(),e.j41(17,"div",35),e.DNE(18,Dt,1,0,"mat-progress-bar",36),e.j41(19,"table",37,1),e.qex(21,38),e.DNE(22,Nt,1,0,"th",39)(23,Bt,5,4,"td",40),e.bVm(),e.qex(24,41),e.DNE(25,Ot,1,0,"th",42)(26,Xt,3,2,"td",40),e.bVm(),e.qex(27,43),e.DNE(28,Ut,1,0,"th",44)(29,zt,3,2,"td",40),e.bVm(),e.qex(30,45),e.DNE(31,Jt,1,0,"th",46)(32,Zt,3,2,"td",40),e.bVm(),e.qex(33,47),e.DNE(34,Kt,2,0,"th",48)(35,en,3,4,"td",40),e.bVm(),e.qex(36,49),e.DNE(37,tn,2,0,"th",48)(38,nn,3,4,"td",40),e.bVm(),e.qex(39,50),e.DNE(40,an,2,0,"th",48)(41,sn,4,4,"td",40),e.bVm(),e.qex(42,51),e.DNE(43,on,2,0,"th",48)(44,ln,4,4,"td",40),e.bVm(),e.qex(45,52),e.DNE(46,rn,2,0,"th",48)(47,cn,4,4,"td",40),e.bVm(),e.qex(48,53),e.DNE(49,pn,2,0,"th",48)(50,mn,4,4,"td",40),e.bVm(),e.qex(51,54),e.DNE(52,un,2,0,"th",48)(53,dn,4,4,"td",40),e.bVm(),e.qex(54,55),e.DNE(55,hn,2,0,"th",48)(56,_n,4,4,"td",40),e.bVm(),e.qex(57,56),e.DNE(58,fn,2,0,"th",57)(59,gn,4,3,"td",40),e.bVm(),e.qex(60,58),e.DNE(61,Cn,2,0,"th",57)(62,yn,4,3,"td",40),e.bVm(),e.qex(63,59),e.DNE(64,bn,2,0,"th",57)(65,Fn,4,3,"td",40),e.bVm(),e.qex(66,60),e.DNE(67,xn,2,0,"th",57)(68,vn,4,3,"td",40),e.bVm(),e.qex(69,61),e.DNE(70,Tn,2,0,"th",57)(71,kn,4,3,"td",40),e.bVm(),e.qex(72,62),e.DNE(73,Sn,2,0,"th",57)(74,Rn,4,3,"td",40),e.bVm(),e.qex(75,63),e.DNE(76,En,6,0,"th",64)(77,In,8,0,"td",65),e.bVm(),e.qex(78,66),e.DNE(79,Gn,4,3,"td",67),e.bVm(),e.DNE(80,Dn,1,3,"tr",68)(81,Nn,1,0,"tr",69)(82,Pn,1,0,"tr",70),e.k0s(),e.j41(83,"mat-paginator",71),e.bIt("page",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPageChange(o))}),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("icon",n.faHistory),e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,Tt).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter),e.R7$(2),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.invoices)("ngClass",e.eq3(17,kt,""!==n.errorMessage)),e.R7$(61),e.Y8G("matFooterRowDef",e.lJ4(19,St)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("length",n.totalInvoices)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Ve=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.logger=i,this.store=o,this.decimalPipe=a,this.commonService=l,this.datePipe=p,this.actions=m,this.camelCaseWithReplace=v,this.calledFrom="transactions",this.faEye=x.pS3,this.faEyeSlash=x.k6j,this.faHistory=x.Int,this.faArrowsTurnToDots=x.If6,this.faArrowsTurnRight=x.peG,this.faBurst=x.M29,this.faMoneyBill1=x.Ccf,this.convertedCurrency=null,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:c.md,sortBy:"creation_date",sortOrder:c.oi.DESCENDING},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.invoices=new u.I6([]),this.information={},this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=0,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.rN).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalInvoices=i.listInvoices.total_invoices||0,this.firstOffset=+(i.listInvoices.first_index_offset||-1),this.lastOffset=+(i.listInvoices.last_index_offset||-1),this.invoicesData=i.listInvoices.invoices||[],this.invoicesData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoicesData),this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,U.p)(i=>i.type===c.QP.SET_LOOKUP_LND||i.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===c.QP.SET_LOOKUP_LND&&this.invoicesData&&this.sort&&this.paginator&&i.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(i.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(i){const o=this.expiry?this.expiry:c.It;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,T.VK)({payload:{uiMessage:c.MZ.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:o,is_amp:!1,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(i){this.store.dispatch((0,I.xO)({payload:{data:{invoice:i,newlyAdded:!1,component:vt.H}}}))}onRefreshInvoice(i){i&&i.r_hash&&this.store.dispatch((0,T.Yi)({payload:{openSnackBar:!0,paymentHash:Buffer.from(i.r_hash.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}}))}updateInvoicesData(i){this.invoicesData=this.invoicesData?.map(o=>o.r_hash===i.r_hash?i:o)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.invoices.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.creation_date?this.datePipe.transform(new Date(1e3*i.creation_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+(i.settle_date?this.datePipe.transform(new Date(1e3*i.settle_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"creation_date":case"settle_date":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"private":a=i?.private?"private":"public";break;case"is_keysend":a=i?.is_keysend?"keysend invoices":"non keysend invoices";break;case"is_amp":a=i?.is_amp?"atomic multi path payment":"non atomic payment";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"is_keysend"===this.selFilterBy||"is_amp"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadInvoicesTable(i){this.invoices=new u.I6(i?[...i]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}onPageChange(i){let o=!0,a=this.lastOffset;this.pageSize=i.pageSize,0===i.pageIndex?(o=!0,a=0):i.previousPageIndex&&i.pageIndexi.previousPageIndex&&i.length>(i.pageIndex+1)*i.pageSize?(o=!0,a=this.firstOffset):i.length<=(i.pageIndex+1)*i.pageSize&&(o=!1,a=0),this.store.dispatch((0,T.Do)({payload:{num_max_invoices:i.pageSize,index_offset:a,reversed:o}}))}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[5])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,I.xO)({payload:{data:{pageSize:this.pageSize,component:xt}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(_.QX),e.rXU($.h),e.rXU(_.vh),e.rXU(K.En),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-invoices"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Invoices")}])],decls:4,vars:3,consts:[["addInvoiceForm","ngForm"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start"],["matInput","","tabindex","1","name","memo",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","2","name","invValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private",4,"matHeaderCellDef"],["matColumnDef","is_keysend"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Keysend",4,"matHeaderCellDef"],["matColumnDef","is_amp"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","AMP",4,"matHeaderCellDef"],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","settle_date"],["matColumnDef","memo"],["matColumnDef","r_preimage"],["matColumnDef","r_hash"],["matColumnDef","payment_addr"],["matColumnDef","payment_request"],["matColumnDef","description_hash"],["matColumnDef","expiry"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cltv_expiry"],["matColumnDef","add_index"],["matColumnDef","settle_index"],["matColumnDef","value"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","6",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"page","length","pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot grey","matTooltip","Open","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["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","Canceled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Open","matTooltipPosition","right",1,"dot","grey",3,"ngClass"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Canceled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private"],["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"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Keysend"],["class","mr-1","matTooltip","Keysend Invoices","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Non Keysend Invoices","matTooltipPosition","right",4,"ngIf"],["matTooltip","Keysend Invoices","matTooltipPosition","right",1,"mr-1"],["matTooltip","Non Keysend Invoices","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","AMP"],["class","mr-1","matTooltip","Non Atomic Payment","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Atomic Multi Path Payment","matTooltipPosition","right",4,"ngIf"],["matTooltip","Non Atomic Payment","matTooltipPosition","right",1,"mr-1"],["matTooltip","Atomic Multi Path Payment","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"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","6"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",2),e.DNE(1,wt,22,8,"form",3)(2,jt,3,0,"div",4)(3,$n,84,20,"div",5),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf","home"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.qT,d.me,d.Q0,d.BC,d.cb,d.VZ,d.vS,d.cV,O.aY,N.$z,M.fg,C.rl,C.nJ,C.MV,C.yw,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,ae.V,_.QX,_.vh],styles:[".mat-column-state[_ngcontent-%COMP%], .mat-column-private[_ngcontent-%COMP%], .mat-column-is_keysend[_ngcontent-%COMP%], .mat-column-is_amp[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return t(),s})();var W=y(96697),Z=y(51534),q=y(9454),ce=y(22628);const An=["paymentReq"];function Mn(t,s){if(1&t&&(e.j41(0,"span",36),e.nrm(1,"fa-icon",37),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Bn(t,s){if(1&t&&e.nrm(0,"span",38),2&t){const n=e.XpG(2);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function On(t,s){if(1&t&&(e.j41(0,"mat-hint",33),e.EFF(1),e.DNE(2,Mn,2,1,"span",34)(3,Bn,1,1,"span",35),e.EFF(4),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.paymentDecodedHintPre," "),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.SpI(" ",n.paymentDecodedHintPost," ")}}function Vn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment request is required."),e.k0s())}function Yn(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.paymentDecodedHint)}}function Xn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment amount is required."),e.k0s())}function Un(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",6)(1,"mat-label"),e.EFF(2,"Amount (Sats)"),e.k0s(),e.j41(3,"input",39,4),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.paymentAmount,o)||(a.paymentAmount=o),r.Njj(o)}),e.bIt("change",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onAmountChange(o))}),e.k0s(),e.j41(5,"mat-hint"),e.EFF(6,"It is a zero amount invoice, enter amount to be paid."),e.k0s(),e.DNE(7,Xn,2,0,"mat-error",16),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.R50("ngModel",n.paymentAmount),e.R7$(4),e.Y8G("ngIf",!n.paymentAmount)}}function Hn(t,s){if(1&t&&(e.j41(0,"mat-option",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",null==n?null:n.name," ")}}function qn(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.selFeeLimitType?null:n.selFeeLimitType.placeholder," is required.")}}function zn(t,s){if(1&t&&(e.j41(0,"mat-option",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh((null==n?null:n.remote_alias)||(null==n?null:n.chan_id))}}function Jn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Channel not found in the list."),e.k0s())}function Qn(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.paymentError)}}function Wn(t,s){if(1&t&&(e.j41(0,"div",41),e.nrm(1,"fa-icon",42),e.DNE(2,Qn,2,1,"span",16),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.paymentError)}}let Zn=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.dialogRef=i,this.store=o,this.logger=a,this.commonService=l,this.decimalPipe=p,this.actions=m,this.dataService=v,this.faExclamationTriangle=x.zpE,this.convertedCurrency=null,this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new d.hs,this.isAmp=!1,this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.feeLimitTypes=c.nv,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(a=>{this.selNode=a}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1])).subscribe(a=>{this.activeChannels=a.channels&&a.channels.length?a.channels?.filter(l=>l.active):[],this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(a)}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(a=>a.type===c.QP.UPDATE_API_CALL_STATUS_LND||a.type===c.QP.SEND_PAYMENT_STATUS_LND)).subscribe(a=>{a.type===c.QP.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),a.type===c.QP.UPDATE_API_CALL_STATUS_LND&&a.payload.status===c.wn.ERROR&&"SendPayment"===a.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=a.payload.message)});let i="",o="";this.activeChannels=this.activeChannels.sort((a,l)=>(i=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():l.chan_id?l.chan_id.toLowerCase():"",io?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,g.Q)(this.unSubs[3])).subscribe(a=>{"string"==typeof a&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels&&this.activeChannels.length?this.activeChannels?.filter(i=>0===(i.remote_alias?i.remote_alias.toLowerCase():i.chan_id?i.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&(i.local_balance||0)>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)):[]}displayFn(i){return i&&i.remote_alias?i.remote_alias:i&&i.chan_id?i.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const i=this.activeChannels&&this.activeChannels.length?this.activeChannels?.filter(o=>{const a=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"";return a.length===this.selectedChannelCtrl.value.length&&0===a.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")}):[];i&&i.length>0?(this.selectedChannelCtrl.setValue(i[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){if(this.selFeeLimitType!==this.feeLimitTypes[0]&&!this.feeLimit)return!0;if(this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis){this.zeroAmtInvoice=!1;const i={uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:this.isAmp,outgoing_chan_ids:this.selectedChannelCtrl.value?.chan_id?[this.selectedChannelCtrl.value.chan_id]:void 0,fee_limit_sat:(0,c.C6)(this.selFeeLimitType.id,this.feeLimit,+this.paymentDecoded.num_satoshis||0),fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:i}))}else{this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount?.toString()||"";const i={uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:this.isAmp,amt:this.paymentAmount||0,outgoing_chan_ids:this.selectedChannelCtrl.value?.chan_id?[this.selectedChannelCtrl.value.chan_id]:void 0,fee_limit_sat:(0,c.C6)(this.selFeeLimitType.id,this.feeLimit,this.paymentAmount||0),fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:i}))}}onAmountChange(i){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(i){this.paymentRequest=i,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",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.s)(1)).subscribe({next:o=>{this.paymentDecoded=o,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"BTC",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[4])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(a.OTHER?a.OTHER:0,c.k.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"),this.paymentDecodedHintPost="")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHintPre="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"),this.paymentDecodedHintPost="")},error:o=>{this.logger.error(o),this.paymentDecodedHintPre="ERROR: "+o.message,this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(i,o){if(i&&!o){const a=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==a?" | First Outgoing Channel: "+a:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.isAmp=!1,this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(L.il),e.rXU(D.gP),e.rXU($.h),e.rXU(_.QX),e.rXU(K.En),e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(o,a){if(1&o&&e.GBs(An,5),2&o){let l;e.mGM(l=e.lsd())&&(a.paymentReq=l.first)}},standalone:!1,decls:53,vars:22,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["fLmt","ngModel"],["auto","matAutocomplete"],["paymentAmt","ngModel"],["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 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"],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","27","fxLayoutAlign","start end"],["tabindex","5",3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","33"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModelChange","step","min","disabled","ngModel"],["fxLayout","column","fxFlex","37","fxLayoutAlign","start end"],["type","text","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],["fxFlex","25","tabindex","8","color","primary","name","isAmp",3,"ngModelChange","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",3,"click"],["mat-button","","id","sendBtn","color","primary","tabindex","10",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["matInput","","name","amount","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),e.EFF(5,"Send Payment"),e.k0s()(),e.j41(6,"button",10),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",11)(9,"form",12,0)(11,"mat-form-field",13)(12,"mat-label"),e.EFF(13,"Payment Request"),e.k0s(),e.j41(14,"textarea",14,1),e.bIt("ngModelChange",function(m){return r.eBV(l),r.Njj(a.onPaymentRequestEntry(m))})("matTextareaAutosize",function(){return r.eBV(l),r.Njj(!0)}),e.k0s(),e.DNE(16,On,5,4,"mat-hint",15)(17,Vn,2,0,"mat-error",16)(18,Yn,2,1,"mat-error",16),e.k0s(),e.DNE(19,Un,8,2,"mat-form-field",17),e.j41(20,"mat-expansion-panel",18),e.bIt("closed",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!0,!1))})("opened",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!1,!1))}),e.j41(21,"mat-expansion-panel-header")(22,"mat-panel-title")(23,"span"),e.EFF(24),e.k0s()()(),e.j41(25,"div",19)(26,"mat-form-field",20)(27,"mat-label"),e.EFF(28,"Fee Limits"),e.k0s(),e.j41(29,"mat-select",21),e.mxI("valueChange",function(m){return r.eBV(l),e.DH7(a.selFeeLimitType,m)||(a.selFeeLimitType=m),r.Njj(m)}),e.DNE(30,Hn,2,2,"mat-option",22),e.k0s()(),e.j41(31,"mat-form-field",23)(32,"mat-label"),e.EFF(33),e.k0s(),e.j41(34,"input",24,2),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.feeLimit,m)||(a.feeLimit=m),r.Njj(m)}),e.k0s(),e.DNE(36,qn,2,1,"mat-error",16),e.k0s(),e.j41(37,"mat-form-field",25)(38,"mat-label"),e.EFF(39,"First Outgoing Channel"),e.k0s(),e.nrm(40,"input",26),e.j41(41,"mat-autocomplete",27,3),e.bIt("optionSelected",function(){return r.eBV(l),r.Njj(a.onSelectedChannelChanged())}),e.DNE(43,zn,2,2,"mat-option",22),e.k0s(),e.DNE(44,Jn,2,0,"mat-error",16),e.k0s(),e.j41(45,"mat-slide-toggle",28),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.isAmp,m)||(a.isAmp=m),r.Njj(m)}),e.EFF(46,"AMP Payment"),e.k0s()()(),e.DNE(47,Wn,3,2,"div",29),e.j41(48,"div",30)(49,"button",31),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(50,"Clear Fields"),e.k0s(),e.j41(51,"button",32),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onSendPayment())}),e.EFF(52,"Send Payment"),e.k0s()()()()()()}if(2&o){const l=e.sdS(15),p=e.sdS(42);e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(8),e.Y8G("ngModel",a.paymentRequest),e.R7$(2),e.Y8G("ngIf",a.paymentRequest&&""!==a.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",!a.paymentRequest),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.decodeError),e.R7$(),e.Y8G("ngIf",a.zeroAmtInvoice),e.R7$(5),e.JRh(a.advancedTitle),e.R7$(5),e.R50("value",a.selFeeLimitType),e.R7$(),e.Y8G("ngForOf",a.feeLimitTypes),e.R7$(3),e.JRh(null==a.selFeeLimitType?null:a.selFeeLimitType.placeholder),e.R7$(),e.Y8G("step",1)("min",0)("disabled",a.selFeeLimitType===a.feeLimitTypes[0]),e.R50("ngModel",a.feeLimit),e.R7$(2),e.Y8G("ngIf",a.selFeeLimitType!==a.feeLimitTypes[0]&&!a.feeLimit),e.R7$(4),e.Y8G("formControl",a.selectedChannelCtrl)("matAutocomplete",p),e.R7$(),e.Y8G("displayWith",a.displayFn),e.R7$(2),e.Y8G("ngForOf",a.filteredMinAmtActvChannels),e.R7$(),e.Y8G("ngIf",null==a.selectedChannelCtrl.errors?null:a.selectedChannelCtrl.errors.notfound),e.R7$(),e.R50("ngModel",a.isAmp),e.R7$(2),e.Y8G("ngIf",""!==a.paymentError)}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,d.l_,O.aY,Y.tx,N.$z,k.m2,k.MM,q.GK,q.Z2,q.WN,M.fg,C.rl,C.nJ,C.MV,C.TL,f.DJ,f.sA,f.UI,E.VO,X.wT,he.sG,ce.$3,ce.pN,te.N,ae.V],encapsulation:2}))}return t(),s})();var _e=y(37541);const Kn=["sendPaymentForm"],ei=()=>["all"],ti=t=>({"error-border":t}),ni=()=>["no_payment"],pe=t=>({"mr-0":t}),se=t=>({width:t}),ii=t=>({"display-none":t});function ai(t,s){if(1&t&&(e.j41(0,"span",18),e.nrm(1,"fa-icon",19),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function si(t,s){if(1&t&&e.nrm(0,"span",20),2&t){const n=e.XpG(3);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function oi(t,s){if(1&t&&(e.j41(0,"mat-hint",15),e.EFF(1),e.DNE(2,ai,2,1,"span",16)(3,si,1,1,"span",17),e.EFF(4),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.paymentDecodedHintPre," "),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.SpI(" ",n.paymentDecodedHintPost," ")}}function li(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment request is required."),e.k0s())}function ri(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",7,0)(2,"mat-form-field",8)(3,"mat-label"),e.EFF(4,"Payment Request"),e.k0s(),e.j41(5,"textarea",9,1),e.bIt("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPaymentRequestEntry(o))})("matTextareaAutosize",function(){return r.eBV(n),r.Njj(!0)}),e.k0s(),e.DNE(7,oi,5,4,"mat-hint",10)(8,li,2,0,"mat-error",11),e.k0s(),e.j41(9,"div",12)(10,"button",13),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(11,"Clear Field"),e.k0s(),e.j41(12,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendPayment())}),e.EFF(13,"Send Payment"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.Y8G("ngModel",n.paymentRequest),e.R7$(2),e.Y8G("ngIf",n.paymentRequest&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",!n.paymentRequest)}}function ci(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",21)(1,"button",22),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.openSendPaymentModal())}),e.EFF(2,"Send Payment"),e.k0s()()}}function pi(t,s){if(1&t&&(e.j41(0,"mat-option",76),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function mi(t,s){1&t&&e.nrm(0,"mat-progress-bar",77)}function ui(t,s){1&t&&e.nrm(0,"th",78)}function di(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function hi(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function _i(t,s){if(1&t&&(e.j41(0,"td",79),e.DNE(1,di,1,3,"span",80)(2,hi,1,3,"span",81),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","SUCCEEDED"===(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==(null==n?null:n.status))}}function fi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Creation Date"),e.k0s())}function gi(t,s){if(1&t&&(e.j41(0,"td",79),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,1e3*(null==n?null:n.creation_date),"dd/MMM/y HH:mm")," ")}}function Ci(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Hash"),e.k0s())}function yi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_hash)}}function bi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Request"),e.k0s())}function Fi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request)}}function xi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Preimage"),e.k0s())}function vi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_preimage)}}function Ti(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Description"),e.k0s())}function ki(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description)}}function Si(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Description Hash"),e.k0s())}function Ri(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash)}}function Ei(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Failure Reason"),e.k0s())}function Ii(t,s){if(1&t&&(e.j41(0,"td",79),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.brH(2,1,null==n?null:n.failure_reason,"failure_reason","_")," ")}}function Li(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Payment Index"),e.k0s())}function wi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.payment_index))}}function ji(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Fee (Sats)"),e.k0s())}function Gi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.fee))}}function Di(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Value (Sats)"),e.k0s())}function Ni(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.value))}}function Pi(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Hops"),e.k0s())}function $i(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh((null==n||null==n.htlcs[0]||null==n.htlcs[0].route||null==n.htlcs[0].route.hops?null:n.htlcs[0].route.hops.length)||0)}}function Ai(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",89)(1,"div",90)(2,"mat-select",91),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",92),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Mi(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",93)(1,"button",94),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onPaymentClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Bi(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No payment available."),e.k0s())}function Oi(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting payments..."),e.k0s())}function Vi(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Yi(t,s){if(1&t&&(e.j41(0,"td",95),e.DNE(1,Bi,2,0,"p",11)(2,Oi,2,0,"p",11)(3,Vi,2,1,"p",11),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Xi(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function Ui(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function Hi(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(5);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function qi(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(5);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function zi(t,s){if(1&t&&(e.j41(0,"span",96),e.DNE(1,Hi,1,3,"span",80)(2,qi,1,3,"span",81),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","SUCCEEDED"===n.status),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==n.status)}}function Ji(t,s){if(1&t&&(e.qex(0),e.DNE(1,zi,3,2,"span",97),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Qi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.DNE(2,Xi,1,3,"span",80)(3,Ui,1,3,"span",81),e.k0s(),e.DNE(4,Ji,2,1,"ng-container",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.Y8G("ngIf","SUCCEEDED"===(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Wi(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,n.attempt_time_ns/1e6,"dd/MMM/y HH:mm")," ")}}function Zi(t,s){if(1&t&&(e.qex(0),e.DNE(1,Wi,3,4,"span",97),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ki(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.EFF(2),e.k0s(),e.DNE(3,Zi,2,1,"ng-container",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" Total Attempts: ",null==n||null==n.htlcs?null:n.htlcs.length," "),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ea(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.k0s()),2&t){const n=s.index;e.R7$(),e.SpI(" HTLC ",n+1," ")}}function ta(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ea,2,1,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function na(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,ta,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_hash),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ia(t,s){1&t&&e.nrm(0,"span",96)}function aa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ia,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function sa(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,aa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function oa(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.preimage," ")}}function la(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,oa,2,1,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ra(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,la,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_preimage),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ca(t,s){1&t&&e.nrm(0,"span",96)}function pa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ca,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ma(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,pa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ua(t,s){1&t&&e.nrm(0,"span",96)}function da(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ua,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ha(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,da,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function _a(t,s){1&t&&e.nrm(0,"span",96)}function fa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,_a,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ga(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.EFF(2),e.nI1(3,"camelcaseWithReplace"),e.k0s(),e.DNE(4,fa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" ",e.brH(3,2,null==n?null:n.failure_reason,"failure_reason","_")," "),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ca(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,n.attempt_id)," ")}}function ya(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ca,3,3,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ba(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,ya,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,2,null==n?null:n.payment_index)),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Fa(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n.route?null:n.route.total_fees,"1.0-0")," ")}}function xa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Fa,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function va(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,xa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.i5U(3,2,null==n?null:n.fee,"1.0-0")),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ta(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n.route?null:n.route.total_amt,"1.0-0")," ")}}function ka(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ta,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Sa(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,ka,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.i5U(3,2,null==n?null:n.value,"1.0-0")),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ra(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,(null==n.route||null==n.route.hops?null:n.route.hops.length)||0,"1.0-0")," ")}}function Ea(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ra,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ia(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2,"-"),e.k0s(),e.DNE(3,Ea,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(3),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function La(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",104)(1,"button",105),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onHTLCClick(o,a))}),e.EFF(2),e.k0s()()}if(2&t){const n=s.index;e.R7$(2),e.SpI("View ",n+1)}}function wa(t,s){if(1&t&&(e.j41(0,"div"),e.DNE(1,La,3,1,"div",103),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ja(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",79)(1,"span",101)(2,"button",102),e.bIt("click",function(){const o=r.eBV(n).$implicit;return r.Njj(o.is_expanded=!(null!=o&&o.is_expanded))}),e.EFF(3),e.k0s()(),e.DNE(4,wa,2,1,"div",11),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(3),e.JRh(null!=n&&n.is_expanded?"Hide":"Show"),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ga(t,s){1&t&&e.nrm(0,"tr",106)}function Da(t,s){if(1&t&&e.nrm(0,"tr",107),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,ii,(null==n.payments?null:n.payments.data)&&(null==n.payments||null==n.payments.data?null:n.payments.data.length)>0))}}function Na(t,s){1&t&&e.nrm(0,"tr",108)}function Pa(t,s){1&t&&e.nrm(0,"tr",106)}function $a(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",23)(1,"div",24)(2,"div",25),e.nrm(3,"fa-icon",26),e.j41(4,"span",27),e.EFF(5,"Payments History"),e.k0s()(),e.j41(6,"div",28)(7,"mat-form-field",29)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",30),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,pi,2,2,"mat-option",31),e.k0s()()(),e.j41(13,"mat-form-field",29)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",32),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()(),e.j41(17,"div",33)(18,"div",34),e.DNE(19,mi,1,0,"mat-progress-bar",35),e.j41(20,"table",36,2),e.qex(22,37),e.DNE(23,ui,1,0,"th",38)(24,_i,3,2,"td",39),e.bVm(),e.qex(25,40),e.DNE(26,fi,2,0,"th",41)(27,gi,3,4,"td",39),e.bVm(),e.qex(28,42),e.DNE(29,Ci,2,0,"th",41)(30,yi,4,4,"td",39),e.bVm(),e.qex(31,43),e.DNE(32,bi,2,0,"th",41)(33,Fi,4,4,"td",39),e.bVm(),e.qex(34,44),e.DNE(35,xi,2,0,"th",41)(36,vi,4,4,"td",39),e.bVm(),e.qex(37,45),e.DNE(38,Ti,2,0,"th",41)(39,ki,4,4,"td",39),e.bVm(),e.qex(40,46),e.DNE(41,Si,2,0,"th",41)(42,Ri,4,4,"td",39),e.bVm(),e.qex(43,47),e.DNE(44,Ei,2,0,"th",41)(45,Ii,3,5,"td",39),e.bVm(),e.qex(46,48),e.DNE(47,Li,2,0,"th",49)(48,wi,4,3,"td",39),e.bVm(),e.qex(49,50),e.DNE(50,ji,2,0,"th",49)(51,Gi,4,3,"td",39),e.bVm(),e.qex(52,51),e.DNE(53,Di,2,0,"th",49)(54,Ni,4,3,"td",39),e.bVm(),e.qex(55,52),e.DNE(56,Pi,2,0,"th",49)(57,$i,3,1,"td",39),e.bVm(),e.qex(58,53),e.DNE(59,Ai,6,0,"th",54)(60,Mi,3,0,"td",55),e.bVm(),e.qex(61,56),e.DNE(62,Yi,4,3,"td",57),e.bVm(),e.qex(63,58),e.DNE(64,Qi,5,3,"td",39),e.bVm(),e.qex(65,59),e.DNE(66,Ki,4,2,"td",39),e.bVm(),e.qex(67,60),e.DNE(68,na,5,5,"td",39),e.bVm(),e.qex(69,61),e.DNE(70,sa,5,5,"td",39),e.bVm(),e.qex(71,62),e.DNE(72,ra,5,5,"td",39),e.bVm(),e.qex(73,63),e.DNE(74,ma,5,5,"td",39),e.bVm(),e.qex(75,64),e.DNE(76,ha,5,5,"td",39),e.bVm(),e.qex(77,65),e.DNE(78,ga,5,6,"td",39),e.bVm(),e.qex(79,66),e.DNE(80,ba,5,4,"td",39),e.bVm(),e.qex(81,67),e.DNE(82,va,5,5,"td",39),e.bVm(),e.qex(83,68),e.DNE(84,Sa,5,5,"td",39),e.bVm(),e.qex(85,69),e.DNE(86,Ia,4,1,"td",39),e.bVm(),e.qex(87,70),e.DNE(88,ja,5,2,"td",39),e.bVm(),e.DNE(89,Ga,1,0,"tr",71)(90,Da,1,3,"tr",72)(91,Na,1,0,"tr",73)(92,Pa,1,0,"tr",74),e.k0s(),e.j41(93,"mat-paginator",75),e.bIt("page",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPageChange(o))}),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("icon",n.faHistory),e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(18,ei).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter),e.R7$(3),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.payments)("ngClass",e.eq3(19,ti,""!==n.errorMessage)),e.R7$(69),e.Y8G("matRowDefColumns",n.htlcColumns)("matRowDefWhen",n.is_group),e.R7$(),e.Y8G("matFooterRowDef",e.lJ4(21,ni)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("length",n.totalPayments)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Ye=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.logger=i,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=p,this.decimalPipe=m,this.datePipe=v,this.camelCaseWithReplace=b,this.calledFrom="transactions",this.faHistory=x.Int,this.convertedCurrency=null,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:c.md,sortBy:"creation_date",sortOrder:c.oi.DESCENDING},this.newlyAddedPayment="",this.information={},this.peers=[],this.payments=new u.I6([]),this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.peers=i.peers}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.htlcColumns=[],this.displayedColumns.map(o=>this.htlcColumns.push("group_"+o)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.KT).pipe((0,g.Q)(this.unSubs[5])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=i.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+(i.listPayments.first_index_offset||-1),this.lastOffset=+(i.listPayments.last_index_offset||-1),this.paymentJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(i)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize))}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.s)(1)).subscribe(i=>{this.paymentDecoded=i,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash||"",this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:c.UN.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:c.UN.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:c.UN.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,W.s)(1)).subscribe(o=>{o&&(this.store.dispatch((0,T.Fd)({payload:{uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:!1,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:c.UN.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:c.UN.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:c.UN.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,W.s)(1)).subscribe(a=>{a&&(this.paymentDecoded.num_satoshis=a[0].inputValue,this.store.dispatch((0,T.Fd)({payload:{uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:!1,amt:a[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,I.xO)({payload:{data:{component:Zn}}}))}onPaymentRequestEntry(i){this.paymentRequest=i,this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.s)(1)).subscribe(o=>{this.paymentDecoded=o,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[6])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,c.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost="")})}onPageChange(i){let o=!0,a=this.lastOffset;this.pageSize=i.pageSize,0===i.pageIndex?(o=!0,a=0):i.pageIndexi.previousPageIndex&&i.length>(i.pageIndex+1)*i.pageSize?(o=!0,a=this.firstOffset):i.length<=(i.pageIndex+1)*i.pageSize&&(o=!1,a=0);const l=i.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(l,l+this.pageSize))}is_group(i,o){return o.htlcs&&o.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(i){const o=this;return new Promise((a,l)=>{const p=o.peers.find(m=>m.pub_key===i.pub_key);p&&p.alias?a("
Channel: "+p.alias.padEnd(20)+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
"):o.dataService.getAliasesFromPubkeys(i.pub_key||"",!1).pipe((0,g.Q)(o.unSubs[7])).subscribe({next:m=>a("
Channel: "+(m.node&&m.node.alias?m.node.alias.padEnd(20):i.pub_key?.substring(0,17)+"...")+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
"),error:m=>a("
Channel: "+(i.pub_key?i.pub_key?.substring(0,17)+"...":"")+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
")})})}onHTLCClick(i,o){o.payment_request&&""!==o.payment_request.trim()?this.dataService.decodePayment(o.payment_request,!1).pipe((0,W.s)(1)).subscribe({next:a=>{setTimeout(()=>{this.showHTLCView(i,o,a)},0)},error:a=>{this.showHTLCView(i,o)}}):this.showHTLCView(i,o)}showHTLCView(i,o,a){i.route&&i.route.hops&&i.route.hops.length?Promise.all(i.route.hops.map(l=>this.getHopDetails(l))).then(l=>{this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"HTLC Information",message:this.prepareData(i,o,a,l),scrollable:i.route&&i.route.hops&&i.route.hops.length>1}}}))}):this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"HTLC Information",message:this.prepareData(i,o,a,[]),scrollable:i.route&&i.route.hops&&i.route.hops.length>1}}}))}prepareData(i,o,a,l){const p=[[{key:"payment_hash",value:o.payment_hash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"preimage",value:i.preimage,title:"Preimage",width:100,type:c.UN.STRING}],[{key:"payment_request",value:o.payment_request,title:"Payment Request",width:100,type:c.UN.STRING}],[{key:"status",value:i.status,title:"Status",width:33,type:c.UN.STRING},{key:"attempt_time_ns",value:+(i.attempt_time_ns||0)/1e9,title:"Attempt Time",width:33,type:c.UN.DATE_TIME},{key:"resolve_time_ns",value:+(i.resolve_time_ns||0)/1e9,title:"Resolve Time",width:34,type:c.UN.DATE_TIME}],[{key:"total_amt",value:i.route?.total_amt,title:"Amount (Sats)",width:33,type:c.UN.NUMBER},{key:"total_fees",value:i.route?.total_fees,title:"Fee (Sats)",width:33,type:c.UN.NUMBER},{key:"total_time_lock",value:i.route?.total_time_lock,title:"Total Time Lock",width:34,type:c.UN.NUMBER}],[{key:"hops",value:l,title:"Hops",width:100,type:c.UN.ARRAY}]];return a&&a.description&&""!==a.description&&p.splice(3,0,[{key:"description",value:a.description,title:"Description",width:100,type:c.UN.STRING}]),p}onPaymentClick(i){if(i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length>0){const o=i.htlcs[0].route.hops?.reduce((a,l)=>l.pub_key&&""===a?l.pub_key:a+","+l.pub_key,"");this.dataService.getAliasesFromPubkeys(o,!0).pipe((0,g.Q)(this.unSubs[8])).subscribe(a=>{this.showPaymentView(i,a?.reduce((l,p)=>""===l?p:l+"\n"+p,""))})}else this.showPaymentView(i,"")}showPaymentView(i,o){const a=[[{key:"payment_hash",value:i.payment_hash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"payment_preimage",value:i.payment_preimage,title:"Payment Preimage",width:100,type:c.UN.STRING}],[{key:"payment_request",value:i.payment_request,title:"Payment Request",width:100,type:c.UN.STRING}],[{key:"status",value:i.status,title:"Status",width:50,type:c.UN.STRING},{key:"creation_date",value:i.creation_date,title:"Creation Date",width:50,type:c.UN.DATE_TIME}],[{key:"value_msat",value:i.value_msat,title:"Value (mSats)",width:50,type:c.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:50,type:c.UN.NUMBER}],[{key:"path",value:o,title:"Path",width:100,type:c.UN.STRING}]];i.payment_request&&""!==i.payment_request.trim()?this.dataService.decodePayment(i.payment_request,!1).pipe((0,W.s)(1)).subscribe(l=>{l&&l.description&&""!==l.description&&a.splice(3,0,[{key:"description",value:l.description,title:"Description",width:100,type:c.UN.STRING}]),setTimeout(()=>{this.openPaymentAlert(a,!!(i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length>1))},0)}):this.openPaymentAlert(a,!1)}openPaymentAlert(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Payment Information",message:i,scrollable:o}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.payments.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.creation_date?this.datePipe.transform(new Date(1e3*i.creation_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"status":case"group_status":a="SUCCEEDED"===i?.status?"succeeded":"failed";break;case"creation_date":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"failure_reason":case"group_failure_reason":a=this.camelCaseWithReplace.transform(i.failure_reason||"","failure_reason","_").trim().toLowerCase();break;case"hops":a=i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length?i.htlcs[0].route.hops.length.toString():"0";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"failure_reason"===this.selFilterBy||"group_failure_reason"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadPaymentsTable(i){this.payments=new u.I6(i?[...i]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(o,a)=>"hops"===a?o.htlcs.length&&o.htlcs[0]&&o.htlcs[0].route&&o.htlcs[0].route.hops&&o.htlcs[0].route.hops.length?o.htlcs[0].route.hops.length:0:o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const i=JSON.parse(JSON.stringify(this.payments.data)),o=i?.reduce((a,l)=>(l.payment_request&&""!==l.payment_request.trim()&&(a=""===a?l.payment_request:a+","+l.payment_request),a),"");this.dataService.decodePayments(o).pipe((0,g.Q)(this.unSubs[9])).subscribe(a=>{let l=0;a.forEach((m,v)=>{if(m){for(;i[v+l].payment_hash!==m.payment_hash;)l+=1;i[v+l].description=m.description}});const p=i?.reduce((m,v)=>m.concat(v),[]);this.commonService.downloadFile(p,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(Z.u),e.rXU(L.il),e.rXU(_e.H),e.rXU(_.QX),e.rXU(_.vh),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-payments"]],viewQuery:function(o,a){if(1&o&&(e.GBs(Kn,5),e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Payments")}])],decls:4,vars:3,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxLayout","column","fxFlex","100"],["matInput","","name","paymentRequest","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","perfectScrollbar","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[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 wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["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,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","payment_hash"],["matColumnDef","payment_request"],["matColumnDef","payment_preimage"],["matColumnDef","description"],["matColumnDef","description_hash"],["matColumnDef","failure_reason"],["matColumnDef","payment_index"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fee"],["matColumnDef","value"],["matColumnDef","hops"],["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_status"],["matColumnDef","group_creation_date"],["matColumnDef","group_payment_hash"],["matColumnDef","group_payment_request"],["matColumnDef","group_payment_preimage"],["matColumnDef","group_description"],["matColumnDef","group_description_hash"],["matColumnDef","group_failure_reason"],["matColumnDef","group_payment_index"],["matColumnDef","group_fee"],["matColumnDef","group_value"],["matColumnDef","group_hops"],["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,"page","length","pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","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"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayout","row",1,"ellipsis-parent","htlc-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["class","htlc-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",3),e.DNE(1,ri,14,3,"form",4)(2,ci,3,0,"div",5)(3,$a,94,22,"div",6),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf","home"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,O.aY,N.$z,M.fg,C.rl,C.nJ,C.MV,C.TL,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.QX,_.vh,J.VD],styles:[".mat-column-status[_ngcontent-%COMP%], .mat-column-group_status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-group_actions[_ngcontent-%COMP%] .htlc-group-head[_ngcontent-%COMP%], .mat-column-group_actions[_ngcontent-%COMP%] .htlc-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-group_actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_status[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type), .mat-column-group_creation_date[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:3rem}.htlc-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.htlc-row-span[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{margin-top:-.3rem;position:absolute}.mat-column-group_creation_date[_ngcontent-%COMP%]{min-width:11rem}"]}))}return t(),s})();const Xe=t=>({backgroundColor:t});function Aa(t,s){if(1&t&&e.nrm(0,"span",8),2&t){const n=e.XpG();e.Y8G("ngStyle",e.eq3(1,Xe,null==n.information?null:n.information.color))}}function Ma(t,s){if(1&t&&(e.j41(0,"div")(1,"h4",1),e.EFF(2,"Color"),e.k0s(),e.j41(3,"div",2),e.nrm(4,"span",9),e.EFF(5),e.nI1(6,"uppercase"),e.k0s()()),2&t){const n=e.XpG();e.R7$(4),e.Y8G("ngStyle",e.eq3(4,Xe,null==n.information?null:n.information.color)),e.R7$(),e.SpI(" ",e.bMT(6,2,null==n.information?null:n.information.color)," ")}}function Ba(t,s){1&t&&e.nrm(0,"span",10)}function Oa(t,s){1&t&&e.nrm(0,"span",11)}function Va(t,s){if(1&t&&(e.j41(0,"span",2),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}let Ue=(()=>{var t;class s{constructor(i){this.commonService=i,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(i=>{this.chains.push(this.commonService.titleCase(i.chain)+" "+this.commonService.titleCase(i.network))}))}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},standalone:!1,features:[e.OA$],decls:19,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-2"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","dot green mr-1","matTooltip","Synced to Chain","matTooltipPosition","right",4,"ngIf"],["class","dot red mr-1","matTooltip","Not Synced to Chain","matTooltipPosition","right",4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"],["matTooltip","Synced to Chain","matTooltipPosition","right",1,"dot","green","mr-1"],["matTooltip","Not Synced to Chain","matTooltipPosition","right",1,"dot","red","mr-1"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div")(2,"h4",1),e.EFF(3,"Alias"),e.k0s(),e.j41(4,"div",2),e.EFF(5),e.DNE(6,Aa,1,3,"span",3),e.k0s()(),e.DNE(7,Ma,7,6,"div",4),e.j41(8,"div")(9,"h4",1),e.EFF(10,"Implementation"),e.k0s(),e.j41(11,"div",2),e.EFF(12),e.k0s()(),e.j41(13,"div")(14,"h4",1),e.EFF(15,"Chain"),e.k0s(),e.DNE(16,Ba,1,0,"span",5)(17,Oa,1,0,"span",6)(18,Va,2,1,"span",7),e.k0s()()),2&o&&(e.R7$(5),e.SpI(" ",null==a.information?null:a.information.alias," "),e.R7$(),e.Y8G("ngIf",!a.showColorFieldSeparately),e.R7$(),e.Y8G("ngIf",a.showColorFieldSeparately),e.R7$(5),e.JRh(null!=a.information&&a.information.lnImplementation||null!=a.information&&a.information.version?(null==a.information?null:a.information.lnImplementation)+" "+(null==a.information?null:a.information.version):""),e.R7$(4),e.Y8G("ngIf",null==a.information?null:a.information.synced_to_chain),e.R7$(),e.Y8G("ngIf",!(null!=a.information&&a.information.synced_to_chain)),e.R7$(),e.Y8G("ngForOf",a.chains))},dependencies:[_.Sq,_.bT,_.B3,f.DJ,f.sA,f.UI,j.eI,ee.oV,_.Pc],encapsulation:2}))}return t(),s})();function Ya(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div")(2,"h4",3),e.EFF(3,"Lightning"),e.k0s(),e.j41(4,"div",4),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.nrm(7,"mat-progress-bar",5),e.k0s(),e.j41(8,"div")(9,"h4",3),e.EFF(10,"On-chain"),e.k0s(),e.j41(11,"div",4),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.nrm(14,"mat-progress-bar",5),e.k0s(),e.j41(15,"div")(16,"h4",3),e.EFF(17,"Total"),e.k0s(),e.j41(18,"div",4),e.EFF(19),e.nI1(20,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.SpI("",e.bMT(6,7,null==n.balances?null:n.balances.lightning)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ((null==n.balances?null:n.balances.lightning)/(null==n.balances?null:n.balances.total)*100)),e.R7$(5),e.SpI("",e.bMT(13,9,null==n.balances?null:n.balances.onchain)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ((null==n.balances?null:n.balances.onchain)/(null==n.balances?null:n.balances.total)*100)),e.R7$(5),e.SpI("",e.bMT(20,11,null==n.balances?null:n.balances.total)," Sats")}}function Xa(t,s){if(1&t&&(e.j41(0,"div",6)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let Ua=(()=>{var t;class s{constructor(){this.balances={onchain:0,lightning:0,total:0}}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["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(o,a){if(1&o&&e.DNE(0,Ya,21,13,"div",1)(1,Xa,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf"," "===a.errorMessage)("ngIfElse",l)}},dependencies:[_.bT,V.HM,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();function Ha(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),e.EFF(4,"Daily"),e.k0s(),e.j41(5,"div",5),e.EFF(6),e.nI1(7,"number"),e.k0s()(),e.j41(8,"div")(9,"h4",4),e.EFF(10,"Weekly"),e.k0s(),e.j41(11,"div",5),e.EFF(12),e.nI1(13,"number"),e.k0s()(),e.j41(14,"div")(15,"h4",4),e.EFF(16,"Monthly"),e.k0s(),e.j41(17,"div",5),e.EFF(18),e.nI1(19,"number"),e.k0s()(),e.j41(20,"div",6),e.nrm(21,"h4",7)(22,"span",5),e.k0s()(),e.j41(23,"div",3)(24,"div")(25,"h4",4),e.EFF(26,"Transactions"),e.k0s(),e.j41(27,"div",5),e.EFF(28),e.nI1(29,"number"),e.k0s()(),e.j41(30,"div")(31,"h4",4),e.EFF(32,"Transactions"),e.k0s(),e.j41(33,"div",5),e.EFF(34),e.nI1(35,"number"),e.k0s()(),e.j41(36,"div")(37,"h4",4),e.EFF(38,"Transactions"),e.k0s(),e.j41(39,"div",5),e.EFF(40),e.nI1(41,"number"),e.k0s()(),e.j41(42,"div",6),e.nrm(43,"h4",7)(44,"span",5),e.k0s()()()),2&t){const n=e.XpG();e.R7$(6),e.SpI("",e.bMT(7,6,null==n.fees?null:n.fees.day_fee_sum)," Sats"),e.R7$(6),e.SpI("",e.bMT(13,8,null==n.fees?null:n.fees.week_fee_sum)," Sats"),e.R7$(6),e.SpI("",e.bMT(19,10,null==n.fees?null:n.fees.month_fee_sum)," Sats"),e.R7$(10),e.JRh(e.bMT(29,12,null==n.fees?null:n.fees.daily_tx_count)),e.R7$(6),e.JRh(e.bMT(35,14,null==n.fees?null:n.fees.weekly_tx_count)),e.R7$(6),e.JRh(e.bMT(41,16,null==n.fees?null:n.fees.monthly_tx_count))}}function qa(t,s){if(1&t&&(e.j41(0,"div",8)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let He=(()=>{var t;class s{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum||0},{name:"Daily ",value:this.fees.day_fee_sum||0}];const o=10**(Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10)-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/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)}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},standalone:!1,features:[e.OA$],decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,Ha,45,18,"div",1)(1,qa,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[_.bT,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();function za(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),e.EFF(4,"Active"),e.k0s(),e.j41(5,"div",5),e.nrm(6,"span",6),e.EFF(7),e.nI1(8,"number"),e.k0s()(),e.j41(9,"div")(10,"h4",4),e.EFF(11,"Pending"),e.k0s(),e.j41(12,"div",5),e.nrm(13,"span",7),e.EFF(14),e.nI1(15,"number"),e.k0s()(),e.j41(16,"div")(17,"h4",4),e.EFF(18,"Inactive"),e.k0s(),e.j41(19,"div",5),e.nrm(20,"span",8),e.EFF(21),e.nI1(22,"number"),e.k0s()(),e.j41(23,"div")(24,"h4",4),e.EFF(25,"Closing"),e.k0s(),e.j41(26,"div",5),e.nrm(27,"span",9),e.EFF(28),e.nI1(29,"number"),e.k0s()()(),e.j41(30,"div",3)(31,"div")(32,"h4",4),e.EFF(33,"Capacity"),e.k0s(),e.j41(34,"div",5),e.EFF(35),e.nI1(36,"number"),e.k0s()(),e.j41(37,"div")(38,"h4",4),e.EFF(39,"Capacity"),e.k0s(),e.j41(40,"div",5),e.EFF(41),e.nI1(42,"number"),e.k0s()(),e.j41(43,"div")(44,"h4",4),e.EFF(45,"Capacity"),e.k0s(),e.j41(46,"div",5),e.EFF(47),e.nI1(48,"number"),e.k0s()(),e.j41(49,"div")(50,"h4",4),e.EFF(51,"Capacity"),e.k0s(),e.j41(52,"div",5),e.EFF(53),e.nI1(54,"number"),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(7),e.JRh(e.bMT(8,8,(null==n.channelsStatus||null==n.channelsStatus.active?null:n.channelsStatus.active.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(15,10,(null==n.channelsStatus||null==n.channelsStatus.pending?null:n.channelsStatus.pending.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(22,12,(null==n.channelsStatus||null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(29,14,(null==n.channelsStatus||null==n.channelsStatus.closing?null:n.channelsStatus.closing.num_channels)||0)),e.R7$(7),e.SpI("",e.bMT(36,16,(null==n.channelsStatus||null==n.channelsStatus.active?null:n.channelsStatus.active.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(42,18,(null==n.channelsStatus||null==n.channelsStatus.pending?null:n.channelsStatus.pending.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(48,20,(null==n.channelsStatus||null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(54,22,(null==n.channelsStatus||null==n.channelsStatus.closing?null:n.channelsStatus.closing.capacity)||0)," Sats")}}function Ja(t,s){if(1&t&&(e.j41(0,"div",10)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let qe=(()=>{var t;class s{constructor(){this.channelsStatus={}}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,za,55,24,"div",1)(1,Ja,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf"," "===a.errorMessage)("ngIfElse",l)}},dependencies:[_.bT,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();var ne=y(71997);const Qa=()=>["../connections/channels/open"],Wa=(t,s)=>({filterColumn:t,filterValue:s});function Za(t,s){if(1&t&&(e.j41(0,"div",19)(1,"a",20),e.EFF(2),e.nI1(3,"slice"),e.k0s(),e.j41(4,"div",6)(5,"mat-hint",21)(6,"strong",8),e.EFF(7,"Local:"),e.k0s(),e.EFF(8),e.nI1(9,"number"),e.k0s(),e.j41(10,"mat-hint",22),e.nrm(11,"fa-icon",23),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.j41(14,"mat-hint",24)(15,"strong",8),e.EFF(16,"Remote:"),e.k0s(),e.EFF(17),e.nI1(18,"number"),e.k0s()(),e.nrm(19,"mat-progress-bar",25),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("matTooltip",e.mNQ(n.remote_alias||n.remote_pubkey))("matTooltipDisabled",e.mNQ((n.remote_alias||n.remote_pubkey).length<26))("routerLink",e.lJ4(24,Qa))("state",e.l_i(25,Wa,n.remote_alias?"remote_alias":"remote_pubkey",n.remote_alias||n.remote_pubkey)),e.R7$(),e.Lme(" ",e.brH(3,14,n.remote_alias||n.remote_pubkey||"",0,24),"",(n.remote_alias||n.remote_pubkey||"").length>25?"...":""," "),e.R7$(6),e.SpI("",e.bMT(9,18,n.local_balance||0)," Sats"),e.R7$(3),e.Y8G("icon",i.faBalanceScale),e.R7$(),e.SpI(" (",e.bMT(13,20,n.balancedness||0),") "),e.R7$(5),e.SpI("",e.bMT(18,22,n.remote_balance||0)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ(n.local_balance&&n.local_balance>0?+n.local_balance/(+n.local_balance+ +n.remote_balance)*100:0))}}function Ka(t,s){if(1&t&&(e.j41(0,"div",17),e.DNE(1,Za,20,28,"div",18),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.allChannels)}}function es(t,s){if(1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"span",5),e.EFF(3,"Total Capacity"),e.k0s(),e.j41(4,"div",6)(5,"mat-hint",7)(6,"strong",8),e.EFF(7,"Local:"),e.k0s(),e.EFF(8),e.nI1(9,"number"),e.k0s(),e.j41(10,"mat-hint",9),e.nrm(11,"fa-icon",10),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.j41(14,"mat-hint",11)(15,"strong",8),e.EFF(16,"Remote:"),e.k0s(),e.EFF(17),e.nI1(18,"number"),e.k0s()(),e.nrm(19,"mat-progress-bar",12),e.k0s(),e.j41(20,"div",13),e.nrm(21,"mat-divider",14),e.k0s(),e.j41(22,"div",15),e.DNE(23,Ka,2,1,"div",16),e.k0s()()),2&t){const n=e.XpG(),i=e.sdS(2);e.R7$(8),e.SpI("",e.bMT(9,8,(null==n.channelBalances?null:n.channelBalances.localBalance)||0)," Sats"),e.R7$(3),e.Y8G("icon",n.faBalanceScale),e.R7$(),e.SpI(" (",e.bMT(13,10,(null==n.channelBalances?null:n.channelBalances.balancedness)||0),") "),e.R7$(5),e.SpI("",e.bMT(18,12,(null==n.channelBalances?null:n.channelBalances.remoteBalance)||0)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ(null!=n.channelBalances&&n.channelBalances.localBalance&&(null==n.channelBalances?null:n.channelBalances.localBalance)>0?+(null==n.channelBalances?null:n.channelBalances.localBalance)/(+(null==n.channelBalances?null:n.channelBalances.localBalance)+ +(null==n.channelBalances?null:n.channelBalances.remoteBalance))*100:0)),e.R7$(4),e.Y8G("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",i)}}function ts(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",26),e.EFF(1," No channels available. "),e.j41(2,"button",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.goToChannels())}),e.EFF(3,"Open Channel"),e.k0s()()}}function ns(t,s){if(1&t&&(e.j41(0,"div",28)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let is=(()=>{var t;class s{constructor(i){this.router=i,this.faBalanceScale=x.GR4,this.faDumbbell=x.VwO,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["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(o,a){if(1&o&&e.DNE(0,es,24,14,"div",2)(1,ts,4,0,"ng-template",null,0,e.C5r)(3,ns,3,1,"ng-template",null,1,e.C5r),2&o){const l=e.sdS(4);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[_.Sq,_.bT,O.aY,N.$z,C.MV,ne.q,V.HM,f.DJ,f.sA,f.UI,ee.oV,B.Ld,ie.Wk,_.P9,_.QX],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}))}return t(),s})();var ze=y(1092),Je=y(4104);const as=(t,s,n)=>({"mb-4":t,"mb-2":s,"mb-1":n}),ss=()=>["../connections/channels/open"],os=(t,s)=>({filterColumn:t,filterValue:s});function ls(t,s){if(1&t&&(e.j41(0,"mat-hint",19)(1,"strong",20),e.EFF(2,"Capacity: "),e.k0s(),e.EFF(3),e.nI1(4,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(3),e.SpI("",e.bMT(4,1,n.remote_balance||0)," Sats")}}function rs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",24),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2).$implicit,a=e.XpG(3);return r.Njj(a.onLoopOut(o))}),e.EFF(1,"Loop Out"),e.k0s()}}function cs(t,s){if(1&t&&(e.j41(0,"div",21)(1,"mat-hint",22)(2,"strong",20),e.EFF(3,"Capacity: "),e.k0s(),e.EFF(4),e.nI1(5,"number"),e.k0s(),e.DNE(6,rs,2,0,"button",23),e.k0s()),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.R7$(4),e.SpI("",e.bMT(5,2,n.local_balance||0)," Sats"),e.R7$(2),e.Y8G("ngIf",i.showLoop)}}function ps(t,s){if(1&t&&e.nrm(0,"mat-progress-bar",25),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.Y8G("value",e.mNQ(i.totalLiquidity>0?(+n.remote_balance||0)/i.totalLiquidity*100:0))}}function ms(t,s){if(1&t&&e.nrm(0,"mat-progress-bar",25),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.Y8G("value",e.mNQ(i.totalLiquidity>0?(+n.local_balance||0)/i.totalLiquidity*100:0))}}function us(t,s){if(1&t&&(e.j41(0,"div",13)(1,"a",14),e.EFF(2),e.nI1(3,"slice"),e.k0s(),e.j41(4,"div",15),e.DNE(5,ls,5,3,"mat-hint",16)(6,cs,7,4,"div",17),e.k0s(),e.DNE(7,ps,1,2,"mat-progress-bar",18)(8,ms,1,2,"mat-progress-bar",18),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("matTooltip",e.mNQ(n.remote_alias||n.remote_pubkey))("matTooltipDisabled",e.mNQ((n.remote_alias||n.remote_pubkey).length<26))("routerLink",e.lJ4(16,ss))("state",e.l_i(17,os,n.remote_alias?"remote_alias":"remote_pubkey",n.remote_alias||n.remote_pubkey)),e.R7$(),e.Lme(" ",e.brH(3,12,n.remote_alias||n.remote_pubkey||"",0,24),"",(n.remote_alias||n.remote_pubkey||"").length>25?"...":""," "),e.R7$(3),e.Y8G("ngIf","In"===i.direction),e.R7$(),e.Y8G("ngIf","Out"===i.direction),e.R7$(),e.Y8G("ngIf","In"===i.direction),e.R7$(),e.Y8G("ngIf","Out"===i.direction)}}function ds(t,s){if(1&t&&(e.j41(0,"div",11),e.DNE(1,us,9,20,"div",12),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.allChannels)}}function hs(t,s){if(1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"span",5),e.EFF(3,"Total Capacity"),e.k0s(),e.j41(4,"mat-hint",6),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.nrm(7,"mat-progress-bar",7),e.k0s(),e.j41(8,"div",8),e.nrm(9,"mat-divider",9),e.k0s(),e.DNE(10,ds,2,1,"div",10),e.k0s()),2&t){const n=e.XpG(),i=e.sdS(2);e.Y8G("ngClass",e.sMw(6,as,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM,n.screenSize===n.screenSizeEnum.MD,n.screenSize===n.screenSizeEnum.LG||n.screenSize===n.screenSizeEnum.XL)),e.R7$(5),e.SpI("",e.bMT(6,4,n.totalLiquidity)," Sats"),e.R7$(5),e.Y8G("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",i)}}function _s(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.goToChannels())}),e.EFF(1,"Open Channel"),e.k0s()}}function fs(t,s){if(1&t&&(e.j41(0,"div",26),e.EFF(1," No channels available. "),e.DNE(2,_s,2,0,"button",27),e.k0s()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngIf","Out"===n.direction)}}function gs(t,s){if(1&t&&(e.j41(0,"div",29)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let Cs=(()=>{var t;class s{constructor(i,o,a,l){this.router=i,this.loopService=o,this.commonService=a,this.store=l,this.targetConf=6,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.showLoop=!(!i?.settings.swapServerUrl||""===i.settings.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(i){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,g.Q)(this.unSubs[1])).subscribe(o=>{this.store.dispatch((0,I.xO)({payload:{minHeight:"56rem",data:{channel:i,minQuote:o[0],maxQuote:o[1],direction:c.C7.LOOP_OUT,component:ze.D}}}))})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix),e.rXU(Je.Q),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","80","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","end center","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","20","fxLayoutAlign","end center","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,hs,11,10,"div",2)(1,fs,3,1,"ng-template",null,0,e.C5r)(3,gs,3,1,"ng-template",null,1,e.C5r),2&o){const l=e.sdS(4);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[_.YU,_.Sq,_.bT,N.$z,C.MV,ne.q,V.HM,f.DJ,f.sA,f.UI,j.PW,ee.oV,B.Ld,ie.Wk,_.P9,_.QX],encapsulation:2}))}return t(),s})();const Qe=t=>({"dashboard-card-content":!0,"error-border":t}),ys=t=>({"p-0":t});function bs(t,s){if(1&t&&(e.j41(0,"button",28)(1,"mat-icon"),e.EFF(2,"more_vert"),e.k0s()()),2&t){e.XpG();const n=e.sdS(11);e.Y8G("matMenuTriggerFor",n)}}function Fs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG().$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function xs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){r.eBV(n);const o=e.XpG(3);return r.Njj(o.onsortChannelsBy())}),e.EFF(1),e.k0s()}if(2&t){const n=e.XpG(3);e.R7$(),e.SpI("Sort By ","Balance Score"===n.sortField?"Capacity":"Balance Score")}}function vs(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function Ts(t,s){if(1&t&&e.nrm(0,"rtl-node-info",31),2&t){const n=e.XpG(3);e.Y8G("information",n.information)("showColorFieldSeparately",!1)}}function ks(t,s){if(1&t&&e.nrm(0,"rtl-balances-info",32),2&t){const n=e.XpG(3);e.Y8G("balances",n.balances)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[2])}}function Ss(t,s){if(1&t&&e.nrm(0,"rtl-channel-capacity-info",33),2&t){const n=e.XpG(3);e.Y8G("sortBy",n.sortField)("channelBalances",n.channelBalances)("allChannels",n.allChannelsCapacity)("errorMessage",n.errorMessages[3])}}function Rs(t,s){if(1&t&&e.nrm(0,"rtl-fee-info",34),2&t){const n=e.XpG(3);e.Y8G("fees",n.fees)("errorMessage",n.errorMessages[1])}}function Es(t,s){if(1&t&&e.nrm(0,"rtl-channel-status-info",35),2&t){const n=e.XpG(3);e.Y8G("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[4])}}function Is(t,s){1&t&&(e.j41(0,"h3"),e.EFF(1,"Error! Unable to find information!"),e.k0s())}function Ls(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",11)(1,"mat-card",12)(2,"mat-card-header")(3,"mat-card-title",13)(4,"div"),e.nrm(5,"fa-icon",14),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.j41(8,"div"),e.DNE(9,bs,3,1,"button",15),e.j41(10,"mat-menu",16,1),e.DNE(12,Fs,2,1,"button",17)(13,xs,2,1,"button",18),e.k0s()()()(),e.j41(14,"mat-card-content",19),e.DNE(15,vs,1,0,"mat-progress-bar",20),e.j41(16,"div",21),e.DNE(17,Ts,1,2,"rtl-node-info",22)(18,ks,1,2,"rtl-balances-info",23)(19,Ss,1,4,"rtl-channel-capacity-info",24)(20,Rs,1,2,"rtl-fee-info",25)(21,Es,1,2,"rtl-channel-status-info",26)(22,Is,2,0,"h3",27),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(5),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(2),e.Y8G("ngIf",n.links[0]),e.R7$(3),e.Y8G("ngForOf",n.goToOptions),e.R7$(),e.Y8G("ngIf","capacity"===n.id),e.R7$(),e.Y8G("fxFlex",e.mNQ("node"===n.id||"balance"===n.id?70:"fee"===n.id||"status"===n.id?78:90))("ngClass",e.eq3(17,Qe,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.ERROR)||"capacity"===n.id&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.ERROR))),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.INITIATED)||"capacity"===n.id&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.INITIATED)),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","balance"),e.R7$(),e.Y8G("ngSwitchCase","capacity"),e.R7$(),e.Y8G("ngSwitchCase","fee"),e.R7$(),e.Y8G("ngSwitchCase","status")}}function ws(t,s){if(1&t&&(e.j41(0,"div",5)(1,"div",6),e.nrm(2,"fa-icon",7),e.j41(3,"span",8),e.EFF(4),e.k0s()(),e.j41(5,"mat-grid-list",9),e.DNE(6,Ls,23,19,"mat-grid-tile",10),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("icon",n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR?n.faFrown:n.faSmile),e.R7$(2),e.JRh(n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.COMPLETED?"Welcome "+n.information.alias+"! Your node is up and running.":n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),e.R7$(),e.Y8G("rowHeight",n.operatorCardHeight),e.R7$(),e.Y8G("ngForOf",n.operatorCards)}}function js(t,s){if(1&t&&(e.j41(0,"button",28)(1,"mat-icon"),e.EFF(2,"more_vert"),e.k0s()()),2&t){e.XpG();const n=e.sdS(9);e.Y8G("matMenuTriggerFor",n)}}function Gs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Ds(t,s){if(1&t&&(e.j41(0,"mat-card-header")(1,"mat-card-title",13)(2,"div"),e.nrm(3,"fa-icon",14),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.j41(6,"div"),e.DNE(7,js,3,1,"button",15),e.j41(8,"mat-menu",16,2),e.DNE(10,Gs,2,1,"button",17),e.k0s()()()()),2&t){const n=e.XpG().$implicit;e.R7$(3),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(2),e.Y8G("ngIf",n.links[0]),e.R7$(3),e.Y8G("ngForOf",n.goToOptions)}}function Ns(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function Ps(t,s){if(1&t&&e.nrm(0,"rtl-node-info",46),2&t){const n=e.XpG(3);e.Y8G("information",n.information)}}function $s(t,s){if(1&t&&e.nrm(0,"rtl-balances-info",32),2&t){const n=e.XpG(3);e.Y8G("balances",n.balances)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[2])}}function As(t,s){if(1&t&&e.nrm(0,"rtl-channel-liquidity-info",47),2&t){const n=e.XpG(3);e.Y8G("totalLiquidity",n.totalInboundLiquidity)("allChannels",n.allInboundChannels)("errorMessage",n.errorMessages[3])}}function Ms(t,s){if(1&t&&e.nrm(0,"rtl-channel-liquidity-info",48),2&t){const n=e.XpG(3);e.Y8G("totalLiquidity",n.totalOutboundLiquidity)("allChannels",n.allOutboundChannels)("errorMessage",n.errorMessages[3])}}function Bs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Os(t,s){if(1&t&&(e.j41(0,"span",49)(1,"mat-tab-group",50)(2,"mat-tab",51),e.nrm(3,"rtl-lightning-invoices",52),e.k0s(),e.j41(4,"mat-tab",53),e.nrm(5,"rtl-lightning-payments",52),e.k0s()(),e.j41(6,"div",54)(7,"button",28)(8,"mat-icon"),e.EFF(9,"more_vert"),e.k0s()(),e.j41(10,"mat-menu",16,3),e.DNE(12,Bs,2,1,"button",17),e.k0s()()()),2&t){const n=e.sdS(11),i=e.XpG().$implicit;e.R7$(7),e.Y8G("matMenuTriggerFor",n),e.R7$(5),e.Y8G("ngForOf",i.goToOptions)}}function Vs(t,s){1&t&&(e.j41(0,"h3"),e.EFF(1,"Error! Unable to find information!"),e.k0s())}function Ys(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",11)(1,"mat-card",38),e.DNE(2,Ds,11,4,"mat-card-header",39),e.j41(3,"mat-card-content",40),e.DNE(4,Ns,1,0,"mat-progress-bar",20),e.j41(5,"div",41),e.DNE(6,Ps,1,1,"rtl-node-info",42)(7,$s,1,2,"rtl-balances-info",23)(8,As,1,3,"rtl-channel-liquidity-info",43)(9,Ms,1,3,"rtl-channel-liquidity-info",44)(10,Os,13,2,"span",45)(11,Vs,2,0,"h3",27),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(),e.Y8G("ngClass",e.eq3(14,ys,"transactions"===n.id)),e.R7$(),e.Y8G("ngIf","transactions"!==n.id),e.R7$(),e.Y8G("fxFlex",e.mNQ("transactions"===n.id?100:"balance"===n.id?70:90))("ngClass",e.eq3(16,Qe,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.ERROR)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.INITIATED)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","balance"),e.R7$(),e.Y8G("ngSwitchCase","inboundLiq"),e.R7$(),e.Y8G("ngSwitchCase","outboundLiq"),e.R7$(),e.Y8G("ngSwitchCase","transactions")}}function Xs(t,s){if(1&t&&(e.j41(0,"div",36),e.nrm(1,"fa-icon",7),e.j41(2,"span",8),e.EFF(3),e.k0s()(),e.j41(4,"mat-grid-list",37),e.DNE(5,Ys,12,18,"mat-grid-tile",10),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faSmile),e.R7$(2),e.SpI("Welcome ",n.information.alias,"! Your node is up and running."),e.R7$(),e.Y8G("rowHeight",n.merchantCardHeight),e.R7$(),e.Y8G("ngForOf",n.merchantCards)}}let Us=(()=>{var t;class s{constructor(i,o,a,l,p){switch(this.logger=i,this.store=o,this.actions=a,this.commonService=l,this.router=p,this.faSmile=Oe.Qpm,this.faFrown=Oe.wB1,this.faAngleDoubleDown=x.WxX,this.faAngleDoubleUp=x.$sC,this.faChartPie=x.W1p,this.faBolt=x.zm_,this.faServer=x.D6w,this.faNetworkWired=x.eGi,this.flgChildInfoUpdated=!1,this.userPersonaEnum=c.HW,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="390px",this.merchantCardHeight="62px",this.sortField="Balance Score",this.screenSizeEnum=c.f7,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case c.f7.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","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:6},{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}];break;case c.f7.SM:case c.f7.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","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}];break;default: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","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(F.gj).pipe((0,g.Q)(this.unSubs[0]),(0,ge.E)(this.store.select(H._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=i.apiCallStatus,this.apiCallStatusNodeInfo.status===c.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=o,this.information=i.information}),this.store.select(F.oR).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessages[1]="",this.apiCallStatusFees=i.apiCallStatus,this.apiCallStatusFees.status===c.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=i.fees}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=i.apiCallStatus,this.apiCallStatusBlockchainBalance.status===c.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message?this.apiCallStatusBlockchainBalance.message:""),this.balances.onchain=i.blockchainBalance.total_balance&&+i.blockchainBalance.total_balance>=0?+i.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=i.apiCallStatus,this.apiCallStatusPendingChannels.status===c.wn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:i.pendingChannelsSummary.open?.num_channels,capacity:i.pendingChannelsSummary.open?.limbo_balance},this.channelsStatus.closing={num_channels:(i.pendingChannelsSummary.closing?.num_channels||0)+(i.pendingChannelsSummary.force_closing?.num_channels||0)+(i.pendingChannelsSummary.waiting_close?.num_channels||0),capacity:i.pendingChannelsSummary.total_limbo_balance}}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.errorMessages[3]="",this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusChannels.status===c.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:"");const o=i.lightningBalance&&i.lightningBalance.local?+i.lightningBalance.local:0,a=i.lightningBalance&&i.lightningBalance.remote?+i.lightningBalance.remote:0;this.channelBalances={localBalance:o,remoteBalance:a,balancedness:+(1-Math.abs((o-a)/(o+a))).toFixed(3)},this.balances.lightning=i.lightningBalance.local||0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=i.channelsSummary.active?.num_channels||0,this.inactiveChannels=i.channelsSummary.inactive?.num_channels||0,this.channelsStatus.active=i.channelsSummary.active,this.channelsStatus.inactive=i.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=i.channels?.filter(p=>!0===p.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels?.filter(p=>p.remote_balance&&p.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels?.filter(p=>p.local_balance&&p.local_balance>0),"local_balance"))),this.allChannels.forEach(p=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +(p.remote_balance||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +(p.local_balance||0)}),this.flgChildInfoUpdated=!!(this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum&&this.fees.month_fee_sum>=0),this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[5]),(0,U.p)(i=>i.type===c.QP.FETCH_FEES_LND||i.type===c.QP.SET_FEES_LND)).subscribe(i=>{i.type===c.QP.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),i.type===c.QP.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(i){"inactive"===i?this.router.navigateByUrl("/lnd/connections",{state:{filterColumn:"active",filterValue:i}}):this.router.navigateByUrl("/lnd/"+i)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((i,o)=>{const a=+(i.local_balance||0)+ +(i.remote_balance||0),l=+(o.local_balance||0)+ +(o.remote_balance||0);return a>l?-1:a{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(K.En),e.rXU($.h),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-home"]],standalone:!1,decls:3,vars:2,consts:[["merchantDashboard",""],["menuOperator","matMenu"],["menuMerchant","matMenu"],["menuTransactions","matMenu"],["fxLayout","column",4,"ngIf","ngIfElse"],["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"],["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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["fxFlex","100",3,"information"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stretch-tabs","false","mat-align-tabs","start","fxLayout","column",1,"dashboard-tabs-group"],["label","Receive"],["calledFrom","home"],["label","Pay"],[1,"underline"]],template:function(o,a){if(1&o&&e.DNE(0,ws,7,4,"div",4)(1,Xs,6,4,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf",(null==a.selNode?null:a.selNode.settings.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",l)}},dependencies:[_.YU,_.Sq,_.bT,_.ux,_.e1,_.fG,O.aY,_t.iY,k.RN,k.m2,k.MM,k.dh,Ce.B_,Ce.NS,oe.An,Se.kk,Se.fb,Se.Cp,V.HM,f.DJ,f.sA,f.UI,j.PW,A.mq,A.T8,Ve,Ye,Ue,Ua,He,qe,is,Cs],encapsulation:2}))}return t(),s})();var Re=y(1975),Ee=y(25837);function Hs(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1,"Channels"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.activeChannels))}}function qs(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1,"Peers"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.activePeers))}}let zs=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.logger=o,this.router=a,this.activePeers=0,this.activeChannels=0,this.faUsers=x.gdJ,this.faChartPie=x.W1p,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 h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i instanceof w.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.selNode=i}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.activePeers=i.peers&&i.peers.length?i.peers.length:0,this.logger.info(i)}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.activeChannels=i.channelsSummary.active?.num_channels||0,this.logger.info(i)}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.balances=[{title:"Total Balance",dataValue:i.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:i.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:i.blockchainBalance.unconfirmed_balance||0}],this.logger.info(i)})}onSelectedTabChange(i){this.router.navigateByUrl("/lnd/connections/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(D.gP),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-connections"]],standalone:!1,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"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["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(o,a){1&o&&(e.j41(0,"div",0),e.nrm(1,"fa-icon",1),e.j41(2,"span",2),e.EFF(3,"On-chain Balance"),e.k0s()(),e.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),e.nrm(7,"rtl-currency-unit-converter",5),e.k0s()()(),e.j41(8,"div",0),e.nrm(9,"fa-icon",1),e.j41(10,"span",2),e.EFF(11,"Connections"),e.k0s()(),e.j41(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),e.mxI("selectedIndexChange",function(p){return e.DH7(a.activeLink,p)||(a.activeLink=p),p}),e.bIt("selectedTabChange",function(p){return a.onSelectedTabChange(p)}),e.j41(16,"mat-tab"),e.DNE(17,Hs,2,2,"ng-template",8),e.k0s(),e.j41(18,"mat-tab"),e.DNE(19,qs,2,2,"ng-template",8),e.k0s()(),e.j41(20,"div",9),e.nrm(21,"router-outlet"),e.k0s()()()()),2&o&&(e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faUsers),e.R7$(6),e.R50("selectedIndex",a.activeLink))},dependencies:[O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,Re.k,A.ES,A.mq,A.T8,Ee.f,w.n3],encapsulation:2}))}return t(),s})();var Ie=y(99172),We=y(96354),Ze=y(60092);const Js=["form"];function Qs(t,s){if(1&t&&(e.j41(0,"mat-option",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(n.alias?n.alias:n.pub_key?n.pub_key:"")}}function Ws(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Peer alias is required."),e.k0s())}function Zs(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Peer not found in the list."),e.k0s())}function Ks(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",38)(1,"mat-label"),e.EFF(2,"Peer Alias"),e.k0s(),e.nrm(3,"input",39),e.j41(4,"mat-autocomplete",40,4),e.bIt("optionSelected",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.DNE(6,Qs,2,2,"mat-option",28),e.nI1(7,"async"),e.k0s(),e.DNE(8,Ws,2,0,"mat-error",20)(9,Zs,2,0,"mat-error",20),e.k0s()}if(2&t){const n=e.sdS(5),i=e.XpG();e.R7$(3),e.Y8G("formControl",i.selectedPeer)("matAutocomplete",n),e.R7$(),e.Y8G("displayWith",i.displayFn),e.R7$(2),e.Y8G("ngForOf",e.bMT(7,6,i.filteredPeers)),e.R7$(2),e.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),e.R7$(),e.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function eo(t,s){1&t&&e.eu8(0)}function to(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function no(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Amount must be less than or equal to ",n.totalBalance,".")}}function io(t,s){if(1&t&&(e.j41(0,"div",42),e.nrm(1,"fa-icon",43),e.j41(2,"span",6)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",44)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function ao(t,s){if(1&t&&(e.j41(0,"mat-option",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function so(t,s){if(1&t&&(e.j41(0,"mat-hint"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Mempool Min: ",n.recommendedFee.minimumFee," (Sats/vByte)")}}function oo(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Target Confirmation Blocks is required."),e.k0s())}function lo(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fee is required."),e.k0s())}function ro(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Lower than min feerate ",n.recommendedFee.minimumFee," in the mempool.")}}function co(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",32)(1,"mat-slide-toggle",45),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.taprootChannel,o)||(a.taprootChannel=o),r.Njj(o)}),e.EFF(2,"Taproot Channel"),e.k0s()()}if(2&t){const n=e.XpG();e.R7$(),e.R50("ngModel",n.taprootChannel)}}function po(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.channelConnectionError)}}function mo(t,s){if(1&t&&(e.j41(0,"div",46),e.nrm(1,"fa-icon",43),e.DNE(2,po,2,1,"span",20),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.channelConnectionError)}}function uo(t,s){if(1&t&&(e.j41(0,"mat-expansion-panel",48)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),e.EFF(4,"Peer: \xa0"),e.k0s(),e.j41(5,"strong",49),e.EFF(6),e.k0s()()(),e.j41(7,"div",13)(8,"div",50)(9,"div",38)(10,"h4",51),e.EFF(11,"Pubkey"),e.k0s(),e.j41(12,"span",52),e.EFF(13),e.k0s()()(),e.nrm(14,"mat-divider",53),e.j41(15,"div",50)(16,"div",54)(17,"h4",51),e.EFF(18,"Address"),e.k0s(),e.j41(19,"span",55),e.EFF(20),e.k0s()(),e.j41(21,"div",54)(22,"h4",51),e.EFF(23,"Inbound"),e.k0s(),e.j41(24,"span",55),e.EFF(25),e.k0s()()()()()),2&t){const n=e.XpG(2);e.R7$(6),e.JRh((null==n.peer?null:n.peer.alias)||(null==n.peer?null:n.peer.address)),e.R7$(7),e.JRh(n.peer.pub_key),e.R7$(7),e.JRh(null==n.peer?null:n.peer.address),e.R7$(5),e.JRh(null!=n.peer&&n.peer.inbound?"True":"False")}}function ho(t,s){if(1&t&&e.DNE(0,uo,26,4,"mat-expansion-panel",47),2&t){const n=e.XpG();e.Y8G("ngIf",n.peer)}}let Ke=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.logger=i,this.dialogRef=o,this.data=a,this.store=l,this.actions=p,this.commonService=m,this.dataService=v,this.selectedPeer=new d.hs,this.amount=new d.hs,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.isTaprootAvailable=!1,this.taprootChannel=!1,this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=c.XG,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}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.isTaprootAvailable=this.commonService.isVersionCompatible(this.information.version,"0.17.0")):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[],this.isTaprootAvailable=!1),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(a=>{this.selNode=a,this.isPrivate=!!a?.settings.unannouncedChannels}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,U.p)(a=>a.type===c.QP.UPDATE_API_CALL_STATUS_LND||a.type===c.QP.FETCH_CHANNELS_LND)).subscribe(a=>{a.type===c.QP.UPDATE_API_CALL_STATUS_LND&&a.payload.status===c.wn.ERROR&&"SaveNewChannel"===a.payload.action&&(this.channelConnectionError=a.payload.message),a.type===c.QP.FETCH_CHANNELS_LND&&this.dialogRef.close()});let i="",o="";this.sortedPeers=this.peers.sort((a,l)=>(i=a.alias?a.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",o=l.alias?l.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",io?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,g.Q)(this.unSubs[2]),(0,Ie.Z)(""),(0,We.T)(a=>"string"==typeof a?a:a.alias?a.alias:a.pub_key),(0,We.T)(a=>a?this.filterPeers(a):this.sortedPeers.slice()))}filterPeers(i){return this.sortedPeers?.filter(o=>0===o.alias?.toLowerCase().indexOf(i?i.toLowerCase():""))}displayFn(i){return i&&i.alias?i.alias:i&&i.pub_key?i.pub_key:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const i=this.peers?.filter(o=>o.alias?.length===this.selectedPeer.value.length&&0===o.alias?.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===i.length&&i[0].pub_key&&(this.selectedPubkey=i[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!this.selNode?.settings.unannouncedChannels,this.taprootChannel=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue||"2"===this.selTransType&&this.recommendedFee.minimumFee>+this.transTypeValue)return!0;this.store.dispatch((0,T.vL)({payload:{selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed,commitmentType:this.taprootChannel?5:null}}))}onAdvancedPanelToggle(i){this.advancedTitle=i?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Taproot Channel: "+(this.taprootChannel?"Yes":"No")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}onSelTransTypeChanged(i){this.transTypeValue="",i.value===this.transTypes[2].id&&this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[3])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(L.il),e.rXU(K.En),e.rXU($.h),e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-open-channel"]],viewQuery:function(o,a){if(1&o&&e.GBs(Js,7),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first)}},standalone:!1,decls:66,vars:30,consts:[["form","ngForm"],["amt","ngModel"],["transTypeVal","ngModel"],["peerDetailsExpansionBlock",""],["auto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start end"],["matInput","","type","number","required","","name","amnt",3,"ngModelChange","step","min","max","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["color","primary","name","isPrivate",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","column","fxFlex","49"],[3,"valueChange","selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","name","transTpValue",3,"ngModelChange","required","disabled","step","min","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-2"],["fxFlex","50","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","50","fxLayoutAlign","start center"],["color","primary","name","spendUnconfirmed",3,"ngModelChange","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit"],["fxFlex","100"],["type","text","aria-label","Peers","matInput","","required","",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["color","primary","name","taprootChannel",3,"ngModelChange","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayout","row"],["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(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),e.EFF(5),e.k0s()(),e.j41(6,"button",10),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",11)(9,"form",12,0),e.bIt("submit",function(){return r.eBV(l),r.Njj(a.onOpenChannel())})("reset",function(){return r.eBV(l),r.Njj(a.resetData())}),e.j41(11,"div",13),e.DNE(12,Ks,10,8,"mat-form-field",14),e.k0s(),e.DNE(13,eo,1,0,"ng-container",15),e.j41(14,"div",13)(15,"div",16)(16,"mat-form-field",17)(17,"mat-label"),e.EFF(18,"Amount"),e.k0s(),e.j41(19,"input",18,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.fundingAmount,m)||(a.fundingAmount=m),r.Njj(m)}),e.k0s(),e.j41(21,"mat-hint"),e.EFF(22),e.nI1(23,"number"),e.k0s(),e.j41(24,"span",19),e.EFF(25," Sats "),e.k0s(),e.DNE(26,to,2,0,"mat-error",20)(27,no,2,1,"mat-error",20),e.k0s(),e.j41(28,"div",21)(29,"mat-slide-toggle",22),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.isPrivate,m)||(a.isPrivate=m),r.Njj(m)}),e.EFF(30,"Private Channel"),e.k0s()()(),e.j41(31,"mat-expansion-panel",23),e.bIt("closed",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!0))})("opened",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!1))}),e.j41(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"span"),e.EFF(35),e.k0s()()(),e.j41(36,"div",24),e.DNE(37,io,16,6,"div",25),e.j41(38,"div",16)(39,"mat-form-field",26)(40,"mat-label"),e.EFF(41,"Transaction Type"),e.k0s(),e.j41(42,"mat-select",27),e.mxI("valueChange",function(m){return r.eBV(l),e.DH7(a.selTransType,m)||(a.selTransType=m),r.Njj(m)}),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.onSelTransTypeChanged(m))}),e.DNE(43,ao,2,2,"mat-option",28),e.k0s()(),e.j41(44,"mat-form-field",26)(45,"mat-label"),e.EFF(46),e.k0s(),e.j41(47,"input",29,2),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.transTypeValue,m)||(a.transTypeValue=m),r.Njj(m)}),e.k0s(),e.DNE(49,so,2,1,"mat-hint",20)(50,oo,2,0,"mat-error",20)(51,lo,2,0,"mat-error",20)(52,ro,2,1,"mat-error",20),e.k0s()(),e.j41(53,"div",30),e.DNE(54,co,3,1,"div",31),e.j41(55,"div",32)(56,"mat-slide-toggle",33),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.spendUnconfirmed,m)||(a.spendUnconfirmed=m),r.Njj(m)}),e.EFF(57,"Spend Unconfirmed Output"),e.k0s()()()()()(),e.DNE(58,mo,3,2,"div",34),e.j41(59,"div",35)(60,"button",36),e.EFF(61,"Clear Fields"),e.k0s(),e.j41(62,"button",37),e.EFF(63,"Open Channel"),e.k0s()()()()()(),e.DNE(64,ho,1,1,"ng-template",null,3,e.C5r)}if(2&o){const l=e.sdS(20),p=e.sdS(65);e.R7$(5),e.JRh(a.alertTitle),e.R7$(7),e.Y8G("ngIf",!a.peer&&a.peers&&a.peers.length>0),e.R7$(),e.Y8G("ngTemplateOutlet",p),e.R7$(6),e.Y8G("step",1e3)("min",1)("max",a.totalBalance),e.R50("ngModel",a.fundingAmount),e.R7$(3),e.SpI("(Remaining: ",e.bMT(23,28,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),")"),e.R7$(4),e.Y8G("ngIf",null==l.errors?null:l.errors.required),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.max),e.R7$(2),e.R50("ngModel",a.isPrivate),e.R7$(6),e.JRh(a.advancedTitle),e.R7$(2),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(5),e.R50("value",a.selTransType),e.R7$(),e.Y8G("ngForOf",a.transTypes),e.R7$(3),e.JRh("0"===a.selTransType?"Default":"1"===a.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)"),e.R7$(),e.Y8G("required","0"!==a.selTransType)("disabled","0"===a.selTransType)("step",1)("min","2"===a.selTransType?a.recommendedFee.minimumFee:0),e.R50("ngModel",a.transTypeValue),e.R7$(2),e.Y8G("ngIf","2"===a.selTransType),e.R7$(),e.Y8G("ngIf","1"===a.selTransType&&!a.transTypeValue),e.R7$(),e.Y8G("ngIf","2"===a.selTransType&&!a.transTypeValue),e.R7$(),e.Y8G("ngIf","2"===a.selTransType&&a.transTypeValue&&+a.transTypeValue{var t;class s{constructor(i,o,a,l,p,m,v,b,S){this.dialogRef=i,this.data=o,this.store=a,this.lndEffects=l,this.formBuilder=p,this.actions=m,this.logger=v,this.commonService=b,this.dataService=S,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.peerAddress="",this.totalBalance=0,this.transTypes=c.XG,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.isTaprootAvailable=!1,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.totalBalance=this.data.message?.balance||0,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[d.k0.required]],peerAddress:[this.data.message?.peer?.pub_key?this.data.message?.peer?.pub_key+(this.data.message?.peer?.address?"@"+this.data.message?.peer?.address:""):"",[d.k0.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[d.k0.required,d.k0.min(1),d.k0.max(this.totalBalance)]],isPrivate:[!!this.selNode?.settings.unannouncedChannels],selTransType:[c.XG[0].id],transTypeValue:[{value:"",disabled:!0}],taprootChannel:[!1],spendUnconfirmed:[!1],hiddenAmount:["",[d.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(F.gj).pipe((0,g.Q)(this.unSubs[0]),(0,ge.E)(this.store.select(H._c))).subscribe(([o,a])=>{this.selNode=a,this.channelFormGroup.controls.isPrivate.setValue(!!a?.settings.unannouncedChannels),this.isTaprootAvailable=this.commonService.isVersionCompatible(o.information.version,"0.17.0")}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,g.Q)(this.unSubs[1])).subscribe(o=>{o===c.XG[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([d.k0.required]))}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(o=>o.type===c.QP.NEWLY_ADDED_PEER_LND||o.type===c.QP.FETCH_PENDING_CHANNELS_LND||o.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(o=>{o.type===c.QP.NEWLY_ADDED_PEER_LND&&(this.logger.info(o.payload),this.flgEditable=!1,this.newlyAddedPeer=o.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),o.type===c.QP.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),o.type===c.QP.UPDATE_API_CALL_STATUS_LND&&o.payload.status===c.wn.ERROR&&("SaveNewPeer"===o.payload.action||"FetchGraphNode"===o.payload.action?this.peerConnectionError=o.payload.message:"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const i=this.peerFormGroup.controls.peerAddress.value.search("@");let o="",a="";i>-1?(o=this.peerFormGroup.controls.peerAddress.value.substring(0,i),a=this.peerFormGroup.controls.peerAddress.value.substring(i+1),this.connectPeerWithParams(o,a)):(this.store.dispatch((0,T.t0)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,W.s)(1)).subscribe(l=>{setTimeout(()=>{a=l.node.addresses&&l.node.addresses.length&&l.node.addresses.length>0&&l.node.addresses[0].addr?l.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,a)},0)}))}connectPeerWithParams(i,o){this.store.dispatch((0,T.sq)({payload:{pubkey:i,host:o,perm:!1}}))}onOpenChannel(){return"2"===this.channelFormGroup.controls.selTransType.value&&this.recommendedFee.minimumFee>this.channelFormGroup.controls.transTypeValue.value?(this.channelFormGroup.controls.transTypeValue.setErrors({minimum:!0}),!0):!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||(this.channelConnectionError="",void this.store.dispatch((0,T.vL)({payload:{selectedPeerPubkey:this.newlyAddedPeer?.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value,commitmentType:this.channelFormGroup.controls.taprootChannel.value?5:null}})))}onSelTransTypeChanged(i){this.channelFormGroup.controls.transTypeValue.setValue(""),i.value===this.transTypes[2].id&&this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[3])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(i){switch(i.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: "+this.newlyAddedPeer?.alias:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer?.alias:"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}i.selectedIndex{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(L.il),e.rXU(me.L),e.rXU(d.ze),e.rXU(K.En),e.rXU(D.gP),e.rXU($.h),e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-connect-peer"]],viewQuery:function(o,a){if(1&o&&(e.GBs(_o,5),e.GBs(fo,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:70,vars:31,consts:[["stepper",""],["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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","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"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","50"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"step","min","required"],["fxFlex","50","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["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,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["tabindex","6","color","primary","formControlName","taprootChannel","name","taprootChannel",1,"ps-2"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Connect to a new peer"),e.k0s()(),e.j41(6,"button",6),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.stepSelectionChanged(m))}),e.j41(12,"mat-step",10)(13,"form",11),e.DNE(14,go,1,1,"ng-template",12),e.j41(15,"mat-form-field",13)(16,"mat-label"),e.EFF(17,"Lightning Address (pubkey OR pubkey@ip:port)"),e.k0s(),e.nrm(18,"input",14),e.DNE(19,Co,2,0,"mat-error",15),e.k0s(),e.DNE(20,yo,4,2,"div",16),e.j41(21,"div",17)(22,"button",18),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onConnectPeer())}),e.EFF(23),e.k0s()()()(),e.j41(24,"mat-step",10)(25,"form",19),e.DNE(26,bo,1,1,"ng-template",20),e.j41(27,"div",21),e.DNE(28,Fo,16,6,"div",22),e.j41(29,"div",23)(30,"mat-form-field",24)(31,"mat-label"),e.EFF(32,"Amount"),e.k0s(),e.nrm(33,"input",25),e.j41(34,"mat-hint"),e.EFF(35),e.nI1(36,"number"),e.k0s(),e.j41(37,"span",26),e.EFF(38," Sats "),e.k0s(),e.DNE(39,xo,2,0,"mat-error",15)(40,vo,2,0,"mat-error",15)(41,To,2,1,"mat-error",15),e.k0s(),e.j41(42,"div",27)(43,"mat-slide-toggle",28),e.EFF(44,"Private Channel"),e.k0s()()(),e.j41(45,"div",29)(46,"mat-form-field",30)(47,"mat-label"),e.EFF(48,"Transaction Type"),e.k0s(),e.j41(49,"mat-select",31),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.onSelTransTypeChanged(m))}),e.DNE(50,ko,2,2,"mat-option",32),e.k0s()(),e.j41(51,"mat-form-field",33)(52,"mat-label"),e.EFF(53),e.k0s(),e.nrm(54,"input",34),e.DNE(55,So,2,1,"mat-hint",15)(56,Ro,2,1,"mat-error",15)(57,Eo,2,1,"mat-error",15),e.k0s()(),e.j41(58,"div",29),e.DNE(59,Io,3,0,"div",35),e.j41(60,"div",36)(61,"mat-slide-toggle",37),e.EFF(62,"Spend Unconfirmed Output"),e.k0s()()()(),e.DNE(63,Lo,4,2,"div",16),e.j41(64,"div",17)(65,"button",38),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onOpenChannel())}),e.EFF(66),e.k0s()()()()(),e.j41(67,"div",39)(68,"button",40),e.EFF(69),e.k0s()()()()()()}2&o&&(e.R7$(10),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",a.peerFormGroup)("editable",a.flgEditable),e.R7$(),e.Y8G("formGroup",a.peerFormGroup),e.R7$(6),e.Y8G("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),e.R7$(),e.Y8G("ngIf",""!==a.peerConnectionError),e.R7$(3),e.JRh(""!==a.peerConnectionError?"Retry":"Add Peer"),e.R7$(),e.Y8G("stepControl",a.channelFormGroup)("editable",a.flgEditable),e.R7$(),e.Y8G("formGroup",a.channelFormGroup),e.R7$(3),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(5),e.Y8G("step",1e3),e.R7$(2),e.SpI("Remaining: ",e.bMT(36,29,a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0))),e.R7$(4),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),e.R7$(9),e.Y8G("ngForOf",a.transTypes),e.R7$(3),e.JRh("0"===a.channelFormGroup.controls.selTransType.value?"Default":"1"===a.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"),e.R7$(),e.Y8G("step",1)("min","2"===a.channelFormGroup.controls.selTransType.value?a.recommendedFee.minimumFee:0)("required","0"!==a.channelFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf","2"===a.channelFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.required),e.R7$(),e.Y8G("ngIf",a.channelFormGroup.controls.transTypeValue.value&&(null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.minimum)),e.R7$(2),e.Y8G("ngIf",a.isTaprootAvailable),e.R7$(4),e.Y8G("ngIf",""!==a.channelConnectionError),e.R7$(3),e.JRh(""!==a.channelConnectionError?"Retry":"Open Channel"),e.R7$(2),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(null!=a.newlyAddedPeer&&a.newlyAddedPeer.pub_key?"Do It Later":"Close"))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.j4,d.JD,O.aY,Y.tx,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.MV,C.TL,C.yw,f.DJ,f.sA,f.UI,E.VO,X.wT,he.sG,z.V5,z.Ti,z.M6,te.N,ae.V,_.QX],encapsulation:2}))}return t(),s})();const wo=()=>["all"],jo=t=>({"error-border":t}),Go=()=>["no_peer"],Le=t=>({width:t}),Do=t=>({"display-none":t});function No(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Po(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function $o(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Alias"),e.k0s())}function Ao(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Le,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function Mo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Public Key"),e.k0s())}function Bo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Le,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pub_key)}}function Oo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Address"),e.k0s())}function Vo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Le,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.address)}}function Yo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Sync Type"),e.k0s())}function Xo(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,null==n?null:n.sync_type,"sync","_"))}}function Uo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Inbound"),e.k0s())}function Ho(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null!=n&&n.inbound?"Yes":"No")}}function qo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Bytes Sent"),e.k0s())}function zo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.bytes_sent)," ")}}function Jo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Bytes Received"),e.k0s())}function Qo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.bytes_recv)," ")}}function Wo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Sats Sent"),e.k0s())}function Zo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.sat_sent)," ")}}function Ko(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Sats Received"),e.k0s())}function el(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.sat_recv)," ")}}function tl(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Ping Time ("),e.j41(2,"span"),e.EFF(3,"\xb5"),e.k0s(),e.EFF(4,"s)"),e.k0s())}function nl(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.ping_time)," ")}}function il(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",47)(1,"div",48)(2,"mat-select",49),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",50),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function al(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",51)(1,"div",48)(2,"mat-select",49),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",50),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onPeerClick(a,o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",50),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onOpenChannel(o))}),e.EFF(7,"Open Channel"),e.k0s(),e.j41(8,"mat-option",50),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onPeerDetach(o))}),e.EFF(9,"Disconnect"),e.k0s()()()()}}function sl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No connected peer."),e.k0s())}function ol(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting peers..."),e.k0s())}function ll(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function rl(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,sl,2,0,"p",53)(2,ol,2,0,"p",53)(3,ll,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function cl(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,Do,(null==n.peers?null:n.peers.data)&&(null==n.peers||null==n.peers.data?null:n.peers.data.length)>0))}}function pl(t,s){1&t&&e.nrm(0,"tr",55)}function ml(t,s){1&t&&e.nrm(0,"tr",56)}let ul=(()=>{var t;class s{constructor(i,o,a,l,p){this.logger=i,this.store=o,this.rtlEffects=a,this.commonService=l,this.camelCaseWithReplace=p,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.availableBalance=0,this.faUsers=x.gdJ,this.displayedColumns=[],this.peersData=[],this.peers=new u.I6([]),this.information={},this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.information=i}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.availableBalance=i.blockchainBalance.total_balance||0}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=i.peers,this.peersData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPeersTable(this.peersData),this.logger.info(i)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Peer Information",goToFieldValue:i.pub_key,goToName:"Graph lookup",goToLink:"/lnd/graph/lookups",showQRName:"Public Key",showQRField:i.pub_key,message:[[{key:"pub_key",value:i.pub_key,title:"Public Key",width:100}],[{key:"address",value:i.address,title:"Address",width:100}],[{key:"alias",value:i.alias,title:"Alias",width:40},{key:"inbound",value:i.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:i.ping_time,title:"Ping Time (\xb5s)",width:30,type:c.UN.NUMBER}],[{key:"sat_sent",value:i.sat_sent,title:"Satoshis Sent",width:50,type:c.UN.NUMBER},{key:"sat_recv",value:i.sat_recv,title:"Satoshis Received",width:50,type:c.UN.NUMBER}],[{key:"bytes_sent",value:i.bytes_sent,title:"Bytes Sent",width:50,type:c.UN.NUMBER},{key:"bytes_recv",value:i.bytes_recv,title:"Bytes Received",width:50,type:c.UN.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,I.xO)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:et}}}))}onOpenChannel(i){this.store.dispatch((0,I.xO)({payload:{data:{alertTitle:"Open Channel",message:{peer:i,information:this.information,balance:this.availableBalance},component:Ke}}}))}onPeerDetach(i){this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(i.alias?i.alias:i.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[4])).subscribe(a=>{a&&this.store.dispatch((0,T.ed)({payload:{pubkey:i.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.peers.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=JSON.stringify(i).toLowerCase();break;case"sync_type":a=this.camelCaseWithReplace.transform(i.sync_type||"","sync","_").trim().toLowerCase();break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"sync_type"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadPeersTable(i){this.peers=new u.I6(i?[...i]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,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(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(_e.H),e.rXU($.h),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Peers")}])],decls:64,vars:19,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","address"],["matColumnDef","sync_type"],["matColumnDef","inbound"],["matColumnDef","bytes_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","bytes_recv"],["matColumnDef","sat_sent"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["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",""],["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-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"button",3),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onConnectPeer())}),e.EFF(3,"Add Peer"),e.k0s()(),e.j41(4,"div",4)(5,"div",5)(6,"div",6),e.nrm(7,"fa-icon",7),e.j41(8,"span",8),e.EFF(9,"Connected Peers"),e.k0s()(),e.j41(10,"div",9)(11,"mat-form-field",10)(12,"mat-label"),e.EFF(13,"Filter By"),e.k0s(),e.j41(14,"mat-select",11),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(15,"perfect-scrollbar"),e.DNE(16,No,2,2,"mat-option",12),e.k0s()()(),e.j41(17,"mat-form-field",10)(18,"mat-label"),e.EFF(19,"Filter"),e.k0s(),e.j41(20,"input",13),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(21,"div",14),e.DNE(22,Po,1,0,"mat-progress-bar",15),e.j41(23,"table",16,0),e.qex(25,17),e.DNE(26,$o,2,0,"th",18)(27,Ao,4,4,"td",19),e.bVm(),e.qex(28,20),e.DNE(29,Mo,2,0,"th",18)(30,Bo,4,4,"td",19),e.bVm(),e.qex(31,21),e.DNE(32,Oo,2,0,"th",18)(33,Vo,4,4,"td",19),e.bVm(),e.qex(34,22),e.DNE(35,Yo,2,0,"th",18)(36,Xo,3,5,"td",19),e.bVm(),e.qex(37,23),e.DNE(38,Uo,2,0,"th",18)(39,Ho,2,1,"td",19),e.bVm(),e.qex(40,24),e.DNE(41,qo,2,0,"th",25)(42,zo,4,3,"td",19),e.bVm(),e.qex(43,26),e.DNE(44,Jo,2,0,"th",25)(45,Qo,4,3,"td",19),e.bVm(),e.qex(46,27),e.DNE(47,Wo,2,0,"th",25)(48,Zo,4,3,"td",19),e.bVm(),e.qex(49,28),e.DNE(50,Ko,2,0,"th",25)(51,el,4,3,"td",19),e.bVm(),e.qex(52,29),e.DNE(53,tl,5,0,"th",25)(54,nl,4,3,"td",19),e.bVm(),e.qex(55,30),e.DNE(56,il,6,0,"th",31)(57,al,10,0,"td",32),e.bVm(),e.qex(58,33),e.DNE(59,rl,4,3,"td",34),e.bVm(),e.DNE(60,cl,1,3,"tr",35)(61,pl,1,0,"tr",36)(62,ml,1,0,"tr",37),e.k0s()(),e.nrm(63,"mat-paginator",38),e.k0s()()}2&o&&(e.R7$(7),e.Y8G("icon",a.faUsers),e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(15,wo).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.peers)("ngClass",e.eq3(16,jo,""!==a.errorMessage)),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(18,Go)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,O.aY,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX,J.VD],encapsulation:2}))}return t(),s})();function dl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Open"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numOpenChannels))}}function hl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Pending"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numPendingChannels))}}function _l(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Closed"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numClosedChannels))}}function fl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Active HTLCs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numActiveHTLCs))}}let gl=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i instanceof w.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.numOpenChannels=i.channels&&i.channels.length?i.channels.length:0,this.numActiveHTLCs=i.channels?.reduce((o,a)=>o+(a.pending_htlcs&&a.pending_htlcs.length>0?a.pending_htlcs.length:0),0),this.logger.info(i)}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.numPendingChannels=i.pendingChannelsSummary.total_channels?i.pendingChannelsSummary.total_channels:0}),this.store.select(F.Bw).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.numClosedChannels=i.closedChannels&&i.closedChannels.length?i.closedChannels.length:0}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[5])).subscribe(i=>{this.totalBalance=+(i.blockchainBalance.total_balance||0)}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[6])).subscribe(i=>{this.peers=i.peers,this.peers.forEach(o=>{(!o.alias||""===o.alias)&&(o.alias=o.pub_key?.substring(0,20))}),this.logger.info(i)})}onOpenChannel(){this.store.dispatch((0,I.xO)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Ke}}}))}onSelectedTabChange(i){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channels-tables"]],standalone:!1,decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["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(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return a.onOpenChannel()}),e.EFF(3,"Open Channel"),e.k0s()(),e.j41(4,"div",3)(5,"mat-tab-group",4),e.mxI("selectedIndexChange",function(p){return e.DH7(a.activeLink,p)||(a.activeLink=p),p}),e.bIt("selectedTabChange",function(p){return a.onSelectedTabChange(p)}),e.j41(6,"mat-tab"),e.DNE(7,dl,2,2,"ng-template",5),e.k0s(),e.j41(8,"mat-tab"),e.DNE(9,hl,2,2,"ng-template",5),e.k0s(),e.j41(10,"mat-tab"),e.DNE(11,_l,2,2,"ng-template",5),e.k0s(),e.j41(12,"mat-tab"),e.DNE(13,fl,2,2,"ng-template",5),e.k0s()(),e.j41(14,"div",6),e.nrm(15,"router-outlet"),e.k0s()()()),2&o&&(e.R7$(5),e.R50("selectedIndex",a.activeLink))},dependencies:[N.$z,f.DJ,f.sA,f.UI,Re.k,A.ES,A.mq,A.T8,w.n3],encapsulation:2}))}return t(),s})();var le=y(95416),be=y(29157);const Cl=t=>({"xs-scroll-y":t});function yl(t,s){if(1&t){const n=e.RV6();e.j41(0,"fa-icon",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onExplorerClicked())}),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("matTooltip",e.mNQ("Link to "+(null==n.selNode||null==n.selNode.settings?null:n.selNode.settings.blockExplorerUrl)))("icon",n.faUpRightFromSquare)}}function bl(t,s){if(1&t&&(e.j41(0,"div")(1,"div",10)(2,"div",19)(3,"h4",12),e.EFF(4,"Commit Fee"),e.k0s(),e.j41(5,"span",20),e.EFF(6),e.nI1(7,"number"),e.k0s()(),e.j41(8,"div",19)(9,"h4",12),e.EFF(10,"Commit Weight"),e.k0s(),e.j41(11,"span",20),e.EFF(12),e.nI1(13,"number"),e.k0s()(),e.j41(14,"div",19)(15,"h4",12),e.EFF(16,"Fee/KW"),e.k0s(),e.j41(17,"span",20),e.EFF(18),e.nI1(19,"number"),e.k0s()(),e.j41(20,"div",19)(21,"h4",12),e.EFF(22,"Static Remote Key"),e.k0s(),e.j41(23,"span",20),e.EFF(24),e.k0s()()(),e.nrm(25,"mat-divider",15),e.j41(26,"div",10)(27,"div",19)(28,"h4",12),e.EFF(29),e.k0s(),e.j41(30,"span",20),e.EFF(31),e.nI1(32,"number"),e.k0s()(),e.j41(33,"div",19)(34,"h4",12),e.EFF(35),e.k0s(),e.j41(36,"span",20),e.EFF(37),e.nI1(38,"number"),e.k0s()(),e.j41(39,"div",19)(40,"h4",12),e.EFF(41,"Unsettled Balance"),e.k0s(),e.j41(42,"span",20),e.EFF(43),e.nI1(44,"number"),e.k0s()(),e.j41(45,"div",19)(46,"h4",12),e.EFF(47,"CSV Delay"),e.k0s(),e.j41(48,"span",20),e.EFF(49),e.nI1(50,"number"),e.k0s()()(),e.nrm(51,"mat-divider",15),e.j41(52,"div",10)(53,"div",19)(54,"h4",12),e.EFF(55,"Local Reserve (Sats)"),e.k0s(),e.j41(56,"span",20),e.EFF(57),e.nI1(58,"number"),e.k0s()(),e.j41(59,"div",19)(60,"h4",12),e.EFF(61,"Remote Reserve (Sats)"),e.k0s(),e.j41(62,"span",20),e.EFF(63),e.nI1(64,"number"),e.k0s()(),e.j41(65,"div",19)(66,"h4",12),e.EFF(67,"Lifetime (Seconds)"),e.k0s(),e.j41(68,"span",20),e.EFF(69),e.nI1(70,"number"),e.k0s()(),e.j41(71,"div",19)(72,"h4",12),e.EFF(73,"Pending HTLCs"),e.k0s(),e.j41(74,"span",20),e.EFF(75),e.nI1(76,"number"),e.k0s()()(),e.nrm(77,"mat-divider",15),e.k0s()),2&t){const n=e.XpG();e.R7$(6),e.JRh(e.bMT(7,17,n.channel.commit_fee)),e.R7$(6),e.JRh(e.bMT(13,19,n.channel.commit_weight)),e.R7$(6),e.JRh(e.bMT(19,21,n.channel.fee_per_kw)),e.R7$(6),e.JRh(n.channel.static_remote_key?"Yes":"No"),e.R7$(),e.Y8G("inset",!0),e.R7$(4),e.JRh(n.screenSize===n.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),e.R7$(2),e.JRh(e.bMT(32,23,n.channel.total_satoshis_sent)),e.R7$(4),e.JRh(n.screenSize===n.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),e.R7$(2),e.JRh(e.bMT(38,25,n.channel.total_satoshis_received)),e.R7$(6),e.JRh(e.bMT(44,27,n.channel.unsettled_balance)),e.R7$(6),e.JRh(e.bMT(50,29,n.channel.csv_delay)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(58,31,n.channel.local_chan_reserve_sat)),e.R7$(6),e.JRh(e.bMT(64,33,n.channel.remote_chan_reserve_sat)),e.R7$(6),e.JRh(e.bMT(70,35,n.channel.lifetime)),e.R7$(6),e.JRh(e.bMT(76,37,null==n.channel||null==n.channel.pending_htlcs?null:n.channel.pending_htlcs.length)),e.R7$(2),e.Y8G("inset",!0)}}function Fl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Show Advanced"),e.k0s())}function xl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Hide Advanced"),e.k0s())}function vl(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",28),e.bIt("copied",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onCopyChanID(o))}),e.EFF(1,"Copy Channel ID"),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("payload",n.channel.chan_id)}}function Tl(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(1,"OK"),e.k0s()}}let we=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.logger=a,this.commonService=l,this.snackBar=p,this.router=m,this.faReceipt=x.Mf0,this.faUpRightFromSquare=x.k02,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.channel=this.data.channel,this.showCopy=!!this.data.showCopy,this.selNode=this.data.selNode,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(i){this.snackBar.open("Channel ID "+i+" copied."),this.logger.info("Copied Text: "+i)}onExplorerClicked(){this.selNode?.settings?.blockExplorerUrl&&window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+this.channel.channel_point,"_blank")}onGoToLink(i,o){this.router.navigateByUrl("/lnd/graph/lookups",{state:{lookupType:i,lookupValue:o}}),this.onClose()}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU($.h),e.rXU(le.UG),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-information"]],standalone:!1,decls:95,vars:37,consts:[["hideAdvancedText",""],["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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],["tabindex","4","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["tabindex","5",1,"foreground-secondary-text"],["class","ml-1 fa-icon-primary",3,"matTooltip","icon","click",4,"ngIf"],["tabindex","6","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["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"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4),e.nrm(4,"fa-icon",5),e.j41(5,"span",6),e.EFF(6,"Channel Information"),e.k0s()(),e.j41(7,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(8,"X"),e.k0s()(),e.j41(9,"mat-card-content",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"h4",12),e.EFF(14,"Channel ID"),e.k0s(),e.j41(15,"span",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onGoToLink("1",a.channel.chan_id))}),e.EFF(16),e.k0s()(),e.j41(17,"div",11)(18,"h4",12),e.EFF(19,"Peer Alias"),e.k0s(),e.j41(20,"span",14),e.EFF(21),e.k0s()()(),e.nrm(22,"mat-divider",15),e.j41(23,"div",10)(24,"div",2)(25,"h4",12),e.EFF(26,"Channel Point"),e.k0s(),e.j41(27,"span",16),e.EFF(28),e.DNE(29,yl,1,3,"fa-icon",17),e.k0s()()(),e.nrm(30,"mat-divider",15),e.j41(31,"div",10)(32,"div",2)(33,"h4",12),e.EFF(34,"Peer Public Key"),e.k0s(),e.j41(35,"span",18),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onGoToLink("0",a.channel.remote_pubkey))}),e.EFF(36),e.k0s()()(),e.nrm(37,"mat-divider",15),e.j41(38,"div",10)(39,"div",19)(40,"h4",12),e.EFF(41,"Local Balance"),e.k0s(),e.j41(42,"span",20),e.EFF(43),e.nI1(44,"number"),e.k0s()(),e.j41(45,"div",19)(46,"h4",12),e.EFF(47,"Remote Balance"),e.k0s(),e.j41(48,"span",20),e.EFF(49),e.nI1(50,"number"),e.k0s()(),e.j41(51,"div",19)(52,"h4",12),e.EFF(53,"Capacity"),e.k0s(),e.j41(54,"span",20),e.EFF(55),e.nI1(56,"number"),e.k0s()(),e.j41(57,"div",19)(58,"h4",12),e.EFF(59,"Uptime (Seconds)"),e.k0s(),e.j41(60,"span",20),e.EFF(61),e.nI1(62,"number"),e.k0s()()(),e.nrm(63,"mat-divider",15),e.j41(64,"div",10)(65,"div",19)(66,"h4",12),e.EFF(67,"Active"),e.k0s(),e.j41(68,"span",20),e.EFF(69),e.k0s()(),e.j41(70,"div",19)(71,"h4",12),e.EFF(72,"Private"),e.k0s(),e.j41(73,"span",20),e.EFF(74),e.k0s()(),e.j41(75,"div",19)(76,"h4",12),e.EFF(77,"Initiator"),e.k0s(),e.j41(78,"span",20),e.EFF(79),e.k0s()(),e.j41(80,"div",19)(81,"h4",12),e.EFF(82,"Number of Updates"),e.k0s(),e.j41(83,"span",20),e.EFF(84),e.nI1(85,"number"),e.k0s()()(),e.nrm(86,"mat-divider",15),e.DNE(87,bl,78,39,"div",21),e.j41(88,"div",22)(89,"button",23),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onShowAdvanced())}),e.DNE(90,Fl,2,0,"p",24)(91,xl,2,0,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(93,vl,2,1,"button",25)(94,Tl,2,0,"button",26),e.k0s()()()()()}if(2&o){const l=e.sdS(92);e.R7$(4),e.Y8G("icon",a.faReceipt),e.R7$(5),e.Y8G("ngClass",e.eq3(35,Cl,a.screenSize===a.screenSizeEnum.XS)),e.R7$(7),e.SpI(" ",a.channel.chan_id," "),e.R7$(5),e.JRh(a.channel.remote_alias),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.SpI(" ",a.channel.channel_point," "),e.R7$(),e.Y8G("ngIf",null==a.selNode||null==a.selNode.settings?null:a.selNode.settings.blockExplorerUrl),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.SpI(" ",a.channel.remote_pubkey," "),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(44,25,a.channel.local_balance)),e.R7$(6),e.JRh(e.bMT(50,27,a.channel.remote_balance)),e.R7$(6),e.JRh(e.bMT(56,29,a.channel.capacity)),e.R7$(6),e.JRh(e.bMT(62,31,a.channel.uptime)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(a.channel.active?"Yes":"No"),e.R7$(5),e.JRh(a.channel.private?"Yes":"No"),e.R7$(5),e.JRh(a.channel.initiator?"Yes":"No"),e.R7$(5),e.JRh(e.bMT(85,33,a.channel.num_updates)),e.R7$(2),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngIf",a.showAdvanced),e.R7$(3),e.Y8G("ngIf",!a.showAdvanced)("ngIfElse",l),e.R7$(3),e.Y8G("ngIf",a.showCopy),e.R7$(),e.Y8G("ngIf",!a.showCopy)}},dependencies:[_.YU,_.bT,O.aY,N.$z,k.m2,k.MM,ne.q,f.DJ,f.sA,f.UI,j.PW,ee.oV,be.U,te.N,_.QX],encapsulation:2}))}return t(),s})();var je=y(7673),Ge=y(1001),kl=y(16949);const fe=(t,s)=>({"small-svg":t,"large-svg":s});function Sl(t,s){1&t&&e.eu8(0)}function Rl(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",7),e.nrm(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)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),e.k0s(),r.joV(),e.j41(41,"div",47)(42,"mat-card-title"),e.EFF(43,"Circular rebalancing explained."),e.k0s()(),e.j41(44,"div",48)(45,"mat-card-subtitle",49),e.EFF(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function El(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53)(4,"path",54)(5,"path",55)(6,"path",56)(7,"path",57)(8,"path",58)(9,"path",59)(10,"path",60)(11,"path",61)(12,"path",62)(13,"path",63)(14,"path",64)(15,"path",65)(16,"path",66)(17,"path",67)(18,"path",68)(19,"path",69)(20,"path",70)(21,"path",71)(22,"path",72)(23,"path",73)(24,"path",74)(25,"path",75)(26,"path",76)(27,"path",77)(28,"path",78)(29,"path",79)(30,"path",80)(31,"path",81)(32,"path",82)(33,"path",52)(34,"path",53)(35,"path",54)(36,"path",55)(37,"path",56)(38,"path",57)(39,"path",58)(40,"path",59)(41,"path",60)(42,"path",83)(43,"path",84)(44,"path",63)(45,"path",85)(46,"path",86)(47,"path",87)(48,"path",67)(49,"path",68)(50,"path",69)(51,"path",70)(52,"path",71)(53,"path",72)(54,"path",73)(55,"path",74)(56,"path",75)(57,"path",76)(58,"path",77)(59,"path",78)(60,"path",79)(61,"path",80)(62,"path",88)(63,"path",82)(64,"path",89),e.j41(65,"defs")(66,"linearGradient",90),e.nrm(67,"stop",91)(68,"stop",92)(69,"stop",93),e.k0s(),e.j41(70,"linearGradient",94),e.nrm(71,"stop",91)(72,"stop",92)(73,"stop",93),e.k0s(),e.j41(74,"linearGradient",95),e.nrm(75,"stop",91)(76,"stop",92)(77,"stop",93),e.k0s(),e.j41(78,"linearGradient",96),e.nrm(79,"stop",91)(80,"stop",92)(81,"stop",93),e.k0s(),e.j41(82,"linearGradient",97),e.nrm(83,"stop",91)(84,"stop",92)(85,"stop",93),e.k0s(),e.j41(86,"linearGradient",98),e.nrm(87,"stop",91)(88,"stop",92)(89,"stop",93),e.k0s()()(),r.joV(),e.j41(90,"div",47)(91,"mat-card-title"),e.EFF(92,"Step 1: Unbalanced channel"),e.k0s()(),e.j41(93,"div",48)(94,"mat-card-subtitle",49),e.EFF(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Il(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",99),e.nrm(2,"path",100)(3,"path",101)(4,"path",102)(5,"path",103)(6,"path",104)(7,"path",105)(8,"path",106)(9,"path",107)(10,"path",108)(11,"path",109)(12,"path",110)(13,"path",111)(14,"path",112)(15,"path",113)(16,"path",114)(17,"path",52)(18,"path",115)(19,"path",116)(20,"path",117)(21,"path",118)(22,"path",119)(23,"path",120)(24,"path",121)(25,"path",122)(26,"path",83)(27,"path",84)(28,"path",123)(29,"path",124)(30,"path",125)(31,"path",126)(32,"path",67)(33,"path",127)(34,"path",128)(35,"path",129)(36,"path",130)(37,"path",131)(38,"path",132)(39,"path",74)(40,"path",75)(41,"path",133)(42,"path",77)(43,"path",78)(44,"path",79)(45,"path",80)(46,"path",134)(47,"path",135)(48,"path",136),e.j41(49,"defs")(50,"linearGradient",137),e.nrm(51,"stop",91)(52,"stop",92)(53,"stop",93),e.k0s(),e.j41(54,"linearGradient",138),e.nrm(55,"stop",91)(56,"stop",92)(57,"stop",93),e.k0s(),e.j41(58,"linearGradient",139),e.nrm(59,"stop",91)(60,"stop",92)(61,"stop",93),e.k0s()()(),r.joV(),e.j41(62,"div",47)(63,"mat-card-title"),e.EFF(64,"Step 2: Invoice/Payment"),e.k0s()(),e.j41(65,"div",48)(66,"mat-card-subtitle",49),e.EFF(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Ll(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",140),e.nrm(2,"path",141)(3,"path",142)(4,"path",143)(5,"path",144)(6,"path",145)(7,"path",146)(8,"path",147)(9,"path",148)(10,"path",149)(11,"path",150)(12,"path",151)(13,"path",152)(14,"path",153)(15,"path",154)(16,"path",155)(17,"path",156)(18,"path",157)(19,"path",158)(20,"path",159)(21,"path",160)(22,"path",161)(23,"path",162)(24,"path",163)(25,"path",164)(26,"path",163)(27,"path",165)(28,"path",166)(29,"path",167)(30,"path",168)(31,"path",169)(32,"path",170)(33,"path",171)(34,"path",172)(35,"path",173)(36,"path",174)(37,"path",175)(38,"path",176)(39,"path",177)(40,"path",178)(41,"path",179),e.j41(42,"defs")(43,"linearGradient",180),e.nrm(44,"stop",91)(45,"stop",92)(46,"stop",93),e.k0s()()(),r.joV(),e.j41(47,"div",47)(48,"mat-card-title"),e.EFF(49,"Step 3: Rebalance amount"),e.k0s()(),e.j41(50,"div",48)(51,"mat-card-subtitle",49),e.EFF(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function wl(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",140),e.nrm(2,"path",181)(3,"path",143)(4,"path",182)(5,"path",145)(6,"path",146)(7,"path",183)(8,"path",148)(9,"path",184)(10,"path",185)(11,"path",186)(12,"path",187)(13,"path",188)(14,"path",189)(15,"path",190)(16,"path",191)(17,"path",192)(18,"path",158)(19,"path",193)(20,"path",194)(21,"path",179)(22,"path",160)(23,"path",161)(24,"path",195)(25,"path",163)(26,"path",164)(27,"path",163)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",196)(33,"path",170)(34,"path",197)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",198),e.j41(41,"defs")(42,"linearGradient",199),e.nrm(43,"stop",91)(44,"stop",92)(45,"stop",93),e.k0s()()(),r.joV(),e.j41(46,"div",47)(47,"mat-card-title"),e.EFF(48,"Rebalance successful!"),e.k0s()(),e.j41(49,"div",48)(50,"mat-card-subtitle",49),e.EFF(51," Your channel is successfully rebalanced and is able to continue to route payments. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}let jl=(()=>{var t;class s{constructor(i){this.commonService=i,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(i){2===i.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===i.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between starts",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z",1,"fill-color-primary-darker"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z",1,"fill-color-29"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z",1,"fill-color-28"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z",1,"fill-color-29"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z",1,"fill-color-29"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z",1,"fill-color-primary-darker"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z",1,"fill-color-10"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z",1,"fill-color-primary-darker"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z",1,"fill-color-primary-darker"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z",1,"fill-color-17"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z",1,"fill-color-17"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z",1,"fill-color-17"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z",1,"fill-color-19"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z",1,"fill-color-25"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z",1,"fill-color-19"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z",1,"fill-color-19"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z",1,"fill-color-19"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z",1,"fill-color-19"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z",1,"fill-color-19"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z",1,"fill-color-19"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z",1,"fill-color-25"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M42 75H9V91H42V75Z",1,"fill-color-17"],["d","M42 42H9V58H42V42Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z",1,"fill-color-19"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z",1,"fill-color-25"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z",1,"fill-color-19"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z",1,"fill-color-primary-lighter"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z",1,"fill-color-19"],["d","M265 57.3624H357.392V120.307H265V57.3624Z",1,"fill-color-22"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z",1,"fill-color-19"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z",1,"fill-color-19"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z",1,"fill-color-19"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z",1,"fill-color-19"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z",1,"fill-color-19"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z",1,"fill-color-19"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z",1,"fill-color-19"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z",1,"fill-color-25"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z",1,"fill-color-19"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z",1,"fill-color-21"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z",1,"fill-color-primary-darker"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-primary-darker"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-17"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z",1,"fill-color-19"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z",1,"fill-color-25"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z",1,"fill-color-19"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary-lighter"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M122.399 37H32.25V137.616H122.399V37Z",1,"fill-color-10"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z",1,"fill-color-primary-darker"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z",1,"fill-color-primary-darker"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z",1,"fill-color-primary-darker"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M74.5 112H40.5V128H74.5V112Z",1,"fill-color-17"],["d","M74.5 79H40.5V95H74.5V79Z",1,"fill-color-17"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z",1,"fill-color-17"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z",1,"fill-color-17"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z",1,"fill-color-17"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z",1,"fill-color-17"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z",1,"fill-color-17"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z",1,"fill-color-primary-darker"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-primary-darker"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z",1,"fill-color-25"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z",1,"fill-color-21"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z",1,"fill-color-25"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z",1,"fill-color-22"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z",1,"fill-color-21"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z",1,"fill-color-25"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z",1,"fill-color-22"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z",1,"fill-color-21"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z",1,"fill-color-21"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z",1,"fill-color-22"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z",1,"fill-color-22"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z",1,"fill-color-22"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z",1,"fill-color-21"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z",1,"fill-color-17"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M76 112H41V128H76V112Z",1,"fill-color-17"],["d","M70 79H41V95H70V79Z",1,"fill-color-17"],["d","M70 47H41V63H70V47Z",1,"fill-color-17"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z",1,"fill-color-17"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z",1,"fill-color-17"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-17"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z",1,"fill-color-22"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z",1,"fill-color-21"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(o,a){if(1&o&&e.DNE(0,Sl,1,0,"ng-container",5)(1,Rl,47,5,"ng-template",null,0,e.C5r)(3,El,96,5,"ng-template",null,1,e.C5r)(5,Il,68,5,"ng-template",null,2,e.C5r)(7,Ll,53,5,"ng-template",null,3,e.C5r)(9,wl,52,5,"ng-template",null,4,e.C5r),2&o){const l=e.sdS(2),p=e.sdS(4),m=e.sdS(6),v=e.sdS(8),b=e.sdS(10);e.Y8G("ngTemplateOutlet",1===a.stepNumber?l:2===a.stepNumber?p:3===a.stepNumber?m:4===a.stepNumber?v:b)}},dependencies:[_.YU,_.T3,k.Lc,k.dh,f.DJ,f.sA,f.UI,j.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:10%;min-height:10%;max-width:50%;margin:auto}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:50%;margin:auto}"],data:{animation:[kl.k]}}))}return t(),s})();const Gl=["stepper"],Dl=()=>[1,2,3,4,5],Nl=(t,s)=>({"dot-primary":t,"dot-primary-lighter":s});function Pl(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.inputFormLabel)}}function $l(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function Al(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount must be a positive number."),e.k0s())}function Ml(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("Amount must be less than or equal to ",null==n.selChannel?null:n.selChannel.local_balance,".")}}function Bl(t,s){if(1&t&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.Lme("",n.remote_alias," - ",n.chan_id)}}function Ol(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Receive from Peer is required."),e.k0s())}function Vl(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Receive from Peer not found in the list."),e.k0s())}function Yl(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.feeFormLabel)}}function Xl(t,s){if(1&t&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.name," ")}}function Ul(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," is required.")}}function Hl(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," must be a positive number.")}}function ql(t,s){1&t&&e.EFF(0,"Invoice/Payment")}function zl(t,s){1&t&&(e.j41(0,"mat-icon",55),e.EFF(1,"check"),e.k0s())}function Jl(t,s){1&t&&e.nrm(0,"mat-progress-bar",56)}function Ql(t,s){if(1&t&&(e.j41(0,"mat-icon",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(null!=n.paymentStatus&&n.paymentStatus.error?"close":"check")}}function Wl(t,s){1&t&&e.nrm(0,"div",7)}function Zl(t,s){1&t&&e.nrm(0,"mat-progress-bar",56)}function Kl(t,s){if(1&t&&(e.j41(0,"h4",57),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.paymentStatus&&n.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function er(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",58),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onRestart())}),e.EFF(1,"Start Again"),e.k0s()}}function tr(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",7)(1,"mat-card-header",8)(2,"div",9)(3,"div",10)(4,"span",11),e.EFF(5,"Channel Rebalance"),e.k0s()(),e.j41(6,"div",12)(7,"button",13),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.showInfo())}),e.EFF(8,"?"),e.k0s(),e.j41(9,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(10,"X"),e.k0s()()()(),e.j41(11,"mat-card-content",15)(12,"div",7)(13,"div",16)(14,"div",17),e.nrm(15,"fa-icon",18),e.j41(16,"span"),e.EFF(17,"Circular Rebalance is a payment you make to *yourself* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),e.k0s()()(),e.j41(18,"div",19)(19,"p",20)(20,"strong"),e.EFF(21,"Channel Peer:\xa0"),e.k0s(),e.EFF(22),e.nI1(23,"titlecase"),e.k0s(),e.j41(24,"p",20)(25,"strong"),e.EFF(26,"Channel ID:\xa0"),e.k0s(),e.EFF(27),e.k0s()(),e.j41(28,"mat-vertical-stepper",21,3),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.stepSelectionChanged(o))}),e.j41(30,"mat-step",22)(31,"form",23),e.DNE(32,Pl,1,1,"ng-template",24),e.j41(33,"div",25)(34,"mat-form-field",26)(35,"mat-label"),e.EFF(36,"Amount"),e.k0s(),e.nrm(37,"input",27),e.j41(38,"mat-hint"),e.EFF(39),e.k0s(),e.j41(40,"span",28),e.EFF(41,"Sats"),e.k0s(),e.DNE(42,$l,2,0,"mat-error",29)(43,Al,2,0,"mat-error",29)(44,Ml,2,1,"mat-error",29),e.k0s(),e.j41(45,"mat-form-field",30)(46,"mat-label"),e.EFF(47,"Receive from Peer"),e.k0s(),e.j41(48,"input",31),e.bIt("change",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.k0s(),e.j41(49,"mat-autocomplete",32,4),e.bIt("optionSelected",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.DNE(51,Bl,2,3,"mat-option",33),e.nI1(52,"async"),e.k0s(),e.DNE(53,Ol,2,0,"mat-error",29)(54,Vl,2,0,"mat-error",29),e.k0s()(),e.j41(55,"div",34)(56,"button",35),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectFee())}),e.EFF(57,"Select Fee"),e.k0s()()()(),e.j41(58,"mat-step",22)(59,"form",23),e.DNE(60,Yl,1,1,"ng-template",36),e.j41(61,"div",25)(62,"div",25)(63,"mat-form-field",30)(64,"mat-label"),e.EFF(65,"Fee Limits"),e.k0s(),e.j41(66,"mat-select",37),e.DNE(67,Xl,2,2,"mat-option",33),e.k0s()(),e.j41(68,"mat-form-field",26)(69,"mat-label"),e.EFF(70),e.k0s(),e.nrm(71,"input",38),e.DNE(72,Ul,2,1,"mat-error",29)(73,Hl,2,1,"mat-error",29),e.k0s()()(),e.j41(74,"div",34)(75,"button",39),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onRebalance())}),e.EFF(76,"Rebalance"),e.k0s()()()(),e.j41(77,"mat-step",40)(78,"form",23),e.DNE(79,ql,1,0,"ng-template",24),e.j41(80,"div",41)(81,"mat-expansion-panel",42)(82,"mat-expansion-panel-header")(83,"mat-panel-title")(84,"span",43),e.EFF(85),e.DNE(86,zl,2,0,"mat-icon",44),e.k0s()()(),e.j41(87,"div",7)(88,"span",45),e.EFF(89),e.k0s()()(),e.DNE(90,Jl,1,0,"mat-progress-bar",46),e.j41(91,"mat-expansion-panel",47)(92,"mat-expansion-panel-header")(93,"mat-panel-title")(94,"span",43),e.EFF(95),e.DNE(96,Ql,2,1,"mat-icon",44),e.k0s()()(),e.DNE(97,Wl,1,0,"div",48),e.k0s(),e.DNE(98,Zl,1,0,"mat-progress-bar",46),e.k0s(),e.DNE(99,Kl,2,1,"h4",49),e.j41(100,"div",50),e.DNE(101,er,2,0,"button",51),e.k0s()()()(),e.j41(102,"div",52)(103,"button",53),e.EFF(104,"Close"),e.k0s()()()()()}if(2&t){const n=e.sdS(50),i=e.XpG(),o=e.sdS(2);e.Y8G("@opacityAnimation",void 0),e.R7$(15),e.Y8G("icon",i.faInfoCircle),e.R7$(7),e.JRh(e.bMT(23,42,i.selChannel.remote_alias)),e.R7$(5),e.JRh(i.selChannel.chan_id),e.R7$(),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",i.inputFormGroup)("editable",i.flgEditable),e.R7$(),e.Y8G("formGroup",i.inputFormGroup),e.R7$(6),e.Y8G("step",100),e.R7$(2),e.Lme("(Local Bal: ",null==i.selChannel?null:i.selChannel.local_balance,", Remaining: ",(null==i.selChannel?null:i.selChannel.local_balance)-(i.inputFormGroup.controls.rebalanceAmount.value?i.inputFormGroup.controls.rebalanceAmount.value:0),")"),e.R7$(3),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.required),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.min),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.max),e.R7$(4),e.Y8G("matAutocomplete",n),e.R7$(),e.Y8G("displayWith",i.displayFn),e.R7$(2),e.Y8G("ngForOf",e.bMT(52,44,i.filteredActiveChannels)),e.R7$(2),e.Y8G("ngIf",null==i.inputFormGroup.controls.selRebalancePeer.errors?null:i.inputFormGroup.controls.selRebalancePeer.errors.required),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.selRebalancePeer.errors?null:i.inputFormGroup.controls.selRebalancePeer.errors.notfound),e.R7$(4),e.Y8G("stepControl",i.feeFormGroup)("editable",i.flgEditable),e.R7$(),e.Y8G("formGroup",i.feeFormGroup),e.R7$(8),e.Y8G("ngForOf",i.feeLimitTypes),e.R7$(3),e.JRh(i.feeFormGroup.controls.selFeeLimitType.value?i.feeFormGroup.controls.selFeeLimitType.value.placeholder:i.feeLimitTypes[0].placeholder),e.R7$(),e.Y8G("step",1),e.R7$(),e.Y8G("ngIf",null==i.feeFormGroup.controls.feeLimit.errors?null:i.feeFormGroup.controls.feeLimit.errors.required),e.R7$(),e.Y8G("ngIf",null==i.feeFormGroup.controls.feeLimit.errors?null:i.feeFormGroup.controls.feeLimit.errors.min),e.R7$(4),e.Y8G("stepControl",i.statusFormGroup),e.R7$(),e.Y8G("formGroup",i.statusFormGroup),e.R7$(7),e.JRh(i.flgInvoiceGenerated?i.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated),e.R7$(3),e.JRh(i.paymentRequest),e.R7$(),e.Y8G("ngIf",!i.flgInvoiceGenerated),e.R7$(),e.Y8G("expanded",(i.flgInvoiceGenerated||i.flgReusingInvoice)&&i.flgPaymentSent),e.R7$(4),e.JRh(i.flgInvoiceGenerated||i.flgPaymentSent?i.flgPaymentSent?null!=i.paymentStatus&&i.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),e.R7$(),e.Y8G("ngIf",i.flgPaymentSent),e.R7$(),e.Y8G("ngIf",!i.paymentStatus)("ngIfElse",o),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated&&!i.flgPaymentSent),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated&&i.flgPaymentSent),e.R7$(2),e.Y8G("ngIf",i.paymentStatus&&i.paymentStatus.error),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}function nr(t,s){1&t&&e.eu8(0)}function ir(t,s){if(1&t&&e.DNE(0,nr,1,0,"ng-container",59),2&t){const n=e.XpG(),i=e.sdS(4),o=e.sdS(6);e.Y8G("ngTemplateOutlet",n.paymentStatus.error?i:o)}}function ar(t,s){if(1&t&&(e.j41(0,"div",7)(1,"span",45),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Error: ",n.paymentStatus.error)}}function sr(t,s){if(1&t&&(e.j41(0,"div",7)(1,"div",60)(2,"div",61)(3,"h4",62),e.EFF(4,"Payment Hash"),e.k0s(),e.j41(5,"span",45),e.EFF(6),e.k0s()()(),e.nrm(7,"mat-divider",63),e.j41(8,"div",60)(9,"div",64)(10,"h4",62),e.EFF(11),e.k0s(),e.j41(12,"span",45),e.EFF(13),e.k0s()(),e.j41(14,"div",64)(15,"h4",62),e.EFF(16,"Number of Hops"),e.k0s(),e.j41(17,"span",45),e.EFF(18),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(6),e.JRh(n.paymentStatus.payment_hash),e.R7$(5),e.SpI("Total Fees (",n.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),e.R7$(2),e.JRh(n.paymentStatus.payment_route.total_fees_msat?n.paymentStatus.payment_route.total_fees_msat:n.paymentStatus.payment_route.total_fees?n.paymentStatus.payment_route.total_fees:0),e.R7$(5),e.JRh(n.paymentStatus&&n.paymentStatus.payment_route&&n.paymentStatus.payment_route.hops&&n.paymentStatus.payment_route.hops.length?n.paymentStatus.payment_route.hops.length:0)}}function or(t,s){if(1&t){const n=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onStepChanged(o))}),e.nrm(1,"p",81),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(1,Nl,i.stepNumber===n,i.stepNumber!==n))}}function lr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",82),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(4))}),e.EFF(1,"Back"),e.k0s()}}function rr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function cr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function pr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",85),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(o.stepNumber-1))}),e.EFF(1,"Back"),e.k0s()}}function mr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(o.stepNumber+1))}),e.EFF(1,"Next"),e.k0s()}}function ur(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",65)(1,"div",66)(2,"mat-card-header",67)(3,"div",68),e.nrm(4,"span",11),e.k0s(),e.j41(5,"div",69)(6,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(7,"X"),e.k0s()()(),e.j41(8,"mat-card-content",70)(9,"rtl-channel-rebalance-infographics",71),e.mxI("stepNumberChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.stepNumber,o)||(a.stepNumber=o),r.Njj(o)}),e.k0s()(),e.j41(10,"div",72),e.DNE(11,or,2,4,"span",73),e.k0s(),e.j41(12,"div",74),e.DNE(13,lr,2,0,"button",75)(14,rr,2,0,"button",76)(15,cr,2,0,"button",77)(16,pr,2,0,"button",78)(17,mr,2,0,"button",79),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@opacityAnimation",void 0),e.R7$(9),e.Y8G("animationDirection",n.animationDirection),e.R50("stepNumber",n.stepNumber),e.R7$(2),e.Y8G("ngForOf",e.lJ4(9,Dl)),e.R7$(2),e.Y8G("ngIf",5===n.stepNumber),e.R7$(),e.Y8G("ngIf",5===n.stepNumber),e.R7$(),e.Y8G("ngIf",n.stepNumber<5),e.R7$(),e.Y8G("ngIf",n.stepNumber>1&&n.stepNumber<5),e.R7$(),e.Y8G("ngIf",n.stepNumber<5)}}let dr=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.dialogRef=i,this.data=o,this.logger=a,this.store=l,this.actions=p,this.formBuilder=m,this.decimalPipe=v,this.commonService=b,this.faInfoCircle=x.iW_,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=c.f7,this.animationDirection="forward",this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize();let i="",o="";this.selChannel=this.data.message?.selChannel||{},this.activeChannels=this.data.message?.channels?.filter(a=>a.active&&a.chan_id!==this.selChannel.chan_id&&a.remote_balance&&a.remote_balance>0)||[],this.activeChannels=this.activeChannels.sort((a,l)=>(i=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",io?1:0)),c.nv.forEach((a,l)=>{l>0&&this.feeLimitTypes.push(a)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[d.k0.required]],rebalanceAmount:["",[d.k0.required,d.k0.min(1),d.k0.max(this.selChannel.local_balance||0)]],selRebalancePeer:[null,d.k0.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],d.k0.required],feeLimit:["",[d.k0.required,d.k0.min(0)]],hiddenFeeLimit:["",[d.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(F.rN).pipe((0,g.Q)(this.unSubs[0])).subscribe(a=>{this.invoices=a.listInvoices,this.logger.info(a)}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,U.p)(a=>a.type===c.QP.SET_QUERY_ROUTES_LND||a.type===c.QP.SEND_PAYMENT_STATUS_LND||a.type===c.QP.NEWLY_SAVED_INVOICE_LND)).subscribe(a=>{a.type===c.QP.SET_QUERY_ROUTES_LND&&(this.queryRoute=a.payload),a.type===c.QP.SEND_PAYMENT_STATUS_LND&&(this.logger.info(a.payload),this.flgPaymentSent=!0,this.paymentStatus=a.payload,this.flgEditable=!0),a.type===c.QP.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(a.payload),this.flgInvoiceGenerated=!0,this.sendPayment(a.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount")?.valueChanges.pipe((0,g.Q)(this.unSubs[2]),(0,Ie.Z)(0)).subscribe(a=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,je.of)(a?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer")?.valueChanges.pipe((0,g.Q)(this.unSubs[3]),(0,Ie.Z)("")).subscribe(a=>{"string"==typeof a&&(this.filteredActiveChannels=(0,je.of)(this.filterActiveChannels()))})}onSelectFee(){return this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),this.inputFormGroup.controls.selRebalancePeer.value&&"string"!=typeof this.inputFormGroup.controls.selRebalancePeer.value?!this.inputFormGroup.controls.rebalanceAmount.value||(0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),void this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0])):(this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0)}stepSelectionChanged(i){switch(i.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops?.length:"Select rebalance fee"}i.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const i=this.findUnsettledInvoice();i?(this.flgReusingInvoice=!0,this.sendPayment(i.payment_request||"")):this.store.dispatch((0,T.VK)({payload:{uiMessage:c.MZ.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",value:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:c.It,is_amp:!1,pageSize:c.md,openModal:!1}}))}findUnsettledInvoice(){return this.invoices.invoices?.find(i=>(!i.settle_date||0==+i.settle_date)&&i.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==i.state)}sendPayment(i){if(this.flgInvoiceGenerated=!0,this.paymentRequest=i,"percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0){const o={uiMessage:c.MZ.NO_SPINNER,payment_request:i,amp:!1,outgoing_chan_ids:this.selChannel?.chan_id?[this.selChannel?.chan_id]:void 0,fee_limit_sat:Math.ceil((0,c.C6)("fixed",this.feeFormGroup.controls.feeLimit.value,this.inputFormGroup.controls.rebalanceAmount.value||0)),allow_self_payment:!0,last_hop_pubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:o}))}else{const o={uiMessage:c.MZ.NO_SPINNER,payment_request:i,amp:!1,outgoing_chan_ids:this.selChannel?.chan_id?[this.selChannel?.chan_id]:void 0,fee_limit_sat:(0,c.C6)(this.feeFormGroup.controls.selFeeLimitType.value.id,this.feeFormGroup.controls.feeLimit.value,this.inputFormGroup.controls.rebalanceAmount.value||0),allow_self_payment:!0,last_hop_pubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:o}))}}filterActiveChannels(){return this.activeChannels?.filter(i=>i.remote_balance&&i.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&i.chan_id!==this.selChannel.chan_id&&(0===i.remote_alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===i.chan_id?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const i=this.activeChannels?.filter(o=>o.remote_alias?.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===o.remote_alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));i&&i.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(i[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(i){return i&&i.remote_alias?i.remote_alias:i&&i.chan_id?i.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(i){this.animationDirection=i{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU(L.il),e.rXU(K.En),e.rXU(d.ze),e.rXU(_.QX),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-rebalance"]],viewQuery:function(o,a){if(1&o&&e.GBs(Gl,5),2&o){let l;e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:8,vars:2,consts:[["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["stepper",""],["auto","matAutocomplete"],["fxLayout","column",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column"],[1,"modal-info-header"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayoutAlign","start center"],[1,"page-title"],["fxLayoutAlign","end center"],["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","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start end"],["type","text","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"change","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"step"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","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","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"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["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(o,a){1&o&&e.DNE(0,tr,105,46,"div",5)(1,ir,1,1,"ng-template",null,0,e.C5r)(3,ar,3,1,"ng-template",null,1,e.C5r)(5,sr,19,4,"ng-template",null,2,e.C5r)(7,ur,18,10,"div",6),2&o&&(e.Y8G("ngIf",!a.flgShowInfo),e.R7$(7),e.Y8G("ngIf",a.flgShowInfo))},dependencies:[_.YU,_.Sq,_.bT,_.T3,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.j4,d.JD,O.aY,Y.tx,N.$z,k.m2,k.MM,q.GK,q.Z2,q.WN,oe.An,M.fg,C.rl,C.nJ,C.MV,C.TL,C.yw,ne.q,V.HM,f.DJ,f.sA,f.UI,j.PW,E.VO,X.wT,z.V5,z.Ti,z.M6,ce.$3,ce.pN,te.N,jl,_.Jj,_.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[Ge.C]}}))}return t(),s})();function hr(t,s){if(1&t&&(e.j41(0,"div",17)(1,"p",18)(2,"mat-icon",19),e.EFF(3,"close"),e.k0s(),e.EFF(4),e.k0s()()),2&t){const n=e.XpG();e.R7$(4),e.JRh(n.errorMsg)}}function _r(t,s){if(1&t&&(e.j41(0,"div",28),e.nrm(1,"fa-icon",29),e.j41(2,"span"),e.EFF(3,"Priority/Fee for force closing inactive channels cannot be modified."),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faInfoCircle)}}function fr(t,s){if(1&t&&(e.j41(0,"div",28),e.nrm(1,"fa-icon",29),e.j41(2,"span",30)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",31)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function gr(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function Cr(t,s){1&t&&(e.j41(0,"mat-form-field",33)(1,"mat-label"),e.EFF(2,"Default"),e.k0s(),e.nrm(3,"input",34),e.k0s())}function yr(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function br(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",35)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",36,0),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.blocks,o)||(a.blocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,yr,2,0,"mat-error",37),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.blocks),e.R7$(2),e.Y8G("ngIf",!n.blocks)}}function Fr(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function xr(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",35)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",38,1),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.fees,o)||(a.fees=o),r.Njj(o)}),e.k0s(),e.DNE(5,Fr,2,0,"mat-error",37),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.fees),e.R7$(2),e.Y8G("ngIf",!n.fees)}}function vr(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",20),e.DNE(1,_r,4,1,"div",21)(2,fr,16,6,"div",21),e.j41(3,"div",22)(4,"mat-form-field",23)(5,"mat-label"),e.EFF(6,"Transaction Type"),e.k0s(),e.j41(7,"mat-select",24),e.mxI("valueChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selTransType,o)||(a.selTransType=o),r.Njj(o)}),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSelTransTypeChanged(o))}),e.DNE(8,gr,2,2,"mat-option",25),e.k0s()(),e.DNE(9,Cr,4,0,"mat-form-field",26)(10,br,6,4,"mat-form-field",27)(11,xr,6,4,"mat-form-field",27),e.k0s()()}if(2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.channelToClose.active),e.R7$(),e.Y8G("ngIf",n.recommendedFee.minimumFee),e.R7$(5),e.Y8G("disabled",!n.channelToClose.active),e.R50("value",n.selTransType),e.R7$(),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","0"===n.selTransType),e.R7$(),e.Y8G("ngIf","1"===n.selTransType),e.R7$(),e.Y8G("ngIf","2"===n.selTransType)}}function Tr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",39),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(1,"Clear"),e.k0s()}}function kr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onCloseChannel())}),e.EFF(1),e.k0s()}if(2&t){const n=e.XpG();e.R7$(),e.JRh(n.channelToClose.active?"Close Channel":"Force Close")}}function Sr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(1,"Ok"),e.k0s()}}let Rr=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.dataService=a,this.store=l,this.actions=p,this.logger=m,this.transTypes=c.XG,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i.type===c.QP.UPDATE_API_CALL_STATUS_LND||i.type===c.QP.SET_CHANNELS_LND)).subscribe(i=>{if(i.type===c.QP.SET_CHANNELS_LND){const o=i.payload.find(a=>a.chan_id===this.data.channel.chan_id);o&&o.pending_htlcs&&o.pending_htlcs.length&&o.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&i.payload.status===c.wn.ERROR&&"FetchAllChannels"===i.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+i.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const i={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(i.targetConf=this.blocks),this.fees&&(i.satPerByte=this.fees),this.store.dispatch((0,T.w0)({payload:i})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onSelTransTypeChanged(i){"2"===i.value&&this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[1])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(Z.u),e.rXU(L.il),e.rXU(K.En),e.rXU(D.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-close-channel"]],standalone:!1,decls:19,vars:7,consts:[["blcks","ngModel"],["clchfee","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","class","mr-1","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column","fxFlex.gt-sm","48"],[3,"valueChange","selectionChange","disabled","value"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["fxFlex","48"],["matInput","","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","type","number","name","blocks","required","",3,"ngModelChange","step","min","ngModel"],[4,"ngIf"],["matInput","","type","number","name","ccfees","required","",3,"ngModelChange","step","min","ngModel"],["mat-button","","color","primary","type","reset","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",2)(1,"div",3)(2,"mat-card-header",4)(3,"div",5)(4,"span",6),e.EFF(5),e.k0s()(),e.j41(6,"button",7),e.bIt("click",function(){return a.onClose()}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",8)(9,"form",9)(10,"div",10)(11,"p",11),e.EFF(12),e.k0s(),e.DNE(13,hr,5,1,"div",12)(14,vr,12,8,"div",13),e.k0s(),e.j41(15,"div",14),e.DNE(16,Tr,2,0,"button",15)(17,kr,2,1,"button",16)(18,Sr,2,0,"button",16),e.k0s()()()()()),2&o&&(e.R7$(5),e.JRh(a.channelToClose.active?"Close Channel":"Force Close Channel"),e.R7$(7),e.SpI("",a.channelToClose.active?"Closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point):"Force closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point)," "),e.R7$(),e.Y8G("ngIf",a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",!a.flgPendingHtlcs),e.R7$(2),e.Y8G("ngIf",a.channelToClose.active&&!a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",!a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",a.flgPendingHtlcs))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,O.aY,N.$z,k.m2,k.MM,oe.An,M.fg,C.rl,C.nJ,C.TL,f.DJ,f.sA,f.UI,E.VO,X.wT,ae.V],encapsulation:2}))}return t(),s})();const Er=()=>["all"],Ir=t=>({"error-border":t}),Lr=()=>["no_channel"],Fe=t=>({width:t}),wr=t=>({"display-none":t});function jr(t,s){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Gr(t,s){1&t&&e.nrm(0,"mat-progress-bar",50)}function Dr(t,s){1&t&&e.nrm(0,"th",51)}function Nr(t,s){1&t&&e.nrm(0,"span",55)}function Pr(t,s){1&t&&e.nrm(0,"span",56)}function $r(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Nr,1,0,"span",53)(2,Pr,1,0,"span",54),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.active),e.R7$(),e.Y8G("ngIf",!n.active)}}function Ar(t,s){1&t&&e.nrm(0,"th",57)}function Mr(t,s){if(1&t&&(e.j41(0,"span",60),e.nrm(1,"fa-icon",61),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faEyeSlash)}}function Br(t,s){if(1&t&&(e.j41(0,"span",62),e.nrm(1,"fa-icon",61),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faEye)}}function Or(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Mr,2,1,"span",58)(2,Br,2,1,"span",59),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.private),e.R7$(),e.Y8G("ngIf",!n.private)}}function Vr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Peer"),e.k0s())}function Yr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.remote_alias)}}function Xr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Pubkey"),e.k0s())}function Ur(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.remote_pubkey)}}function Hr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Channel Point"),e.k0s())}function qr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel_point)}}function zr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Channel ID"),e.k0s())}function Jr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.chan_id)}}function Qr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Initiator"),e.k0s())}function Wr(t,s){if(1&t&&(e.j41(0,"td",52),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n.initiator?"Yes":"No")}}function Zr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Static Remote Key"),e.k0s())}function Kr(t,s){if(1&t&&(e.j41(0,"td",52),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n.static_remote_key?"Yes":"No")}}function e1(t,s){if(1&t&&(e.j41(0,"th",66),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Uptime (",n.timeUnit,")")}}function t1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.uptime_str," ")}}function n1(t,s){if(1&t&&(e.j41(0,"th",66),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Lifetime (",n.timeUnit,")")}}function i1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.lifetime_str," ")}}function a1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function s1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_fee)," ")}}function o1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Commit Weight"),e.k0s())}function l1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_weight)," ")}}function r1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Fee/KW"),e.k0s())}function c1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.fee_per_kw)," ")}}function p1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Updates"),e.k0s())}function m1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.num_updates)," ")}}function u1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Unsettled Balance (Sats)"),e.k0s())}function d1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.unsettled_balance)," ")}}function h1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Capacity (Sats)"),e.k0s())}function _1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function f1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Local Reserve (Sats)"),e.k0s())}function g1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_chan_reserve_sat)," ")}}function C1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Remote Reserve (Sats)"),e.k0s())}function y1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_chan_reserve_sat)," ")}}function b1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Sats Sent"),e.k0s())}function F1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.total_satoshis_sent)," ")}}function x1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Sats Received"),e.k0s())}function v1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.total_satoshis_received)," ")}}function T1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function k1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_balance)," ")}}function S1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function R1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_balance)," ")}}function E1(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Balance Score"),e.k0s())}function I1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",68)(2,"mat-hint",69),e.EFF(3),e.nI1(4,"number"),e.k0s()(),e.nrm(5,"mat-progress-bar",70),e.k0s()),2&t){const n=s.$implicit;e.R7$(3),e.JRh(e.bMT(4,3,n.balancedness||0)),e.R7$(2),e.Y8G("value",e.mNQ(n.local_balance&&n.local_balance>0?+n.local_balance/(+n.local_balance+ +n.remote_balance)*100:0))}}function L1(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",71)(1,"div",72)(2,"mat-select",73),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onChannelUpdate("all"))}),e.EFF(5,"Update Fee Policy"),e.k0s(),e.j41(6,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(7,"Download CSV"),e.k0s()()()()}}function w1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG().$implicit,a=e.XpG();return r.Njj(a.onCircularRebalance(o))}),e.EFF(1,"Circular Rebalance"),e.k0s()}}function j1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG().$implicit,a=e.XpG();return r.Njj(a.onLoopOut(o))}),e.EFF(1,"Loop Out"),e.k0s()}}function G1(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",75)(1,"div",72)(2,"mat-select",76),e.nrm(3,"mat-select-trigger"),e.j41(4,"perfect-scrollbar")(5,"mat-option",74),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onChannelClick(a,o))}),e.EFF(6,"View Info"),e.k0s(),e.j41(7,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onViewRemotePolicy(o))}),e.EFF(8,"View Remote Fee "),e.k0s(),e.j41(9,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onChannelUpdate(o))}),e.EFF(10,"Update Fee Policy"),e.k0s(),e.DNE(11,w1,2,0,"mat-option",77)(12,j1,2,0,"mat-option",77),e.j41(13,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onChannelClose(o))}),e.EFF(14,"Close Channel"),e.k0s()()()()()}if(2&t){const n=e.XpG();e.R7$(11),e.Y8G("ngIf",+n.versionsArr[0]>0||+n.versionsArr[1]>=9),e.R7$(),e.Y8G("ngIf",n.selNode.swapServerUrl)}}function D1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No peers connected. Add a peer in order to open a channel."),e.k0s())}function N1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No channel available."),e.k0s())}function P1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting channels..."),e.k0s())}function $1(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function A1(t,s){if(1&t&&(e.j41(0,"td",78),e.DNE(1,D1,2,0,"p",79)(2,N1,2,0,"p",79)(3,P1,2,0,"p",79)(4,$1,2,1,"p",79),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.ERROR)}}function M1(t,s){if(1&t&&e.nrm(0,"tr",80),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,wr,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function B1(t,s){1&t&&e.nrm(0,"tr",81)}function O1(t,s){1&t&&e.nrm(0,"tr",82)}let V1=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.rtlEffects=p,this.decimalPipe=m,this.loopService=v,this.camelCaseWithReplace=b,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open",recordsPerPage:c.md,sortBy:"balancedness",sortOrder:c.oi.DESCENDING},this.timeUnit="mins:secs",this.userPersonaEnum=c.HW,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.channels=new u.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.versionsArr=[],this.faEye=x.pS3,this.faEyeSlash=x.k6j,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.filterColumn||window.history.state.filterValue)&&(this.selFilterBy=window.history.state.filterColumn||"all",this.selFilter=window.history.state.filterValue||""),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("private"),this.displayedColumns.unshift("active"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.numPeers=i.peers&&i.peers.length?i.peers.length:0}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.totalBalance=i.blockchainBalance?.total_balance?+i.blockchainBalance?.total_balance:0}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[5])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=this.calculateUptime(i.channels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(i)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(i){this.store.dispatch((0,T.ij)({payload:{uiMessage:c.MZ.GET_REMOTE_POLICY,channelID:i.chan_id?.toString()+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,W.s)(1)).subscribe(o=>{if(!o.fee_base_msat&&!o.fee_rate_milli_msat&&!o.time_lock_delta)return!1;const a=[[{key:"fee_base_msat",value:o.fee_base_msat,title:"Base Fees (mSats)",width:25,type:c.UN.NUMBER},{key:"fee_rate_milli_msat",value:o.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:c.UN.NUMBER},{key:"fee_rate_milli_msat",value:o.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:c.UN.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:o.time_lock_delta,title:"Time Lock Delta",width:25,type:c.UN.NUMBER}]],l="Remote policy for Channel: "+(i.remote_alias||i.chan_id?i.remote_alias&&i.chan_id?i.remote_alias+" ("+i.chan_id+")":i.remote_alias?i.remote_alias:i.chan_id:i.channel_point);setTimeout(()=>{this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:l,message:a}}}))},0)})}onCircularRebalance(i){this.store.dispatch((0,I.xO)({payload:{data:{message:{channels:this.channelsData,selChannel:i},component:dr}}}))}onChannelUpdate(i){"all"===i?(this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:c.UN.NUMBER,inputValue:1e3,step:100,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:c.UN.NUMBER,inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:c.UN.NUMBER,inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[6])).subscribe(a=>{a&&this.store.dispatch((0,T.fy)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0,min_htlc_msat:0,max_htlc_msat:0},this.store.dispatch((0,T.ij)({payload:{uiMessage:c.MZ.GET_CHAN_POLICY,channelID:i.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,W.s)(1)).subscribe(o=>{this.myChanPolicy=o.node1_pub===this.information.identity_pubkey?o.node1_policy:o.node2_pub===this.information.identity_pubkey?o.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const a="Update fee policy for Channel: "+(i.remote_alias||i.chan_id?i.remote_alias&&i.chan_id?i.remote_alias+" ("+i.chan_id+")":i.remote_alias?i.remote_alias:i.chan_id:i.channel_point),l=[];setTimeout(()=>{this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:a,noBtnText:"Cancel",yesBtnText:"Update Channel",message:l,flgShowInput:!0,hasAdvanced:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:c.UN.NUMBER,inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,step:100,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:c.UN.NUMBER,inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:c.UN.NUMBER,inputValue:this.myChanPolicy.time_lock_delta,width:32},{placeholder:"Minimum HTLC (mSat)",inputType:c.UN.NUMBER,inputValue:""===this.myChanPolicy.min_htlc?0:this.myChanPolicy.min_htlc,width:49,advancedField:!0},{placeholder:"Maximum HTLC (mSat)",inputType:c.UN.NUMBER,inputValue:""===this.myChanPolicy.max_htlc_msat?0:this.myChanPolicy.max_htlc_msat,width:49,advancedField:!0}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[7])).subscribe(o=>{if(o){const a={baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:i.channel_point};o.length>3&&o[3]&&o[4]&&(a.minHtlcMsat=o[3].inputValue,a.maxHtlcMsat=o[4].inputValue),this.store.dispatch((0,T.fy)({payload:a}))}})),this.applyFilter()}onChannelClose(i){i.active&&this.store.dispatch((0,T.$Q)()),this.store.dispatch((0,I.xO)({payload:{data:{channel:i,component:Rr}}}))}onChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{channel:i,selNode:this.selNode,showCopy:!0,component:we}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.active?"active":"inactive")+(i.chan_id?i.chan_id.toLowerCase():"")+(i.remote_pubkey?i.remote_pubkey.toLowerCase():"")+(i.remote_alias?i.remote_alias.toLowerCase():"")+(i.capacity?i.capacity:"")+(i.local_balance?i.local_balance:"")+(i.remote_balance?i.remote_balance:"")+(i.total_satoshis_sent?i.total_satoshis_sent:"")+(i.total_satoshis_received?i.total_satoshis_received:"")+(i.commit_fee?i.commit_fee:"")+(i.private?"private":"public");break;case"active":a=i?.active?"active":"inactive";break;case"private":a=i?.private?"private":"public";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"active"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadChannelsTable(i){this.channels=new u.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}calculateUptime(i){let m=60,v=1,b=0;switch(i.forEach(S=>{S.uptime&&+S.uptime>b&&(b=+S.uptime)}),!0){case b<3600:this.timeUnit="Mins:Secs",m=60,v=1;break;case b>=3600&&b<86400:this.timeUnit="Hrs:Mins",m=3600,v=60;break;case b>=86400&&b<31536e3:this.timeUnit="Days:Hrs",m=86400,v=3600;break;case b>31536e3:this.timeUnit="Yrs:Days",m=31536e3,v=86400;break;default:this.timeUnit="Mins:Secs",m=60,v=1}return i.forEach(S=>{S.uptime_str=S.uptime?this.decimalPipe.transform(Math.floor(+S.uptime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.uptime%m/v),"2.0-0"):"---",S.lifetime_str=S.lifetime?this.decimalPipe.transform(Math.floor(+S.lifetime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.lifetime%m/v),"2.0-0"):"---"}),i}onLoopOut(i){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,g.Q)(this.unSubs[8])).subscribe(o=>{this.store.dispatch((0,I.xO)({payload:{minHeight:"56rem",data:{channel:i,minQuote:o[0],maxQuote:o[1],direction:c.C7.LOOP_OUT,component:ze.D}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(i){return(i/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(me.L),e.rXU($.h),e.rXU(_e.H),e.rXU(_.QX),e.rXU(Je.Q),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-open-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:96,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","active"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Active",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private",4,"matHeaderCellDef"],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","chan_id"],["matColumnDef","initiator"],["matColumnDef","static_remote_key"],["matColumnDef","uptime_str"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lifetime_str"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","num_updates"],["matColumnDef","unsettled_balance"],["matColumnDef","capacity"],["matColumnDef","local_chan_reserve_sat"],["matColumnDef","remote_chan_reserve_sat"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","5",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","Active"],["mat-cell",""],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot grey","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","grey"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private"],["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"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,jr,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,Gr,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,Dr,1,0,"th",13)(20,$r,3,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Ar,1,0,"th",16)(23,Or,3,2,"td",14),e.bVm(),e.qex(24,17),e.DNE(25,Vr,2,0,"th",18)(26,Yr,4,4,"td",14),e.bVm(),e.qex(27,19),e.DNE(28,Xr,2,0,"th",18)(29,Ur,4,4,"td",14),e.bVm(),e.qex(30,20),e.DNE(31,Hr,2,0,"th",18)(32,qr,4,4,"td",14),e.bVm(),e.qex(33,21),e.DNE(34,zr,2,0,"th",18)(35,Jr,4,4,"td",14),e.bVm(),e.qex(36,22),e.DNE(37,Qr,2,0,"th",18)(38,Wr,2,1,"td",14),e.bVm(),e.qex(39,23),e.DNE(40,Zr,2,0,"th",18)(41,Kr,2,1,"td",14),e.bVm(),e.qex(42,24),e.DNE(43,e1,2,1,"th",25)(44,t1,3,1,"td",14),e.bVm(),e.qex(45,26),e.DNE(46,n1,2,1,"th",25)(47,i1,3,1,"td",14),e.bVm(),e.qex(48,27),e.DNE(49,a1,2,0,"th",25)(50,s1,4,3,"td",14),e.bVm(),e.qex(51,28),e.DNE(52,o1,2,0,"th",25)(53,l1,4,3,"td",14),e.bVm(),e.qex(54,29),e.DNE(55,r1,2,0,"th",25)(56,c1,4,3,"td",14),e.bVm(),e.qex(57,30),e.DNE(58,p1,2,0,"th",25)(59,m1,4,3,"td",14),e.bVm(),e.qex(60,31),e.DNE(61,u1,2,0,"th",25)(62,d1,4,3,"td",14),e.bVm(),e.qex(63,32),e.DNE(64,h1,2,0,"th",25)(65,_1,4,3,"td",14),e.bVm(),e.qex(66,33),e.DNE(67,f1,2,0,"th",25)(68,g1,4,3,"td",14),e.bVm(),e.qex(69,34),e.DNE(70,C1,2,0,"th",25)(71,y1,4,3,"td",14),e.bVm(),e.qex(72,35),e.DNE(73,b1,2,0,"th",25)(74,F1,4,3,"td",14),e.bVm(),e.qex(75,36),e.DNE(76,x1,2,0,"th",25)(77,v1,4,3,"td",14),e.bVm(),e.qex(78,37),e.DNE(79,T1,2,0,"th",25)(80,k1,4,3,"td",14),e.bVm(),e.qex(81,38),e.DNE(82,S1,2,0,"th",25)(83,R1,4,3,"td",14),e.bVm(),e.qex(84,39),e.DNE(85,E1,2,0,"th",18)(86,I1,6,5,"td",14),e.bVm(),e.qex(87,40),e.DNE(88,L1,8,0,"th",41)(89,G1,15,2,"td",42),e.bVm(),e.qex(90,43),e.DNE(91,A1,5,4,"td",44),e.bVm(),e.DNE(92,M1,1,3,"tr",45)(93,B1,1,0,"tr",46)(94,O1,1,0,"tr",47),e.k0s()(),e.nrm(95,"mat-paginator",48),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,Er).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",(null==a.apiCallStatus?null:a.apiCallStatus.status)===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",e.eq3(15,Ir,""!==a.errorMessage)),e.R7$(76),e.Y8G("matFooterRowDef",e.lJ4(17,Lr)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,O.aY,M.fg,C.rl,C.nJ,C.MV,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.QX],styles:[".mat-column-active[_ngcontent-%COMP%], .mat-column-private[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}))}return t(),s})();const Y1=["outputIdx"];function X1(t,s){if(1&t&&(e.j41(0,"div",31),e.nrm(1,"fa-icon",16),e.j41(2,"span"),e.EFF(3,"Change output balance "),e.j41(4,"strong"),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.EFF(7," (Sats) may be insufficient for fee bumping, depending on the prevailing fee rates."),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(4),e.JRh(e.bMT(6,2,n.dustOutputValue))}}function U1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Index for change output is required."),e.k0s())}function H1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid index value."),e.k0s())}function q1(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function z1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function J1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",20)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",33,1),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.blocks,o)||(a.blocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,z1,2,0,"mat-error",22),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.blocks),e.R7$(2),e.Y8G("ngIf",!n.blocks)}}function Q1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function W1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",20)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",34,2),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.fees,o)||(a.fees=o),r.Njj(o)}),e.k0s(),e.DNE(5,Q1,2,0,"mat-error",22),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.fees),e.R7$(2),e.Y8G("ngIf",!n.fees)}}function Z1(t,s){if(1&t&&(e.j41(0,"div",35),e.nrm(1,"fa-icon",16),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(2),e.JRh(n.bumpFeeError)}}let tt=(()=>{var t;class s{set outputIndx(i){i&&(this.outputIdx=i)}constructor(i,o,a,l,p){this.dialogRef=i,this.data=o,this.logger=a,this.dataService=l,this.store=p,this.faUpRightFromSquare=x.k02,this.txid="",this.outputIndex=null,this.transTypes=[...c.XG],this.selTransType="2",this.blocks=null,this.fees=null,this.faCopy=x.jPR,this.faInfoCircle=x.iW_,this.faExclamationTriangle=x.zpE,this.bumpFeeError="",this.flgShowDustWarning=!1,this.dustOutputValue=0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){if(this.transTypes=this.transTypes.splice(1),this.data.pendingChannel&&this.data.pendingChannel.channel){const i=this.data.pendingChannel.channel?.channel_point?.split(":")||[];this.txid=i[0]||(this.data.pendingChannel.channel&&this.data.pendingChannel.channel.channel_point?this.data.pendingChannel.channel.channel_point:""),this.outputIndex=i[1]&&""!==i[1]&&0==+i[1]?1:0}else this.data.selUTXO&&this.data.selUTXO.outpoint&&(this.txid=this.data.selUTXO.outpoint.txid_str||"",this.outputIndex=this.data.selUTXO.outpoint.output_index||0);this.logger.info(this.txid,this.outputIndex),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i,this.logger.info(this.selNode)}),this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[1])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.dataService.getBlockExplorerTransaction(this.txid).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:i=>{this.dustOutputValue=i.vout[this.outputIndex].value,this.flgShowDustWarning=this.dustOutputValue<1e3},error:i=>{this.logger.error(i)}})}onBumpFee(){if(this.data.pendingChannel&&this.data.pendingChannel.channel){const i=this.data.pendingChannel.channel?.channel_point?.split(":")||[],o=i.length>1&&i[1]&&""!==i[1]?+i[1]:null;if(o&&this.outputIndex===o)return this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0}if(!this.outputIndex&&0!==this.outputIndex||"1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;this.dataService.bumpFee(this.txid,this.outputIndex,this.blocks||null,this.fees||null).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:i=>{this.dialogRef.close(!1)},error:i=>{this.logger.error(i),this.bumpFeeError=i.message?i.message:i}})}onExplorerClicked(){window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+this.txid,"_blank")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU(Z.u),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-bump-fee"]],viewQuery:function(o,a){if(1&o&&e.GBs(Y1,5),2&o){let l;e.mGM(l=e.lsd())&&(a.outputIndx=l.first)}},standalone:!1,decls:48,vars:20,consts:[["outputIndx","ngModel"],["blcks","ngModel"],["fee","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column","fxFlex.gt-sm","32","fxLayoutAlign","start end"],["autoFocus","","matInput","","type","number","required","","name","outputIndx",3,"ngModelChange","step","min","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","32"],[3,"valueChange","selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit",3,"click"],["fxFlex","100",1,"alert","alert-warn"],[3,"value"],["matInput","","type","number","name","blocks","required","",3,"ngModelChange","step","min","ngModel"],["matInput","","type","number","name","fees","required","",3,"ngModelChange","step","min","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e.EFF(5,"Bump Fee"),e.k0s()(),e.j41(6,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",9)(9,"form",10)(10,"div",11)(11,"p",12),e.EFF(12),e.j41(13,"fa-icon",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onExplorerClicked())}),e.k0s()(),e.j41(14,"div",14)(15,"div",15),e.nrm(16,"fa-icon",16),e.j41(17,"span",17)(18,"div"),e.EFF(19,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(20,"div"),e.EFF(21),e.k0s(),e.j41(22,"div"),e.EFF(23),e.k0s(),e.j41(24,"div"),e.EFF(25),e.k0s()()(),e.DNE(26,X1,8,4,"div",18),e.j41(27,"div",19)(28,"mat-form-field",20)(29,"mat-label"),e.EFF(30,"Index for Change Output"),e.k0s(),e.j41(31,"input",21,0),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.outputIndex,m)||(a.outputIndex=m),r.Njj(m)}),e.k0s(),e.DNE(33,U1,2,0,"mat-error",22)(34,H1,2,0,"mat-error",22),e.k0s(),e.j41(35,"mat-form-field",23)(36,"mat-label"),e.EFF(37,"Transaction Type"),e.k0s(),e.j41(38,"mat-select",24),e.mxI("valueChange",function(m){return r.eBV(l),e.DH7(a.selTransType,m)||(a.selTransType=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.blocks=null,r.Njj(a.fees=null)}),e.DNE(39,q1,2,2,"mat-option",25),e.k0s()(),e.DNE(40,J1,6,4,"mat-form-field",26)(41,W1,6,4,"mat-form-field",26),e.k0s(),e.DNE(42,Z1,4,2,"div",27),e.k0s()(),e.j41(43,"div",28)(44,"button",29),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(45,"Clear"),e.k0s(),e.j41(46,"button",30),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onBumpFee())}),e.EFF(47),e.k0s()()()()()()}if(2&o){const l=e.sdS(32);e.R7$(12),e.SpI(" ",a.txid?"Bump fee for transaction ID: "+a.txid:"Bump fee: "," "),e.R7$(),e.Y8G("matTooltip",e.mNQ("Link to "+a.selNode.settings.blockExplorerUrl))("icon",a.faUpRightFromSquare),e.R7$(3),e.Y8G("icon",a.faInfoCircle),e.R7$(5),e.SpI("- High: ",a.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",a.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",a.recommendedFee.hourFee||"Unknown"),e.R7$(),e.Y8G("ngIf",a.flgShowDustWarning),e.R7$(5),e.Y8G("step",1)("min",0),e.R50("ngModel",a.outputIndex),e.R7$(2),e.Y8G("ngIf",null==l.errors?null:l.errors.required),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.OutputIndexError),e.R7$(4),e.R50("value",a.selTransType),e.R7$(),e.Y8G("ngForOf",a.transTypes),e.R7$(),e.Y8G("ngIf","1"===a.selTransType),e.R7$(),e.Y8G("ngIf","2"===a.selTransType),e.R7$(),e.Y8G("ngIf",""!==a.bumpFeeError),e.R7$(5),e.JRh(""!==a.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,O.aY,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.TL,f.DJ,f.sA,f.UI,E.VO,X.wT,ee.oV,te.N,ae.V,_.QX],encapsulation:2}))}return t(),s})();const xe=t=>({"error-border bordered-box":t,"bordered-box":!0}),K1=()=>["no_pending_open"],ec=()=>["no_pending_force_closing"],tc=()=>["no_pending_closing"],nc=()=>["no_pending_wait_closing"],Q=t=>({width:t}),De=t=>({"display-none":t}),ic=t=>({"py-0":!0,"display-none":t});function ac(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function sc(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function oc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function lc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function rc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function cc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function pc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function mc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function uc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function dc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function hc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function _c(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function fc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Confirmation Height"),e.k0s())}function gc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.confirmation_height))}}function Cc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function yc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.commit_fee))}}function bc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Commit Weight"),e.k0s())}function Fc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.commit_weight))}}function xc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Fee/KW"),e.k0s())}function vc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.fee_per_kw))}}function Tc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function kc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function Sc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function Rc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function Ec(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function Ic(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function Lc(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function wc(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"div",48)(2,"mat-select",50),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",51),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onOpenClick(o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",51),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onBumpFee(o))}),e.EFF(7,"Bump Fee"),e.k0s()()()()}}function jc(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function Gc(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function Dc(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Nc(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,jc,2,0,"p",53)(2,Gc,2,0,"p",53)(3,Dc,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Pc(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,De,n.pendingOpenChannels&&(null==n.pendingOpenChannels?null:n.pendingOpenChannels.data)&&(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)>0))}}function $c(t,s){1&t&&e.nrm(0,"tr",55)}function Ac(t,s){1&t&&e.nrm(0,"tr",56)}function Mc(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function Bc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function Oc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Vc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function Yc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function Xc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function Uc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function Hc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function qc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function zc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function Jc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function Qc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function Wc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function Zc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Limbo Balance (Sats)"),e.k0s())}function Kc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.limbo_balance))}}function ep(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Maturity Height"),e.k0s())}function tp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.maturity_height))}}function np(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Blocks till Maturity"),e.k0s())}function ip(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.blocks_til_maturity))}}function ap(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Recovered Balance (Sats)"),e.k0s())}function sp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.recovered_balance))}}function op(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function lp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function rp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function cp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function pp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function mp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function up(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function dp(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",57),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onForceClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function hp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function _p(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function fp(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function gp(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,hp,2,0,"p",53)(2,_p,2,0,"p",53)(3,fp,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Cp(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,De,n.pendingForceClosingChannels&&(null==n.pendingForceClosingChannels?null:n.pendingForceClosingChannels.data)&&(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)>0))}}function yp(t,s){1&t&&e.nrm(0,"tr",55)}function bp(t,s){1&t&&e.nrm(0,"tr",56)}function Fp(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function xp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function vp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Tp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function kp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function Sp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function Rp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function Ep(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function Ip(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function Lp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function wp(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function jp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function Gp(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function Dp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Np(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function Pp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function $p(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function Ap(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function Mp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function Bp(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function Op(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",58),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Vp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function Yp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function Xp(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Up(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Vp,2,0,"p",53)(2,Yp,2,0,"p",53)(3,Xp,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Hp(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,De,n.pendingClosingChannels&&(null==n.pendingClosingChannels?null:n.pendingClosingChannels.data)&&(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)>0))}}function qp(t,s){1&t&&e.nrm(0,"tr",55)}function zp(t,s){1&t&&e.nrm(0,"tr",56)}function Jp(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function Qp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function Wp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Zp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function Kp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function em(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function tm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function nm(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function im(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function am(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function sm(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function om(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function lm(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function rm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Limbo Balance (Sats)"),e.k0s())}function cm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.limbo_balance))}}function pm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function mm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function um(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function dm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function hm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function _m(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function fm(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function gm(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",59),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onWaitClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Cm(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function ym(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function bm(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Fm(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Cm,2,0,"p",53)(2,ym,2,0,"p",53)(3,bm,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function xm(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,ic,n.pendingWaitClosingChannels&&(null==n.pendingWaitClosingChannels?null:n.pendingWaitClosingChannels.data)&&(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)>0))}}function vm(t,s){1&t&&e.nrm(0,"tr",55)}function Tm(t,s){1&t&&e.nrm(0,"tr",56)}let km=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.commonService=a,this.PAGE_ID="peers_channels",this.openTableSetting={tableId:"pending_open",recordsPerPage:c.md,sortBy:"capacity",sortOrder:c.oi.DESCENDING},this.forceClosingTableSetting={tableId:"pending_force_closing",recordsPerPage:c.md,sortBy:"limbo_balance",sortOrder:c.oi.DESCENDING},this.closingTableSetting={tableId:"pending_closing",recordsPerPage:c.md,sortBy:"capacity",sortOrder:c.oi.DESCENDING},this.waitingCloseTableSetting={tableId:"pending_waiting_close",recordsPerPage:c.md,sortBy:"limbo_balance",sortOrder:c.oi.DESCENDING},this.information={},this.pendingChannels={},this.displayedOpenColumns=[],this.pendingOpenChannelsLength=0,this.pendingOpenChannels=new u.I6([]),this.displayedForceClosingColumns=[],this.pendingForceClosingChannelsLength=0,this.pendingForceClosingChannels=new u.I6([]),this.displayedClosingColumns=[],this.pendingClosingChannelsLength=0,this.pendingClosingChannels=new u.I6([]),this.displayedWaitClosingColumns=[],this.pendingWaitClosingChannelsLength=0,this.pendingWaitClosingChannels=new u.I6([]),this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.openTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.openTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.openTableSetting.tableId),this.displayedOpenColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.openTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.openTableSetting.columnSelection)),this.displayedOpenColumns.push("actions"),this.logger.info(this.displayedOpenColumns),this.forceClosingTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.forceClosingTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.forceClosingTableSetting.tableId),this.displayedForceClosingColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.forceClosingTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.forceClosingTableSetting.columnSelection)),this.displayedForceClosingColumns.push("actions"),this.logger.info(this.displayedForceClosingColumns),this.closingTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.closingTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.closingTableSetting.tableId),this.displayedClosingColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.closingTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.closingTableSetting.columnSelection)),this.displayedClosingColumns.push("actions"),this.logger.info(this.displayedClosingColumns),this.waitingCloseTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.waitingCloseTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.waitingCloseTableSetting.tableId),this.displayedWaitClosingColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.waitingCloseTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.waitingCloseTableSetting.columnSelection)),this.displayedWaitClosingColumns.push("actions"),this.logger.info(this.displayedWaitClosingColumns)}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=i.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(i)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(i){const o=JSON.parse(JSON.stringify(i,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:100,type:c.UN.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:100,type:c.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"confirmation_height",value:l.confirmation_height,title:"Confirmation Height",width:25,type:c.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:c.UN.NUMBER}],[{key:"fee_per_kw",value:l.fee_per_kw,title:"Fee/KW",width:25,type:c.UN.NUMBER},{key:"commit_weight",value:l.commit_weight,title:"Commit Weight",width:25,type:c.UN.NUMBER},{key:"commit_fee",value:l.commit_fee,title:"Commit Fee",width:50,type:c.UN.NUMBER}]]}}}))}onBumpFee(i){this.store.dispatch((0,I.xO)({payload:{data:{pendingChannel:i,component:tt}}}))}onForceClosingClick(i){const o=JSON.parse(JSON.stringify(i,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:100,type:c.UN.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:c.UN.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:c.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"limbo_balance",value:l.limbo_balance,title:"Limbo Balance",width:25,type:c.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:c.UN.NUMBER}],[{key:"maturity_height",value:l.maturity_height,title:"Maturity Height",width:25,type:c.UN.NUMBER},{key:"blocks_til_maturity",value:l.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:c.UN.NUMBER},{key:"recovered_balance",value:l.recovered_balance,title:"Recovered Balance",width:50,type:c.UN.NUMBER}]]}}}))}onClosingClick(i){const o=JSON.parse(JSON.stringify(i,["closing_txid"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:50,type:c.UN.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:c.UN.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:c.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:50,type:c.UN.NUMBER}]]}}}))}onWaitClosingClick(i){const o=JSON.parse(JSON.stringify(i,["limbo_balance"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l=JSON.parse(JSON.stringify(i.commitments,["local_txid"],2)),p={};Object.assign(p,o,a,l),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:p.local_txid,title:"Transaction ID",width:100,type:c.UN.STRING}],[{key:"channel_point",value:p.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:p.remote_alias,title:"Peer Alias",width:25,type:c.UN.STRING},{key:"remote_node_pub",value:p.remote_node_pub,title:"Peer Node Pubkey",width:75,type:c.UN.STRING}],[{key:"capacity",value:p.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"limbo_balance",value:p.limbo_balance,title:"Limbo Balance",width:25,type:c.UN.NUMBER},{key:"local_balance",value:p.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:p.remote_balance,title:"Remote Balance",width:25,type:c.UN.NUMBER}]]}}}))}loadOpenChannelsTable(i){this.pendingOpenChannelsLength=i.length?i.length:0,this.pendingOpenChannels=new u.I6([...i]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(i){this.pendingForceClosingChannelsLength=i.length?i.length:0,this.pendingForceClosingChannels=new u.I6([...i]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(i){this.pendingClosingChannelsLength=i.length?i.length:0,this.pendingClosingChannels=new u.I6([...i]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(i){this.pendingWaitClosingChannelsLength=i.length?i.length:0,this.pendingWaitClosingChannels=new u.I6([...i]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-pending-table"]],viewQuery:function(o,a){if(1&o&&e.GBs(R.B4,5),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:202,vars:52,consts:[["table",""],["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_node_pub"],["matColumnDef","channel_point"],["matColumnDef","initiator"],["matColumnDef","commitment_type"],["matColumnDef","confirmation_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","capacity"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","closing_txid"],["matColumnDef","limbo_balance"],["matColumnDef","maturity_height"],["matColumnDef","blocks_til_maturity"],["matColumnDef","recovered_balance"],["matColumnDef","no_pending_force_closing"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["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"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-stroked-button","","color","primary","type","button","tabindex","2",1,"table-actions-button",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","3",1,"table-actions-button",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"span",2),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.j41(4,"mat-accordion",3),e.DNE(5,ac,1,0,"mat-progress-bar",4),e.j41(6,"mat-expansion-panel",5)(7,"mat-expansion-panel-header")(8,"mat-panel-title"),e.EFF(9),e.k0s()(),e.j41(10,"div",6),e.DNE(11,sc,1,0,"mat-progress-bar",4),e.j41(12,"table",7,0),e.qex(14,8),e.DNE(15,oc,2,0,"th",9)(16,lc,4,4,"td",10),e.bVm(),e.qex(17,11),e.DNE(18,rc,2,0,"th",9)(19,cc,4,4,"td",10),e.bVm(),e.qex(20,12),e.DNE(21,pc,2,0,"th",9)(22,mc,4,4,"td",10),e.bVm(),e.qex(23,13),e.DNE(24,uc,2,0,"th",9)(25,dc,3,4,"td",10),e.bVm(),e.qex(26,14),e.DNE(27,hc,2,0,"th",9)(28,_c,3,5,"td",10),e.bVm(),e.qex(29,15),e.DNE(30,fc,2,0,"th",16)(31,gc,4,3,"td",10),e.bVm(),e.qex(32,17),e.DNE(33,Cc,2,0,"th",16)(34,yc,4,3,"td",10),e.bVm(),e.qex(35,18),e.DNE(36,bc,2,0,"th",16)(37,Fc,4,3,"td",10),e.bVm(),e.qex(38,19),e.DNE(39,xc,2,0,"th",16)(40,vc,4,3,"td",10),e.bVm(),e.qex(41,20),e.DNE(42,Tc,2,0,"th",16)(43,kc,4,3,"td",10),e.bVm(),e.qex(44,21),e.DNE(45,Sc,2,0,"th",16)(46,Rc,4,3,"td",10),e.bVm(),e.qex(47,22),e.DNE(48,Ec,2,0,"th",16)(49,Ic,4,3,"td",10),e.bVm(),e.qex(50,23),e.DNE(51,Lc,3,0,"th",24)(52,wc,8,0,"td",25),e.bVm(),e.qex(53,26),e.DNE(54,Nc,4,3,"td",27),e.bVm(),e.DNE(55,Pc,1,3,"tr",28)(56,$c,1,0,"tr",29)(57,Ac,1,0,"tr",30),e.k0s()()(),e.DNE(58,Mc,1,0,"mat-progress-bar",4),e.j41(59,"mat-expansion-panel",5)(60,"mat-expansion-panel-header")(61,"mat-panel-title"),e.EFF(62),e.k0s()(),e.j41(63,"div",6)(64,"table",31,0),e.qex(66,32),e.DNE(67,Bc,2,0,"th",9)(68,Oc,4,4,"td",10),e.bVm(),e.qex(69,8),e.DNE(70,Vc,2,0,"th",9)(71,Yc,4,4,"td",10),e.bVm(),e.qex(72,11),e.DNE(73,Xc,2,0,"th",9)(74,Uc,4,4,"td",10),e.bVm(),e.qex(75,12),e.DNE(76,Hc,2,0,"th",9)(77,qc,4,4,"td",10),e.bVm(),e.qex(78,13),e.DNE(79,zc,2,0,"th",9)(80,Jc,3,4,"td",10),e.bVm(),e.qex(81,14),e.DNE(82,Qc,2,0,"th",9)(83,Wc,3,5,"td",10),e.bVm(),e.qex(84,33),e.DNE(85,Zc,2,0,"th",16)(86,Kc,4,3,"td",10),e.bVm(),e.qex(87,34),e.DNE(88,ep,2,0,"th",16)(89,tp,4,3,"td",10),e.bVm(),e.qex(90,35),e.DNE(91,np,2,0,"th",16)(92,ip,4,3,"td",10),e.bVm(),e.qex(93,36),e.DNE(94,ap,2,0,"th",16)(95,sp,4,3,"td",10),e.bVm(),e.qex(96,20),e.DNE(97,op,2,0,"th",16)(98,lp,4,3,"td",10),e.bVm(),e.qex(99,21),e.DNE(100,rp,2,0,"th",16)(101,cp,4,3,"td",10),e.bVm(),e.qex(102,22),e.DNE(103,pp,2,0,"th",16)(104,mp,4,3,"td",10),e.bVm(),e.qex(105,23),e.DNE(106,up,3,0,"th",24)(107,dp,3,0,"td",25),e.bVm(),e.qex(108,37),e.DNE(109,gp,4,3,"td",27),e.bVm(),e.DNE(110,Cp,1,3,"tr",28)(111,yp,1,0,"tr",29)(112,bp,1,0,"tr",30),e.k0s()()(),e.DNE(113,Fp,1,0,"mat-progress-bar",4),e.j41(114,"mat-expansion-panel",5)(115,"mat-expansion-panel-header")(116,"mat-panel-title"),e.EFF(117),e.k0s()(),e.j41(118,"div",6)(119,"table",31,0),e.qex(121,32),e.DNE(122,xp,2,0,"th",9)(123,vp,4,4,"td",10),e.bVm(),e.qex(124,8),e.DNE(125,Tp,2,0,"th",9)(126,kp,4,4,"td",10),e.bVm(),e.qex(127,11),e.DNE(128,Sp,2,0,"th",9)(129,Rp,4,4,"td",10),e.bVm(),e.qex(130,12),e.DNE(131,Ep,2,0,"th",9)(132,Ip,4,4,"td",10),e.bVm(),e.qex(133,13),e.DNE(134,Lp,2,0,"th",9)(135,wp,3,4,"td",10),e.bVm(),e.qex(136,14),e.DNE(137,jp,2,0,"th",9)(138,Gp,3,5,"td",10),e.bVm(),e.qex(139,20),e.DNE(140,Dp,2,0,"th",16)(141,Np,4,3,"td",10),e.bVm(),e.qex(142,21),e.DNE(143,Pp,2,0,"th",16)(144,$p,4,3,"td",10),e.bVm(),e.qex(145,22),e.DNE(146,Ap,2,0,"th",16)(147,Mp,4,3,"td",10),e.bVm(),e.qex(148,23),e.DNE(149,Bp,3,0,"th",24)(150,Op,3,0,"td",25),e.bVm(),e.qex(151,38),e.DNE(152,Up,4,3,"td",27),e.bVm(),e.DNE(153,Hp,1,3,"tr",28)(154,qp,1,0,"tr",29)(155,zp,1,0,"tr",30),e.k0s()()(),e.DNE(156,Jp,1,0,"mat-progress-bar",4),e.j41(157,"mat-expansion-panel",5)(158,"mat-expansion-panel-header")(159,"mat-panel-title"),e.EFF(160),e.k0s()(),e.j41(161,"div",6)(162,"table",31,0),e.qex(164,32),e.DNE(165,Qp,2,0,"th",9)(166,Wp,4,4,"td",10),e.bVm(),e.qex(167,8),e.DNE(168,Zp,2,0,"th",9)(169,Kp,4,4,"td",10),e.bVm(),e.qex(170,11),e.DNE(171,em,2,0,"th",9)(172,tm,4,4,"td",10),e.bVm(),e.qex(173,12),e.DNE(174,nm,2,0,"th",9)(175,im,4,4,"td",10),e.bVm(),e.qex(176,13),e.DNE(177,am,2,0,"th",9)(178,sm,3,4,"td",10),e.bVm(),e.qex(179,14),e.DNE(180,om,2,0,"th",9)(181,lm,3,5,"td",10),e.bVm(),e.qex(182,33),e.DNE(183,rm,2,0,"th",16)(184,cm,4,3,"td",10),e.bVm(),e.qex(185,20),e.DNE(186,pm,2,0,"th",16)(187,mm,4,3,"td",10),e.bVm(),e.qex(188,21),e.DNE(189,um,2,0,"th",16)(190,dm,4,3,"td",10),e.bVm(),e.qex(191,22),e.DNE(192,hm,2,0,"th",16)(193,_m,4,3,"td",10),e.bVm(),e.qex(194,23),e.DNE(195,fm,3,0,"th",24)(196,gm,3,0,"td",25),e.bVm(),e.qex(197,39),e.DNE(198,Fm,4,3,"td",27),e.bVm(),e.DNE(199,xm,1,3,"tr",28)(200,vm,1,0,"tr",29)(201,Tm,1,0,"tr",30),e.k0s()()()()()),2&o&&(e.R7$(2),e.SpI("Total Limbo Balance: ",e.bMT(3,38,a.pendingChannels.total_limbo_balance)," Sats"),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Open (",a.pendingOpenChannelsLength,")"),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.openTableSetting.sortBy)("matSortDirection",a.openTableSetting.sortOrder)("dataSource",a.pendingOpenChannels)("ngClass",e.eq3(40,xe,""!==a.errorMessage)),e.R7$(43),e.Y8G("matFooterRowDef",e.lJ4(42,K1)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedOpenColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedOpenColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Force Closing (",a.pendingForceClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.forceClosingTableSetting.sortBy)("matSortDirection",a.forceClosingTableSetting.sortOrder)("dataSource",a.pendingForceClosingChannels)("ngClass",e.eq3(43,xe,""!==a.errorMessage)),e.R7$(46),e.Y8G("matFooterRowDef",e.lJ4(45,ec)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedForceClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedForceClosingColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Closing (",a.pendingClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.closingTableSetting.sortBy)("matSortDirection",a.closingTableSetting.sortOrder)("dataSource",a.pendingClosingChannels)("ngClass",e.eq3(46,xe,""!==a.errorMessage)),e.R7$(34),e.Y8G("matFooterRowDef",e.lJ4(48,tc)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedClosingColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Waiting Close (",a.pendingWaitClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.waitingCloseTableSetting.sortBy)("matSortDirection",a.waitingCloseTableSetting.sortOrder)("dataSource",a.pendingWaitClosingChannels)("ngClass",e.eq3(49,xe,""!==a.errorMessage)),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(51,nc)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedWaitClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedWaitClosingColumns))},dependencies:[_.YU,_.bT,_.B3,N.$z,q.BS,q.GK,q.Z2,q.WN,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,B.Ld,_.QX,J.VD],styles:["tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}))}return t(),s})();const Sm=()=>["all"],Rm=t=>({"error-border":t,"overflow-auto":!0}),Em=()=>["no_closed_channel"],ue=t=>({width:t}),Im=t=>({"display-none":t});function Lm(t,s){if(1&t&&(e.j41(0,"mat-option",36),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function wm(t,s){1&t&&e.nrm(0,"mat-progress-bar",37)}function jm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Close Type"),e.k0s())}function Gm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"mat-icon",41),e.EFF(3,"info_outline"),e.k0s(),e.EFF(4),e.k0s()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(2),e.Y8G("matTooltip",i.channelClosureType[n.close_type].tooltip),e.R7$(2),e.SpI(" ",i.channelClosureType[n.close_type].name," ")}}function Dm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Peer"),e.k0s())}function Nm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_alias)}}function Pm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Pubkey"),e.k0s())}function $m(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_pubkey)}}function Am(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Channel Point"),e.k0s())}function Mm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Bm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Channel ID"),e.k0s())}function Om(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function Vm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Closing Tx Hash"),e.k0s())}function Ym(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.closing_tx_hash)}}function Xm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Chain Hash"),e.k0s())}function Um(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chain_hash)}}function Hm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Open Initiator"),e.k0s())}function qm(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.open_initiator,"initiator_"))}}function zm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Close Initiator"),e.k0s())}function Jm(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.close_initiator,"initiator_"))}}function Qm(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Timelocked Balance (Sats)"),e.k0s())}function Wm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.time_locked_balance)," ")}}function Zm(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Km(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function eu(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Close Height"),e.k0s())}function tu(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.close_height)," ")}}function nu(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Settled Balance (Sats)"),e.k0s())}function iu(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.settled_balance)," ")}}function au(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",46)(1,"div",47)(2,"mat-select",48),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",49),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function su(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",39)(1,"span",45)(2,"button",50),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onClosedChannelClick(a,o))}),e.EFF(3,"View Info"),e.k0s()()()}}function ou(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No closed channel available."),e.k0s())}function lu(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting closed channels..."),e.k0s())}function ru(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function cu(t,s){if(1&t&&(e.j41(0,"td",51),e.DNE(1,ou,2,0,"p",52)(2,lu,2,0,"p",52)(3,ru,2,1,"p",52),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function pu(t,s){if(1&t&&e.nrm(0,"tr",53),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,Im,(null==n.closedChannels?null:n.closedChannels.data)&&(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)>0))}}function mu(t,s){1&t&&e.nrm(0,"tr",54)}function uu(t,s){1&t&&e.nrm(0,"tr",55)}let du=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.commonService=a,this.camelCaseWithReplace=l,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"closed",recordsPerPage:c.md,sortBy:"close_type",sortOrder:c.oi.DESCENDING},this.channelClosureType=c.tj,this.faHistory=x.Int,this.displayedColumns=[],this.closedChannelsData=[],this.closedChannels=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Bw).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.closedChannelsData=i.closedChannels,this.closedChannelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(i)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.closedChannels.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=JSON.stringify(i).toLowerCase();break;case"close_type":a=i.close_type&&this.channelClosureType[i.close_type]&&this.channelClosureType[i.close_type].name?this.channelClosureType[i.close_type].name.toLowerCase():"";break;case"open_initiator":case"close_initiator":a=this.camelCaseWithReplace.transform(i[this.selFilterBy]||"","initiator_").trim().toLowerCase();break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"close_type"===this.selFilterBy||"open_initiator"===this.selFilterBy||"close_initiator"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}onClosedChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[i.close_type].name,title:"Close Type",width:30,type:c.UN.STRING},{key:"settled_balance",value:i.settled_balance,title:"Settled Balance",width:30,type:c.UN.NUMBER},{key:"time_locked_balance",value:i.time_locked_balance,title:"Time Locked Balance",width:40,type:c.UN.NUMBER}],[{key:"chan_id",value:i.chan_id,title:"Channel ID",width:30},{key:"capacity",value:i.capacity,title:"Capacity",width:30,type:c.UN.NUMBER},{key:"close_height",value:i.close_height,title:"Close Height",width:40,type:c.UN.NUMBER}],[{key:"remote_alias",value:i.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:i.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:i.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:i.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:c.UN.STRING}]]}}}))}loadClosedChannelsTable(i){this.closedChannels=new u.I6([...i]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.closedChannels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU($.h),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-closed-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:66,vars:18,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","chan_id"],["matColumnDef","closing_tx_hash"],["matColumnDef","chain_hash"],["matColumnDef","open_initiator"],["matColumnDef","close_initiator"],["matColumnDef","time_locked_balance"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","capacity"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","no_closed_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",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],[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-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(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,Lm,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,wm,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,jm,2,0,"th",13)(20,Gm,5,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Dm,2,0,"th",13)(23,Nm,4,4,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,Pm,2,0,"th",13)(26,$m,4,4,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,Am,2,0,"th",13)(29,Mm,4,4,"td",14),e.bVm(),e.qex(30,18),e.DNE(31,Bm,2,0,"th",13)(32,Om,4,4,"td",14),e.bVm(),e.qex(33,19),e.DNE(34,Vm,2,0,"th",13)(35,Ym,4,4,"td",14),e.bVm(),e.qex(36,20),e.DNE(37,Xm,2,0,"th",13)(38,Um,4,4,"td",14),e.bVm(),e.qex(39,21),e.DNE(40,Hm,2,0,"th",13)(41,qm,3,4,"td",14),e.bVm(),e.qex(42,22),e.DNE(43,zm,2,0,"th",13)(44,Jm,3,4,"td",14),e.bVm(),e.qex(45,23),e.DNE(46,Qm,2,0,"th",24)(47,Wm,4,3,"td",14),e.bVm(),e.qex(48,25),e.DNE(49,Zm,2,0,"th",24)(50,Km,4,3,"td",14),e.bVm(),e.qex(51,26),e.DNE(52,eu,2,0,"th",24)(53,tu,4,3,"td",14),e.bVm(),e.qex(54,27),e.DNE(55,nu,2,0,"th",24)(56,iu,4,3,"td",14),e.bVm(),e.qex(57,28),e.DNE(58,au,6,0,"th",29)(59,su,4,0,"td",14),e.bVm(),e.qex(60,30),e.DNE(61,cu,4,3,"td",31),e.bVm(),e.DNE(62,pu,1,3,"tr",32)(63,mu,1,0,"tr",33)(64,uu,1,0,"tr",34),e.k0s()(),e.nrm(65,"mat-paginator",35),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,Sm).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.closedChannels)("ngClass",e.eq3(15,Rm,""!==a.errorMessage)),e.R7$(46),e.Y8G("matFooterRowDef",e.lJ4(17,Em)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,oe.An,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.QX,J.VD],encapsulation:2}))}return t(),s})();const hu=()=>["all"],_u=t=>({"error-border":t}),fu=()=>["no_channel"],gu=t=>({"display-none":t});function Cu(t,s){if(1&t&&(e.j41(0,"mat-option",33),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function yu(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function bu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Amount (Sats)"),e.k0s())}function Fu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.amount)," ")}}function xu(t,s){if(1&t&&(e.qex(0),e.DNE(1,Fu,3,3,"span",39),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function vu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,xu,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" Active HTLCs: ",null==n||null==n.pending_htlcs?null:n.pending_htlcs.length," "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Tu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Alias/Incoming"),e.k0s())}function ku(t,s){if(1&t&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null!=n&&n.incoming?"Yes":"No"," ")}}function Su(t,s){if(1&t&&(e.qex(0),e.DNE(1,ku,2,1,"span",41),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Ru(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,Su,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(null==n?null:n.remote_alias),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Eu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Forwarding Channel"),e.k0s())}function Iu(t,s){if(1&t&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.forwarding_channel," ")}}function Lu(t,s){if(1&t&&(e.qex(0),e.DNE(1,Iu,2,1,"span",41),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function wu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,Lu,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function ju(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"HTLC Index"),e.k0s()())}function Gu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.htlc_index)," ")}}function Du(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Gu,3,3,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Nu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Du,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Pu(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"Forwarding HTLC Index"),e.k0s()())}function $u(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.forwarding_htlc_index)," ")}}function Au(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,$u,3,3,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Mu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Au,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Bu(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"Expiration Height"),e.k0s()())}function Ou(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n?null:n.expiration_height,"1.0-0")," ")}}function Vu(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ou,3,4,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Yu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Vu,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Xu(t,s){1&t&&(e.j41(0,"th",43)(1,"span",40),e.EFF(2,"Hash Lock"),e.k0s()())}function Uu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.hash_lock," ")}}function Hu(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Uu,2,1,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function qu(t,s){if(1&t&&(e.j41(0,"td",44)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Hu,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function zu(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",48),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Ju(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",53)(1,"button",54),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2).$implicit,l=e.XpG();return r.Njj(l.onHTLCClick(o,a))}),e.EFF(2),e.k0s()()}if(2&t){const n=s.index;e.R7$(2),e.SpI("View ",n+1)}}function Qu(t,s){if(1&t&&(e.j41(0,"div"),e.DNE(1,Ju,3,1,"div",52),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Wu(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"span",50)(2,"button",51),e.bIt("click",function(){const o=r.eBV(n).$implicit;return r.Njj(o.is_expanded=!o.is_expanded)}),e.EFF(3),e.k0s()(),e.DNE(4,Qu,2,1,"div",38),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(3),e.JRh(n.is_expanded?"Hide":"Show"),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Zu(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No active htlc available."),e.k0s())}function Ku(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting active htlcs..."),e.k0s())}function ed(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function td(t,s){if(1&t&&(e.j41(0,"td",55),e.DNE(1,Zu,2,0,"p",38)(2,Ku,2,0,"p",38)(3,ed,2,1,"p",38),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function nd(t,s){if(1&t&&e.nrm(0,"tr",56),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,gu,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function id(t,s){1&t&&e.nrm(0,"tr",57)}function ad(t,s){1&t&&e.nrm(0,"tr",58)}let sd=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.camelCaseWithReplace=l,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"active_HTLCs",recordsPerPage:c.md,sortBy:"expiration_height",sortOrder:c.oi.DESCENDING},this.channels=new u.I6([]),this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsJSONArr=i.channels?.filter(o=>o.pending_htlcs&&o.pending_htlcs.length>0)||[],this.channelsJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(i)})}ngAfterViewInit(){this.channelsJSONArr.length>0&&this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:o.remote_alias,title:"Alias",width:100,type:c.UN.STRING}],[{key:"amount",value:i.amount,title:"Amount (Sats)",width:50,type:c.UN.NUMBER},{key:"incoming",value:i.incoming?"Yes":"No",title:"Incoming",width:50,type:c.UN.STRING}],[{key:"expiration_height",value:i.expiration_height,title:"Expiration Height",width:50,type:c.UN.NUMBER},{key:"hash_lock",value:i.hash_lock,title:"Hash Lock",width:50,type:c.UN.STRING}]]}}}))}onChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{channel:i,showCopy:!0,component:we}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterBy?(i.remote_alias?i.remote_alias.toLowerCase():"")+i.pending_htlcs?.map(l=>JSON.stringify(l)+(l.incoming?"yes":"no")):typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString(),a.includes(o)}}loadHTLCsTable(i){this.channels=new u.I6(i?[...i]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>{switch(a){case"amount":return this.commonService.sortByKey(o.pending_htlcs,a,"number",this.sort?.direction),o.pending_htlcs&&o.pending_htlcs.length?o.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(o.pending_htlcs,a,"boolean",this.sort?.direction),o.remote_alias?o.remote_alias:o.remote_pubkey?o.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(o.pending_htlcs,a,"number",this.sort?.direction),o;default:return o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null}},this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data))?.reduce((a,l)=>a.concat(l.pending_htlcs?l.pending_htlcs:l),[])}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("HTLCs")}])],decls:48,vars:18,consts:[["table",""],["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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","forwarding_channel"],["matColumnDef","htlc_index"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","forwarding_htlc_index"],["matColumnDef","expiration_height"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayout","column","fxLayoutAlign","center end",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",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],["fxLayoutAlign","end center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayout","column","fxLayoutAlign","center end",1,"px-2"],["fxLayoutAlign","end center",1,"htlc-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["class","htlc-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,Cu,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,yu,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,bu,2,0,"th",13)(20,vu,4,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Tu,2,0,"th",13)(23,Ru,4,2,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,Eu,2,0,"th",13)(26,wu,4,2,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,ju,3,0,"th",18)(29,Nu,4,2,"td",14),e.bVm(),e.qex(30,19),e.DNE(31,Pu,3,0,"th",18)(32,Mu,4,2,"td",14),e.bVm(),e.qex(33,20),e.DNE(34,Bu,3,0,"th",18)(35,Yu,4,2,"td",14),e.bVm(),e.qex(36,21),e.DNE(37,Xu,3,0,"th",22)(38,qu,4,2,"td",23),e.bVm(),e.qex(39,24),e.DNE(40,zu,6,0,"th",25)(41,Wu,5,2,"td",26),e.bVm(),e.qex(42,27),e.DNE(43,td,4,3,"td",28),e.bVm(),e.DNE(44,nd,1,3,"tr",29)(45,id,1,0,"tr",30)(46,ad,1,0,"tr",31),e.k0s()(),e.nrm(47,"mat-paginator",32),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,hu).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",e.eq3(15,_u,""!==a.errorMessage)),e.R7$(28),e.Y8G("matFooterRowDef",e.lJ4(17,fu)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX],styles:[".mat-column-amount[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem;padding-right:2rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:3rem}.htlc-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-column-actions[_ngcontent-%COMP%] .htlc-group-head[_ngcontent-%COMP%], .mat-column-actions[_ngcontent-%COMP%] .htlc-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_creation_date[_ngcontent-%COMP%]{min-width:7rem}"]}))}return t(),s})();function od(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Wallet password is required."),e.k0s())}let ld=(()=>{var t;class s{constructor(i){this.store=i,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,T.WE)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-unlock-wallet"]],standalone:!1,decls:14,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","name","walletPassword","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),e.EFF(4,"Password"),e.k0s(),e.j41(5,"input",3),e.mxI("ngModelChange",function(p){return e.DH7(a.walletPassword,p)||(a.walletPassword=p),p}),e.k0s(),e.j41(6,"mat-hint"),e.EFF(7,"Enter Wallet Password"),e.k0s(),e.DNE(8,od,2,0,"mat-error",4),e.k0s(),e.j41(9,"div",5)(10,"button",6),e.bIt("click",function(){return a.resetData()}),e.EFF(11,"Clear Field"),e.k0s(),e.j41(12,"button",7),e.bIt("click",function(){return a.onUnlockWallet()}),e.EFF(13,"Unlock Wallet"),e.k0s()()()()),2&o&&(e.R7$(5),e.R50("ngModel",a.walletPassword),e.R7$(3),e.Y8G("ngIf",!a.walletPassword))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,M.fg,C.rl,C.nJ,C.MV,C.TL,f.DJ,f.sA,f.UI,te.N],encapsulation:2}))}return t(),s})();var rd=y(97768);function cd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",6),e.EFF(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),e.k0s(),e.j41(4,"div",7)(5,"button",8),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.proceed=!1,r.Njj(o.warnRes=!0)}),e.EFF(6,"Do Not Proceed"),e.k0s(),e.j41(7,"button",9),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.proceed=!0,r.Njj(o.warnRes=!0)}),e.EFF(8,"Proceed"),e.k0s()()()()}}function pd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",10)(1,"div",11),e.EFF(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),e.k0s(),e.j41(3,"div",7)(4,"button",12),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.warnRes=!1)}),e.EFF(5,"Go Back"),e.k0s()()()}}function md(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function ud(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password must be at least 8 characters in length."),e.k0s())}function dd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Confirm password is required."),e.k0s())}function hd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Confirm password must be at least 8 characters in length."),e.k0s())}function _d(t,s){1&t&&(e.j41(0,"div",41)(1,"mat-icon",42),e.EFF(2,"cancel"),e.k0s(),e.EFF(3,"Passwords do not match. "),e.k0s())}function fd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Cipher seed is required."),e.k0s())}function gd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),e.k0s())}function Cd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Passphrase is required."),e.k0s())}function yd(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"vpn_key"),e.k0s())}function bd(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"swap_calls"),e.k0s())}function Fd(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"fingerprint"),e.k0s())}function xd(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-vertical-stepper",13,0)(2,"mat-step",14)(3,"form",15)(4,"mat-form-field",16)(5,"mat-label"),e.EFF(6,"Password"),e.k0s(),e.nrm(7,"input",17),e.j41(8,"mat-hint"),e.EFF(9,"Enter Wallet Password"),e.k0s(),e.DNE(10,md,2,0,"mat-error",2)(11,ud,2,0,"mat-error",2),e.k0s(),e.j41(12,"mat-form-field",16)(13,"mat-label"),e.EFF(14,"Confirm Password"),e.k0s(),e.nrm(15,"input",18),e.j41(16,"mat-hint"),e.EFF(17,"Confirm Wallet Password"),e.k0s(),e.DNE(18,dd,2,0,"mat-error",2)(19,hd,2,0,"mat-error",2),e.k0s(),e.DNE(20,_d,4,0,"div",19),e.j41(21,"div",20)(22,"button",21),e.EFF(23,"Next"),e.k0s()()()(),e.j41(24,"mat-step",22)(25,"form",23)(26,"div",24)(27,"mat-slide-toggle",25),e.EFF(28,"Existing Cipher"),e.k0s(),e.j41(29,"mat-form-field",26)(30,"mat-label"),e.EFF(31,"Comma separated array of 24 words cipher seed"),e.k0s(),e.nrm(32,"input",27),e.j41(33,"mat-hint"),e.EFF(34,"Cipher Seed"),e.k0s(),e.DNE(35,fd,2,0,"mat-error",2)(36,gd,2,0,"mat-error",2),e.k0s()(),e.j41(37,"div",28)(38,"button",29),e.EFF(39,"Back"),e.k0s(),e.j41(40,"button",30),e.EFF(41,"Next"),e.k0s()()()(),e.j41(42,"mat-step",31)(43,"form",23)(44,"div",24)(45,"mat-slide-toggle",32),e.EFF(46,"Existing Passphrase"),e.k0s(),e.j41(47,"mat-form-field",33)(48,"mat-label"),e.EFF(49,"Passphrase"),e.k0s(),e.nrm(50,"input",34),e.j41(51,"mat-hint"),e.EFF(52,"Enter Passphrase"),e.k0s(),e.DNE(53,Cd,2,0,"mat-error",2),e.k0s()(),e.j41(54,"div",28)(55,"button",35),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(56,"Clear"),e.k0s(),e.j41(57,"button",36),e.EFF(58,"Back"),e.k0s(),e.j41(59,"button",37),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onInitWallet())}),e.EFF(60,"Initialize Wallet"),e.k0s()()()(),e.DNE(61,yd,2,0,"ng-template",38)(62,bd,2,0,"ng-template",39)(63,Fd,2,0,"ng-template",40),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",n.passwordFormGroup),e.R7$(),e.Y8G("formGroup",n.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletPassword.errors?null:n.passwordFormGroup.controls.initWalletPassword.errors.required),e.R7$(),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletPassword.errors?null:n.passwordFormGroup.controls.initWalletPassword.errors.minlength),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:n.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),e.R7$(),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:n.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),e.R7$(),e.Y8G("ngIf",(null==n.passwordFormGroup.errors?null:n.passwordFormGroup.errors.unmatchedPasswords)&&(n.passwordFormGroup.controls.initWalletPassword.touched||n.passwordFormGroup.controls.initWalletPassword.dirty)&&(n.passwordFormGroup.controls.initWalletConfirmPassword.touched||n.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),e.R7$(4),e.Y8G("stepControl",n.cipherFormGroup),e.R7$(),e.Y8G("formGroup",n.cipherFormGroup),e.R7$(10),e.Y8G("ngIf",null==n.cipherFormGroup.controls.cipherSeed.errors?null:n.cipherFormGroup.controls.cipherSeed.errors.required),e.R7$(),e.Y8G("ngIf",!(null!=n.cipherFormGroup.controls.cipherSeed.errors&&n.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==n.cipherFormGroup.controls.cipherSeed.errors?null:n.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),e.R7$(6),e.Y8G("stepControl",n.passphraseFormGroup),e.R7$(),e.Y8G("formGroup",n.passphraseFormGroup),e.R7$(10),e.Y8G("ngIf",null==n.passphraseFormGroup.controls.passphrase.errors?null:n.passphraseFormGroup.controls.passphrase.errors.required)}}function vd(t,s){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Td(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",43),e.EFF(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),e.k0s(),e.j41(4,"div",44),e.DNE(5,vd,2,1,"span",45),e.k0s(),e.j41(6,"div",46),e.EFF(7,"Wallet initialization is done."),e.k0s(),e.j41(8,"div",46),e.EFF(9,"The node will be usable only after LND has synced completely with the network."),e.k0s(),e.j41(10,"div",46),e.EFF(11,"Click continue only after writing down the seed."),e.k0s(),e.j41(12,"div",7)(13,"button",47),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onGoToHome())}),e.EFF(14,"Go To Home"),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(5),e.Y8G("ngForOf",n.genSeedResponse)}}function kd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",46),e.EFF(3,"Something went wrong! Unable to initialize wallet!"),e.k0s(),e.j41(4,"div",7)(5,"button",49),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(6,"Restart"),e.k0s()()()()}}function Sd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",46),e.EFF(3,"Wallet recovery is done."),e.k0s(),e.j41(4,"div",46),e.EFF(5,"The node will be usable only after LND has synced completely with the network."),e.k0s(),e.j41(6,"div",7)(7,"button",50),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onGoToHome())}),e.EFF(8,"Go To Home"),e.k0s()()()()}}function Rd(t){const s=t.get("initWalletPassword"),n=t.get("initWalletConfirmPassword");return s&&n&&s.value!==n.value?{unmatchedPasswords:!0}:null}function Ed(t){const s=t.value.toString().trim().split(",")||[];return s&&24!==s.length?{invalidCipher:!0}:null}let Id=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.formBuilder=o,this.lndEffects=a,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[d.k0.required,d.k0.minLength(8)]],initWalletConfirmPassword:["",[d.k0.required,d.k0.minLength(8)]]},{validators:Rd}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[Ed]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,g.Q)(this.unsubs[0])).subscribe(i=>{i?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,g.Q)(this.unsubs[1])).subscribe(i=>{i?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,g.Q)(this.unsubs[2])).subscribe(i=>{this.initWalletResponse=i}),this.lndEffects.genSeedResponse.pipe((0,g.Q)(this.unsubs[3])).subscribe(i=>{this.genSeedResponse=i,this.store.dispatch((0,T.GZ)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const i=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,T.GZ)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:i,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:i}}))}else this.store.dispatch((0,T.oX)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,T.X9)()),this.store.dispatch((0,T.Br)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(d.ze),e.rXU(me.L))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-initialize-wallet"]],viewQuery:function(o,a){if(1&o&&e.GBs(z.M6,5),2&o){let l;e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,features:[e.Jv_([{provide:rd.x8,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["stepper",""],["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["labelPosition","before","fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet"],["fxLayout","column","fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["labelPosition","before","fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet"],["fxLayout","column","fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,cd,9,0,"div",2)(2,pd,6,0,"div",3)(3,xd,64,15,"mat-vertical-stepper",4)(4,Td,15,1,"div",2)(5,kd,7,0,"div",2)(6,Sd,9,0,"div",2),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",a.insecureLND&&!a.warnRes),e.R7$(),e.Y8G("ngIf",a.warnRes&&!a.proceed),e.R7$(),e.Y8G("ngIf",(!a.insecureLND||a.warnRes&&a.proceed)&&a.genSeedResponse.length<=0&&""===a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length>0&&""!==a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length>0&&""===a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length<=0&&""!==a.initWalletResponse))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.cV,d.j4,d.JD,N.$z,oe.An,M.fg,C.rl,C.nJ,C.MV,C.TL,f.DJ,f.sA,f.UI,he.sG,z.V5,z.M6,z.F7,z.FR,z.xJ],encapsulation:2}))}return t(),s})(),Ld=(()=>{var t;class s{constructor(){this.faWallet=x.BA1}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-wallet"]],standalone:!1,decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Unlock"],["label","Initialize"]],template:function(o,a){1&o&&(e.j41(0,"div",0),e.nrm(1,"fa-icon",1),e.j41(2,"span",2),e.EFF(3,"Wallet"),e.k0s()(),e.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"mat-tab-group",5)(8,"mat-tab",6),e.nrm(9,"rtl-unlock-wallet"),e.k0s(),e.j41(10,"mat-tab",7),e.nrm(11,"rtl-initialize-wallet"),e.k0s()()()()()),2&o&&(e.R7$(),e.Y8G("icon",a.faWallet))},dependencies:[O.aY,k.RN,k.m2,f.DJ,f.sA,A.mq,A.T8,ld,Id],encapsulation:2}))}return t(),s})();function wd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let jd=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.faExchangeAlt=x._qq,this.faChartPie=x.W1p,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"lookuptransactions",name:"Lookup"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1]),(0,ge.E)(this.store.select(H._c))).subscribe(([o,a])=>{this.currencyUnits=a?.settings.currencyUnits||[],this.balances=a?.settings.userPersona===c.HW.OPERATOR?[{title:"Local Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}],this.logger.info(o)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-transactions"]],standalone:!1,decls:21,vars:5,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Lightning Balance"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),e.nrm(7,"rtl-currency-unit-converter",6),e.k0s()()(),e.j41(8,"div",7),e.nrm(9,"fa-icon",2),e.j41(10,"span",3),e.EFF(11,"Lightning Transactions"),e.k0s()(),e.j41(12,"div",8)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",9),e.DNE(16,wd,2,4,"div",10),e.k0s(),e.nrm(17,"mat-tab-nav-panel",null,0),e.j41(19,"div",11),e.nrm(20,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(18);e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faExchangeAlt),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,Ee.f,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();function Gd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let Dd=(()=>{var t;class s{constructor(i){this.router=i,this.faSearch=x.MjD,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-graph"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Graph Lookups"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Gd,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faSearch),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();const Nd=t=>({"overflow-auto error-border":t,"overflow-auto":!0}),Ne=t=>({width:t});function Pd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Destination pubkey is required."),e.k0s())}function $d(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function Ad(t,s){1&t&&e.nrm(0,"mat-progress-bar",39)}function Md(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Hop"),e.k0s())}function Bd(t,s){if(1&t&&(e.j41(0,"td",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.hop_sequence)}}function Od(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Peer"),e.k0s())}function Vd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ne,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pubkey_alias)}}function Yd(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Peer Pubkey"),e.k0s())}function Xd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ne,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pub_key)}}function Ud(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Channel ID"),e.k0s())}function Hd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ne,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function qd(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"TLV Payload"),e.k0s())}function zd(t,s){if(1&t&&(e.j41(0,"td",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null!=n&&n.tlv_payload?"Yes":"No")}}function Jd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Expiry"),e.k0s())}function Qd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.expiry))}}function Wd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Zd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.chan_capacity))}}function Kd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Amount To Fwd (Sats)"),e.k0s())}function eh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.amt_to_forward)," ")}}function th(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Fee (mSats)"),e.k0s())}function nh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.fee_msat)," ")}}function ih(t,s){1&t&&(e.j41(0,"th",46)(1,"div",47),e.EFF(2,"Actions"),e.k0s()())}function ah(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",48)(1,"button",49),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onHopClick(a,o))}),e.EFF(2,"View Info"),e.k0s()()}}function sh(t,s){1&t&&e.nrm(0,"tr",50)}function oh(t,s){1&t&&e.nrm(0,"tr",51)}let lh=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.colWidth="20rem",this.PAGE_ID="graph_lookup",this.tableSetting={tableId:"query_routes",recordsPerPage:c.md,sortBy:"hop_sequence",sortOrder:c.oi.ASCENDING},this.destinationPubkey="",this.amount=null,this.qrHops=new u.I6([]),this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=x.TBz,this.faExclamationTriangle=x.zpE,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.lndEffects.setQueryRoutes.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.qrHops=new u.I6([]),i.routes&&i.routes.length&&i.routes.length>0&&i.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new u.I6([...i.routes[0].hops]),this.qrHops.data=i.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new u.I6([]),this.flgLoading[0]=!0,this.store.dispatch((0,T.T4)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:i.hop_sequence,title:"Sequence",width:33,type:c.UN.NUMBER},{key:"amt_to_forward",value:i.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:c.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:34,type:c.UN.NUMBER}],[{key:"chan_capacity",value:i.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:c.UN.NUMBER},{key:"expiry",value:i.expiry,title:"Expiry",width:50,type:c.UN.NUMBER}],[{key:"pubkey_alias",value:i.pubkey_alias,title:"Peer Alias",width:50,type:c.UN.STRING},{key:"chan_id",value:i.chan_id,title:"Channel ID",width:50,type:c.UN.STRING}],[{key:"pub_key",value:i.pub_key,title:"Peer Pubkey",width:100,type:c.UN.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(me.L),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-query-routes"]],viewQuery:function(o,a){if(1&o&&e.GBs(R.B4,5),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first)}},standalone:!1,decls:64,vars:17,consts:[["queryRoutesForm","ngForm"],["destPubkey","ngModel"],["table",""],["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","69","fxLayoutAlign","start end"],["matInput","","name","destinationPubkey","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","29","fxLayoutAlign","start end"],["matInput","","name","amount","tabindex","2","type","number","required","",3,"ngModelChange","step","min","ngModel"],["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","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["matColumnDef","pub_key"],["matColumnDef","chan_id"],["matColumnDef","tlv_payload"],["matColumnDef","expiry"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","chan_capacity"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["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"],["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(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",3)(1,"form",4,0),e.bIt("ngSubmit",function(){r.eBV(l);const m=e.sdS(2);return r.Njj(m.form.valid&&a.onQueryRoutes())}),e.j41(3,"div",5),e.nrm(4,"fa-icon",6),e.j41(5,"span"),e.EFF(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),e.k0s()(),e.j41(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Destination Pubkey"),e.k0s(),e.j41(10,"input",8,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.destinationPubkey,m)||(a.destinationPubkey=m),r.Njj(m)}),e.k0s(),e.DNE(12,Pd,2,0,"mat-error",9),e.k0s(),e.j41(13,"mat-form-field",10)(14,"mat-label"),e.EFF(15,"Amount (Sats)"),e.k0s(),e.j41(16,"input",11),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.amount,m)||(a.amount=m),r.Njj(m)}),e.k0s(),e.DNE(17,$d,2,0,"mat-error",9),e.k0s(),e.j41(18,"div",12)(19,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(20,"Clear"),e.k0s(),e.j41(21,"button",14),e.EFF(22,"Query Route"),e.k0s()()(),e.j41(23,"div",15)(24,"div",16),e.nrm(25,"fa-icon",17),e.j41(26,"span",18),e.EFF(27,"Transaction Route"),e.k0s()()(),e.j41(28,"div",19),e.DNE(29,Ad,1,0,"mat-progress-bar",20),e.j41(30,"table",21,2),e.qex(32,22),e.DNE(33,Md,2,0,"th",23)(34,Bd,2,1,"td",24),e.bVm(),e.qex(35,25),e.DNE(36,Od,2,0,"th",23)(37,Vd,4,4,"td",24),e.bVm(),e.qex(38,26),e.DNE(39,Yd,2,0,"th",23)(40,Xd,4,4,"td",24),e.bVm(),e.qex(41,27),e.DNE(42,Ud,2,0,"th",23)(43,Hd,4,4,"td",24),e.bVm(),e.qex(44,28),e.DNE(45,qd,2,0,"th",23)(46,zd,2,1,"td",24),e.bVm(),e.qex(47,29),e.DNE(48,Jd,2,0,"th",30)(49,Qd,4,3,"td",24),e.bVm(),e.qex(50,31),e.DNE(51,Wd,2,0,"th",30)(52,Zd,4,3,"td",24),e.bVm(),e.qex(53,32),e.DNE(54,Kd,2,0,"th",30)(55,eh,4,3,"td",24),e.bVm(),e.qex(56,33),e.DNE(57,th,2,0,"th",30)(58,nh,4,3,"td",24),e.bVm(),e.qex(59,34),e.DNE(60,ih,3,0,"th",35)(61,ah,3,0,"td",36),e.bVm(),e.DNE(62,sh,1,0,"tr",37)(63,oh,1,0,"tr",38),e.k0s()()()}2&o&&(e.R7$(4),e.Y8G("icon",a.faExclamationTriangle),e.R7$(6),e.R50("ngModel",a.destinationPubkey),e.R7$(2),e.Y8G("ngIf",!a.destinationPubkey),e.R7$(4),e.Y8G("step",1e3)("min",0),e.R50("ngModel",a.amount),e.R7$(),e.Y8G("ngIf",!a.amount),e.R7$(8),e.Y8G("icon",a.faRoute),e.R7$(4),e.Y8G("ngIf",!0===a.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.qrHops)("ngClass",e.eq3(15,Nd,"error"===a.flgLoading[0])),e.R7$(32),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns))},dependencies:[_.YU,_.bT,_.B3,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,O.aY,N.$z,M.fg,C.rl,C.nJ,C.TL,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.KS,u.$R,u.YZ,u.NB,B.Ld,ae.V,_.QX],encapsulation:2}))}return t(),s})();var de=y(5951);function rh(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 1"),e.k0s())}function ch(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 1 (Your Node)"),e.k0s())}function ph(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 2"),e.k0s())}function mh(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 2 (Your Node)"),e.k0s())}function uh(t,s){if(1&t&&(e.j41(0,"div",1),e.nrm(1,"mat-divider",2),e.j41(2,"div",3)(3,"div",4)(4,"h4",5),e.EFF(5,"Channel ID"),e.k0s(),e.j41(6,"span",6),e.EFF(7),e.k0s()(),e.j41(8,"div",7)(9,"h4",5),e.EFF(10,"Channel Point"),e.k0s(),e.j41(11,"span",6),e.EFF(12),e.k0s()()(),e.nrm(13,"mat-divider",8),e.j41(14,"div",3)(15,"div",4)(16,"h4",5),e.EFF(17,"Last Update"),e.k0s(),e.j41(18,"span",6),e.EFF(19),e.nI1(20,"date"),e.k0s()(),e.j41(21,"div",7)(22,"h4",5),e.EFF(23,"Capacity (Sats)"),e.k0s(),e.j41(24,"span",6),e.EFF(25),e.nI1(26,"number"),e.k0s()()(),e.nrm(27,"mat-divider",8),e.j41(28,"div",9)(29,"div",10)(30,"div",11),e.DNE(31,rh,2,0,"h3",12)(32,ch,2,0,"h3",12),e.k0s(),e.nrm(33,"mat-divider",8),e.j41(34,"div",13)(35,"h4",5),e.EFF(36,"Pubkey"),e.k0s(),e.j41(37,"span",6),e.EFF(38),e.k0s()(),e.nrm(39,"mat-divider",8),e.j41(40,"div",14)(41,"h4",5),e.EFF(42,"Time Lock Delta"),e.k0s(),e.j41(43,"span",6),e.EFF(44),e.k0s()(),e.nrm(45,"mat-divider",8),e.j41(46,"div",14)(47,"h4",5),e.EFF(48,"Min HTLC"),e.k0s(),e.j41(49,"span",6),e.EFF(50),e.k0s()(),e.nrm(51,"mat-divider",8),e.j41(52,"div",14)(53,"h4",5),e.EFF(54,"Max HTLC"),e.k0s(),e.j41(55,"span",6),e.EFF(56),e.k0s()(),e.nrm(57,"mat-divider",8),e.j41(58,"div",14)(59,"h4",5),e.EFF(60,"Fee Base Msat"),e.k0s(),e.j41(61,"span",6),e.EFF(62),e.k0s()(),e.nrm(63,"mat-divider",8),e.j41(64,"div",14)(65,"h4",5),e.EFF(66,"Fee Rate Milli Msat"),e.k0s(),e.j41(67,"span",6),e.EFF(68),e.k0s()(),e.nrm(69,"mat-divider",8),e.j41(70,"div",14)(71,"h4",5),e.EFF(72,"Disabled"),e.k0s(),e.j41(73,"span",6),e.EFF(74),e.k0s()()(),e.j41(75,"div",10)(76,"div"),e.DNE(77,ph,2,0,"h3",12)(78,mh,2,0,"h3",12),e.k0s(),e.nrm(79,"mat-divider",8),e.j41(80,"div",13)(81,"h4",5),e.EFF(82,"Pubkey"),e.k0s(),e.j41(83,"span",6),e.EFF(84),e.k0s()(),e.nrm(85,"mat-divider",8),e.j41(86,"div",14)(87,"h4",5),e.EFF(88,"Time Lock Delta"),e.k0s(),e.j41(89,"span",6),e.EFF(90),e.k0s()(),e.nrm(91,"mat-divider",8),e.j41(92,"div",14)(93,"h4",5),e.EFF(94,"Min HTLC"),e.k0s(),e.j41(95,"span",6),e.EFF(96),e.k0s()(),e.nrm(97,"mat-divider",8),e.j41(98,"div",14)(99,"h4",5),e.EFF(100,"Max HTLC"),e.k0s(),e.j41(101,"span",6),e.EFF(102),e.k0s()(),e.nrm(103,"mat-divider",8),e.j41(104,"div",14)(105,"h4",5),e.EFF(106,"Fee Base Msat"),e.k0s(),e.j41(107,"span",6),e.EFF(108),e.k0s()(),e.nrm(109,"mat-divider",8),e.j41(110,"div",14)(111,"h4",5),e.EFF(112,"Fee Rate Milli Msat"),e.k0s(),e.j41(113,"span",6),e.EFF(114),e.k0s()(),e.nrm(115,"mat-divider",8),e.j41(116,"div",14)(117,"h4",5),e.EFF(118,"Disabled"),e.k0s(),e.j41(119,"span",6),e.EFF(120),e.k0s()()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(n.lookupResult.channel_id),e.R7$(5),e.JRh(n.lookupResult.chan_point),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(20,39,1e3*n.lookupResult.last_update,"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(e.bMT(26,42,n.lookupResult.capacity)),e.R7$(2),e.Y8G("inset",!0),e.R7$(4),e.Y8G("ngIf",!n.node1_match),e.R7$(),e.Y8G("ngIf",n.node1_match),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(n.lookupResult.node1_pub),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.time_lock_delta),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.min_htlc),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.max_htlc_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_base_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_rate_milli_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null!=n.lookupResult.node1_policy&&n.lookupResult.node1_policy.disabled?"Yes":"No"),e.R7$(3),e.Y8G("ngIf",!n.node2_match),e.R7$(),e.Y8G("ngIf",n.node2_match),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(n.lookupResult.node2_pub),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.time_lock_delta),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.min_htlc),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.max_htlc_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_base_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_rate_milli_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null!=n.lookupResult.node2_policy&&n.lookupResult.node2_policy.disabled?"Yes":"No")}}let dh=(()=>{var t;class s{constructor(i){this.store=i,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.lookupResult.node1_pub===i.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===i.identity_pubkey&&(this.node2_match=!0)})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","30","fxLayoutAlign","end start"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start"],[1,"my-1",3,"inset"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],["fxLayout","column","fxFlex","20"],["fxLayout","column","fxFlex","10"],[1,"page-title","font-bold-500"]],template:function(o,a){1&o&&e.DNE(0,uh,121,44,"div",0),2&o&&e.Y8G("ngIf",a.lookupResult)},dependencies:[_.bT,ne.q,f.DJ,f.sA,f.UI,_.QX,_.vh],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}))}return t(),s})();const hh=t=>({"background-color":t});function _h(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Lme("",i.nodeFeaturesEnum[n.value.name]||n.value.name,": ",n.value.is_required?"Mandatory":"Optional")}}function fh(t,s){1&t&&(e.j41(0,"th",27),e.EFF(1,"Network"),e.k0s())}function gh(t,s){if(1&t&&(e.j41(0,"td",28),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.network)}}function Ch(t,s){1&t&&(e.j41(0,"th",27),e.EFF(1,"Address"),e.k0s())}function yh(t,s){if(1&t&&(e.j41(0,"td",28),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.addr)}}function bh(t,s){1&t&&(e.j41(0,"th",29)(1,"div",30),e.EFF(2,"Actions"),e.k0s()())}function Fh(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",31)(1,"div",32)(2,"mat-select",33),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",34),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onConnectNode(o))}),e.EFF(5,"Connect"),e.k0s(),e.j41(6,"mat-option",35),e.bIt("copied",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onCopyNodeURI(o))}),e.EFF(7,"Copy URI"),e.k0s()()()()}if(2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(6),e.Y8G("payload",i.lookupResult.node.pub_key+"@"+n.addr)}}function xh(t,s){1&t&&e.nrm(0,"tr",36)}function vh(t,s){1&t&&e.nrm(0,"tr",37)}function Th(t,s){if(1&t&&(e.j41(0,"div",2),e.nrm(1,"mat-divider",3),e.j41(2,"div",4)(3,"div",5)(4,"h4",6),e.EFF(5,"Alias"),e.k0s(),e.j41(6,"span",7),e.EFF(7),e.j41(8,"span",8),e.EFF(9),e.k0s()()(),e.j41(10,"div",9)(11,"h4",6),e.EFF(12,"Pub Key"),e.k0s(),e.j41(13,"span",10),e.EFF(14),e.k0s()()(),e.nrm(15,"mat-divider",11),e.j41(16,"div",4)(17,"div",5)(18,"h4",6),e.EFF(19,"Last Update"),e.k0s(),e.j41(20,"span",7),e.EFF(21),e.nI1(22,"date"),e.k0s()(),e.j41(23,"div",9)(24,"h4",6),e.EFF(25,"Total Capacity (Sats)"),e.k0s(),e.j41(26,"span",7),e.EFF(27),e.nI1(28,"number"),e.k0s()()(),e.nrm(29,"mat-divider",11),e.j41(30,"div",4)(31,"div",5)(32,"h4",6),e.EFF(33,"Number of Channels"),e.k0s(),e.j41(34,"span",7),e.EFF(35),e.nI1(36,"number"),e.k0s()(),e.j41(37,"div",12)(38,"h4",6),e.EFF(39,"Features"),e.k0s(),e.DNE(40,_h,2,2,"span",13),e.nI1(41,"keyvalue"),e.k0s()(),e.nrm(42,"mat-divider",11),e.j41(43,"div",14)(44,"h4",15),e.EFF(45,"Addresses"),e.k0s(),e.j41(46,"div",16)(47,"table",17,0),e.qex(49,18),e.DNE(50,fh,2,0,"th",19)(51,gh,2,1,"td",20),e.bVm(),e.qex(52,21),e.DNE(53,Ch,2,0,"th",19)(54,yh,2,1,"td",20),e.bVm(),e.qex(55,22),e.DNE(56,bh,3,0,"th",23)(57,Fh,8,1,"td",24),e.bVm(),e.DNE(58,xh,1,0,"tr",25)(59,vh,1,0,"tr",26),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(n.lookupResult.node.alias),e.R7$(),e.Y8G("ngStyle",e.eq3(24,hh,null==n.lookupResult.node?null:n.lookupResult.node.color)),e.R7$(),e.JRh(null==n.lookupResult.node?null:n.lookupResult.node.color),e.R7$(5),e.JRh(n.lookupResult.node.pub_key),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(22,15,1e3*n.lookupResult.node.last_update,"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(e.bMT(28,18,n.lookupResult.total_capacity)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(36,20,n.lookupResult.num_channels)),e.R7$(5),e.Y8G("ngForOf",e.bMT(41,22,n.lookupResult.node.features)),e.R7$(2),e.Y8G("inset",!0),e.R7$(5),e.Y8G("dataSource",n.lookupResult.node.addresses),e.R7$(11),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}let kh=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.snackBar=o,this.store=a,this.nodeFeaturesEnum=c._U,this.displayedColumns=["network","addr","actions"],this.information={},this.availableBalance=0,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.information=i}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.availableBalance=i.blockchainBalance.total_balance||0})}onCopyNodeURI(i){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+i)}onConnectNode(i){this.store.dispatch((0,I.xO)({payload:{data:{message:{peer:{pub_key:this.lookupResult.node?.pub_key,address:i.addr},information:this.information,balance:this.availableBalance},component:et}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(le.UG),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["table",""],["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-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"],[1,"my-1",3,"inset"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start",1,"my-1"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["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"],["mat-cell","","fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["rtlClipboard","",3,"copied","payload"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&e.DNE(0,Th,60,26,"div",1),2&o&&e.Y8G("ngIf",a.lookupResult)},dependencies:[_.Sq,_.bT,_.B3,ne.q,f.DJ,f.sA,f.UI,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.KS,u.$R,u.YZ,u.NB,B.Ld,be.U,_.QX,_.vh,_.lG],encapsulation:2}))}return t(),s})();const Sh=t=>({"mt-1":!0,"mt-2":t}),Rh=t=>({"w-100 mt-2 p-2 error-border":t,"w-100 my-2 p-2":!0});function Eh(t,s){if(1&t&&(e.j41(0,"mat-radio-button",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n.id)("checked",i.selectedFieldId===n.id),e.R7$(),e.SpI(" ",n.name," ")}}function Ih(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function Lh(t,s){1&t&&e.nrm(0,"mat-progress-bar",20)}function wh(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,Lh,1,0,"mat-progress-bar",19),e.EFF(2),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(3,Rh,""!==n.errorMessage&&"Getting lookup details..."!==n.errorMessage)),e.R7$(),e.Y8G("ngIf","Getting lookup details..."===n.errorMessage),e.R7$(),e.SpI(" ",n.errorMessage," ")}}function jh(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-node-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("lookupResult",n.lookupValue)}}function Gh(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-channel-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("lookupResult",n.lookupValue)}}function Dh(t,s){1&t&&(e.j41(0,"span"),e.EFF(1,' fxFlex="100"'),e.j41(2,"h3"),e.EFF(3,"Error! Unable to find details!"),e.k0s()())}function Nh(t,s){if(1&t&&(e.j41(0,"div",21)(1,"div",22)(2,"span",23),e.EFF(3),e.k0s()(),e.j41(4,"div",24),e.DNE(5,jh,2,1,"span",25)(6,Gh,2,1,"span",25)(7,Dh,4,0,"span",26),e.k0s()()),2&t){const n=e.XpG();e.R7$(3),e.SpI("",n.lookupFields[n.selectedFieldId].name," Details"),e.R7$(),e.Y8G("ngSwitch",n.selectedFieldId),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",1)}}let nt=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=x.MjD,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.lookupType||window.history.state.lookupValue)&&(this.selectedFieldId=+window.history.state.lookupType||0,this.lookupKey=window.history.state.lookupValue||""),this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i.type===c.QP.SET_LOOKUP_LND||i.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===c.QP.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&i.payload.hasOwnProperty("node")||1===this.selectedFieldId&&i.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(i.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!i.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!i.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&"Lookup"===i.payload.action&&(this.errorMessage="",i.payload.status===c.wn.ERROR&&(this.errorMessage="object"==typeof i.payload.message?JSON.stringify(i.payload.message):i.payload.message),i.payload.status===c.wn.INITIATED&&(this.errorMessage=c.MZ.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,T.zU)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,T.ij)({payload:{uiMessage:c.MZ.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(i){this.resetData(),this.selectedFieldId=i.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(K.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lookups"]],standalone:!1,decls:21,vars:10,consts:[["form","ngForm"],["key",""],["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"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModelChange","change","ngModel"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[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","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"mat-card-content",4)(3,"form",5,0)(5,"div",6)(6,"mat-radio-group",7),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selectedFieldId,m)||(a.selectedFieldId=m),r.Njj(m)}),e.bIt("change",function(m){return r.eBV(l),r.Njj(a.onSelectChange(m))}),e.DNE(7,Eh,2,3,"mat-radio-button",8),e.k0s()(),e.j41(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10),e.k0s(),e.j41(11,"input",10,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.lookupKey,m)||(a.lookupKey=m),r.Njj(m)}),e.bIt("change",function(){return r.eBV(l),r.Njj(a.clearLookupValue())}),e.k0s(),e.DNE(13,Ih,2,1,"mat-error",11),e.k0s(),e.j41(14,"div",12)(15,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(16,"Clear"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onLookup())}),e.EFF(18,"Lookup"),e.k0s()()(),e.DNE(19,wh,3,5,"div",15)(20,Nh,8,4,"div",16),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selectedFieldId),e.R7$(),e.Y8G("ngForOf",a.lookupFields),e.R7$(),e.Y8G("ngClass",e.eq3(8,Sh,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(2),e.JRh((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),e.R7$(),e.R50("ngModel",a.lookupKey),e.R7$(2),e.Y8G("ngIf",!a.lookupKey),e.R7$(6),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},dependencies:[_.YU,_.Sq,_.bT,_.ux,_.e1,_.fG,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,k.m2,M.fg,C.rl,C.nJ,C.TL,V.HM,de.VT,de._g,f.DJ,f.sA,f.UI,j.PW,dh,kh],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}"]}))}return t(),s})();var Pe=y(25084);function Ph(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid date format."),e.k0s())}function $h(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid date format."),e.k0s())}function Ah(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",28),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let Mh=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.faMapSigns=x.knH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"},{link:"nonroutingprs",name:"Non Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.onEventsFetch();const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,T.kv)({payload:{forwarding_events:[]}})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch((0,T.uK)({payload:{end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch((0,T.kv)({payload:{forwarding_events:[]}})),this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing"]],standalone:!1,decls:41,vars:16,consts:[["routingForm","ngForm"],["strtDate","ngModel"],["startDatepicker",""],["enDate","ngModel"],["endDatepicker",""],["tabPanel",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start"],["matInput","","name","startDate","tabindex","1",3,"ngModelChange","matDatepicker","max","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],[4,"ngIf"],["matInput","","name","endDate","tabindex","2",3,"ngModelChange","matDatepicker","min","max","ngModel"],["fxLayout","row",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","fxFlex","100"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start","fxFlex","100",3,"tabPanel"],["tabindex","5","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["tabindex","5","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",6)(1,"div",7),e.nrm(2,"fa-icon",8),e.j41(3,"span",9),e.EFF(4,"Routing"),e.k0s()(),e.j41(5,"div",10)(6,"mat-card",11)(7,"mat-card-content",12)(8,"form",13,0),e.bIt("ngSubmit",function(){return r.eBV(l),r.Njj(a.onEventsFetch())}),e.j41(10,"div",14)(11,"mat-form-field",15)(12,"mat-label"),e.EFF(13,"Start Date"),e.k0s(),e.j41(14,"input",16,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.startDate,m)||(a.startDate=m),r.Njj(m)}),e.k0s(),e.nrm(16,"mat-datepicker-toggle",17)(17,"mat-datepicker",18,2),e.DNE(19,Ph,2,0,"mat-error",19),e.k0s(),e.j41(20,"mat-form-field",15)(21,"mat-label"),e.EFF(22,"End Date"),e.k0s(),e.j41(23,"input",20,3),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.endDate,m)||(a.endDate=m),r.Njj(m)}),e.k0s(),e.nrm(25,"mat-datepicker-toggle",17)(26,"mat-datepicker",18,4),e.DNE(28,$h,2,0,"mat-error",19),e.k0s()(),e.j41(29,"div",21)(30,"button",22),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(31,"Clear"),e.k0s(),e.j41(32,"button",23),e.EFF(33,"Fetch Events"),e.k0s()()(),e.j41(34,"div",24)(35,"nav",25),e.DNE(36,Ah,2,4,"div",26),e.k0s(),e.nrm(37,"mat-tab-nav-panel",null,5),e.k0s(),e.j41(39,"div",27),e.nrm(40,"router-outlet"),e.k0s()()()()()}if(2&o){const l=e.sdS(15),p=e.sdS(18),m=e.sdS(24),v=e.sdS(27),b=e.sdS(38);e.R7$(2),e.Y8G("icon",a.faMapSigns),e.R7$(12),e.Y8G("matDatepicker",p)("max",a.today),e.R50("ngModel",a.startDate),e.R7$(2),e.Y8G("for",p),e.R7$(),e.Y8G("startAt",a.startDate),e.R7$(2),e.Y8G("ngIf",l.errors),e.R7$(4),e.Y8G("matDatepicker",v)("min",a.startDate)("max",a.today),e.R50("ngModel",a.endDate),e.R7$(2),e.Y8G("for",v),e.R7$(),e.Y8G("startAt",a.endDate),e.R7$(2),e.Y8G("ngIf",m.errors),e.R7$(7),e.Y8G("tabPanel",b),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.BC,d.cb,d.vS,d.cV,O.aY,N.$z,k.RN,k.m2,Pe.Vh,Pe.bZ,Pe.bU,M.fg,C.rl,C.nJ,C.TL,C.yw,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,Ze.z,ae.V,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();const Bh=()=>["all"],Oh=()=>["no_event"],ve=t=>({width:t}),Vh=t=>({"display-none":t});function Yh(t,s){if(1&t&&(e.j41(0,"div",6),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function Xh(t,s){if(1&t&&(e.j41(0,"mat-option",14),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Uh(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",7),e.nrm(1,"div",8),e.j41(2,"div",9)(3,"mat-form-field",10)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",11),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,Xh,2,2,"mat-option",12),e.k0s()()(),e.j41(9,"mat-form-field",10)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",13),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(6),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(3,Bh).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter)}}function Hh(t,s){1&t&&e.nrm(0,"mat-progress-bar",37)}function qh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Timestamp"),e.k0s())}function zh(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,1e3*n.timestamp,"dd/MMM/y HH:mm"))}}function Jh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Inbound Alias"),e.k0s())}function Qh(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias_in)}}function Wh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Inbound Channel"),e.k0s())}function Zh(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id_in)}}function Kh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Outbound Alias"),e.k0s())}function e_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias_out)}}function t_(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Outbound Channel"),e.k0s())}function n_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id_out)}}function i_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Inbound Amount (Sats)"),e.k0s())}function a_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.amt_in))}}function s_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Outbound Amount (Sats)"),e.k0s())}function o_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.amt_out))}}function l_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Fee (mSats)"),e.k0s())}function r_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.fee_msat))}}function c_(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",44)(1,"div",45)(2,"mat-select",46),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",47),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function p_(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",48)(1,"button",49),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG(2);return r.Njj(l.onForwardingEventClick(a,o))}),e.EFF(2,"View Info"),e.k0s()()}}function m_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No forwarding history available."),e.k0s())}function u_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting forwarding history..."),e.k0s())}function d_(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function h_(t,s){if(1&t&&(e.j41(0,"td",50),e.DNE(1,m_,2,0,"p",51)(2,u_,2,0,"p",51)(3,d_,2,1,"p",51),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function __(t,s){if(1&t&&e.nrm(0,"tr",52),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,Vh,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function f_(t,s){1&t&&e.nrm(0,"tr",53)}function g_(t,s){1&t&&e.nrm(0,"tr",54)}function C_(t,s){if(1&t&&(e.j41(0,"div",15),e.DNE(1,Hh,1,0,"mat-progress-bar",16),e.j41(2,"table",17,0),e.qex(4,18),e.DNE(5,qh,2,0,"th",19)(6,zh,3,4,"td",20),e.bVm(),e.qex(7,21),e.DNE(8,Jh,2,0,"th",19)(9,Qh,4,4,"td",20),e.bVm(),e.qex(10,22),e.DNE(11,Wh,2,0,"th",19)(12,Zh,4,4,"td",20),e.bVm(),e.qex(13,23),e.DNE(14,Kh,2,0,"th",19)(15,e_,4,4,"td",20),e.bVm(),e.qex(16,24),e.DNE(17,t_,2,0,"th",19)(18,n_,4,4,"td",20),e.bVm(),e.qex(19,25),e.DNE(20,i_,2,0,"th",26)(21,a_,4,3,"td",20),e.bVm(),e.qex(22,27),e.DNE(23,s_,2,0,"th",26)(24,o_,4,3,"td",20),e.bVm(),e.qex(25,28),e.DNE(26,l_,2,0,"th",26)(27,r_,4,3,"td",20),e.bVm(),e.qex(28,29),e.DNE(29,c_,6,0,"th",30)(30,p_,3,0,"td",31),e.bVm(),e.qex(31,32),e.DNE(32,h_,4,3,"td",33),e.bVm(),e.DNE(33,__,1,3,"tr",34)(34,f_,1,0,"tr",35)(35,g_,1,0,"tr",36),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.forwardingHistoryEvents),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(7,Oh)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}function y_(t,s){if(1&t&&e.nrm(0,"mat-paginator",55),2&t){const n=e.XpG();e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let it=(()=>{var t;class s{constructor(i,o,a,l,p){this.logger=i,this.commonService=o,this.store=a,this.datePipe=l,this.camelCaseWithReplace=p,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:c.md,sortBy:"timestamp",sortOrder:c.oi.DESCENDING},this.forwardingHistoryData=[],this.displayedColumns=[],this.forwardingHistoryEvents=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(i){i.eventsData&&(this.apiCallStatus={status:c.wn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=i.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,i.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),i.selFilter&&!i.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=i.pageSettings.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Ie).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.forwardingHistoryData=i.forwardingHistory.forwarding_events||[],this.forwardingHistoryData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory))})}ngAfterViewInit(){setTimeout(()=>{this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)},0)}onForwardingEventClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:i.timestamp,title:"Timestamp",width:25,type:c.UN.DATE_TIME},{key:"amt_in",value:i.amt_in,title:"Inbound Amount (Sats)",width:25,type:c.UN.NUMBER},{key:"amt_out",value:i.amt_out,title:"Outbound Amount (Sats)",width:25,type:c.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:25,type:c.UN.NUMBER}],[{key:"alias_in",value:i.alias_in,title:"Inbound Peer Alias",width:25,type:c.UN.STRING},{key:"chan_id_in",value:i.chan_id_in,title:"Inbound Channel ID",width:25,type:c.UN.STRING},{key:"alias_out",value:i.alias_out,title:"Outbound Peer Alias",width:25,type:c.UN.STRING},{key:"chan_id_out",value:i.chan_id_out,title:"Outbound Channel ID",width:25,type:c.UN.STRING}]]}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(i){const o=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.timestamp?this.datePipe.transform(new Date(1e3*i.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"timestamp":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return a.includes(o)}}loadForwardingEventsTable(i){this.forwardingHistoryEvents=new u.I6(i?[...i]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,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(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(_.vh),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-forwarding-history"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Events")}]),e.OA$],decls:5,vars:4,consts:[["table",""],["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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[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,"matSortActive","matSortDirection","dataSource"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","chan_id_in"],["matColumnDef","alias_out"],["matColumnDef","chan_id_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","",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",""],["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"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,Yh,2,1,"div",2)(2,Uh,13,4,"div",3)(3,C_,36,8,"div",4)(4,y_,1,3,"mat-paginator",5),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX,_.vh],encapsulation:2}))}return t(),s})();const b_=["tableIn"],F_=["tableOut"],x_=["paginatorIn"],v_=["paginatorOut"],T_=(t,s)=>({"mt-2":t,"mt-1":s}),k_=()=>["no_incoming_event"],S_=t=>({"mt-2":t}),R_=()=>["no_outgoing_event"],Te=t=>({width:t}),at=t=>({"display-none":t});function E_(t,s){if(1&t&&(e.j41(0,"div",7),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function I_(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function L_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Channel ID"),e.k0s())}function w_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function j_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Peer Alias"),e.k0s())}function G_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function D_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Events"),e.k0s())}function N_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.events))}}function P_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Total Amount (Sats)"),e.k0s())}function $_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_amount))}}function A_(t,s){1&t&&(e.j41(0,"th",41)(1,"div",42),e.EFF(2,"Actions"),e.k0s()())}function M_(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",43)(1,"button",44),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG(2);return r.Njj(l.onRoutingPeerClick(a,o,"in"))}),e.EFF(2,"View Info"),e.k0s()()}}function B_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No incoming routing peer available."),e.k0s())}function O_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting incoming routing peers..."),e.k0s())}function V_(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Y_(t,s){if(1&t&&(e.j41(0,"td",45),e.DNE(1,B_,2,0,"p",46)(2,O_,2,0,"p",46)(3,V_,2,1,"p",46),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function X_(t,s){if(1&t&&e.nrm(0,"tr",47),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,at,(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)>0))}}function U_(t,s){1&t&&e.nrm(0,"tr",48)}function H_(t,s){1&t&&e.nrm(0,"tr",49)}function q_(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function z_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Channel ID"),e.k0s())}function J_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function Q_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Peer Alias"),e.k0s())}function W_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function Z_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Events"),e.k0s())}function K_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.events))}}function e0(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Total Amount (Sats)"),e.k0s())}function t0(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_amount))}}function n0(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No outgoing routing peer available."),e.k0s())}function i0(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting outgoing routing peers..."),e.k0s())}function a0(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function s0(t,s){if(1&t&&(e.j41(0,"td",45),e.DNE(1,n0,2,0,"p",46)(2,i0,2,0,"p",46)(3,a0,2,1,"p",46),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function o0(t,s){if(1&t&&e.nrm(0,"tr",47),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,at,(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)>0))}}function l0(t,s){1&t&&e.nrm(0,"tr",48)}function r0(t,s){1&t&&e.nrm(0,"tr",49)}function c0(t,s){if(1&t&&(e.j41(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11),e.EFF(4,"Incoming"),e.k0s(),e.nrm(5,"div",12),e.k0s(),e.j41(6,"div",13),e.DNE(7,I_,1,0,"mat-progress-bar",14),e.j41(8,"table",15,0),e.qex(10,16),e.DNE(11,L_,2,0,"th",17)(12,w_,4,4,"td",18),e.bVm(),e.qex(13,19),e.DNE(14,j_,2,0,"th",17)(15,G_,4,4,"td",18),e.bVm(),e.qex(16,20),e.DNE(17,D_,2,0,"th",21)(18,N_,4,3,"td",18),e.bVm(),e.qex(19,22),e.DNE(20,P_,2,0,"th",21)(21,$_,4,3,"td",18),e.bVm(),e.qex(22,23),e.DNE(23,A_,3,0,"th",24)(24,M_,3,0,"td",25),e.bVm(),e.qex(25,26),e.DNE(26,Y_,4,3,"td",27),e.bVm(),e.DNE(27,X_,1,3,"tr",28)(28,U_,1,0,"tr",29)(29,H_,1,0,"tr",30),e.k0s()(),e.nrm(30,"mat-paginator",31,1),e.k0s(),e.j41(32,"div",9)(33,"div",10)(34,"div",11),e.EFF(35,"Outgoing"),e.k0s(),e.nrm(36,"div",12),e.k0s(),e.j41(37,"div",13),e.DNE(38,q_,1,0,"mat-progress-bar",14),e.j41(39,"table",32,2),e.qex(41,16),e.DNE(42,z_,2,0,"th",17)(43,J_,4,4,"td",18),e.bVm(),e.qex(44,19),e.DNE(45,Q_,2,0,"th",17)(46,W_,4,4,"td",18),e.bVm(),e.qex(47,20),e.DNE(48,Z_,2,0,"th",21)(49,K_,4,3,"td",18),e.bVm(),e.qex(50,22),e.DNE(51,e0,2,0,"th",21)(52,t0,4,3,"td",18),e.bVm(),e.qex(53,33),e.DNE(54,s0,4,3,"td",27),e.bVm(),e.DNE(55,o0,1,3,"tr",28)(56,l0,1,0,"tr",29)(57,r0,1,0,"tr",30),e.k0s()(),e.nrm(58,"mat-paginator",31,3),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngClass",e.l_i(18,T_,n.screenSize===n.screenSizeEnum.XS,n.screenSize===n.screenSizeEnum.SM)),e.R7$(5),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",n.routingPeersIncoming),e.R7$(19),e.Y8G("matFooterRowDef",e.lJ4(21,k_)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS),e.R7$(3),e.Y8G("ngClass",e.eq3(22,S_,n.screenSize!==n.screenSizeEnum.LG)),e.R7$(5),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",n.routingPeersOutgoing),e.R7$(16),e.Y8G("matFooterRowDef",e.lJ4(24,R_)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let p0=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.camelCaseWithReplace=l,this.nodePageDefs=c._1,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:c.md,sortBy:"total_amount",sortOrder:c.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new u.I6([]),this.routingPeersOutgoing=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Ie).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=i.forwardingHistory.forwarding_events?i.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(i,o,a){let l=" Routing Information";l="in"===a?"Incoming"+l:"Outgoing"+l,this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:l,message:[[{key:"chan_id",value:i.chan_id,title:"Channel ID",width:50,type:c.UN.STRING},{key:"alias",value:i.alias,title:"Peer Alias",width:50,type:c.UN.STRING}],[{key:"events",value:i.events,title:"Events",width:50,type:c.UN.NUMBER},{key:"total_amount",value:i.total_amount,title:"Total Amount (Sats)",width:50,type:c.UN.NUMBER}]]}}}))}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterByIn?JSON.stringify(i).toLowerCase():"string"==typeof i[this.selFilterByIn]?i[this.selFilterByIn].toLowerCase():"boolean"==typeof i[this.selFilterByIn]?i[this.selFilterByIn]?"yes":"no":i[this.selFilterByIn].toString(),a.includes(o)},this.routingPeersOutgoing.filterPredicate=(i,o)=>{let a="";switch(this.selFilterByOut){case"all":a=JSON.stringify(i).toLowerCase();break;case"total_amount":case"total_fee":a=(+(i[this.selFilterByOut]||0)/1e3).toString()||"";break;default:a="string"==typeof i[this.selFilterByOut]?i[this.selFilterByOut].toLowerCase():"boolean"==typeof i[this.selFilterByOut]?i[this.selFilterByOut]?"yes":"no":i[this.selFilterByOut].toString()}return a.includes(o)}}loadRoutingPeersTable(i){if(i.length>0){const o=this.groupRoutingPeers(i);this.routingPeersIncoming=new u.I6(o[0]),this.routingPeersIncoming.sort=this.sortIn,this.routingPeersIncoming.sort.sort({id:this.tableSetting.sortBy||"total_amount",start:this.tableSetting.sortOrder||c.oi.DESCENDING,disableClear:!0}),this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new u.I6(o[1]),this.routingPeersOutgoing.sort=this.sortOut,this.routingPeersOutgoing.sort.sort({id:this.tableSetting.sortBy||"total_amount",start:this.tableSetting.sortOrder||c.oi.DESCENDING,disableClear:!0}),this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new u.I6([]),this.routingPeersOutgoing=new u.I6([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(i){const o=[],a=[];return i.forEach(l=>{const p=o.find(v=>v.chan_id===l.chan_id_in),m=a.find(v=>v.chan_id===l.chan_id_out);p?(p.events++,p.total_amount=+p.total_amount+ +(l.amt_in||0)):o.push({chan_id:l.chan_id_in,alias:l.alias_in,events:1,total_amount:+(l.amt_in||0)}),m?(m.events++,m.total_amount=+m.total_amount+ +(l.amt_out||0)):a.push({chan_id:l.chan_id_out,alias:l.alias_out,events:1,total_amount:+(l.amt_out||0)})}),[this.commonService.sortDescByKey(o,"total_amount"),this.commonService.sortDescByKey(a,"total_amount")]}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(b_,5,R.B4),e.GBs(F_,5,R.B4),e.GBs(x_,5),e.GBs(v_,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sortIn=l.first),e.mGM(l=e.lsd())&&(a.sortOut=l.first),e.mGM(l=e.lsd())&&(a.paginatorIn=l.first),e.mGM(l=e.lsd())&&(a.paginatorOut=l.first)}},standalone:!1,features:[e.Jv_([{provide:G.xX,useValue:(0,c.on)("Routing peers")}])],decls:3,vars:2,consts:[["tableIn",""],["paginatorIn",""],["tableOut",""],["paginatorOut",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container","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.gt-xs","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"],["matColumnDef","chan_id"],["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","total_amount"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["matColumnDef","no_outgoing_event"],["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"],["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(o,a){1&o&&(e.j41(0,"div",4),e.DNE(1,E_,2,1,"div",5)(2,c0,60,25,"div",6),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[_.YU,_.bT,_.B3,N.$z,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.Ld,_.QX],encapsulation:2}))}return t(),s})();function m0(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",8),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let u0=(()=>{var t;class s{constructor(i){this.router=i,this.faChartBar=x.$Fj,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-reports"]],standalone:!1,decls:12,vars:3,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Reports"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,m0,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0)(11,"router-outlet"),e.k0s()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faChartBar),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();var st=y(51993),ot=y(24655);const d0=t=>({"error-border":t});function h0(t,s){1&t&&e.nrm(0,"mat-progress-bar",17)}function _0(t,s){if(1&t&&(e.j41(0,"div",18),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG();e.Y8G("@fadeIn",n.events.total_fee_msat),e.R7$(),e.Lme("",e.i5U(2,3,n.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",e.bMT(3,6,(null==n.events||null==n.events.forwarding_events?null:n.events.forwarding_events.length)||0)," Events")}}function f0(t,s){1&t&&(e.j41(0,"div",19),e.EFF(1,"No routing report for the selected period"),e.k0s())}function g0(t,s){if(1&t&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(2,d0,"Getting Forwarding History..."!==n.errorMessage&&""!==n.errorMessage)),e.R7$(),e.JRh(n.errorMessage)}}function C0(t,s){if(1&t&&(e.j41(0,"span")(1,"span",22),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.j41(4,"span",22),e.EFF(5),e.nI1(6,"number"),e.k0s()()),2&t){const n=s.model,i=e.XpG(2);e.R7$(2),e.SpI("Events: ",e.bMT(3,2,(i.selReportBy===i.reportBy.EVENTS?n.value:n.extra.totalEvents)||0)),e.R7$(3),e.SpI("Fee: ",e.i5U(6,4,(i.selReportBy===i.reportBy.EVENTS?n.extra.totalFees:n.value)||0,"1.0-2"))}}function y0(t,s){if(1&t){const n=e.RV6();e.j41(0,"ngx-charts-bar-vertical",21),e.bIt("select",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onChartBarSelected(o))})("mouseup",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onChartMouseUp(o))}),e.DNE(1,C0,7,7,"ng-template",null,0,e.C5r),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("view",n.view)("results",n.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function b0(t,s){if(1&t&&e.nrm(0,"rtl-forwarding-history",23),2&t){const n=e.XpG();e.Y8G("eventsData",null==n.events?null:n.events.forwarding_events)("selFilter",n.eventFilterValue)}}let F0=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.dataService=o,this.commonService=a,this.store=l,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=c.aR,this.selReportBy=c.aR.FEES,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=c.f7,this.errorMessage="",this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{i.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=i.width/10;break;case c.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}fetchEvents(i,o){this.errorMessage=c.MZ.GET_FORWARDING_HISTORY;const a=Math.round(i.getTime()/1e3).toString(),l=Math.round(o.getTime()/1e3).toString();this.dataService.getForwardingHistory("LND",a,l).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:p=>{this.errorMessage="",p.forwarding_events&&p.forwarding_events.length?(p.forwarding_events=p.forwarding_events.reverse(),this.events=p,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(i):this.prepareFeeReport(i)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:p=>{this.errorMessage=p}})}onChartMouseUp(i){"svg"===i.srcElement.tagName&&i.srcElement.classList.length>0&&"ngx-charts"===i.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(i){this.eventFilterValue=this.reportPeriod===c.rs[1]?i.name+"/"+this.startDate.getFullYear():i.name.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(i){const o=Math.round(i.getTime()/1e3),a=[];if(this.events.total_fee_msat=0,this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)a.push({name:c.KR[l].name,value:0,extra:{totalEvents:0}});this.events.forwarding_events?.map(l=>{const p=new Date(1e3*+(l.timestamp||0)).getMonth();return a[p].value=a[p].value+ +(l.fee_msat||0)/1e3,a[p].extra.totalEvents=a[p].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}else{for(let l=0;l{const p=Math.floor((+(l.timestamp||0)-o)/this.secondsInADay);return a[p].value=a[p].value+ +(l.fee_msat||0)/1e3,a[p].extra.totalEvents=a[p].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}return a}prepareEventsReport(i){const o=Math.round(i.getTime()/1e3),a=[];if(this.events.total_fee_msat=0,this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)a.push({name:c.KR[l].name,value:0,extra:{totalFees:0}});this.events.forwarding_events?.map(l=>{const p=new Date(1e3*+(l.timestamp||0)).getMonth();return a[p].value=a[p].value+1,a[p].extra.totalFees=a[p].extra.totalFees+ +(l.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}else{for(let l=0;l{const p=Math.floor((+(l.timestamp||0)-o)/this.secondsInADay);return a[p].value=a[p].value+1,a[p].extra.totalFees=a[p].extra.totalFees+ +(l.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}return a}onSelectionChange(i){const o=i.selDate.getMonth(),a=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?c.KR[i].days+1:c.KR[i].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(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(Z.u),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing-report"]],hostBindings:function(o,a){1&o&&e.bIt("mouseup",function(p){return a.onChartMouseUp(p)})},standalone:!1,decls:20,vars:11,consts:[["tooltipTemplate",""],["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 center",1,"my-1",3,"ngModelChange","change","ngModel"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x","my-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["pageId","reports","tableId","routing",3,"eventsData","selFilter",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"select","mouseup","view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel"],[1,"tooltip-label"],["pageId","reports","tableId","routing",3,"eventsData","selFilter"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),e.bIt("stepChanged",function(p){return a.onSelectionChange(p)}),e.k0s(),e.j41(2,"div",3)(3,"mat-radio-group",4),e.mxI("ngModelChange",function(p){return e.DH7(a.selReportBy,p)||(a.selReportBy=p),p}),e.bIt("change",function(){return a.onSelReportByChange()}),e.j41(4,"span",5),e.EFF(5,"Report By: "),e.k0s(),e.j41(6,"mat-radio-button",6),e.EFF(7,"Fees"),e.k0s(),e.j41(8,"mat-radio-button",7),e.EFF(9,"Events"),e.k0s()()(),e.DNE(10,h0,1,0,"mat-progress-bar",8),e.j41(11,"div",9),e.DNE(12,_0,4,8,"div",10)(13,f0,2,0,"div",11)(14,g0,2,4,"div",12),e.j41(15,"div",13),e.DNE(16,y0,3,11,"ngx-charts-bar-vertical",14),e.k0s()(),e.j41(17,"div",15)(18,"div",13),e.DNE(19,b0,1,2,"rtl-forwarding-history",16),e.k0s()()()),2&o&&(e.R7$(3),e.R50("ngModel",a.selReportBy),e.R7$(3),e.Y8G("value",e.mNQ(a.reportBy.FEES)),e.R7$(2),e.Y8G("value",e.mNQ(a.reportBy.EVENTS)),e.R7$(2),e.Y8G("ngIf","Getting Forwarding History..."===a.errorMessage),e.R7$(2),e.Y8G("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.R7$(),e.Y8G("ngIf",(a.routingReportData.length<=0||a.events.forwarding_events.length<=0)&&""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(2),e.Y8G("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.R7$(3),e.Y8G("ngIf",a.events&&(null==a.events?null:a.events.forwarding_events)&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0))},dependencies:[_.YU,_.bT,d.BC,d.vS,V.HM,de.VT,de._g,f.DJ,f.sA,f.UI,j.PW,st.L8,ot.m,it,_.QX],encapsulation:2,data:{animation:[Ge.q]}}))}return t(),s})();var x0=y(59584),v0=y(5085);function T0(t,s){1&t&&(e.j41(0,"div",12),e.nrm(1,"mat-progress-bar",13),e.j41(2,"span"),e.EFF(3,"Getting transactions data..."),e.k0s()())}function k0(t,s){if(1&t&&(e.j41(0,"div",14),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function S0(t,s){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Lme(" Paid ",e.i5U(2,2,n.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.bMT(3,5,n.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function R0(t,s){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Lme(" Received ",e.i5U(2,2,n.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.bMT(3,5,n.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function E0(t,s){if(1&t&&(e.j41(0,"div",15),e.DNE(1,S0,4,7,"div",16)(2,R0,4,7,"div",16),e.k0s()),2&t){const n=e.XpG();e.Y8G("@fadeIn",n.transactionsReportSummary),e.R7$(),e.Y8G("ngIf",n.transactionsReportSummary.paymentsSelectedPeriod>0),e.R7$(),e.Y8G("ngIf",n.transactionsReportSummary.invoicesSelectedPeriod)}}function I0(t,s){1&t&&(e.j41(0,"div",18),e.EFF(1,"No transactions report for the selected period"),e.k0s())}function L0(t,s){if(1&t&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=s.model;e.R7$(),e.LHq("",n.name,": ",e.i5U(2,4,n.value||0,"1.0-2"),"/# ","Paid"===n.name?"Payments":"Invoices",": ",e.bMT(3,7,(null==n.extra?null:n.extra.total)||0))}}function w0(t,s){if(1&t){const n=e.RV6();e.j41(0,"ngx-charts-bar-vertical-2d",20),e.bIt("select",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onChartBarSelected(o))})("mouseup",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onChartMouseUp(o))}),e.DNE(1,L0,4,9,"ng-template",null,0,e.C5r),e.k0s()}if(2&t){const n=e.XpG(2);e.Y8G("view",n.view)("results",n.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",n.reportPeriod===n.scrollRanges[0]?2:8)}}function j0(t,s){if(1&t&&(e.j41(0,"div",10),e.DNE(1,w0,3,13,"ngx-charts-bar-vertical-2d",19),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.transactionsReportData.length>0&&n.transactionsNonZeroReportData.length>0)}}function G0(t,s){if(1&t&&e.nrm(0,"rtl-transactions-report-table",22),2&t){const n=e.XpG();e.Y8G("displayedColumns",n.displayedColumns)("tableSetting",n.tableSetting)("dataList",n.transactionsNonZeroReportData)("dataRange",n.reportPeriod)("selFilter",n.transactionFilterValue)}}let D0=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.commonService=o,this.store=a,this.scrollRanges=c.rs,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:c.md,sortBy:"date",sortOrder:c.oi.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=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(x0.av).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.n_).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{i.apiCallStatus.status===c.wn.UN_INITIATED&&this.store.dispatch((0,T.tG)()),this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.payments=i.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=i.allLightningTransactions.listInvoicesAll.invoices||[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()),this.logger.info(i)}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=i.width/10;break;case c.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(i){"svg"===i.srcElement.tagName&&i.srcElement.classList.length>0&&"ngx-charts"===i.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(i){this.transactionFilterValue=this.reportPeriod===c.rs[1]?i.series+"/"+this.startDate.getFullYear():i.series.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(i,o){const a=Math.round(i.getTime()/1e3),l=Math.round(o.getTime()/1e3),p=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const m=this.payments?.filter(b=>"SUCCEEDED"===b.status&&b.creation_date&&b.creation_date>=a&&b.creation_dateb.settled&&b.creation_date&&+b.creation_date>=a&&+b.creation_date{const S=new Date(1e3*+(b.creation_date||0)).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(b.value_msat||0)+ +(b.fee_msat||0),p[S].series[0].value=p[S].series[0].value+(+(b.value_msat||0)+ +(b.fee_msat||0))/1e3,p[S].series[0].extra.total=p[S].series[0].extra.total+1,this.transactionsReportSummary}),v?.map(b=>{const S=new Date(1e3*+(b.creation_date||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(b.amt_paid_msat||0),p[S].series[1].value=p[S].series[1].value+ +(b.amt_paid_msat||0)/1e3,p[S].series[1].extra.total=p[S].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let b=0;b{const S=Math.floor((+(b.creation_date||0)-a)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(b.value_msat||0)+ +(b.fee_msat||0),p[S].series[0].value=p[S].series[0].value+(+(b.value_msat||0)+ +(b.fee_msat||0))/1e3,p[S].series[0].extra.total=p[S].series[0].extra.total+1,this.transactionsReportSummary}),v?.map(b=>{const S=Math.floor((+(b.creation_date||0)-a)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(b.amt_paid_msat||0),p[S].series[1].value=p[S].series[1].value+ +(b.amt_paid_msat||0)/1e3,p[S].series[1].extra.total=p[S].series[1].extra.total+1,this.transactionsReportSummary})}return p}prepareTableData(){return this.transactionsReportData?.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(i){const o=i.selDate.getMonth(),a=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?c.KR[i].days+1:c.KR[i].days}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-transactions-report"]],hostBindings:function(o,a){1&o&&e.bIt("mouseup",function(p){return a.onChartMouseUp(p)})},standalone:!1,decls:11,vars:6,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"select","mouseup","view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding"],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"rtl-horizontal-scroller",4),e.bIt("stepChanged",function(p){return a.onSelectionChange(p)}),e.k0s(),e.DNE(4,T0,4,0,"div",5)(5,k0,2,1,"div",6)(6,E0,3,3,"div",7)(7,I0,2,0,"div",8)(8,j0,2,1,"div",9),e.j41(9,"div",10),e.DNE(10,G0,1,5,"rtl-transactions-report-table",11),e.k0s()()()()),2&o&&(e.R7$(4),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.ERROR),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length<=0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(2),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED))},dependencies:[_.bT,V.HM,f.DJ,f.sA,f.UI,st.Dl,ot.m,v0.T,_.QX],encapsulation:2,data:{animation:[Ge.q]}}))}return t(),s})();const N0=["form"];function P0(t,s){if(1&t&&(e.j41(0,"div",17),e.nrm(1,"fa-icon",18),e.j41(2,"span"),e.EFF(3,'Bump fee option will be disabled for unconfirmed UTXOs where label text includes "sweep" in its value.'),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle)}}function $0(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"UTXO Label is required."),e.k0s())}function A0(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.labelError)}}function M0(t,s){if(1&t&&(e.j41(0,"div",19),e.nrm(1,"fa-icon",18),e.DNE(2,A0,2,1,"span",12),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.labelError)}}let B0=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.dataService=a,this.store=l,this.snackBar=p,this.commonService=m,this.faExclamationTriangle=x.zpE,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label||""}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo&&this.utxo.outpoint&&this.utxo.outpoint.txid_bytes?this.utxo.outpoint.txid_bytes:"",this.label,!0).pipe((0,g.Q)(this.unSubs[0])).subscribe({next:i=>{this.store.dispatch((0,T.mh)()),this.store.dispatch((0,T.SM)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:i=>{this.labelError=i}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(Z.u),e.rXU(L.il),e.rXU(le.UG),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(o,a){if(1&o&&e.GBs(N0,7),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first)}},standalone:!1,decls:24,vars:7,consts:[["form","ngForm"],["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 center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","100"],["autoFocus","","matInput","","name","label","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["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"],["mat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Label UTXO"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0),e.bIt("submit",function(){return r.eBV(l),r.Njj(a.onLabelUTXO())})("reset",function(){return r.eBV(l),r.Njj(a.resetData())}),e.DNE(11,P0,4,1,"div",9),e.nI1(12,"lowercase"),e.j41(13,"mat-form-field",10)(14,"mat-label"),e.EFF(15,"UTXO Label"),e.k0s(),e.j41(16,"input",11),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.label,m)||(a.label=m),r.Njj(m)}),e.k0s(),e.DNE(17,$0,2,0,"mat-error",12),e.k0s(),e.DNE(18,M0,3,2,"div",13),e.j41(19,"div",14)(20,"button",15),e.EFF(21,"Clear"),e.k0s(),e.j41(22,"button",16),e.EFF(23,"Label UTXO"),e.k0s()()()()()()}2&o&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(5),e.Y8G("ngIf",e.bMT(12,5,a.label).includes("sweep")&&"0"===a.utxo.confirmations),e.R7$(5),e.R50("ngModel",a.label),e.R7$(),e.Y8G("ngIf",!a.label),e.R7$(),e.Y8G("ngIf",""!==a.labelError))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,O.aY,Y.tx,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.TL,f.DJ,f.sA,f.UI,te.N,_.GH],encapsulation:2}))}return t(),s})();const lt=()=>["all"],O0=t=>({"error-border":t}),V0=()=>["no_utxo"],$e=t=>({width:t}),Y0=t=>({"display-none":t});function X0(t,s){if(1&t&&(e.j41(0,"mat-option",34),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function U0(t,s){1&t&&e.nrm(0,"mat-progress-bar",35)}function H0(t,s){1&t&&e.nrm(0,"th",36)}function q0(t,s){1&t&&(e.j41(0,"span",39)(1,"mat-icon",40),e.EFF(2,"warning"),e.k0s()())}function z0(t,s){if(1&t&&(e.j41(0,"td",37),e.DNE(1,q0,3,0,"span",38),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(),o=e.sdS(52);e.R7$(),e.Y8G("ngIf",n.amount_sat0))}}function Cf(t,s){1&t&&e.nrm(0,"tr",57)}function yf(t,s){1&t&&e.nrm(0,"tr",58)}function bf(t,s){1&t&&e.nrm(0,"mat-icon",40)}let Ff=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.logger=i,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=p,this.decimalPipe=m,this.camelCaseWithReplace=v,this.snackBar=b,this.isDustUTXO=!1,this.dustAmount=1e3,this.faMoneyBillWave=x.ymQ,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"utxos",recordsPerPage:c.md,sortBy:"tx_id",sortOrder:c.oi.DESCENDING},this.addressType=c.aG,this.displayedColumns=[],this.listUTXOs=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(){!this.isDustUTXO&&this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos),this.isDustUTXO&&this.dustUtxos&&this.dustUtxos.length>0&&this.loadUTXOsTable(this.dustUtxos)}ngOnInit(){this.tableSetting.tableId=this.isDustUTXO?"dust_utxos":"utxos",this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.ah).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),i.utxos&&i.utxos.length>0&&(this.dustUtxos=i.utxos?.filter(o=>+(o.amount_sat||0)0&&this.dustUtxos.length>0&&!this.isDustUTXO&&this.displayedColumns.unshift("is_dust"),this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(i)})}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):"is_dust"===i?"Dust":this.commonService.titleCase(i)}setFilterPredicate(){this.listUTXOs.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.label?i.label.toLowerCase():"")+(i.outpoint?.txid_str?i.outpoint.txid_str.toLowerCase():"")+(i.outpoint?.output_index?i.outpoint?.output_index:"")+(i.outpoint?.txid_bytes?i.outpoint?.txid_bytes.toLowerCase():"")+(i.address?i.address.toLowerCase():"")+(i.address_type?this.addressType[i.address_type].name.toLowerCase():"")+(i.amount_sat?i.amount_sat:"")+(i.confirmations?i.confirmations:"");break;case"is_dust":a=+(i?.amount_sat||0)"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"is_dust"===this.selFilterBy||"address_type"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}onUTXOClick(i){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:i.outpoint?.txid_str,title:"Transaction ID",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"label",value:i.label,title:"Label",width:100,type:c.UN.STRING}],[{key:"output_index",value:i.outpoint?.output_index,title:"Output Index",width:34,type:c.UN.NUMBER},{key:"amount_sat",value:i.amount_sat,title:"Amount (Sats)",width:33,type:c.UN.NUMBER},{key:"confirmations",value:i.confirmations,title:"Confirmations",width:33,type:c.UN.NUMBER}],[{key:"address_type",value:i.address_type?this.addressType[i.address_type].name:"",title:"Address Type",width:34},{key:"address",value:i.address,title:"Address",width:66}],[{key:"pk_script",value:i.pk_script,title:"PK Script",width:100,type:c.UN.STRING}]]}}}))}loadUTXOsTable(i){this.listUTXOs=new u.I6([...i]),this.listUTXOs.sort=this.sort,this.listUTXOs.sortingDataAccessor=(o,a)=>{switch(a){case"is_dust":return+(o.amount_sat||0){a&&this.dataService.leaseUTXO(i.outpoint?.txid_bytes||"",i.outpoint?.output_index||0).pipe((0,g.Q)(this.unSubs[0])).subscribe({next:l=>{this.snackBar.open("The UTXO has been leased till "+new Date(l).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")},error:l=>{this.snackBar.open(l+" UTXO not leased.","",{panelClass:"rtl-warn-snack-bar"})}})})}onBumpFee(i){this.store.dispatch((0,I.xO)({payload:{data:{selUTXO:i,component:tt}}}))}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(Z.u),e.rXU(L.il),e.rXU(_e.H),e.rXU(_.QX),e.rXU(J.VD),e.rXU(le.UG))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{isDustUTXO:"isDustUTXO",dustAmount:"dustAmount"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("UTXOs")}]),e.OA$],decls:53,vars:19,consts:[["table",""],["emptySpace",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["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,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","is_dust"],["mat-header-cell","","mat-sort-header","","matTooltip","Dust/Nondust",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","label"],["matColumnDef","address_type"],["matColumnDef","address"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["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","Dust/Nondust"],["mat-cell",""],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"small-icon"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row","fxLayoutAlign","start 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"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"mat-form-field",5)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,X0,2,2,"mat-option",7),e.k0s()()(),e.j41(9,"mat-form-field",5)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(13,"div",9)(14,"div",10),e.DNE(15,U0,1,0,"mat-progress-bar",11),e.j41(16,"table",12,0),e.qex(18,13),e.DNE(19,H0,1,0,"th",14)(20,z0,2,2,"td",15),e.bVm(),e.qex(21,16),e.DNE(22,J0,2,0,"th",17)(23,Q0,4,4,"td",15),e.bVm(),e.qex(24,18),e.DNE(25,W0,2,0,"th",19)(26,Z0,3,1,"td",15),e.bVm(),e.qex(27,20),e.DNE(28,K0,2,0,"th",17)(29,ef,4,4,"td",15),e.bVm(),e.qex(30,21),e.DNE(31,tf,2,0,"th",17)(32,nf,3,1,"td",15),e.bVm(),e.qex(33,22),e.DNE(34,af,2,0,"th",17)(35,sf,4,4,"td",15),e.bVm(),e.qex(36,23),e.DNE(37,of,2,0,"th",19)(38,lf,4,3,"td",15),e.bVm(),e.qex(39,24),e.DNE(40,rf,2,0,"th",19)(41,cf,4,3,"td",15),e.bVm(),e.qex(42,25),e.DNE(43,pf,6,0,"th",26)(44,uf,12,3,"td",27),e.bVm(),e.qex(45,28),e.DNE(46,ff,4,3,"td",29),e.bVm(),e.DNE(47,gf,1,3,"tr",30)(48,Cf,1,0,"tr",31)(49,yf,1,0,"tr",32),e.k0s(),e.nrm(50,"mat-paginator",33),e.k0s()()(),e.DNE(51,bf,1,0,"ng-template",null,1,e.C5r)}2&o&&(e.R7$(6),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",a.utxos&&a.utxos.length>0&&a.dustUtxos&&a.dustUtxos.length>0&&!a.isDustUTXO?e.lJ4(14,lt).concat(a.displayedColumns.slice(0,-1)):e.lJ4(15,lt).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listUTXOs)("ngClass",e.eq3(16,O0,""!==a.errorMessage)),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(18,V0)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,oe.An,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.GH,_.QX],styles:[".mat-column-is_dust[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return t(),s})();const xf=()=>["all"],vf=t=>({"error-border":t}),Tf=()=>["no_transaction"],Ae=t=>({width:t}),kf=t=>({"display-none":t});function Sf(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Rf(t,s){1&t&&e.nrm(0,"mat-progress-bar",33)}function Ef(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Date/Time"),e.k0s())}function If(t,s){if(1&t&&(e.j41(0,"td",35),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,1e3*n.time_stamp,"dd/MMM/y HH:mm"))}}function Lf(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Label"),e.k0s())}function wf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ae,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.label)}}function jf(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Block Hash"),e.k0s())}function Gf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ae,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.block_hash)}}function Df(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Transaction Hash"),e.k0s())}function Nf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ae,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.tx_hash)}}function Pf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Amount (Sats)"),e.k0s())}function $f(t,s){if(1&t&&(e.j41(0,"span",41),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.JRh(e.bMT(2,1,n.amount))}}function Af(t,s){if(1&t&&(e.j41(0,"span",42),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.SpI("(",e.bMT(2,1,-1*n.amount),")")}}function Mf(t,s){if(1&t&&(e.j41(0,"td",35),e.DNE(1,$f,3,3,"span",39)(2,Af,3,3,"span",40),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.amount>0||0===n.amount),e.R7$(),e.Y8G("ngIf",n.amount<0)}}function Bf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Fees (Sats)"),e.k0s())}function Of(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_fees))}}function Vf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Block Height"),e.k0s())}function Yf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.block_height))}}function Xf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Confirmations"),e.k0s())}function Uf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,null==n?null:n.num_confirmations)," ")}}function Hf(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",43)(1,"div",44)(2,"mat-select",45),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",46),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function qf(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",47)(1,"button",48),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onTransactionClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function zf(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No transaction available."),e.k0s())}function Jf(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting transactions..."),e.k0s())}function Qf(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Wf(t,s){if(1&t&&(e.j41(0,"td",49),e.DNE(1,zf,2,0,"p",50)(2,Jf,2,0,"p",50)(3,Qf,2,1,"p",50),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Zf(t,s){if(1&t&&e.nrm(0,"tr",51),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,kf,(null==n.listTransactions?null:n.listTransactions.data)&&(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)>0))}}function Kf(t,s){1&t&&e.nrm(0,"tr",52)}function e2(t,s){1&t&&e.nrm(0,"tr",53)}let t2=(()=>{var t;class s{constructor(i,o,a,l,p){this.logger=i,this.commonService=o,this.store=a,this.datePipe=l,this.camelCaseWithReplace=p,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transactions",recordsPerPage:c.md,sortBy:"time_stamp",sortOrder:c.oi.DESCENDING},this.faHistory=x.Int,this.displayedColumns=[],this.listTransactions=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.gN).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),i.transactions&&i.transactions.length>0&&(this.transactions=i.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(i)})}onTransactionClick(i){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:i.block_hash,title:"Block Hash",width:100,explorerLink:"block"}],[{key:"tx_hash",value:i.tx_hash,title:"Transaction Hash",width:100,explorerLink:"tx"}],[{key:"label",value:i.label,title:"Label",width:100,type:c.UN.STRING}],[{key:"time_stamp",value:i.time_stamp,title:"Date/Time",width:50,type:c.UN.DATE_TIME},{key:"block_height",value:i.block_height,title:"Block Height",width:50,type:c.UN.NUMBER}],[{key:"num_confirmations",value:i.num_confirmations,title:"Number of Confirmations",width:34,type:c.UN.NUMBER},{key:"total_fees",value:i.total_fees,title:"Total Fees (Sats)",width:33,type:c.UN.NUMBER},{key:"amount",value:i.amount,title:"Amount (Sats)",width:33,type:c.UN.NUMBER}],[{key:"dest_addresses",value:i.dest_addresses,title:"Destination Addresses",width:100,type:c.UN.ARRAY}]],scrollable:i.dest_addresses&&i.dest_addresses.length>5}}}))}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.listTransactions.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.time_stamp?this.datePipe.transform(new Date(1e3*i.time_stamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"time_stamp":a=this.datePipe.transform(new Date(1e3*(i?.time_stamp||0)),"dd/MMM/YYYY HH:mm")?.toLowerCase()||"";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return a.includes(o)}}loadTransactionsTable(i){this.listTransactions=new u.I6([...i]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,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(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(_.vh),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Transactions")}]),e.OA$],decls:51,vars:18,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["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,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","block_hash"],["matColumnDef","tx_hash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","",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(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",5),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,Sf,2,2,"mat-option",6),e.k0s()()(),e.j41(9,"mat-form-field",4)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",7),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(13,"div",8)(14,"div",9),e.DNE(15,Rf,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,Ef,2,0,"th",13)(20,If,3,4,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Lf,2,0,"th",13)(23,wf,4,4,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,jf,2,0,"th",13)(26,Gf,4,4,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,Df,2,0,"th",13)(29,Nf,4,4,"td",14),e.bVm(),e.qex(30,18),e.DNE(31,Pf,2,0,"th",19)(32,Mf,3,2,"td",14),e.bVm(),e.qex(33,20),e.DNE(34,Bf,2,0,"th",19)(35,Of,4,3,"td",14),e.bVm(),e.qex(36,21),e.DNE(37,Vf,2,0,"th",19)(38,Yf,4,3,"td",14),e.bVm(),e.qex(39,22),e.DNE(40,Xf,2,0,"th",19)(41,Uf,4,3,"td",14),e.bVm(),e.qex(42,23),e.DNE(43,Hf,6,0,"th",24)(44,qf,3,0,"td",25),e.bVm(),e.qex(45,26),e.DNE(46,Wf,4,3,"td",27),e.bVm(),e.DNE(47,Zf,1,3,"tr",28)(48,Kf,1,0,"tr",29)(49,e2,1,0,"tr",30),e.k0s(),e.nrm(50,"mat-paginator",31),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,xf).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listTransactions)("ngClass",e.eq3(15,vf,""!==a.errorMessage)),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(17,Tf)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX,_.vh],encapsulation:2}))}return t(),s})();function n2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"UTXOs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numUtxos))}}function i2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"Transactions"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numTransactions))}}function a2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"Dust UTXOs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numDustUtxos))}}let s2=(()=>{var t;class s{constructor(i,o){this.logger=i,this.store=o,this.selectedTableIndex=0,this.selectedTableIndexChange=new e.bkB,this.DUST_AMOUNT=1e3,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.store.dispatch((0,T.mh)()),this.store.dispatch((0,T.SM)()),this.store.select(F.ah).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{i.utxos&&i.utxos.length>0&&(this.numUtxos=i.utxos.length,this.numDustUtxos=i.utxos?.filter(o=>o.amount_sat&&+o.amount_sat{i.transactions&&i.transactions.length>0&&(this.numTransactions=i.transactions.length),this.logger.info(i)})}onSelectedIndexChanged(i){this.selectedTableIndexChange.emit(i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},standalone:!1,decls:11,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO","dustAmount"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"mat-tab-group",1),e.bIt("selectedIndexChange",function(p){return a.onSelectedIndexChanged(p)}),e.j41(2,"mat-tab"),e.DNE(3,n2,2,2,"ng-template",2),e.nrm(4,"rtl-on-chain-utxos",3),e.k0s(),e.j41(5,"mat-tab"),e.DNE(6,i2,2,2,"ng-template",2),e.nrm(7,"rtl-on-chain-transaction-history",4),e.k0s(),e.j41(8,"mat-tab"),e.DNE(9,a2,2,2,"ng-template",2),e.nrm(10,"rtl-on-chain-utxos",3),e.k0s()()()),2&o&&(e.R7$(),e.Y8G("selectedIndex",a.selectedTableIndex),e.R7$(3),e.Y8G("isDustUTXO",!1)("dustAmount",a.DUST_AMOUNT),e.R7$(6),e.Y8G("isDustUTXO",!0)("dustAmount",a.DUST_AMOUNT))},dependencies:[f.DJ,f.sA,f.UI,Re.k,A.ES,A.mq,A.T8,Ff,t2],encapsulation:2}))}return t(),s})();const o2=(t,s)=>[t,s];function l2(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=null==o?null:o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("active",i.activeLink===(null==n?null:n.link))("routerLink",e.l_i(3,o2,null==n?null:n.link,null==i.selectedTable?null:i.selectedTable.name)),e.R7$(),e.JRh(null==n?null:n.name)}}let r2=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.router=o,this.activatedRoute=a,this.faExchangeAlt=x._qq,this.faChartPie=x.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.selectedTable=this.tables.find(o=>o.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1))||this.tables[0],this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link,this.selectedTable=this.tables.find(l=>l.name===o.urlAfterRedirects.substring(o.urlAfterRedirects.lastIndexOf("/")+1))||this.tables[0]}}),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(o=>{this.selNode=o}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[2])).subscribe(o=>{this.balances=[{title:"Total Balance",dataValue:o.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:o.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:o.blockchainBalance.unconfirmed_balance||0}]})}onSelectedTableIndexChanged(i){this.selectedTable=this.tables.find(o=>o.id===i)||this.tables[0],this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(w.Ix),e.rXU(w.nX))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain"]],standalone:!1,decls:23,vars:6,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndexChange","selectedTableIndex"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"On-chain Balance"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),e.nrm(7,"rtl-currency-unit-converter",6),e.k0s()()(),e.j41(8,"div",1),e.nrm(9,"fa-icon",2),e.j41(10,"span",3),e.EFF(11,"On-chain Transactions"),e.k0s()(),e.j41(12,"div",7)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",8),e.DNE(16,l2,2,6,"div",9),e.k0s(),e.nrm(17,"mat-tab-nav-panel",null,0),e.j41(19,"div",10),e.nrm(20,"router-outlet"),e.k0s(),e.j41(21,"div",11)(22,"rtl-utxo-tables",12),e.bIt("selectedTableIndexChange",function(m){return r.eBV(l),r.Njj(a.onSelectedTableIndexChanged(m))}),e.k0s()()()()()}if(2&o){const l=e.sdS(18);e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faExchangeAlt),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links),e.R7$(6),e.Y8G("selectedTableIndex",null==a.selectedTable?null:a.selectedTable.id)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,Ee.f,w.n3,ie.Wk,s2],encapsulation:2}))}return t(),s})();var c2=y(80396);function p2(t,s){if(1&t&&(e.j41(0,"mat-option",6),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.addressTp," ")}}let m2=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.lndEffects=o,this.commonService=a,this.addressTypes=[],this.selectedAddressType=c.Ld[2],this.newAddress="",this.flgVersionCompatible=!0,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(i.version,"0.15.0"),this.addressTypes=this.flgVersionCompatible?c.Ld:c.Ld.filter(o=>"4"!==o.addressId)})}onGenerateAddress(){this.store.dispatch((0,T.XT)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,W.s)(1)).subscribe(i=>{this.newAddress=i,setTimeout(()=>{this.store.dispatch((0,I.xO)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:c2.f}}}))},0)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(me.L),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-receive"]],standalone:!1,decls:10,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutAlign.gt-sm","start center"],["fxLayout","column","fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["name","address_type","tabindex","1",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-flat-button","","color","primary","tabindex","2",3,"click"],[3,"value"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),e.EFF(4,"Address Type"),e.k0s(),e.j41(5,"mat-select",3),e.mxI("ngModelChange",function(p){return e.DH7(a.selectedAddressType,p)||(a.selectedAddressType=p),p}),e.DNE(6,p2,2,2,"mat-option",4),e.k0s()(),e.j41(7,"div")(8,"button",5),e.bIt("click",function(){return a.onGenerateAddress()}),e.EFF(9,"Generate Address"),e.k0s()()()()),2&o&&(e.R7$(5),e.R50("ngModel",a.selectedAddressType),e.R7$(),e.Y8G("ngForOf",a.addressTypes))},dependencies:[_.Sq,d.BC,d.vS,N.$z,C.rl,C.nJ,f.DJ,f.sA,f.UI,E.VO,X.wT],encapsulation:2}))}return t(),s})();var u2=y(82852);const d2=["form"],h2=["formSweepAll"],_2=["stepper"];function f2(t,s){if(1&t&&(e.j41(0,"div",16),e.nrm(1,"fa-icon",17),e.j41(2,"span",18)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",19)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function g2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Bitcoin address is required."),e.k0s())}function C2(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.amountError)}}function y2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(n)}}function b2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function F2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function x2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",40)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",41,4),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.transactionBlocks,o)||(a.transactionBlocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,F2,2,0,"mat-error",23),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.transactionBlocks),e.R7$(2),e.Y8G("ngIf",!n.transactionBlocks)}}function v2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function T2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",40)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",42,5),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.transactionFees,o)||(a.transactionFees=o),r.Njj(o)}),e.k0s(),e.DNE(5,v2,2,0,"mat-error",23),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.transactionFees),e.R7$(2),e.Y8G("ngIf",!n.transactionFees)}}function k2(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.sendFundError)}}function S2(t,s){if(1&t&&(e.j41(0,"div",43),e.nrm(1,"fa-icon",17),e.DNE(2,k2,2,1,"span",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.sendFundError)}}function R2(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",20,1),e.bIt("submit",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendFunds())})("reset",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.j41(2,"mat-form-field",21)(3,"mat-label"),e.EFF(4,"Bitcoin Address"),e.k0s(),e.j41(5,"input",22,2),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.transactionAddress,o)||(a.transactionAddress=o),r.Njj(o)}),e.k0s(),e.DNE(7,g2,2,0,"mat-error",23),e.k0s(),e.j41(8,"mat-form-field",24)(9,"mat-label"),e.EFF(10,"Amount"),e.k0s(),e.j41(11,"input",25,3),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.transactionAmount,o)||(a.transactionAmount=o),r.Njj(o)}),e.k0s(),e.j41(13,"span",26),e.EFF(14),e.k0s(),e.DNE(15,C2,2,1,"mat-error",23),e.k0s(),e.j41(16,"mat-form-field",27)(17,"mat-label"),e.EFF(18,"Amount Unit"),e.k0s(),e.j41(19,"mat-select",28),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onAmountUnitChange(o))}),e.DNE(20,y2,2,2,"mat-option",29),e.k0s()(),e.j41(21,"div",30)(22,"mat-form-field",31)(23,"mat-label"),e.EFF(24,"Transaction Type"),e.k0s(),e.j41(25,"mat-select",32),e.mxI("valueChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selTransType,o)||(a.selTransType=o),r.Njj(o)}),e.DNE(26,b2,2,2,"mat-option",29),e.k0s()(),e.DNE(27,x2,6,4,"mat-form-field",33)(28,T2,6,4,"mat-form-field",33),e.k0s(),e.nrm(29,"div",34),e.DNE(30,S2,3,2,"div",35),e.j41(31,"div",36)(32,"button",37),e.EFF(33,"Clear Fields"),e.k0s(),e.j41(34,"button",38),e.EFF(35,"Send Funds"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.R50("ngModel",n.transactionAddress),e.R7$(2),e.Y8G("ngIf",!n.transactionAddress),e.R7$(4),e.Y8G("step",100)("min",0),e.R50("ngModel",n.transactionAmount),e.R7$(3),e.SpI("",n.selAmountUnit," "),e.R7$(),e.Y8G("ngIf",!n.transactionAmount),e.R7$(4),e.Y8G("value",n.selAmountUnit),e.R7$(),e.Y8G("ngForOf",n.amountUnits),e.R7$(5),e.R50("value",n.selTransType),e.R7$(),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","1"===n.selTransType),e.R7$(),e.Y8G("ngIf","2"===n.selTransType),e.R7$(2),e.Y8G("ngIf",""!==n.sendFundError)}}function E2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(3);e.JRh(n.passwordFormLabel)}}function I2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function L2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-step",47)(1,"form",66),e.DNE(2,E2,1,1,"ng-template",60),e.j41(3,"div",7)(4,"mat-form-field",18)(5,"mat-label"),e.EFF(6,"Password"),e.k0s(),e.nrm(7,"input",67),e.DNE(8,I2,2,0,"mat-error",23),e.k0s()(),e.j41(9,"div",68)(10,"button",63),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onAuthenticate())}),e.EFF(11,"Confirm"),e.k0s()()()()}if(2&t){const n=e.XpG(2);e.Y8G("stepControl",n.passwordFormGroup)("editable",n.flgEditable),e.R7$(),e.Y8G("formGroup",n.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.password.errors?null:n.passwordFormGroup.controls.password.errors.required)}}function w2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.sendFundFormLabel)}}function j2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Bitcoin address is required."),e.k0s())}function G2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function D2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function N2(t,s){if(1&t&&(e.j41(0,"mat-form-field",69)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.nrm(3,"input",70),e.DNE(4,D2,2,0,"mat-error",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R7$(),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionBlocks.errors?null:n.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function P2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function $2(t,s){if(1&t&&(e.j41(0,"mat-form-field",69)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.nrm(3,"input",71),e.DNE(4,P2,2,0,"mat-error",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R7$(),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionFees.errors?null:n.sendFundFormGroup.controls.transactionFees.errors.required)}}function A2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.confirmFormLabel)}}function M2(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.sendFundError)}}function B2(t,s){if(1&t&&(e.j41(0,"div",43),e.nrm(1,"fa-icon",17),e.DNE(2,M2,2,1,"span",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.sendFundError)}}function O2(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",44)(1,"mat-vertical-stepper",45,6),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.stepSelectionChanged(o))}),e.DNE(3,L2,12,4,"mat-step",46),e.j41(4,"mat-step",47)(5,"form",48),e.DNE(6,w2,1,1,"ng-template",49),e.j41(7,"div",50)(8,"mat-form-field",51)(9,"mat-label"),e.EFF(10,"Bitcoin Address"),e.k0s(),e.nrm(11,"input",52),e.DNE(12,j2,2,0,"mat-error",23),e.k0s(),e.j41(13,"mat-form-field",53)(14,"mat-label"),e.EFF(15,"Transaction Type"),e.k0s(),e.j41(16,"mat-select",54),e.DNE(17,G2,2,2,"mat-option",29),e.k0s()(),e.DNE(18,N2,5,3,"mat-form-field",55)(19,$2,5,3,"mat-form-field",55),e.k0s(),e.j41(20,"div",56)(21,"button",57),e.EFF(22,"Next"),e.k0s()()()(),e.j41(23,"mat-step",58)(24,"form",59),e.DNE(25,A2,1,1,"ng-template",60),e.j41(26,"div",44)(27,"div",61),e.nrm(28,"fa-icon",62),e.j41(29,"span"),e.EFF(30,"You are about to sweep all funds from RTL. Are you sure?"),e.k0s()(),e.DNE(31,B2,3,2,"div",35),e.j41(32,"div",56)(33,"button",63),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendFunds())}),e.EFF(34,"Sweep All Funds"),e.k0s()()()()()(),e.j41(35,"div",64)(36,"button",65),e.EFF(37),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(),e.Y8G("linear",!0),e.R7$(2),e.Y8G("ngIf",!n.appConfig.SSO.rtlSSO),e.R7$(),e.Y8G("stepControl",n.sendFundFormGroup)("editable",n.flgEditable),e.R7$(),e.Y8G("formGroup",n.sendFundFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionAddress.errors?null:n.sendFundFormGroup.controls.transactionAddress.errors.required),e.R7$(5),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","1"===n.sendFundFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf","2"===n.sendFundFormGroup.controls.selTransType.value),e.R7$(4),e.Y8G("stepControl",n.confirmFormGroup),e.R7$(),e.Y8G("formGroup",n.confirmFormGroup),e.R7$(4),e.Y8G("icon",n.faExclamationTriangle),e.R7$(3),e.Y8G("ngIf",""!==n.sendFundError),e.R7$(5),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(n.flgValidated?"Close":"Cancel")}}let V2=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b,S,PC,$C){this.dialogRef=i,this.data=o,this.logger=a,this.dataService=l,this.store=p,this.rtlEffects=m,this.commonService=v,this.decimalPipe=b,this.snackBar=S,this.actions=PC,this.formBuilder=$C,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.sweepAll=!1,this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=c.A0,this.selAmountUnit=c.A0[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=c.k,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[0])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[d.k0.required]],password:["",[d.k0.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",d.k0.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",d.k0.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{"1"===i?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([d.k0.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([d.k0.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(H.qv).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.appConfig=i}),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.fiatConversion=i.settings.fiatConversion,this.amountUnits=i.settings.currencyUnits,this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,U.p)(i=>i.type===c.QP.UPDATE_API_CALL_STATUS_LND||i.type===c.QP.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(i=>{i.type===c.QP.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,I.UI)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&i.payload.status===c.wn.ERROR&&"SetChannelTransaction"===i.payload.action&&(this.sendFundError=i.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,I.oz)({payload:u2(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,W.s)(1)).subscribe(i=>{"ERROR"!==i?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="";const i={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(i.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(i.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(i.fees=this.sendFundFormGroup.controls.transactionFees.value)):(i.address=this.transactionAddress,"1"===this.selTransType&&(i.blocks=this.transactionBlocks),"2"===this.selTransType&&(i.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==c.BQ.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?c.BQ.OTHER:this.selAmountUnit,c.BQ.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,g.Q)(this.unSubs[5])).subscribe({next:o=>{this.selAmountUnit=c.BQ.SATS,i.amount=+(this.decimalPipe.transform(o[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]])?.replace(/,/g,"")||0),this.store.dispatch((0,T.aB)({payload:i}))},error:o=>{this.transactionAmount=null,this.selAmountUnit=c.BQ.SATS,this.amountError="Conversion Error: "+o}}):this.store.dispatch((0,T.aB)({payload:i}))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(i){switch(this.sendFundError="",i.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value)}i.selectedIndex{this.selAmountUnit=i.value,o.transactionAmount=+(o.decimalPipe.transform(m[l],o.currencyUnitFormats[l])?.replace(/,/g,"")||0)},error:m=>{o.transactionAmount=null,this.amountError="Conversion Error: "+m,this.selAmountUnit=a,l=a}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU(Z.u),e.rXU(L.il),e.rXU(_e.H),e.rXU($.h),e.rXU(_.QX),e.rXU(le.UG),e.rXU(K.En),e.rXU(d.ze))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(o,a){if(1&o&&(e.GBs(d2,7),e.GBs(h2,5),e.GBs(_2,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.formSweepAll=l.first),e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:13,vars:5,consts:[["sweepAllBlock",""],["form","ngForm"],["address","ngModel"],["amnt","ngModel"],["blocks","ngModel"],["fees","ngModel"],["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column",1,"padding-gap-x-large"],["fxFlex","100","class","alert alert-info mb-2",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["fxFlex","100",1,"alert","alert-info","mb-2"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["fxLayout","column","fxFlex.gt-sm","55"],["autoFocus","","matInput","","name","address","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","30"],["matInput","","name","amt","type","number","required","",3,"ngModelChange","step","min","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex.gt-sm","10","fxLayoutAlign","start end"],["required","","name","amountUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxLayout","column","fxFlex","48"],[3,"valueChange","value"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit"],[3,"value"],["fxFlex","48"],["matInput","","type","number","name","blcks","required","",3,"ngModelChange","step","min","ngModel"],["matInput","","type","number","name","chainFees","required","",3,"ngModelChange","step","min","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxLayout","column","fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","name","address","required",""],["fxLayout","column","fxFlex.gt-sm","25"],["formControlName","selTransType"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","type","password","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","type","number","name","blcks","required","",3,"step","min"],["matInput","","formControlName","transactionFees","type","number","name","chainFees","required","",3,"step","min"]],template:function(o,a){if(1&o&&(e.j41(0,"div",7)(1,"div",8)(2,"mat-card-header",9)(3,"div",10)(4,"span",11),e.EFF(5),e.k0s()(),e.j41(6,"button",12),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",13),e.DNE(9,f2,16,6,"div",14)(10,R2,36,14,"form",15),e.k0s()()(),e.DNE(11,O2,38,15,"ng-template",null,0,e.C5r)),2&o){const l=e.sdS(12);e.R7$(5),e.JRh(a.sweepAll?"Sweep All Funds":"Send Funds"),e.R7$(),e.Y8G("mat-dialog-close",!1),e.R7$(3),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(),e.Y8G("ngIf",!a.sweepAll)("ngIfElse",l)}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,d.j4,d.JD,O.aY,Y.tx,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.TL,C.yw,f.DJ,f.sA,f.UI,E.VO,X.wT,z.V5,z.Ti,z.M6,z.F7,te.N,ae.V],encapsulation:2}))}return t(),s})(),rt=(()=>{var t;class s{constructor(i,o){this.store=i,this.activatedRoute=o,this.sweepAll=!1,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.activatedRoute.data.pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.sweepAll=i.sweepAll})}openSendFundsModal(){this.store.dispatch((0,I.xO)({payload:{data:{sweepAll:this.sweepAll,component:V2}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(w.nX))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-send"]],standalone:!1,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(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return a.openSendFundsModal()}),e.EFF(3),e.k0s()()()),2&o&&(e.R7$(3),e.JRh(a.sweepAll?"Sweep All":"Send Funds"))},dependencies:[N.$z,f.DJ,f.sA,f.UI],encapsulation:2}))}return t(),s})();const Y2=t=>({"mt-1":t}),ct=t=>({"dashboard-card-content":!0,"error-border":t});function X2(t,s){1&t&&e.nrm(0,"mat-progress-bar",26)}function U2(t,s){if(1&t&&e.nrm(0,"rtl-node-info",27),2&t){const n=e.XpG(3);e.Y8G("information",n.information)("showColorFieldSeparately",!0)}}function H2(t,s){if(1&t&&e.nrm(0,"rtl-channel-status-info",28),2&t){const n=e.XpG(3);e.Y8G("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[4])}}function q2(t,s){if(1&t&&e.nrm(0,"rtl-fee-info",29),2&t){const n=e.XpG(3);e.Y8G("fees",n.fees)("errorMessage",n.errorMessages[2])}}function z2(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",13)(1,"div",14)(2,"div",15)(3,"div",16),e.nrm(4,"fa-icon",17),e.j41(5,"span"),e.EFF(6),e.k0s()()(),e.j41(7,"div",18)(8,"mat-card",19)(9,"mat-card-content",20),e.DNE(10,X2,1,0,"mat-progress-bar",21),e.j41(11,"div",22),e.DNE(12,U2,1,2,"rtl-node-info",23)(13,H2,1,2,"rtl-channel-status-info",24)(14,q2,1,2,"rtl-fee-info",25),e.k0s()()()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(4),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(3),e.Y8G("ngClass",e.eq3(10,ct,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.ERROR)||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.INITIATED)||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","status"),e.R7$(),e.Y8G("ngSwitchCase","fee")}}function J2(t,s){if(1&t&&(e.j41(0,"mat-grid-list",11),e.DNE(1,z2,15,12,"mat-grid-tile",12),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngForOf",n.nodeCards)}}function Q2(t,s){1&t&&e.nrm(0,"mat-progress-bar",26)}function W2(t,s){1&t&&e.eu8(0)}function Z2(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,W2,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function K2(t,s){1&t&&e.eu8(0)}function eg(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,K2,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(13);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function tg(t,s){1&t&&e.eu8(0)}function ng(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,tg,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(15);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function ig(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",30)(1,"mat-card",31)(2,"mat-card-content",32),e.DNE(3,Q2,1,0,"mat-progress-bar",21),e.j41(4,"div",22),e.DNE(5,Z2,2,1,"div",33)(6,eg,2,1,"div",33)(7,ng,2,1,"div",33),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(2),e.Y8G("ngClass",e.eq3(8,ct,i.apiCallStatusNetwork.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf",i.apiCallStatusNetwork.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","general"),e.R7$(),e.Y8G("ngSwitchCase","channels"),e.R7$(),e.Y8G("ngSwitchCase","degrees")}}function ag(t,s){if(1&t&&(e.j41(0,"div",36)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessages[1])}}function sg(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Network Capacity"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Number of Nodes"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div")(14,"h4",38),e.EFF(15,"Number of Channels"),e.k0s(),e.j41(16,"span",39),e.EFF(17),e.nI1(18,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.SpI("",e.bMT(6,3,n.networkInfo.total_network_capacity)," Sats"),e.R7$(6),e.JRh(e.bMT(12,5,n.networkInfo.num_nodes)),e.R7$(6),e.JRh(e.bMT(18,7,n.networkInfo.num_channels))}}function og(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Max Channel Size"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Avg Channel Size"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div")(14,"h4",38),e.EFF(15,"Min Channel Size"),e.k0s(),e.j41(16,"span",39),e.EFF(17),e.nI1(18,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.JRh(e.bMT(6,3,n.networkInfo.max_channel_size)),e.R7$(6),e.JRh(e.bMT(12,5,n.networkInfo.avg_channel_size)),e.R7$(6),e.JRh(e.bMT(18,7,n.networkInfo.min_channel_size))}}function lg(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Max Out Degree"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Avg Out Degree"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div",40),e.nrm(14,"h4",38)(15,"span",39),e.k0s()()),2&t){const n=e.XpG();e.R7$(5),e.JRh(e.bMT(6,2,n.networkInfo.max_out_degree)),e.R7$(6),e.JRh(e.i5U(12,4,n.networkInfo.avg_out_degree,"1.0-2"))}}let rg=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.commonService=o,this.store=a,this.faProjectDiagram=x.qFF,this.faBolt=x.zm_,this.faServer=x.D6w,this.faNetworkWired=x.eGi,this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=c.f7,this.userPersonaEnum=c.HW,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize===c.f7.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select(F.gj).pipe((0,g.Q)(this.unSubs[0]),(0,ge.E)(this.store.select(H._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=i.apiCallStatus,this.apiCallStatusNodeInfo.status===c.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=o,this.information=i.information}),this.store.select(F.tA).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessages[1]="",this.apiCallStatusNetwork=i.apiCallStatus,this.apiCallStatusNetwork.status===c.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message?this.apiCallStatusNetwork.message:""),this.networkInfo=i.networkInfo}),this.store.select(F.oR).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessages[2]="",this.apiCallStatusFees=i.apiCallStatus,this.apiCallStatusFees.status===c.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=i.fees}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=i.apiCallStatus,this.apiCallStatusPendingChannels.status===c.wn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:i.pendingChannelsSummary.open?.num_channels,capacity:i.pendingChannelsSummary.open?.limbo_balance},this.channelsStatus.closing={num_channels:(i.pendingChannelsSummary.closing?.num_channels||0)+(i.pendingChannelsSummary.force_closing?.num_channels||0)+(i.pendingChannelsSummary.waiting_close?.num_channels||0),capacity:i.pendingChannelsSummary.total_limbo_balance}}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.errorMessages[3]="",this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusChannels.status===c.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:""),this.channelsStatus.active=i.channelsSummary.active,this.channelsStatus.inactive=i.channelsSummary.inactive,this.logger.info(i)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-network-info"]],standalone:!1,decls:16,vars:6,consts:[["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",1,"mt-2",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"mt-2"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(o,a){1&o&&(e.j41(0,"div",4),e.DNE(1,J2,2,1,"mat-grid-list",5),e.j41(2,"div",6),e.nrm(3,"fa-icon",7),e.j41(4,"span",8),e.EFF(5,"Network"),e.k0s()(),e.j41(6,"mat-grid-list",9),e.DNE(7,ig,8,10,"mat-grid-tile",10),e.k0s()(),e.DNE(8,ag,3,1,"ng-template",null,0,e.C5r)(10,sg,19,9,"ng-template",null,1,e.C5r)(12,og,19,9,"ng-template",null,2,e.C5r)(14,lg,16,7,"ng-template",null,3,e.C5r)),2&o&&(e.R7$(),e.Y8G("ngIf",a.selNode.settings.userPersona!==a.userPersonaEnum.OPERATOR),e.R7$(),e.Y8G("ngClass",e.eq3(4,Y2,a.screenSize!==a.screenSizeEnum.XS)),e.R7$(),e.Y8G("icon",a.faProjectDiagram),e.R7$(4),e.Y8G("ngForOf",a.networkCards))},dependencies:[_.YU,_.Sq,_.bT,_.T3,_.ux,_.e1,O.aY,k.RN,k.m2,Ce.B_,Ce.NS,V.HM,f.DJ,f.sA,f.UI,j.PW,Ue,He,qe,_.QX],encapsulation:2}))}return t(),s})();function cg(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let pg=(()=>{var t;class s{constructor(i){this.router=i,this.faDownload=x.cbP,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-backup"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Channels Backup"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,cg,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faDownload),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();const mg=t=>({"overflow-auto error-border":t,"overflow-auto":!0}),ug=()=>["no_channel"],dg=t=>({"max-width":t}),hg=t=>({"display-none":t});function _g(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",24)(1,"h4",25),e.EFF(2),e.k0s(),e.j41(3,"div",26)(4,"button",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onRestoreChannels({}))}),e.EFF(5,"Restore All"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function fg(t,s){if(1&t&&(e.j41(0,"div",28)(1,"h4",25),e.EFF(2),e.k0s(),e.j41(3,"h4",29),e.EFF(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function gg(t,s){if(1&t&&(e.j41(0,"div",28)(1,"h4",25),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function Cg(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function yg(t,s){1&t&&(e.j41(0,"th",31),e.EFF(1,"Channel Point"),e.k0s())}function bg(t,s){if(1&t&&(e.j41(0,"td",32)(1,"div",33)(2,"span",34),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,dg,i.screenSize===i.screenSizeEnum.XS?"25rem":"60rem")),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Fg(t,s){1&t&&(e.j41(0,"th",35)(1,"div",36),e.EFF(2,"Actions"),e.k0s()())}function xg(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",32)(1,"span",37)(2,"button",38),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onRestoreChannels(o))}),e.EFF(3,"Restore"),e.k0s()()()}}function vg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No singular channel backups available."),e.k0s())}function Tg(t,s){if(1&t&&(e.j41(0,"td",39),e.DNE(1,vg,2,0,"p",40),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.channels||!n.channels.data||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)}}function kg(t,s){if(1&t&&e.nrm(0,"tr",41),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,hg,n.channels&&n.channels.data&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Sg(t,s){1&t&&e.nrm(0,"tr",42)}function Rg(t,s){1&t&&e.nrm(0,"tr",43)}let Eg=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.channels=new u.I6([]),this.allRestoreExists=!1,this.flgLoading=[!0],this.selFilter="",this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,T.$J)()),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.lndEffects.setRestoreChannelList.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.allRestoreExists=i.all_restore_exists,this.channelsData=i.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||i&&i.files)&&(this.flgLoading[0]=!1),this.logger.info(i)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(i){this.store.dispatch((0,T.Lf)({payload:{channelPoint:i.channel_point?i.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(i){this.channels=new u.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>(o.channel_point?o.channel_point.toLowerCase():"").includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(me.L),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-restore-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:28,vars:16,consts:[["table",""],["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["fxLayout","column","fxFlex","49"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["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"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1),e.DNE(1,_g,6,1,"div",2)(2,fg,5,1,"div",3)(3,gg,3,1,"div",3),e.j41(4,"div",4),e.nrm(5,"div",5),e.j41(6,"div",6),e.nrm(7,"div",7),e.j41(8,"mat-form-field",8)(9,"mat-label"),e.EFF(10,"Filter"),e.k0s(),e.j41(11,"input",9),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(12,"div",10),e.DNE(13,Cg,1,0,"mat-progress-bar",11),e.j41(14,"table",12,0),e.qex(16,13),e.DNE(17,yg,2,0,"th",14)(18,bg,4,4,"td",15),e.bVm(),e.qex(19,16),e.DNE(20,Fg,3,0,"th",17)(21,xg,4,0,"td",15),e.bVm(),e.qex(22,18),e.DNE(23,Tg,2,1,"td",19),e.bVm(),e.DNE(24,kg,1,3,"tr",20)(25,Sg,1,0,"tr",21)(26,Rg,1,0,"tr",22),e.k0s()(),e.nrm(27,"mat-paginator",23),e.k0s()}2&o&&(e.R7$(),e.Y8G("ngIf",a.allRestoreExists),e.R7$(),e.Y8G("ngIf",!a.allRestoreExists&&(!a.channels||(null==a.channels||null==a.channels.data?null:a.channels.data.length)<=0)),e.R7$(),e.Y8G("ngIf",!a.allRestoreExists&&a.channels&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)>0),e.R7$(8),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",!0===a.flgLoading[0]),e.R7$(),e.Y8G("dataSource",a.channels)("ngClass",e.eq3(13,mg,"error"===a.flgLoading[0])),e.R7$(10),e.Y8G("matFooterRowDef",e.lJ4(15,ug)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.Ld],encapsulation:2}))}return t(),s})();const Ig=t=>({"error-border":t}),Lg=()=>["no_channel"],wg=t=>({"max-width":t}),jg=t=>({"display-none":t});function Gg(t,s){1&t&&e.nrm(0,"mat-progress-bar",33)}function Dg(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Channel Point"),e.k0s())}function Ng(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,wg,i.screenSize===i.screenSizeEnum.XS?"25rem":"60rem")),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Pg(t,s){1&t&&(e.j41(0,"th",38)(1,"div",39),e.EFF(2,"Actions"),e.k0s()())}function $g(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",40)(1,"div",39)(2,"mat-select",41),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",42),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onChannelClick(a,o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onBackupChannels(o))}),e.EFF(7,"Backup"),e.k0s(),e.j41(8,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onDownloadBackup(o))}),e.EFF(9,"Download Backup"),e.k0s(),e.j41(10,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onVerifyChannels(o))}),e.EFF(11,"Verify"),e.k0s()()()()}}function Ag(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No channel available."),e.k0s())}function Mg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting channels..."),e.k0s())}function Bg(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Og(t,s){if(1&t&&(e.j41(0,"td",43),e.DNE(1,Ag,2,0,"p",44)(2,Mg,2,0,"p",44)(3,Bg,2,1,"p",44),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Vg(t,s){if(1&t&&e.nrm(0,"tr",45),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,jg,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Yg(t,s){1&t&&e.nrm(0,"tr",46)}function Xg(t,s){1&t&&e.nrm(0,"tr",47)}let Ug=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.actions=a,this.commonService=l,this.faInfoCircle=x.iW_,this.faExclamationTriangle=x.zpE,this.faArchive=x.Oh6,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.channels=new u.I6([]),this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=i.channels,this.channelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(i=>i.type===c.QP.SET_CHANNELS_LND||i.type===c.aU.SHOW_FILE)).subscribe(i=>{i.type===c.QP.SET_CHANNELS_LND&&(this.selectedChannel=null),i.type===c.aU.SHOW_FILE&&(this.commonService.downloadFile(i.payload,"channel-"+(this.selectedChannel?.channel_point?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(i){this.store.dispatch((0,T.H2)({payload:{uiMessage:c.MZ.BACKUP_CHANNEL,channelPoint:i.channel_point?i.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(i){this.store.dispatch((0,T.L)({payload:{channelPoint:i.channel_point?i.channel_point:"ALL"}}))}onDownloadBackup(i){this.selectedChannel=i,this.store.dispatch((0,I.t2)({payload:{channelPoint:i.channel_point?i.channel_point:"all"}}))}onChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{channel:i,showCopy:!1,component:we}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(i){this.channels=new u.I6(i?[...i]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>(o.channel_point?o.channel_point.toLowerCase():"").includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(K.En),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-backup-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:46,vars:17,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["fxLayout","column","fxFlex","49"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span"),e.EFF(5,"Save your backup files in a redundant location."),e.k0s()(),e.j41(6,"div",5),e.nrm(7,"fa-icon",4),e.j41(8,"span")(9,"strong"),e.EFF(10,"Backup Folder Location: "),e.k0s(),e.EFF(11),e.k0s()(),e.j41(12,"div",6)(13,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onVerifyChannels({}))}),e.EFF(14,"Verify All"),e.k0s(),e.j41(15,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onBackupChannels({}))}),e.EFF(16,"Backup All"),e.k0s(),e.j41(17,"button",9),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onDownloadBackup({}))}),e.EFF(18,"Download Backup"),e.k0s()()(),e.j41(19,"div",10)(20,"div",11),e.nrm(21,"fa-icon",12),e.j41(22,"span",13),e.EFF(23,"Backups"),e.k0s()(),e.j41(24,"div",14),e.nrm(25,"div",15),e.j41(26,"mat-form-field",16)(27,"mat-label"),e.EFF(28,"Filter"),e.k0s(),e.j41(29,"input",17),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(30,"div",18),e.DNE(31,Gg,1,0,"mat-progress-bar",19),e.j41(32,"table",20,0),e.qex(34,21),e.DNE(35,Dg,2,0,"th",22)(36,Ng,4,4,"td",23),e.bVm(),e.qex(37,24),e.DNE(38,Pg,3,0,"th",25)(39,$g,12,0,"td",26),e.bVm(),e.qex(40,27),e.DNE(41,Og,4,3,"td",28),e.bVm(),e.DNE(42,Vg,1,3,"tr",29)(43,Yg,1,0,"tr",30)(44,Xg,1,0,"tr",31),e.k0s()(),e.nrm(45,"mat-paginator",32),e.k0s()}2&o&&(e.R7$(3),e.Y8G("icon",a.faExclamationTriangle),e.R7$(4),e.Y8G("icon",a.faInfoCircle),e.R7$(4),e.SpI("",a.selNode.settings.channelBackupPath,"."),e.R7$(10),e.Y8G("icon",a.faArchive),e.R7$(8),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",a.channels)("ngClass",e.eq3(14,Ig,""!==a.errorMessage)),e.R7$(10),e.Y8G("matFooterRowDef",e.lJ4(16,Lg)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.bT,_.B3,d.me,d.BC,d.vS,O.aY,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.Ld],encapsulation:2}))}return t(),s})();function Hg(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let qg=(()=>{var t;class s{constructor(i){this.router=i,this.faUserCheck=x.pCJ,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-sign-verify-message"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Sign/Verify Message"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Hg,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faUserCheck),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();function zg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Message is required."),e.k0s())}let Jg=(()=>{var t;class s{constructor(i,o,a){this.dataService=i,this.snackBar=o,this.logger=a,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new h.B,new h.B]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.signedMessage=this.message,this.signature=i.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(i){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+i)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Z.u),e.rXU(le.UG),e.rXU(D.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-sign"]],standalone:!1,decls:22,vars:5,consts:[["form","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"signature-box","bordered-box","read-only"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"form",2,0)(3,"mat-form-field",3)(4,"mat-label"),e.EFF(5,"Message to sign"),e.k0s(),e.j41(6,"textarea",4),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.message,m)||(a.message=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onMessageChange())}),e.k0s(),e.DNE(7,zg,2,0,"mat-error",5),e.k0s(),e.j41(8,"div",6)(9,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(10,"Clear Field"),e.k0s(),e.j41(11,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onSign())}),e.EFF(12,"Sign"),e.k0s()(),e.nrm(13,"mat-divider",9),e.j41(14,"div",10)(15,"p"),e.EFF(16,"Generated Signature"),e.k0s()(),e.j41(17,"div",11),e.EFF(18),e.k0s(),e.j41(19,"div",12)(20,"button",13),e.bIt("copied",function(m){return r.eBV(l),r.Njj(a.onCopyField(m))}),e.EFF(21,"Copy Signature"),e.k0s()()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.message),e.R7$(),e.Y8G("ngIf",!a.message),e.R7$(6),e.Y8G("inset",!0),e.R7$(5),e.JRh(a.signature),e.R7$(2),e.Y8G("payload",a.signature))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,M.fg,C.rl,C.nJ,C.TL,ne.q,f.DJ,f.sA,f.UI,be.U,te.N],styles:[".signature-box[_ngcontent-%COMP%]{padding:1rem}"]}))}return t(),s})();function Qg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Message is required."),e.k0s())}function Wg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Signature is required."),e.k0s())}function Zg(t,s){1&t&&(e.j41(0,"p",13)(1,"mat-icon",14),e.EFF(2,"close"),e.k0s(),e.EFF(3,"Verification failed, please check message and signature"),e.k0s())}function Kg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Pubkey Used"),e.k0s())}function e4(t,s){if(1&t&&(e.j41(0,"div",20)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(2),e.JRh(null==n.verifyRes?null:n.verifyRes.pubkey)}}function t4(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",21)(1,"button",22),e.bIt("copied",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onCopyField(o))}),e.EFF(2,"Copy Pubkey"),e.k0s()()}if(2&t){const n=e.XpG(2);e.R7$(),e.Y8G("payload",null==n.verifyRes?null:n.verifyRes.pubkey)}}function n4(t,s){if(1&t&&(e.j41(0,"div",15),e.nrm(1,"mat-divider",16),e.j41(2,"div",17),e.DNE(3,Kg,2,0,"p",6),e.k0s(),e.DNE(4,e4,3,1,"div",18)(5,t4,3,1,"div",19),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(2),e.Y8G("ngIf",n.verifyRes.valid),e.R7$(),e.Y8G("ngIf",n.verifyRes.valid),e.R7$(),e.Y8G("ngIf",n.verifyRes.valid)}}let i4=(()=>{var t;class s{constructor(i,o,a){this.dataService=i,this.snackBar=o,this.logger=a,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new h.B,new h.B]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.verifyRes=i,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(i){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Z.u),e.rXU(le.UG),e.rXU(D.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-verify"]],standalone:!1,decls:21,vars:6,consts:[["form","ngForm"],["sign","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["matInput","","name","signature","tabindex","2","required","",3,"ngModelChange","keyup","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"mat-form-field",4)(4,"mat-label"),e.EFF(5,"Message to verify"),e.k0s(),e.j41(6,"textarea",5),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.message,m)||(a.message=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onChange())}),e.k0s(),e.DNE(7,Qg,2,0,"mat-error",6),e.k0s(),e.j41(8,"mat-form-field",4)(9,"mat-label"),e.EFF(10,"Signature provided"),e.k0s(),e.j41(11,"input",7,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.signature,m)||(a.signature=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onChange())}),e.k0s(),e.DNE(13,Wg,2,0,"mat-error",6),e.k0s(),e.DNE(14,Zg,4,0,"p",8),e.j41(15,"div",9)(16,"button",10),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(17,"Clear Fields"),e.k0s(),e.j41(18,"button",11),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onVerify())}),e.EFF(19,"Verify"),e.k0s()(),e.DNE(20,n4,6,4,"div",12),e.k0s()()}2&o&&(e.R7$(6),e.R50("ngModel",a.message),e.R7$(),e.Y8G("ngIf",!a.message),e.R7$(4),e.R50("ngModel",a.signature),e.R7$(2),e.Y8G("ngIf",!a.signature),e.R7$(),e.Y8G("ngIf",a.showVerifyStatus&&!a.verifyRes.valid),e.R7$(6),e.Y8G("ngIf",a.showVerifyStatus&&a.verifyRes.valid))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,oe.An,M.fg,C.rl,C.nJ,C.TL,ne.q,f.DJ,f.sA,f.UI,be.U,te.N],encapsulation:2}))}return t(),s})();var a4=y(90013),P=y(17186);const s4=()=>["all"],o4=()=>["no_non_routing_event"],ke=t=>({"max-width":t}),l4=t=>({"display-none":t});function r4(t,s){if(1&t&&(e.j41(0,"div",5),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function c4(t,s){if(1&t&&(e.j41(0,"mat-option",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function p4(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",10)(1,"div",11),e.EFF(2,"Non Routing Peers"),e.k0s(),e.j41(3,"div",12)(4,"mat-form-field",13)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",14),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG(2);return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,c4,2,2,"mat-option",15),e.k0s()()(),e.j41(10,"mat-form-field",13)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",16),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.applyFilter())}),e.k0s()()()()}if(2&t){const n=e.XpG(2);e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(3,s4).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter)}}function m4(t,s){1&t&&e.nrm(0,"mat-progress-bar",50)}function u4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Channel ID"),e.k0s())}function d4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function h4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Peer Alias"),e.k0s())}function _4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_alias)}}function f4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Peer Pubkey"),e.k0s())}function g4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_pubkey)}}function C4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Channel Point"),e.k0s())}function y4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function b4(t,s){if(1&t&&(e.j41(0,"th",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.SpI("Uptime (",n.timeUnit,")")}}function F4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.uptime_str," ")}}function x4(t,s){if(1&t&&(e.j41(0,"th",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.SpI("Lifetime (",n.timeUnit,")")}}function v4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.lifetime_str," ")}}function T4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function k4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_fee)," ")}}function S4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Commit Weight"),e.k0s())}function R4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_weight)," ")}}function E4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Fee/KW"),e.k0s())}function I4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.fee_per_kw)," ")}}function L4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Updates"),e.k0s())}function w4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.num_updates)," ")}}function j4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Unsettled Balance (Sats)"),e.k0s())}function G4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.unsettled_balance)," ")}}function D4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Capacity (Sats)"),e.k0s())}function N4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function P4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Local Reserve (Sats)"),e.k0s())}function $4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_chan_reserve_sat)," ")}}function A4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Remote Reserve (Sats)"),e.k0s())}function M4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_chan_reserve_sat)," ")}}function B4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Sats Sent"),e.k0s())}function O4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_satoshis_sent))}}function V4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Sats Received"),e.k0s())}function Y4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_satoshis_received))}}function X4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function U4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.local_balance))}}function H4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function q4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.remote_balance))}}function z4(t,s){1&t&&(e.j41(0,"th",57)(1,"div",58),e.EFF(2,"Actions"),e.k0s()())}function J4(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",59)(1,"button",60),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(3);return r.Njj(a.onManagePeer(o))}),e.EFF(2,"Manage"),e.k0s()()}}function Q4(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"All peers are routing."),e.k0s())}function W4(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting non routing peers..."),e.k0s())}function Z4(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.JRh(n.errorMessage)}}function K4(t,s){if(1&t&&(e.j41(0,"td",61),e.DNE(1,Q4,2,0,"p",62)(2,W4,2,0,"p",62)(3,Z4,2,1,"p",62),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function eC(t,s){if(1&t&&e.nrm(0,"tr",63),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,l4,(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)>0))}}function tC(t,s){1&t&&e.nrm(0,"tr",64)}function nC(t,s){1&t&&e.nrm(0,"tr",65)}function iC(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,m4,1,0,"mat-progress-bar",19),e.j41(2,"table",20,1),e.qex(4,21),e.DNE(5,u4,2,0,"th",22)(6,d4,4,4,"td",23),e.bVm(),e.qex(7,24),e.DNE(8,h4,2,0,"th",22)(9,_4,4,4,"td",23),e.bVm(),e.qex(10,25),e.DNE(11,f4,2,0,"th",22)(12,g4,4,4,"td",23),e.bVm(),e.qex(13,26),e.DNE(14,C4,2,0,"th",22)(15,y4,4,4,"td",23),e.bVm(),e.qex(16,27),e.DNE(17,b4,2,1,"th",28)(18,F4,3,1,"td",23),e.bVm(),e.qex(19,29),e.DNE(20,x4,2,1,"th",28)(21,v4,3,1,"td",23),e.bVm(),e.qex(22,30),e.DNE(23,T4,2,0,"th",28)(24,k4,4,3,"td",23),e.bVm(),e.qex(25,31),e.DNE(26,S4,2,0,"th",28)(27,R4,4,3,"td",23),e.bVm(),e.qex(28,32),e.DNE(29,E4,2,0,"th",28)(30,I4,4,3,"td",23),e.bVm(),e.qex(31,33),e.DNE(32,L4,2,0,"th",28)(33,w4,4,3,"td",23),e.bVm(),e.qex(34,34),e.DNE(35,j4,2,0,"th",28)(36,G4,4,3,"td",23),e.bVm(),e.qex(37,35),e.DNE(38,D4,2,0,"th",28)(39,N4,4,3,"td",23),e.bVm(),e.qex(40,36),e.DNE(41,P4,2,0,"th",28)(42,$4,4,3,"td",23),e.bVm(),e.qex(43,37),e.DNE(44,A4,2,0,"th",28)(45,M4,4,3,"td",23),e.bVm(),e.qex(46,38),e.DNE(47,B4,2,0,"th",28)(48,O4,4,3,"td",23),e.bVm(),e.qex(49,39),e.DNE(50,V4,2,0,"th",28)(51,Y4,4,3,"td",23),e.bVm(),e.qex(52,40),e.DNE(53,X4,2,0,"th",28)(54,U4,4,3,"td",23),e.bVm(),e.qex(55,41),e.DNE(56,H4,2,0,"th",28)(57,q4,4,3,"td",23),e.bVm(),e.qex(58,42),e.DNE(59,z4,3,0,"th",43)(60,J4,3,0,"td",44),e.bVm(),e.qex(61,45),e.DNE(62,K4,4,3,"td",46),e.bVm(),e.DNE(63,eC,1,3,"tr",47)(64,tC,1,0,"tr",48)(65,nC,1,0,"tr",49),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.nonRoutingPeers),e.R7$(61),e.Y8G("matFooterRowDef",e.lJ4(7,o4)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}function aC(t,s){if(1&t&&(e.j41(0,"div",6),e.DNE(1,p4,14,4,"div",7)(2,iC,66,8,"div",8),e.nrm(3,"mat-paginator",9,0),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",""===n.errorMessage),e.R7$(),e.Y8G("ngIf",""===n.errorMessage),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let sC=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.logger=i,this.commonService=o,this.store=a,this.router=l,this.activatedRoute=p,this.decimalPipe=m,this.camelCaseWithReplace=v,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"non_routing_peers",recordsPerPage:c.md,sortBy:"remote_alias",sortOrder:c.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.nonRoutingPeers=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.activeChannels=[],this.timeUnit="mins:secs",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Ie).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=i.forwardingHistory.forwarding_events?i.forwardingHistory.forwarding_events:[],this.routingPeersData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory)}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=i.channels,this.logger.info(i)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}calculateUptime(i){let m=60,v=1,b=0;switch(i.forEach(S=>{S.uptime&&+S.uptime>b&&(b=+S.uptime)}),!0){case b<3600:this.timeUnit="Mins:Secs",m=60,v=1;break;case b>=3600&&b<86400:this.timeUnit="Hrs:Mins",m=3600,v=60;break;case b>=86400&&b<31536e3:this.timeUnit="Days:Hrs",m=86400,v=3600;break;case b>31536e3:this.timeUnit="Yrs:Days",m=31536e3,v=86400;break;default:this.timeUnit="Mins:Secs",m=60,v=1}return i.forEach(S=>{S.uptime_str=S.uptime?this.decimalPipe.transform(Math.floor(+S.uptime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.uptime%m/v),"2.0-0"):"---",S.lifetime_str=S.lifetime?this.decimalPipe.transform(Math.floor(+S.lifetime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.lifetime%m/v),"2.0-0"):"---"}),i}onManagePeer(i){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filterValue:i.chan_id}})}applyFilter(){this.nonRoutingPeers.filter=this.selFilter.toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.nonRoutingPeers.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterBy?JSON.stringify(i).toLowerCase():typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString(),a.includes(o)}}loadNonRoutingPeersTable(i){if(i.length>0){const o=this.calculateUptime(this.activeChannels?.filter(a=>i.findIndex(l=>l.chan_id_in===a.chan_id||l.chan_id_out===a.chan_id)<0));this.nonRoutingPeers=new u.I6(o),this.nonRoutingPeers.sort=this.sort,this.nonRoutingPeers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.nonRoutingPeers)}else this.nonRoutingPeers=new u.I6([]);this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(w.Ix),e.rXU(w.nX),e.rXU(_.QX),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-non-routing-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:G.xX,useValue:(0,c.on)("Non routing peers")}])],decls:3,vars:2,consts:[["paginator",""],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["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"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","uptime_str"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lifetime_str"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","num_updates"],["matColumnDef","unsettled_balance"],["matColumnDef","capacity"],["matColumnDef","local_chan_reserve_sat"],["matColumnDef","remote_chan_reserve_sat"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_non_routing_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",""],["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"],["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(o,a){1&o&&(e.j41(0,"div",2),e.DNE(1,r4,2,1,"div",3)(2,aC,5,5,"div",4),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX],encapsulation:2}))}return t(),s})();var pt=y(83838);let oC=(()=>{var t;class s{constructor(i){this.dataService=i,this.paths="",this.unSubs=[new h.B,new h.B]}ngOnInit(){if(this.payment.htlcs&&this.payment.htlcs[0]&&this.payment.htlcs[0].route&&this.payment.htlcs[0].route.hops&&this.payment.htlcs[0].route.hops.length>0){const i=this.payment.htlcs[0].route.hops?.reduce((o,a)=>""===o&&a.pub_key?a.pub_key:o+","+a.pub_key,"");this.dataService.getAliasesFromPubkeys(i,!0).pipe((0,g.Q)(this.unSubs[0])).subscribe(o=>{this.paths=o?.reduce((a,l)=>""===a?l:a+"\n"+l,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,W.s)(1)).subscribe(i=>{i&&i.description&&""!==i.description&&(this.payment.description=i.description)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},standalone:!1,decls:66,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","50"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"mat-card-content",1)(2,"div",2)(3,"h4",3),e.EFF(4,"Payment Hash"),e.k0s(),e.j41(5,"span",4),e.EFF(6),e.k0s()(),e.nrm(7,"mat-divider",5),e.j41(8,"div",2)(9,"h4",3),e.EFF(10,"Payment Preimage"),e.k0s(),e.j41(11,"span",4)(12,"div"),e.EFF(13),e.k0s()()(),e.nrm(14,"mat-divider",5),e.j41(15,"div",2)(16,"h4",3),e.EFF(17,"Payment Request"),e.k0s(),e.j41(18,"span",4)(19,"div"),e.EFF(20),e.k0s()()(),e.nrm(21,"mat-divider",5),e.j41(22,"div",2)(23,"h4",3),e.EFF(24,"Description"),e.k0s(),e.j41(25,"span",4)(26,"div"),e.EFF(27),e.k0s()()(),e.nrm(28,"mat-divider",5),e.j41(29,"div",6)(30,"div",7)(31,"h4",3),e.EFF(32,"Status"),e.k0s(),e.j41(33,"span",4)(34,"div"),e.EFF(35),e.k0s()()(),e.j41(36,"div",7)(37,"h4",3),e.EFF(38,"Creation Date"),e.k0s(),e.j41(39,"span",4)(40,"div"),e.EFF(41),e.k0s()()()(),e.nrm(42,"mat-divider",5),e.j41(43,"div",6)(44,"div",7)(45,"h4",3),e.EFF(46,"Value (mSats)"),e.k0s(),e.j41(47,"span",4)(48,"div"),e.EFF(49),e.nI1(50,"number"),e.k0s()()(),e.j41(51,"div",7)(52,"h4",3),e.EFF(53,"Fee (mSats)"),e.k0s(),e.j41(54,"span",4)(55,"div"),e.EFF(56),e.nI1(57,"number"),e.k0s()()()(),e.nrm(58,"mat-divider",5),e.j41(59,"div",2)(60,"h4",3),e.EFF(61,"Path"),e.k0s(),e.j41(62,"span",4)(63,"div"),e.EFF(64),e.k0s()()(),e.nrm(65,"mat-divider",5),e.k0s()()),2&o&&(e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_hash),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_preimage),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_request),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.description),e.R7$(),e.Y8G("inset",!0),e.R7$(7),e.JRh(null==a.payment?null:a.payment.status),e.R7$(6),e.JRh(null==a.payment?null:a.payment.creation_date),e.R7$(),e.Y8G("inset",!0),e.R7$(7),e.JRh(e.bMT(50,16,null==a.payment?null:a.payment.value_msat)),e.R7$(7),e.JRh(e.bMT(57,18,null==a.payment?null:a.payment.fee_msat)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(a.paths),e.R7$(),e.Y8G("inset",!0))},dependencies:[k.m2,ne.q,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();var lC=y(38288);const mt=t=>({"display-none":t}),Me=t=>({"mr-0":t});function rC(t,s){if(1&t&&e.nrm(0,"qr-code",22),2&t){const n=e.XpG();e.Y8G("value",null==n.invoice?null:n.invoice.payment_request)("size",n.qrWidth)}}function cC(t,s){1&t&&(e.j41(0,"span",23),e.EFF(1,"N/A"),e.k0s())}function pC(t,s){if(1&t&&e.nrm(0,"qr-code",22),2&t){const n=e.XpG();e.Y8G("value",null==n.invoice?null:n.invoice.payment_request)("size",n.qrWidth)}}function mC(t,s){1&t&&(e.j41(0,"span",24),e.EFF(1,"QR Code Not Applicable"),e.k0s())}function uC(t,s){1&t&&e.nrm(0,"mat-divider",16),2&t&&e.Y8G("inset",!0)}function dC(t,s){1&t&&(e.qex(0),e.EFF(1," (zero amount) "),e.bVm())}function hC(t,s){if(1&t&&e.nrm(0,"span",38),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Me,n.screenSize===n.screenSizeEnum.XS))}}function _C(t,s){if(1&t&&e.nrm(0,"span",39),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Me,n.screenSize===n.screenSizeEnum.XS))}}function fC(t,s){if(1&t&&e.nrm(0,"span",40),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Me,n.screenSize===n.screenSizeEnum.XS))}}function gC(t,s){if(1&t&&(e.j41(0,"div",27)(1,"div",32)(2,"span",33),e.DNE(3,hC,1,3,"span",34)(4,_C,1,3,"span",35)(5,fC,1,3,"span",36),e.EFF(6),e.k0s(),e.j41(7,"span",37),e.EFF(8),e.nI1(9,"number"),e.k0s()(),e.nrm(10,"mat-divider",16),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(3),e.Y8G("ngIf","SETTLED"===n.state),e.R7$(),e.Y8G("ngIf","ACCEPTED"===n.state),e.R7$(),e.Y8G("ngIf","CANCELED"===n.state),e.R7$(),e.SpI(" ",n.chan_id," "),e.R7$(2),e.JRh(e.i5U(9,6,+n.amt_msat/1e3||0,i.getDecimalFormat(n))),e.R7$(2),e.Y8G("inset",!0)}}function CC(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",11)(1,"mat-expansion-panel",25),e.bIt("opened",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.flgOpened=!0)})("closed",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onExpansionClosed())}),e.j41(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",26),e.EFF(5,"HTLCs"),e.k0s()()(),e.j41(6,"div",27)(7,"div",28)(8,"span",29),e.EFF(9,"Channel ID"),e.k0s(),e.j41(10,"span",30),e.EFF(11,"Amount (Sats)"),e.k0s()(),e.nrm(12,"mat-divider",16),e.DNE(13,gC,11,9,"div",31),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(12),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngForOf",null==n.invoice?null:n.invoice.htlcs)}}function yC(t,s){1&t&&e.nrm(0,"mat-divider",16),2&t&&e.Y8G("inset",!0)}let bC=(()=>{var t;class s{constructor(i){this.commonService=i,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===c.f7.XS&&(this.qrWidth=220)}getDecimalFormat(i){return i.amt_msat<1e3?"1.0-4":"1.0-0"}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},standalone:!1,decls:90,vars:45,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","20",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","80"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar"],["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"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],["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(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,rC,1,2,"qr-code",2)(3,cC,2,0,"span",3),e.k0s(),e.j41(4,"div",4)(5,"mat-card-content",5)(6,"div",6)(7,"div",7),e.DNE(8,pC,1,2,"qr-code",2)(9,mC,2,0,"span",8),e.k0s(),e.DNE(10,uC,1,1,"mat-divider",9),e.j41(11,"div",10)(12,"div",11)(13,"div",12)(14,"h4",13),e.EFF(15),e.k0s(),e.j41(16,"span",14),e.EFF(17),e.nI1(18,"number"),e.DNE(19,dC,2,0,"ng-container",15),e.k0s()(),e.j41(20,"div",12)(21,"h4",13),e.EFF(22,"Amount Settled"),e.k0s(),e.j41(23,"span",14)(24,"div"),e.EFF(25),e.nI1(26,"number"),e.k0s()()()(),e.nrm(27,"mat-divider",16),e.j41(28,"div",11)(29,"div",12)(30,"h4",13),e.EFF(31,"Date Created"),e.k0s(),e.j41(32,"span",14),e.EFF(33),e.nI1(34,"date"),e.k0s()(),e.j41(35,"div",12)(36,"h4",13),e.EFF(37,"Date Settled"),e.k0s(),e.j41(38,"span",14),e.EFF(39),e.nI1(40,"date"),e.k0s()()(),e.nrm(41,"mat-divider",16),e.j41(42,"div",11)(43,"div",17)(44,"h4",13),e.EFF(45,"Memo"),e.k0s(),e.j41(46,"span",14),e.EFF(47),e.k0s()()(),e.nrm(48,"mat-divider",16),e.j41(49,"div",11)(50,"div",17)(51,"h4",13),e.EFF(52,"Payment Request"),e.k0s(),e.j41(53,"span",18),e.EFF(54),e.k0s()()(),e.nrm(55,"mat-divider",16),e.j41(56,"div",11)(57,"div",17)(58,"h4",13),e.EFF(59,"Payment Hash"),e.k0s(),e.j41(60,"span",18),e.EFF(61),e.k0s()()(),e.j41(62,"div"),e.nrm(63,"mat-divider",16),e.j41(64,"div",11)(65,"div",17)(66,"h4",13),e.EFF(67,"Preimage"),e.k0s(),e.j41(68,"span",18),e.EFF(69),e.k0s()()(),e.nrm(70,"mat-divider",16),e.j41(71,"div",11)(72,"div",19)(73,"h4",13),e.EFF(74,"State"),e.k0s(),e.j41(75,"span",18),e.EFF(76),e.k0s()(),e.j41(77,"div",20)(78,"h4",13),e.EFF(79,"Expiry"),e.k0s(),e.j41(80,"span",18),e.EFF(81),e.k0s()(),e.j41(82,"div",20)(83,"h4",13),e.EFF(84,"Private Routing Hints"),e.k0s(),e.j41(85,"span",18),e.EFF(86),e.k0s()()(),e.nrm(87,"mat-divider",16),e.DNE(88,CC,14,2,"div",21)(89,yC,1,1,"mat-divider",9),e.k0s()()()()()()),2&o&&(e.R7$(),e.Y8G("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.eq3(41,mt,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.R7$(4),e.Y8G("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.eq3(43,mt,a.screenSize!==a.screenSizeEnum.XS&&a.screenSize!==a.screenSizeEnum.SM)),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM),e.R7$(5),e.JRh(a.screenSize===a.screenSizeEnum.XS?"Amount":"Amount Requested"),e.R7$(2),e.SpI("",e.bMT(18,31,(null==a.invoice?null:a.invoice.value)||0)," Sats"),e.R7$(2),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.value)||"0"===(null==a.invoice?null:a.invoice.value)),e.R7$(6),e.SpI("",e.bMT(26,33,null==a.invoice?null:a.invoice.amt_paid_sat)," Sats"),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(34,35,1e3*(null==a.invoice?null:a.invoice.creation_date),"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(0!=+(null==a.invoice?null:a.invoice.settle_date)?e.i5U(40,38,1e3*+(null==a.invoice?null:a.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.invoice?null:a.invoice.memo),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.payment_request)||"N/A"),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.r_hash)||""),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.r_preimage)||"-"),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.invoice?null:a.invoice.state),e.R7$(5),e.JRh(null==a.invoice?null:a.invoice.expiry),e.R7$(5),e.JRh(null!=a.invoice&&a.invoice.private?"Yes":"No"),e.R7$(),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0))},dependencies:[_.YU,_.Sq,_.bT,k.m2,q.GK,q.Z2,q.WN,ne.q,f.DJ,f.sA,f.UI,j.PW,ee.oV,lC.Um,B.Ld,_.QX,_.vh],encapsulation:2}))}return t(),s})();const FC=t=>({"mt-1":!0,"mt-2":t}),xC=t=>({"w-100 mt-2 p-2 error-border":t,"w-100 my-2 p-2":!0});function vC(t,s){if(1&t&&(e.j41(0,"mat-radio-button",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n.id)("checked",i.selectedFieldId===n.id),e.R7$(),e.SpI(" ",n.name," ")}}function TC(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function kC(t,s){1&t&&e.nrm(0,"mat-progress-bar",20)}function SC(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,kC,1,0,"mat-progress-bar",19),e.EFF(2),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(3,xC,""!==n.errorMessage&&"Getting lookup details..."!==n.errorMessage)),e.R7$(),e.Y8G("ngIf","Getting lookup details..."===n.errorMessage),e.R7$(),e.SpI(" ",n.errorMessage," ")}}function RC(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-payment-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("payment",n.lookupValue)}}function EC(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-invoice-lookup",29),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("invoice",n.lookupValue)}}function IC(t,s){1&t&&(e.j41(0,"span"),e.EFF(1,' fxFlex="100"'),e.j41(2,"h3"),e.EFF(3,"Error! Unable to find details!"),e.k0s()())}function LC(t,s){if(1&t&&(e.j41(0,"div",21)(1,"div",22)(2,"span",23),e.EFF(3),e.k0s()(),e.j41(4,"div",24),e.DNE(5,RC,2,1,"span",25)(6,EC,2,1,"span",25)(7,IC,4,0,"span",26),e.k0s()()),2&t){const n=e.XpG();e.R7$(3),e.SpI("",n.lookupFields[n.selectedFieldId].name," Details"),e.R7$(),e.Y8G("ngSwitch",n.selectedFieldId),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",1)}}let wC=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Payment",placeholder:"Payment Hash"},{id:1,name:"Invoice",placeholder:"Payment Hash"}],this.faSearch=x.MjD,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i.type===c.QP.SET_LOOKUP_LND)).subscribe(i=>{this.flgSetLookupValue=!i.payload.error,this.lookupValue=JSON.parse(JSON.stringify(i.payload)),this.errorMessage=i.payload.error?this.commonService.extractErrorMessage(i.payload.error):"",this.logger.info(this.lookupValue)})}onLookup(){if(!this.lookupKey)return!0;switch(this.errorMessage="",this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,T.jk)({payload:pt.Buffer.from(this.lookupKey.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,T.Yi)({payload:{openSnackBar:!1,paymentHash:pt.Buffer.from(this.lookupKey.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}}))}}onSelectChange(i){this.resetData(),this.selectedFieldId=i.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(K.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lookup-transactions"]],standalone:!1,decls:21,vars:10,consts:[["form","ngForm"],["key",""],["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"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModelChange","change","ngModel"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[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","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mb-2"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"mat-card-content",4)(3,"form",5,0)(5,"div",6)(6,"mat-radio-group",7),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selectedFieldId,m)||(a.selectedFieldId=m),r.Njj(m)}),e.bIt("change",function(m){return r.eBV(l),r.Njj(a.onSelectChange(m))}),e.DNE(7,vC,2,3,"mat-radio-button",8),e.k0s()(),e.j41(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10),e.k0s(),e.j41(11,"input",10,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.lookupKey,m)||(a.lookupKey=m),r.Njj(m)}),e.bIt("change",function(){return r.eBV(l),r.Njj(a.clearLookupValue())}),e.k0s(),e.DNE(13,TC,2,1,"mat-error",11),e.k0s(),e.j41(14,"div",12)(15,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(16,"Clear"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onLookup())}),e.EFF(18,"Lookup"),e.k0s()()(),e.DNE(19,SC,3,5,"div",15)(20,LC,8,4,"div",16),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selectedFieldId),e.R7$(),e.Y8G("ngForOf",a.lookupFields),e.R7$(),e.Y8G("ngClass",e.eq3(8,FC,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(2),e.JRh((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),e.R7$(),e.R50("ngModel",a.lookupKey),e.R7$(2),e.Y8G("ngIf",!a.lookupKey),e.R7$(6),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},dependencies:[_.YU,_.Sq,_.bT,_.ux,_.e1,_.fG,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,k.m2,M.fg,C.rl,C.nJ,C.TL,V.HM,de.VT,de._g,f.DJ,f.sA,f.UI,j.PW,oC,bC],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}"]}))}return t(),s})();const jC=[{path:"",component:Be,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Us,canActivate:[(0,P.jn)()]},{path:"wallet",component:Ld,canActivate:[P.q_]},{path:"onchain",component:r2,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:m2,canActivate:[(0,P.jn)()]},{path:"send/:selTab",component:rt,data:{sweepAll:!1},canActivate:[(0,P.jn)()]},{path:"sweep/:selTab",component:rt,data:{sweepAll:!0},canActivate:[(0,P.jn)()]}]},{path:"connections",component:zs,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:gl,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:V1,canActivate:[(0,P.jn)()]},{path:"pending",component:km,canActivate:[(0,P.jn)()]},{path:"closed",component:du,canActivate:[(0,P.jn)()]},{path:"activehtlcs",component:sd,canActivate:[(0,P.jn)()]}]},{path:"peers",component:ul,data:{sweepAll:!1},canActivate:[(0,P.jn)()]}]},{path:"transactions",component:jd,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:Ye,canActivate:[(0,P.jn)()]},{path:"invoices",component:Ve,canActivate:[(0,P.jn)()]},{path:"lookuptransactions",component:wC,canActivate:[(0,P.jn)()]}]},{path:"messages",component:qg,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Jg,canActivate:[(0,P.jn)()]},{path:"verify",component:i4,canActivate:[(0,P.jn)()]}]},{path:"channelbackup",component:pg,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:Ug,canActivate:[(0,P.jn)()]},{path:"restore",component:Eg,canActivate:[(0,P.jn)()]}]},{path:"routing",component:Mh,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:it,canActivate:[(0,P.jn)()]},{path:"peers",component:p0,canActivate:[(0,P.jn)()]},{path:"nonroutingprs",component:sC,canActivate:[(0,P.jn)()]}]},{path:"reports",component:u0,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:F0,canActivate:[(0,P.jn)()]},{path:"transactions",component:D0,canActivate:[(0,P.jn)()]}]},{path:"graph",component:Dd,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:nt,canActivate:[(0,P.jn)()]},{path:"queryroutes",component:lh,canActivate:[(0,P.jn)()]}]},{path:"lookups",component:nt,canActivate:[(0,P.jn)()]},{path:"network",component:rg,canActivate:[(0,P.jn)()]},{path:"**",component:a4.X},{path:"rates",redirectTo:"network"}]}],GC=ie.iI.forChild(jC);var DC=y(19029);let NC=(()=>{var t;class s{static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275mod=e.$C({type:s,bootstrap:[Be]}),this.\u0275inj=r.G2t({imports:[_.MD,DC.G,GC]}))}return t(),s})()}}]); \ No newline at end of file diff --git a/frontend/190.496d0a0b94483d54.js b/frontend/190.496d0a0b94483d54.js new file mode 100644 index 00000000..fd3fd0d5 --- /dev/null +++ b/frontend/190.496d0a0b94483d54.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[190],{39190(AC,ut,y){y.d(ut,{LNDModule:()=>NC});var _=y(72200),ie=y(38132),w=y(43694),dt=y(9881),e=y(73664),V=y(67575),f=y(52920);function ht(t,s){1&t&&e.nrm(0,"mat-progress-bar",3)}let Be=(()=>{var t;class s{constructor(i){this.router=i,this.loading=!1,this.router.events.subscribe(o=>{switch(!0){case o instanceof w.Z:this.loading=!0;break;case o instanceof w.wF:case o instanceof w.j5:case o instanceof w.L6:this.loading=!1}})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lnd-root"]],standalone:!1,decls:4,vars:1,consts:[["outlet","outlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,ht,1,0,"mat-progress-bar",2),e.nrm(2,"router-outlet",null,0),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",a.loading))},dependencies:[_.bT,V.HM,f.DJ,f.sA,f.UI,w.n3],encapsulation:2,data:{animation:[dt.E]}}))}return t(),s})();var h=y(21413),g=y(56977),ge=y(53993),U=y(5964),Oe=y(90614),x=y(45383),c=y(4416),H=y(79647),F=y(63536),r=y(2615),D=y(98570),L=y(59640),K=y(11747),$=y(82571),O=y(20060),_t=y(22598),k=y(25596),Ce=y(82885),oe=y(12629),Se=y(59115),j=y(16038),A=y(96850),G=y(96695),R=y(2042),u=y(19295),E=y(96183),Y=y(51585),T=y(190),d=y(89417),N=y(88834),M=y(33746),C=y(69588),X=y(23029),he=y(30450),ee=y(40455),te=y(89587),ae=y(56114);function ft(t,s){1&t&&(e.j41(0,"span",32),e.EFF(1,"= "),e.k0s())}function gt(t,s){if(1&t&&(e.j41(0,"span",33),e.nrm(1,"fa-icon",34),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Ct(t,s){if(1&t&&e.nrm(0,"span",35),2&t){const n=e.XpG();e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function yt(t,s){if(1&t&&(e.j41(0,"mat-option",36),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(e.bMT(2,2,n))}}function bt(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.invoiceError)}}function Ft(t,s){if(1&t&&(e.j41(0,"div",37),e.nrm(1,"fa-icon",38),e.DNE(2,bt,2,1,"span",39),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.invoiceError)}}let xt=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.store=a,this.decimalPipe=l,this.commonService=p,this.actions=m,this.faExclamationTriangle=x.zpE,this.convertedCurrency=null,this.memo="",this.isAmp=!1,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=c.md,this.timeUnitEnum=c.F7,this.timeUnits=c.SY,this.selTimeUnit=c.F7.SECS,this.invoiceError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(i=>i.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===i.payload.action&&(this.invoiceError=i.payload.message,i.payload.status===c.wn.ERROR&&(this.invoiceError=i.payload.message),i.payload.status===c.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(i){this.invoiceError="";let o=0;o=this.expiry?this.selTimeUnit!==c.F7.SECS?this.commonService.convertTime(this.expiry,this.selTimeUnit,c.F7.SECS):this.expiry:c.It,this.store.dispatch((0,T.VK)({payload:{uiMessage:c.MZ.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:o,is_amp:this.isAmp,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.isAmp=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=c.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onTimeUnitChange(i){this.expiry&&this.selTimeUnit!==i.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,i.value)),this.selTimeUnit=i.value}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(L.il),e.rXU(_.QX),e.rXU($.h),e.rXU(K.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-create-invoices"]],standalone:!1,decls:55,vars:20,consts:[["addInvoiceForm","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","name","memo",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start end"],["matInput","","type","number","name","invoiceValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxFlex","24","fxLayoutAlign","start end"],["matInput","","type","number","name","expiry",3,"ngModelChange","step","min","ngModel"],["name","timeUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"ml-2"],["fxFlex","49","fxLayoutAlign","start start"],["color","primary","name","private",3,"ngModelChange","ngModel"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["color","primary","name","amp",3,"ngModelChange","ngModel"],["matTooltip","Atomic multipath payment invoice","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Create Invoice"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0)(11,"mat-form-field",9)(12,"mat-label"),e.EFF(13,"Memo"),e.k0s(),e.j41(14,"input",10),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.memo,m)||(a.memo=m),r.Njj(m)}),e.k0s()(),e.j41(15,"mat-form-field",11)(16,"mat-label"),e.EFF(17,"Amount"),e.k0s(),e.j41(18,"input",12),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.invoiceValue,m)||(a.invoiceValue=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onInvoiceValueChange())}),e.k0s(),e.j41(19,"span",13),e.EFF(20,"Sats "),e.k0s(),e.j41(21,"mat-hint",14),e.DNE(22,ft,2,0,"span",15)(23,gt,2,1,"span",16)(24,Ct,1,1,"span",17),e.EFF(25),e.k0s()(),e.j41(26,"mat-form-field",18)(27,"mat-label"),e.EFF(28,"Expiry"),e.k0s(),e.j41(29,"input",19),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.expiry,m)||(a.expiry=m),r.Njj(m)}),e.k0s(),e.j41(30,"span",13),e.EFF(31),e.nI1(32,"titlecase"),e.k0s()(),e.j41(33,"mat-form-field",18)(34,"mat-label"),e.EFF(35,"Time Unit"),e.k0s(),e.j41(36,"mat-select",20),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.onTimeUnitChange(m))}),e.DNE(37,yt,3,4,"mat-option",21),e.k0s()(),e.j41(38,"div",22)(39,"div",23)(40,"mat-slide-toggle",24),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.private,m)||(a.private=m),r.Njj(m)}),e.EFF(41,"Private Routing Hints"),e.k0s(),e.j41(42,"mat-icon",25),e.EFF(43,"info_outline"),e.k0s()(),e.j41(44,"div",23)(45,"mat-slide-toggle",26),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.isAmp,m)||(a.isAmp=m),r.Njj(m)}),e.EFF(46,"AMP Invoice"),e.k0s(),e.j41(47,"mat-icon",27),e.EFF(48,"info_outline"),e.k0s()()(),e.DNE(49,Ft,3,2,"div",28),e.j41(50,"div",29)(51,"button",30),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(52,"Clear Field"),e.k0s(),e.j41(53,"button",31),e.bIt("click",function(){r.eBV(l);const m=e.sdS(10);return r.Njj(a.onAddInvoice(m))}),e.EFF(54,"Create Invoice"),e.k0s()()()()()()}2&o&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(8),e.R50("ngModel",a.memo),e.R7$(4),e.Y8G("step",100)("min",1),e.R50("ngModel",a.invoiceValue),e.R7$(4),e.Y8G("ngIf",""!==a.invoiceValueHint),e.R7$(),e.Y8G("ngIf",a.convertedCurrency&&"FA"===a.convertedCurrency.iconType&&""!==a.invoiceValueHint),e.R7$(),e.Y8G("ngIf",a.convertedCurrency&&"SVG"===a.convertedCurrency.iconType&&""!==a.invoiceValueHint),e.R7$(),e.SpI(" ",a.invoiceValueHint," "),e.R7$(4),e.Y8G("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1),e.R50("ngModel",a.expiry),e.R7$(2),e.SpI("",e.bMT(32,18,a.selTimeUnit)," "),e.R7$(5),e.Y8G("value",a.selTimeUnit),e.R7$(),e.Y8G("ngForOf",a.timeUnits),e.R7$(3),e.R50("ngModel",a.private),e.R7$(5),e.R50("ngModel",a.isAmp),e.R7$(4),e.Y8G("ngIf",""!==a.invoiceError))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.VZ,d.vS,d.cV,O.aY,Y.tx,N.$z,k.m2,k.MM,oe.An,M.fg,C.rl,C.nJ,C.MV,C.yw,f.DJ,f.sA,f.UI,E.VO,X.wT,he.sG,ee.oV,te.N,ae.V,_.PV],encapsulation:2}))}return t(),s})();var vt=y(46391),I=y(11771),J=y(52929),B=y(10497);const Tt=()=>["all"],kt=t=>({"error-border":t}),St=()=>["no_invoice"],ye=t=>({"mr-0":t}),re=t=>({width:t}),Rt=t=>({"display-none":t});function Et(t,s){1&t&&(e.j41(0,"span",19),e.EFF(1,"= "),e.k0s())}function It(t,s){if(1&t&&(e.j41(0,"span",20),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Lt(t,s){if(1&t&&e.nrm(0,"span",22),2&t){const n=e.XpG(2);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function wt(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",6,0)(2,"mat-form-field",7)(3,"mat-label"),e.EFF(4,"Memo"),e.k0s(),e.j41(5,"input",8),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.memo,o)||(a.memo=o),r.Njj(o)}),e.k0s()(),e.j41(6,"mat-form-field",9)(7,"mat-label"),e.EFF(8,"Amount"),e.k0s(),e.j41(9,"input",10),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.invoiceValue,o)||(a.invoiceValue=o),r.Njj(o)}),e.bIt("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onInvoiceValueChange())}),e.k0s(),e.j41(10,"span",11),e.EFF(11,"Sats "),e.k0s(),e.j41(12,"mat-hint",12),e.DNE(13,Et,2,0,"span",13)(14,It,2,1,"span",14)(15,Lt,1,1,"span",15),e.EFF(16),e.k0s()(),e.j41(17,"div",16)(18,"button",17),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(19,"Clear Field"),e.k0s(),e.j41(20,"button",18),e.bIt("click",function(){r.eBV(n);const o=e.sdS(1),a=e.XpG();return r.Njj(a.onAddInvoice(o))}),e.EFF(21,"Create Invoice"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.R50("ngModel",n.memo),e.R7$(4),e.Y8G("step",100)("min",1),e.R50("ngModel",n.invoiceValue),e.R7$(4),e.Y8G("ngIf",""!==n.invoiceValueHint),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.invoiceValueHint),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.invoiceValueHint),e.R7$(),e.SpI(" ",n.invoiceValueHint," ")}}function jt(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",23)(1,"button",24),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.openCreateInvoiceModal())}),e.EFF(2,"Create Invoice"),e.k0s()()}}function Gt(t,s){if(1&t&&(e.j41(0,"mat-option",72),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Dt(t,s){1&t&&e.nrm(0,"mat-progress-bar",73)}function Nt(t,s){1&t&&e.nrm(0,"th",74)}function Pt(t,s){if(1&t&&e.nrm(0,"span",80),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function $t(t,s){if(1&t&&e.nrm(0,"span",81),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function At(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function Mt(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function Bt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Pt,1,3,"span",76)(2,$t,1,3,"span",77)(3,At,1,3,"span",78)(4,Mt,1,3,"span",79),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","OPEN"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","SETTLED"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","ACCEPTED"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","CANCELED"===(null==n?null:n.state))}}function Ot(t,s){1&t&&e.nrm(0,"th",84)}function Vt(t,s){if(1&t&&(e.j41(0,"span",87),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faEyeSlash)}}function Yt(t,s){if(1&t&&(e.j41(0,"span",88),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faEye)}}function Xt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Vt,2,1,"span",85)(2,Yt,2,1,"span",86),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.private),e.R7$(),e.Y8G("ngIf",!n.private)}}function Ut(t,s){1&t&&e.nrm(0,"th",89)}function Ht(t,s){if(1&t&&(e.j41(0,"span",92),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faArrowsTurnToDots)}}function qt(t,s){if(1&t&&(e.j41(0,"span",93),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faArrowsTurnRight)}}function zt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Ht,2,1,"span",90)(2,qt,2,1,"span",91),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.is_keysend),e.R7$(),e.Y8G("ngIf",!n.is_keysend)}}function Jt(t,s){1&t&&e.nrm(0,"th",94)}function Qt(t,s){if(1&t&&(e.j41(0,"span",97),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faMoneyBill1)}}function Wt(t,s){if(1&t&&(e.j41(0,"span",98),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faBurst)}}function Zt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Qt,2,1,"span",95)(2,Wt,2,1,"span",96),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",!n.is_amp),e.R7$(),e.Y8G("ngIf",n.is_amp)}}function Kt(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Date Created"),e.k0s())}function en(t,s){if(1&t&&(e.j41(0,"td",75),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,1e3*(null==n?null:n.creation_date),"dd/MMM/y HH:mm"))}}function tn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Date Settled"),e.k0s())}function nn(t,s){if(1&t&&(e.j41(0,"td",75),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(0!=+(null==n?null:n.settle_date)?e.i5U(2,1,1e3*+(null==n?null:n.settle_date),"dd/MMM/y HH:mm"):"-")}}function an(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Memo"),e.k0s())}function sn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.memo)}}function on(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Preimage"),e.k0s())}function ln(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.r_preimage)}}function rn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Preimage Hash"),e.k0s())}function cn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.r_hash)}}function pn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Payment Address"),e.k0s())}function mn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_addr)}}function un(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Payment Request"),e.k0s())}function dn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request)}}function hn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Description Hash"),e.k0s())}function _n(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash)}}function fn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Expiry"),e.k0s())}function gn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.expiry)," ")}}function Cn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"CLTV Expiry"),e.k0s())}function yn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.cltv_expiry)," ")}}function bn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Add Index"),e.k0s())}function Fn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.add_index)," ")}}function xn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Settle Index"),e.k0s())}function vn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.settle_index)," ")}}function Tn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Amount (Sats)"),e.k0s())}function kn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.value)," ")}}function Sn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Amount Settled (Sats)"),e.k0s())}function Rn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.amt_paid_sat)," ")}}function En(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",104)(1,"div",105)(2,"mat-select",106),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",107),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function In(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",108)(1,"div",105)(2,"mat-select",109),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",107),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onInvoiceClick(o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",107),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onRefreshInvoice(o))}),e.EFF(7,"Refresh"),e.k0s()()()()}}function Ln(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No invoice available."),e.k0s())}function wn(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting invoices..."),e.k0s())}function jn(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Gn(t,s){if(1&t&&(e.j41(0,"td",110),e.DNE(1,Ln,2,0,"p",111)(2,wn,2,0,"p",111)(3,jn,2,1,"p",111),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Dn(t,s){if(1&t&&e.nrm(0,"tr",112),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,Rt,(null==n.invoices?null:n.invoices.data)&&(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)>0))}}function Nn(t,s){1&t&&e.nrm(0,"tr",113)}function Pn(t,s){1&t&&e.nrm(0,"tr",114)}function $n(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",25)(1,"div",26)(2,"div",27),e.nrm(3,"fa-icon",28),e.j41(4,"span",29),e.EFF(5,"Invoices History"),e.k0s()(),e.j41(6,"div",30)(7,"mat-form-field",31)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",32),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,Gt,2,2,"mat-option",33),e.k0s()()(),e.j41(13,"mat-form-field",31)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",34),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()(),e.j41(17,"div",35),e.DNE(18,Dt,1,0,"mat-progress-bar",36),e.j41(19,"table",37,1),e.qex(21,38),e.DNE(22,Nt,1,0,"th",39)(23,Bt,5,4,"td",40),e.bVm(),e.qex(24,41),e.DNE(25,Ot,1,0,"th",42)(26,Xt,3,2,"td",40),e.bVm(),e.qex(27,43),e.DNE(28,Ut,1,0,"th",44)(29,zt,3,2,"td",40),e.bVm(),e.qex(30,45),e.DNE(31,Jt,1,0,"th",46)(32,Zt,3,2,"td",40),e.bVm(),e.qex(33,47),e.DNE(34,Kt,2,0,"th",48)(35,en,3,4,"td",40),e.bVm(),e.qex(36,49),e.DNE(37,tn,2,0,"th",48)(38,nn,3,4,"td",40),e.bVm(),e.qex(39,50),e.DNE(40,an,2,0,"th",48)(41,sn,4,4,"td",40),e.bVm(),e.qex(42,51),e.DNE(43,on,2,0,"th",48)(44,ln,4,4,"td",40),e.bVm(),e.qex(45,52),e.DNE(46,rn,2,0,"th",48)(47,cn,4,4,"td",40),e.bVm(),e.qex(48,53),e.DNE(49,pn,2,0,"th",48)(50,mn,4,4,"td",40),e.bVm(),e.qex(51,54),e.DNE(52,un,2,0,"th",48)(53,dn,4,4,"td",40),e.bVm(),e.qex(54,55),e.DNE(55,hn,2,0,"th",48)(56,_n,4,4,"td",40),e.bVm(),e.qex(57,56),e.DNE(58,fn,2,0,"th",57)(59,gn,4,3,"td",40),e.bVm(),e.qex(60,58),e.DNE(61,Cn,2,0,"th",57)(62,yn,4,3,"td",40),e.bVm(),e.qex(63,59),e.DNE(64,bn,2,0,"th",57)(65,Fn,4,3,"td",40),e.bVm(),e.qex(66,60),e.DNE(67,xn,2,0,"th",57)(68,vn,4,3,"td",40),e.bVm(),e.qex(69,61),e.DNE(70,Tn,2,0,"th",57)(71,kn,4,3,"td",40),e.bVm(),e.qex(72,62),e.DNE(73,Sn,2,0,"th",57)(74,Rn,4,3,"td",40),e.bVm(),e.qex(75,63),e.DNE(76,En,6,0,"th",64)(77,In,8,0,"td",65),e.bVm(),e.qex(78,66),e.DNE(79,Gn,4,3,"td",67),e.bVm(),e.DNE(80,Dn,1,3,"tr",68)(81,Nn,1,0,"tr",69)(82,Pn,1,0,"tr",70),e.k0s(),e.j41(83,"mat-paginator",71),e.bIt("page",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPageChange(o))}),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("icon",n.faHistory),e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,Tt).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter),e.R7$(2),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.invoices)("ngClass",e.eq3(17,kt,""!==n.errorMessage)),e.R7$(61),e.Y8G("matFooterRowDef",e.lJ4(19,St)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("length",n.totalInvoices)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Ve=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.logger=i,this.store=o,this.decimalPipe=a,this.commonService=l,this.datePipe=p,this.actions=m,this.camelCaseWithReplace=v,this.calledFrom="transactions",this.faEye=x.pS3,this.faEyeSlash=x.k6j,this.faHistory=x.Int,this.faArrowsTurnToDots=x.If6,this.faArrowsTurnRight=x.peG,this.faBurst=x.M29,this.faMoneyBill1=x.Ccf,this.convertedCurrency=null,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:c.md,sortBy:"creation_date",sortOrder:c.oi.DESCENDING},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.invoices=new u.I6([]),this.information={},this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=0,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.rN).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalInvoices=i.listInvoices.total_invoices||0,this.firstOffset=+(i.listInvoices.first_index_offset||-1),this.lastOffset=+(i.listInvoices.last_index_offset||-1),this.invoicesData=i.listInvoices.invoices||[],this.invoicesData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoicesData),this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,U.p)(i=>i.type===c.QP.SET_LOOKUP_LND||i.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===c.QP.SET_LOOKUP_LND&&this.invoicesData&&this.sort&&this.paginator&&i.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(i.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(i){const o=this.expiry?this.expiry:c.It;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,T.VK)({payload:{uiMessage:c.MZ.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:o,is_amp:!1,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(i){this.store.dispatch((0,I.xO)({payload:{data:{invoice:i,newlyAdded:!1,component:vt.H}}}))}onRefreshInvoice(i){i&&i.r_hash&&this.store.dispatch((0,T.Yi)({payload:{openSnackBar:!0,paymentHash:Buffer.from(i.r_hash.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}}))}updateInvoicesData(i){this.invoicesData=this.invoicesData?.map(o=>o.r_hash===i.r_hash?i:o)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.invoices.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.creation_date?this.datePipe.transform(new Date(1e3*i.creation_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+(i.settle_date?this.datePipe.transform(new Date(1e3*i.settle_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"creation_date":case"settle_date":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"private":a=i?.private?"private":"public";break;case"is_keysend":a=i?.is_keysend?"keysend invoices":"non keysend invoices";break;case"is_amp":a=i?.is_amp?"atomic multi path payment":"non atomic payment";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"is_keysend"===this.selFilterBy||"is_amp"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadInvoicesTable(i){this.invoices=new u.I6(i?[...i]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}onPageChange(i){let o=!0,a=this.lastOffset;this.pageSize=i.pageSize,0===i.pageIndex?(o=!0,a=0):i.previousPageIndex&&i.pageIndexi.previousPageIndex&&i.length>(i.pageIndex+1)*i.pageSize?(o=!0,a=this.firstOffset):i.length<=(i.pageIndex+1)*i.pageSize&&(o=!1,a=0),this.store.dispatch((0,T.Do)({payload:{num_max_invoices:i.pageSize,index_offset:a,reversed:o}}))}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[5])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,I.xO)({payload:{data:{pageSize:this.pageSize,component:xt}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(_.QX),e.rXU($.h),e.rXU(_.vh),e.rXU(K.En),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-invoices"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Invoices")}])],decls:4,vars:3,consts:[["addInvoiceForm","ngForm"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start"],["matInput","","tabindex","1","name","memo",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","2","name","invValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private",4,"matHeaderCellDef"],["matColumnDef","is_keysend"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Keysend",4,"matHeaderCellDef"],["matColumnDef","is_amp"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","AMP",4,"matHeaderCellDef"],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","settle_date"],["matColumnDef","memo"],["matColumnDef","r_preimage"],["matColumnDef","r_hash"],["matColumnDef","payment_addr"],["matColumnDef","payment_request"],["matColumnDef","description_hash"],["matColumnDef","expiry"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cltv_expiry"],["matColumnDef","add_index"],["matColumnDef","settle_index"],["matColumnDef","value"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","6",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"page","length","pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot grey","matTooltip","Open","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["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","Canceled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Open","matTooltipPosition","right",1,"dot","grey",3,"ngClass"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Canceled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private"],["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"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Keysend"],["class","mr-1","matTooltip","Keysend Invoices","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Non Keysend Invoices","matTooltipPosition","right",4,"ngIf"],["matTooltip","Keysend Invoices","matTooltipPosition","right",1,"mr-1"],["matTooltip","Non Keysend Invoices","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","AMP"],["class","mr-1","matTooltip","Non Atomic Payment","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Atomic Multi Path Payment","matTooltipPosition","right",4,"ngIf"],["matTooltip","Non Atomic Payment","matTooltipPosition","right",1,"mr-1"],["matTooltip","Atomic Multi Path Payment","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"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","6"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",2),e.DNE(1,wt,22,8,"form",3)(2,jt,3,0,"div",4)(3,$n,84,20,"div",5),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf","home"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.qT,d.me,d.Q0,d.BC,d.cb,d.VZ,d.vS,d.cV,O.aY,N.$z,M.fg,C.rl,C.nJ,C.MV,C.yw,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,ae.V,_.QX,_.vh],styles:[".mat-column-state[_ngcontent-%COMP%], .mat-column-private[_ngcontent-%COMP%], .mat-column-is_keysend[_ngcontent-%COMP%], .mat-column-is_amp[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return t(),s})();var W=y(96697),Z=y(51534),q=y(9454),ce=y(22628);const An=["paymentReq"];function Mn(t,s){if(1&t&&(e.j41(0,"span",36),e.nrm(1,"fa-icon",37),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Bn(t,s){if(1&t&&e.nrm(0,"span",38),2&t){const n=e.XpG(2);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function On(t,s){if(1&t&&(e.j41(0,"mat-hint",33),e.EFF(1),e.DNE(2,Mn,2,1,"span",34)(3,Bn,1,1,"span",35),e.EFF(4),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.paymentDecodedHintPre," "),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.SpI(" ",n.paymentDecodedHintPost," ")}}function Vn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment request is required."),e.k0s())}function Yn(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.paymentDecodedHint)}}function Xn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment amount is required."),e.k0s())}function Un(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",6)(1,"mat-label"),e.EFF(2,"Amount (Sats)"),e.k0s(),e.j41(3,"input",39,4),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.paymentAmount,o)||(a.paymentAmount=o),r.Njj(o)}),e.bIt("change",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onAmountChange(o))}),e.k0s(),e.j41(5,"mat-hint"),e.EFF(6,"It is a zero amount invoice, enter amount to be paid."),e.k0s(),e.DNE(7,Xn,2,0,"mat-error",16),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.R50("ngModel",n.paymentAmount),e.R7$(4),e.Y8G("ngIf",!n.paymentAmount)}}function Hn(t,s){if(1&t&&(e.j41(0,"mat-option",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",null==n?null:n.name," ")}}function qn(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.selFeeLimitType?null:n.selFeeLimitType.placeholder," is required.")}}function zn(t,s){if(1&t&&(e.j41(0,"mat-option",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh((null==n?null:n.remote_alias)||(null==n?null:n.chan_id))}}function Jn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Channel not found in the list."),e.k0s())}function Qn(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.paymentError)}}function Wn(t,s){if(1&t&&(e.j41(0,"div",41),e.nrm(1,"fa-icon",42),e.DNE(2,Qn,2,1,"span",16),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.paymentError)}}let Zn=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.dialogRef=i,this.store=o,this.logger=a,this.commonService=l,this.decimalPipe=p,this.actions=m,this.dataService=v,this.faExclamationTriangle=x.zpE,this.convertedCurrency=null,this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new d.hs,this.isAmp=!1,this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.feeLimitTypes=c.nv,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(a=>{this.selNode=a}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1])).subscribe(a=>{this.activeChannels=a.channels&&a.channels.length?a.channels?.filter(l=>l.active):[],this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(a)}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(a=>a.type===c.QP.UPDATE_API_CALL_STATUS_LND||a.type===c.QP.SEND_PAYMENT_STATUS_LND)).subscribe(a=>{a.type===c.QP.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),a.type===c.QP.UPDATE_API_CALL_STATUS_LND&&a.payload.status===c.wn.ERROR&&"SendPayment"===a.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=a.payload.message)});let i="",o="";this.activeChannels=this.activeChannels.sort((a,l)=>(i=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():l.chan_id?l.chan_id.toLowerCase():"",io?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,g.Q)(this.unSubs[3])).subscribe(a=>{"string"==typeof a&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels&&this.activeChannels.length?this.activeChannels?.filter(i=>0===(i.remote_alias?i.remote_alias.toLowerCase():i.chan_id?i.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&(i.local_balance||0)>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)):[]}displayFn(i){return i&&i.remote_alias?i.remote_alias:i&&i.chan_id?i.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const i=this.activeChannels&&this.activeChannels.length?this.activeChannels?.filter(o=>{const a=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"";return a.length===this.selectedChannelCtrl.value.length&&0===a.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")}):[];i&&i.length>0?(this.selectedChannelCtrl.setValue(i[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){if(this.selFeeLimitType!==this.feeLimitTypes[0]&&!this.feeLimit)return!0;if(this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis){this.zeroAmtInvoice=!1;const i={uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:this.isAmp,outgoing_chan_ids:this.selectedChannelCtrl.value?.chan_id?[this.selectedChannelCtrl.value.chan_id]:void 0,fee_limit_sat:(0,c.C6)(this.selFeeLimitType.id,this.feeLimit,+this.paymentDecoded.num_satoshis||0),fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:i}))}else{this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount?.toString()||"";const i={uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:this.isAmp,amt:this.paymentAmount||0,outgoing_chan_ids:this.selectedChannelCtrl.value?.chan_id?[this.selectedChannelCtrl.value.chan_id]:void 0,fee_limit_sat:(0,c.C6)(this.selFeeLimitType.id,this.feeLimit,this.paymentAmount||0),fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:i}))}}onAmountChange(i){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(i){this.paymentRequest=i,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",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.s)(1)).subscribe({next:o=>{this.paymentDecoded=o,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"BTC",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[4])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(a.OTHER?a.OTHER:0,c.k.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"),this.paymentDecodedHintPost="")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHintPre="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"),this.paymentDecodedHintPost="")},error:o=>{this.logger.error(o),this.paymentDecodedHintPre="ERROR: "+o.message,this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(i,o){if(i&&!o){const a=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==a?" | First Outgoing Channel: "+a:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.isAmp=!1,this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(L.il),e.rXU(D.gP),e.rXU($.h),e.rXU(_.QX),e.rXU(K.En),e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(o,a){if(1&o&&e.GBs(An,5),2&o){let l;e.mGM(l=e.lsd())&&(a.paymentReq=l.first)}},standalone:!1,decls:53,vars:22,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["fLmt","ngModel"],["auto","matAutocomplete"],["paymentAmt","ngModel"],["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 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"],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","27","fxLayoutAlign","start end"],["tabindex","5",3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","33"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModelChange","step","min","disabled","ngModel"],["fxLayout","column","fxFlex","37","fxLayoutAlign","start end"],["type","text","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],["fxFlex","25","tabindex","8","color","primary","name","isAmp",3,"ngModelChange","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",3,"click"],["mat-button","","id","sendBtn","color","primary","tabindex","10",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["matInput","","name","amount","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),e.EFF(5,"Send Payment"),e.k0s()(),e.j41(6,"button",10),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",11)(9,"form",12,0)(11,"mat-form-field",13)(12,"mat-label"),e.EFF(13,"Payment Request"),e.k0s(),e.j41(14,"textarea",14,1),e.bIt("ngModelChange",function(m){return r.eBV(l),r.Njj(a.onPaymentRequestEntry(m))})("matTextareaAutosize",function(){return r.eBV(l),r.Njj(!0)}),e.k0s(),e.DNE(16,On,5,4,"mat-hint",15)(17,Vn,2,0,"mat-error",16)(18,Yn,2,1,"mat-error",16),e.k0s(),e.DNE(19,Un,8,2,"mat-form-field",17),e.j41(20,"mat-expansion-panel",18),e.bIt("closed",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!0,!1))})("opened",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!1,!1))}),e.j41(21,"mat-expansion-panel-header")(22,"mat-panel-title")(23,"span"),e.EFF(24),e.k0s()()(),e.j41(25,"div",19)(26,"mat-form-field",20)(27,"mat-label"),e.EFF(28,"Fee Limits"),e.k0s(),e.j41(29,"mat-select",21),e.mxI("valueChange",function(m){return r.eBV(l),e.DH7(a.selFeeLimitType,m)||(a.selFeeLimitType=m),r.Njj(m)}),e.DNE(30,Hn,2,2,"mat-option",22),e.k0s()(),e.j41(31,"mat-form-field",23)(32,"mat-label"),e.EFF(33),e.k0s(),e.j41(34,"input",24,2),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.feeLimit,m)||(a.feeLimit=m),r.Njj(m)}),e.k0s(),e.DNE(36,qn,2,1,"mat-error",16),e.k0s(),e.j41(37,"mat-form-field",25)(38,"mat-label"),e.EFF(39,"First Outgoing Channel"),e.k0s(),e.nrm(40,"input",26),e.j41(41,"mat-autocomplete",27,3),e.bIt("optionSelected",function(){return r.eBV(l),r.Njj(a.onSelectedChannelChanged())}),e.DNE(43,zn,2,2,"mat-option",22),e.k0s(),e.DNE(44,Jn,2,0,"mat-error",16),e.k0s(),e.j41(45,"mat-slide-toggle",28),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.isAmp,m)||(a.isAmp=m),r.Njj(m)}),e.EFF(46,"AMP Payment"),e.k0s()()(),e.DNE(47,Wn,3,2,"div",29),e.j41(48,"div",30)(49,"button",31),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(50,"Clear Fields"),e.k0s(),e.j41(51,"button",32),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onSendPayment())}),e.EFF(52,"Send Payment"),e.k0s()()()()()()}if(2&o){const l=e.sdS(15),p=e.sdS(42);e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(8),e.Y8G("ngModel",a.paymentRequest),e.R7$(2),e.Y8G("ngIf",a.paymentRequest&&""!==a.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",!a.paymentRequest),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.decodeError),e.R7$(),e.Y8G("ngIf",a.zeroAmtInvoice),e.R7$(5),e.JRh(a.advancedTitle),e.R7$(5),e.R50("value",a.selFeeLimitType),e.R7$(),e.Y8G("ngForOf",a.feeLimitTypes),e.R7$(3),e.JRh(null==a.selFeeLimitType?null:a.selFeeLimitType.placeholder),e.R7$(),e.Y8G("step",1)("min",0)("disabled",a.selFeeLimitType===a.feeLimitTypes[0]),e.R50("ngModel",a.feeLimit),e.R7$(2),e.Y8G("ngIf",a.selFeeLimitType!==a.feeLimitTypes[0]&&!a.feeLimit),e.R7$(4),e.Y8G("formControl",a.selectedChannelCtrl)("matAutocomplete",p),e.R7$(),e.Y8G("displayWith",a.displayFn),e.R7$(2),e.Y8G("ngForOf",a.filteredMinAmtActvChannels),e.R7$(),e.Y8G("ngIf",null==a.selectedChannelCtrl.errors?null:a.selectedChannelCtrl.errors.notfound),e.R7$(),e.R50("ngModel",a.isAmp),e.R7$(2),e.Y8G("ngIf",""!==a.paymentError)}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,d.l_,O.aY,Y.tx,N.$z,k.m2,k.MM,q.GK,q.Z2,q.WN,M.fg,C.rl,C.nJ,C.MV,C.TL,f.DJ,f.sA,f.UI,E.VO,X.wT,he.sG,ce.$3,ce.pN,te.N,ae.V],encapsulation:2}))}return t(),s})();var _e=y(37541);const Kn=["sendPaymentForm"],ei=()=>["all"],ti=t=>({"error-border":t}),ni=()=>["no_payment"],pe=t=>({"mr-0":t}),se=t=>({width:t}),ii=t=>({"display-none":t});function ai(t,s){if(1&t&&(e.j41(0,"span",18),e.nrm(1,"fa-icon",19),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function si(t,s){if(1&t&&e.nrm(0,"span",20),2&t){const n=e.XpG(3);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function oi(t,s){if(1&t&&(e.j41(0,"mat-hint",15),e.EFF(1),e.DNE(2,ai,2,1,"span",16)(3,si,1,1,"span",17),e.EFF(4),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.paymentDecodedHintPre," "),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.SpI(" ",n.paymentDecodedHintPost," ")}}function li(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment request is required."),e.k0s())}function ri(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",7,0)(2,"mat-form-field",8)(3,"mat-label"),e.EFF(4,"Payment Request"),e.k0s(),e.j41(5,"textarea",9,1),e.bIt("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPaymentRequestEntry(o))})("matTextareaAutosize",function(){return r.eBV(n),r.Njj(!0)}),e.k0s(),e.DNE(7,oi,5,4,"mat-hint",10)(8,li,2,0,"mat-error",11),e.k0s(),e.j41(9,"div",12)(10,"button",13),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(11,"Clear Field"),e.k0s(),e.j41(12,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendPayment())}),e.EFF(13,"Send Payment"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.Y8G("ngModel",n.paymentRequest),e.R7$(2),e.Y8G("ngIf",n.paymentRequest&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",!n.paymentRequest)}}function ci(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",21)(1,"button",22),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.openSendPaymentModal())}),e.EFF(2,"Send Payment"),e.k0s()()}}function pi(t,s){if(1&t&&(e.j41(0,"mat-option",76),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function mi(t,s){1&t&&e.nrm(0,"mat-progress-bar",77)}function ui(t,s){1&t&&e.nrm(0,"th",78)}function di(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function hi(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function _i(t,s){if(1&t&&(e.j41(0,"td",79),e.DNE(1,di,1,3,"span",80)(2,hi,1,3,"span",81),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","SUCCEEDED"===(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==(null==n?null:n.status))}}function fi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Creation Date"),e.k0s())}function gi(t,s){if(1&t&&(e.j41(0,"td",79),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,1e3*(null==n?null:n.creation_date),"dd/MMM/y HH:mm")," ")}}function Ci(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Hash"),e.k0s())}function yi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_hash)}}function bi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Request"),e.k0s())}function Fi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request)}}function xi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Preimage"),e.k0s())}function vi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_preimage)}}function Ti(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Description"),e.k0s())}function ki(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description)}}function Si(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Description Hash"),e.k0s())}function Ri(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash)}}function Ei(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Failure Reason"),e.k0s())}function Ii(t,s){if(1&t&&(e.j41(0,"td",79),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.brH(2,1,null==n?null:n.failure_reason,"failure_reason","_")," ")}}function Li(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Payment Index"),e.k0s())}function wi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.payment_index))}}function ji(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Fee (Sats)"),e.k0s())}function Gi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.fee))}}function Di(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Value (Sats)"),e.k0s())}function Ni(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.value))}}function Pi(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Hops"),e.k0s())}function $i(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh((null==n||null==n.htlcs[0]||null==n.htlcs[0].route||null==n.htlcs[0].route.hops?null:n.htlcs[0].route.hops.length)||0)}}function Ai(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",89)(1,"div",90)(2,"mat-select",91),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",92),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Mi(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",93)(1,"button",94),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onPaymentClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Bi(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No payment available."),e.k0s())}function Oi(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting payments..."),e.k0s())}function Vi(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Yi(t,s){if(1&t&&(e.j41(0,"td",95),e.DNE(1,Bi,2,0,"p",11)(2,Oi,2,0,"p",11)(3,Vi,2,1,"p",11),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Xi(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function Ui(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function Hi(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(5);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function qi(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(5);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function zi(t,s){if(1&t&&(e.j41(0,"span",96),e.DNE(1,Hi,1,3,"span",80)(2,qi,1,3,"span",81),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","SUCCEEDED"===n.status),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==n.status)}}function Ji(t,s){if(1&t&&(e.qex(0),e.DNE(1,zi,3,2,"span",97),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Qi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.DNE(2,Xi,1,3,"span",80)(3,Ui,1,3,"span",81),e.k0s(),e.DNE(4,Ji,2,1,"ng-container",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.Y8G("ngIf","SUCCEEDED"===(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Wi(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,n.attempt_time_ns/1e6,"dd/MMM/y HH:mm")," ")}}function Zi(t,s){if(1&t&&(e.qex(0),e.DNE(1,Wi,3,4,"span",97),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ki(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.EFF(2),e.k0s(),e.DNE(3,Zi,2,1,"ng-container",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" Total Attempts: ",null==n||null==n.htlcs?null:n.htlcs.length," "),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ea(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.k0s()),2&t){const n=s.index;e.R7$(),e.SpI(" HTLC ",n+1," ")}}function ta(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ea,2,1,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function na(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,ta,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_hash),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ia(t,s){1&t&&e.nrm(0,"span",96)}function aa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ia,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function sa(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,aa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function oa(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.preimage," ")}}function la(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,oa,2,1,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ra(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,la,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_preimage),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ca(t,s){1&t&&e.nrm(0,"span",96)}function pa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ca,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ma(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,pa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ua(t,s){1&t&&e.nrm(0,"span",96)}function da(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ua,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ha(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,da,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function _a(t,s){1&t&&e.nrm(0,"span",96)}function fa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,_a,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ga(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.EFF(2),e.nI1(3,"camelcaseWithReplace"),e.k0s(),e.DNE(4,fa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" ",e.brH(3,2,null==n?null:n.failure_reason,"failure_reason","_")," "),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ca(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,n.attempt_id)," ")}}function ya(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ca,3,3,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ba(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,ya,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,2,null==n?null:n.payment_index)),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Fa(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n.route?null:n.route.total_fees,"1.0-0")," ")}}function xa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Fa,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function va(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,xa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.i5U(3,2,null==n?null:n.fee,"1.0-0")),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ta(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n.route?null:n.route.total_amt,"1.0-0")," ")}}function ka(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ta,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Sa(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,ka,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.i5U(3,2,null==n?null:n.value,"1.0-0")),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ra(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,(null==n.route||null==n.route.hops?null:n.route.hops.length)||0,"1.0-0")," ")}}function Ea(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ra,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ia(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2,"-"),e.k0s(),e.DNE(3,Ea,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(3),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function La(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",104)(1,"button",105),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onHTLCClick(o,a))}),e.EFF(2),e.k0s()()}if(2&t){const n=s.index;e.R7$(2),e.SpI("View ",n+1)}}function wa(t,s){if(1&t&&(e.j41(0,"div"),e.DNE(1,La,3,1,"div",103),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ja(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",79)(1,"span",101)(2,"button",102),e.bIt("click",function(){const o=r.eBV(n).$implicit;return r.Njj(o.is_expanded=!(null!=o&&o.is_expanded))}),e.EFF(3),e.k0s()(),e.DNE(4,wa,2,1,"div",11),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(3),e.JRh(null!=n&&n.is_expanded?"Hide":"Show"),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ga(t,s){1&t&&e.nrm(0,"tr",106)}function Da(t,s){if(1&t&&e.nrm(0,"tr",107),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,ii,(null==n.payments?null:n.payments.data)&&(null==n.payments||null==n.payments.data?null:n.payments.data.length)>0))}}function Na(t,s){1&t&&e.nrm(0,"tr",108)}function Pa(t,s){1&t&&e.nrm(0,"tr",106)}function $a(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",23)(1,"div",24)(2,"div",25),e.nrm(3,"fa-icon",26),e.j41(4,"span",27),e.EFF(5,"Payments History"),e.k0s()(),e.j41(6,"div",28)(7,"mat-form-field",29)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",30),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,pi,2,2,"mat-option",31),e.k0s()()(),e.j41(13,"mat-form-field",29)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",32),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()(),e.j41(17,"div",33)(18,"div",34),e.DNE(19,mi,1,0,"mat-progress-bar",35),e.j41(20,"table",36,2),e.qex(22,37),e.DNE(23,ui,1,0,"th",38)(24,_i,3,2,"td",39),e.bVm(),e.qex(25,40),e.DNE(26,fi,2,0,"th",41)(27,gi,3,4,"td",39),e.bVm(),e.qex(28,42),e.DNE(29,Ci,2,0,"th",41)(30,yi,4,4,"td",39),e.bVm(),e.qex(31,43),e.DNE(32,bi,2,0,"th",41)(33,Fi,4,4,"td",39),e.bVm(),e.qex(34,44),e.DNE(35,xi,2,0,"th",41)(36,vi,4,4,"td",39),e.bVm(),e.qex(37,45),e.DNE(38,Ti,2,0,"th",41)(39,ki,4,4,"td",39),e.bVm(),e.qex(40,46),e.DNE(41,Si,2,0,"th",41)(42,Ri,4,4,"td",39),e.bVm(),e.qex(43,47),e.DNE(44,Ei,2,0,"th",41)(45,Ii,3,5,"td",39),e.bVm(),e.qex(46,48),e.DNE(47,Li,2,0,"th",49)(48,wi,4,3,"td",39),e.bVm(),e.qex(49,50),e.DNE(50,ji,2,0,"th",49)(51,Gi,4,3,"td",39),e.bVm(),e.qex(52,51),e.DNE(53,Di,2,0,"th",49)(54,Ni,4,3,"td",39),e.bVm(),e.qex(55,52),e.DNE(56,Pi,2,0,"th",49)(57,$i,3,1,"td",39),e.bVm(),e.qex(58,53),e.DNE(59,Ai,6,0,"th",54)(60,Mi,3,0,"td",55),e.bVm(),e.qex(61,56),e.DNE(62,Yi,4,3,"td",57),e.bVm(),e.qex(63,58),e.DNE(64,Qi,5,3,"td",39),e.bVm(),e.qex(65,59),e.DNE(66,Ki,4,2,"td",39),e.bVm(),e.qex(67,60),e.DNE(68,na,5,5,"td",39),e.bVm(),e.qex(69,61),e.DNE(70,sa,5,5,"td",39),e.bVm(),e.qex(71,62),e.DNE(72,ra,5,5,"td",39),e.bVm(),e.qex(73,63),e.DNE(74,ma,5,5,"td",39),e.bVm(),e.qex(75,64),e.DNE(76,ha,5,5,"td",39),e.bVm(),e.qex(77,65),e.DNE(78,ga,5,6,"td",39),e.bVm(),e.qex(79,66),e.DNE(80,ba,5,4,"td",39),e.bVm(),e.qex(81,67),e.DNE(82,va,5,5,"td",39),e.bVm(),e.qex(83,68),e.DNE(84,Sa,5,5,"td",39),e.bVm(),e.qex(85,69),e.DNE(86,Ia,4,1,"td",39),e.bVm(),e.qex(87,70),e.DNE(88,ja,5,2,"td",39),e.bVm(),e.DNE(89,Ga,1,0,"tr",71)(90,Da,1,3,"tr",72)(91,Na,1,0,"tr",73)(92,Pa,1,0,"tr",74),e.k0s(),e.j41(93,"mat-paginator",75),e.bIt("page",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPageChange(o))}),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("icon",n.faHistory),e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(18,ei).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter),e.R7$(3),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.payments)("ngClass",e.eq3(19,ti,""!==n.errorMessage)),e.R7$(69),e.Y8G("matRowDefColumns",n.htlcColumns)("matRowDefWhen",n.is_group),e.R7$(),e.Y8G("matFooterRowDef",e.lJ4(21,ni)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("length",n.totalPayments)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Ye=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.logger=i,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=p,this.decimalPipe=m,this.datePipe=v,this.camelCaseWithReplace=b,this.calledFrom="transactions",this.faHistory=x.Int,this.convertedCurrency=null,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:c.md,sortBy:"creation_date",sortOrder:c.oi.DESCENDING},this.newlyAddedPayment="",this.information={},this.peers=[],this.payments=new u.I6([]),this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.peers=i.peers}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.htlcColumns=[],this.displayedColumns.map(o=>this.htlcColumns.push("group_"+o)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.KT).pipe((0,g.Q)(this.unSubs[5])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=i.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+(i.listPayments.first_index_offset||-1),this.lastOffset=+(i.listPayments.last_index_offset||-1),this.paymentJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(i)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize))}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.s)(1)).subscribe(i=>{this.paymentDecoded=i,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash||"",this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:c.UN.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:c.UN.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:c.UN.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,W.s)(1)).subscribe(o=>{o&&(this.store.dispatch((0,T.Fd)({payload:{uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:!1,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:c.UN.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:c.UN.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:c.UN.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,W.s)(1)).subscribe(a=>{a&&(this.paymentDecoded.num_satoshis=a[0].inputValue,this.store.dispatch((0,T.Fd)({payload:{uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:!1,amt:a[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,I.xO)({payload:{data:{component:Zn}}}))}onPaymentRequestEntry(i){this.paymentRequest=i,this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.s)(1)).subscribe(o=>{this.paymentDecoded=o,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[6])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,c.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost="")})}onPageChange(i){let o=!0,a=this.lastOffset;this.pageSize=i.pageSize,0===i.pageIndex?(o=!0,a=0):i.pageIndexi.previousPageIndex&&i.length>(i.pageIndex+1)*i.pageSize?(o=!0,a=this.firstOffset):i.length<=(i.pageIndex+1)*i.pageSize&&(o=!1,a=0);const l=i.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(l,l+this.pageSize))}is_group(i,o){return o.htlcs&&o.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(i){const o=this;return new Promise((a,l)=>{const p=o.peers.find(m=>m.pub_key===i.pub_key);p&&p.alias?a("
Channel: "+p.alias.padEnd(20)+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
"):o.dataService.getAliasesFromPubkeys(i.pub_key||"",!1).pipe((0,g.Q)(o.unSubs[7])).subscribe({next:m=>a("
Channel: "+(m.node&&m.node.alias?m.node.alias.padEnd(20):i.pub_key?.substring(0,17)+"...")+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
"),error:m=>a("
Channel: "+(i.pub_key?i.pub_key?.substring(0,17)+"...":"")+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
")})})}onHTLCClick(i,o){o.payment_request&&""!==o.payment_request.trim()?this.dataService.decodePayment(o.payment_request,!1).pipe((0,W.s)(1)).subscribe({next:a=>{setTimeout(()=>{this.showHTLCView(i,o,a)},0)},error:a=>{this.showHTLCView(i,o)}}):this.showHTLCView(i,o)}showHTLCView(i,o,a){i.route&&i.route.hops&&i.route.hops.length?Promise.all(i.route.hops.map(l=>this.getHopDetails(l))).then(l=>{this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"HTLC Information",message:this.prepareData(i,o,a,l),scrollable:i.route&&i.route.hops&&i.route.hops.length>1}}}))}):this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"HTLC Information",message:this.prepareData(i,o,a,[]),scrollable:i.route&&i.route.hops&&i.route.hops.length>1}}}))}prepareData(i,o,a,l){const p=[[{key:"payment_hash",value:o.payment_hash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"preimage",value:i.preimage,title:"Preimage",width:100,type:c.UN.STRING}],[{key:"payment_request",value:o.payment_request,title:"Payment Request",width:100,type:c.UN.STRING}],[{key:"status",value:i.status,title:"Status",width:33,type:c.UN.STRING},{key:"attempt_time_ns",value:+(i.attempt_time_ns||0)/1e9,title:"Attempt Time",width:33,type:c.UN.DATE_TIME},{key:"resolve_time_ns",value:+(i.resolve_time_ns||0)/1e9,title:"Resolve Time",width:34,type:c.UN.DATE_TIME}],[{key:"total_amt",value:i.route?.total_amt,title:"Amount (Sats)",width:33,type:c.UN.NUMBER},{key:"total_fees",value:i.route?.total_fees,title:"Fee (Sats)",width:33,type:c.UN.NUMBER},{key:"total_time_lock",value:i.route?.total_time_lock,title:"Total Time Lock",width:34,type:c.UN.NUMBER}],[{key:"hops",value:l,title:"Hops",width:100,type:c.UN.ARRAY}]];return a&&a.description&&""!==a.description&&p.splice(3,0,[{key:"description",value:a.description,title:"Description",width:100,type:c.UN.STRING}]),p}onPaymentClick(i){if(i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length>0){const o=i.htlcs[0].route.hops?.reduce((a,l)=>l.pub_key&&""===a?l.pub_key:a+","+l.pub_key,"");this.dataService.getAliasesFromPubkeys(o,!0).pipe((0,g.Q)(this.unSubs[8])).subscribe(a=>{this.showPaymentView(i,a?.reduce((l,p)=>""===l?p:l+"\n"+p,""))})}else this.showPaymentView(i,"")}showPaymentView(i,o){const a=[[{key:"payment_hash",value:i.payment_hash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"payment_preimage",value:i.payment_preimage,title:"Payment Preimage",width:100,type:c.UN.STRING}],[{key:"payment_request",value:i.payment_request,title:"Payment Request",width:100,type:c.UN.STRING}],[{key:"status",value:i.status,title:"Status",width:50,type:c.UN.STRING},{key:"creation_date",value:i.creation_date,title:"Creation Date",width:50,type:c.UN.DATE_TIME}],[{key:"value_msat",value:i.value_msat,title:"Value (mSats)",width:50,type:c.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:50,type:c.UN.NUMBER}],[{key:"path",value:o,title:"Path",width:100,type:c.UN.STRING}]];i.payment_request&&""!==i.payment_request.trim()?this.dataService.decodePayment(i.payment_request,!1).pipe((0,W.s)(1)).subscribe(l=>{l&&l.description&&""!==l.description&&a.splice(3,0,[{key:"description",value:l.description,title:"Description",width:100,type:c.UN.STRING}]),setTimeout(()=>{this.openPaymentAlert(a,!!(i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length>1))},0)}):this.openPaymentAlert(a,!1)}openPaymentAlert(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Payment Information",message:i,scrollable:o}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.payments.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.creation_date?this.datePipe.transform(new Date(1e3*i.creation_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"status":case"group_status":a="SUCCEEDED"===i?.status?"succeeded":"failed";break;case"creation_date":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"failure_reason":case"group_failure_reason":a=this.camelCaseWithReplace.transform(i.failure_reason||"","failure_reason","_").trim().toLowerCase();break;case"hops":a=i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length?i.htlcs[0].route.hops.length.toString():"0";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"failure_reason"===this.selFilterBy||"group_failure_reason"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadPaymentsTable(i){this.payments=new u.I6(i?[...i]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(o,a)=>"hops"===a?o.htlcs.length&&o.htlcs[0]&&o.htlcs[0].route&&o.htlcs[0].route.hops&&o.htlcs[0].route.hops.length?o.htlcs[0].route.hops.length:0:o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const i=JSON.parse(JSON.stringify(this.payments.data)),o=i?.reduce((a,l)=>(l.payment_request&&""!==l.payment_request.trim()&&(a=""===a?l.payment_request:a+","+l.payment_request),a),"");this.dataService.decodePayments(o).pipe((0,g.Q)(this.unSubs[9])).subscribe(a=>{let l=0;a.forEach((m,v)=>{if(m){for(;i[v+l].payment_hash!==m.payment_hash;)l+=1;i[v+l].description=m.description}});const p=i?.reduce((m,v)=>m.concat(v),[]);this.commonService.downloadFile(p,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(Z.u),e.rXU(L.il),e.rXU(_e.H),e.rXU(_.QX),e.rXU(_.vh),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-payments"]],viewQuery:function(o,a){if(1&o&&(e.GBs(Kn,5),e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Payments")}])],decls:4,vars:3,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxLayout","column","fxFlex","100"],["matInput","","name","paymentRequest","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","perfectScrollbar","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[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 wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["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,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","payment_hash"],["matColumnDef","payment_request"],["matColumnDef","payment_preimage"],["matColumnDef","description"],["matColumnDef","description_hash"],["matColumnDef","failure_reason"],["matColumnDef","payment_index"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fee"],["matColumnDef","value"],["matColumnDef","hops"],["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_status"],["matColumnDef","group_creation_date"],["matColumnDef","group_payment_hash"],["matColumnDef","group_payment_request"],["matColumnDef","group_payment_preimage"],["matColumnDef","group_description"],["matColumnDef","group_description_hash"],["matColumnDef","group_failure_reason"],["matColumnDef","group_payment_index"],["matColumnDef","group_fee"],["matColumnDef","group_value"],["matColumnDef","group_hops"],["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,"page","length","pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","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"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayout","row",1,"ellipsis-parent","htlc-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["class","htlc-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",3),e.DNE(1,ri,14,3,"form",4)(2,ci,3,0,"div",5)(3,$a,94,22,"div",6),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf","home"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,O.aY,N.$z,M.fg,C.rl,C.nJ,C.MV,C.TL,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.QX,_.vh,J.VD],styles:[".mat-column-status[_ngcontent-%COMP%], .mat-column-group_status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-group_actions[_ngcontent-%COMP%] .htlc-group-head[_ngcontent-%COMP%], .mat-column-group_actions[_ngcontent-%COMP%] .htlc-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-group_actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_status[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type), .mat-column-group_creation_date[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:3rem}.htlc-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.htlc-row-span[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{margin-top:-.3rem;position:absolute}.mat-column-group_creation_date[_ngcontent-%COMP%]{min-width:11rem}"]}))}return t(),s})();const Xe=t=>({backgroundColor:t});function Aa(t,s){if(1&t&&e.nrm(0,"span",8),2&t){const n=e.XpG();e.Y8G("ngStyle",e.eq3(1,Xe,null==n.information?null:n.information.color))}}function Ma(t,s){if(1&t&&(e.j41(0,"div")(1,"h4",1),e.EFF(2,"Color"),e.k0s(),e.j41(3,"div",2),e.nrm(4,"span",9),e.EFF(5),e.nI1(6,"uppercase"),e.k0s()()),2&t){const n=e.XpG();e.R7$(4),e.Y8G("ngStyle",e.eq3(4,Xe,null==n.information?null:n.information.color)),e.R7$(),e.SpI(" ",e.bMT(6,2,null==n.information?null:n.information.color)," ")}}function Ba(t,s){1&t&&e.nrm(0,"span",10)}function Oa(t,s){1&t&&e.nrm(0,"span",11)}function Va(t,s){if(1&t&&(e.j41(0,"span",2),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}let Ue=(()=>{var t;class s{constructor(i){this.commonService=i,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(i=>{this.chains.push(this.commonService.titleCase(i.chain)+" "+this.commonService.titleCase(i.network))}))}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},standalone:!1,features:[e.OA$],decls:19,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-2"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","dot green mr-1","matTooltip","Synced to Chain","matTooltipPosition","right",4,"ngIf"],["class","dot red mr-1","matTooltip","Not Synced to Chain","matTooltipPosition","right",4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"],["matTooltip","Synced to Chain","matTooltipPosition","right",1,"dot","green","mr-1"],["matTooltip","Not Synced to Chain","matTooltipPosition","right",1,"dot","red","mr-1"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div")(2,"h4",1),e.EFF(3,"Alias"),e.k0s(),e.j41(4,"div",2),e.EFF(5),e.DNE(6,Aa,1,3,"span",3),e.k0s()(),e.DNE(7,Ma,7,6,"div",4),e.j41(8,"div")(9,"h4",1),e.EFF(10,"Implementation"),e.k0s(),e.j41(11,"div",2),e.EFF(12),e.k0s()(),e.j41(13,"div")(14,"h4",1),e.EFF(15,"Chain"),e.k0s(),e.DNE(16,Ba,1,0,"span",5)(17,Oa,1,0,"span",6)(18,Va,2,1,"span",7),e.k0s()()),2&o&&(e.R7$(5),e.SpI(" ",null==a.information?null:a.information.alias," "),e.R7$(),e.Y8G("ngIf",!a.showColorFieldSeparately),e.R7$(),e.Y8G("ngIf",a.showColorFieldSeparately),e.R7$(5),e.JRh(null!=a.information&&a.information.lnImplementation||null!=a.information&&a.information.version?(null==a.information?null:a.information.lnImplementation)+" "+(null==a.information?null:a.information.version):""),e.R7$(4),e.Y8G("ngIf",null==a.information?null:a.information.synced_to_chain),e.R7$(),e.Y8G("ngIf",!(null!=a.information&&a.information.synced_to_chain)),e.R7$(),e.Y8G("ngForOf",a.chains))},dependencies:[_.Sq,_.bT,_.B3,f.DJ,f.sA,f.UI,j.eI,ee.oV,_.Pc],encapsulation:2}))}return t(),s})();function Ya(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div")(2,"h4",3),e.EFF(3,"Lightning"),e.k0s(),e.j41(4,"div",4),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.nrm(7,"mat-progress-bar",5),e.k0s(),e.j41(8,"div")(9,"h4",3),e.EFF(10,"On-chain"),e.k0s(),e.j41(11,"div",4),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.nrm(14,"mat-progress-bar",5),e.k0s(),e.j41(15,"div")(16,"h4",3),e.EFF(17,"Total"),e.k0s(),e.j41(18,"div",4),e.EFF(19),e.nI1(20,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.SpI("",e.bMT(6,7,null==n.balances?null:n.balances.lightning)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ((null==n.balances?null:n.balances.lightning)/(null==n.balances?null:n.balances.total)*100)),e.R7$(5),e.SpI("",e.bMT(13,9,null==n.balances?null:n.balances.onchain)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ((null==n.balances?null:n.balances.onchain)/(null==n.balances?null:n.balances.total)*100)),e.R7$(5),e.SpI("",e.bMT(20,11,null==n.balances?null:n.balances.total)," Sats")}}function Xa(t,s){if(1&t&&(e.j41(0,"div",6)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let Ua=(()=>{var t;class s{constructor(){this.balances={onchain:0,lightning:0,total:0}}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["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(o,a){if(1&o&&e.DNE(0,Ya,21,13,"div",1)(1,Xa,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf"," "===a.errorMessage)("ngIfElse",l)}},dependencies:[_.bT,V.HM,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();function Ha(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),e.EFF(4,"Daily"),e.k0s(),e.j41(5,"div",5),e.EFF(6),e.nI1(7,"number"),e.k0s()(),e.j41(8,"div")(9,"h4",4),e.EFF(10,"Weekly"),e.k0s(),e.j41(11,"div",5),e.EFF(12),e.nI1(13,"number"),e.k0s()(),e.j41(14,"div")(15,"h4",4),e.EFF(16,"Monthly"),e.k0s(),e.j41(17,"div",5),e.EFF(18),e.nI1(19,"number"),e.k0s()(),e.j41(20,"div",6),e.nrm(21,"h4",7)(22,"span",5),e.k0s()(),e.j41(23,"div",3)(24,"div")(25,"h4",4),e.EFF(26,"Transactions"),e.k0s(),e.j41(27,"div",5),e.EFF(28),e.nI1(29,"number"),e.k0s()(),e.j41(30,"div")(31,"h4",4),e.EFF(32,"Transactions"),e.k0s(),e.j41(33,"div",5),e.EFF(34),e.nI1(35,"number"),e.k0s()(),e.j41(36,"div")(37,"h4",4),e.EFF(38,"Transactions"),e.k0s(),e.j41(39,"div",5),e.EFF(40),e.nI1(41,"number"),e.k0s()(),e.j41(42,"div",6),e.nrm(43,"h4",7)(44,"span",5),e.k0s()()()),2&t){const n=e.XpG();e.R7$(6),e.SpI("",e.bMT(7,6,null==n.fees?null:n.fees.day_fee_sum)," Sats"),e.R7$(6),e.SpI("",e.bMT(13,8,null==n.fees?null:n.fees.week_fee_sum)," Sats"),e.R7$(6),e.SpI("",e.bMT(19,10,null==n.fees?null:n.fees.month_fee_sum)," Sats"),e.R7$(10),e.JRh(e.bMT(29,12,null==n.fees?null:n.fees.daily_tx_count)),e.R7$(6),e.JRh(e.bMT(35,14,null==n.fees?null:n.fees.weekly_tx_count)),e.R7$(6),e.JRh(e.bMT(41,16,null==n.fees?null:n.fees.monthly_tx_count))}}function qa(t,s){if(1&t&&(e.j41(0,"div",8)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let He=(()=>{var t;class s{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum||0},{name:"Daily ",value:this.fees.day_fee_sum||0}];const o=10**(Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10)-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/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)}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},standalone:!1,features:[e.OA$],decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,Ha,45,18,"div",1)(1,qa,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[_.bT,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();function za(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),e.EFF(4,"Active"),e.k0s(),e.j41(5,"div",5),e.nrm(6,"span",6),e.EFF(7),e.nI1(8,"number"),e.k0s()(),e.j41(9,"div")(10,"h4",4),e.EFF(11,"Pending"),e.k0s(),e.j41(12,"div",5),e.nrm(13,"span",7),e.EFF(14),e.nI1(15,"number"),e.k0s()(),e.j41(16,"div")(17,"h4",4),e.EFF(18,"Inactive"),e.k0s(),e.j41(19,"div",5),e.nrm(20,"span",8),e.EFF(21),e.nI1(22,"number"),e.k0s()(),e.j41(23,"div")(24,"h4",4),e.EFF(25,"Closing"),e.k0s(),e.j41(26,"div",5),e.nrm(27,"span",9),e.EFF(28),e.nI1(29,"number"),e.k0s()()(),e.j41(30,"div",3)(31,"div")(32,"h4",4),e.EFF(33,"Capacity"),e.k0s(),e.j41(34,"div",5),e.EFF(35),e.nI1(36,"number"),e.k0s()(),e.j41(37,"div")(38,"h4",4),e.EFF(39,"Capacity"),e.k0s(),e.j41(40,"div",5),e.EFF(41),e.nI1(42,"number"),e.k0s()(),e.j41(43,"div")(44,"h4",4),e.EFF(45,"Capacity"),e.k0s(),e.j41(46,"div",5),e.EFF(47),e.nI1(48,"number"),e.k0s()(),e.j41(49,"div")(50,"h4",4),e.EFF(51,"Capacity"),e.k0s(),e.j41(52,"div",5),e.EFF(53),e.nI1(54,"number"),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(7),e.JRh(e.bMT(8,8,(null==n.channelsStatus||null==n.channelsStatus.active?null:n.channelsStatus.active.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(15,10,(null==n.channelsStatus||null==n.channelsStatus.pending?null:n.channelsStatus.pending.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(22,12,(null==n.channelsStatus||null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(29,14,(null==n.channelsStatus||null==n.channelsStatus.closing?null:n.channelsStatus.closing.num_channels)||0)),e.R7$(7),e.SpI("",e.bMT(36,16,(null==n.channelsStatus||null==n.channelsStatus.active?null:n.channelsStatus.active.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(42,18,(null==n.channelsStatus||null==n.channelsStatus.pending?null:n.channelsStatus.pending.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(48,20,(null==n.channelsStatus||null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(54,22,(null==n.channelsStatus||null==n.channelsStatus.closing?null:n.channelsStatus.closing.capacity)||0)," Sats")}}function Ja(t,s){if(1&t&&(e.j41(0,"div",10)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let qe=(()=>{var t;class s{constructor(){this.channelsStatus={}}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,za,55,24,"div",1)(1,Ja,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf"," "===a.errorMessage)("ngIfElse",l)}},dependencies:[_.bT,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();var ne=y(71997);const Qa=()=>["../connections/channels/open"],Wa=(t,s)=>({filterColumn:t,filterValue:s});function Za(t,s){if(1&t&&(e.j41(0,"div",19)(1,"a",20),e.EFF(2),e.nI1(3,"slice"),e.k0s(),e.j41(4,"div",6)(5,"mat-hint",21)(6,"strong",8),e.EFF(7,"Local:"),e.k0s(),e.EFF(8),e.nI1(9,"number"),e.k0s(),e.j41(10,"mat-hint",22),e.nrm(11,"fa-icon",23),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.j41(14,"mat-hint",24)(15,"strong",8),e.EFF(16,"Remote:"),e.k0s(),e.EFF(17),e.nI1(18,"number"),e.k0s()(),e.nrm(19,"mat-progress-bar",25),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("matTooltip",e.mNQ(n.remote_alias||n.remote_pubkey))("matTooltipDisabled",e.mNQ((n.remote_alias||n.remote_pubkey).length<26))("routerLink",e.lJ4(24,Qa))("state",e.l_i(25,Wa,n.remote_alias?"remote_alias":"remote_pubkey",n.remote_alias||n.remote_pubkey)),e.R7$(),e.Lme(" ",e.brH(3,14,n.remote_alias||n.remote_pubkey||"",0,24),"",(n.remote_alias||n.remote_pubkey||"").length>25?"...":""," "),e.R7$(6),e.SpI("",e.bMT(9,18,n.local_balance||0)," Sats"),e.R7$(3),e.Y8G("icon",i.faBalanceScale),e.R7$(),e.SpI(" (",e.bMT(13,20,n.balancedness||0),") "),e.R7$(5),e.SpI("",e.bMT(18,22,n.remote_balance||0)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ(n.local_balance&&n.local_balance>0?+n.local_balance/(+n.local_balance+ +n.remote_balance)*100:0))}}function Ka(t,s){if(1&t&&(e.j41(0,"div",17),e.DNE(1,Za,20,28,"div",18),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.allChannels)}}function es(t,s){if(1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"span",5),e.EFF(3,"Total Capacity"),e.k0s(),e.j41(4,"div",6)(5,"mat-hint",7)(6,"strong",8),e.EFF(7,"Local:"),e.k0s(),e.EFF(8),e.nI1(9,"number"),e.k0s(),e.j41(10,"mat-hint",9),e.nrm(11,"fa-icon",10),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.j41(14,"mat-hint",11)(15,"strong",8),e.EFF(16,"Remote:"),e.k0s(),e.EFF(17),e.nI1(18,"number"),e.k0s()(),e.nrm(19,"mat-progress-bar",12),e.k0s(),e.j41(20,"div",13),e.nrm(21,"mat-divider",14),e.k0s(),e.j41(22,"div",15),e.DNE(23,Ka,2,1,"div",16),e.k0s()()),2&t){const n=e.XpG(),i=e.sdS(2);e.R7$(8),e.SpI("",e.bMT(9,8,(null==n.channelBalances?null:n.channelBalances.localBalance)||0)," Sats"),e.R7$(3),e.Y8G("icon",n.faBalanceScale),e.R7$(),e.SpI(" (",e.bMT(13,10,(null==n.channelBalances?null:n.channelBalances.balancedness)||0),") "),e.R7$(5),e.SpI("",e.bMT(18,12,(null==n.channelBalances?null:n.channelBalances.remoteBalance)||0)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ(null!=n.channelBalances&&n.channelBalances.localBalance&&(null==n.channelBalances?null:n.channelBalances.localBalance)>0?+(null==n.channelBalances?null:n.channelBalances.localBalance)/(+(null==n.channelBalances?null:n.channelBalances.localBalance)+ +(null==n.channelBalances?null:n.channelBalances.remoteBalance))*100:0)),e.R7$(4),e.Y8G("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",i)}}function ts(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",26),e.EFF(1," No channels available. "),e.j41(2,"button",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.goToChannels())}),e.EFF(3,"Open Channel"),e.k0s()()}}function ns(t,s){if(1&t&&(e.j41(0,"div",28)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let is=(()=>{var t;class s{constructor(i){this.router=i,this.faBalanceScale=x.GR4,this.faDumbbell=x.VwO,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["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(o,a){if(1&o&&e.DNE(0,es,24,14,"div",2)(1,ts,4,0,"ng-template",null,0,e.C5r)(3,ns,3,1,"ng-template",null,1,e.C5r),2&o){const l=e.sdS(4);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[_.Sq,_.bT,O.aY,N.$z,C.MV,ne.q,V.HM,f.DJ,f.sA,f.UI,ee.oV,B.Ld,ie.Wk,_.P9,_.QX],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}))}return t(),s})();var ze=y(1092),Je=y(4104);const as=(t,s,n)=>({"mb-4":t,"mb-2":s,"mb-1":n}),ss=()=>["../connections/channels/open"],os=(t,s)=>({filterColumn:t,filterValue:s});function ls(t,s){if(1&t&&(e.j41(0,"mat-hint",19)(1,"strong",20),e.EFF(2,"Capacity: "),e.k0s(),e.EFF(3),e.nI1(4,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(3),e.SpI("",e.bMT(4,1,n.remote_balance||0)," Sats")}}function rs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",24),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2).$implicit,a=e.XpG(3);return r.Njj(a.onLoopOut(o))}),e.EFF(1,"Loop Out"),e.k0s()}}function cs(t,s){if(1&t&&(e.j41(0,"div",21)(1,"mat-hint",22)(2,"strong",20),e.EFF(3,"Capacity: "),e.k0s(),e.EFF(4),e.nI1(5,"number"),e.k0s(),e.DNE(6,rs,2,0,"button",23),e.k0s()),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.R7$(4),e.SpI("",e.bMT(5,2,n.local_balance||0)," Sats"),e.R7$(2),e.Y8G("ngIf",i.showLoop)}}function ps(t,s){if(1&t&&e.nrm(0,"mat-progress-bar",25),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.Y8G("value",e.mNQ(i.totalLiquidity>0?(+n.remote_balance||0)/i.totalLiquidity*100:0))}}function ms(t,s){if(1&t&&e.nrm(0,"mat-progress-bar",25),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.Y8G("value",e.mNQ(i.totalLiquidity>0?(+n.local_balance||0)/i.totalLiquidity*100:0))}}function us(t,s){if(1&t&&(e.j41(0,"div",13)(1,"a",14),e.EFF(2),e.nI1(3,"slice"),e.k0s(),e.j41(4,"div",15),e.DNE(5,ls,5,3,"mat-hint",16)(6,cs,7,4,"div",17),e.k0s(),e.DNE(7,ps,1,2,"mat-progress-bar",18)(8,ms,1,2,"mat-progress-bar",18),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("matTooltip",e.mNQ(n.remote_alias||n.remote_pubkey))("matTooltipDisabled",e.mNQ((n.remote_alias||n.remote_pubkey).length<26))("routerLink",e.lJ4(16,ss))("state",e.l_i(17,os,n.remote_alias?"remote_alias":"remote_pubkey",n.remote_alias||n.remote_pubkey)),e.R7$(),e.Lme(" ",e.brH(3,12,n.remote_alias||n.remote_pubkey||"",0,24),"",(n.remote_alias||n.remote_pubkey||"").length>25?"...":""," "),e.R7$(3),e.Y8G("ngIf","In"===i.direction),e.R7$(),e.Y8G("ngIf","Out"===i.direction),e.R7$(),e.Y8G("ngIf","In"===i.direction),e.R7$(),e.Y8G("ngIf","Out"===i.direction)}}function ds(t,s){if(1&t&&(e.j41(0,"div",11),e.DNE(1,us,9,20,"div",12),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.allChannels)}}function hs(t,s){if(1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"span",5),e.EFF(3,"Total Capacity"),e.k0s(),e.j41(4,"mat-hint",6),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.nrm(7,"mat-progress-bar",7),e.k0s(),e.j41(8,"div",8),e.nrm(9,"mat-divider",9),e.k0s(),e.DNE(10,ds,2,1,"div",10),e.k0s()),2&t){const n=e.XpG(),i=e.sdS(2);e.Y8G("ngClass",e.sMw(6,as,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM,n.screenSize===n.screenSizeEnum.MD,n.screenSize===n.screenSizeEnum.LG||n.screenSize===n.screenSizeEnum.XL)),e.R7$(5),e.SpI("",e.bMT(6,4,n.totalLiquidity)," Sats"),e.R7$(5),e.Y8G("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",i)}}function _s(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.goToChannels())}),e.EFF(1,"Open Channel"),e.k0s()}}function fs(t,s){if(1&t&&(e.j41(0,"div",26),e.EFF(1," No channels available. "),e.DNE(2,_s,2,0,"button",27),e.k0s()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngIf","Out"===n.direction)}}function gs(t,s){if(1&t&&(e.j41(0,"div",29)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let Cs=(()=>{var t;class s{constructor(i,o,a,l){this.router=i,this.loopService=o,this.commonService=a,this.store=l,this.targetConf=6,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.showLoop=!(!i?.settings.swapServerUrl||""===i.settings.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(i){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,g.Q)(this.unSubs[1])).subscribe(o=>{this.store.dispatch((0,I.xO)({payload:{minHeight:"56rem",data:{channel:i,minQuote:o[0],maxQuote:o[1],direction:c.C7.LOOP_OUT,component:ze.D}}}))})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix),e.rXU(Je.Q),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","80","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","end center","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","20","fxLayoutAlign","end center","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,hs,11,10,"div",2)(1,fs,3,1,"ng-template",null,0,e.C5r)(3,gs,3,1,"ng-template",null,1,e.C5r),2&o){const l=e.sdS(4);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[_.YU,_.Sq,_.bT,N.$z,C.MV,ne.q,V.HM,f.DJ,f.sA,f.UI,j.PW,ee.oV,B.Ld,ie.Wk,_.P9,_.QX],encapsulation:2}))}return t(),s})();const Qe=t=>({"dashboard-card-content":!0,"error-border":t}),ys=t=>({"p-0":t});function bs(t,s){if(1&t&&(e.j41(0,"button",28)(1,"mat-icon"),e.EFF(2,"more_vert"),e.k0s()()),2&t){e.XpG();const n=e.sdS(11);e.Y8G("matMenuTriggerFor",n)}}function Fs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG().$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function xs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){r.eBV(n);const o=e.XpG(3);return r.Njj(o.onsortChannelsBy())}),e.EFF(1),e.k0s()}if(2&t){const n=e.XpG(3);e.R7$(),e.SpI("Sort By ","Balance Score"===n.sortField?"Capacity":"Balance Score")}}function vs(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function Ts(t,s){if(1&t&&e.nrm(0,"rtl-node-info",31),2&t){const n=e.XpG(3);e.Y8G("information",n.information)("showColorFieldSeparately",!1)}}function ks(t,s){if(1&t&&e.nrm(0,"rtl-balances-info",32),2&t){const n=e.XpG(3);e.Y8G("balances",n.balances)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[2])}}function Ss(t,s){if(1&t&&e.nrm(0,"rtl-channel-capacity-info",33),2&t){const n=e.XpG(3);e.Y8G("sortBy",n.sortField)("channelBalances",n.channelBalances)("allChannels",n.allChannelsCapacity)("errorMessage",n.errorMessages[3])}}function Rs(t,s){if(1&t&&e.nrm(0,"rtl-fee-info",34),2&t){const n=e.XpG(3);e.Y8G("fees",n.fees)("errorMessage",n.errorMessages[1])}}function Es(t,s){if(1&t&&e.nrm(0,"rtl-channel-status-info",35),2&t){const n=e.XpG(3);e.Y8G("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[4])}}function Is(t,s){1&t&&(e.j41(0,"h3"),e.EFF(1,"Error! Unable to find information!"),e.k0s())}function Ls(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",11)(1,"mat-card",12)(2,"mat-card-header")(3,"mat-card-title",13)(4,"div"),e.nrm(5,"fa-icon",14),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.j41(8,"div"),e.DNE(9,bs,3,1,"button",15),e.j41(10,"mat-menu",16,1),e.DNE(12,Fs,2,1,"button",17)(13,xs,2,1,"button",18),e.k0s()()()(),e.j41(14,"mat-card-content",19),e.DNE(15,vs,1,0,"mat-progress-bar",20),e.j41(16,"div",21),e.DNE(17,Ts,1,2,"rtl-node-info",22)(18,ks,1,2,"rtl-balances-info",23)(19,Ss,1,4,"rtl-channel-capacity-info",24)(20,Rs,1,2,"rtl-fee-info",25)(21,Es,1,2,"rtl-channel-status-info",26)(22,Is,2,0,"h3",27),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(5),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(2),e.Y8G("ngIf",n.links[0]),e.R7$(3),e.Y8G("ngForOf",n.goToOptions),e.R7$(),e.Y8G("ngIf","capacity"===n.id),e.R7$(),e.Y8G("fxFlex",e.mNQ("node"===n.id||"balance"===n.id?70:"fee"===n.id||"status"===n.id?78:90))("ngClass",e.eq3(17,Qe,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.ERROR)||"capacity"===n.id&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.ERROR))),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.INITIATED)||"capacity"===n.id&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.INITIATED)),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","balance"),e.R7$(),e.Y8G("ngSwitchCase","capacity"),e.R7$(),e.Y8G("ngSwitchCase","fee"),e.R7$(),e.Y8G("ngSwitchCase","status")}}function ws(t,s){if(1&t&&(e.j41(0,"div",5)(1,"div",6),e.nrm(2,"fa-icon",7),e.j41(3,"span",8),e.EFF(4),e.k0s()(),e.j41(5,"mat-grid-list",9),e.DNE(6,Ls,23,19,"mat-grid-tile",10),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("icon",n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR?n.faFrown:n.faSmile),e.R7$(2),e.JRh(n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.COMPLETED?"Welcome "+n.information.alias+"! Your node is up and running.":n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),e.R7$(),e.Y8G("rowHeight",n.operatorCardHeight),e.R7$(),e.Y8G("ngForOf",n.operatorCards)}}function js(t,s){if(1&t&&(e.j41(0,"button",28)(1,"mat-icon"),e.EFF(2,"more_vert"),e.k0s()()),2&t){e.XpG();const n=e.sdS(9);e.Y8G("matMenuTriggerFor",n)}}function Gs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Ds(t,s){if(1&t&&(e.j41(0,"mat-card-header")(1,"mat-card-title",13)(2,"div"),e.nrm(3,"fa-icon",14),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.j41(6,"div"),e.DNE(7,js,3,1,"button",15),e.j41(8,"mat-menu",16,2),e.DNE(10,Gs,2,1,"button",17),e.k0s()()()()),2&t){const n=e.XpG().$implicit;e.R7$(3),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(2),e.Y8G("ngIf",n.links[0]),e.R7$(3),e.Y8G("ngForOf",n.goToOptions)}}function Ns(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function Ps(t,s){if(1&t&&e.nrm(0,"rtl-node-info",46),2&t){const n=e.XpG(3);e.Y8G("information",n.information)}}function $s(t,s){if(1&t&&e.nrm(0,"rtl-balances-info",32),2&t){const n=e.XpG(3);e.Y8G("balances",n.balances)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[2])}}function As(t,s){if(1&t&&e.nrm(0,"rtl-channel-liquidity-info",47),2&t){const n=e.XpG(3);e.Y8G("totalLiquidity",n.totalInboundLiquidity)("allChannels",n.allInboundChannels)("errorMessage",n.errorMessages[3])}}function Ms(t,s){if(1&t&&e.nrm(0,"rtl-channel-liquidity-info",48),2&t){const n=e.XpG(3);e.Y8G("totalLiquidity",n.totalOutboundLiquidity)("allChannels",n.allOutboundChannels)("errorMessage",n.errorMessages[3])}}function Bs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Os(t,s){if(1&t&&(e.j41(0,"span",49)(1,"mat-tab-group",50)(2,"mat-tab",51),e.nrm(3,"rtl-lightning-invoices",52),e.k0s(),e.j41(4,"mat-tab",53),e.nrm(5,"rtl-lightning-payments",52),e.k0s()(),e.j41(6,"div",54)(7,"button",28)(8,"mat-icon"),e.EFF(9,"more_vert"),e.k0s()(),e.j41(10,"mat-menu",16,3),e.DNE(12,Bs,2,1,"button",17),e.k0s()()()),2&t){const n=e.sdS(11),i=e.XpG().$implicit;e.R7$(7),e.Y8G("matMenuTriggerFor",n),e.R7$(5),e.Y8G("ngForOf",i.goToOptions)}}function Vs(t,s){1&t&&(e.j41(0,"h3"),e.EFF(1,"Error! Unable to find information!"),e.k0s())}function Ys(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",11)(1,"mat-card",38),e.DNE(2,Ds,11,4,"mat-card-header",39),e.j41(3,"mat-card-content",40),e.DNE(4,Ns,1,0,"mat-progress-bar",20),e.j41(5,"div",41),e.DNE(6,Ps,1,1,"rtl-node-info",42)(7,$s,1,2,"rtl-balances-info",23)(8,As,1,3,"rtl-channel-liquidity-info",43)(9,Ms,1,3,"rtl-channel-liquidity-info",44)(10,Os,13,2,"span",45)(11,Vs,2,0,"h3",27),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(),e.Y8G("ngClass",e.eq3(14,ys,"transactions"===n.id)),e.R7$(),e.Y8G("ngIf","transactions"!==n.id),e.R7$(),e.Y8G("fxFlex",e.mNQ("transactions"===n.id?100:"balance"===n.id?70:90))("ngClass",e.eq3(16,Qe,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.ERROR)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.INITIATED)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","balance"),e.R7$(),e.Y8G("ngSwitchCase","inboundLiq"),e.R7$(),e.Y8G("ngSwitchCase","outboundLiq"),e.R7$(),e.Y8G("ngSwitchCase","transactions")}}function Xs(t,s){if(1&t&&(e.j41(0,"div",36),e.nrm(1,"fa-icon",7),e.j41(2,"span",8),e.EFF(3),e.k0s()(),e.j41(4,"mat-grid-list",37),e.DNE(5,Ys,12,18,"mat-grid-tile",10),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faSmile),e.R7$(2),e.SpI("Welcome ",n.information.alias,"! Your node is up and running."),e.R7$(),e.Y8G("rowHeight",n.merchantCardHeight),e.R7$(),e.Y8G("ngForOf",n.merchantCards)}}let Us=(()=>{var t;class s{constructor(i,o,a,l,p){switch(this.logger=i,this.store=o,this.actions=a,this.commonService=l,this.router=p,this.faSmile=Oe.Qpm,this.faFrown=Oe.wB1,this.faAngleDoubleDown=x.WxX,this.faAngleDoubleUp=x.$sC,this.faChartPie=x.W1p,this.faBolt=x.zm_,this.faServer=x.D6w,this.faNetworkWired=x.eGi,this.flgChildInfoUpdated=!1,this.userPersonaEnum=c.HW,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="390px",this.merchantCardHeight="62px",this.sortField="Balance Score",this.screenSizeEnum=c.f7,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case c.f7.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","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:6},{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}];break;case c.f7.SM:case c.f7.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","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}];break;default: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","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(F.gj).pipe((0,g.Q)(this.unSubs[0]),(0,ge.E)(this.store.select(H._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=i.apiCallStatus,this.apiCallStatusNodeInfo.status===c.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=o,this.information=i.information}),this.store.select(F.oR).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessages[1]="",this.apiCallStatusFees=i.apiCallStatus,this.apiCallStatusFees.status===c.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=i.fees}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=i.apiCallStatus,this.apiCallStatusBlockchainBalance.status===c.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message?this.apiCallStatusBlockchainBalance.message:""),this.balances.onchain=i.blockchainBalance.total_balance&&+i.blockchainBalance.total_balance>=0?+i.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=i.apiCallStatus,this.apiCallStatusPendingChannels.status===c.wn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:i.pendingChannelsSummary.open?.num_channels,capacity:i.pendingChannelsSummary.open?.limbo_balance},this.channelsStatus.closing={num_channels:(i.pendingChannelsSummary.closing?.num_channels||0)+(i.pendingChannelsSummary.force_closing?.num_channels||0)+(i.pendingChannelsSummary.waiting_close?.num_channels||0),capacity:i.pendingChannelsSummary.total_limbo_balance}}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.errorMessages[3]="",this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusChannels.status===c.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:"");const o=i.lightningBalance&&i.lightningBalance.local?+i.lightningBalance.local:0,a=i.lightningBalance&&i.lightningBalance.remote?+i.lightningBalance.remote:0;this.channelBalances={localBalance:o,remoteBalance:a,balancedness:+(1-Math.abs((o-a)/(o+a))).toFixed(3)},this.balances.lightning=i.lightningBalance.local||0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=i.channelsSummary.active?.num_channels||0,this.inactiveChannels=i.channelsSummary.inactive?.num_channels||0,this.channelsStatus.active=i.channelsSummary.active,this.channelsStatus.inactive=i.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=i.channels?.filter(p=>!0===p.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels?.filter(p=>p.remote_balance&&p.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels?.filter(p=>p.local_balance&&p.local_balance>0),"local_balance"))),this.allChannels.forEach(p=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +(p.remote_balance||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +(p.local_balance||0)}),this.flgChildInfoUpdated=!!(this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum&&this.fees.month_fee_sum>=0),this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[5]),(0,U.p)(i=>i.type===c.QP.FETCH_FEES_LND||i.type===c.QP.SET_FEES_LND)).subscribe(i=>{i.type===c.QP.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),i.type===c.QP.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(i){"inactive"===i?this.router.navigateByUrl("/lnd/connections",{state:{filterColumn:"active",filterValue:i}}):this.router.navigateByUrl("/lnd/"+i)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((i,o)=>{const a=+(i.local_balance||0)+ +(i.remote_balance||0),l=+(o.local_balance||0)+ +(o.remote_balance||0);return a>l?-1:a{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(K.En),e.rXU($.h),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-home"]],standalone:!1,decls:3,vars:2,consts:[["merchantDashboard",""],["menuOperator","matMenu"],["menuMerchant","matMenu"],["menuTransactions","matMenu"],["fxLayout","column",4,"ngIf","ngIfElse"],["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"],["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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["fxFlex","100",3,"information"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stretch-tabs","false","mat-align-tabs","start","fxLayout","column",1,"dashboard-tabs-group"],["label","Receive"],["calledFrom","home"],["label","Pay"],[1,"underline"]],template:function(o,a){if(1&o&&e.DNE(0,ws,7,4,"div",4)(1,Xs,6,4,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf",(null==a.selNode?null:a.selNode.settings.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",l)}},dependencies:[_.YU,_.Sq,_.bT,_.ux,_.e1,_.fG,O.aY,_t.iY,k.RN,k.m2,k.MM,k.dh,Ce.B_,Ce.NS,oe.An,Se.kk,Se.fb,Se.Cp,V.HM,f.DJ,f.sA,f.UI,j.PW,A.mq,A.T8,Ve,Ye,Ue,Ua,He,qe,is,Cs],encapsulation:2}))}return t(),s})();var Re=y(1975),Ee=y(25837);function Hs(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1,"Channels"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.activeChannels))}}function qs(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1,"Peers"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.activePeers))}}let zs=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.logger=o,this.router=a,this.activePeers=0,this.activeChannels=0,this.faUsers=x.gdJ,this.faChartPie=x.W1p,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 h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i instanceof w.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.selNode=i}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.activePeers=i.peers&&i.peers.length?i.peers.length:0,this.logger.info(i)}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.activeChannels=i.channelsSummary.active?.num_channels||0,this.logger.info(i)}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.balances=[{title:"Total Balance",dataValue:i.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:i.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:i.blockchainBalance.unconfirmed_balance||0}],this.logger.info(i)})}onSelectedTabChange(i){this.router.navigateByUrl("/lnd/connections/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(D.gP),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-connections"]],standalone:!1,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"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["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(o,a){1&o&&(e.j41(0,"div",0),e.nrm(1,"fa-icon",1),e.j41(2,"span",2),e.EFF(3,"On-chain Balance"),e.k0s()(),e.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),e.nrm(7,"rtl-currency-unit-converter",5),e.k0s()()(),e.j41(8,"div",0),e.nrm(9,"fa-icon",1),e.j41(10,"span",2),e.EFF(11,"Connections"),e.k0s()(),e.j41(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),e.mxI("selectedIndexChange",function(p){return e.DH7(a.activeLink,p)||(a.activeLink=p),p}),e.bIt("selectedTabChange",function(p){return a.onSelectedTabChange(p)}),e.j41(16,"mat-tab"),e.DNE(17,Hs,2,2,"ng-template",8),e.k0s(),e.j41(18,"mat-tab"),e.DNE(19,qs,2,2,"ng-template",8),e.k0s()(),e.j41(20,"div",9),e.nrm(21,"router-outlet"),e.k0s()()()()),2&o&&(e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faUsers),e.R7$(6),e.R50("selectedIndex",a.activeLink))},dependencies:[O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,Re.k,A.ES,A.mq,A.T8,Ee.f,w.n3],encapsulation:2}))}return t(),s})();var Ie=y(99172),We=y(96354),Ze=y(60092);const Js=["form"];function Qs(t,s){if(1&t&&(e.j41(0,"mat-option",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(n.alias?n.alias:n.pub_key?n.pub_key:"")}}function Ws(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Peer alias is required."),e.k0s())}function Zs(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Peer not found in the list."),e.k0s())}function Ks(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",38)(1,"mat-label"),e.EFF(2,"Peer Alias"),e.k0s(),e.nrm(3,"input",39),e.j41(4,"mat-autocomplete",40,4),e.bIt("optionSelected",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.DNE(6,Qs,2,2,"mat-option",28),e.nI1(7,"async"),e.k0s(),e.DNE(8,Ws,2,0,"mat-error",20)(9,Zs,2,0,"mat-error",20),e.k0s()}if(2&t){const n=e.sdS(5),i=e.XpG();e.R7$(3),e.Y8G("formControl",i.selectedPeer)("matAutocomplete",n),e.R7$(),e.Y8G("displayWith",i.displayFn),e.R7$(2),e.Y8G("ngForOf",e.bMT(7,6,i.filteredPeers)),e.R7$(2),e.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),e.R7$(),e.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function eo(t,s){1&t&&e.eu8(0)}function to(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function no(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Amount must be less than or equal to ",n.totalBalance,".")}}function io(t,s){if(1&t&&(e.j41(0,"div",42),e.nrm(1,"fa-icon",43),e.j41(2,"span",6)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",44)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function ao(t,s){if(1&t&&(e.j41(0,"mat-option",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function so(t,s){if(1&t&&(e.j41(0,"mat-hint"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Mempool Min: ",n.recommendedFee.minimumFee," (Sats/vByte)")}}function oo(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Target Confirmation Blocks is required."),e.k0s())}function lo(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fee is required."),e.k0s())}function ro(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Lower than min feerate ",n.recommendedFee.minimumFee," in the mempool.")}}function co(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",32)(1,"mat-slide-toggle",45),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.taprootChannel,o)||(a.taprootChannel=o),r.Njj(o)}),e.EFF(2,"Taproot Channel"),e.k0s()()}if(2&t){const n=e.XpG();e.R7$(),e.R50("ngModel",n.taprootChannel)}}function po(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.channelConnectionError)}}function mo(t,s){if(1&t&&(e.j41(0,"div",46),e.nrm(1,"fa-icon",43),e.DNE(2,po,2,1,"span",20),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.channelConnectionError)}}function uo(t,s){if(1&t&&(e.j41(0,"mat-expansion-panel",48)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),e.EFF(4,"Peer: \xa0"),e.k0s(),e.j41(5,"strong",49),e.EFF(6),e.k0s()()(),e.j41(7,"div",13)(8,"div",50)(9,"div",38)(10,"h4",51),e.EFF(11,"Pubkey"),e.k0s(),e.j41(12,"span",52),e.EFF(13),e.k0s()()(),e.nrm(14,"mat-divider",53),e.j41(15,"div",50)(16,"div",54)(17,"h4",51),e.EFF(18,"Address"),e.k0s(),e.j41(19,"span",55),e.EFF(20),e.k0s()(),e.j41(21,"div",54)(22,"h4",51),e.EFF(23,"Inbound"),e.k0s(),e.j41(24,"span",55),e.EFF(25),e.k0s()()()()()),2&t){const n=e.XpG(2);e.R7$(6),e.JRh((null==n.peer?null:n.peer.alias)||(null==n.peer?null:n.peer.address)),e.R7$(7),e.JRh(n.peer.pub_key),e.R7$(7),e.JRh(null==n.peer?null:n.peer.address),e.R7$(5),e.JRh(null!=n.peer&&n.peer.inbound?"True":"False")}}function ho(t,s){if(1&t&&e.DNE(0,uo,26,4,"mat-expansion-panel",47),2&t){const n=e.XpG();e.Y8G("ngIf",n.peer)}}let Ke=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.logger=i,this.dialogRef=o,this.data=a,this.store=l,this.actions=p,this.commonService=m,this.dataService=v,this.selectedPeer=new d.hs,this.amount=new d.hs,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.isTaprootAvailable=!1,this.taprootChannel=!1,this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=c.XG,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}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.isTaprootAvailable=this.commonService.isVersionCompatible(this.information.version,"0.17.0")):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[],this.isTaprootAvailable=!1),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(a=>{this.selNode=a,this.isPrivate=!!a?.settings.unannouncedChannels}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,U.p)(a=>a.type===c.QP.UPDATE_API_CALL_STATUS_LND||a.type===c.QP.FETCH_CHANNELS_LND)).subscribe(a=>{a.type===c.QP.UPDATE_API_CALL_STATUS_LND&&a.payload.status===c.wn.ERROR&&"SaveNewChannel"===a.payload.action&&(this.channelConnectionError=a.payload.message),a.type===c.QP.FETCH_CHANNELS_LND&&this.dialogRef.close()});let i="",o="";this.sortedPeers=this.peers.sort((a,l)=>(i=a.alias?a.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",o=l.alias?l.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",io?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,g.Q)(this.unSubs[2]),(0,Ie.Z)(""),(0,We.T)(a=>"string"==typeof a?a:a.alias?a.alias:a.pub_key),(0,We.T)(a=>a?this.filterPeers(a):this.sortedPeers.slice()))}filterPeers(i){return this.sortedPeers?.filter(o=>0===o.alias?.toLowerCase().indexOf(i?i.toLowerCase():""))}displayFn(i){return i&&i.alias?i.alias:i&&i.pub_key?i.pub_key:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const i=this.peers?.filter(o=>o.alias?.length===this.selectedPeer.value.length&&0===o.alias?.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===i.length&&i[0].pub_key&&(this.selectedPubkey=i[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!this.selNode?.settings.unannouncedChannels,this.taprootChannel=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue||"2"===this.selTransType&&this.recommendedFee.minimumFee>+this.transTypeValue)return!0;this.store.dispatch((0,T.vL)({payload:{selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed,commitmentType:this.taprootChannel?5:null}}))}onAdvancedPanelToggle(i){this.advancedTitle=i?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Taproot Channel: "+(this.taprootChannel?"Yes":"No")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}onSelTransTypeChanged(i){this.transTypeValue="",i.value===this.transTypes[2].id&&this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[3])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(L.il),e.rXU(K.En),e.rXU($.h),e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-open-channel"]],viewQuery:function(o,a){if(1&o&&e.GBs(Js,7),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first)}},standalone:!1,decls:66,vars:30,consts:[["form","ngForm"],["amt","ngModel"],["transTypeVal","ngModel"],["peerDetailsExpansionBlock",""],["auto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start end"],["matInput","","type","number","required","","name","amnt",3,"ngModelChange","step","min","max","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["color","primary","name","isPrivate",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","column","fxFlex","49"],[3,"valueChange","selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","name","transTpValue",3,"ngModelChange","required","disabled","step","min","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-2"],["fxFlex","50","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","50","fxLayoutAlign","start center"],["color","primary","name","spendUnconfirmed",3,"ngModelChange","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit"],["fxFlex","100"],["type","text","aria-label","Peers","matInput","","required","",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["color","primary","name","taprootChannel",3,"ngModelChange","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayout","row"],["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(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),e.EFF(5),e.k0s()(),e.j41(6,"button",10),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",11)(9,"form",12,0),e.bIt("submit",function(){return r.eBV(l),r.Njj(a.onOpenChannel())})("reset",function(){return r.eBV(l),r.Njj(a.resetData())}),e.j41(11,"div",13),e.DNE(12,Ks,10,8,"mat-form-field",14),e.k0s(),e.DNE(13,eo,1,0,"ng-container",15),e.j41(14,"div",13)(15,"div",16)(16,"mat-form-field",17)(17,"mat-label"),e.EFF(18,"Amount"),e.k0s(),e.j41(19,"input",18,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.fundingAmount,m)||(a.fundingAmount=m),r.Njj(m)}),e.k0s(),e.j41(21,"mat-hint"),e.EFF(22),e.nI1(23,"number"),e.k0s(),e.j41(24,"span",19),e.EFF(25," Sats "),e.k0s(),e.DNE(26,to,2,0,"mat-error",20)(27,no,2,1,"mat-error",20),e.k0s(),e.j41(28,"div",21)(29,"mat-slide-toggle",22),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.isPrivate,m)||(a.isPrivate=m),r.Njj(m)}),e.EFF(30,"Private Channel"),e.k0s()()(),e.j41(31,"mat-expansion-panel",23),e.bIt("closed",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!0))})("opened",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!1))}),e.j41(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"span"),e.EFF(35),e.k0s()()(),e.j41(36,"div",24),e.DNE(37,io,16,6,"div",25),e.j41(38,"div",16)(39,"mat-form-field",26)(40,"mat-label"),e.EFF(41,"Transaction Type"),e.k0s(),e.j41(42,"mat-select",27),e.mxI("valueChange",function(m){return r.eBV(l),e.DH7(a.selTransType,m)||(a.selTransType=m),r.Njj(m)}),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.onSelTransTypeChanged(m))}),e.DNE(43,ao,2,2,"mat-option",28),e.k0s()(),e.j41(44,"mat-form-field",26)(45,"mat-label"),e.EFF(46),e.k0s(),e.j41(47,"input",29,2),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.transTypeValue,m)||(a.transTypeValue=m),r.Njj(m)}),e.k0s(),e.DNE(49,so,2,1,"mat-hint",20)(50,oo,2,0,"mat-error",20)(51,lo,2,0,"mat-error",20)(52,ro,2,1,"mat-error",20),e.k0s()(),e.j41(53,"div",30),e.DNE(54,co,3,1,"div",31),e.j41(55,"div",32)(56,"mat-slide-toggle",33),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.spendUnconfirmed,m)||(a.spendUnconfirmed=m),r.Njj(m)}),e.EFF(57,"Spend Unconfirmed Output"),e.k0s()()()()()(),e.DNE(58,mo,3,2,"div",34),e.j41(59,"div",35)(60,"button",36),e.EFF(61,"Clear Fields"),e.k0s(),e.j41(62,"button",37),e.EFF(63,"Open Channel"),e.k0s()()()()()(),e.DNE(64,ho,1,1,"ng-template",null,3,e.C5r)}if(2&o){const l=e.sdS(20),p=e.sdS(65);e.R7$(5),e.JRh(a.alertTitle),e.R7$(7),e.Y8G("ngIf",!a.peer&&a.peers&&a.peers.length>0),e.R7$(),e.Y8G("ngTemplateOutlet",p),e.R7$(6),e.Y8G("step",1e3)("min",1)("max",a.totalBalance),e.R50("ngModel",a.fundingAmount),e.R7$(3),e.SpI("(Remaining: ",e.bMT(23,28,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),")"),e.R7$(4),e.Y8G("ngIf",null==l.errors?null:l.errors.required),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.max),e.R7$(2),e.R50("ngModel",a.isPrivate),e.R7$(6),e.JRh(a.advancedTitle),e.R7$(2),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(5),e.R50("value",a.selTransType),e.R7$(),e.Y8G("ngForOf",a.transTypes),e.R7$(3),e.JRh("0"===a.selTransType?"Default":"1"===a.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)"),e.R7$(),e.Y8G("required","0"!==a.selTransType)("disabled","0"===a.selTransType)("step",1)("min","2"===a.selTransType?a.recommendedFee.minimumFee:0),e.R50("ngModel",a.transTypeValue),e.R7$(2),e.Y8G("ngIf","2"===a.selTransType),e.R7$(),e.Y8G("ngIf","1"===a.selTransType&&!a.transTypeValue),e.R7$(),e.Y8G("ngIf","2"===a.selTransType&&!a.transTypeValue),e.R7$(),e.Y8G("ngIf","2"===a.selTransType&&a.transTypeValue&&+a.transTypeValue{var t;class s{constructor(i,o,a,l,p,m,v,b,S){this.dialogRef=i,this.data=o,this.store=a,this.lndEffects=l,this.formBuilder=p,this.actions=m,this.logger=v,this.commonService=b,this.dataService=S,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.peerAddress="",this.totalBalance=0,this.transTypes=c.XG,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.isTaprootAvailable=!1,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.totalBalance=this.data.message?.balance||0,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[d.k0.required]],peerAddress:[this.data.message?.peer?.pub_key?this.data.message?.peer?.pub_key+(this.data.message?.peer?.address?"@"+this.data.message?.peer?.address:""):"",[d.k0.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[d.k0.required,d.k0.min(1),d.k0.max(this.totalBalance)]],isPrivate:[!!this.selNode?.settings.unannouncedChannels],selTransType:[c.XG[0].id],transTypeValue:[{value:"",disabled:!0}],taprootChannel:[!1],spendUnconfirmed:[!1],hiddenAmount:["",[d.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(F.gj).pipe((0,g.Q)(this.unSubs[0]),(0,ge.E)(this.store.select(H._c))).subscribe(([o,a])=>{this.selNode=a,this.channelFormGroup.controls.isPrivate.setValue(!!a?.settings.unannouncedChannels),this.isTaprootAvailable=this.commonService.isVersionCompatible(o.information.version,"0.17.0")}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,g.Q)(this.unSubs[1])).subscribe(o=>{o===c.XG[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([d.k0.required]))}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(o=>o.type===c.QP.NEWLY_ADDED_PEER_LND||o.type===c.QP.FETCH_PENDING_CHANNELS_LND||o.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(o=>{o.type===c.QP.NEWLY_ADDED_PEER_LND&&(this.logger.info(o.payload),this.flgEditable=!1,this.newlyAddedPeer=o.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),o.type===c.QP.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),o.type===c.QP.UPDATE_API_CALL_STATUS_LND&&o.payload.status===c.wn.ERROR&&("SaveNewPeer"===o.payload.action||"FetchGraphNode"===o.payload.action?this.peerConnectionError=o.payload.message:"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const i=this.peerFormGroup.controls.peerAddress.value.search("@");let o="",a="";i>-1?(o=this.peerFormGroup.controls.peerAddress.value.substring(0,i),a=this.peerFormGroup.controls.peerAddress.value.substring(i+1),this.connectPeerWithParams(o,a)):(this.store.dispatch((0,T.t0)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,W.s)(1)).subscribe(l=>{setTimeout(()=>{a=l.node.addresses&&l.node.addresses.length&&l.node.addresses.length>0&&l.node.addresses[0].addr?l.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,a)},0)}))}connectPeerWithParams(i,o){this.store.dispatch((0,T.sq)({payload:{pubkey:i,host:o,perm:!1}}))}onOpenChannel(){return"2"===this.channelFormGroup.controls.selTransType.value&&this.recommendedFee.minimumFee>this.channelFormGroup.controls.transTypeValue.value?(this.channelFormGroup.controls.transTypeValue.setErrors({minimum:!0}),!0):!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||(this.channelConnectionError="",void this.store.dispatch((0,T.vL)({payload:{selectedPeerPubkey:this.newlyAddedPeer?.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value,commitmentType:this.channelFormGroup.controls.taprootChannel.value?5:null}})))}onSelTransTypeChanged(i){this.channelFormGroup.controls.transTypeValue.setValue(""),i.value===this.transTypes[2].id&&this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[3])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(i){switch(i.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: "+this.newlyAddedPeer?.alias:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer?.alias:"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}i.selectedIndex{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(L.il),e.rXU(me.L),e.rXU(d.ze),e.rXU(K.En),e.rXU(D.gP),e.rXU($.h),e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-connect-peer"]],viewQuery:function(o,a){if(1&o&&(e.GBs(_o,5),e.GBs(fo,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:70,vars:31,consts:[["stepper",""],["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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","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"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","50"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"step","min","required"],["fxFlex","50","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["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,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["tabindex","6","color","primary","formControlName","taprootChannel","name","taprootChannel",1,"ps-2"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Connect to a new peer"),e.k0s()(),e.j41(6,"button",6),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.stepSelectionChanged(m))}),e.j41(12,"mat-step",10)(13,"form",11),e.DNE(14,go,1,1,"ng-template",12),e.j41(15,"mat-form-field",13)(16,"mat-label"),e.EFF(17,"Lightning Address (pubkey OR pubkey@ip:port)"),e.k0s(),e.nrm(18,"input",14),e.DNE(19,Co,2,0,"mat-error",15),e.k0s(),e.DNE(20,yo,4,2,"div",16),e.j41(21,"div",17)(22,"button",18),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onConnectPeer())}),e.EFF(23),e.k0s()()()(),e.j41(24,"mat-step",10)(25,"form",19),e.DNE(26,bo,1,1,"ng-template",20),e.j41(27,"div",21),e.DNE(28,Fo,16,6,"div",22),e.j41(29,"div",23)(30,"mat-form-field",24)(31,"mat-label"),e.EFF(32,"Amount"),e.k0s(),e.nrm(33,"input",25),e.j41(34,"mat-hint"),e.EFF(35),e.nI1(36,"number"),e.k0s(),e.j41(37,"span",26),e.EFF(38," Sats "),e.k0s(),e.DNE(39,xo,2,0,"mat-error",15)(40,vo,2,0,"mat-error",15)(41,To,2,1,"mat-error",15),e.k0s(),e.j41(42,"div",27)(43,"mat-slide-toggle",28),e.EFF(44,"Private Channel"),e.k0s()()(),e.j41(45,"div",29)(46,"mat-form-field",30)(47,"mat-label"),e.EFF(48,"Transaction Type"),e.k0s(),e.j41(49,"mat-select",31),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.onSelTransTypeChanged(m))}),e.DNE(50,ko,2,2,"mat-option",32),e.k0s()(),e.j41(51,"mat-form-field",33)(52,"mat-label"),e.EFF(53),e.k0s(),e.nrm(54,"input",34),e.DNE(55,So,2,1,"mat-hint",15)(56,Ro,2,1,"mat-error",15)(57,Eo,2,1,"mat-error",15),e.k0s()(),e.j41(58,"div",29),e.DNE(59,Io,3,0,"div",35),e.j41(60,"div",36)(61,"mat-slide-toggle",37),e.EFF(62,"Spend Unconfirmed Output"),e.k0s()()()(),e.DNE(63,Lo,4,2,"div",16),e.j41(64,"div",17)(65,"button",38),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onOpenChannel())}),e.EFF(66),e.k0s()()()()(),e.j41(67,"div",39)(68,"button",40),e.EFF(69),e.k0s()()()()()()}2&o&&(e.R7$(10),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",a.peerFormGroup)("editable",a.flgEditable),e.R7$(),e.Y8G("formGroup",a.peerFormGroup),e.R7$(6),e.Y8G("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),e.R7$(),e.Y8G("ngIf",""!==a.peerConnectionError),e.R7$(3),e.JRh(""!==a.peerConnectionError?"Retry":"Add Peer"),e.R7$(),e.Y8G("stepControl",a.channelFormGroup)("editable",a.flgEditable),e.R7$(),e.Y8G("formGroup",a.channelFormGroup),e.R7$(3),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(5),e.Y8G("step",1e3),e.R7$(2),e.SpI("Remaining: ",e.bMT(36,29,a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0))),e.R7$(4),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),e.R7$(9),e.Y8G("ngForOf",a.transTypes),e.R7$(3),e.JRh("0"===a.channelFormGroup.controls.selTransType.value?"Default":"1"===a.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"),e.R7$(),e.Y8G("step",1)("min","2"===a.channelFormGroup.controls.selTransType.value?a.recommendedFee.minimumFee:0)("required","0"!==a.channelFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf","2"===a.channelFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.required),e.R7$(),e.Y8G("ngIf",a.channelFormGroup.controls.transTypeValue.value&&(null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.minimum)),e.R7$(2),e.Y8G("ngIf",a.isTaprootAvailable),e.R7$(4),e.Y8G("ngIf",""!==a.channelConnectionError),e.R7$(3),e.JRh(""!==a.channelConnectionError?"Retry":"Open Channel"),e.R7$(2),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(null!=a.newlyAddedPeer&&a.newlyAddedPeer.pub_key?"Do It Later":"Close"))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.j4,d.JD,O.aY,Y.tx,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.MV,C.TL,C.yw,f.DJ,f.sA,f.UI,E.VO,X.wT,he.sG,z.V5,z.Ti,z.M6,te.N,ae.V,_.QX],encapsulation:2}))}return t(),s})();const wo=()=>["all"],jo=t=>({"error-border":t}),Go=()=>["no_peer"],Le=t=>({width:t}),Do=t=>({"display-none":t});function No(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Po(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function $o(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Alias"),e.k0s())}function Ao(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Le,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function Mo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Public Key"),e.k0s())}function Bo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Le,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pub_key)}}function Oo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Address"),e.k0s())}function Vo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Le,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.address)}}function Yo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Sync Type"),e.k0s())}function Xo(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,null==n?null:n.sync_type,"sync","_"))}}function Uo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Inbound"),e.k0s())}function Ho(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null!=n&&n.inbound?"Yes":"No")}}function qo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Bytes Sent"),e.k0s())}function zo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.bytes_sent)," ")}}function Jo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Bytes Received"),e.k0s())}function Qo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.bytes_recv)," ")}}function Wo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Sats Sent"),e.k0s())}function Zo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.sat_sent)," ")}}function Ko(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Sats Received"),e.k0s())}function el(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.sat_recv)," ")}}function tl(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Ping Time ("),e.j41(2,"span"),e.EFF(3,"\xb5"),e.k0s(),e.EFF(4,"s)"),e.k0s())}function nl(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.ping_time)," ")}}function il(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",47)(1,"div",48)(2,"mat-select",49),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",50),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function al(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",51)(1,"div",48)(2,"mat-select",49),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",50),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onPeerClick(a,o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",50),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onOpenChannel(o))}),e.EFF(7,"Open Channel"),e.k0s(),e.j41(8,"mat-option",50),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onPeerDetach(o))}),e.EFF(9,"Disconnect"),e.k0s()()()()}}function sl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No connected peer."),e.k0s())}function ol(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting peers..."),e.k0s())}function ll(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function rl(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,sl,2,0,"p",53)(2,ol,2,0,"p",53)(3,ll,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function cl(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,Do,(null==n.peers?null:n.peers.data)&&(null==n.peers||null==n.peers.data?null:n.peers.data.length)>0))}}function pl(t,s){1&t&&e.nrm(0,"tr",55)}function ml(t,s){1&t&&e.nrm(0,"tr",56)}let ul=(()=>{var t;class s{constructor(i,o,a,l,p){this.logger=i,this.store=o,this.rtlEffects=a,this.commonService=l,this.camelCaseWithReplace=p,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.availableBalance=0,this.faUsers=x.gdJ,this.displayedColumns=[],this.peersData=[],this.peers=new u.I6([]),this.information={},this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.information=i}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.availableBalance=i.blockchainBalance.total_balance||0}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=i.peers,this.peersData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPeersTable(this.peersData),this.logger.info(i)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Peer Information",goToFieldValue:i.pub_key,goToName:"Graph lookup",goToLink:"/lnd/graph/lookups",showQRName:"Public Key",showQRField:i.pub_key,message:[[{key:"pub_key",value:i.pub_key,title:"Public Key",width:100}],[{key:"address",value:i.address,title:"Address",width:100}],[{key:"alias",value:i.alias,title:"Alias",width:40},{key:"inbound",value:i.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:i.ping_time,title:"Ping Time (\xb5s)",width:30,type:c.UN.NUMBER}],[{key:"sat_sent",value:i.sat_sent,title:"Satoshis Sent",width:50,type:c.UN.NUMBER},{key:"sat_recv",value:i.sat_recv,title:"Satoshis Received",width:50,type:c.UN.NUMBER}],[{key:"bytes_sent",value:i.bytes_sent,title:"Bytes Sent",width:50,type:c.UN.NUMBER},{key:"bytes_recv",value:i.bytes_recv,title:"Bytes Received",width:50,type:c.UN.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,I.xO)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:et}}}))}onOpenChannel(i){this.store.dispatch((0,I.xO)({payload:{data:{alertTitle:"Open Channel",message:{peer:i,information:this.information,balance:this.availableBalance},component:Ke}}}))}onPeerDetach(i){this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(i.alias?i.alias:i.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[4])).subscribe(a=>{a&&this.store.dispatch((0,T.ed)({payload:{pubkey:i.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.peers.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=JSON.stringify(i).toLowerCase();break;case"sync_type":a=this.camelCaseWithReplace.transform(i.sync_type||"","sync","_").trim().toLowerCase();break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"sync_type"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadPeersTable(i){this.peers=new u.I6(i?[...i]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,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(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(_e.H),e.rXU($.h),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Peers")}])],decls:64,vars:19,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","address"],["matColumnDef","sync_type"],["matColumnDef","inbound"],["matColumnDef","bytes_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","bytes_recv"],["matColumnDef","sat_sent"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["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",""],["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-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"button",3),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onConnectPeer())}),e.EFF(3,"Add Peer"),e.k0s()(),e.j41(4,"div",4)(5,"div",5)(6,"div",6),e.nrm(7,"fa-icon",7),e.j41(8,"span",8),e.EFF(9,"Connected Peers"),e.k0s()(),e.j41(10,"div",9)(11,"mat-form-field",10)(12,"mat-label"),e.EFF(13,"Filter By"),e.k0s(),e.j41(14,"mat-select",11),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(15,"perfect-scrollbar"),e.DNE(16,No,2,2,"mat-option",12),e.k0s()()(),e.j41(17,"mat-form-field",10)(18,"mat-label"),e.EFF(19,"Filter"),e.k0s(),e.j41(20,"input",13),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(21,"div",14),e.DNE(22,Po,1,0,"mat-progress-bar",15),e.j41(23,"table",16,0),e.qex(25,17),e.DNE(26,$o,2,0,"th",18)(27,Ao,4,4,"td",19),e.bVm(),e.qex(28,20),e.DNE(29,Mo,2,0,"th",18)(30,Bo,4,4,"td",19),e.bVm(),e.qex(31,21),e.DNE(32,Oo,2,0,"th",18)(33,Vo,4,4,"td",19),e.bVm(),e.qex(34,22),e.DNE(35,Yo,2,0,"th",18)(36,Xo,3,5,"td",19),e.bVm(),e.qex(37,23),e.DNE(38,Uo,2,0,"th",18)(39,Ho,2,1,"td",19),e.bVm(),e.qex(40,24),e.DNE(41,qo,2,0,"th",25)(42,zo,4,3,"td",19),e.bVm(),e.qex(43,26),e.DNE(44,Jo,2,0,"th",25)(45,Qo,4,3,"td",19),e.bVm(),e.qex(46,27),e.DNE(47,Wo,2,0,"th",25)(48,Zo,4,3,"td",19),e.bVm(),e.qex(49,28),e.DNE(50,Ko,2,0,"th",25)(51,el,4,3,"td",19),e.bVm(),e.qex(52,29),e.DNE(53,tl,5,0,"th",25)(54,nl,4,3,"td",19),e.bVm(),e.qex(55,30),e.DNE(56,il,6,0,"th",31)(57,al,10,0,"td",32),e.bVm(),e.qex(58,33),e.DNE(59,rl,4,3,"td",34),e.bVm(),e.DNE(60,cl,1,3,"tr",35)(61,pl,1,0,"tr",36)(62,ml,1,0,"tr",37),e.k0s()(),e.nrm(63,"mat-paginator",38),e.k0s()()}2&o&&(e.R7$(7),e.Y8G("icon",a.faUsers),e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(15,wo).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.peers)("ngClass",e.eq3(16,jo,""!==a.errorMessage)),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(18,Go)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,O.aY,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX,J.VD],encapsulation:2}))}return t(),s})();function dl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Open"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numOpenChannels))}}function hl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Pending"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numPendingChannels))}}function _l(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Closed"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numClosedChannels))}}function fl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Active HTLCs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numActiveHTLCs))}}let gl=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i instanceof w.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.numOpenChannels=i.channels&&i.channels.length?i.channels.length:0,this.numActiveHTLCs=i.channels?.reduce((o,a)=>o+(a.pending_htlcs&&a.pending_htlcs.length>0?a.pending_htlcs.length:0),0),this.logger.info(i)}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.numPendingChannels=i.pendingChannelsSummary.total_channels?i.pendingChannelsSummary.total_channels:0}),this.store.select(F.Bw).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.numClosedChannels=i.closedChannels&&i.closedChannels.length?i.closedChannels.length:0}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[5])).subscribe(i=>{this.totalBalance=+(i.blockchainBalance.total_balance||0)}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[6])).subscribe(i=>{this.peers=i.peers,this.peers.forEach(o=>{(!o.alias||""===o.alias)&&(o.alias=o.pub_key?.substring(0,20))}),this.logger.info(i)})}onOpenChannel(){this.store.dispatch((0,I.xO)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Ke}}}))}onSelectedTabChange(i){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channels-tables"]],standalone:!1,decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["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(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return a.onOpenChannel()}),e.EFF(3,"Open Channel"),e.k0s()(),e.j41(4,"div",3)(5,"mat-tab-group",4),e.mxI("selectedIndexChange",function(p){return e.DH7(a.activeLink,p)||(a.activeLink=p),p}),e.bIt("selectedTabChange",function(p){return a.onSelectedTabChange(p)}),e.j41(6,"mat-tab"),e.DNE(7,dl,2,2,"ng-template",5),e.k0s(),e.j41(8,"mat-tab"),e.DNE(9,hl,2,2,"ng-template",5),e.k0s(),e.j41(10,"mat-tab"),e.DNE(11,_l,2,2,"ng-template",5),e.k0s(),e.j41(12,"mat-tab"),e.DNE(13,fl,2,2,"ng-template",5),e.k0s()(),e.j41(14,"div",6),e.nrm(15,"router-outlet"),e.k0s()()()),2&o&&(e.R7$(5),e.R50("selectedIndex",a.activeLink))},dependencies:[N.$z,f.DJ,f.sA,f.UI,Re.k,A.ES,A.mq,A.T8,w.n3],encapsulation:2}))}return t(),s})();var le=y(95416),be=y(29157);const Cl=t=>({"xs-scroll-y":t});function yl(t,s){if(1&t){const n=e.RV6();e.j41(0,"fa-icon",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onExplorerClicked())}),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("matTooltip",e.mNQ("Link to "+(null==n.selNode||null==n.selNode.settings?null:n.selNode.settings.blockExplorerUrl)))("icon",n.faUpRightFromSquare)}}function bl(t,s){if(1&t&&(e.j41(0,"div")(1,"div",10)(2,"div",19)(3,"h4",12),e.EFF(4,"Commit Fee"),e.k0s(),e.j41(5,"span",20),e.EFF(6),e.nI1(7,"number"),e.k0s()(),e.j41(8,"div",19)(9,"h4",12),e.EFF(10,"Commit Weight"),e.k0s(),e.j41(11,"span",20),e.EFF(12),e.nI1(13,"number"),e.k0s()(),e.j41(14,"div",19)(15,"h4",12),e.EFF(16,"Fee/KW"),e.k0s(),e.j41(17,"span",20),e.EFF(18),e.nI1(19,"number"),e.k0s()(),e.j41(20,"div",19)(21,"h4",12),e.EFF(22,"Static Remote Key"),e.k0s(),e.j41(23,"span",20),e.EFF(24),e.k0s()()(),e.nrm(25,"mat-divider",15),e.j41(26,"div",10)(27,"div",19)(28,"h4",12),e.EFF(29),e.k0s(),e.j41(30,"span",20),e.EFF(31),e.nI1(32,"number"),e.k0s()(),e.j41(33,"div",19)(34,"h4",12),e.EFF(35),e.k0s(),e.j41(36,"span",20),e.EFF(37),e.nI1(38,"number"),e.k0s()(),e.j41(39,"div",19)(40,"h4",12),e.EFF(41,"Unsettled Balance"),e.k0s(),e.j41(42,"span",20),e.EFF(43),e.nI1(44,"number"),e.k0s()(),e.j41(45,"div",19)(46,"h4",12),e.EFF(47,"CSV Delay"),e.k0s(),e.j41(48,"span",20),e.EFF(49),e.nI1(50,"number"),e.k0s()()(),e.nrm(51,"mat-divider",15),e.j41(52,"div",10)(53,"div",19)(54,"h4",12),e.EFF(55,"Local Reserve (Sats)"),e.k0s(),e.j41(56,"span",20),e.EFF(57),e.nI1(58,"number"),e.k0s()(),e.j41(59,"div",19)(60,"h4",12),e.EFF(61,"Remote Reserve (Sats)"),e.k0s(),e.j41(62,"span",20),e.EFF(63),e.nI1(64,"number"),e.k0s()(),e.j41(65,"div",19)(66,"h4",12),e.EFF(67,"Lifetime (Seconds)"),e.k0s(),e.j41(68,"span",20),e.EFF(69),e.nI1(70,"number"),e.k0s()(),e.j41(71,"div",19)(72,"h4",12),e.EFF(73,"Pending HTLCs"),e.k0s(),e.j41(74,"span",20),e.EFF(75),e.nI1(76,"number"),e.k0s()()(),e.nrm(77,"mat-divider",15),e.k0s()),2&t){const n=e.XpG();e.R7$(6),e.JRh(e.bMT(7,17,n.channel.commit_fee)),e.R7$(6),e.JRh(e.bMT(13,19,n.channel.commit_weight)),e.R7$(6),e.JRh(e.bMT(19,21,n.channel.fee_per_kw)),e.R7$(6),e.JRh(n.channel.static_remote_key?"Yes":"No"),e.R7$(),e.Y8G("inset",!0),e.R7$(4),e.JRh(n.screenSize===n.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),e.R7$(2),e.JRh(e.bMT(32,23,n.channel.total_satoshis_sent)),e.R7$(4),e.JRh(n.screenSize===n.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),e.R7$(2),e.JRh(e.bMT(38,25,n.channel.total_satoshis_received)),e.R7$(6),e.JRh(e.bMT(44,27,n.channel.unsettled_balance)),e.R7$(6),e.JRh(e.bMT(50,29,n.channel.csv_delay)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(58,31,n.channel.local_chan_reserve_sat)),e.R7$(6),e.JRh(e.bMT(64,33,n.channel.remote_chan_reserve_sat)),e.R7$(6),e.JRh(e.bMT(70,35,n.channel.lifetime)),e.R7$(6),e.JRh(e.bMT(76,37,null==n.channel||null==n.channel.pending_htlcs?null:n.channel.pending_htlcs.length)),e.R7$(2),e.Y8G("inset",!0)}}function Fl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Show Advanced"),e.k0s())}function xl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Hide Advanced"),e.k0s())}function vl(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",28),e.bIt("copied",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onCopyChanID(o))}),e.EFF(1,"Copy Channel ID"),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("payload",n.channel.chan_id)}}function Tl(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(1,"OK"),e.k0s()}}let we=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.logger=a,this.commonService=l,this.snackBar=p,this.router=m,this.faReceipt=x.Mf0,this.faUpRightFromSquare=x.k02,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.channel=this.data.channel,this.showCopy=!!this.data.showCopy,this.selNode=this.data.selNode,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(i){this.snackBar.open("Channel ID "+i+" copied."),this.logger.info("Copied Text: "+i)}onExplorerClicked(){this.selNode?.settings?.blockExplorerUrl&&window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+this.channel.channel_point,"_blank")}onGoToLink(i,o){this.router.navigateByUrl("/lnd/graph/lookups",{state:{lookupType:i,lookupValue:o}}),this.onClose()}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU($.h),e.rXU(le.UG),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-information"]],standalone:!1,decls:95,vars:37,consts:[["hideAdvancedText",""],["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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],["tabindex","4","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["tabindex","5",1,"foreground-secondary-text"],["class","ml-1 fa-icon-primary",3,"matTooltip","icon","click",4,"ngIf"],["tabindex","6","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["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"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4),e.nrm(4,"fa-icon",5),e.j41(5,"span",6),e.EFF(6,"Channel Information"),e.k0s()(),e.j41(7,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(8,"X"),e.k0s()(),e.j41(9,"mat-card-content",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"h4",12),e.EFF(14,"Channel ID"),e.k0s(),e.j41(15,"span",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onGoToLink("1",a.channel.chan_id))}),e.EFF(16),e.k0s()(),e.j41(17,"div",11)(18,"h4",12),e.EFF(19,"Peer Alias"),e.k0s(),e.j41(20,"span",14),e.EFF(21),e.k0s()()(),e.nrm(22,"mat-divider",15),e.j41(23,"div",10)(24,"div",2)(25,"h4",12),e.EFF(26,"Channel Point"),e.k0s(),e.j41(27,"span",16),e.EFF(28),e.DNE(29,yl,1,3,"fa-icon",17),e.k0s()()(),e.nrm(30,"mat-divider",15),e.j41(31,"div",10)(32,"div",2)(33,"h4",12),e.EFF(34,"Peer Public Key"),e.k0s(),e.j41(35,"span",18),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onGoToLink("0",a.channel.remote_pubkey))}),e.EFF(36),e.k0s()()(),e.nrm(37,"mat-divider",15),e.j41(38,"div",10)(39,"div",19)(40,"h4",12),e.EFF(41,"Local Balance"),e.k0s(),e.j41(42,"span",20),e.EFF(43),e.nI1(44,"number"),e.k0s()(),e.j41(45,"div",19)(46,"h4",12),e.EFF(47,"Remote Balance"),e.k0s(),e.j41(48,"span",20),e.EFF(49),e.nI1(50,"number"),e.k0s()(),e.j41(51,"div",19)(52,"h4",12),e.EFF(53,"Capacity"),e.k0s(),e.j41(54,"span",20),e.EFF(55),e.nI1(56,"number"),e.k0s()(),e.j41(57,"div",19)(58,"h4",12),e.EFF(59,"Uptime (Seconds)"),e.k0s(),e.j41(60,"span",20),e.EFF(61),e.nI1(62,"number"),e.k0s()()(),e.nrm(63,"mat-divider",15),e.j41(64,"div",10)(65,"div",19)(66,"h4",12),e.EFF(67,"Active"),e.k0s(),e.j41(68,"span",20),e.EFF(69),e.k0s()(),e.j41(70,"div",19)(71,"h4",12),e.EFF(72,"Private"),e.k0s(),e.j41(73,"span",20),e.EFF(74),e.k0s()(),e.j41(75,"div",19)(76,"h4",12),e.EFF(77,"Initiator"),e.k0s(),e.j41(78,"span",20),e.EFF(79),e.k0s()(),e.j41(80,"div",19)(81,"h4",12),e.EFF(82,"Number of Updates"),e.k0s(),e.j41(83,"span",20),e.EFF(84),e.nI1(85,"number"),e.k0s()()(),e.nrm(86,"mat-divider",15),e.DNE(87,bl,78,39,"div",21),e.j41(88,"div",22)(89,"button",23),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onShowAdvanced())}),e.DNE(90,Fl,2,0,"p",24)(91,xl,2,0,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(93,vl,2,1,"button",25)(94,Tl,2,0,"button",26),e.k0s()()()()()}if(2&o){const l=e.sdS(92);e.R7$(4),e.Y8G("icon",a.faReceipt),e.R7$(5),e.Y8G("ngClass",e.eq3(35,Cl,a.screenSize===a.screenSizeEnum.XS)),e.R7$(7),e.SpI(" ",a.channel.chan_id," "),e.R7$(5),e.JRh(a.channel.remote_alias),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.SpI(" ",a.channel.channel_point," "),e.R7$(),e.Y8G("ngIf",null==a.selNode||null==a.selNode.settings?null:a.selNode.settings.blockExplorerUrl),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.SpI(" ",a.channel.remote_pubkey," "),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(44,25,a.channel.local_balance)),e.R7$(6),e.JRh(e.bMT(50,27,a.channel.remote_balance)),e.R7$(6),e.JRh(e.bMT(56,29,a.channel.capacity)),e.R7$(6),e.JRh(e.bMT(62,31,a.channel.uptime)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(a.channel.active?"Yes":"No"),e.R7$(5),e.JRh(a.channel.private?"Yes":"No"),e.R7$(5),e.JRh(a.channel.initiator?"Yes":"No"),e.R7$(5),e.JRh(e.bMT(85,33,a.channel.num_updates)),e.R7$(2),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngIf",a.showAdvanced),e.R7$(3),e.Y8G("ngIf",!a.showAdvanced)("ngIfElse",l),e.R7$(3),e.Y8G("ngIf",a.showCopy),e.R7$(),e.Y8G("ngIf",!a.showCopy)}},dependencies:[_.YU,_.bT,O.aY,N.$z,k.m2,k.MM,ne.q,f.DJ,f.sA,f.UI,j.PW,ee.oV,be.U,te.N,_.QX],encapsulation:2}))}return t(),s})();var je=y(7673),Ge=y(1001),kl=y(16949);const fe=(t,s)=>({"small-svg":t,"large-svg":s});function Sl(t,s){1&t&&e.eu8(0)}function Rl(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",7),e.nrm(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)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),e.k0s(),r.joV(),e.j41(41,"div",47)(42,"mat-card-title"),e.EFF(43,"Circular rebalancing explained."),e.k0s()(),e.j41(44,"div",48)(45,"mat-card-subtitle",49),e.EFF(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function El(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53)(4,"path",54)(5,"path",55)(6,"path",56)(7,"path",57)(8,"path",58)(9,"path",59)(10,"path",60)(11,"path",61)(12,"path",62)(13,"path",63)(14,"path",64)(15,"path",65)(16,"path",66)(17,"path",67)(18,"path",68)(19,"path",69)(20,"path",70)(21,"path",71)(22,"path",72)(23,"path",73)(24,"path",74)(25,"path",75)(26,"path",76)(27,"path",77)(28,"path",78)(29,"path",79)(30,"path",80)(31,"path",81)(32,"path",82)(33,"path",52)(34,"path",53)(35,"path",54)(36,"path",55)(37,"path",56)(38,"path",57)(39,"path",58)(40,"path",59)(41,"path",60)(42,"path",83)(43,"path",84)(44,"path",63)(45,"path",85)(46,"path",86)(47,"path",87)(48,"path",67)(49,"path",68)(50,"path",69)(51,"path",70)(52,"path",71)(53,"path",72)(54,"path",73)(55,"path",74)(56,"path",75)(57,"path",76)(58,"path",77)(59,"path",78)(60,"path",79)(61,"path",80)(62,"path",88)(63,"path",82)(64,"path",89),e.j41(65,"defs")(66,"linearGradient",90),e.nrm(67,"stop",91)(68,"stop",92)(69,"stop",93),e.k0s(),e.j41(70,"linearGradient",94),e.nrm(71,"stop",91)(72,"stop",92)(73,"stop",93),e.k0s(),e.j41(74,"linearGradient",95),e.nrm(75,"stop",91)(76,"stop",92)(77,"stop",93),e.k0s(),e.j41(78,"linearGradient",96),e.nrm(79,"stop",91)(80,"stop",92)(81,"stop",93),e.k0s(),e.j41(82,"linearGradient",97),e.nrm(83,"stop",91)(84,"stop",92)(85,"stop",93),e.k0s(),e.j41(86,"linearGradient",98),e.nrm(87,"stop",91)(88,"stop",92)(89,"stop",93),e.k0s()()(),r.joV(),e.j41(90,"div",47)(91,"mat-card-title"),e.EFF(92,"Step 1: Unbalanced channel"),e.k0s()(),e.j41(93,"div",48)(94,"mat-card-subtitle",49),e.EFF(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Il(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",99),e.nrm(2,"path",100)(3,"path",101)(4,"path",102)(5,"path",103)(6,"path",104)(7,"path",105)(8,"path",106)(9,"path",107)(10,"path",108)(11,"path",109)(12,"path",110)(13,"path",111)(14,"path",112)(15,"path",113)(16,"path",114)(17,"path",52)(18,"path",115)(19,"path",116)(20,"path",117)(21,"path",118)(22,"path",119)(23,"path",120)(24,"path",121)(25,"path",122)(26,"path",83)(27,"path",84)(28,"path",123)(29,"path",124)(30,"path",125)(31,"path",126)(32,"path",67)(33,"path",127)(34,"path",128)(35,"path",129)(36,"path",130)(37,"path",131)(38,"path",132)(39,"path",74)(40,"path",75)(41,"path",133)(42,"path",77)(43,"path",78)(44,"path",79)(45,"path",80)(46,"path",134)(47,"path",135)(48,"path",136),e.j41(49,"defs")(50,"linearGradient",137),e.nrm(51,"stop",91)(52,"stop",92)(53,"stop",93),e.k0s(),e.j41(54,"linearGradient",138),e.nrm(55,"stop",91)(56,"stop",92)(57,"stop",93),e.k0s(),e.j41(58,"linearGradient",139),e.nrm(59,"stop",91)(60,"stop",92)(61,"stop",93),e.k0s()()(),r.joV(),e.j41(62,"div",47)(63,"mat-card-title"),e.EFF(64,"Step 2: Invoice/Payment"),e.k0s()(),e.j41(65,"div",48)(66,"mat-card-subtitle",49),e.EFF(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Ll(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",140),e.nrm(2,"path",141)(3,"path",142)(4,"path",143)(5,"path",144)(6,"path",145)(7,"path",146)(8,"path",147)(9,"path",148)(10,"path",149)(11,"path",150)(12,"path",151)(13,"path",152)(14,"path",153)(15,"path",154)(16,"path",155)(17,"path",156)(18,"path",157)(19,"path",158)(20,"path",159)(21,"path",160)(22,"path",161)(23,"path",162)(24,"path",163)(25,"path",164)(26,"path",163)(27,"path",165)(28,"path",166)(29,"path",167)(30,"path",168)(31,"path",169)(32,"path",170)(33,"path",171)(34,"path",172)(35,"path",173)(36,"path",174)(37,"path",175)(38,"path",176)(39,"path",177)(40,"path",178)(41,"path",179),e.j41(42,"defs")(43,"linearGradient",180),e.nrm(44,"stop",91)(45,"stop",92)(46,"stop",93),e.k0s()()(),r.joV(),e.j41(47,"div",47)(48,"mat-card-title"),e.EFF(49,"Step 3: Rebalance amount"),e.k0s()(),e.j41(50,"div",48)(51,"mat-card-subtitle",49),e.EFF(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function wl(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",140),e.nrm(2,"path",181)(3,"path",143)(4,"path",182)(5,"path",145)(6,"path",146)(7,"path",183)(8,"path",148)(9,"path",184)(10,"path",185)(11,"path",186)(12,"path",187)(13,"path",188)(14,"path",189)(15,"path",190)(16,"path",191)(17,"path",192)(18,"path",158)(19,"path",193)(20,"path",194)(21,"path",179)(22,"path",160)(23,"path",161)(24,"path",195)(25,"path",163)(26,"path",164)(27,"path",163)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",196)(33,"path",170)(34,"path",197)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",198),e.j41(41,"defs")(42,"linearGradient",199),e.nrm(43,"stop",91)(44,"stop",92)(45,"stop",93),e.k0s()()(),r.joV(),e.j41(46,"div",47)(47,"mat-card-title"),e.EFF(48,"Rebalance successful!"),e.k0s()(),e.j41(49,"div",48)(50,"mat-card-subtitle",49),e.EFF(51," Your channel is successfully rebalanced and is able to continue to route payments. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}let jl=(()=>{var t;class s{constructor(i){this.commonService=i,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(i){2===i.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===i.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between starts",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z",1,"fill-color-primary-darker"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z",1,"fill-color-29"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z",1,"fill-color-28"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z",1,"fill-color-29"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z",1,"fill-color-29"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z",1,"fill-color-primary-darker"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z",1,"fill-color-10"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z",1,"fill-color-primary-darker"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z",1,"fill-color-primary-darker"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z",1,"fill-color-17"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z",1,"fill-color-17"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z",1,"fill-color-17"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z",1,"fill-color-19"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z",1,"fill-color-25"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z",1,"fill-color-19"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z",1,"fill-color-19"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z",1,"fill-color-19"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z",1,"fill-color-19"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z",1,"fill-color-19"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z",1,"fill-color-19"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z",1,"fill-color-25"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M42 75H9V91H42V75Z",1,"fill-color-17"],["d","M42 42H9V58H42V42Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z",1,"fill-color-19"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z",1,"fill-color-25"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z",1,"fill-color-19"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z",1,"fill-color-primary-lighter"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z",1,"fill-color-19"],["d","M265 57.3624H357.392V120.307H265V57.3624Z",1,"fill-color-22"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z",1,"fill-color-19"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z",1,"fill-color-19"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z",1,"fill-color-19"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z",1,"fill-color-19"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z",1,"fill-color-19"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z",1,"fill-color-19"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z",1,"fill-color-19"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z",1,"fill-color-25"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z",1,"fill-color-19"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z",1,"fill-color-21"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z",1,"fill-color-primary-darker"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-primary-darker"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-17"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z",1,"fill-color-19"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z",1,"fill-color-25"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z",1,"fill-color-19"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary-lighter"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M122.399 37H32.25V137.616H122.399V37Z",1,"fill-color-10"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z",1,"fill-color-primary-darker"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z",1,"fill-color-primary-darker"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z",1,"fill-color-primary-darker"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M74.5 112H40.5V128H74.5V112Z",1,"fill-color-17"],["d","M74.5 79H40.5V95H74.5V79Z",1,"fill-color-17"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z",1,"fill-color-17"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z",1,"fill-color-17"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z",1,"fill-color-17"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z",1,"fill-color-17"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z",1,"fill-color-17"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z",1,"fill-color-primary-darker"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-primary-darker"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z",1,"fill-color-25"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z",1,"fill-color-21"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z",1,"fill-color-25"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z",1,"fill-color-22"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z",1,"fill-color-21"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z",1,"fill-color-25"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z",1,"fill-color-22"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z",1,"fill-color-21"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z",1,"fill-color-21"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z",1,"fill-color-22"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z",1,"fill-color-22"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z",1,"fill-color-22"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z",1,"fill-color-21"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z",1,"fill-color-17"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M76 112H41V128H76V112Z",1,"fill-color-17"],["d","M70 79H41V95H70V79Z",1,"fill-color-17"],["d","M70 47H41V63H70V47Z",1,"fill-color-17"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z",1,"fill-color-17"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z",1,"fill-color-17"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-17"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z",1,"fill-color-22"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z",1,"fill-color-21"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(o,a){if(1&o&&e.DNE(0,Sl,1,0,"ng-container",5)(1,Rl,47,5,"ng-template",null,0,e.C5r)(3,El,96,5,"ng-template",null,1,e.C5r)(5,Il,68,5,"ng-template",null,2,e.C5r)(7,Ll,53,5,"ng-template",null,3,e.C5r)(9,wl,52,5,"ng-template",null,4,e.C5r),2&o){const l=e.sdS(2),p=e.sdS(4),m=e.sdS(6),v=e.sdS(8),b=e.sdS(10);e.Y8G("ngTemplateOutlet",1===a.stepNumber?l:2===a.stepNumber?p:3===a.stepNumber?m:4===a.stepNumber?v:b)}},dependencies:[_.YU,_.T3,k.Lc,k.dh,f.DJ,f.sA,f.UI,j.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:10%;min-height:10%;max-width:50%;margin:auto}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:50%;margin:auto}"],data:{animation:[kl.k]}}))}return t(),s})();const Gl=["stepper"],Dl=()=>[1,2,3,4,5],Nl=(t,s)=>({"dot-primary":t,"dot-primary-lighter":s});function Pl(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.inputFormLabel)}}function $l(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function Al(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount must be a positive number."),e.k0s())}function Ml(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("Amount must be less than or equal to ",null==n.selChannel?null:n.selChannel.local_balance,".")}}function Bl(t,s){if(1&t&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.Lme("",n.remote_alias," - ",n.chan_id)}}function Ol(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Receive from Peer is required."),e.k0s())}function Vl(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Receive from Peer not found in the list."),e.k0s())}function Yl(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.feeFormLabel)}}function Xl(t,s){if(1&t&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.name," ")}}function Ul(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," is required.")}}function Hl(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," must be a positive number.")}}function ql(t,s){1&t&&e.EFF(0,"Invoice/Payment")}function zl(t,s){1&t&&(e.j41(0,"mat-icon",55),e.EFF(1,"check"),e.k0s())}function Jl(t,s){1&t&&e.nrm(0,"mat-progress-bar",56)}function Ql(t,s){if(1&t&&(e.j41(0,"mat-icon",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(null!=n.paymentStatus&&n.paymentStatus.error?"close":"check")}}function Wl(t,s){1&t&&e.nrm(0,"div",7)}function Zl(t,s){1&t&&e.nrm(0,"mat-progress-bar",56)}function Kl(t,s){if(1&t&&(e.j41(0,"h4",57),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.paymentStatus&&n.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function er(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",58),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onRestart())}),e.EFF(1,"Start Again"),e.k0s()}}function tr(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",7)(1,"mat-card-header",8)(2,"div",9)(3,"div",10)(4,"span",11),e.EFF(5,"Channel Rebalance"),e.k0s()(),e.j41(6,"div",12)(7,"button",13),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.showInfo())}),e.EFF(8,"?"),e.k0s(),e.j41(9,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(10,"X"),e.k0s()()()(),e.j41(11,"mat-card-content",15)(12,"div",7)(13,"div",16)(14,"div",17),e.nrm(15,"fa-icon",18),e.j41(16,"span"),e.EFF(17,"Circular Rebalance is a payment you make to *yourself* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),e.k0s()()(),e.j41(18,"div",19)(19,"p",20)(20,"strong"),e.EFF(21,"Channel Peer:\xa0"),e.k0s(),e.EFF(22),e.nI1(23,"titlecase"),e.k0s(),e.j41(24,"p",20)(25,"strong"),e.EFF(26,"Channel ID:\xa0"),e.k0s(),e.EFF(27),e.k0s()(),e.j41(28,"mat-vertical-stepper",21,3),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.stepSelectionChanged(o))}),e.j41(30,"mat-step",22)(31,"form",23),e.DNE(32,Pl,1,1,"ng-template",24),e.j41(33,"div",25)(34,"mat-form-field",26)(35,"mat-label"),e.EFF(36,"Amount"),e.k0s(),e.nrm(37,"input",27),e.j41(38,"mat-hint"),e.EFF(39),e.k0s(),e.j41(40,"span",28),e.EFF(41,"Sats"),e.k0s(),e.DNE(42,$l,2,0,"mat-error",29)(43,Al,2,0,"mat-error",29)(44,Ml,2,1,"mat-error",29),e.k0s(),e.j41(45,"mat-form-field",30)(46,"mat-label"),e.EFF(47,"Receive from Peer"),e.k0s(),e.j41(48,"input",31),e.bIt("change",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.k0s(),e.j41(49,"mat-autocomplete",32,4),e.bIt("optionSelected",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.DNE(51,Bl,2,3,"mat-option",33),e.nI1(52,"async"),e.k0s(),e.DNE(53,Ol,2,0,"mat-error",29)(54,Vl,2,0,"mat-error",29),e.k0s()(),e.j41(55,"div",34)(56,"button",35),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectFee())}),e.EFF(57,"Select Fee"),e.k0s()()()(),e.j41(58,"mat-step",22)(59,"form",23),e.DNE(60,Yl,1,1,"ng-template",36),e.j41(61,"div",25)(62,"div",25)(63,"mat-form-field",30)(64,"mat-label"),e.EFF(65,"Fee Limits"),e.k0s(),e.j41(66,"mat-select",37),e.DNE(67,Xl,2,2,"mat-option",33),e.k0s()(),e.j41(68,"mat-form-field",26)(69,"mat-label"),e.EFF(70),e.k0s(),e.nrm(71,"input",38),e.DNE(72,Ul,2,1,"mat-error",29)(73,Hl,2,1,"mat-error",29),e.k0s()()(),e.j41(74,"div",34)(75,"button",39),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onRebalance())}),e.EFF(76,"Rebalance"),e.k0s()()()(),e.j41(77,"mat-step",40)(78,"form",23),e.DNE(79,ql,1,0,"ng-template",24),e.j41(80,"div",41)(81,"mat-expansion-panel",42)(82,"mat-expansion-panel-header")(83,"mat-panel-title")(84,"span",43),e.EFF(85),e.DNE(86,zl,2,0,"mat-icon",44),e.k0s()()(),e.j41(87,"div",7)(88,"span",45),e.EFF(89),e.k0s()()(),e.DNE(90,Jl,1,0,"mat-progress-bar",46),e.j41(91,"mat-expansion-panel",47)(92,"mat-expansion-panel-header")(93,"mat-panel-title")(94,"span",43),e.EFF(95),e.DNE(96,Ql,2,1,"mat-icon",44),e.k0s()()(),e.DNE(97,Wl,1,0,"div",48),e.k0s(),e.DNE(98,Zl,1,0,"mat-progress-bar",46),e.k0s(),e.DNE(99,Kl,2,1,"h4",49),e.j41(100,"div",50),e.DNE(101,er,2,0,"button",51),e.k0s()()()(),e.j41(102,"div",52)(103,"button",53),e.EFF(104,"Close"),e.k0s()()()()()}if(2&t){const n=e.sdS(50),i=e.XpG(),o=e.sdS(2);e.Y8G("@opacityAnimation",void 0),e.R7$(15),e.Y8G("icon",i.faInfoCircle),e.R7$(7),e.JRh(e.bMT(23,42,i.selChannel.remote_alias)),e.R7$(5),e.JRh(i.selChannel.chan_id),e.R7$(),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",i.inputFormGroup)("editable",i.flgEditable),e.R7$(),e.Y8G("formGroup",i.inputFormGroup),e.R7$(6),e.Y8G("step",100),e.R7$(2),e.Lme("(Local Bal: ",null==i.selChannel?null:i.selChannel.local_balance,", Remaining: ",(null==i.selChannel?null:i.selChannel.local_balance)-(i.inputFormGroup.controls.rebalanceAmount.value?i.inputFormGroup.controls.rebalanceAmount.value:0),")"),e.R7$(3),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.required),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.min),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.max),e.R7$(4),e.Y8G("matAutocomplete",n),e.R7$(),e.Y8G("displayWith",i.displayFn),e.R7$(2),e.Y8G("ngForOf",e.bMT(52,44,i.filteredActiveChannels)),e.R7$(2),e.Y8G("ngIf",null==i.inputFormGroup.controls.selRebalancePeer.errors?null:i.inputFormGroup.controls.selRebalancePeer.errors.required),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.selRebalancePeer.errors?null:i.inputFormGroup.controls.selRebalancePeer.errors.notfound),e.R7$(4),e.Y8G("stepControl",i.feeFormGroup)("editable",i.flgEditable),e.R7$(),e.Y8G("formGroup",i.feeFormGroup),e.R7$(8),e.Y8G("ngForOf",i.feeLimitTypes),e.R7$(3),e.JRh(i.feeFormGroup.controls.selFeeLimitType.value?i.feeFormGroup.controls.selFeeLimitType.value.placeholder:i.feeLimitTypes[0].placeholder),e.R7$(),e.Y8G("step",1),e.R7$(),e.Y8G("ngIf",null==i.feeFormGroup.controls.feeLimit.errors?null:i.feeFormGroup.controls.feeLimit.errors.required),e.R7$(),e.Y8G("ngIf",null==i.feeFormGroup.controls.feeLimit.errors?null:i.feeFormGroup.controls.feeLimit.errors.min),e.R7$(4),e.Y8G("stepControl",i.statusFormGroup),e.R7$(),e.Y8G("formGroup",i.statusFormGroup),e.R7$(7),e.JRh(i.flgInvoiceGenerated?i.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated),e.R7$(3),e.JRh(i.paymentRequest),e.R7$(),e.Y8G("ngIf",!i.flgInvoiceGenerated),e.R7$(),e.Y8G("expanded",(i.flgInvoiceGenerated||i.flgReusingInvoice)&&i.flgPaymentSent),e.R7$(4),e.JRh(i.flgInvoiceGenerated||i.flgPaymentSent?i.flgPaymentSent?null!=i.paymentStatus&&i.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),e.R7$(),e.Y8G("ngIf",i.flgPaymentSent),e.R7$(),e.Y8G("ngIf",!i.paymentStatus)("ngIfElse",o),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated&&!i.flgPaymentSent),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated&&i.flgPaymentSent),e.R7$(2),e.Y8G("ngIf",i.paymentStatus&&i.paymentStatus.error),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}function nr(t,s){1&t&&e.eu8(0)}function ir(t,s){if(1&t&&e.DNE(0,nr,1,0,"ng-container",59),2&t){const n=e.XpG(),i=e.sdS(4),o=e.sdS(6);e.Y8G("ngTemplateOutlet",n.paymentStatus.error?i:o)}}function ar(t,s){if(1&t&&(e.j41(0,"div",7)(1,"span",45),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Error: ",n.paymentStatus.error)}}function sr(t,s){if(1&t&&(e.j41(0,"div",7)(1,"div",60)(2,"div",61)(3,"h4",62),e.EFF(4,"Payment Hash"),e.k0s(),e.j41(5,"span",45),e.EFF(6),e.k0s()()(),e.nrm(7,"mat-divider",63),e.j41(8,"div",60)(9,"div",64)(10,"h4",62),e.EFF(11),e.k0s(),e.j41(12,"span",45),e.EFF(13),e.k0s()(),e.j41(14,"div",64)(15,"h4",62),e.EFF(16,"Number of Hops"),e.k0s(),e.j41(17,"span",45),e.EFF(18),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(6),e.JRh(n.paymentStatus.payment_hash),e.R7$(5),e.SpI("Total Fees (",n.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),e.R7$(2),e.JRh(n.paymentStatus.payment_route.total_fees_msat?n.paymentStatus.payment_route.total_fees_msat:n.paymentStatus.payment_route.total_fees?n.paymentStatus.payment_route.total_fees:0),e.R7$(5),e.JRh(n.paymentStatus&&n.paymentStatus.payment_route&&n.paymentStatus.payment_route.hops&&n.paymentStatus.payment_route.hops.length?n.paymentStatus.payment_route.hops.length:0)}}function or(t,s){if(1&t){const n=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onStepChanged(o))}),e.nrm(1,"p",81),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(1,Nl,i.stepNumber===n,i.stepNumber!==n))}}function lr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",82),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(4))}),e.EFF(1,"Back"),e.k0s()}}function rr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function cr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function pr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",85),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(o.stepNumber-1))}),e.EFF(1,"Back"),e.k0s()}}function mr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(o.stepNumber+1))}),e.EFF(1,"Next"),e.k0s()}}function ur(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",65)(1,"div",66)(2,"mat-card-header",67)(3,"div",68),e.nrm(4,"span",11),e.k0s(),e.j41(5,"div",69)(6,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(7,"X"),e.k0s()()(),e.j41(8,"mat-card-content",70)(9,"rtl-channel-rebalance-infographics",71),e.mxI("stepNumberChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.stepNumber,o)||(a.stepNumber=o),r.Njj(o)}),e.k0s()(),e.j41(10,"div",72),e.DNE(11,or,2,4,"span",73),e.k0s(),e.j41(12,"div",74),e.DNE(13,lr,2,0,"button",75)(14,rr,2,0,"button",76)(15,cr,2,0,"button",77)(16,pr,2,0,"button",78)(17,mr,2,0,"button",79),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@opacityAnimation",void 0),e.R7$(9),e.Y8G("animationDirection",n.animationDirection),e.R50("stepNumber",n.stepNumber),e.R7$(2),e.Y8G("ngForOf",e.lJ4(9,Dl)),e.R7$(2),e.Y8G("ngIf",5===n.stepNumber),e.R7$(),e.Y8G("ngIf",5===n.stepNumber),e.R7$(),e.Y8G("ngIf",n.stepNumber<5),e.R7$(),e.Y8G("ngIf",n.stepNumber>1&&n.stepNumber<5),e.R7$(),e.Y8G("ngIf",n.stepNumber<5)}}let dr=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.dialogRef=i,this.data=o,this.logger=a,this.store=l,this.actions=p,this.formBuilder=m,this.decimalPipe=v,this.commonService=b,this.faInfoCircle=x.iW_,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=c.f7,this.animationDirection="forward",this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize();let i="",o="";this.selChannel=this.data.message?.selChannel||{},this.activeChannels=this.data.message?.channels?.filter(a=>a.active&&a.chan_id!==this.selChannel.chan_id&&a.remote_balance&&a.remote_balance>0)||[],this.activeChannels=this.activeChannels.sort((a,l)=>(i=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",io?1:0)),c.nv.forEach((a,l)=>{l>0&&this.feeLimitTypes.push(a)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[d.k0.required]],rebalanceAmount:["",[d.k0.required,d.k0.min(1),d.k0.max(this.selChannel.local_balance||0)]],selRebalancePeer:[null,d.k0.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],d.k0.required],feeLimit:["",[d.k0.required,d.k0.min(0)]],hiddenFeeLimit:["",[d.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(F.rN).pipe((0,g.Q)(this.unSubs[0])).subscribe(a=>{this.invoices=a.listInvoices,this.logger.info(a)}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,U.p)(a=>a.type===c.QP.SET_QUERY_ROUTES_LND||a.type===c.QP.SEND_PAYMENT_STATUS_LND||a.type===c.QP.NEWLY_SAVED_INVOICE_LND)).subscribe(a=>{a.type===c.QP.SET_QUERY_ROUTES_LND&&(this.queryRoute=a.payload),a.type===c.QP.SEND_PAYMENT_STATUS_LND&&(this.logger.info(a.payload),this.flgPaymentSent=!0,this.paymentStatus=a.payload,this.flgEditable=!0),a.type===c.QP.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(a.payload),this.flgInvoiceGenerated=!0,this.sendPayment(a.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount")?.valueChanges.pipe((0,g.Q)(this.unSubs[2]),(0,Ie.Z)(0)).subscribe(a=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,je.of)(a?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer")?.valueChanges.pipe((0,g.Q)(this.unSubs[3]),(0,Ie.Z)("")).subscribe(a=>{"string"==typeof a&&(this.filteredActiveChannels=(0,je.of)(this.filterActiveChannels()))})}onSelectFee(){return this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),this.inputFormGroup.controls.selRebalancePeer.value&&"string"!=typeof this.inputFormGroup.controls.selRebalancePeer.value?!this.inputFormGroup.controls.rebalanceAmount.value||(0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),void this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0])):(this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0)}stepSelectionChanged(i){switch(i.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops?.length:"Select rebalance fee"}i.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const i=this.findUnsettledInvoice();i?(this.flgReusingInvoice=!0,this.sendPayment(i.payment_request||"")):this.store.dispatch((0,T.VK)({payload:{uiMessage:c.MZ.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",value:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:c.It,is_amp:!1,pageSize:c.md,openModal:!1}}))}findUnsettledInvoice(){return this.invoices.invoices?.find(i=>(!i.settle_date||0==+i.settle_date)&&i.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==i.state)}sendPayment(i){if(this.flgInvoiceGenerated=!0,this.paymentRequest=i,"percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0){const o={uiMessage:c.MZ.NO_SPINNER,payment_request:i,amp:!1,outgoing_chan_ids:this.selChannel?.chan_id?[this.selChannel?.chan_id]:void 0,fee_limit_sat:Math.ceil((0,c.C6)("fixed",this.feeFormGroup.controls.feeLimit.value,this.inputFormGroup.controls.rebalanceAmount.value||0)),allow_self_payment:!0,last_hop_pubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:o}))}else{const o={uiMessage:c.MZ.NO_SPINNER,payment_request:i,amp:!1,outgoing_chan_ids:this.selChannel?.chan_id?[this.selChannel?.chan_id]:void 0,fee_limit_sat:(0,c.C6)(this.feeFormGroup.controls.selFeeLimitType.value.id,this.feeFormGroup.controls.feeLimit.value,this.inputFormGroup.controls.rebalanceAmount.value||0),allow_self_payment:!0,last_hop_pubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:o}))}}filterActiveChannels(){return this.activeChannels?.filter(i=>i.remote_balance&&i.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&i.chan_id!==this.selChannel.chan_id&&(0===i.remote_alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===i.chan_id?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const i=this.activeChannels?.filter(o=>o.remote_alias?.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===o.remote_alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));i&&i.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(i[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(i){return i&&i.remote_alias?i.remote_alias:i&&i.chan_id?i.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(i){this.animationDirection=i{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU(L.il),e.rXU(K.En),e.rXU(d.ze),e.rXU(_.QX),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-rebalance"]],viewQuery:function(o,a){if(1&o&&e.GBs(Gl,5),2&o){let l;e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:8,vars:2,consts:[["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["stepper",""],["auto","matAutocomplete"],["fxLayout","column",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column"],[1,"modal-info-header"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayoutAlign","start center"],[1,"page-title"],["fxLayoutAlign","end center"],["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","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start end"],["type","text","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"change","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"step"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","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","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"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["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(o,a){1&o&&e.DNE(0,tr,105,46,"div",5)(1,ir,1,1,"ng-template",null,0,e.C5r)(3,ar,3,1,"ng-template",null,1,e.C5r)(5,sr,19,4,"ng-template",null,2,e.C5r)(7,ur,18,10,"div",6),2&o&&(e.Y8G("ngIf",!a.flgShowInfo),e.R7$(7),e.Y8G("ngIf",a.flgShowInfo))},dependencies:[_.YU,_.Sq,_.bT,_.T3,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.j4,d.JD,O.aY,Y.tx,N.$z,k.m2,k.MM,q.GK,q.Z2,q.WN,oe.An,M.fg,C.rl,C.nJ,C.MV,C.TL,C.yw,ne.q,V.HM,f.DJ,f.sA,f.UI,j.PW,E.VO,X.wT,z.V5,z.Ti,z.M6,ce.$3,ce.pN,te.N,jl,_.Jj,_.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[Ge.C]}}))}return t(),s})();function hr(t,s){if(1&t&&(e.j41(0,"div",17)(1,"p",18)(2,"mat-icon",19),e.EFF(3,"close"),e.k0s(),e.EFF(4),e.k0s()()),2&t){const n=e.XpG();e.R7$(4),e.JRh(n.errorMsg)}}function _r(t,s){if(1&t&&(e.j41(0,"div",28),e.nrm(1,"fa-icon",29),e.j41(2,"span"),e.EFF(3,"Priority/Fee for force closing inactive channels cannot be modified."),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faInfoCircle)}}function fr(t,s){if(1&t&&(e.j41(0,"div",28),e.nrm(1,"fa-icon",29),e.j41(2,"span",30)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",31)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function gr(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function Cr(t,s){1&t&&(e.j41(0,"mat-form-field",33)(1,"mat-label"),e.EFF(2,"Default"),e.k0s(),e.nrm(3,"input",34),e.k0s())}function yr(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function br(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",35)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",36,0),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.blocks,o)||(a.blocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,yr,2,0,"mat-error",37),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.blocks),e.R7$(2),e.Y8G("ngIf",!n.blocks)}}function Fr(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function xr(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",35)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",38,1),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.fees,o)||(a.fees=o),r.Njj(o)}),e.k0s(),e.DNE(5,Fr,2,0,"mat-error",37),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.fees),e.R7$(2),e.Y8G("ngIf",!n.fees)}}function vr(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",20),e.DNE(1,_r,4,1,"div",21)(2,fr,16,6,"div",21),e.j41(3,"div",22)(4,"mat-form-field",23)(5,"mat-label"),e.EFF(6,"Transaction Type"),e.k0s(),e.j41(7,"mat-select",24),e.mxI("valueChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selTransType,o)||(a.selTransType=o),r.Njj(o)}),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSelTransTypeChanged(o))}),e.DNE(8,gr,2,2,"mat-option",25),e.k0s()(),e.DNE(9,Cr,4,0,"mat-form-field",26)(10,br,6,4,"mat-form-field",27)(11,xr,6,4,"mat-form-field",27),e.k0s()()}if(2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.channelToClose.active),e.R7$(),e.Y8G("ngIf",n.recommendedFee.minimumFee),e.R7$(5),e.Y8G("disabled",!n.channelToClose.active),e.R50("value",n.selTransType),e.R7$(),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","0"===n.selTransType),e.R7$(),e.Y8G("ngIf","1"===n.selTransType),e.R7$(),e.Y8G("ngIf","2"===n.selTransType)}}function Tr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",39),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(1,"Clear"),e.k0s()}}function kr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onCloseChannel())}),e.EFF(1),e.k0s()}if(2&t){const n=e.XpG();e.R7$(),e.JRh(n.channelToClose.active?"Close Channel":"Force Close")}}function Sr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(1,"Ok"),e.k0s()}}let Rr=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.dataService=a,this.store=l,this.actions=p,this.logger=m,this.transTypes=c.XG,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i.type===c.QP.UPDATE_API_CALL_STATUS_LND||i.type===c.QP.SET_CHANNELS_LND)).subscribe(i=>{if(i.type===c.QP.SET_CHANNELS_LND){const o=i.payload.find(a=>a.chan_id===this.data.channel.chan_id);o&&o.pending_htlcs&&o.pending_htlcs.length&&o.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&i.payload.status===c.wn.ERROR&&"FetchAllChannels"===i.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+i.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const i={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(i.targetConf=this.blocks),this.fees&&(i.satPerVByte=this.fees),this.store.dispatch((0,T.w0)({payload:i})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onSelTransTypeChanged(i){"2"===i.value&&this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[1])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(Z.u),e.rXU(L.il),e.rXU(K.En),e.rXU(D.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-close-channel"]],standalone:!1,decls:19,vars:7,consts:[["blcks","ngModel"],["clchfee","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","class","mr-1","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column","fxFlex.gt-sm","48"],[3,"valueChange","selectionChange","disabled","value"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["fxFlex","48"],["matInput","","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","type","number","name","blocks","required","",3,"ngModelChange","step","min","ngModel"],[4,"ngIf"],["matInput","","type","number","name","ccfees","required","",3,"ngModelChange","step","min","ngModel"],["mat-button","","color","primary","type","reset","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",2)(1,"div",3)(2,"mat-card-header",4)(3,"div",5)(4,"span",6),e.EFF(5),e.k0s()(),e.j41(6,"button",7),e.bIt("click",function(){return a.onClose()}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",8)(9,"form",9)(10,"div",10)(11,"p",11),e.EFF(12),e.k0s(),e.DNE(13,hr,5,1,"div",12)(14,vr,12,8,"div",13),e.k0s(),e.j41(15,"div",14),e.DNE(16,Tr,2,0,"button",15)(17,kr,2,1,"button",16)(18,Sr,2,0,"button",16),e.k0s()()()()()),2&o&&(e.R7$(5),e.JRh(a.channelToClose.active?"Close Channel":"Force Close Channel"),e.R7$(7),e.SpI("",a.channelToClose.active?"Closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point):"Force closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point)," "),e.R7$(),e.Y8G("ngIf",a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",!a.flgPendingHtlcs),e.R7$(2),e.Y8G("ngIf",a.channelToClose.active&&!a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",!a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",a.flgPendingHtlcs))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,O.aY,N.$z,k.m2,k.MM,oe.An,M.fg,C.rl,C.nJ,C.TL,f.DJ,f.sA,f.UI,E.VO,X.wT,ae.V],encapsulation:2}))}return t(),s})();const Er=()=>["all"],Ir=t=>({"error-border":t}),Lr=()=>["no_channel"],Fe=t=>({width:t}),wr=t=>({"display-none":t});function jr(t,s){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Gr(t,s){1&t&&e.nrm(0,"mat-progress-bar",50)}function Dr(t,s){1&t&&e.nrm(0,"th",51)}function Nr(t,s){1&t&&e.nrm(0,"span",55)}function Pr(t,s){1&t&&e.nrm(0,"span",56)}function $r(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Nr,1,0,"span",53)(2,Pr,1,0,"span",54),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.active),e.R7$(),e.Y8G("ngIf",!n.active)}}function Ar(t,s){1&t&&e.nrm(0,"th",57)}function Mr(t,s){if(1&t&&(e.j41(0,"span",60),e.nrm(1,"fa-icon",61),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faEyeSlash)}}function Br(t,s){if(1&t&&(e.j41(0,"span",62),e.nrm(1,"fa-icon",61),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faEye)}}function Or(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Mr,2,1,"span",58)(2,Br,2,1,"span",59),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.private),e.R7$(),e.Y8G("ngIf",!n.private)}}function Vr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Peer"),e.k0s())}function Yr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.remote_alias)}}function Xr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Pubkey"),e.k0s())}function Ur(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.remote_pubkey)}}function Hr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Channel Point"),e.k0s())}function qr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel_point)}}function zr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Channel ID"),e.k0s())}function Jr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.chan_id)}}function Qr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Initiator"),e.k0s())}function Wr(t,s){if(1&t&&(e.j41(0,"td",52),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n.initiator?"Yes":"No")}}function Zr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Static Remote Key"),e.k0s())}function Kr(t,s){if(1&t&&(e.j41(0,"td",52),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n.static_remote_key?"Yes":"No")}}function e1(t,s){if(1&t&&(e.j41(0,"th",66),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Uptime (",n.timeUnit,")")}}function t1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.uptime_str," ")}}function n1(t,s){if(1&t&&(e.j41(0,"th",66),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Lifetime (",n.timeUnit,")")}}function i1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.lifetime_str," ")}}function a1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function s1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_fee)," ")}}function o1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Commit Weight"),e.k0s())}function l1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_weight)," ")}}function r1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Fee/KW"),e.k0s())}function c1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.fee_per_kw)," ")}}function p1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Updates"),e.k0s())}function m1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.num_updates)," ")}}function u1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Unsettled Balance (Sats)"),e.k0s())}function d1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.unsettled_balance)," ")}}function h1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Capacity (Sats)"),e.k0s())}function _1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function f1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Local Reserve (Sats)"),e.k0s())}function g1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_chan_reserve_sat)," ")}}function C1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Remote Reserve (Sats)"),e.k0s())}function y1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_chan_reserve_sat)," ")}}function b1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Sats Sent"),e.k0s())}function F1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.total_satoshis_sent)," ")}}function x1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Sats Received"),e.k0s())}function v1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.total_satoshis_received)," ")}}function T1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function k1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_balance)," ")}}function S1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function R1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_balance)," ")}}function E1(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Balance Score"),e.k0s())}function I1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",68)(2,"mat-hint",69),e.EFF(3),e.nI1(4,"number"),e.k0s()(),e.nrm(5,"mat-progress-bar",70),e.k0s()),2&t){const n=s.$implicit;e.R7$(3),e.JRh(e.bMT(4,3,n.balancedness||0)),e.R7$(2),e.Y8G("value",e.mNQ(n.local_balance&&n.local_balance>0?+n.local_balance/(+n.local_balance+ +n.remote_balance)*100:0))}}function L1(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",71)(1,"div",72)(2,"mat-select",73),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onChannelUpdate("all"))}),e.EFF(5,"Update Fee Policy"),e.k0s(),e.j41(6,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(7,"Download CSV"),e.k0s()()()()}}function w1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG().$implicit,a=e.XpG();return r.Njj(a.onCircularRebalance(o))}),e.EFF(1,"Circular Rebalance"),e.k0s()}}function j1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG().$implicit,a=e.XpG();return r.Njj(a.onLoopOut(o))}),e.EFF(1,"Loop Out"),e.k0s()}}function G1(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",75)(1,"div",72)(2,"mat-select",76),e.nrm(3,"mat-select-trigger"),e.j41(4,"perfect-scrollbar")(5,"mat-option",74),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onChannelClick(a,o))}),e.EFF(6,"View Info"),e.k0s(),e.j41(7,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onViewRemotePolicy(o))}),e.EFF(8,"View Remote Fee "),e.k0s(),e.j41(9,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onChannelUpdate(o))}),e.EFF(10,"Update Fee Policy"),e.k0s(),e.DNE(11,w1,2,0,"mat-option",77)(12,j1,2,0,"mat-option",77),e.j41(13,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onChannelClose(o))}),e.EFF(14,"Close Channel"),e.k0s()()()()()}if(2&t){const n=e.XpG();e.R7$(11),e.Y8G("ngIf",+n.versionsArr[0]>0||+n.versionsArr[1]>=9),e.R7$(),e.Y8G("ngIf",n.selNode.swapServerUrl)}}function D1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No peers connected. Add a peer in order to open a channel."),e.k0s())}function N1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No channel available."),e.k0s())}function P1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting channels..."),e.k0s())}function $1(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function A1(t,s){if(1&t&&(e.j41(0,"td",78),e.DNE(1,D1,2,0,"p",79)(2,N1,2,0,"p",79)(3,P1,2,0,"p",79)(4,$1,2,1,"p",79),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.ERROR)}}function M1(t,s){if(1&t&&e.nrm(0,"tr",80),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,wr,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function B1(t,s){1&t&&e.nrm(0,"tr",81)}function O1(t,s){1&t&&e.nrm(0,"tr",82)}let V1=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.rtlEffects=p,this.decimalPipe=m,this.loopService=v,this.camelCaseWithReplace=b,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open",recordsPerPage:c.md,sortBy:"balancedness",sortOrder:c.oi.DESCENDING},this.timeUnit="mins:secs",this.userPersonaEnum=c.HW,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.channels=new u.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.versionsArr=[],this.faEye=x.pS3,this.faEyeSlash=x.k6j,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.filterColumn||window.history.state.filterValue)&&(this.selFilterBy=window.history.state.filterColumn||"all",this.selFilter=window.history.state.filterValue||""),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("private"),this.displayedColumns.unshift("active"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.numPeers=i.peers&&i.peers.length?i.peers.length:0}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.totalBalance=i.blockchainBalance?.total_balance?+i.blockchainBalance?.total_balance:0}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[5])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=this.calculateUptime(i.channels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(i)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(i){this.store.dispatch((0,T.ij)({payload:{uiMessage:c.MZ.GET_REMOTE_POLICY,channelID:i.chan_id?.toString()+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,W.s)(1)).subscribe(o=>{if(!o.fee_base_msat&&!o.fee_rate_milli_msat&&!o.time_lock_delta)return!1;const a=[[{key:"fee_base_msat",value:o.fee_base_msat,title:"Base Fees (mSats)",width:25,type:c.UN.NUMBER},{key:"fee_rate_milli_msat",value:o.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:c.UN.NUMBER},{key:"fee_rate_milli_msat",value:o.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:c.UN.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:o.time_lock_delta,title:"Time Lock Delta",width:25,type:c.UN.NUMBER}]],l="Remote policy for Channel: "+(i.remote_alias||i.chan_id?i.remote_alias&&i.chan_id?i.remote_alias+" ("+i.chan_id+")":i.remote_alias?i.remote_alias:i.chan_id:i.channel_point);setTimeout(()=>{this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:l,message:a}}}))},0)})}onCircularRebalance(i){this.store.dispatch((0,I.xO)({payload:{data:{message:{channels:this.channelsData,selChannel:i},component:dr}}}))}onChannelUpdate(i){"all"===i?(this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:c.UN.NUMBER,inputValue:1e3,step:100,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:c.UN.NUMBER,inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:c.UN.NUMBER,inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[6])).subscribe(a=>{a&&this.store.dispatch((0,T.fy)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0,min_htlc_msat:0,max_htlc_msat:0},this.store.dispatch((0,T.ij)({payload:{uiMessage:c.MZ.GET_CHAN_POLICY,channelID:i.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,W.s)(1)).subscribe(o=>{this.myChanPolicy=o.node1_pub===this.information.identity_pubkey?o.node1_policy:o.node2_pub===this.information.identity_pubkey?o.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const a="Update fee policy for Channel: "+(i.remote_alias||i.chan_id?i.remote_alias&&i.chan_id?i.remote_alias+" ("+i.chan_id+")":i.remote_alias?i.remote_alias:i.chan_id:i.channel_point),l=[];setTimeout(()=>{this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:a,noBtnText:"Cancel",yesBtnText:"Update Channel",message:l,flgShowInput:!0,hasAdvanced:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:c.UN.NUMBER,inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,step:100,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:c.UN.NUMBER,inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:c.UN.NUMBER,inputValue:this.myChanPolicy.time_lock_delta,width:32},{placeholder:"Minimum HTLC (mSat)",inputType:c.UN.NUMBER,inputValue:""===this.myChanPolicy.min_htlc?0:this.myChanPolicy.min_htlc,width:49,advancedField:!0},{placeholder:"Maximum HTLC (mSat)",inputType:c.UN.NUMBER,inputValue:""===this.myChanPolicy.max_htlc_msat?0:this.myChanPolicy.max_htlc_msat,width:49,advancedField:!0}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[7])).subscribe(o=>{if(o){const a={baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:i.channel_point};o.length>3&&o[3]&&o[4]&&(a.minHtlcMsat=o[3].inputValue,a.maxHtlcMsat=o[4].inputValue),this.store.dispatch((0,T.fy)({payload:a}))}})),this.applyFilter()}onChannelClose(i){i.active&&this.store.dispatch((0,T.$Q)()),this.store.dispatch((0,I.xO)({payload:{data:{channel:i,component:Rr}}}))}onChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{channel:i,selNode:this.selNode,showCopy:!0,component:we}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.active?"active":"inactive")+(i.chan_id?i.chan_id.toLowerCase():"")+(i.remote_pubkey?i.remote_pubkey.toLowerCase():"")+(i.remote_alias?i.remote_alias.toLowerCase():"")+(i.capacity?i.capacity:"")+(i.local_balance?i.local_balance:"")+(i.remote_balance?i.remote_balance:"")+(i.total_satoshis_sent?i.total_satoshis_sent:"")+(i.total_satoshis_received?i.total_satoshis_received:"")+(i.commit_fee?i.commit_fee:"")+(i.private?"private":"public");break;case"active":a=i?.active?"active":"inactive";break;case"private":a=i?.private?"private":"public";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"active"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadChannelsTable(i){this.channels=new u.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}calculateUptime(i){let m=60,v=1,b=0;switch(i.forEach(S=>{S.uptime&&+S.uptime>b&&(b=+S.uptime)}),!0){case b<3600:this.timeUnit="Mins:Secs",m=60,v=1;break;case b>=3600&&b<86400:this.timeUnit="Hrs:Mins",m=3600,v=60;break;case b>=86400&&b<31536e3:this.timeUnit="Days:Hrs",m=86400,v=3600;break;case b>31536e3:this.timeUnit="Yrs:Days",m=31536e3,v=86400;break;default:this.timeUnit="Mins:Secs",m=60,v=1}return i.forEach(S=>{S.uptime_str=S.uptime?this.decimalPipe.transform(Math.floor(+S.uptime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.uptime%m/v),"2.0-0"):"---",S.lifetime_str=S.lifetime?this.decimalPipe.transform(Math.floor(+S.lifetime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.lifetime%m/v),"2.0-0"):"---"}),i}onLoopOut(i){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,g.Q)(this.unSubs[8])).subscribe(o=>{this.store.dispatch((0,I.xO)({payload:{minHeight:"56rem",data:{channel:i,minQuote:o[0],maxQuote:o[1],direction:c.C7.LOOP_OUT,component:ze.D}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(i){return(i/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(me.L),e.rXU($.h),e.rXU(_e.H),e.rXU(_.QX),e.rXU(Je.Q),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-open-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:96,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","active"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Active",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private",4,"matHeaderCellDef"],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","chan_id"],["matColumnDef","initiator"],["matColumnDef","static_remote_key"],["matColumnDef","uptime_str"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lifetime_str"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","num_updates"],["matColumnDef","unsettled_balance"],["matColumnDef","capacity"],["matColumnDef","local_chan_reserve_sat"],["matColumnDef","remote_chan_reserve_sat"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","5",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","Active"],["mat-cell",""],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot grey","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","grey"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private"],["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"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,jr,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,Gr,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,Dr,1,0,"th",13)(20,$r,3,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Ar,1,0,"th",16)(23,Or,3,2,"td",14),e.bVm(),e.qex(24,17),e.DNE(25,Vr,2,0,"th",18)(26,Yr,4,4,"td",14),e.bVm(),e.qex(27,19),e.DNE(28,Xr,2,0,"th",18)(29,Ur,4,4,"td",14),e.bVm(),e.qex(30,20),e.DNE(31,Hr,2,0,"th",18)(32,qr,4,4,"td",14),e.bVm(),e.qex(33,21),e.DNE(34,zr,2,0,"th",18)(35,Jr,4,4,"td",14),e.bVm(),e.qex(36,22),e.DNE(37,Qr,2,0,"th",18)(38,Wr,2,1,"td",14),e.bVm(),e.qex(39,23),e.DNE(40,Zr,2,0,"th",18)(41,Kr,2,1,"td",14),e.bVm(),e.qex(42,24),e.DNE(43,e1,2,1,"th",25)(44,t1,3,1,"td",14),e.bVm(),e.qex(45,26),e.DNE(46,n1,2,1,"th",25)(47,i1,3,1,"td",14),e.bVm(),e.qex(48,27),e.DNE(49,a1,2,0,"th",25)(50,s1,4,3,"td",14),e.bVm(),e.qex(51,28),e.DNE(52,o1,2,0,"th",25)(53,l1,4,3,"td",14),e.bVm(),e.qex(54,29),e.DNE(55,r1,2,0,"th",25)(56,c1,4,3,"td",14),e.bVm(),e.qex(57,30),e.DNE(58,p1,2,0,"th",25)(59,m1,4,3,"td",14),e.bVm(),e.qex(60,31),e.DNE(61,u1,2,0,"th",25)(62,d1,4,3,"td",14),e.bVm(),e.qex(63,32),e.DNE(64,h1,2,0,"th",25)(65,_1,4,3,"td",14),e.bVm(),e.qex(66,33),e.DNE(67,f1,2,0,"th",25)(68,g1,4,3,"td",14),e.bVm(),e.qex(69,34),e.DNE(70,C1,2,0,"th",25)(71,y1,4,3,"td",14),e.bVm(),e.qex(72,35),e.DNE(73,b1,2,0,"th",25)(74,F1,4,3,"td",14),e.bVm(),e.qex(75,36),e.DNE(76,x1,2,0,"th",25)(77,v1,4,3,"td",14),e.bVm(),e.qex(78,37),e.DNE(79,T1,2,0,"th",25)(80,k1,4,3,"td",14),e.bVm(),e.qex(81,38),e.DNE(82,S1,2,0,"th",25)(83,R1,4,3,"td",14),e.bVm(),e.qex(84,39),e.DNE(85,E1,2,0,"th",18)(86,I1,6,5,"td",14),e.bVm(),e.qex(87,40),e.DNE(88,L1,8,0,"th",41)(89,G1,15,2,"td",42),e.bVm(),e.qex(90,43),e.DNE(91,A1,5,4,"td",44),e.bVm(),e.DNE(92,M1,1,3,"tr",45)(93,B1,1,0,"tr",46)(94,O1,1,0,"tr",47),e.k0s()(),e.nrm(95,"mat-paginator",48),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,Er).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",(null==a.apiCallStatus?null:a.apiCallStatus.status)===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",e.eq3(15,Ir,""!==a.errorMessage)),e.R7$(76),e.Y8G("matFooterRowDef",e.lJ4(17,Lr)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,O.aY,M.fg,C.rl,C.nJ,C.MV,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.QX],styles:[".mat-column-active[_ngcontent-%COMP%], .mat-column-private[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}))}return t(),s})();const Y1=["outputIdx"];function X1(t,s){if(1&t&&(e.j41(0,"div",31),e.nrm(1,"fa-icon",16),e.j41(2,"span"),e.EFF(3,"Change output balance "),e.j41(4,"strong"),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.EFF(7," (Sats) may be insufficient for fee bumping, depending on the prevailing fee rates."),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(4),e.JRh(e.bMT(6,2,n.dustOutputValue))}}function U1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Index for change output is required."),e.k0s())}function H1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid index value."),e.k0s())}function q1(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function z1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function J1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",20)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",33,1),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.blocks,o)||(a.blocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,z1,2,0,"mat-error",22),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.blocks),e.R7$(2),e.Y8G("ngIf",!n.blocks)}}function Q1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function W1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",20)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",34,2),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.fees,o)||(a.fees=o),r.Njj(o)}),e.k0s(),e.DNE(5,Q1,2,0,"mat-error",22),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.fees),e.R7$(2),e.Y8G("ngIf",!n.fees)}}function Z1(t,s){if(1&t&&(e.j41(0,"div",35),e.nrm(1,"fa-icon",16),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(2),e.JRh(n.bumpFeeError)}}let tt=(()=>{var t;class s{set outputIndx(i){i&&(this.outputIdx=i)}constructor(i,o,a,l,p){this.dialogRef=i,this.data=o,this.logger=a,this.dataService=l,this.store=p,this.faUpRightFromSquare=x.k02,this.txid="",this.outputIndex=null,this.transTypes=[...c.XG],this.selTransType="2",this.blocks=null,this.fees=null,this.faCopy=x.jPR,this.faInfoCircle=x.iW_,this.faExclamationTriangle=x.zpE,this.bumpFeeError="",this.flgShowDustWarning=!1,this.dustOutputValue=0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){if(this.transTypes=this.transTypes.splice(1),this.data.pendingChannel&&this.data.pendingChannel.channel){const i=this.data.pendingChannel.channel?.channel_point?.split(":")||[];this.txid=i[0]||(this.data.pendingChannel.channel&&this.data.pendingChannel.channel.channel_point?this.data.pendingChannel.channel.channel_point:""),this.outputIndex=i[1]&&""!==i[1]&&0==+i[1]?1:0}else this.data.selUTXO&&this.data.selUTXO.outpoint&&(this.txid=this.data.selUTXO.outpoint.txid_str||"",this.outputIndex=this.data.selUTXO.outpoint.output_index||0);this.logger.info(this.txid,this.outputIndex),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i,this.logger.info(this.selNode)}),this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[1])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.dataService.getBlockExplorerTransaction(this.txid).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:i=>{this.dustOutputValue=i.vout[this.outputIndex].value,this.flgShowDustWarning=this.dustOutputValue<1e3},error:i=>{this.logger.error(i)}})}onBumpFee(){if(this.data.pendingChannel&&this.data.pendingChannel.channel){const i=this.data.pendingChannel.channel?.channel_point?.split(":")||[],o=i.length>1&&i[1]&&""!==i[1]?+i[1]:null;if(o&&this.outputIndex===o)return this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0}if(!this.outputIndex&&0!==this.outputIndex||"1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;this.dataService.bumpFee(this.txid,this.outputIndex,this.blocks||null,this.fees||null).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:i=>{this.dialogRef.close(!1)},error:i=>{this.logger.error(i),this.bumpFeeError=i.message?i.message:i}})}onExplorerClicked(){window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+this.txid,"_blank")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU(Z.u),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-bump-fee"]],viewQuery:function(o,a){if(1&o&&e.GBs(Y1,5),2&o){let l;e.mGM(l=e.lsd())&&(a.outputIndx=l.first)}},standalone:!1,decls:48,vars:20,consts:[["outputIndx","ngModel"],["blcks","ngModel"],["fee","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column","fxFlex.gt-sm","32","fxLayoutAlign","start end"],["autoFocus","","matInput","","type","number","required","","name","outputIndx",3,"ngModelChange","step","min","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","32"],[3,"valueChange","selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit",3,"click"],["fxFlex","100",1,"alert","alert-warn"],[3,"value"],["matInput","","type","number","name","blocks","required","",3,"ngModelChange","step","min","ngModel"],["matInput","","type","number","name","fees","required","",3,"ngModelChange","step","min","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e.EFF(5,"Bump Fee"),e.k0s()(),e.j41(6,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",9)(9,"form",10)(10,"div",11)(11,"p",12),e.EFF(12),e.j41(13,"fa-icon",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onExplorerClicked())}),e.k0s()(),e.j41(14,"div",14)(15,"div",15),e.nrm(16,"fa-icon",16),e.j41(17,"span",17)(18,"div"),e.EFF(19,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(20,"div"),e.EFF(21),e.k0s(),e.j41(22,"div"),e.EFF(23),e.k0s(),e.j41(24,"div"),e.EFF(25),e.k0s()()(),e.DNE(26,X1,8,4,"div",18),e.j41(27,"div",19)(28,"mat-form-field",20)(29,"mat-label"),e.EFF(30,"Index for Change Output"),e.k0s(),e.j41(31,"input",21,0),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.outputIndex,m)||(a.outputIndex=m),r.Njj(m)}),e.k0s(),e.DNE(33,U1,2,0,"mat-error",22)(34,H1,2,0,"mat-error",22),e.k0s(),e.j41(35,"mat-form-field",23)(36,"mat-label"),e.EFF(37,"Transaction Type"),e.k0s(),e.j41(38,"mat-select",24),e.mxI("valueChange",function(m){return r.eBV(l),e.DH7(a.selTransType,m)||(a.selTransType=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.blocks=null,r.Njj(a.fees=null)}),e.DNE(39,q1,2,2,"mat-option",25),e.k0s()(),e.DNE(40,J1,6,4,"mat-form-field",26)(41,W1,6,4,"mat-form-field",26),e.k0s(),e.DNE(42,Z1,4,2,"div",27),e.k0s()(),e.j41(43,"div",28)(44,"button",29),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(45,"Clear"),e.k0s(),e.j41(46,"button",30),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onBumpFee())}),e.EFF(47),e.k0s()()()()()()}if(2&o){const l=e.sdS(32);e.R7$(12),e.SpI(" ",a.txid?"Bump fee for transaction ID: "+a.txid:"Bump fee: "," "),e.R7$(),e.Y8G("matTooltip",e.mNQ("Link to "+a.selNode.settings.blockExplorerUrl))("icon",a.faUpRightFromSquare),e.R7$(3),e.Y8G("icon",a.faInfoCircle),e.R7$(5),e.SpI("- High: ",a.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",a.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",a.recommendedFee.hourFee||"Unknown"),e.R7$(),e.Y8G("ngIf",a.flgShowDustWarning),e.R7$(5),e.Y8G("step",1)("min",0),e.R50("ngModel",a.outputIndex),e.R7$(2),e.Y8G("ngIf",null==l.errors?null:l.errors.required),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.OutputIndexError),e.R7$(4),e.R50("value",a.selTransType),e.R7$(),e.Y8G("ngForOf",a.transTypes),e.R7$(),e.Y8G("ngIf","1"===a.selTransType),e.R7$(),e.Y8G("ngIf","2"===a.selTransType),e.R7$(),e.Y8G("ngIf",""!==a.bumpFeeError),e.R7$(5),e.JRh(""!==a.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,O.aY,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.TL,f.DJ,f.sA,f.UI,E.VO,X.wT,ee.oV,te.N,ae.V,_.QX],encapsulation:2}))}return t(),s})();const xe=t=>({"error-border bordered-box":t,"bordered-box":!0}),K1=()=>["no_pending_open"],ec=()=>["no_pending_force_closing"],tc=()=>["no_pending_closing"],nc=()=>["no_pending_wait_closing"],Q=t=>({width:t}),De=t=>({"display-none":t}),ic=t=>({"py-0":!0,"display-none":t});function ac(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function sc(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function oc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function lc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function rc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function cc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function pc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function mc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function uc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function dc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function hc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function _c(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function fc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Confirmation Height"),e.k0s())}function gc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.confirmation_height))}}function Cc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function yc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.commit_fee))}}function bc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Commit Weight"),e.k0s())}function Fc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.commit_weight))}}function xc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Fee/KW"),e.k0s())}function vc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.fee_per_kw))}}function Tc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function kc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function Sc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function Rc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function Ec(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function Ic(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function Lc(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function wc(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"div",48)(2,"mat-select",50),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",51),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onOpenClick(o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",51),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onBumpFee(o))}),e.EFF(7,"Bump Fee"),e.k0s()()()()}}function jc(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function Gc(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function Dc(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Nc(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,jc,2,0,"p",53)(2,Gc,2,0,"p",53)(3,Dc,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Pc(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,De,n.pendingOpenChannels&&(null==n.pendingOpenChannels?null:n.pendingOpenChannels.data)&&(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)>0))}}function $c(t,s){1&t&&e.nrm(0,"tr",55)}function Ac(t,s){1&t&&e.nrm(0,"tr",56)}function Mc(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function Bc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function Oc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Vc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function Yc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function Xc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function Uc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function Hc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function qc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function zc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function Jc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function Qc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function Wc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function Zc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Limbo Balance (Sats)"),e.k0s())}function Kc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.limbo_balance))}}function ep(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Maturity Height"),e.k0s())}function tp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.maturity_height))}}function np(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Blocks till Maturity"),e.k0s())}function ip(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.blocks_til_maturity))}}function ap(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Recovered Balance (Sats)"),e.k0s())}function sp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.recovered_balance))}}function op(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function lp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function rp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function cp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function pp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function mp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function up(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function dp(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",57),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onForceClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function hp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function _p(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function fp(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function gp(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,hp,2,0,"p",53)(2,_p,2,0,"p",53)(3,fp,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Cp(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,De,n.pendingForceClosingChannels&&(null==n.pendingForceClosingChannels?null:n.pendingForceClosingChannels.data)&&(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)>0))}}function yp(t,s){1&t&&e.nrm(0,"tr",55)}function bp(t,s){1&t&&e.nrm(0,"tr",56)}function Fp(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function xp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function vp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Tp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function kp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function Sp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function Rp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function Ep(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function Ip(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function Lp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function wp(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function jp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function Gp(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function Dp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Np(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function Pp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function $p(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function Ap(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function Mp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function Bp(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function Op(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",58),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Vp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function Yp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function Xp(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Up(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Vp,2,0,"p",53)(2,Yp,2,0,"p",53)(3,Xp,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Hp(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,De,n.pendingClosingChannels&&(null==n.pendingClosingChannels?null:n.pendingClosingChannels.data)&&(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)>0))}}function qp(t,s){1&t&&e.nrm(0,"tr",55)}function zp(t,s){1&t&&e.nrm(0,"tr",56)}function Jp(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function Qp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function Wp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Zp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function Kp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function em(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function tm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function nm(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function im(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function am(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function sm(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function om(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function lm(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function rm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Limbo Balance (Sats)"),e.k0s())}function cm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.limbo_balance))}}function pm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function mm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function um(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function dm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function hm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function _m(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function fm(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function gm(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",59),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onWaitClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Cm(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function ym(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function bm(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Fm(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Cm,2,0,"p",53)(2,ym,2,0,"p",53)(3,bm,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function xm(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,ic,n.pendingWaitClosingChannels&&(null==n.pendingWaitClosingChannels?null:n.pendingWaitClosingChannels.data)&&(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)>0))}}function vm(t,s){1&t&&e.nrm(0,"tr",55)}function Tm(t,s){1&t&&e.nrm(0,"tr",56)}let km=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.commonService=a,this.PAGE_ID="peers_channels",this.openTableSetting={tableId:"pending_open",recordsPerPage:c.md,sortBy:"capacity",sortOrder:c.oi.DESCENDING},this.forceClosingTableSetting={tableId:"pending_force_closing",recordsPerPage:c.md,sortBy:"limbo_balance",sortOrder:c.oi.DESCENDING},this.closingTableSetting={tableId:"pending_closing",recordsPerPage:c.md,sortBy:"capacity",sortOrder:c.oi.DESCENDING},this.waitingCloseTableSetting={tableId:"pending_waiting_close",recordsPerPage:c.md,sortBy:"limbo_balance",sortOrder:c.oi.DESCENDING},this.information={},this.pendingChannels={},this.displayedOpenColumns=[],this.pendingOpenChannelsLength=0,this.pendingOpenChannels=new u.I6([]),this.displayedForceClosingColumns=[],this.pendingForceClosingChannelsLength=0,this.pendingForceClosingChannels=new u.I6([]),this.displayedClosingColumns=[],this.pendingClosingChannelsLength=0,this.pendingClosingChannels=new u.I6([]),this.displayedWaitClosingColumns=[],this.pendingWaitClosingChannelsLength=0,this.pendingWaitClosingChannels=new u.I6([]),this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.openTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.openTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.openTableSetting.tableId),this.displayedOpenColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.openTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.openTableSetting.columnSelection)),this.displayedOpenColumns.push("actions"),this.logger.info(this.displayedOpenColumns),this.forceClosingTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.forceClosingTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.forceClosingTableSetting.tableId),this.displayedForceClosingColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.forceClosingTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.forceClosingTableSetting.columnSelection)),this.displayedForceClosingColumns.push("actions"),this.logger.info(this.displayedForceClosingColumns),this.closingTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.closingTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.closingTableSetting.tableId),this.displayedClosingColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.closingTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.closingTableSetting.columnSelection)),this.displayedClosingColumns.push("actions"),this.logger.info(this.displayedClosingColumns),this.waitingCloseTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.waitingCloseTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.waitingCloseTableSetting.tableId),this.displayedWaitClosingColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.waitingCloseTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.waitingCloseTableSetting.columnSelection)),this.displayedWaitClosingColumns.push("actions"),this.logger.info(this.displayedWaitClosingColumns)}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=i.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(i)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(i){const o=JSON.parse(JSON.stringify(i,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:100,type:c.UN.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:100,type:c.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"confirmation_height",value:l.confirmation_height,title:"Confirmation Height",width:25,type:c.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:c.UN.NUMBER}],[{key:"fee_per_kw",value:l.fee_per_kw,title:"Fee/KW",width:25,type:c.UN.NUMBER},{key:"commit_weight",value:l.commit_weight,title:"Commit Weight",width:25,type:c.UN.NUMBER},{key:"commit_fee",value:l.commit_fee,title:"Commit Fee",width:50,type:c.UN.NUMBER}]]}}}))}onBumpFee(i){this.store.dispatch((0,I.xO)({payload:{data:{pendingChannel:i,component:tt}}}))}onForceClosingClick(i){const o=JSON.parse(JSON.stringify(i,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:100,type:c.UN.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:c.UN.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:c.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"limbo_balance",value:l.limbo_balance,title:"Limbo Balance",width:25,type:c.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:c.UN.NUMBER}],[{key:"maturity_height",value:l.maturity_height,title:"Maturity Height",width:25,type:c.UN.NUMBER},{key:"blocks_til_maturity",value:l.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:c.UN.NUMBER},{key:"recovered_balance",value:l.recovered_balance,title:"Recovered Balance",width:50,type:c.UN.NUMBER}]]}}}))}onClosingClick(i){const o=JSON.parse(JSON.stringify(i,["closing_txid"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:50,type:c.UN.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:c.UN.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:c.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:50,type:c.UN.NUMBER}]]}}}))}onWaitClosingClick(i){const o=JSON.parse(JSON.stringify(i,["limbo_balance"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l=JSON.parse(JSON.stringify(i.commitments,["local_txid"],2)),p={};Object.assign(p,o,a,l),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:p.local_txid,title:"Transaction ID",width:100,type:c.UN.STRING}],[{key:"channel_point",value:p.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:p.remote_alias,title:"Peer Alias",width:25,type:c.UN.STRING},{key:"remote_node_pub",value:p.remote_node_pub,title:"Peer Node Pubkey",width:75,type:c.UN.STRING}],[{key:"capacity",value:p.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"limbo_balance",value:p.limbo_balance,title:"Limbo Balance",width:25,type:c.UN.NUMBER},{key:"local_balance",value:p.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:p.remote_balance,title:"Remote Balance",width:25,type:c.UN.NUMBER}]]}}}))}loadOpenChannelsTable(i){this.pendingOpenChannelsLength=i.length?i.length:0,this.pendingOpenChannels=new u.I6([...i]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(i){this.pendingForceClosingChannelsLength=i.length?i.length:0,this.pendingForceClosingChannels=new u.I6([...i]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(i){this.pendingClosingChannelsLength=i.length?i.length:0,this.pendingClosingChannels=new u.I6([...i]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(i){this.pendingWaitClosingChannelsLength=i.length?i.length:0,this.pendingWaitClosingChannels=new u.I6([...i]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-pending-table"]],viewQuery:function(o,a){if(1&o&&e.GBs(R.B4,5),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:202,vars:52,consts:[["table",""],["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_node_pub"],["matColumnDef","channel_point"],["matColumnDef","initiator"],["matColumnDef","commitment_type"],["matColumnDef","confirmation_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","capacity"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","closing_txid"],["matColumnDef","limbo_balance"],["matColumnDef","maturity_height"],["matColumnDef","blocks_til_maturity"],["matColumnDef","recovered_balance"],["matColumnDef","no_pending_force_closing"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["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"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-stroked-button","","color","primary","type","button","tabindex","2",1,"table-actions-button",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","3",1,"table-actions-button",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"span",2),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.j41(4,"mat-accordion",3),e.DNE(5,ac,1,0,"mat-progress-bar",4),e.j41(6,"mat-expansion-panel",5)(7,"mat-expansion-panel-header")(8,"mat-panel-title"),e.EFF(9),e.k0s()(),e.j41(10,"div",6),e.DNE(11,sc,1,0,"mat-progress-bar",4),e.j41(12,"table",7,0),e.qex(14,8),e.DNE(15,oc,2,0,"th",9)(16,lc,4,4,"td",10),e.bVm(),e.qex(17,11),e.DNE(18,rc,2,0,"th",9)(19,cc,4,4,"td",10),e.bVm(),e.qex(20,12),e.DNE(21,pc,2,0,"th",9)(22,mc,4,4,"td",10),e.bVm(),e.qex(23,13),e.DNE(24,uc,2,0,"th",9)(25,dc,3,4,"td",10),e.bVm(),e.qex(26,14),e.DNE(27,hc,2,0,"th",9)(28,_c,3,5,"td",10),e.bVm(),e.qex(29,15),e.DNE(30,fc,2,0,"th",16)(31,gc,4,3,"td",10),e.bVm(),e.qex(32,17),e.DNE(33,Cc,2,0,"th",16)(34,yc,4,3,"td",10),e.bVm(),e.qex(35,18),e.DNE(36,bc,2,0,"th",16)(37,Fc,4,3,"td",10),e.bVm(),e.qex(38,19),e.DNE(39,xc,2,0,"th",16)(40,vc,4,3,"td",10),e.bVm(),e.qex(41,20),e.DNE(42,Tc,2,0,"th",16)(43,kc,4,3,"td",10),e.bVm(),e.qex(44,21),e.DNE(45,Sc,2,0,"th",16)(46,Rc,4,3,"td",10),e.bVm(),e.qex(47,22),e.DNE(48,Ec,2,0,"th",16)(49,Ic,4,3,"td",10),e.bVm(),e.qex(50,23),e.DNE(51,Lc,3,0,"th",24)(52,wc,8,0,"td",25),e.bVm(),e.qex(53,26),e.DNE(54,Nc,4,3,"td",27),e.bVm(),e.DNE(55,Pc,1,3,"tr",28)(56,$c,1,0,"tr",29)(57,Ac,1,0,"tr",30),e.k0s()()(),e.DNE(58,Mc,1,0,"mat-progress-bar",4),e.j41(59,"mat-expansion-panel",5)(60,"mat-expansion-panel-header")(61,"mat-panel-title"),e.EFF(62),e.k0s()(),e.j41(63,"div",6)(64,"table",31,0),e.qex(66,32),e.DNE(67,Bc,2,0,"th",9)(68,Oc,4,4,"td",10),e.bVm(),e.qex(69,8),e.DNE(70,Vc,2,0,"th",9)(71,Yc,4,4,"td",10),e.bVm(),e.qex(72,11),e.DNE(73,Xc,2,0,"th",9)(74,Uc,4,4,"td",10),e.bVm(),e.qex(75,12),e.DNE(76,Hc,2,0,"th",9)(77,qc,4,4,"td",10),e.bVm(),e.qex(78,13),e.DNE(79,zc,2,0,"th",9)(80,Jc,3,4,"td",10),e.bVm(),e.qex(81,14),e.DNE(82,Qc,2,0,"th",9)(83,Wc,3,5,"td",10),e.bVm(),e.qex(84,33),e.DNE(85,Zc,2,0,"th",16)(86,Kc,4,3,"td",10),e.bVm(),e.qex(87,34),e.DNE(88,ep,2,0,"th",16)(89,tp,4,3,"td",10),e.bVm(),e.qex(90,35),e.DNE(91,np,2,0,"th",16)(92,ip,4,3,"td",10),e.bVm(),e.qex(93,36),e.DNE(94,ap,2,0,"th",16)(95,sp,4,3,"td",10),e.bVm(),e.qex(96,20),e.DNE(97,op,2,0,"th",16)(98,lp,4,3,"td",10),e.bVm(),e.qex(99,21),e.DNE(100,rp,2,0,"th",16)(101,cp,4,3,"td",10),e.bVm(),e.qex(102,22),e.DNE(103,pp,2,0,"th",16)(104,mp,4,3,"td",10),e.bVm(),e.qex(105,23),e.DNE(106,up,3,0,"th",24)(107,dp,3,0,"td",25),e.bVm(),e.qex(108,37),e.DNE(109,gp,4,3,"td",27),e.bVm(),e.DNE(110,Cp,1,3,"tr",28)(111,yp,1,0,"tr",29)(112,bp,1,0,"tr",30),e.k0s()()(),e.DNE(113,Fp,1,0,"mat-progress-bar",4),e.j41(114,"mat-expansion-panel",5)(115,"mat-expansion-panel-header")(116,"mat-panel-title"),e.EFF(117),e.k0s()(),e.j41(118,"div",6)(119,"table",31,0),e.qex(121,32),e.DNE(122,xp,2,0,"th",9)(123,vp,4,4,"td",10),e.bVm(),e.qex(124,8),e.DNE(125,Tp,2,0,"th",9)(126,kp,4,4,"td",10),e.bVm(),e.qex(127,11),e.DNE(128,Sp,2,0,"th",9)(129,Rp,4,4,"td",10),e.bVm(),e.qex(130,12),e.DNE(131,Ep,2,0,"th",9)(132,Ip,4,4,"td",10),e.bVm(),e.qex(133,13),e.DNE(134,Lp,2,0,"th",9)(135,wp,3,4,"td",10),e.bVm(),e.qex(136,14),e.DNE(137,jp,2,0,"th",9)(138,Gp,3,5,"td",10),e.bVm(),e.qex(139,20),e.DNE(140,Dp,2,0,"th",16)(141,Np,4,3,"td",10),e.bVm(),e.qex(142,21),e.DNE(143,Pp,2,0,"th",16)(144,$p,4,3,"td",10),e.bVm(),e.qex(145,22),e.DNE(146,Ap,2,0,"th",16)(147,Mp,4,3,"td",10),e.bVm(),e.qex(148,23),e.DNE(149,Bp,3,0,"th",24)(150,Op,3,0,"td",25),e.bVm(),e.qex(151,38),e.DNE(152,Up,4,3,"td",27),e.bVm(),e.DNE(153,Hp,1,3,"tr",28)(154,qp,1,0,"tr",29)(155,zp,1,0,"tr",30),e.k0s()()(),e.DNE(156,Jp,1,0,"mat-progress-bar",4),e.j41(157,"mat-expansion-panel",5)(158,"mat-expansion-panel-header")(159,"mat-panel-title"),e.EFF(160),e.k0s()(),e.j41(161,"div",6)(162,"table",31,0),e.qex(164,32),e.DNE(165,Qp,2,0,"th",9)(166,Wp,4,4,"td",10),e.bVm(),e.qex(167,8),e.DNE(168,Zp,2,0,"th",9)(169,Kp,4,4,"td",10),e.bVm(),e.qex(170,11),e.DNE(171,em,2,0,"th",9)(172,tm,4,4,"td",10),e.bVm(),e.qex(173,12),e.DNE(174,nm,2,0,"th",9)(175,im,4,4,"td",10),e.bVm(),e.qex(176,13),e.DNE(177,am,2,0,"th",9)(178,sm,3,4,"td",10),e.bVm(),e.qex(179,14),e.DNE(180,om,2,0,"th",9)(181,lm,3,5,"td",10),e.bVm(),e.qex(182,33),e.DNE(183,rm,2,0,"th",16)(184,cm,4,3,"td",10),e.bVm(),e.qex(185,20),e.DNE(186,pm,2,0,"th",16)(187,mm,4,3,"td",10),e.bVm(),e.qex(188,21),e.DNE(189,um,2,0,"th",16)(190,dm,4,3,"td",10),e.bVm(),e.qex(191,22),e.DNE(192,hm,2,0,"th",16)(193,_m,4,3,"td",10),e.bVm(),e.qex(194,23),e.DNE(195,fm,3,0,"th",24)(196,gm,3,0,"td",25),e.bVm(),e.qex(197,39),e.DNE(198,Fm,4,3,"td",27),e.bVm(),e.DNE(199,xm,1,3,"tr",28)(200,vm,1,0,"tr",29)(201,Tm,1,0,"tr",30),e.k0s()()()()()),2&o&&(e.R7$(2),e.SpI("Total Limbo Balance: ",e.bMT(3,38,a.pendingChannels.total_limbo_balance)," Sats"),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Open (",a.pendingOpenChannelsLength,")"),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.openTableSetting.sortBy)("matSortDirection",a.openTableSetting.sortOrder)("dataSource",a.pendingOpenChannels)("ngClass",e.eq3(40,xe,""!==a.errorMessage)),e.R7$(43),e.Y8G("matFooterRowDef",e.lJ4(42,K1)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedOpenColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedOpenColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Force Closing (",a.pendingForceClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.forceClosingTableSetting.sortBy)("matSortDirection",a.forceClosingTableSetting.sortOrder)("dataSource",a.pendingForceClosingChannels)("ngClass",e.eq3(43,xe,""!==a.errorMessage)),e.R7$(46),e.Y8G("matFooterRowDef",e.lJ4(45,ec)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedForceClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedForceClosingColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Closing (",a.pendingClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.closingTableSetting.sortBy)("matSortDirection",a.closingTableSetting.sortOrder)("dataSource",a.pendingClosingChannels)("ngClass",e.eq3(46,xe,""!==a.errorMessage)),e.R7$(34),e.Y8G("matFooterRowDef",e.lJ4(48,tc)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedClosingColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Waiting Close (",a.pendingWaitClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.waitingCloseTableSetting.sortBy)("matSortDirection",a.waitingCloseTableSetting.sortOrder)("dataSource",a.pendingWaitClosingChannels)("ngClass",e.eq3(49,xe,""!==a.errorMessage)),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(51,nc)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedWaitClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedWaitClosingColumns))},dependencies:[_.YU,_.bT,_.B3,N.$z,q.BS,q.GK,q.Z2,q.WN,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,B.Ld,_.QX,J.VD],styles:["tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}))}return t(),s})();const Sm=()=>["all"],Rm=t=>({"error-border":t,"overflow-auto":!0}),Em=()=>["no_closed_channel"],ue=t=>({width:t}),Im=t=>({"display-none":t});function Lm(t,s){if(1&t&&(e.j41(0,"mat-option",36),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function wm(t,s){1&t&&e.nrm(0,"mat-progress-bar",37)}function jm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Close Type"),e.k0s())}function Gm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"mat-icon",41),e.EFF(3,"info_outline"),e.k0s(),e.EFF(4),e.k0s()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(2),e.Y8G("matTooltip",i.channelClosureType[n.close_type].tooltip),e.R7$(2),e.SpI(" ",i.channelClosureType[n.close_type].name," ")}}function Dm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Peer"),e.k0s())}function Nm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_alias)}}function Pm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Pubkey"),e.k0s())}function $m(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_pubkey)}}function Am(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Channel Point"),e.k0s())}function Mm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Bm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Channel ID"),e.k0s())}function Om(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function Vm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Closing Tx Hash"),e.k0s())}function Ym(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.closing_tx_hash)}}function Xm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Chain Hash"),e.k0s())}function Um(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chain_hash)}}function Hm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Open Initiator"),e.k0s())}function qm(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.open_initiator,"initiator_"))}}function zm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Close Initiator"),e.k0s())}function Jm(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.close_initiator,"initiator_"))}}function Qm(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Timelocked Balance (Sats)"),e.k0s())}function Wm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.time_locked_balance)," ")}}function Zm(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Km(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function eu(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Close Height"),e.k0s())}function tu(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.close_height)," ")}}function nu(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Settled Balance (Sats)"),e.k0s())}function iu(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.settled_balance)," ")}}function au(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",46)(1,"div",47)(2,"mat-select",48),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",49),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function su(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",39)(1,"span",45)(2,"button",50),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onClosedChannelClick(a,o))}),e.EFF(3,"View Info"),e.k0s()()()}}function ou(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No closed channel available."),e.k0s())}function lu(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting closed channels..."),e.k0s())}function ru(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function cu(t,s){if(1&t&&(e.j41(0,"td",51),e.DNE(1,ou,2,0,"p",52)(2,lu,2,0,"p",52)(3,ru,2,1,"p",52),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function pu(t,s){if(1&t&&e.nrm(0,"tr",53),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,Im,(null==n.closedChannels?null:n.closedChannels.data)&&(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)>0))}}function mu(t,s){1&t&&e.nrm(0,"tr",54)}function uu(t,s){1&t&&e.nrm(0,"tr",55)}let du=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.commonService=a,this.camelCaseWithReplace=l,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"closed",recordsPerPage:c.md,sortBy:"close_type",sortOrder:c.oi.DESCENDING},this.channelClosureType=c.tj,this.faHistory=x.Int,this.displayedColumns=[],this.closedChannelsData=[],this.closedChannels=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Bw).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.closedChannelsData=i.closedChannels,this.closedChannelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(i)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.closedChannels.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=JSON.stringify(i).toLowerCase();break;case"close_type":a=i.close_type&&this.channelClosureType[i.close_type]&&this.channelClosureType[i.close_type].name?this.channelClosureType[i.close_type].name.toLowerCase():"";break;case"open_initiator":case"close_initiator":a=this.camelCaseWithReplace.transform(i[this.selFilterBy]||"","initiator_").trim().toLowerCase();break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"close_type"===this.selFilterBy||"open_initiator"===this.selFilterBy||"close_initiator"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}onClosedChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[i.close_type].name,title:"Close Type",width:30,type:c.UN.STRING},{key:"settled_balance",value:i.settled_balance,title:"Settled Balance",width:30,type:c.UN.NUMBER},{key:"time_locked_balance",value:i.time_locked_balance,title:"Time Locked Balance",width:40,type:c.UN.NUMBER}],[{key:"chan_id",value:i.chan_id,title:"Channel ID",width:30},{key:"capacity",value:i.capacity,title:"Capacity",width:30,type:c.UN.NUMBER},{key:"close_height",value:i.close_height,title:"Close Height",width:40,type:c.UN.NUMBER}],[{key:"remote_alias",value:i.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:i.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:i.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:i.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:c.UN.STRING}]]}}}))}loadClosedChannelsTable(i){this.closedChannels=new u.I6([...i]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.closedChannels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU($.h),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-closed-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:66,vars:18,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","chan_id"],["matColumnDef","closing_tx_hash"],["matColumnDef","chain_hash"],["matColumnDef","open_initiator"],["matColumnDef","close_initiator"],["matColumnDef","time_locked_balance"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","capacity"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","no_closed_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",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],[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-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(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,Lm,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,wm,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,jm,2,0,"th",13)(20,Gm,5,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Dm,2,0,"th",13)(23,Nm,4,4,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,Pm,2,0,"th",13)(26,$m,4,4,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,Am,2,0,"th",13)(29,Mm,4,4,"td",14),e.bVm(),e.qex(30,18),e.DNE(31,Bm,2,0,"th",13)(32,Om,4,4,"td",14),e.bVm(),e.qex(33,19),e.DNE(34,Vm,2,0,"th",13)(35,Ym,4,4,"td",14),e.bVm(),e.qex(36,20),e.DNE(37,Xm,2,0,"th",13)(38,Um,4,4,"td",14),e.bVm(),e.qex(39,21),e.DNE(40,Hm,2,0,"th",13)(41,qm,3,4,"td",14),e.bVm(),e.qex(42,22),e.DNE(43,zm,2,0,"th",13)(44,Jm,3,4,"td",14),e.bVm(),e.qex(45,23),e.DNE(46,Qm,2,0,"th",24)(47,Wm,4,3,"td",14),e.bVm(),e.qex(48,25),e.DNE(49,Zm,2,0,"th",24)(50,Km,4,3,"td",14),e.bVm(),e.qex(51,26),e.DNE(52,eu,2,0,"th",24)(53,tu,4,3,"td",14),e.bVm(),e.qex(54,27),e.DNE(55,nu,2,0,"th",24)(56,iu,4,3,"td",14),e.bVm(),e.qex(57,28),e.DNE(58,au,6,0,"th",29)(59,su,4,0,"td",14),e.bVm(),e.qex(60,30),e.DNE(61,cu,4,3,"td",31),e.bVm(),e.DNE(62,pu,1,3,"tr",32)(63,mu,1,0,"tr",33)(64,uu,1,0,"tr",34),e.k0s()(),e.nrm(65,"mat-paginator",35),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,Sm).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.closedChannels)("ngClass",e.eq3(15,Rm,""!==a.errorMessage)),e.R7$(46),e.Y8G("matFooterRowDef",e.lJ4(17,Em)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,oe.An,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.QX,J.VD],encapsulation:2}))}return t(),s})();const hu=()=>["all"],_u=t=>({"error-border":t}),fu=()=>["no_channel"],gu=t=>({"display-none":t});function Cu(t,s){if(1&t&&(e.j41(0,"mat-option",33),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function yu(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function bu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Amount (Sats)"),e.k0s())}function Fu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.amount)," ")}}function xu(t,s){if(1&t&&(e.qex(0),e.DNE(1,Fu,3,3,"span",39),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function vu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,xu,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" Active HTLCs: ",null==n||null==n.pending_htlcs?null:n.pending_htlcs.length," "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Tu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Alias/Incoming"),e.k0s())}function ku(t,s){if(1&t&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null!=n&&n.incoming?"Yes":"No"," ")}}function Su(t,s){if(1&t&&(e.qex(0),e.DNE(1,ku,2,1,"span",41),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Ru(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,Su,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(null==n?null:n.remote_alias),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Eu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Forwarding Channel"),e.k0s())}function Iu(t,s){if(1&t&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.forwarding_channel," ")}}function Lu(t,s){if(1&t&&(e.qex(0),e.DNE(1,Iu,2,1,"span",41),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function wu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,Lu,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function ju(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"HTLC Index"),e.k0s()())}function Gu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.htlc_index)," ")}}function Du(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Gu,3,3,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Nu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Du,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Pu(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"Forwarding HTLC Index"),e.k0s()())}function $u(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.forwarding_htlc_index)," ")}}function Au(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,$u,3,3,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Mu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Au,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Bu(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"Expiration Height"),e.k0s()())}function Ou(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n?null:n.expiration_height,"1.0-0")," ")}}function Vu(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ou,3,4,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Yu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Vu,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Xu(t,s){1&t&&(e.j41(0,"th",43)(1,"span",40),e.EFF(2,"Hash Lock"),e.k0s()())}function Uu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.hash_lock," ")}}function Hu(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Uu,2,1,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function qu(t,s){if(1&t&&(e.j41(0,"td",44)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Hu,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function zu(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",48),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Ju(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",53)(1,"button",54),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2).$implicit,l=e.XpG();return r.Njj(l.onHTLCClick(o,a))}),e.EFF(2),e.k0s()()}if(2&t){const n=s.index;e.R7$(2),e.SpI("View ",n+1)}}function Qu(t,s){if(1&t&&(e.j41(0,"div"),e.DNE(1,Ju,3,1,"div",52),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Wu(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"span",50)(2,"button",51),e.bIt("click",function(){const o=r.eBV(n).$implicit;return r.Njj(o.is_expanded=!o.is_expanded)}),e.EFF(3),e.k0s()(),e.DNE(4,Qu,2,1,"div",38),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(3),e.JRh(n.is_expanded?"Hide":"Show"),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Zu(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No active htlc available."),e.k0s())}function Ku(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting active htlcs..."),e.k0s())}function ed(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function td(t,s){if(1&t&&(e.j41(0,"td",55),e.DNE(1,Zu,2,0,"p",38)(2,Ku,2,0,"p",38)(3,ed,2,1,"p",38),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function nd(t,s){if(1&t&&e.nrm(0,"tr",56),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,gu,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function id(t,s){1&t&&e.nrm(0,"tr",57)}function ad(t,s){1&t&&e.nrm(0,"tr",58)}let sd=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.camelCaseWithReplace=l,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"active_HTLCs",recordsPerPage:c.md,sortBy:"expiration_height",sortOrder:c.oi.DESCENDING},this.channels=new u.I6([]),this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsJSONArr=i.channels?.filter(o=>o.pending_htlcs&&o.pending_htlcs.length>0)||[],this.channelsJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(i)})}ngAfterViewInit(){this.channelsJSONArr.length>0&&this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:o.remote_alias,title:"Alias",width:100,type:c.UN.STRING}],[{key:"amount",value:i.amount,title:"Amount (Sats)",width:50,type:c.UN.NUMBER},{key:"incoming",value:i.incoming?"Yes":"No",title:"Incoming",width:50,type:c.UN.STRING}],[{key:"expiration_height",value:i.expiration_height,title:"Expiration Height",width:50,type:c.UN.NUMBER},{key:"hash_lock",value:i.hash_lock,title:"Hash Lock",width:50,type:c.UN.STRING}]]}}}))}onChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{channel:i,showCopy:!0,component:we}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterBy?(i.remote_alias?i.remote_alias.toLowerCase():"")+i.pending_htlcs?.map(l=>JSON.stringify(l)+(l.incoming?"yes":"no")):typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString(),a.includes(o)}}loadHTLCsTable(i){this.channels=new u.I6(i?[...i]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>{switch(a){case"amount":return this.commonService.sortByKey(o.pending_htlcs,a,"number",this.sort?.direction),o.pending_htlcs&&o.pending_htlcs.length?o.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(o.pending_htlcs,a,"boolean",this.sort?.direction),o.remote_alias?o.remote_alias:o.remote_pubkey?o.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(o.pending_htlcs,a,"number",this.sort?.direction),o;default:return o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null}},this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data))?.reduce((a,l)=>a.concat(l.pending_htlcs?l.pending_htlcs:l),[])}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("HTLCs")}])],decls:48,vars:18,consts:[["table",""],["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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","forwarding_channel"],["matColumnDef","htlc_index"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","forwarding_htlc_index"],["matColumnDef","expiration_height"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayout","column","fxLayoutAlign","center end",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",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],["fxLayoutAlign","end center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayout","column","fxLayoutAlign","center end",1,"px-2"],["fxLayoutAlign","end center",1,"htlc-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["class","htlc-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,Cu,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,yu,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,bu,2,0,"th",13)(20,vu,4,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Tu,2,0,"th",13)(23,Ru,4,2,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,Eu,2,0,"th",13)(26,wu,4,2,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,ju,3,0,"th",18)(29,Nu,4,2,"td",14),e.bVm(),e.qex(30,19),e.DNE(31,Pu,3,0,"th",18)(32,Mu,4,2,"td",14),e.bVm(),e.qex(33,20),e.DNE(34,Bu,3,0,"th",18)(35,Yu,4,2,"td",14),e.bVm(),e.qex(36,21),e.DNE(37,Xu,3,0,"th",22)(38,qu,4,2,"td",23),e.bVm(),e.qex(39,24),e.DNE(40,zu,6,0,"th",25)(41,Wu,5,2,"td",26),e.bVm(),e.qex(42,27),e.DNE(43,td,4,3,"td",28),e.bVm(),e.DNE(44,nd,1,3,"tr",29)(45,id,1,0,"tr",30)(46,ad,1,0,"tr",31),e.k0s()(),e.nrm(47,"mat-paginator",32),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,hu).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",e.eq3(15,_u,""!==a.errorMessage)),e.R7$(28),e.Y8G("matFooterRowDef",e.lJ4(17,fu)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX],styles:[".mat-column-amount[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem;padding-right:2rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:3rem}.htlc-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-column-actions[_ngcontent-%COMP%] .htlc-group-head[_ngcontent-%COMP%], .mat-column-actions[_ngcontent-%COMP%] .htlc-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_creation_date[_ngcontent-%COMP%]{min-width:7rem}"]}))}return t(),s})();function od(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Wallet password is required."),e.k0s())}let ld=(()=>{var t;class s{constructor(i){this.store=i,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,T.WE)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-unlock-wallet"]],standalone:!1,decls:14,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","name","walletPassword","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),e.EFF(4,"Password"),e.k0s(),e.j41(5,"input",3),e.mxI("ngModelChange",function(p){return e.DH7(a.walletPassword,p)||(a.walletPassword=p),p}),e.k0s(),e.j41(6,"mat-hint"),e.EFF(7,"Enter Wallet Password"),e.k0s(),e.DNE(8,od,2,0,"mat-error",4),e.k0s(),e.j41(9,"div",5)(10,"button",6),e.bIt("click",function(){return a.resetData()}),e.EFF(11,"Clear Field"),e.k0s(),e.j41(12,"button",7),e.bIt("click",function(){return a.onUnlockWallet()}),e.EFF(13,"Unlock Wallet"),e.k0s()()()()),2&o&&(e.R7$(5),e.R50("ngModel",a.walletPassword),e.R7$(3),e.Y8G("ngIf",!a.walletPassword))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,M.fg,C.rl,C.nJ,C.MV,C.TL,f.DJ,f.sA,f.UI,te.N],encapsulation:2}))}return t(),s})();var rd=y(97768);function cd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",6),e.EFF(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),e.k0s(),e.j41(4,"div",7)(5,"button",8),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.proceed=!1,r.Njj(o.warnRes=!0)}),e.EFF(6,"Do Not Proceed"),e.k0s(),e.j41(7,"button",9),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.proceed=!0,r.Njj(o.warnRes=!0)}),e.EFF(8,"Proceed"),e.k0s()()()()}}function pd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",10)(1,"div",11),e.EFF(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),e.k0s(),e.j41(3,"div",7)(4,"button",12),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.warnRes=!1)}),e.EFF(5,"Go Back"),e.k0s()()()}}function md(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function ud(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password must be at least 8 characters in length."),e.k0s())}function dd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Confirm password is required."),e.k0s())}function hd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Confirm password must be at least 8 characters in length."),e.k0s())}function _d(t,s){1&t&&(e.j41(0,"div",41)(1,"mat-icon",42),e.EFF(2,"cancel"),e.k0s(),e.EFF(3,"Passwords do not match. "),e.k0s())}function fd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Cipher seed is required."),e.k0s())}function gd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),e.k0s())}function Cd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Passphrase is required."),e.k0s())}function yd(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"vpn_key"),e.k0s())}function bd(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"swap_calls"),e.k0s())}function Fd(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"fingerprint"),e.k0s())}function xd(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-vertical-stepper",13,0)(2,"mat-step",14)(3,"form",15)(4,"mat-form-field",16)(5,"mat-label"),e.EFF(6,"Password"),e.k0s(),e.nrm(7,"input",17),e.j41(8,"mat-hint"),e.EFF(9,"Enter Wallet Password"),e.k0s(),e.DNE(10,md,2,0,"mat-error",2)(11,ud,2,0,"mat-error",2),e.k0s(),e.j41(12,"mat-form-field",16)(13,"mat-label"),e.EFF(14,"Confirm Password"),e.k0s(),e.nrm(15,"input",18),e.j41(16,"mat-hint"),e.EFF(17,"Confirm Wallet Password"),e.k0s(),e.DNE(18,dd,2,0,"mat-error",2)(19,hd,2,0,"mat-error",2),e.k0s(),e.DNE(20,_d,4,0,"div",19),e.j41(21,"div",20)(22,"button",21),e.EFF(23,"Next"),e.k0s()()()(),e.j41(24,"mat-step",22)(25,"form",23)(26,"div",24)(27,"mat-slide-toggle",25),e.EFF(28,"Existing Cipher"),e.k0s(),e.j41(29,"mat-form-field",26)(30,"mat-label"),e.EFF(31,"Comma separated array of 24 words cipher seed"),e.k0s(),e.nrm(32,"input",27),e.j41(33,"mat-hint"),e.EFF(34,"Cipher Seed"),e.k0s(),e.DNE(35,fd,2,0,"mat-error",2)(36,gd,2,0,"mat-error",2),e.k0s()(),e.j41(37,"div",28)(38,"button",29),e.EFF(39,"Back"),e.k0s(),e.j41(40,"button",30),e.EFF(41,"Next"),e.k0s()()()(),e.j41(42,"mat-step",31)(43,"form",23)(44,"div",24)(45,"mat-slide-toggle",32),e.EFF(46,"Existing Passphrase"),e.k0s(),e.j41(47,"mat-form-field",33)(48,"mat-label"),e.EFF(49,"Passphrase"),e.k0s(),e.nrm(50,"input",34),e.j41(51,"mat-hint"),e.EFF(52,"Enter Passphrase"),e.k0s(),e.DNE(53,Cd,2,0,"mat-error",2),e.k0s()(),e.j41(54,"div",28)(55,"button",35),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(56,"Clear"),e.k0s(),e.j41(57,"button",36),e.EFF(58,"Back"),e.k0s(),e.j41(59,"button",37),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onInitWallet())}),e.EFF(60,"Initialize Wallet"),e.k0s()()()(),e.DNE(61,yd,2,0,"ng-template",38)(62,bd,2,0,"ng-template",39)(63,Fd,2,0,"ng-template",40),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",n.passwordFormGroup),e.R7$(),e.Y8G("formGroup",n.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletPassword.errors?null:n.passwordFormGroup.controls.initWalletPassword.errors.required),e.R7$(),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletPassword.errors?null:n.passwordFormGroup.controls.initWalletPassword.errors.minlength),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:n.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),e.R7$(),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:n.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),e.R7$(),e.Y8G("ngIf",(null==n.passwordFormGroup.errors?null:n.passwordFormGroup.errors.unmatchedPasswords)&&(n.passwordFormGroup.controls.initWalletPassword.touched||n.passwordFormGroup.controls.initWalletPassword.dirty)&&(n.passwordFormGroup.controls.initWalletConfirmPassword.touched||n.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),e.R7$(4),e.Y8G("stepControl",n.cipherFormGroup),e.R7$(),e.Y8G("formGroup",n.cipherFormGroup),e.R7$(10),e.Y8G("ngIf",null==n.cipherFormGroup.controls.cipherSeed.errors?null:n.cipherFormGroup.controls.cipherSeed.errors.required),e.R7$(),e.Y8G("ngIf",!(null!=n.cipherFormGroup.controls.cipherSeed.errors&&n.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==n.cipherFormGroup.controls.cipherSeed.errors?null:n.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),e.R7$(6),e.Y8G("stepControl",n.passphraseFormGroup),e.R7$(),e.Y8G("formGroup",n.passphraseFormGroup),e.R7$(10),e.Y8G("ngIf",null==n.passphraseFormGroup.controls.passphrase.errors?null:n.passphraseFormGroup.controls.passphrase.errors.required)}}function vd(t,s){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Td(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",43),e.EFF(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),e.k0s(),e.j41(4,"div",44),e.DNE(5,vd,2,1,"span",45),e.k0s(),e.j41(6,"div",46),e.EFF(7,"Wallet initialization is done."),e.k0s(),e.j41(8,"div",46),e.EFF(9,"The node will be usable only after LND has synced completely with the network."),e.k0s(),e.j41(10,"div",46),e.EFF(11,"Click continue only after writing down the seed."),e.k0s(),e.j41(12,"div",7)(13,"button",47),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onGoToHome())}),e.EFF(14,"Go To Home"),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(5),e.Y8G("ngForOf",n.genSeedResponse)}}function kd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",46),e.EFF(3,"Something went wrong! Unable to initialize wallet!"),e.k0s(),e.j41(4,"div",7)(5,"button",49),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(6,"Restart"),e.k0s()()()()}}function Sd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",46),e.EFF(3,"Wallet recovery is done."),e.k0s(),e.j41(4,"div",46),e.EFF(5,"The node will be usable only after LND has synced completely with the network."),e.k0s(),e.j41(6,"div",7)(7,"button",50),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onGoToHome())}),e.EFF(8,"Go To Home"),e.k0s()()()()}}function Rd(t){const s=t.get("initWalletPassword"),n=t.get("initWalletConfirmPassword");return s&&n&&s.value!==n.value?{unmatchedPasswords:!0}:null}function Ed(t){const s=t.value.toString().trim().split(",")||[];return s&&24!==s.length?{invalidCipher:!0}:null}let Id=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.formBuilder=o,this.lndEffects=a,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[d.k0.required,d.k0.minLength(8)]],initWalletConfirmPassword:["",[d.k0.required,d.k0.minLength(8)]]},{validators:Rd}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[Ed]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,g.Q)(this.unsubs[0])).subscribe(i=>{i?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,g.Q)(this.unsubs[1])).subscribe(i=>{i?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,g.Q)(this.unsubs[2])).subscribe(i=>{this.initWalletResponse=i}),this.lndEffects.genSeedResponse.pipe((0,g.Q)(this.unsubs[3])).subscribe(i=>{this.genSeedResponse=i,this.store.dispatch((0,T.GZ)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const i=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,T.GZ)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:i,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:i}}))}else this.store.dispatch((0,T.oX)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,T.X9)()),this.store.dispatch((0,T.Br)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(d.ze),e.rXU(me.L))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-initialize-wallet"]],viewQuery:function(o,a){if(1&o&&e.GBs(z.M6,5),2&o){let l;e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,features:[e.Jv_([{provide:rd.x8,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["stepper",""],["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["labelPosition","before","fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet"],["fxLayout","column","fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["labelPosition","before","fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet"],["fxLayout","column","fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,cd,9,0,"div",2)(2,pd,6,0,"div",3)(3,xd,64,15,"mat-vertical-stepper",4)(4,Td,15,1,"div",2)(5,kd,7,0,"div",2)(6,Sd,9,0,"div",2),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",a.insecureLND&&!a.warnRes),e.R7$(),e.Y8G("ngIf",a.warnRes&&!a.proceed),e.R7$(),e.Y8G("ngIf",(!a.insecureLND||a.warnRes&&a.proceed)&&a.genSeedResponse.length<=0&&""===a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length>0&&""!==a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length>0&&""===a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length<=0&&""!==a.initWalletResponse))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.cV,d.j4,d.JD,N.$z,oe.An,M.fg,C.rl,C.nJ,C.MV,C.TL,f.DJ,f.sA,f.UI,he.sG,z.V5,z.M6,z.F7,z.FR,z.xJ],encapsulation:2}))}return t(),s})(),Ld=(()=>{var t;class s{constructor(){this.faWallet=x.BA1}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-wallet"]],standalone:!1,decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Unlock"],["label","Initialize"]],template:function(o,a){1&o&&(e.j41(0,"div",0),e.nrm(1,"fa-icon",1),e.j41(2,"span",2),e.EFF(3,"Wallet"),e.k0s()(),e.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"mat-tab-group",5)(8,"mat-tab",6),e.nrm(9,"rtl-unlock-wallet"),e.k0s(),e.j41(10,"mat-tab",7),e.nrm(11,"rtl-initialize-wallet"),e.k0s()()()()()),2&o&&(e.R7$(),e.Y8G("icon",a.faWallet))},dependencies:[O.aY,k.RN,k.m2,f.DJ,f.sA,A.mq,A.T8,ld,Id],encapsulation:2}))}return t(),s})();function wd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let jd=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.faExchangeAlt=x._qq,this.faChartPie=x.W1p,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"lookuptransactions",name:"Lookup"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1]),(0,ge.E)(this.store.select(H._c))).subscribe(([o,a])=>{this.currencyUnits=a?.settings.currencyUnits||[],this.balances=a?.settings.userPersona===c.HW.OPERATOR?[{title:"Local Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}],this.logger.info(o)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-transactions"]],standalone:!1,decls:21,vars:5,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Lightning Balance"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),e.nrm(7,"rtl-currency-unit-converter",6),e.k0s()()(),e.j41(8,"div",7),e.nrm(9,"fa-icon",2),e.j41(10,"span",3),e.EFF(11,"Lightning Transactions"),e.k0s()(),e.j41(12,"div",8)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",9),e.DNE(16,wd,2,4,"div",10),e.k0s(),e.nrm(17,"mat-tab-nav-panel",null,0),e.j41(19,"div",11),e.nrm(20,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(18);e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faExchangeAlt),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,Ee.f,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();function Gd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let Dd=(()=>{var t;class s{constructor(i){this.router=i,this.faSearch=x.MjD,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-graph"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Graph Lookups"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Gd,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faSearch),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();const Nd=t=>({"overflow-auto error-border":t,"overflow-auto":!0}),Ne=t=>({width:t});function Pd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Destination pubkey is required."),e.k0s())}function $d(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function Ad(t,s){1&t&&e.nrm(0,"mat-progress-bar",39)}function Md(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Hop"),e.k0s())}function Bd(t,s){if(1&t&&(e.j41(0,"td",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.hop_sequence)}}function Od(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Peer"),e.k0s())}function Vd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ne,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pubkey_alias)}}function Yd(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Peer Pubkey"),e.k0s())}function Xd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ne,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pub_key)}}function Ud(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Channel ID"),e.k0s())}function Hd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ne,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function qd(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"TLV Payload"),e.k0s())}function zd(t,s){if(1&t&&(e.j41(0,"td",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null!=n&&n.tlv_payload?"Yes":"No")}}function Jd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Expiry"),e.k0s())}function Qd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.expiry))}}function Wd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Zd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.chan_capacity))}}function Kd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Amount To Fwd (Sats)"),e.k0s())}function eh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.amt_to_forward)," ")}}function th(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Fee (mSats)"),e.k0s())}function nh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.fee_msat)," ")}}function ih(t,s){1&t&&(e.j41(0,"th",46)(1,"div",47),e.EFF(2,"Actions"),e.k0s()())}function ah(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",48)(1,"button",49),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onHopClick(a,o))}),e.EFF(2,"View Info"),e.k0s()()}}function sh(t,s){1&t&&e.nrm(0,"tr",50)}function oh(t,s){1&t&&e.nrm(0,"tr",51)}let lh=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.colWidth="20rem",this.PAGE_ID="graph_lookup",this.tableSetting={tableId:"query_routes",recordsPerPage:c.md,sortBy:"hop_sequence",sortOrder:c.oi.ASCENDING},this.destinationPubkey="",this.amount=null,this.qrHops=new u.I6([]),this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=x.TBz,this.faExclamationTriangle=x.zpE,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.lndEffects.setQueryRoutes.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.qrHops=new u.I6([]),i.routes&&i.routes.length&&i.routes.length>0&&i.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new u.I6([...i.routes[0].hops]),this.qrHops.data=i.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new u.I6([]),this.flgLoading[0]=!0,this.store.dispatch((0,T.T4)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:i.hop_sequence,title:"Sequence",width:33,type:c.UN.NUMBER},{key:"amt_to_forward",value:i.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:c.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:34,type:c.UN.NUMBER}],[{key:"chan_capacity",value:i.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:c.UN.NUMBER},{key:"expiry",value:i.expiry,title:"Expiry",width:50,type:c.UN.NUMBER}],[{key:"pubkey_alias",value:i.pubkey_alias,title:"Peer Alias",width:50,type:c.UN.STRING},{key:"chan_id",value:i.chan_id,title:"Channel ID",width:50,type:c.UN.STRING}],[{key:"pub_key",value:i.pub_key,title:"Peer Pubkey",width:100,type:c.UN.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(me.L),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-query-routes"]],viewQuery:function(o,a){if(1&o&&e.GBs(R.B4,5),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first)}},standalone:!1,decls:64,vars:17,consts:[["queryRoutesForm","ngForm"],["destPubkey","ngModel"],["table",""],["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","69","fxLayoutAlign","start end"],["matInput","","name","destinationPubkey","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","29","fxLayoutAlign","start end"],["matInput","","name","amount","tabindex","2","type","number","required","",3,"ngModelChange","step","min","ngModel"],["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","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["matColumnDef","pub_key"],["matColumnDef","chan_id"],["matColumnDef","tlv_payload"],["matColumnDef","expiry"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","chan_capacity"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["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"],["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(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",3)(1,"form",4,0),e.bIt("ngSubmit",function(){r.eBV(l);const m=e.sdS(2);return r.Njj(m.form.valid&&a.onQueryRoutes())}),e.j41(3,"div",5),e.nrm(4,"fa-icon",6),e.j41(5,"span"),e.EFF(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),e.k0s()(),e.j41(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Destination Pubkey"),e.k0s(),e.j41(10,"input",8,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.destinationPubkey,m)||(a.destinationPubkey=m),r.Njj(m)}),e.k0s(),e.DNE(12,Pd,2,0,"mat-error",9),e.k0s(),e.j41(13,"mat-form-field",10)(14,"mat-label"),e.EFF(15,"Amount (Sats)"),e.k0s(),e.j41(16,"input",11),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.amount,m)||(a.amount=m),r.Njj(m)}),e.k0s(),e.DNE(17,$d,2,0,"mat-error",9),e.k0s(),e.j41(18,"div",12)(19,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(20,"Clear"),e.k0s(),e.j41(21,"button",14),e.EFF(22,"Query Route"),e.k0s()()(),e.j41(23,"div",15)(24,"div",16),e.nrm(25,"fa-icon",17),e.j41(26,"span",18),e.EFF(27,"Transaction Route"),e.k0s()()(),e.j41(28,"div",19),e.DNE(29,Ad,1,0,"mat-progress-bar",20),e.j41(30,"table",21,2),e.qex(32,22),e.DNE(33,Md,2,0,"th",23)(34,Bd,2,1,"td",24),e.bVm(),e.qex(35,25),e.DNE(36,Od,2,0,"th",23)(37,Vd,4,4,"td",24),e.bVm(),e.qex(38,26),e.DNE(39,Yd,2,0,"th",23)(40,Xd,4,4,"td",24),e.bVm(),e.qex(41,27),e.DNE(42,Ud,2,0,"th",23)(43,Hd,4,4,"td",24),e.bVm(),e.qex(44,28),e.DNE(45,qd,2,0,"th",23)(46,zd,2,1,"td",24),e.bVm(),e.qex(47,29),e.DNE(48,Jd,2,0,"th",30)(49,Qd,4,3,"td",24),e.bVm(),e.qex(50,31),e.DNE(51,Wd,2,0,"th",30)(52,Zd,4,3,"td",24),e.bVm(),e.qex(53,32),e.DNE(54,Kd,2,0,"th",30)(55,eh,4,3,"td",24),e.bVm(),e.qex(56,33),e.DNE(57,th,2,0,"th",30)(58,nh,4,3,"td",24),e.bVm(),e.qex(59,34),e.DNE(60,ih,3,0,"th",35)(61,ah,3,0,"td",36),e.bVm(),e.DNE(62,sh,1,0,"tr",37)(63,oh,1,0,"tr",38),e.k0s()()()}2&o&&(e.R7$(4),e.Y8G("icon",a.faExclamationTriangle),e.R7$(6),e.R50("ngModel",a.destinationPubkey),e.R7$(2),e.Y8G("ngIf",!a.destinationPubkey),e.R7$(4),e.Y8G("step",1e3)("min",0),e.R50("ngModel",a.amount),e.R7$(),e.Y8G("ngIf",!a.amount),e.R7$(8),e.Y8G("icon",a.faRoute),e.R7$(4),e.Y8G("ngIf",!0===a.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.qrHops)("ngClass",e.eq3(15,Nd,"error"===a.flgLoading[0])),e.R7$(32),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns))},dependencies:[_.YU,_.bT,_.B3,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,O.aY,N.$z,M.fg,C.rl,C.nJ,C.TL,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.KS,u.$R,u.YZ,u.NB,B.Ld,ae.V,_.QX],encapsulation:2}))}return t(),s})();var de=y(5951);function rh(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 1"),e.k0s())}function ch(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 1 (Your Node)"),e.k0s())}function ph(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 2"),e.k0s())}function mh(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 2 (Your Node)"),e.k0s())}function uh(t,s){if(1&t&&(e.j41(0,"div",1),e.nrm(1,"mat-divider",2),e.j41(2,"div",3)(3,"div",4)(4,"h4",5),e.EFF(5,"Channel ID"),e.k0s(),e.j41(6,"span",6),e.EFF(7),e.k0s()(),e.j41(8,"div",7)(9,"h4",5),e.EFF(10,"Channel Point"),e.k0s(),e.j41(11,"span",6),e.EFF(12),e.k0s()()(),e.nrm(13,"mat-divider",8),e.j41(14,"div",3)(15,"div",4)(16,"h4",5),e.EFF(17,"Last Update"),e.k0s(),e.j41(18,"span",6),e.EFF(19),e.nI1(20,"date"),e.k0s()(),e.j41(21,"div",7)(22,"h4",5),e.EFF(23,"Capacity (Sats)"),e.k0s(),e.j41(24,"span",6),e.EFF(25),e.nI1(26,"number"),e.k0s()()(),e.nrm(27,"mat-divider",8),e.j41(28,"div",9)(29,"div",10)(30,"div",11),e.DNE(31,rh,2,0,"h3",12)(32,ch,2,0,"h3",12),e.k0s(),e.nrm(33,"mat-divider",8),e.j41(34,"div",13)(35,"h4",5),e.EFF(36,"Pubkey"),e.k0s(),e.j41(37,"span",6),e.EFF(38),e.k0s()(),e.nrm(39,"mat-divider",8),e.j41(40,"div",14)(41,"h4",5),e.EFF(42,"Time Lock Delta"),e.k0s(),e.j41(43,"span",6),e.EFF(44),e.k0s()(),e.nrm(45,"mat-divider",8),e.j41(46,"div",14)(47,"h4",5),e.EFF(48,"Min HTLC"),e.k0s(),e.j41(49,"span",6),e.EFF(50),e.k0s()(),e.nrm(51,"mat-divider",8),e.j41(52,"div",14)(53,"h4",5),e.EFF(54,"Max HTLC"),e.k0s(),e.j41(55,"span",6),e.EFF(56),e.k0s()(),e.nrm(57,"mat-divider",8),e.j41(58,"div",14)(59,"h4",5),e.EFF(60,"Fee Base Msat"),e.k0s(),e.j41(61,"span",6),e.EFF(62),e.k0s()(),e.nrm(63,"mat-divider",8),e.j41(64,"div",14)(65,"h4",5),e.EFF(66,"Fee Rate Milli Msat"),e.k0s(),e.j41(67,"span",6),e.EFF(68),e.k0s()(),e.nrm(69,"mat-divider",8),e.j41(70,"div",14)(71,"h4",5),e.EFF(72,"Disabled"),e.k0s(),e.j41(73,"span",6),e.EFF(74),e.k0s()()(),e.j41(75,"div",10)(76,"div"),e.DNE(77,ph,2,0,"h3",12)(78,mh,2,0,"h3",12),e.k0s(),e.nrm(79,"mat-divider",8),e.j41(80,"div",13)(81,"h4",5),e.EFF(82,"Pubkey"),e.k0s(),e.j41(83,"span",6),e.EFF(84),e.k0s()(),e.nrm(85,"mat-divider",8),e.j41(86,"div",14)(87,"h4",5),e.EFF(88,"Time Lock Delta"),e.k0s(),e.j41(89,"span",6),e.EFF(90),e.k0s()(),e.nrm(91,"mat-divider",8),e.j41(92,"div",14)(93,"h4",5),e.EFF(94,"Min HTLC"),e.k0s(),e.j41(95,"span",6),e.EFF(96),e.k0s()(),e.nrm(97,"mat-divider",8),e.j41(98,"div",14)(99,"h4",5),e.EFF(100,"Max HTLC"),e.k0s(),e.j41(101,"span",6),e.EFF(102),e.k0s()(),e.nrm(103,"mat-divider",8),e.j41(104,"div",14)(105,"h4",5),e.EFF(106,"Fee Base Msat"),e.k0s(),e.j41(107,"span",6),e.EFF(108),e.k0s()(),e.nrm(109,"mat-divider",8),e.j41(110,"div",14)(111,"h4",5),e.EFF(112,"Fee Rate Milli Msat"),e.k0s(),e.j41(113,"span",6),e.EFF(114),e.k0s()(),e.nrm(115,"mat-divider",8),e.j41(116,"div",14)(117,"h4",5),e.EFF(118,"Disabled"),e.k0s(),e.j41(119,"span",6),e.EFF(120),e.k0s()()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(n.lookupResult.channel_id),e.R7$(5),e.JRh(n.lookupResult.chan_point),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(20,39,1e3*n.lookupResult.last_update,"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(e.bMT(26,42,n.lookupResult.capacity)),e.R7$(2),e.Y8G("inset",!0),e.R7$(4),e.Y8G("ngIf",!n.node1_match),e.R7$(),e.Y8G("ngIf",n.node1_match),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(n.lookupResult.node1_pub),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.time_lock_delta),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.min_htlc),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.max_htlc_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_base_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_rate_milli_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null!=n.lookupResult.node1_policy&&n.lookupResult.node1_policy.disabled?"Yes":"No"),e.R7$(3),e.Y8G("ngIf",!n.node2_match),e.R7$(),e.Y8G("ngIf",n.node2_match),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(n.lookupResult.node2_pub),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.time_lock_delta),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.min_htlc),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.max_htlc_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_base_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_rate_milli_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null!=n.lookupResult.node2_policy&&n.lookupResult.node2_policy.disabled?"Yes":"No")}}let dh=(()=>{var t;class s{constructor(i){this.store=i,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.lookupResult.node1_pub===i.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===i.identity_pubkey&&(this.node2_match=!0)})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","30","fxLayoutAlign","end start"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start"],[1,"my-1",3,"inset"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],["fxLayout","column","fxFlex","20"],["fxLayout","column","fxFlex","10"],[1,"page-title","font-bold-500"]],template:function(o,a){1&o&&e.DNE(0,uh,121,44,"div",0),2&o&&e.Y8G("ngIf",a.lookupResult)},dependencies:[_.bT,ne.q,f.DJ,f.sA,f.UI,_.QX,_.vh],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}))}return t(),s})();const hh=t=>({"background-color":t});function _h(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Lme("",i.nodeFeaturesEnum[n.value.name]||n.value.name,": ",n.value.is_required?"Mandatory":"Optional")}}function fh(t,s){1&t&&(e.j41(0,"th",27),e.EFF(1,"Network"),e.k0s())}function gh(t,s){if(1&t&&(e.j41(0,"td",28),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.network)}}function Ch(t,s){1&t&&(e.j41(0,"th",27),e.EFF(1,"Address"),e.k0s())}function yh(t,s){if(1&t&&(e.j41(0,"td",28),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.addr)}}function bh(t,s){1&t&&(e.j41(0,"th",29)(1,"div",30),e.EFF(2,"Actions"),e.k0s()())}function Fh(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",31)(1,"div",32)(2,"mat-select",33),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",34),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onConnectNode(o))}),e.EFF(5,"Connect"),e.k0s(),e.j41(6,"mat-option",35),e.bIt("copied",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onCopyNodeURI(o))}),e.EFF(7,"Copy URI"),e.k0s()()()()}if(2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(6),e.Y8G("payload",i.lookupResult.node.pub_key+"@"+n.addr)}}function xh(t,s){1&t&&e.nrm(0,"tr",36)}function vh(t,s){1&t&&e.nrm(0,"tr",37)}function Th(t,s){if(1&t&&(e.j41(0,"div",2),e.nrm(1,"mat-divider",3),e.j41(2,"div",4)(3,"div",5)(4,"h4",6),e.EFF(5,"Alias"),e.k0s(),e.j41(6,"span",7),e.EFF(7),e.j41(8,"span",8),e.EFF(9),e.k0s()()(),e.j41(10,"div",9)(11,"h4",6),e.EFF(12,"Pub Key"),e.k0s(),e.j41(13,"span",10),e.EFF(14),e.k0s()()(),e.nrm(15,"mat-divider",11),e.j41(16,"div",4)(17,"div",5)(18,"h4",6),e.EFF(19,"Last Update"),e.k0s(),e.j41(20,"span",7),e.EFF(21),e.nI1(22,"date"),e.k0s()(),e.j41(23,"div",9)(24,"h4",6),e.EFF(25,"Total Capacity (Sats)"),e.k0s(),e.j41(26,"span",7),e.EFF(27),e.nI1(28,"number"),e.k0s()()(),e.nrm(29,"mat-divider",11),e.j41(30,"div",4)(31,"div",5)(32,"h4",6),e.EFF(33,"Number of Channels"),e.k0s(),e.j41(34,"span",7),e.EFF(35),e.nI1(36,"number"),e.k0s()(),e.j41(37,"div",12)(38,"h4",6),e.EFF(39,"Features"),e.k0s(),e.DNE(40,_h,2,2,"span",13),e.nI1(41,"keyvalue"),e.k0s()(),e.nrm(42,"mat-divider",11),e.j41(43,"div",14)(44,"h4",15),e.EFF(45,"Addresses"),e.k0s(),e.j41(46,"div",16)(47,"table",17,0),e.qex(49,18),e.DNE(50,fh,2,0,"th",19)(51,gh,2,1,"td",20),e.bVm(),e.qex(52,21),e.DNE(53,Ch,2,0,"th",19)(54,yh,2,1,"td",20),e.bVm(),e.qex(55,22),e.DNE(56,bh,3,0,"th",23)(57,Fh,8,1,"td",24),e.bVm(),e.DNE(58,xh,1,0,"tr",25)(59,vh,1,0,"tr",26),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(n.lookupResult.node.alias),e.R7$(),e.Y8G("ngStyle",e.eq3(24,hh,null==n.lookupResult.node?null:n.lookupResult.node.color)),e.R7$(),e.JRh(null==n.lookupResult.node?null:n.lookupResult.node.color),e.R7$(5),e.JRh(n.lookupResult.node.pub_key),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(22,15,1e3*n.lookupResult.node.last_update,"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(e.bMT(28,18,n.lookupResult.total_capacity)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(36,20,n.lookupResult.num_channels)),e.R7$(5),e.Y8G("ngForOf",e.bMT(41,22,n.lookupResult.node.features)),e.R7$(2),e.Y8G("inset",!0),e.R7$(5),e.Y8G("dataSource",n.lookupResult.node.addresses),e.R7$(11),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}let kh=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.snackBar=o,this.store=a,this.nodeFeaturesEnum=c._U,this.displayedColumns=["network","addr","actions"],this.information={},this.availableBalance=0,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.information=i}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.availableBalance=i.blockchainBalance.total_balance||0})}onCopyNodeURI(i){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+i)}onConnectNode(i){this.store.dispatch((0,I.xO)({payload:{data:{message:{peer:{pub_key:this.lookupResult.node?.pub_key,address:i.addr},information:this.information,balance:this.availableBalance},component:et}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(le.UG),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["table",""],["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-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"],[1,"my-1",3,"inset"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start",1,"my-1"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["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"],["mat-cell","","fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["rtlClipboard","",3,"copied","payload"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&e.DNE(0,Th,60,26,"div",1),2&o&&e.Y8G("ngIf",a.lookupResult)},dependencies:[_.Sq,_.bT,_.B3,ne.q,f.DJ,f.sA,f.UI,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.KS,u.$R,u.YZ,u.NB,B.Ld,be.U,_.QX,_.vh,_.lG],encapsulation:2}))}return t(),s})();const Sh=t=>({"mt-1":!0,"mt-2":t}),Rh=t=>({"w-100 mt-2 p-2 error-border":t,"w-100 my-2 p-2":!0});function Eh(t,s){if(1&t&&(e.j41(0,"mat-radio-button",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n.id)("checked",i.selectedFieldId===n.id),e.R7$(),e.SpI(" ",n.name," ")}}function Ih(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function Lh(t,s){1&t&&e.nrm(0,"mat-progress-bar",20)}function wh(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,Lh,1,0,"mat-progress-bar",19),e.EFF(2),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(3,Rh,""!==n.errorMessage&&"Getting lookup details..."!==n.errorMessage)),e.R7$(),e.Y8G("ngIf","Getting lookup details..."===n.errorMessage),e.R7$(),e.SpI(" ",n.errorMessage," ")}}function jh(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-node-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("lookupResult",n.lookupValue)}}function Gh(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-channel-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("lookupResult",n.lookupValue)}}function Dh(t,s){1&t&&(e.j41(0,"span"),e.EFF(1,' fxFlex="100"'),e.j41(2,"h3"),e.EFF(3,"Error! Unable to find details!"),e.k0s()())}function Nh(t,s){if(1&t&&(e.j41(0,"div",21)(1,"div",22)(2,"span",23),e.EFF(3),e.k0s()(),e.j41(4,"div",24),e.DNE(5,jh,2,1,"span",25)(6,Gh,2,1,"span",25)(7,Dh,4,0,"span",26),e.k0s()()),2&t){const n=e.XpG();e.R7$(3),e.SpI("",n.lookupFields[n.selectedFieldId].name," Details"),e.R7$(),e.Y8G("ngSwitch",n.selectedFieldId),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",1)}}let nt=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=x.MjD,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.lookupType||window.history.state.lookupValue)&&(this.selectedFieldId=+window.history.state.lookupType||0,this.lookupKey=window.history.state.lookupValue||""),this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i.type===c.QP.SET_LOOKUP_LND||i.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===c.QP.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&i.payload.hasOwnProperty("node")||1===this.selectedFieldId&&i.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(i.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!i.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!i.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&"Lookup"===i.payload.action&&(this.errorMessage="",i.payload.status===c.wn.ERROR&&(this.errorMessage="object"==typeof i.payload.message?JSON.stringify(i.payload.message):i.payload.message),i.payload.status===c.wn.INITIATED&&(this.errorMessage=c.MZ.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,T.zU)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,T.ij)({payload:{uiMessage:c.MZ.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(i){this.resetData(),this.selectedFieldId=i.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(K.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lookups"]],standalone:!1,decls:21,vars:10,consts:[["form","ngForm"],["key",""],["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"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModelChange","change","ngModel"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[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","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"mat-card-content",4)(3,"form",5,0)(5,"div",6)(6,"mat-radio-group",7),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selectedFieldId,m)||(a.selectedFieldId=m),r.Njj(m)}),e.bIt("change",function(m){return r.eBV(l),r.Njj(a.onSelectChange(m))}),e.DNE(7,Eh,2,3,"mat-radio-button",8),e.k0s()(),e.j41(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10),e.k0s(),e.j41(11,"input",10,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.lookupKey,m)||(a.lookupKey=m),r.Njj(m)}),e.bIt("change",function(){return r.eBV(l),r.Njj(a.clearLookupValue())}),e.k0s(),e.DNE(13,Ih,2,1,"mat-error",11),e.k0s(),e.j41(14,"div",12)(15,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(16,"Clear"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onLookup())}),e.EFF(18,"Lookup"),e.k0s()()(),e.DNE(19,wh,3,5,"div",15)(20,Nh,8,4,"div",16),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selectedFieldId),e.R7$(),e.Y8G("ngForOf",a.lookupFields),e.R7$(),e.Y8G("ngClass",e.eq3(8,Sh,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(2),e.JRh((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),e.R7$(),e.R50("ngModel",a.lookupKey),e.R7$(2),e.Y8G("ngIf",!a.lookupKey),e.R7$(6),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},dependencies:[_.YU,_.Sq,_.bT,_.ux,_.e1,_.fG,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,k.m2,M.fg,C.rl,C.nJ,C.TL,V.HM,de.VT,de._g,f.DJ,f.sA,f.UI,j.PW,dh,kh],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}"]}))}return t(),s})();var Pe=y(25084);function Ph(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid date format."),e.k0s())}function $h(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid date format."),e.k0s())}function Ah(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",28),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let Mh=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.faMapSigns=x.knH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"},{link:"nonroutingprs",name:"Non Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.onEventsFetch();const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,T.kv)({payload:{forwarding_events:[]}})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch((0,T.uK)({payload:{end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch((0,T.kv)({payload:{forwarding_events:[]}})),this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing"]],standalone:!1,decls:41,vars:16,consts:[["routingForm","ngForm"],["strtDate","ngModel"],["startDatepicker",""],["enDate","ngModel"],["endDatepicker",""],["tabPanel",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start"],["matInput","","name","startDate","tabindex","1",3,"ngModelChange","matDatepicker","max","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],[4,"ngIf"],["matInput","","name","endDate","tabindex","2",3,"ngModelChange","matDatepicker","min","max","ngModel"],["fxLayout","row",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","fxFlex","100"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start","fxFlex","100",3,"tabPanel"],["tabindex","5","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["tabindex","5","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",6)(1,"div",7),e.nrm(2,"fa-icon",8),e.j41(3,"span",9),e.EFF(4,"Routing"),e.k0s()(),e.j41(5,"div",10)(6,"mat-card",11)(7,"mat-card-content",12)(8,"form",13,0),e.bIt("ngSubmit",function(){return r.eBV(l),r.Njj(a.onEventsFetch())}),e.j41(10,"div",14)(11,"mat-form-field",15)(12,"mat-label"),e.EFF(13,"Start Date"),e.k0s(),e.j41(14,"input",16,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.startDate,m)||(a.startDate=m),r.Njj(m)}),e.k0s(),e.nrm(16,"mat-datepicker-toggle",17)(17,"mat-datepicker",18,2),e.DNE(19,Ph,2,0,"mat-error",19),e.k0s(),e.j41(20,"mat-form-field",15)(21,"mat-label"),e.EFF(22,"End Date"),e.k0s(),e.j41(23,"input",20,3),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.endDate,m)||(a.endDate=m),r.Njj(m)}),e.k0s(),e.nrm(25,"mat-datepicker-toggle",17)(26,"mat-datepicker",18,4),e.DNE(28,$h,2,0,"mat-error",19),e.k0s()(),e.j41(29,"div",21)(30,"button",22),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(31,"Clear"),e.k0s(),e.j41(32,"button",23),e.EFF(33,"Fetch Events"),e.k0s()()(),e.j41(34,"div",24)(35,"nav",25),e.DNE(36,Ah,2,4,"div",26),e.k0s(),e.nrm(37,"mat-tab-nav-panel",null,5),e.k0s(),e.j41(39,"div",27),e.nrm(40,"router-outlet"),e.k0s()()()()()}if(2&o){const l=e.sdS(15),p=e.sdS(18),m=e.sdS(24),v=e.sdS(27),b=e.sdS(38);e.R7$(2),e.Y8G("icon",a.faMapSigns),e.R7$(12),e.Y8G("matDatepicker",p)("max",a.today),e.R50("ngModel",a.startDate),e.R7$(2),e.Y8G("for",p),e.R7$(),e.Y8G("startAt",a.startDate),e.R7$(2),e.Y8G("ngIf",l.errors),e.R7$(4),e.Y8G("matDatepicker",v)("min",a.startDate)("max",a.today),e.R50("ngModel",a.endDate),e.R7$(2),e.Y8G("for",v),e.R7$(),e.Y8G("startAt",a.endDate),e.R7$(2),e.Y8G("ngIf",m.errors),e.R7$(7),e.Y8G("tabPanel",b),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.BC,d.cb,d.vS,d.cV,O.aY,N.$z,k.RN,k.m2,Pe.Vh,Pe.bZ,Pe.bU,M.fg,C.rl,C.nJ,C.TL,C.yw,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,Ze.z,ae.V,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();const Bh=()=>["all"],Oh=()=>["no_event"],ve=t=>({width:t}),Vh=t=>({"display-none":t});function Yh(t,s){if(1&t&&(e.j41(0,"div",6),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function Xh(t,s){if(1&t&&(e.j41(0,"mat-option",14),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Uh(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",7),e.nrm(1,"div",8),e.j41(2,"div",9)(3,"mat-form-field",10)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",11),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,Xh,2,2,"mat-option",12),e.k0s()()(),e.j41(9,"mat-form-field",10)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",13),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(6),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(3,Bh).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter)}}function Hh(t,s){1&t&&e.nrm(0,"mat-progress-bar",37)}function qh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Timestamp"),e.k0s())}function zh(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,1e3*n.timestamp,"dd/MMM/y HH:mm"))}}function Jh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Inbound Alias"),e.k0s())}function Qh(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias_in)}}function Wh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Inbound Channel"),e.k0s())}function Zh(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id_in)}}function Kh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Outbound Alias"),e.k0s())}function e_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias_out)}}function t_(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Outbound Channel"),e.k0s())}function n_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id_out)}}function i_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Inbound Amount (Sats)"),e.k0s())}function a_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.amt_in))}}function s_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Outbound Amount (Sats)"),e.k0s())}function o_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.amt_out))}}function l_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Fee (mSats)"),e.k0s())}function r_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.fee_msat))}}function c_(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",44)(1,"div",45)(2,"mat-select",46),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",47),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function p_(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",48)(1,"button",49),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG(2);return r.Njj(l.onForwardingEventClick(a,o))}),e.EFF(2,"View Info"),e.k0s()()}}function m_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No forwarding history available."),e.k0s())}function u_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting forwarding history..."),e.k0s())}function d_(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function h_(t,s){if(1&t&&(e.j41(0,"td",50),e.DNE(1,m_,2,0,"p",51)(2,u_,2,0,"p",51)(3,d_,2,1,"p",51),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function __(t,s){if(1&t&&e.nrm(0,"tr",52),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,Vh,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function f_(t,s){1&t&&e.nrm(0,"tr",53)}function g_(t,s){1&t&&e.nrm(0,"tr",54)}function C_(t,s){if(1&t&&(e.j41(0,"div",15),e.DNE(1,Hh,1,0,"mat-progress-bar",16),e.j41(2,"table",17,0),e.qex(4,18),e.DNE(5,qh,2,0,"th",19)(6,zh,3,4,"td",20),e.bVm(),e.qex(7,21),e.DNE(8,Jh,2,0,"th",19)(9,Qh,4,4,"td",20),e.bVm(),e.qex(10,22),e.DNE(11,Wh,2,0,"th",19)(12,Zh,4,4,"td",20),e.bVm(),e.qex(13,23),e.DNE(14,Kh,2,0,"th",19)(15,e_,4,4,"td",20),e.bVm(),e.qex(16,24),e.DNE(17,t_,2,0,"th",19)(18,n_,4,4,"td",20),e.bVm(),e.qex(19,25),e.DNE(20,i_,2,0,"th",26)(21,a_,4,3,"td",20),e.bVm(),e.qex(22,27),e.DNE(23,s_,2,0,"th",26)(24,o_,4,3,"td",20),e.bVm(),e.qex(25,28),e.DNE(26,l_,2,0,"th",26)(27,r_,4,3,"td",20),e.bVm(),e.qex(28,29),e.DNE(29,c_,6,0,"th",30)(30,p_,3,0,"td",31),e.bVm(),e.qex(31,32),e.DNE(32,h_,4,3,"td",33),e.bVm(),e.DNE(33,__,1,3,"tr",34)(34,f_,1,0,"tr",35)(35,g_,1,0,"tr",36),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.forwardingHistoryEvents),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(7,Oh)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}function y_(t,s){if(1&t&&e.nrm(0,"mat-paginator",55),2&t){const n=e.XpG();e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let it=(()=>{var t;class s{constructor(i,o,a,l,p){this.logger=i,this.commonService=o,this.store=a,this.datePipe=l,this.camelCaseWithReplace=p,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:c.md,sortBy:"timestamp",sortOrder:c.oi.DESCENDING},this.forwardingHistoryData=[],this.displayedColumns=[],this.forwardingHistoryEvents=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(i){i.eventsData&&(this.apiCallStatus={status:c.wn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=i.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,i.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),i.selFilter&&!i.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=i.pageSettings.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Ie).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.forwardingHistoryData=i.forwardingHistory.forwarding_events||[],this.forwardingHistoryData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory))})}ngAfterViewInit(){setTimeout(()=>{this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)},0)}onForwardingEventClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:i.timestamp,title:"Timestamp",width:25,type:c.UN.DATE_TIME},{key:"amt_in",value:i.amt_in,title:"Inbound Amount (Sats)",width:25,type:c.UN.NUMBER},{key:"amt_out",value:i.amt_out,title:"Outbound Amount (Sats)",width:25,type:c.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:25,type:c.UN.NUMBER}],[{key:"alias_in",value:i.alias_in,title:"Inbound Peer Alias",width:25,type:c.UN.STRING},{key:"chan_id_in",value:i.chan_id_in,title:"Inbound Channel ID",width:25,type:c.UN.STRING},{key:"alias_out",value:i.alias_out,title:"Outbound Peer Alias",width:25,type:c.UN.STRING},{key:"chan_id_out",value:i.chan_id_out,title:"Outbound Channel ID",width:25,type:c.UN.STRING}]]}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(i){const o=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.timestamp?this.datePipe.transform(new Date(1e3*i.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"timestamp":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return a.includes(o)}}loadForwardingEventsTable(i){this.forwardingHistoryEvents=new u.I6(i?[...i]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,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(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(_.vh),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-forwarding-history"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Events")}]),e.OA$],decls:5,vars:4,consts:[["table",""],["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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[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,"matSortActive","matSortDirection","dataSource"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","chan_id_in"],["matColumnDef","alias_out"],["matColumnDef","chan_id_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","",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",""],["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"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,Yh,2,1,"div",2)(2,Uh,13,4,"div",3)(3,C_,36,8,"div",4)(4,y_,1,3,"mat-paginator",5),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX,_.vh],encapsulation:2}))}return t(),s})();const b_=["tableIn"],F_=["tableOut"],x_=["paginatorIn"],v_=["paginatorOut"],T_=(t,s)=>({"mt-2":t,"mt-1":s}),k_=()=>["no_incoming_event"],S_=t=>({"mt-2":t}),R_=()=>["no_outgoing_event"],Te=t=>({width:t}),at=t=>({"display-none":t});function E_(t,s){if(1&t&&(e.j41(0,"div",7),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function I_(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function L_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Channel ID"),e.k0s())}function w_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function j_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Peer Alias"),e.k0s())}function G_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function D_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Events"),e.k0s())}function N_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.events))}}function P_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Total Amount (Sats)"),e.k0s())}function $_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_amount))}}function A_(t,s){1&t&&(e.j41(0,"th",41)(1,"div",42),e.EFF(2,"Actions"),e.k0s()())}function M_(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",43)(1,"button",44),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG(2);return r.Njj(l.onRoutingPeerClick(a,o,"in"))}),e.EFF(2,"View Info"),e.k0s()()}}function B_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No incoming routing peer available."),e.k0s())}function O_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting incoming routing peers..."),e.k0s())}function V_(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Y_(t,s){if(1&t&&(e.j41(0,"td",45),e.DNE(1,B_,2,0,"p",46)(2,O_,2,0,"p",46)(3,V_,2,1,"p",46),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function X_(t,s){if(1&t&&e.nrm(0,"tr",47),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,at,(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)>0))}}function U_(t,s){1&t&&e.nrm(0,"tr",48)}function H_(t,s){1&t&&e.nrm(0,"tr",49)}function q_(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function z_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Channel ID"),e.k0s())}function J_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function Q_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Peer Alias"),e.k0s())}function W_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function Z_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Events"),e.k0s())}function K_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.events))}}function e0(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Total Amount (Sats)"),e.k0s())}function t0(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_amount))}}function n0(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No outgoing routing peer available."),e.k0s())}function i0(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting outgoing routing peers..."),e.k0s())}function a0(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function s0(t,s){if(1&t&&(e.j41(0,"td",45),e.DNE(1,n0,2,0,"p",46)(2,i0,2,0,"p",46)(3,a0,2,1,"p",46),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function o0(t,s){if(1&t&&e.nrm(0,"tr",47),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,at,(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)>0))}}function l0(t,s){1&t&&e.nrm(0,"tr",48)}function r0(t,s){1&t&&e.nrm(0,"tr",49)}function c0(t,s){if(1&t&&(e.j41(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11),e.EFF(4,"Incoming"),e.k0s(),e.nrm(5,"div",12),e.k0s(),e.j41(6,"div",13),e.DNE(7,I_,1,0,"mat-progress-bar",14),e.j41(8,"table",15,0),e.qex(10,16),e.DNE(11,L_,2,0,"th",17)(12,w_,4,4,"td",18),e.bVm(),e.qex(13,19),e.DNE(14,j_,2,0,"th",17)(15,G_,4,4,"td",18),e.bVm(),e.qex(16,20),e.DNE(17,D_,2,0,"th",21)(18,N_,4,3,"td",18),e.bVm(),e.qex(19,22),e.DNE(20,P_,2,0,"th",21)(21,$_,4,3,"td",18),e.bVm(),e.qex(22,23),e.DNE(23,A_,3,0,"th",24)(24,M_,3,0,"td",25),e.bVm(),e.qex(25,26),e.DNE(26,Y_,4,3,"td",27),e.bVm(),e.DNE(27,X_,1,3,"tr",28)(28,U_,1,0,"tr",29)(29,H_,1,0,"tr",30),e.k0s()(),e.nrm(30,"mat-paginator",31,1),e.k0s(),e.j41(32,"div",9)(33,"div",10)(34,"div",11),e.EFF(35,"Outgoing"),e.k0s(),e.nrm(36,"div",12),e.k0s(),e.j41(37,"div",13),e.DNE(38,q_,1,0,"mat-progress-bar",14),e.j41(39,"table",32,2),e.qex(41,16),e.DNE(42,z_,2,0,"th",17)(43,J_,4,4,"td",18),e.bVm(),e.qex(44,19),e.DNE(45,Q_,2,0,"th",17)(46,W_,4,4,"td",18),e.bVm(),e.qex(47,20),e.DNE(48,Z_,2,0,"th",21)(49,K_,4,3,"td",18),e.bVm(),e.qex(50,22),e.DNE(51,e0,2,0,"th",21)(52,t0,4,3,"td",18),e.bVm(),e.qex(53,33),e.DNE(54,s0,4,3,"td",27),e.bVm(),e.DNE(55,o0,1,3,"tr",28)(56,l0,1,0,"tr",29)(57,r0,1,0,"tr",30),e.k0s()(),e.nrm(58,"mat-paginator",31,3),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngClass",e.l_i(18,T_,n.screenSize===n.screenSizeEnum.XS,n.screenSize===n.screenSizeEnum.SM)),e.R7$(5),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",n.routingPeersIncoming),e.R7$(19),e.Y8G("matFooterRowDef",e.lJ4(21,k_)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS),e.R7$(3),e.Y8G("ngClass",e.eq3(22,S_,n.screenSize!==n.screenSizeEnum.LG)),e.R7$(5),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",n.routingPeersOutgoing),e.R7$(16),e.Y8G("matFooterRowDef",e.lJ4(24,R_)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let p0=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.camelCaseWithReplace=l,this.nodePageDefs=c._1,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:c.md,sortBy:"total_amount",sortOrder:c.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new u.I6([]),this.routingPeersOutgoing=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Ie).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=i.forwardingHistory.forwarding_events?i.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(i,o,a){let l=" Routing Information";l="in"===a?"Incoming"+l:"Outgoing"+l,this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:l,message:[[{key:"chan_id",value:i.chan_id,title:"Channel ID",width:50,type:c.UN.STRING},{key:"alias",value:i.alias,title:"Peer Alias",width:50,type:c.UN.STRING}],[{key:"events",value:i.events,title:"Events",width:50,type:c.UN.NUMBER},{key:"total_amount",value:i.total_amount,title:"Total Amount (Sats)",width:50,type:c.UN.NUMBER}]]}}}))}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterByIn?JSON.stringify(i).toLowerCase():"string"==typeof i[this.selFilterByIn]?i[this.selFilterByIn].toLowerCase():"boolean"==typeof i[this.selFilterByIn]?i[this.selFilterByIn]?"yes":"no":i[this.selFilterByIn].toString(),a.includes(o)},this.routingPeersOutgoing.filterPredicate=(i,o)=>{let a="";switch(this.selFilterByOut){case"all":a=JSON.stringify(i).toLowerCase();break;case"total_amount":case"total_fee":a=(+(i[this.selFilterByOut]||0)/1e3).toString()||"";break;default:a="string"==typeof i[this.selFilterByOut]?i[this.selFilterByOut].toLowerCase():"boolean"==typeof i[this.selFilterByOut]?i[this.selFilterByOut]?"yes":"no":i[this.selFilterByOut].toString()}return a.includes(o)}}loadRoutingPeersTable(i){if(i.length>0){const o=this.groupRoutingPeers(i);this.routingPeersIncoming=new u.I6(o[0]),this.routingPeersIncoming.sort=this.sortIn,this.routingPeersIncoming.sort.sort({id:this.tableSetting.sortBy||"total_amount",start:this.tableSetting.sortOrder||c.oi.DESCENDING,disableClear:!0}),this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new u.I6(o[1]),this.routingPeersOutgoing.sort=this.sortOut,this.routingPeersOutgoing.sort.sort({id:this.tableSetting.sortBy||"total_amount",start:this.tableSetting.sortOrder||c.oi.DESCENDING,disableClear:!0}),this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new u.I6([]),this.routingPeersOutgoing=new u.I6([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(i){const o=[],a=[];return i.forEach(l=>{const p=o.find(v=>v.chan_id===l.chan_id_in),m=a.find(v=>v.chan_id===l.chan_id_out);p?(p.events++,p.total_amount=+p.total_amount+ +(l.amt_in||0)):o.push({chan_id:l.chan_id_in,alias:l.alias_in,events:1,total_amount:+(l.amt_in||0)}),m?(m.events++,m.total_amount=+m.total_amount+ +(l.amt_out||0)):a.push({chan_id:l.chan_id_out,alias:l.alias_out,events:1,total_amount:+(l.amt_out||0)})}),[this.commonService.sortDescByKey(o,"total_amount"),this.commonService.sortDescByKey(a,"total_amount")]}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(b_,5,R.B4),e.GBs(F_,5,R.B4),e.GBs(x_,5),e.GBs(v_,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sortIn=l.first),e.mGM(l=e.lsd())&&(a.sortOut=l.first),e.mGM(l=e.lsd())&&(a.paginatorIn=l.first),e.mGM(l=e.lsd())&&(a.paginatorOut=l.first)}},standalone:!1,features:[e.Jv_([{provide:G.xX,useValue:(0,c.on)("Routing peers")}])],decls:3,vars:2,consts:[["tableIn",""],["paginatorIn",""],["tableOut",""],["paginatorOut",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container","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.gt-xs","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"],["matColumnDef","chan_id"],["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","total_amount"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["matColumnDef","no_outgoing_event"],["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"],["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(o,a){1&o&&(e.j41(0,"div",4),e.DNE(1,E_,2,1,"div",5)(2,c0,60,25,"div",6),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[_.YU,_.bT,_.B3,N.$z,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.Ld,_.QX],encapsulation:2}))}return t(),s})();function m0(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",8),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let u0=(()=>{var t;class s{constructor(i){this.router=i,this.faChartBar=x.$Fj,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-reports"]],standalone:!1,decls:12,vars:3,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Reports"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,m0,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0)(11,"router-outlet"),e.k0s()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faChartBar),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();var st=y(51993),ot=y(24655);const d0=t=>({"error-border":t});function h0(t,s){1&t&&e.nrm(0,"mat-progress-bar",17)}function _0(t,s){if(1&t&&(e.j41(0,"div",18),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG();e.Y8G("@fadeIn",n.events.total_fee_msat),e.R7$(),e.Lme("",e.i5U(2,3,n.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",e.bMT(3,6,(null==n.events||null==n.events.forwarding_events?null:n.events.forwarding_events.length)||0)," Events")}}function f0(t,s){1&t&&(e.j41(0,"div",19),e.EFF(1,"No routing report for the selected period"),e.k0s())}function g0(t,s){if(1&t&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(2,d0,"Getting Forwarding History..."!==n.errorMessage&&""!==n.errorMessage)),e.R7$(),e.JRh(n.errorMessage)}}function C0(t,s){if(1&t&&(e.j41(0,"span")(1,"span",22),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.j41(4,"span",22),e.EFF(5),e.nI1(6,"number"),e.k0s()()),2&t){const n=s.model,i=e.XpG(2);e.R7$(2),e.SpI("Events: ",e.bMT(3,2,(i.selReportBy===i.reportBy.EVENTS?n.value:n.extra.totalEvents)||0)),e.R7$(3),e.SpI("Fee: ",e.i5U(6,4,(i.selReportBy===i.reportBy.EVENTS?n.extra.totalFees:n.value)||0,"1.0-2"))}}function y0(t,s){if(1&t){const n=e.RV6();e.j41(0,"ngx-charts-bar-vertical",21),e.bIt("select",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onChartBarSelected(o))})("mouseup",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onChartMouseUp(o))}),e.DNE(1,C0,7,7,"ng-template",null,0,e.C5r),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("view",n.view)("results",n.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function b0(t,s){if(1&t&&e.nrm(0,"rtl-forwarding-history",23),2&t){const n=e.XpG();e.Y8G("eventsData",null==n.events?null:n.events.forwarding_events)("selFilter",n.eventFilterValue)}}let F0=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.dataService=o,this.commonService=a,this.store=l,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=c.aR,this.selReportBy=c.aR.FEES,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=c.f7,this.errorMessage="",this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{i.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=i.width/10;break;case c.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}fetchEvents(i,o){this.errorMessage=c.MZ.GET_FORWARDING_HISTORY;const a=Math.round(i.getTime()/1e3).toString(),l=Math.round(o.getTime()/1e3).toString();this.dataService.getForwardingHistory("LND",a,l).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:p=>{this.errorMessage="",p.forwarding_events&&p.forwarding_events.length?(p.forwarding_events=p.forwarding_events.reverse(),this.events=p,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(i):this.prepareFeeReport(i)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:p=>{this.errorMessage=p}})}onChartMouseUp(i){"svg"===i.srcElement.tagName&&i.srcElement.classList.length>0&&"ngx-charts"===i.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(i){this.eventFilterValue=this.reportPeriod===c.rs[1]?i.name+"/"+this.startDate.getFullYear():i.name.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(i){const o=Math.round(i.getTime()/1e3),a=[];if(this.events.total_fee_msat=0,this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)a.push({name:c.KR[l].name,value:0,extra:{totalEvents:0}});this.events.forwarding_events?.map(l=>{const p=new Date(1e3*+(l.timestamp||0)).getMonth();return a[p].value=a[p].value+ +(l.fee_msat||0)/1e3,a[p].extra.totalEvents=a[p].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}else{for(let l=0;l{const p=Math.floor((+(l.timestamp||0)-o)/this.secondsInADay);return a[p].value=a[p].value+ +(l.fee_msat||0)/1e3,a[p].extra.totalEvents=a[p].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}return a}prepareEventsReport(i){const o=Math.round(i.getTime()/1e3),a=[];if(this.events.total_fee_msat=0,this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)a.push({name:c.KR[l].name,value:0,extra:{totalFees:0}});this.events.forwarding_events?.map(l=>{const p=new Date(1e3*+(l.timestamp||0)).getMonth();return a[p].value=a[p].value+1,a[p].extra.totalFees=a[p].extra.totalFees+ +(l.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}else{for(let l=0;l{const p=Math.floor((+(l.timestamp||0)-o)/this.secondsInADay);return a[p].value=a[p].value+1,a[p].extra.totalFees=a[p].extra.totalFees+ +(l.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}return a}onSelectionChange(i){const o=i.selDate.getMonth(),a=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?c.KR[i].days+1:c.KR[i].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(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(Z.u),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing-report"]],hostBindings:function(o,a){1&o&&e.bIt("mouseup",function(p){return a.onChartMouseUp(p)})},standalone:!1,decls:20,vars:11,consts:[["tooltipTemplate",""],["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 center",1,"my-1",3,"ngModelChange","change","ngModel"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x","my-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["pageId","reports","tableId","routing",3,"eventsData","selFilter",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"select","mouseup","view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel"],[1,"tooltip-label"],["pageId","reports","tableId","routing",3,"eventsData","selFilter"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),e.bIt("stepChanged",function(p){return a.onSelectionChange(p)}),e.k0s(),e.j41(2,"div",3)(3,"mat-radio-group",4),e.mxI("ngModelChange",function(p){return e.DH7(a.selReportBy,p)||(a.selReportBy=p),p}),e.bIt("change",function(){return a.onSelReportByChange()}),e.j41(4,"span",5),e.EFF(5,"Report By: "),e.k0s(),e.j41(6,"mat-radio-button",6),e.EFF(7,"Fees"),e.k0s(),e.j41(8,"mat-radio-button",7),e.EFF(9,"Events"),e.k0s()()(),e.DNE(10,h0,1,0,"mat-progress-bar",8),e.j41(11,"div",9),e.DNE(12,_0,4,8,"div",10)(13,f0,2,0,"div",11)(14,g0,2,4,"div",12),e.j41(15,"div",13),e.DNE(16,y0,3,11,"ngx-charts-bar-vertical",14),e.k0s()(),e.j41(17,"div",15)(18,"div",13),e.DNE(19,b0,1,2,"rtl-forwarding-history",16),e.k0s()()()),2&o&&(e.R7$(3),e.R50("ngModel",a.selReportBy),e.R7$(3),e.Y8G("value",e.mNQ(a.reportBy.FEES)),e.R7$(2),e.Y8G("value",e.mNQ(a.reportBy.EVENTS)),e.R7$(2),e.Y8G("ngIf","Getting Forwarding History..."===a.errorMessage),e.R7$(2),e.Y8G("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.R7$(),e.Y8G("ngIf",(a.routingReportData.length<=0||a.events.forwarding_events.length<=0)&&""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(2),e.Y8G("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.R7$(3),e.Y8G("ngIf",a.events&&(null==a.events?null:a.events.forwarding_events)&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0))},dependencies:[_.YU,_.bT,d.BC,d.vS,V.HM,de.VT,de._g,f.DJ,f.sA,f.UI,j.PW,st.L8,ot.m,it,_.QX],encapsulation:2,data:{animation:[Ge.q]}}))}return t(),s})();var x0=y(59584),v0=y(5085);function T0(t,s){1&t&&(e.j41(0,"div",12),e.nrm(1,"mat-progress-bar",13),e.j41(2,"span"),e.EFF(3,"Getting transactions data..."),e.k0s()())}function k0(t,s){if(1&t&&(e.j41(0,"div",14),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function S0(t,s){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Lme(" Paid ",e.i5U(2,2,n.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.bMT(3,5,n.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function R0(t,s){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Lme(" Received ",e.i5U(2,2,n.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.bMT(3,5,n.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function E0(t,s){if(1&t&&(e.j41(0,"div",15),e.DNE(1,S0,4,7,"div",16)(2,R0,4,7,"div",16),e.k0s()),2&t){const n=e.XpG();e.Y8G("@fadeIn",n.transactionsReportSummary),e.R7$(),e.Y8G("ngIf",n.transactionsReportSummary.paymentsSelectedPeriod>0),e.R7$(),e.Y8G("ngIf",n.transactionsReportSummary.invoicesSelectedPeriod)}}function I0(t,s){1&t&&(e.j41(0,"div",18),e.EFF(1,"No transactions report for the selected period"),e.k0s())}function L0(t,s){if(1&t&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=s.model;e.R7$(),e.LHq("",n.name,": ",e.i5U(2,4,n.value||0,"1.0-2"),"/# ","Paid"===n.name?"Payments":"Invoices",": ",e.bMT(3,7,(null==n.extra?null:n.extra.total)||0))}}function w0(t,s){if(1&t){const n=e.RV6();e.j41(0,"ngx-charts-bar-vertical-2d",20),e.bIt("select",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onChartBarSelected(o))})("mouseup",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onChartMouseUp(o))}),e.DNE(1,L0,4,9,"ng-template",null,0,e.C5r),e.k0s()}if(2&t){const n=e.XpG(2);e.Y8G("view",n.view)("results",n.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",n.reportPeriod===n.scrollRanges[0]?2:8)}}function j0(t,s){if(1&t&&(e.j41(0,"div",10),e.DNE(1,w0,3,13,"ngx-charts-bar-vertical-2d",19),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.transactionsReportData.length>0&&n.transactionsNonZeroReportData.length>0)}}function G0(t,s){if(1&t&&e.nrm(0,"rtl-transactions-report-table",22),2&t){const n=e.XpG();e.Y8G("displayedColumns",n.displayedColumns)("tableSetting",n.tableSetting)("dataList",n.transactionsNonZeroReportData)("dataRange",n.reportPeriod)("selFilter",n.transactionFilterValue)}}let D0=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.commonService=o,this.store=a,this.scrollRanges=c.rs,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:c.md,sortBy:"date",sortOrder:c.oi.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=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(x0.av).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.n_).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{i.apiCallStatus.status===c.wn.UN_INITIATED&&this.store.dispatch((0,T.tG)()),this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.payments=i.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=i.allLightningTransactions.listInvoicesAll.invoices||[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()),this.logger.info(i)}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=i.width/10;break;case c.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(i){"svg"===i.srcElement.tagName&&i.srcElement.classList.length>0&&"ngx-charts"===i.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(i){this.transactionFilterValue=this.reportPeriod===c.rs[1]?i.series+"/"+this.startDate.getFullYear():i.series.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(i,o){const a=Math.round(i.getTime()/1e3),l=Math.round(o.getTime()/1e3),p=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const m=this.payments?.filter(b=>"SUCCEEDED"===b.status&&b.creation_date&&b.creation_date>=a&&b.creation_dateb.settled&&b.creation_date&&+b.creation_date>=a&&+b.creation_date{const S=new Date(1e3*+(b.creation_date||0)).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(b.value_msat||0)+ +(b.fee_msat||0),p[S].series[0].value=p[S].series[0].value+(+(b.value_msat||0)+ +(b.fee_msat||0))/1e3,p[S].series[0].extra.total=p[S].series[0].extra.total+1,this.transactionsReportSummary}),v?.map(b=>{const S=new Date(1e3*+(b.creation_date||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(b.amt_paid_msat||0),p[S].series[1].value=p[S].series[1].value+ +(b.amt_paid_msat||0)/1e3,p[S].series[1].extra.total=p[S].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let b=0;b{const S=Math.floor((+(b.creation_date||0)-a)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(b.value_msat||0)+ +(b.fee_msat||0),p[S].series[0].value=p[S].series[0].value+(+(b.value_msat||0)+ +(b.fee_msat||0))/1e3,p[S].series[0].extra.total=p[S].series[0].extra.total+1,this.transactionsReportSummary}),v?.map(b=>{const S=Math.floor((+(b.creation_date||0)-a)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(b.amt_paid_msat||0),p[S].series[1].value=p[S].series[1].value+ +(b.amt_paid_msat||0)/1e3,p[S].series[1].extra.total=p[S].series[1].extra.total+1,this.transactionsReportSummary})}return p}prepareTableData(){return this.transactionsReportData?.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(i){const o=i.selDate.getMonth(),a=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?c.KR[i].days+1:c.KR[i].days}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-transactions-report"]],hostBindings:function(o,a){1&o&&e.bIt("mouseup",function(p){return a.onChartMouseUp(p)})},standalone:!1,decls:11,vars:6,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"select","mouseup","view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding"],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"rtl-horizontal-scroller",4),e.bIt("stepChanged",function(p){return a.onSelectionChange(p)}),e.k0s(),e.DNE(4,T0,4,0,"div",5)(5,k0,2,1,"div",6)(6,E0,3,3,"div",7)(7,I0,2,0,"div",8)(8,j0,2,1,"div",9),e.j41(9,"div",10),e.DNE(10,G0,1,5,"rtl-transactions-report-table",11),e.k0s()()()()),2&o&&(e.R7$(4),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.ERROR),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length<=0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(2),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED))},dependencies:[_.bT,V.HM,f.DJ,f.sA,f.UI,st.Dl,ot.m,v0.T,_.QX],encapsulation:2,data:{animation:[Ge.q]}}))}return t(),s})();const N0=["form"];function P0(t,s){if(1&t&&(e.j41(0,"div",17),e.nrm(1,"fa-icon",18),e.j41(2,"span"),e.EFF(3,'Bump fee option will be disabled for unconfirmed UTXOs where label text includes "sweep" in its value.'),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle)}}function $0(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"UTXO Label is required."),e.k0s())}function A0(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.labelError)}}function M0(t,s){if(1&t&&(e.j41(0,"div",19),e.nrm(1,"fa-icon",18),e.DNE(2,A0,2,1,"span",12),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.labelError)}}let B0=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.dataService=a,this.store=l,this.snackBar=p,this.commonService=m,this.faExclamationTriangle=x.zpE,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label||""}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo&&this.utxo.outpoint&&this.utxo.outpoint.txid_bytes?this.utxo.outpoint.txid_bytes:"",this.label,!0).pipe((0,g.Q)(this.unSubs[0])).subscribe({next:i=>{this.store.dispatch((0,T.mh)()),this.store.dispatch((0,T.SM)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:i=>{this.labelError=i}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(Z.u),e.rXU(L.il),e.rXU(le.UG),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(o,a){if(1&o&&e.GBs(N0,7),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first)}},standalone:!1,decls:24,vars:7,consts:[["form","ngForm"],["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 center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","100"],["autoFocus","","matInput","","name","label","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["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"],["mat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Label UTXO"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0),e.bIt("submit",function(){return r.eBV(l),r.Njj(a.onLabelUTXO())})("reset",function(){return r.eBV(l),r.Njj(a.resetData())}),e.DNE(11,P0,4,1,"div",9),e.nI1(12,"lowercase"),e.j41(13,"mat-form-field",10)(14,"mat-label"),e.EFF(15,"UTXO Label"),e.k0s(),e.j41(16,"input",11),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.label,m)||(a.label=m),r.Njj(m)}),e.k0s(),e.DNE(17,$0,2,0,"mat-error",12),e.k0s(),e.DNE(18,M0,3,2,"div",13),e.j41(19,"div",14)(20,"button",15),e.EFF(21,"Clear"),e.k0s(),e.j41(22,"button",16),e.EFF(23,"Label UTXO"),e.k0s()()()()()()}2&o&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(5),e.Y8G("ngIf",e.bMT(12,5,a.label).includes("sweep")&&"0"===a.utxo.confirmations),e.R7$(5),e.R50("ngModel",a.label),e.R7$(),e.Y8G("ngIf",!a.label),e.R7$(),e.Y8G("ngIf",""!==a.labelError))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,O.aY,Y.tx,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.TL,f.DJ,f.sA,f.UI,te.N,_.GH],encapsulation:2}))}return t(),s})();const lt=()=>["all"],O0=t=>({"error-border":t}),V0=()=>["no_utxo"],$e=t=>({width:t}),Y0=t=>({"display-none":t});function X0(t,s){if(1&t&&(e.j41(0,"mat-option",34),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function U0(t,s){1&t&&e.nrm(0,"mat-progress-bar",35)}function H0(t,s){1&t&&e.nrm(0,"th",36)}function q0(t,s){1&t&&(e.j41(0,"span",39)(1,"mat-icon",40),e.EFF(2,"warning"),e.k0s()())}function z0(t,s){if(1&t&&(e.j41(0,"td",37),e.DNE(1,q0,3,0,"span",38),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(),o=e.sdS(52);e.R7$(),e.Y8G("ngIf",n.amount_sat0))}}function Cf(t,s){1&t&&e.nrm(0,"tr",57)}function yf(t,s){1&t&&e.nrm(0,"tr",58)}function bf(t,s){1&t&&e.nrm(0,"mat-icon",40)}let Ff=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.logger=i,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=p,this.decimalPipe=m,this.camelCaseWithReplace=v,this.snackBar=b,this.isDustUTXO=!1,this.dustAmount=1e3,this.faMoneyBillWave=x.ymQ,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"utxos",recordsPerPage:c.md,sortBy:"tx_id",sortOrder:c.oi.DESCENDING},this.addressType=c.aG,this.displayedColumns=[],this.listUTXOs=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(){!this.isDustUTXO&&this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos),this.isDustUTXO&&this.dustUtxos&&this.dustUtxos.length>0&&this.loadUTXOsTable(this.dustUtxos)}ngOnInit(){this.tableSetting.tableId=this.isDustUTXO?"dust_utxos":"utxos",this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.ah).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),i.utxos&&i.utxos.length>0&&(this.dustUtxos=i.utxos?.filter(o=>+(o.amount_sat||0)0&&this.dustUtxos.length>0&&!this.isDustUTXO&&this.displayedColumns.unshift("is_dust"),this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(i)})}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):"is_dust"===i?"Dust":this.commonService.titleCase(i)}setFilterPredicate(){this.listUTXOs.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.label?i.label.toLowerCase():"")+(i.outpoint?.txid_str?i.outpoint.txid_str.toLowerCase():"")+(i.outpoint?.output_index?i.outpoint?.output_index:"")+(i.outpoint?.txid_bytes?i.outpoint?.txid_bytes.toLowerCase():"")+(i.address?i.address.toLowerCase():"")+(i.address_type?this.addressType[i.address_type].name.toLowerCase():"")+(i.amount_sat?i.amount_sat:"")+(i.confirmations?i.confirmations:"");break;case"is_dust":a=+(i?.amount_sat||0)"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"is_dust"===this.selFilterBy||"address_type"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}onUTXOClick(i){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:i.outpoint?.txid_str,title:"Transaction ID",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"label",value:i.label,title:"Label",width:100,type:c.UN.STRING}],[{key:"output_index",value:i.outpoint?.output_index,title:"Output Index",width:34,type:c.UN.NUMBER},{key:"amount_sat",value:i.amount_sat,title:"Amount (Sats)",width:33,type:c.UN.NUMBER},{key:"confirmations",value:i.confirmations,title:"Confirmations",width:33,type:c.UN.NUMBER}],[{key:"address_type",value:i.address_type?this.addressType[i.address_type].name:"",title:"Address Type",width:34},{key:"address",value:i.address,title:"Address",width:66}],[{key:"pk_script",value:i.pk_script,title:"PK Script",width:100,type:c.UN.STRING}]]}}}))}loadUTXOsTable(i){this.listUTXOs=new u.I6([...i]),this.listUTXOs.sort=this.sort,this.listUTXOs.sortingDataAccessor=(o,a)=>{switch(a){case"is_dust":return+(o.amount_sat||0){a&&this.dataService.leaseUTXO(i.outpoint?.txid_bytes||"",i.outpoint?.output_index||0).pipe((0,g.Q)(this.unSubs[0])).subscribe({next:l=>{this.snackBar.open("The UTXO has been leased till "+new Date(l).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")},error:l=>{this.snackBar.open(l+" UTXO not leased.","",{panelClass:"rtl-warn-snack-bar"})}})})}onBumpFee(i){this.store.dispatch((0,I.xO)({payload:{data:{selUTXO:i,component:tt}}}))}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(Z.u),e.rXU(L.il),e.rXU(_e.H),e.rXU(_.QX),e.rXU(J.VD),e.rXU(le.UG))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{isDustUTXO:"isDustUTXO",dustAmount:"dustAmount"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("UTXOs")}]),e.OA$],decls:53,vars:19,consts:[["table",""],["emptySpace",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["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,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","is_dust"],["mat-header-cell","","mat-sort-header","","matTooltip","Dust/Nondust",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","label"],["matColumnDef","address_type"],["matColumnDef","address"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["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","Dust/Nondust"],["mat-cell",""],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"small-icon"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row","fxLayoutAlign","start 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"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"mat-form-field",5)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,X0,2,2,"mat-option",7),e.k0s()()(),e.j41(9,"mat-form-field",5)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(13,"div",9)(14,"div",10),e.DNE(15,U0,1,0,"mat-progress-bar",11),e.j41(16,"table",12,0),e.qex(18,13),e.DNE(19,H0,1,0,"th",14)(20,z0,2,2,"td",15),e.bVm(),e.qex(21,16),e.DNE(22,J0,2,0,"th",17)(23,Q0,4,4,"td",15),e.bVm(),e.qex(24,18),e.DNE(25,W0,2,0,"th",19)(26,Z0,3,1,"td",15),e.bVm(),e.qex(27,20),e.DNE(28,K0,2,0,"th",17)(29,ef,4,4,"td",15),e.bVm(),e.qex(30,21),e.DNE(31,tf,2,0,"th",17)(32,nf,3,1,"td",15),e.bVm(),e.qex(33,22),e.DNE(34,af,2,0,"th",17)(35,sf,4,4,"td",15),e.bVm(),e.qex(36,23),e.DNE(37,of,2,0,"th",19)(38,lf,4,3,"td",15),e.bVm(),e.qex(39,24),e.DNE(40,rf,2,0,"th",19)(41,cf,4,3,"td",15),e.bVm(),e.qex(42,25),e.DNE(43,pf,6,0,"th",26)(44,uf,12,3,"td",27),e.bVm(),e.qex(45,28),e.DNE(46,ff,4,3,"td",29),e.bVm(),e.DNE(47,gf,1,3,"tr",30)(48,Cf,1,0,"tr",31)(49,yf,1,0,"tr",32),e.k0s(),e.nrm(50,"mat-paginator",33),e.k0s()()(),e.DNE(51,bf,1,0,"ng-template",null,1,e.C5r)}2&o&&(e.R7$(6),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",a.utxos&&a.utxos.length>0&&a.dustUtxos&&a.dustUtxos.length>0&&!a.isDustUTXO?e.lJ4(14,lt).concat(a.displayedColumns.slice(0,-1)):e.lJ4(15,lt).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listUTXOs)("ngClass",e.eq3(16,O0,""!==a.errorMessage)),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(18,V0)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,oe.An,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.GH,_.QX],styles:[".mat-column-is_dust[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return t(),s})();const xf=()=>["all"],vf=t=>({"error-border":t}),Tf=()=>["no_transaction"],Ae=t=>({width:t}),kf=t=>({"display-none":t});function Sf(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Rf(t,s){1&t&&e.nrm(0,"mat-progress-bar",33)}function Ef(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Date/Time"),e.k0s())}function If(t,s){if(1&t&&(e.j41(0,"td",35),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,1e3*n.time_stamp,"dd/MMM/y HH:mm"))}}function Lf(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Label"),e.k0s())}function wf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ae,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.label)}}function jf(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Block Hash"),e.k0s())}function Gf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ae,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.block_hash)}}function Df(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Transaction Hash"),e.k0s())}function Nf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ae,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.tx_hash)}}function Pf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Amount (Sats)"),e.k0s())}function $f(t,s){if(1&t&&(e.j41(0,"span",41),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.JRh(e.bMT(2,1,n.amount))}}function Af(t,s){if(1&t&&(e.j41(0,"span",42),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.SpI("(",e.bMT(2,1,-1*n.amount),")")}}function Mf(t,s){if(1&t&&(e.j41(0,"td",35),e.DNE(1,$f,3,3,"span",39)(2,Af,3,3,"span",40),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.amount>0||0===n.amount),e.R7$(),e.Y8G("ngIf",n.amount<0)}}function Bf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Fees (Sats)"),e.k0s())}function Of(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_fees))}}function Vf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Block Height"),e.k0s())}function Yf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.block_height))}}function Xf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Confirmations"),e.k0s())}function Uf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,null==n?null:n.num_confirmations)," ")}}function Hf(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",43)(1,"div",44)(2,"mat-select",45),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",46),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function qf(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",47)(1,"button",48),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onTransactionClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function zf(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No transaction available."),e.k0s())}function Jf(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting transactions..."),e.k0s())}function Qf(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Wf(t,s){if(1&t&&(e.j41(0,"td",49),e.DNE(1,zf,2,0,"p",50)(2,Jf,2,0,"p",50)(3,Qf,2,1,"p",50),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Zf(t,s){if(1&t&&e.nrm(0,"tr",51),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,kf,(null==n.listTransactions?null:n.listTransactions.data)&&(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)>0))}}function Kf(t,s){1&t&&e.nrm(0,"tr",52)}function e2(t,s){1&t&&e.nrm(0,"tr",53)}let t2=(()=>{var t;class s{constructor(i,o,a,l,p){this.logger=i,this.commonService=o,this.store=a,this.datePipe=l,this.camelCaseWithReplace=p,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transactions",recordsPerPage:c.md,sortBy:"time_stamp",sortOrder:c.oi.DESCENDING},this.faHistory=x.Int,this.displayedColumns=[],this.listTransactions=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.gN).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),i.transactions&&i.transactions.length>0&&(this.transactions=i.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(i)})}onTransactionClick(i){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:i.block_hash,title:"Block Hash",width:100,explorerLink:"block"}],[{key:"tx_hash",value:i.tx_hash,title:"Transaction Hash",width:100,explorerLink:"tx"}],[{key:"label",value:i.label,title:"Label",width:100,type:c.UN.STRING}],[{key:"time_stamp",value:i.time_stamp,title:"Date/Time",width:50,type:c.UN.DATE_TIME},{key:"block_height",value:i.block_height,title:"Block Height",width:50,type:c.UN.NUMBER}],[{key:"num_confirmations",value:i.num_confirmations,title:"Number of Confirmations",width:34,type:c.UN.NUMBER},{key:"total_fees",value:i.total_fees,title:"Total Fees (Sats)",width:33,type:c.UN.NUMBER},{key:"amount",value:i.amount,title:"Amount (Sats)",width:33,type:c.UN.NUMBER}],[{key:"dest_addresses",value:i.dest_addresses,title:"Destination Addresses",width:100,type:c.UN.ARRAY}]],scrollable:i.dest_addresses&&i.dest_addresses.length>5}}}))}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.listTransactions.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.time_stamp?this.datePipe.transform(new Date(1e3*i.time_stamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"time_stamp":a=this.datePipe.transform(new Date(1e3*(i?.time_stamp||0)),"dd/MMM/YYYY HH:mm")?.toLowerCase()||"";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return a.includes(o)}}loadTransactionsTable(i){this.listTransactions=new u.I6([...i]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,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(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(_.vh),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Transactions")}]),e.OA$],decls:51,vars:18,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["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,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","block_hash"],["matColumnDef","tx_hash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","",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(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",5),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,Sf,2,2,"mat-option",6),e.k0s()()(),e.j41(9,"mat-form-field",4)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",7),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(13,"div",8)(14,"div",9),e.DNE(15,Rf,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,Ef,2,0,"th",13)(20,If,3,4,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Lf,2,0,"th",13)(23,wf,4,4,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,jf,2,0,"th",13)(26,Gf,4,4,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,Df,2,0,"th",13)(29,Nf,4,4,"td",14),e.bVm(),e.qex(30,18),e.DNE(31,Pf,2,0,"th",19)(32,Mf,3,2,"td",14),e.bVm(),e.qex(33,20),e.DNE(34,Bf,2,0,"th",19)(35,Of,4,3,"td",14),e.bVm(),e.qex(36,21),e.DNE(37,Vf,2,0,"th",19)(38,Yf,4,3,"td",14),e.bVm(),e.qex(39,22),e.DNE(40,Xf,2,0,"th",19)(41,Uf,4,3,"td",14),e.bVm(),e.qex(42,23),e.DNE(43,Hf,6,0,"th",24)(44,qf,3,0,"td",25),e.bVm(),e.qex(45,26),e.DNE(46,Wf,4,3,"td",27),e.bVm(),e.DNE(47,Zf,1,3,"tr",28)(48,Kf,1,0,"tr",29)(49,e2,1,0,"tr",30),e.k0s(),e.nrm(50,"mat-paginator",31),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,xf).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listTransactions)("ngClass",e.eq3(15,vf,""!==a.errorMessage)),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(17,Tf)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX,_.vh],encapsulation:2}))}return t(),s})();function n2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"UTXOs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numUtxos))}}function i2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"Transactions"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numTransactions))}}function a2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"Dust UTXOs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numDustUtxos))}}let s2=(()=>{var t;class s{constructor(i,o){this.logger=i,this.store=o,this.selectedTableIndex=0,this.selectedTableIndexChange=new e.bkB,this.DUST_AMOUNT=1e3,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.store.dispatch((0,T.mh)()),this.store.dispatch((0,T.SM)()),this.store.select(F.ah).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{i.utxos&&i.utxos.length>0&&(this.numUtxos=i.utxos.length,this.numDustUtxos=i.utxos?.filter(o=>o.amount_sat&&+o.amount_sat{i.transactions&&i.transactions.length>0&&(this.numTransactions=i.transactions.length),this.logger.info(i)})}onSelectedIndexChanged(i){this.selectedTableIndexChange.emit(i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},standalone:!1,decls:11,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO","dustAmount"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"mat-tab-group",1),e.bIt("selectedIndexChange",function(p){return a.onSelectedIndexChanged(p)}),e.j41(2,"mat-tab"),e.DNE(3,n2,2,2,"ng-template",2),e.nrm(4,"rtl-on-chain-utxos",3),e.k0s(),e.j41(5,"mat-tab"),e.DNE(6,i2,2,2,"ng-template",2),e.nrm(7,"rtl-on-chain-transaction-history",4),e.k0s(),e.j41(8,"mat-tab"),e.DNE(9,a2,2,2,"ng-template",2),e.nrm(10,"rtl-on-chain-utxos",3),e.k0s()()()),2&o&&(e.R7$(),e.Y8G("selectedIndex",a.selectedTableIndex),e.R7$(3),e.Y8G("isDustUTXO",!1)("dustAmount",a.DUST_AMOUNT),e.R7$(6),e.Y8G("isDustUTXO",!0)("dustAmount",a.DUST_AMOUNT))},dependencies:[f.DJ,f.sA,f.UI,Re.k,A.ES,A.mq,A.T8,Ff,t2],encapsulation:2}))}return t(),s})();const o2=(t,s)=>[t,s];function l2(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=null==o?null:o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("active",i.activeLink===(null==n?null:n.link))("routerLink",e.l_i(3,o2,null==n?null:n.link,null==i.selectedTable?null:i.selectedTable.name)),e.R7$(),e.JRh(null==n?null:n.name)}}let r2=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.router=o,this.activatedRoute=a,this.faExchangeAlt=x._qq,this.faChartPie=x.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.selectedTable=this.tables.find(o=>o.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1))||this.tables[0],this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link,this.selectedTable=this.tables.find(l=>l.name===o.urlAfterRedirects.substring(o.urlAfterRedirects.lastIndexOf("/")+1))||this.tables[0]}}),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(o=>{this.selNode=o}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[2])).subscribe(o=>{this.balances=[{title:"Total Balance",dataValue:o.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:o.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:o.blockchainBalance.unconfirmed_balance||0}]})}onSelectedTableIndexChanged(i){this.selectedTable=this.tables.find(o=>o.id===i)||this.tables[0],this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(w.Ix),e.rXU(w.nX))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain"]],standalone:!1,decls:23,vars:6,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndexChange","selectedTableIndex"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"On-chain Balance"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),e.nrm(7,"rtl-currency-unit-converter",6),e.k0s()()(),e.j41(8,"div",1),e.nrm(9,"fa-icon",2),e.j41(10,"span",3),e.EFF(11,"On-chain Transactions"),e.k0s()(),e.j41(12,"div",7)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",8),e.DNE(16,l2,2,6,"div",9),e.k0s(),e.nrm(17,"mat-tab-nav-panel",null,0),e.j41(19,"div",10),e.nrm(20,"router-outlet"),e.k0s(),e.j41(21,"div",11)(22,"rtl-utxo-tables",12),e.bIt("selectedTableIndexChange",function(m){return r.eBV(l),r.Njj(a.onSelectedTableIndexChanged(m))}),e.k0s()()()()()}if(2&o){const l=e.sdS(18);e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faExchangeAlt),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links),e.R7$(6),e.Y8G("selectedTableIndex",null==a.selectedTable?null:a.selectedTable.id)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,Ee.f,w.n3,ie.Wk,s2],encapsulation:2}))}return t(),s})();var c2=y(80396);function p2(t,s){if(1&t&&(e.j41(0,"mat-option",6),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.addressTp," ")}}let m2=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.lndEffects=o,this.commonService=a,this.addressTypes=[],this.selectedAddressType=c.Ld[2],this.newAddress="",this.flgVersionCompatible=!0,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(i.version,"0.15.0"),this.addressTypes=this.flgVersionCompatible?c.Ld:c.Ld.filter(o=>"4"!==o.addressId)})}onGenerateAddress(){this.store.dispatch((0,T.XT)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,W.s)(1)).subscribe(i=>{this.newAddress=i,setTimeout(()=>{this.store.dispatch((0,I.xO)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:c2.f}}}))},0)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(me.L),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-receive"]],standalone:!1,decls:10,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutAlign.gt-sm","start center"],["fxLayout","column","fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["name","address_type","tabindex","1",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-flat-button","","color","primary","tabindex","2",3,"click"],[3,"value"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),e.EFF(4,"Address Type"),e.k0s(),e.j41(5,"mat-select",3),e.mxI("ngModelChange",function(p){return e.DH7(a.selectedAddressType,p)||(a.selectedAddressType=p),p}),e.DNE(6,p2,2,2,"mat-option",4),e.k0s()(),e.j41(7,"div")(8,"button",5),e.bIt("click",function(){return a.onGenerateAddress()}),e.EFF(9,"Generate Address"),e.k0s()()()()),2&o&&(e.R7$(5),e.R50("ngModel",a.selectedAddressType),e.R7$(),e.Y8G("ngForOf",a.addressTypes))},dependencies:[_.Sq,d.BC,d.vS,N.$z,C.rl,C.nJ,f.DJ,f.sA,f.UI,E.VO,X.wT],encapsulation:2}))}return t(),s})();var u2=y(82852);const d2=["form"],h2=["formSweepAll"],_2=["stepper"];function f2(t,s){if(1&t&&(e.j41(0,"div",16),e.nrm(1,"fa-icon",17),e.j41(2,"span",18)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",19)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function g2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Bitcoin address is required."),e.k0s())}function C2(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.amountError)}}function y2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(n)}}function b2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function F2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function x2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",40)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",41,4),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.transactionBlocks,o)||(a.transactionBlocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,F2,2,0,"mat-error",23),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.transactionBlocks),e.R7$(2),e.Y8G("ngIf",!n.transactionBlocks)}}function v2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function T2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",40)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",42,5),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.transactionFees,o)||(a.transactionFees=o),r.Njj(o)}),e.k0s(),e.DNE(5,v2,2,0,"mat-error",23),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.transactionFees),e.R7$(2),e.Y8G("ngIf",!n.transactionFees)}}function k2(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.sendFundError)}}function S2(t,s){if(1&t&&(e.j41(0,"div",43),e.nrm(1,"fa-icon",17),e.DNE(2,k2,2,1,"span",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.sendFundError)}}function R2(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",20,1),e.bIt("submit",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendFunds())})("reset",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.j41(2,"mat-form-field",21)(3,"mat-label"),e.EFF(4,"Bitcoin Address"),e.k0s(),e.j41(5,"input",22,2),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.transactionAddress,o)||(a.transactionAddress=o),r.Njj(o)}),e.k0s(),e.DNE(7,g2,2,0,"mat-error",23),e.k0s(),e.j41(8,"mat-form-field",24)(9,"mat-label"),e.EFF(10,"Amount"),e.k0s(),e.j41(11,"input",25,3),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.transactionAmount,o)||(a.transactionAmount=o),r.Njj(o)}),e.k0s(),e.j41(13,"span",26),e.EFF(14),e.k0s(),e.DNE(15,C2,2,1,"mat-error",23),e.k0s(),e.j41(16,"mat-form-field",27)(17,"mat-label"),e.EFF(18,"Amount Unit"),e.k0s(),e.j41(19,"mat-select",28),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onAmountUnitChange(o))}),e.DNE(20,y2,2,2,"mat-option",29),e.k0s()(),e.j41(21,"div",30)(22,"mat-form-field",31)(23,"mat-label"),e.EFF(24,"Transaction Type"),e.k0s(),e.j41(25,"mat-select",32),e.mxI("valueChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selTransType,o)||(a.selTransType=o),r.Njj(o)}),e.DNE(26,b2,2,2,"mat-option",29),e.k0s()(),e.DNE(27,x2,6,4,"mat-form-field",33)(28,T2,6,4,"mat-form-field",33),e.k0s(),e.nrm(29,"div",34),e.DNE(30,S2,3,2,"div",35),e.j41(31,"div",36)(32,"button",37),e.EFF(33,"Clear Fields"),e.k0s(),e.j41(34,"button",38),e.EFF(35,"Send Funds"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.R50("ngModel",n.transactionAddress),e.R7$(2),e.Y8G("ngIf",!n.transactionAddress),e.R7$(4),e.Y8G("step",100)("min",0),e.R50("ngModel",n.transactionAmount),e.R7$(3),e.SpI("",n.selAmountUnit," "),e.R7$(),e.Y8G("ngIf",!n.transactionAmount),e.R7$(4),e.Y8G("value",n.selAmountUnit),e.R7$(),e.Y8G("ngForOf",n.amountUnits),e.R7$(5),e.R50("value",n.selTransType),e.R7$(),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","1"===n.selTransType),e.R7$(),e.Y8G("ngIf","2"===n.selTransType),e.R7$(2),e.Y8G("ngIf",""!==n.sendFundError)}}function E2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(3);e.JRh(n.passwordFormLabel)}}function I2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function L2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-step",47)(1,"form",66),e.DNE(2,E2,1,1,"ng-template",60),e.j41(3,"div",7)(4,"mat-form-field",18)(5,"mat-label"),e.EFF(6,"Password"),e.k0s(),e.nrm(7,"input",67),e.DNE(8,I2,2,0,"mat-error",23),e.k0s()(),e.j41(9,"div",68)(10,"button",63),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onAuthenticate())}),e.EFF(11,"Confirm"),e.k0s()()()()}if(2&t){const n=e.XpG(2);e.Y8G("stepControl",n.passwordFormGroup)("editable",n.flgEditable),e.R7$(),e.Y8G("formGroup",n.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.password.errors?null:n.passwordFormGroup.controls.password.errors.required)}}function w2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.sendFundFormLabel)}}function j2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Bitcoin address is required."),e.k0s())}function G2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function D2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function N2(t,s){if(1&t&&(e.j41(0,"mat-form-field",69)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.nrm(3,"input",70),e.DNE(4,D2,2,0,"mat-error",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R7$(),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionBlocks.errors?null:n.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function P2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function $2(t,s){if(1&t&&(e.j41(0,"mat-form-field",69)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.nrm(3,"input",71),e.DNE(4,P2,2,0,"mat-error",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R7$(),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionFees.errors?null:n.sendFundFormGroup.controls.transactionFees.errors.required)}}function A2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.confirmFormLabel)}}function M2(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.sendFundError)}}function B2(t,s){if(1&t&&(e.j41(0,"div",43),e.nrm(1,"fa-icon",17),e.DNE(2,M2,2,1,"span",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.sendFundError)}}function O2(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",44)(1,"mat-vertical-stepper",45,6),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.stepSelectionChanged(o))}),e.DNE(3,L2,12,4,"mat-step",46),e.j41(4,"mat-step",47)(5,"form",48),e.DNE(6,w2,1,1,"ng-template",49),e.j41(7,"div",50)(8,"mat-form-field",51)(9,"mat-label"),e.EFF(10,"Bitcoin Address"),e.k0s(),e.nrm(11,"input",52),e.DNE(12,j2,2,0,"mat-error",23),e.k0s(),e.j41(13,"mat-form-field",53)(14,"mat-label"),e.EFF(15,"Transaction Type"),e.k0s(),e.j41(16,"mat-select",54),e.DNE(17,G2,2,2,"mat-option",29),e.k0s()(),e.DNE(18,N2,5,3,"mat-form-field",55)(19,$2,5,3,"mat-form-field",55),e.k0s(),e.j41(20,"div",56)(21,"button",57),e.EFF(22,"Next"),e.k0s()()()(),e.j41(23,"mat-step",58)(24,"form",59),e.DNE(25,A2,1,1,"ng-template",60),e.j41(26,"div",44)(27,"div",61),e.nrm(28,"fa-icon",62),e.j41(29,"span"),e.EFF(30,"You are about to sweep all funds from RTL. Are you sure?"),e.k0s()(),e.DNE(31,B2,3,2,"div",35),e.j41(32,"div",56)(33,"button",63),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendFunds())}),e.EFF(34,"Sweep All Funds"),e.k0s()()()()()(),e.j41(35,"div",64)(36,"button",65),e.EFF(37),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(),e.Y8G("linear",!0),e.R7$(2),e.Y8G("ngIf",!n.appConfig.SSO.rtlSSO),e.R7$(),e.Y8G("stepControl",n.sendFundFormGroup)("editable",n.flgEditable),e.R7$(),e.Y8G("formGroup",n.sendFundFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionAddress.errors?null:n.sendFundFormGroup.controls.transactionAddress.errors.required),e.R7$(5),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","1"===n.sendFundFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf","2"===n.sendFundFormGroup.controls.selTransType.value),e.R7$(4),e.Y8G("stepControl",n.confirmFormGroup),e.R7$(),e.Y8G("formGroup",n.confirmFormGroup),e.R7$(4),e.Y8G("icon",n.faExclamationTriangle),e.R7$(3),e.Y8G("ngIf",""!==n.sendFundError),e.R7$(5),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(n.flgValidated?"Close":"Cancel")}}let V2=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b,S,PC,$C){this.dialogRef=i,this.data=o,this.logger=a,this.dataService=l,this.store=p,this.rtlEffects=m,this.commonService=v,this.decimalPipe=b,this.snackBar=S,this.actions=PC,this.formBuilder=$C,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.sweepAll=!1,this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=c.A0,this.selAmountUnit=c.A0[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=c.k,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[0])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[d.k0.required]],password:["",[d.k0.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",d.k0.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",d.k0.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{"1"===i?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([d.k0.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([d.k0.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(H.qv).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.appConfig=i}),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.fiatConversion=i.settings.fiatConversion,this.amountUnits=i.settings.currencyUnits,this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,U.p)(i=>i.type===c.QP.UPDATE_API_CALL_STATUS_LND||i.type===c.QP.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(i=>{i.type===c.QP.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,I.UI)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&i.payload.status===c.wn.ERROR&&"SetChannelTransaction"===i.payload.action&&(this.sendFundError=i.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,I.oz)({payload:u2(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,W.s)(1)).subscribe(i=>{"ERROR"!==i?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="";const i={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(i.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(i.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(i.fees=this.sendFundFormGroup.controls.transactionFees.value)):(i.address=this.transactionAddress,"1"===this.selTransType&&(i.blocks=this.transactionBlocks),"2"===this.selTransType&&(i.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==c.BQ.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?c.BQ.OTHER:this.selAmountUnit,c.BQ.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,g.Q)(this.unSubs[5])).subscribe({next:o=>{this.selAmountUnit=c.BQ.SATS,i.amount=+(this.decimalPipe.transform(o[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]])?.replace(/,/g,"")||0),this.store.dispatch((0,T.aB)({payload:i}))},error:o=>{this.transactionAmount=null,this.selAmountUnit=c.BQ.SATS,this.amountError="Conversion Error: "+o}}):this.store.dispatch((0,T.aB)({payload:i}))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(i){switch(this.sendFundError="",i.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value)}i.selectedIndex{this.selAmountUnit=i.value,o.transactionAmount=+(o.decimalPipe.transform(m[l],o.currencyUnitFormats[l])?.replace(/,/g,"")||0)},error:m=>{o.transactionAmount=null,this.amountError="Conversion Error: "+m,this.selAmountUnit=a,l=a}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU(Z.u),e.rXU(L.il),e.rXU(_e.H),e.rXU($.h),e.rXU(_.QX),e.rXU(le.UG),e.rXU(K.En),e.rXU(d.ze))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(o,a){if(1&o&&(e.GBs(d2,7),e.GBs(h2,5),e.GBs(_2,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.formSweepAll=l.first),e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:13,vars:5,consts:[["sweepAllBlock",""],["form","ngForm"],["address","ngModel"],["amnt","ngModel"],["blocks","ngModel"],["fees","ngModel"],["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column",1,"padding-gap-x-large"],["fxFlex","100","class","alert alert-info mb-2",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["fxFlex","100",1,"alert","alert-info","mb-2"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["fxLayout","column","fxFlex.gt-sm","55"],["autoFocus","","matInput","","name","address","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","30"],["matInput","","name","amt","type","number","required","",3,"ngModelChange","step","min","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex.gt-sm","10","fxLayoutAlign","start end"],["required","","name","amountUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxLayout","column","fxFlex","48"],[3,"valueChange","value"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit"],[3,"value"],["fxFlex","48"],["matInput","","type","number","name","blcks","required","",3,"ngModelChange","step","min","ngModel"],["matInput","","type","number","name","chainFees","required","",3,"ngModelChange","step","min","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxLayout","column","fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","name","address","required",""],["fxLayout","column","fxFlex.gt-sm","25"],["formControlName","selTransType"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","type","password","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","type","number","name","blcks","required","",3,"step","min"],["matInput","","formControlName","transactionFees","type","number","name","chainFees","required","",3,"step","min"]],template:function(o,a){if(1&o&&(e.j41(0,"div",7)(1,"div",8)(2,"mat-card-header",9)(3,"div",10)(4,"span",11),e.EFF(5),e.k0s()(),e.j41(6,"button",12),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",13),e.DNE(9,f2,16,6,"div",14)(10,R2,36,14,"form",15),e.k0s()()(),e.DNE(11,O2,38,15,"ng-template",null,0,e.C5r)),2&o){const l=e.sdS(12);e.R7$(5),e.JRh(a.sweepAll?"Sweep All Funds":"Send Funds"),e.R7$(),e.Y8G("mat-dialog-close",!1),e.R7$(3),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(),e.Y8G("ngIf",!a.sweepAll)("ngIfElse",l)}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,d.j4,d.JD,O.aY,Y.tx,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.TL,C.yw,f.DJ,f.sA,f.UI,E.VO,X.wT,z.V5,z.Ti,z.M6,z.F7,te.N,ae.V],encapsulation:2}))}return t(),s})(),rt=(()=>{var t;class s{constructor(i,o){this.store=i,this.activatedRoute=o,this.sweepAll=!1,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.activatedRoute.data.pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.sweepAll=i.sweepAll})}openSendFundsModal(){this.store.dispatch((0,I.xO)({payload:{data:{sweepAll:this.sweepAll,component:V2}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(w.nX))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-send"]],standalone:!1,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(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return a.openSendFundsModal()}),e.EFF(3),e.k0s()()()),2&o&&(e.R7$(3),e.JRh(a.sweepAll?"Sweep All":"Send Funds"))},dependencies:[N.$z,f.DJ,f.sA,f.UI],encapsulation:2}))}return t(),s})();const Y2=t=>({"mt-1":t}),ct=t=>({"dashboard-card-content":!0,"error-border":t});function X2(t,s){1&t&&e.nrm(0,"mat-progress-bar",26)}function U2(t,s){if(1&t&&e.nrm(0,"rtl-node-info",27),2&t){const n=e.XpG(3);e.Y8G("information",n.information)("showColorFieldSeparately",!0)}}function H2(t,s){if(1&t&&e.nrm(0,"rtl-channel-status-info",28),2&t){const n=e.XpG(3);e.Y8G("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[4])}}function q2(t,s){if(1&t&&e.nrm(0,"rtl-fee-info",29),2&t){const n=e.XpG(3);e.Y8G("fees",n.fees)("errorMessage",n.errorMessages[2])}}function z2(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",13)(1,"div",14)(2,"div",15)(3,"div",16),e.nrm(4,"fa-icon",17),e.j41(5,"span"),e.EFF(6),e.k0s()()(),e.j41(7,"div",18)(8,"mat-card",19)(9,"mat-card-content",20),e.DNE(10,X2,1,0,"mat-progress-bar",21),e.j41(11,"div",22),e.DNE(12,U2,1,2,"rtl-node-info",23)(13,H2,1,2,"rtl-channel-status-info",24)(14,q2,1,2,"rtl-fee-info",25),e.k0s()()()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(4),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(3),e.Y8G("ngClass",e.eq3(10,ct,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.ERROR)||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.INITIATED)||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","status"),e.R7$(),e.Y8G("ngSwitchCase","fee")}}function J2(t,s){if(1&t&&(e.j41(0,"mat-grid-list",11),e.DNE(1,z2,15,12,"mat-grid-tile",12),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngForOf",n.nodeCards)}}function Q2(t,s){1&t&&e.nrm(0,"mat-progress-bar",26)}function W2(t,s){1&t&&e.eu8(0)}function Z2(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,W2,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function K2(t,s){1&t&&e.eu8(0)}function eg(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,K2,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(13);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function tg(t,s){1&t&&e.eu8(0)}function ng(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,tg,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(15);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function ig(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",30)(1,"mat-card",31)(2,"mat-card-content",32),e.DNE(3,Q2,1,0,"mat-progress-bar",21),e.j41(4,"div",22),e.DNE(5,Z2,2,1,"div",33)(6,eg,2,1,"div",33)(7,ng,2,1,"div",33),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(2),e.Y8G("ngClass",e.eq3(8,ct,i.apiCallStatusNetwork.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf",i.apiCallStatusNetwork.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","general"),e.R7$(),e.Y8G("ngSwitchCase","channels"),e.R7$(),e.Y8G("ngSwitchCase","degrees")}}function ag(t,s){if(1&t&&(e.j41(0,"div",36)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessages[1])}}function sg(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Network Capacity"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Number of Nodes"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div")(14,"h4",38),e.EFF(15,"Number of Channels"),e.k0s(),e.j41(16,"span",39),e.EFF(17),e.nI1(18,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.SpI("",e.bMT(6,3,n.networkInfo.total_network_capacity)," Sats"),e.R7$(6),e.JRh(e.bMT(12,5,n.networkInfo.num_nodes)),e.R7$(6),e.JRh(e.bMT(18,7,n.networkInfo.num_channels))}}function og(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Max Channel Size"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Avg Channel Size"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div")(14,"h4",38),e.EFF(15,"Min Channel Size"),e.k0s(),e.j41(16,"span",39),e.EFF(17),e.nI1(18,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.JRh(e.bMT(6,3,n.networkInfo.max_channel_size)),e.R7$(6),e.JRh(e.bMT(12,5,n.networkInfo.avg_channel_size)),e.R7$(6),e.JRh(e.bMT(18,7,n.networkInfo.min_channel_size))}}function lg(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Max Out Degree"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Avg Out Degree"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div",40),e.nrm(14,"h4",38)(15,"span",39),e.k0s()()),2&t){const n=e.XpG();e.R7$(5),e.JRh(e.bMT(6,2,n.networkInfo.max_out_degree)),e.R7$(6),e.JRh(e.i5U(12,4,n.networkInfo.avg_out_degree,"1.0-2"))}}let rg=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.commonService=o,this.store=a,this.faProjectDiagram=x.qFF,this.faBolt=x.zm_,this.faServer=x.D6w,this.faNetworkWired=x.eGi,this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=c.f7,this.userPersonaEnum=c.HW,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize===c.f7.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select(F.gj).pipe((0,g.Q)(this.unSubs[0]),(0,ge.E)(this.store.select(H._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=i.apiCallStatus,this.apiCallStatusNodeInfo.status===c.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=o,this.information=i.information}),this.store.select(F.tA).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessages[1]="",this.apiCallStatusNetwork=i.apiCallStatus,this.apiCallStatusNetwork.status===c.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message?this.apiCallStatusNetwork.message:""),this.networkInfo=i.networkInfo}),this.store.select(F.oR).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessages[2]="",this.apiCallStatusFees=i.apiCallStatus,this.apiCallStatusFees.status===c.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=i.fees}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=i.apiCallStatus,this.apiCallStatusPendingChannels.status===c.wn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:i.pendingChannelsSummary.open?.num_channels,capacity:i.pendingChannelsSummary.open?.limbo_balance},this.channelsStatus.closing={num_channels:(i.pendingChannelsSummary.closing?.num_channels||0)+(i.pendingChannelsSummary.force_closing?.num_channels||0)+(i.pendingChannelsSummary.waiting_close?.num_channels||0),capacity:i.pendingChannelsSummary.total_limbo_balance}}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.errorMessages[3]="",this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusChannels.status===c.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:""),this.channelsStatus.active=i.channelsSummary.active,this.channelsStatus.inactive=i.channelsSummary.inactive,this.logger.info(i)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-network-info"]],standalone:!1,decls:16,vars:6,consts:[["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",1,"mt-2",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"mt-2"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(o,a){1&o&&(e.j41(0,"div",4),e.DNE(1,J2,2,1,"mat-grid-list",5),e.j41(2,"div",6),e.nrm(3,"fa-icon",7),e.j41(4,"span",8),e.EFF(5,"Network"),e.k0s()(),e.j41(6,"mat-grid-list",9),e.DNE(7,ig,8,10,"mat-grid-tile",10),e.k0s()(),e.DNE(8,ag,3,1,"ng-template",null,0,e.C5r)(10,sg,19,9,"ng-template",null,1,e.C5r)(12,og,19,9,"ng-template",null,2,e.C5r)(14,lg,16,7,"ng-template",null,3,e.C5r)),2&o&&(e.R7$(),e.Y8G("ngIf",a.selNode.settings.userPersona!==a.userPersonaEnum.OPERATOR),e.R7$(),e.Y8G("ngClass",e.eq3(4,Y2,a.screenSize!==a.screenSizeEnum.XS)),e.R7$(),e.Y8G("icon",a.faProjectDiagram),e.R7$(4),e.Y8G("ngForOf",a.networkCards))},dependencies:[_.YU,_.Sq,_.bT,_.T3,_.ux,_.e1,O.aY,k.RN,k.m2,Ce.B_,Ce.NS,V.HM,f.DJ,f.sA,f.UI,j.PW,Ue,He,qe,_.QX],encapsulation:2}))}return t(),s})();function cg(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let pg=(()=>{var t;class s{constructor(i){this.router=i,this.faDownload=x.cbP,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-backup"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Channels Backup"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,cg,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faDownload),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();const mg=t=>({"overflow-auto error-border":t,"overflow-auto":!0}),ug=()=>["no_channel"],dg=t=>({"max-width":t}),hg=t=>({"display-none":t});function _g(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",24)(1,"h4",25),e.EFF(2),e.k0s(),e.j41(3,"div",26)(4,"button",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onRestoreChannels({}))}),e.EFF(5,"Restore All"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function fg(t,s){if(1&t&&(e.j41(0,"div",28)(1,"h4",25),e.EFF(2),e.k0s(),e.j41(3,"h4",29),e.EFF(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function gg(t,s){if(1&t&&(e.j41(0,"div",28)(1,"h4",25),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function Cg(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function yg(t,s){1&t&&(e.j41(0,"th",31),e.EFF(1,"Channel Point"),e.k0s())}function bg(t,s){if(1&t&&(e.j41(0,"td",32)(1,"div",33)(2,"span",34),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,dg,i.screenSize===i.screenSizeEnum.XS?"25rem":"60rem")),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Fg(t,s){1&t&&(e.j41(0,"th",35)(1,"div",36),e.EFF(2,"Actions"),e.k0s()())}function xg(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",32)(1,"span",37)(2,"button",38),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onRestoreChannels(o))}),e.EFF(3,"Restore"),e.k0s()()()}}function vg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No singular channel backups available."),e.k0s())}function Tg(t,s){if(1&t&&(e.j41(0,"td",39),e.DNE(1,vg,2,0,"p",40),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.channels||!n.channels.data||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)}}function kg(t,s){if(1&t&&e.nrm(0,"tr",41),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,hg,n.channels&&n.channels.data&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Sg(t,s){1&t&&e.nrm(0,"tr",42)}function Rg(t,s){1&t&&e.nrm(0,"tr",43)}let Eg=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.channels=new u.I6([]),this.allRestoreExists=!1,this.flgLoading=[!0],this.selFilter="",this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,T.$J)()),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.lndEffects.setRestoreChannelList.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.allRestoreExists=i.all_restore_exists,this.channelsData=i.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||i&&i.files)&&(this.flgLoading[0]=!1),this.logger.info(i)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(i){this.store.dispatch((0,T.Lf)({payload:{channelPoint:i.channel_point?i.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(i){this.channels=new u.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>(o.channel_point?o.channel_point.toLowerCase():"").includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(me.L),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-restore-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:28,vars:16,consts:[["table",""],["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["fxLayout","column","fxFlex","49"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["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"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1),e.DNE(1,_g,6,1,"div",2)(2,fg,5,1,"div",3)(3,gg,3,1,"div",3),e.j41(4,"div",4),e.nrm(5,"div",5),e.j41(6,"div",6),e.nrm(7,"div",7),e.j41(8,"mat-form-field",8)(9,"mat-label"),e.EFF(10,"Filter"),e.k0s(),e.j41(11,"input",9),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(12,"div",10),e.DNE(13,Cg,1,0,"mat-progress-bar",11),e.j41(14,"table",12,0),e.qex(16,13),e.DNE(17,yg,2,0,"th",14)(18,bg,4,4,"td",15),e.bVm(),e.qex(19,16),e.DNE(20,Fg,3,0,"th",17)(21,xg,4,0,"td",15),e.bVm(),e.qex(22,18),e.DNE(23,Tg,2,1,"td",19),e.bVm(),e.DNE(24,kg,1,3,"tr",20)(25,Sg,1,0,"tr",21)(26,Rg,1,0,"tr",22),e.k0s()(),e.nrm(27,"mat-paginator",23),e.k0s()}2&o&&(e.R7$(),e.Y8G("ngIf",a.allRestoreExists),e.R7$(),e.Y8G("ngIf",!a.allRestoreExists&&(!a.channels||(null==a.channels||null==a.channels.data?null:a.channels.data.length)<=0)),e.R7$(),e.Y8G("ngIf",!a.allRestoreExists&&a.channels&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)>0),e.R7$(8),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",!0===a.flgLoading[0]),e.R7$(),e.Y8G("dataSource",a.channels)("ngClass",e.eq3(13,mg,"error"===a.flgLoading[0])),e.R7$(10),e.Y8G("matFooterRowDef",e.lJ4(15,ug)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.Ld],encapsulation:2}))}return t(),s})();const Ig=t=>({"error-border":t}),Lg=()=>["no_channel"],wg=t=>({"max-width":t}),jg=t=>({"display-none":t});function Gg(t,s){1&t&&e.nrm(0,"mat-progress-bar",33)}function Dg(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Channel Point"),e.k0s())}function Ng(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,wg,i.screenSize===i.screenSizeEnum.XS?"25rem":"60rem")),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Pg(t,s){1&t&&(e.j41(0,"th",38)(1,"div",39),e.EFF(2,"Actions"),e.k0s()())}function $g(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",40)(1,"div",39)(2,"mat-select",41),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",42),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onChannelClick(a,o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onBackupChannels(o))}),e.EFF(7,"Backup"),e.k0s(),e.j41(8,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onDownloadBackup(o))}),e.EFF(9,"Download Backup"),e.k0s(),e.j41(10,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onVerifyChannels(o))}),e.EFF(11,"Verify"),e.k0s()()()()}}function Ag(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No channel available."),e.k0s())}function Mg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting channels..."),e.k0s())}function Bg(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Og(t,s){if(1&t&&(e.j41(0,"td",43),e.DNE(1,Ag,2,0,"p",44)(2,Mg,2,0,"p",44)(3,Bg,2,1,"p",44),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Vg(t,s){if(1&t&&e.nrm(0,"tr",45),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,jg,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Yg(t,s){1&t&&e.nrm(0,"tr",46)}function Xg(t,s){1&t&&e.nrm(0,"tr",47)}let Ug=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.actions=a,this.commonService=l,this.faInfoCircle=x.iW_,this.faExclamationTriangle=x.zpE,this.faArchive=x.Oh6,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.channels=new u.I6([]),this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=i.channels,this.channelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(i=>i.type===c.QP.SET_CHANNELS_LND||i.type===c.aU.SHOW_FILE)).subscribe(i=>{i.type===c.QP.SET_CHANNELS_LND&&(this.selectedChannel=null),i.type===c.aU.SHOW_FILE&&(this.commonService.downloadFile(i.payload,"channel-"+(this.selectedChannel?.channel_point?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(i){this.store.dispatch((0,T.H2)({payload:{uiMessage:c.MZ.BACKUP_CHANNEL,channelPoint:i.channel_point?i.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(i){this.store.dispatch((0,T.L)({payload:{channelPoint:i.channel_point?i.channel_point:"ALL"}}))}onDownloadBackup(i){this.selectedChannel=i,this.store.dispatch((0,I.t2)({payload:{channelPoint:i.channel_point?i.channel_point:"all"}}))}onChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{channel:i,showCopy:!1,component:we}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(i){this.channels=new u.I6(i?[...i]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>(o.channel_point?o.channel_point.toLowerCase():"").includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(K.En),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-backup-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:46,vars:17,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["fxLayout","column","fxFlex","49"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span"),e.EFF(5,"Save your backup files in a redundant location."),e.k0s()(),e.j41(6,"div",5),e.nrm(7,"fa-icon",4),e.j41(8,"span")(9,"strong"),e.EFF(10,"Backup Folder Location: "),e.k0s(),e.EFF(11),e.k0s()(),e.j41(12,"div",6)(13,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onVerifyChannels({}))}),e.EFF(14,"Verify All"),e.k0s(),e.j41(15,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onBackupChannels({}))}),e.EFF(16,"Backup All"),e.k0s(),e.j41(17,"button",9),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onDownloadBackup({}))}),e.EFF(18,"Download Backup"),e.k0s()()(),e.j41(19,"div",10)(20,"div",11),e.nrm(21,"fa-icon",12),e.j41(22,"span",13),e.EFF(23,"Backups"),e.k0s()(),e.j41(24,"div",14),e.nrm(25,"div",15),e.j41(26,"mat-form-field",16)(27,"mat-label"),e.EFF(28,"Filter"),e.k0s(),e.j41(29,"input",17),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(30,"div",18),e.DNE(31,Gg,1,0,"mat-progress-bar",19),e.j41(32,"table",20,0),e.qex(34,21),e.DNE(35,Dg,2,0,"th",22)(36,Ng,4,4,"td",23),e.bVm(),e.qex(37,24),e.DNE(38,Pg,3,0,"th",25)(39,$g,12,0,"td",26),e.bVm(),e.qex(40,27),e.DNE(41,Og,4,3,"td",28),e.bVm(),e.DNE(42,Vg,1,3,"tr",29)(43,Yg,1,0,"tr",30)(44,Xg,1,0,"tr",31),e.k0s()(),e.nrm(45,"mat-paginator",32),e.k0s()}2&o&&(e.R7$(3),e.Y8G("icon",a.faExclamationTriangle),e.R7$(4),e.Y8G("icon",a.faInfoCircle),e.R7$(4),e.SpI("",a.selNode.settings.channelBackupPath,"."),e.R7$(10),e.Y8G("icon",a.faArchive),e.R7$(8),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",a.channels)("ngClass",e.eq3(14,Ig,""!==a.errorMessage)),e.R7$(10),e.Y8G("matFooterRowDef",e.lJ4(16,Lg)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.bT,_.B3,d.me,d.BC,d.vS,O.aY,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.Ld],encapsulation:2}))}return t(),s})();function Hg(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let qg=(()=>{var t;class s{constructor(i){this.router=i,this.faUserCheck=x.pCJ,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-sign-verify-message"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Sign/Verify Message"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Hg,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faUserCheck),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();function zg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Message is required."),e.k0s())}let Jg=(()=>{var t;class s{constructor(i,o,a){this.dataService=i,this.snackBar=o,this.logger=a,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new h.B,new h.B]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.signedMessage=this.message,this.signature=i.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(i){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+i)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Z.u),e.rXU(le.UG),e.rXU(D.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-sign"]],standalone:!1,decls:22,vars:5,consts:[["form","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"signature-box","bordered-box","read-only"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"form",2,0)(3,"mat-form-field",3)(4,"mat-label"),e.EFF(5,"Message to sign"),e.k0s(),e.j41(6,"textarea",4),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.message,m)||(a.message=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onMessageChange())}),e.k0s(),e.DNE(7,zg,2,0,"mat-error",5),e.k0s(),e.j41(8,"div",6)(9,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(10,"Clear Field"),e.k0s(),e.j41(11,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onSign())}),e.EFF(12,"Sign"),e.k0s()(),e.nrm(13,"mat-divider",9),e.j41(14,"div",10)(15,"p"),e.EFF(16,"Generated Signature"),e.k0s()(),e.j41(17,"div",11),e.EFF(18),e.k0s(),e.j41(19,"div",12)(20,"button",13),e.bIt("copied",function(m){return r.eBV(l),r.Njj(a.onCopyField(m))}),e.EFF(21,"Copy Signature"),e.k0s()()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.message),e.R7$(),e.Y8G("ngIf",!a.message),e.R7$(6),e.Y8G("inset",!0),e.R7$(5),e.JRh(a.signature),e.R7$(2),e.Y8G("payload",a.signature))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,M.fg,C.rl,C.nJ,C.TL,ne.q,f.DJ,f.sA,f.UI,be.U,te.N],styles:[".signature-box[_ngcontent-%COMP%]{padding:1rem}"]}))}return t(),s})();function Qg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Message is required."),e.k0s())}function Wg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Signature is required."),e.k0s())}function Zg(t,s){1&t&&(e.j41(0,"p",13)(1,"mat-icon",14),e.EFF(2,"close"),e.k0s(),e.EFF(3,"Verification failed, please check message and signature"),e.k0s())}function Kg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Pubkey Used"),e.k0s())}function e4(t,s){if(1&t&&(e.j41(0,"div",20)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(2),e.JRh(null==n.verifyRes?null:n.verifyRes.pubkey)}}function t4(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",21)(1,"button",22),e.bIt("copied",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onCopyField(o))}),e.EFF(2,"Copy Pubkey"),e.k0s()()}if(2&t){const n=e.XpG(2);e.R7$(),e.Y8G("payload",null==n.verifyRes?null:n.verifyRes.pubkey)}}function n4(t,s){if(1&t&&(e.j41(0,"div",15),e.nrm(1,"mat-divider",16),e.j41(2,"div",17),e.DNE(3,Kg,2,0,"p",6),e.k0s(),e.DNE(4,e4,3,1,"div",18)(5,t4,3,1,"div",19),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(2),e.Y8G("ngIf",n.verifyRes.valid),e.R7$(),e.Y8G("ngIf",n.verifyRes.valid),e.R7$(),e.Y8G("ngIf",n.verifyRes.valid)}}let i4=(()=>{var t;class s{constructor(i,o,a){this.dataService=i,this.snackBar=o,this.logger=a,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new h.B,new h.B]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.verifyRes=i,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(i){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Z.u),e.rXU(le.UG),e.rXU(D.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-verify"]],standalone:!1,decls:21,vars:6,consts:[["form","ngForm"],["sign","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["matInput","","name","signature","tabindex","2","required","",3,"ngModelChange","keyup","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"mat-form-field",4)(4,"mat-label"),e.EFF(5,"Message to verify"),e.k0s(),e.j41(6,"textarea",5),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.message,m)||(a.message=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onChange())}),e.k0s(),e.DNE(7,Qg,2,0,"mat-error",6),e.k0s(),e.j41(8,"mat-form-field",4)(9,"mat-label"),e.EFF(10,"Signature provided"),e.k0s(),e.j41(11,"input",7,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.signature,m)||(a.signature=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onChange())}),e.k0s(),e.DNE(13,Wg,2,0,"mat-error",6),e.k0s(),e.DNE(14,Zg,4,0,"p",8),e.j41(15,"div",9)(16,"button",10),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(17,"Clear Fields"),e.k0s(),e.j41(18,"button",11),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onVerify())}),e.EFF(19,"Verify"),e.k0s()(),e.DNE(20,n4,6,4,"div",12),e.k0s()()}2&o&&(e.R7$(6),e.R50("ngModel",a.message),e.R7$(),e.Y8G("ngIf",!a.message),e.R7$(4),e.R50("ngModel",a.signature),e.R7$(2),e.Y8G("ngIf",!a.signature),e.R7$(),e.Y8G("ngIf",a.showVerifyStatus&&!a.verifyRes.valid),e.R7$(6),e.Y8G("ngIf",a.showVerifyStatus&&a.verifyRes.valid))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,oe.An,M.fg,C.rl,C.nJ,C.TL,ne.q,f.DJ,f.sA,f.UI,be.U,te.N],encapsulation:2}))}return t(),s})();var a4=y(90013),P=y(17186);const s4=()=>["all"],o4=()=>["no_non_routing_event"],ke=t=>({"max-width":t}),l4=t=>({"display-none":t});function r4(t,s){if(1&t&&(e.j41(0,"div",5),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function c4(t,s){if(1&t&&(e.j41(0,"mat-option",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function p4(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",10)(1,"div",11),e.EFF(2,"Non Routing Peers"),e.k0s(),e.j41(3,"div",12)(4,"mat-form-field",13)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",14),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG(2);return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,c4,2,2,"mat-option",15),e.k0s()()(),e.j41(10,"mat-form-field",13)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",16),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.applyFilter())}),e.k0s()()()()}if(2&t){const n=e.XpG(2);e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(3,s4).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter)}}function m4(t,s){1&t&&e.nrm(0,"mat-progress-bar",50)}function u4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Channel ID"),e.k0s())}function d4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function h4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Peer Alias"),e.k0s())}function _4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_alias)}}function f4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Peer Pubkey"),e.k0s())}function g4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_pubkey)}}function C4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Channel Point"),e.k0s())}function y4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function b4(t,s){if(1&t&&(e.j41(0,"th",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.SpI("Uptime (",n.timeUnit,")")}}function F4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.uptime_str," ")}}function x4(t,s){if(1&t&&(e.j41(0,"th",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.SpI("Lifetime (",n.timeUnit,")")}}function v4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.lifetime_str," ")}}function T4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function k4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_fee)," ")}}function S4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Commit Weight"),e.k0s())}function R4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_weight)," ")}}function E4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Fee/KW"),e.k0s())}function I4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.fee_per_kw)," ")}}function L4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Updates"),e.k0s())}function w4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.num_updates)," ")}}function j4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Unsettled Balance (Sats)"),e.k0s())}function G4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.unsettled_balance)," ")}}function D4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Capacity (Sats)"),e.k0s())}function N4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function P4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Local Reserve (Sats)"),e.k0s())}function $4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_chan_reserve_sat)," ")}}function A4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Remote Reserve (Sats)"),e.k0s())}function M4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_chan_reserve_sat)," ")}}function B4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Sats Sent"),e.k0s())}function O4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_satoshis_sent))}}function V4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Sats Received"),e.k0s())}function Y4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_satoshis_received))}}function X4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function U4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.local_balance))}}function H4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function q4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.remote_balance))}}function z4(t,s){1&t&&(e.j41(0,"th",57)(1,"div",58),e.EFF(2,"Actions"),e.k0s()())}function J4(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",59)(1,"button",60),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(3);return r.Njj(a.onManagePeer(o))}),e.EFF(2,"Manage"),e.k0s()()}}function Q4(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"All peers are routing."),e.k0s())}function W4(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting non routing peers..."),e.k0s())}function Z4(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.JRh(n.errorMessage)}}function K4(t,s){if(1&t&&(e.j41(0,"td",61),e.DNE(1,Q4,2,0,"p",62)(2,W4,2,0,"p",62)(3,Z4,2,1,"p",62),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function eC(t,s){if(1&t&&e.nrm(0,"tr",63),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,l4,(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)>0))}}function tC(t,s){1&t&&e.nrm(0,"tr",64)}function nC(t,s){1&t&&e.nrm(0,"tr",65)}function iC(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,m4,1,0,"mat-progress-bar",19),e.j41(2,"table",20,1),e.qex(4,21),e.DNE(5,u4,2,0,"th",22)(6,d4,4,4,"td",23),e.bVm(),e.qex(7,24),e.DNE(8,h4,2,0,"th",22)(9,_4,4,4,"td",23),e.bVm(),e.qex(10,25),e.DNE(11,f4,2,0,"th",22)(12,g4,4,4,"td",23),e.bVm(),e.qex(13,26),e.DNE(14,C4,2,0,"th",22)(15,y4,4,4,"td",23),e.bVm(),e.qex(16,27),e.DNE(17,b4,2,1,"th",28)(18,F4,3,1,"td",23),e.bVm(),e.qex(19,29),e.DNE(20,x4,2,1,"th",28)(21,v4,3,1,"td",23),e.bVm(),e.qex(22,30),e.DNE(23,T4,2,0,"th",28)(24,k4,4,3,"td",23),e.bVm(),e.qex(25,31),e.DNE(26,S4,2,0,"th",28)(27,R4,4,3,"td",23),e.bVm(),e.qex(28,32),e.DNE(29,E4,2,0,"th",28)(30,I4,4,3,"td",23),e.bVm(),e.qex(31,33),e.DNE(32,L4,2,0,"th",28)(33,w4,4,3,"td",23),e.bVm(),e.qex(34,34),e.DNE(35,j4,2,0,"th",28)(36,G4,4,3,"td",23),e.bVm(),e.qex(37,35),e.DNE(38,D4,2,0,"th",28)(39,N4,4,3,"td",23),e.bVm(),e.qex(40,36),e.DNE(41,P4,2,0,"th",28)(42,$4,4,3,"td",23),e.bVm(),e.qex(43,37),e.DNE(44,A4,2,0,"th",28)(45,M4,4,3,"td",23),e.bVm(),e.qex(46,38),e.DNE(47,B4,2,0,"th",28)(48,O4,4,3,"td",23),e.bVm(),e.qex(49,39),e.DNE(50,V4,2,0,"th",28)(51,Y4,4,3,"td",23),e.bVm(),e.qex(52,40),e.DNE(53,X4,2,0,"th",28)(54,U4,4,3,"td",23),e.bVm(),e.qex(55,41),e.DNE(56,H4,2,0,"th",28)(57,q4,4,3,"td",23),e.bVm(),e.qex(58,42),e.DNE(59,z4,3,0,"th",43)(60,J4,3,0,"td",44),e.bVm(),e.qex(61,45),e.DNE(62,K4,4,3,"td",46),e.bVm(),e.DNE(63,eC,1,3,"tr",47)(64,tC,1,0,"tr",48)(65,nC,1,0,"tr",49),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.nonRoutingPeers),e.R7$(61),e.Y8G("matFooterRowDef",e.lJ4(7,o4)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}function aC(t,s){if(1&t&&(e.j41(0,"div",6),e.DNE(1,p4,14,4,"div",7)(2,iC,66,8,"div",8),e.nrm(3,"mat-paginator",9,0),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",""===n.errorMessage),e.R7$(),e.Y8G("ngIf",""===n.errorMessage),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let sC=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.logger=i,this.commonService=o,this.store=a,this.router=l,this.activatedRoute=p,this.decimalPipe=m,this.camelCaseWithReplace=v,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"non_routing_peers",recordsPerPage:c.md,sortBy:"remote_alias",sortOrder:c.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.nonRoutingPeers=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.activeChannels=[],this.timeUnit="mins:secs",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.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:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Ie).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=i.forwardingHistory.forwarding_events?i.forwardingHistory.forwarding_events:[],this.routingPeersData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory)}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=i.channels,this.logger.info(i)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}calculateUptime(i){let m=60,v=1,b=0;switch(i.forEach(S=>{S.uptime&&+S.uptime>b&&(b=+S.uptime)}),!0){case b<3600:this.timeUnit="Mins:Secs",m=60,v=1;break;case b>=3600&&b<86400:this.timeUnit="Hrs:Mins",m=3600,v=60;break;case b>=86400&&b<31536e3:this.timeUnit="Days:Hrs",m=86400,v=3600;break;case b>31536e3:this.timeUnit="Yrs:Days",m=31536e3,v=86400;break;default:this.timeUnit="Mins:Secs",m=60,v=1}return i.forEach(S=>{S.uptime_str=S.uptime?this.decimalPipe.transform(Math.floor(+S.uptime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.uptime%m/v),"2.0-0"):"---",S.lifetime_str=S.lifetime?this.decimalPipe.transform(Math.floor(+S.lifetime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.lifetime%m/v),"2.0-0"):"---"}),i}onManagePeer(i){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filterValue:i.chan_id}})}applyFilter(){this.nonRoutingPeers.filter=this.selFilter.toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.nonRoutingPeers.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterBy?JSON.stringify(i).toLowerCase():typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString(),a.includes(o)}}loadNonRoutingPeersTable(i){if(i.length>0){const o=this.calculateUptime(this.activeChannels?.filter(a=>i.findIndex(l=>l.chan_id_in===a.chan_id||l.chan_id_out===a.chan_id)<0));this.nonRoutingPeers=new u.I6(o),this.nonRoutingPeers.sort=this.sort,this.nonRoutingPeers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.nonRoutingPeers)}else this.nonRoutingPeers=new u.I6([]);this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(w.Ix),e.rXU(w.nX),e.rXU(_.QX),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-non-routing-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:G.xX,useValue:(0,c.on)("Non routing peers")}])],decls:3,vars:2,consts:[["paginator",""],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["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"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","uptime_str"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lifetime_str"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","num_updates"],["matColumnDef","unsettled_balance"],["matColumnDef","capacity"],["matColumnDef","local_chan_reserve_sat"],["matColumnDef","remote_chan_reserve_sat"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_non_routing_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",""],["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"],["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(o,a){1&o&&(e.j41(0,"div",2),e.DNE(1,r4,2,1,"div",3)(2,aC,5,5,"div",4),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX],encapsulation:2}))}return t(),s})();var pt=y(83838);let oC=(()=>{var t;class s{constructor(i){this.dataService=i,this.paths="",this.unSubs=[new h.B,new h.B]}ngOnInit(){if(this.payment.htlcs&&this.payment.htlcs[0]&&this.payment.htlcs[0].route&&this.payment.htlcs[0].route.hops&&this.payment.htlcs[0].route.hops.length>0){const i=this.payment.htlcs[0].route.hops?.reduce((o,a)=>""===o&&a.pub_key?a.pub_key:o+","+a.pub_key,"");this.dataService.getAliasesFromPubkeys(i,!0).pipe((0,g.Q)(this.unSubs[0])).subscribe(o=>{this.paths=o?.reduce((a,l)=>""===a?l:a+"\n"+l,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,W.s)(1)).subscribe(i=>{i&&i.description&&""!==i.description&&(this.payment.description=i.description)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},standalone:!1,decls:66,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","50"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"mat-card-content",1)(2,"div",2)(3,"h4",3),e.EFF(4,"Payment Hash"),e.k0s(),e.j41(5,"span",4),e.EFF(6),e.k0s()(),e.nrm(7,"mat-divider",5),e.j41(8,"div",2)(9,"h4",3),e.EFF(10,"Payment Preimage"),e.k0s(),e.j41(11,"span",4)(12,"div"),e.EFF(13),e.k0s()()(),e.nrm(14,"mat-divider",5),e.j41(15,"div",2)(16,"h4",3),e.EFF(17,"Payment Request"),e.k0s(),e.j41(18,"span",4)(19,"div"),e.EFF(20),e.k0s()()(),e.nrm(21,"mat-divider",5),e.j41(22,"div",2)(23,"h4",3),e.EFF(24,"Description"),e.k0s(),e.j41(25,"span",4)(26,"div"),e.EFF(27),e.k0s()()(),e.nrm(28,"mat-divider",5),e.j41(29,"div",6)(30,"div",7)(31,"h4",3),e.EFF(32,"Status"),e.k0s(),e.j41(33,"span",4)(34,"div"),e.EFF(35),e.k0s()()(),e.j41(36,"div",7)(37,"h4",3),e.EFF(38,"Creation Date"),e.k0s(),e.j41(39,"span",4)(40,"div"),e.EFF(41),e.k0s()()()(),e.nrm(42,"mat-divider",5),e.j41(43,"div",6)(44,"div",7)(45,"h4",3),e.EFF(46,"Value (mSats)"),e.k0s(),e.j41(47,"span",4)(48,"div"),e.EFF(49),e.nI1(50,"number"),e.k0s()()(),e.j41(51,"div",7)(52,"h4",3),e.EFF(53,"Fee (mSats)"),e.k0s(),e.j41(54,"span",4)(55,"div"),e.EFF(56),e.nI1(57,"number"),e.k0s()()()(),e.nrm(58,"mat-divider",5),e.j41(59,"div",2)(60,"h4",3),e.EFF(61,"Path"),e.k0s(),e.j41(62,"span",4)(63,"div"),e.EFF(64),e.k0s()()(),e.nrm(65,"mat-divider",5),e.k0s()()),2&o&&(e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_hash),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_preimage),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_request),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.description),e.R7$(),e.Y8G("inset",!0),e.R7$(7),e.JRh(null==a.payment?null:a.payment.status),e.R7$(6),e.JRh(null==a.payment?null:a.payment.creation_date),e.R7$(),e.Y8G("inset",!0),e.R7$(7),e.JRh(e.bMT(50,16,null==a.payment?null:a.payment.value_msat)),e.R7$(7),e.JRh(e.bMT(57,18,null==a.payment?null:a.payment.fee_msat)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(a.paths),e.R7$(),e.Y8G("inset",!0))},dependencies:[k.m2,ne.q,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();var lC=y(38288);const mt=t=>({"display-none":t}),Me=t=>({"mr-0":t});function rC(t,s){if(1&t&&e.nrm(0,"qr-code",22),2&t){const n=e.XpG();e.Y8G("value",null==n.invoice?null:n.invoice.payment_request)("size",n.qrWidth)}}function cC(t,s){1&t&&(e.j41(0,"span",23),e.EFF(1,"N/A"),e.k0s())}function pC(t,s){if(1&t&&e.nrm(0,"qr-code",22),2&t){const n=e.XpG();e.Y8G("value",null==n.invoice?null:n.invoice.payment_request)("size",n.qrWidth)}}function mC(t,s){1&t&&(e.j41(0,"span",24),e.EFF(1,"QR Code Not Applicable"),e.k0s())}function uC(t,s){1&t&&e.nrm(0,"mat-divider",16),2&t&&e.Y8G("inset",!0)}function dC(t,s){1&t&&(e.qex(0),e.EFF(1," (zero amount) "),e.bVm())}function hC(t,s){if(1&t&&e.nrm(0,"span",38),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Me,n.screenSize===n.screenSizeEnum.XS))}}function _C(t,s){if(1&t&&e.nrm(0,"span",39),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Me,n.screenSize===n.screenSizeEnum.XS))}}function fC(t,s){if(1&t&&e.nrm(0,"span",40),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Me,n.screenSize===n.screenSizeEnum.XS))}}function gC(t,s){if(1&t&&(e.j41(0,"div",27)(1,"div",32)(2,"span",33),e.DNE(3,hC,1,3,"span",34)(4,_C,1,3,"span",35)(5,fC,1,3,"span",36),e.EFF(6),e.k0s(),e.j41(7,"span",37),e.EFF(8),e.nI1(9,"number"),e.k0s()(),e.nrm(10,"mat-divider",16),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(3),e.Y8G("ngIf","SETTLED"===n.state),e.R7$(),e.Y8G("ngIf","ACCEPTED"===n.state),e.R7$(),e.Y8G("ngIf","CANCELED"===n.state),e.R7$(),e.SpI(" ",n.chan_id," "),e.R7$(2),e.JRh(e.i5U(9,6,+n.amt_msat/1e3||0,i.getDecimalFormat(n))),e.R7$(2),e.Y8G("inset",!0)}}function CC(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",11)(1,"mat-expansion-panel",25),e.bIt("opened",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.flgOpened=!0)})("closed",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onExpansionClosed())}),e.j41(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",26),e.EFF(5,"HTLCs"),e.k0s()()(),e.j41(6,"div",27)(7,"div",28)(8,"span",29),e.EFF(9,"Channel ID"),e.k0s(),e.j41(10,"span",30),e.EFF(11,"Amount (Sats)"),e.k0s()(),e.nrm(12,"mat-divider",16),e.DNE(13,gC,11,9,"div",31),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(12),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngForOf",null==n.invoice?null:n.invoice.htlcs)}}function yC(t,s){1&t&&e.nrm(0,"mat-divider",16),2&t&&e.Y8G("inset",!0)}let bC=(()=>{var t;class s{constructor(i){this.commonService=i,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===c.f7.XS&&(this.qrWidth=220)}getDecimalFormat(i){return i.amt_msat<1e3?"1.0-4":"1.0-0"}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},standalone:!1,decls:90,vars:45,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","20",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","80"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar"],["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"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],["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(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,rC,1,2,"qr-code",2)(3,cC,2,0,"span",3),e.k0s(),e.j41(4,"div",4)(5,"mat-card-content",5)(6,"div",6)(7,"div",7),e.DNE(8,pC,1,2,"qr-code",2)(9,mC,2,0,"span",8),e.k0s(),e.DNE(10,uC,1,1,"mat-divider",9),e.j41(11,"div",10)(12,"div",11)(13,"div",12)(14,"h4",13),e.EFF(15),e.k0s(),e.j41(16,"span",14),e.EFF(17),e.nI1(18,"number"),e.DNE(19,dC,2,0,"ng-container",15),e.k0s()(),e.j41(20,"div",12)(21,"h4",13),e.EFF(22,"Amount Settled"),e.k0s(),e.j41(23,"span",14)(24,"div"),e.EFF(25),e.nI1(26,"number"),e.k0s()()()(),e.nrm(27,"mat-divider",16),e.j41(28,"div",11)(29,"div",12)(30,"h4",13),e.EFF(31,"Date Created"),e.k0s(),e.j41(32,"span",14),e.EFF(33),e.nI1(34,"date"),e.k0s()(),e.j41(35,"div",12)(36,"h4",13),e.EFF(37,"Date Settled"),e.k0s(),e.j41(38,"span",14),e.EFF(39),e.nI1(40,"date"),e.k0s()()(),e.nrm(41,"mat-divider",16),e.j41(42,"div",11)(43,"div",17)(44,"h4",13),e.EFF(45,"Memo"),e.k0s(),e.j41(46,"span",14),e.EFF(47),e.k0s()()(),e.nrm(48,"mat-divider",16),e.j41(49,"div",11)(50,"div",17)(51,"h4",13),e.EFF(52,"Payment Request"),e.k0s(),e.j41(53,"span",18),e.EFF(54),e.k0s()()(),e.nrm(55,"mat-divider",16),e.j41(56,"div",11)(57,"div",17)(58,"h4",13),e.EFF(59,"Payment Hash"),e.k0s(),e.j41(60,"span",18),e.EFF(61),e.k0s()()(),e.j41(62,"div"),e.nrm(63,"mat-divider",16),e.j41(64,"div",11)(65,"div",17)(66,"h4",13),e.EFF(67,"Preimage"),e.k0s(),e.j41(68,"span",18),e.EFF(69),e.k0s()()(),e.nrm(70,"mat-divider",16),e.j41(71,"div",11)(72,"div",19)(73,"h4",13),e.EFF(74,"State"),e.k0s(),e.j41(75,"span",18),e.EFF(76),e.k0s()(),e.j41(77,"div",20)(78,"h4",13),e.EFF(79,"Expiry"),e.k0s(),e.j41(80,"span",18),e.EFF(81),e.k0s()(),e.j41(82,"div",20)(83,"h4",13),e.EFF(84,"Private Routing Hints"),e.k0s(),e.j41(85,"span",18),e.EFF(86),e.k0s()()(),e.nrm(87,"mat-divider",16),e.DNE(88,CC,14,2,"div",21)(89,yC,1,1,"mat-divider",9),e.k0s()()()()()()),2&o&&(e.R7$(),e.Y8G("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.eq3(41,mt,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.R7$(4),e.Y8G("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.eq3(43,mt,a.screenSize!==a.screenSizeEnum.XS&&a.screenSize!==a.screenSizeEnum.SM)),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM),e.R7$(5),e.JRh(a.screenSize===a.screenSizeEnum.XS?"Amount":"Amount Requested"),e.R7$(2),e.SpI("",e.bMT(18,31,(null==a.invoice?null:a.invoice.value)||0)," Sats"),e.R7$(2),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.value)||"0"===(null==a.invoice?null:a.invoice.value)),e.R7$(6),e.SpI("",e.bMT(26,33,null==a.invoice?null:a.invoice.amt_paid_sat)," Sats"),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(34,35,1e3*(null==a.invoice?null:a.invoice.creation_date),"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(0!=+(null==a.invoice?null:a.invoice.settle_date)?e.i5U(40,38,1e3*+(null==a.invoice?null:a.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.invoice?null:a.invoice.memo),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.payment_request)||"N/A"),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.r_hash)||""),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.r_preimage)||"-"),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.invoice?null:a.invoice.state),e.R7$(5),e.JRh(null==a.invoice?null:a.invoice.expiry),e.R7$(5),e.JRh(null!=a.invoice&&a.invoice.private?"Yes":"No"),e.R7$(),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0))},dependencies:[_.YU,_.Sq,_.bT,k.m2,q.GK,q.Z2,q.WN,ne.q,f.DJ,f.sA,f.UI,j.PW,ee.oV,lC.Um,B.Ld,_.QX,_.vh],encapsulation:2}))}return t(),s})();const FC=t=>({"mt-1":!0,"mt-2":t}),xC=t=>({"w-100 mt-2 p-2 error-border":t,"w-100 my-2 p-2":!0});function vC(t,s){if(1&t&&(e.j41(0,"mat-radio-button",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n.id)("checked",i.selectedFieldId===n.id),e.R7$(),e.SpI(" ",n.name," ")}}function TC(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function kC(t,s){1&t&&e.nrm(0,"mat-progress-bar",20)}function SC(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,kC,1,0,"mat-progress-bar",19),e.EFF(2),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(3,xC,""!==n.errorMessage&&"Getting lookup details..."!==n.errorMessage)),e.R7$(),e.Y8G("ngIf","Getting lookup details..."===n.errorMessage),e.R7$(),e.SpI(" ",n.errorMessage," ")}}function RC(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-payment-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("payment",n.lookupValue)}}function EC(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-invoice-lookup",29),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("invoice",n.lookupValue)}}function IC(t,s){1&t&&(e.j41(0,"span"),e.EFF(1,' fxFlex="100"'),e.j41(2,"h3"),e.EFF(3,"Error! Unable to find details!"),e.k0s()())}function LC(t,s){if(1&t&&(e.j41(0,"div",21)(1,"div",22)(2,"span",23),e.EFF(3),e.k0s()(),e.j41(4,"div",24),e.DNE(5,RC,2,1,"span",25)(6,EC,2,1,"span",25)(7,IC,4,0,"span",26),e.k0s()()),2&t){const n=e.XpG();e.R7$(3),e.SpI("",n.lookupFields[n.selectedFieldId].name," Details"),e.R7$(),e.Y8G("ngSwitch",n.selectedFieldId),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",1)}}let wC=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Payment",placeholder:"Payment Hash"},{id:1,name:"Invoice",placeholder:"Payment Hash"}],this.faSearch=x.MjD,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i.type===c.QP.SET_LOOKUP_LND)).subscribe(i=>{this.flgSetLookupValue=!i.payload.error,this.lookupValue=JSON.parse(JSON.stringify(i.payload)),this.errorMessage=i.payload.error?this.commonService.extractErrorMessage(i.payload.error):"",this.logger.info(this.lookupValue)})}onLookup(){if(!this.lookupKey)return!0;switch(this.errorMessage="",this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,T.jk)({payload:pt.Buffer.from(this.lookupKey.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,T.Yi)({payload:{openSnackBar:!1,paymentHash:pt.Buffer.from(this.lookupKey.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}}))}}onSelectChange(i){this.resetData(),this.selectedFieldId=i.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(K.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lookup-transactions"]],standalone:!1,decls:21,vars:10,consts:[["form","ngForm"],["key",""],["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"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModelChange","change","ngModel"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[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","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mb-2"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"mat-card-content",4)(3,"form",5,0)(5,"div",6)(6,"mat-radio-group",7),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selectedFieldId,m)||(a.selectedFieldId=m),r.Njj(m)}),e.bIt("change",function(m){return r.eBV(l),r.Njj(a.onSelectChange(m))}),e.DNE(7,vC,2,3,"mat-radio-button",8),e.k0s()(),e.j41(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10),e.k0s(),e.j41(11,"input",10,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.lookupKey,m)||(a.lookupKey=m),r.Njj(m)}),e.bIt("change",function(){return r.eBV(l),r.Njj(a.clearLookupValue())}),e.k0s(),e.DNE(13,TC,2,1,"mat-error",11),e.k0s(),e.j41(14,"div",12)(15,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(16,"Clear"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onLookup())}),e.EFF(18,"Lookup"),e.k0s()()(),e.DNE(19,SC,3,5,"div",15)(20,LC,8,4,"div",16),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selectedFieldId),e.R7$(),e.Y8G("ngForOf",a.lookupFields),e.R7$(),e.Y8G("ngClass",e.eq3(8,FC,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(2),e.JRh((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),e.R7$(),e.R50("ngModel",a.lookupKey),e.R7$(2),e.Y8G("ngIf",!a.lookupKey),e.R7$(6),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},dependencies:[_.YU,_.Sq,_.bT,_.ux,_.e1,_.fG,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,k.m2,M.fg,C.rl,C.nJ,C.TL,V.HM,de.VT,de._g,f.DJ,f.sA,f.UI,j.PW,oC,bC],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}"]}))}return t(),s})();const jC=[{path:"",component:Be,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Us,canActivate:[(0,P.jn)()]},{path:"wallet",component:Ld,canActivate:[P.q_]},{path:"onchain",component:r2,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:m2,canActivate:[(0,P.jn)()]},{path:"send/:selTab",component:rt,data:{sweepAll:!1},canActivate:[(0,P.jn)()]},{path:"sweep/:selTab",component:rt,data:{sweepAll:!0},canActivate:[(0,P.jn)()]}]},{path:"connections",component:zs,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:gl,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:V1,canActivate:[(0,P.jn)()]},{path:"pending",component:km,canActivate:[(0,P.jn)()]},{path:"closed",component:du,canActivate:[(0,P.jn)()]},{path:"activehtlcs",component:sd,canActivate:[(0,P.jn)()]}]},{path:"peers",component:ul,data:{sweepAll:!1},canActivate:[(0,P.jn)()]}]},{path:"transactions",component:jd,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:Ye,canActivate:[(0,P.jn)()]},{path:"invoices",component:Ve,canActivate:[(0,P.jn)()]},{path:"lookuptransactions",component:wC,canActivate:[(0,P.jn)()]}]},{path:"messages",component:qg,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Jg,canActivate:[(0,P.jn)()]},{path:"verify",component:i4,canActivate:[(0,P.jn)()]}]},{path:"channelbackup",component:pg,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:Ug,canActivate:[(0,P.jn)()]},{path:"restore",component:Eg,canActivate:[(0,P.jn)()]}]},{path:"routing",component:Mh,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:it,canActivate:[(0,P.jn)()]},{path:"peers",component:p0,canActivate:[(0,P.jn)()]},{path:"nonroutingprs",component:sC,canActivate:[(0,P.jn)()]}]},{path:"reports",component:u0,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:F0,canActivate:[(0,P.jn)()]},{path:"transactions",component:D0,canActivate:[(0,P.jn)()]}]},{path:"graph",component:Dd,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:nt,canActivate:[(0,P.jn)()]},{path:"queryroutes",component:lh,canActivate:[(0,P.jn)()]}]},{path:"lookups",component:nt,canActivate:[(0,P.jn)()]},{path:"network",component:rg,canActivate:[(0,P.jn)()]},{path:"**",component:a4.X},{path:"rates",redirectTo:"network"}]}],GC=ie.iI.forChild(jC);var DC=y(19029);let NC=(()=>{var t;class s{static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275mod=e.$C({type:s,bootstrap:[Be]}),this.\u0275inj=r.G2t({imports:[_.MD,DC.G,GC]}))}return t(),s})()}}]); \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 72277b69..db0b1c8a 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -15,5 +15,5 @@ - + diff --git a/frontend/main.3a90ef3ab537b866.js b/frontend/main.3a90ef3ab537b866.js deleted file mode 100644 index bbbcc378..00000000 --- a/frontend/main.3a90ef3ab537b866.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[792],{28430(ke,q,l){"use strict";l.d(q,{$6:()=>U,$J:()=>a,$Q:()=>L,Aw:()=>h,C2:()=>f,CK:()=>ie,Db:()=>Mn,Do:()=>R,Dq:()=>he,ED:()=>qt,EM:()=>Me,Eb:()=>Se,Ew:()=>ve,Fd:()=>ye,GZ:()=>oe,Gy:()=>K,Gz:()=>yt,Hm:()=>Ee,Jx:()=>re,Ml:()=>Et,N4:()=>se,NS:()=>e,NU:()=>S,Qj:()=>j,Qv:()=>rt,Sn:()=>A,T4:()=>pe,Uj:()=>_e,VK:()=>fe,We:()=>V,XT:()=>F,Yi:()=>C,Zi:()=>$,a5:()=>Oe,aB:()=>ge,cR:()=>_,dv:()=>t,ed:()=>Q,fy:()=>s,g6:()=>Re,gf:()=>D,ij:()=>P,jQ:()=>dt,kQ:()=>$e,kX:()=>w,kv:()=>Y,lg:()=>o,no:()=>p,qw:()=>be,sq:()=>Z,uK:()=>x,vL:()=>m,w0:()=>u,x1:()=>d,y0:()=>nt,zU:()=>T});var i=l(59640),g=l(4416);const p=(0,i.VP)(g.TC.UPDATE_API_CALL_STATUS_CLN,(0,i.xk)()),D=(0,i.VP)(g.TC.RESET_CLN_STORE),o=(0,i.VP)(g.TC.FETCH_PAGE_SETTINGS_CLN),e=(0,i.VP)(g.TC.SET_PAGE_SETTINGS_CLN,(0,i.xk)()),A=(0,i.VP)(g.TC.SAVE_PAGE_SETTINGS_CLN,(0,i.xk)()),h=(0,i.VP)(g.TC.FETCH_INFO_CLN,(0,i.xk)()),d=(0,i.VP)(g.TC.SET_INFO_CLN,(0,i.xk)()),w=(0,i.VP)(g.TC.FETCH_FEE_RATES_CLN,(0,i.xk)()),f=(0,i.VP)(g.TC.SET_FEE_RATES_CLN,(0,i.xk)()),F=(0,i.VP)(g.TC.GET_NEW_ADDRESS_CLN,(0,i.xk)()),K=((0,i.VP)(g.TC.SET_NEW_ADDRESS_CLN,(0,i.xk)()),(0,i.VP)(g.TC.FETCH_PEERS_CLN)),j=(0,i.VP)(g.TC.SET_PEERS_CLN,(0,i.xk)()),Z=(0,i.VP)(g.TC.SAVE_NEW_PEER_CLN,(0,i.xk)()),V=((0,i.VP)(g.TC.NEWLY_ADDED_PEER_CLN,(0,i.xk)()),(0,i.VP)(g.TC.ADD_PEER_CLN,(0,i.xk)())),Q=(0,i.VP)(g.TC.DETACH_PEER_CLN,(0,i.xk)()),$=(0,i.VP)(g.TC.REMOVE_PEER_CLN,(0,i.xk)()),ie=(0,i.VP)(g.TC.FETCH_PAYMENTS_CLN),_e=(0,i.VP)(g.TC.SET_PAYMENTS_CLN,(0,i.xk)()),ye=(0,i.VP)(g.TC.SEND_PAYMENT_CLN,(0,i.xk)()),se=(0,i.VP)(g.TC.SEND_PAYMENT_STATUS_CLN,(0,i.xk)()),pe=(0,i.VP)(g.TC.GET_QUERY_ROUTES_CLN,(0,i.xk)()),Ee=(0,i.VP)(g.TC.SET_QUERY_ROUTES_CLN,(0,i.xk)()),L=(0,i.VP)(g.TC.FETCH_CHANNELS_CLN),t=(0,i.VP)(g.TC.SET_CHANNELS_CLN,(0,i.xk)()),s=(0,i.VP)(g.TC.UPDATE_CHANNEL_CLN,(0,i.xk)()),m=(0,i.VP)(g.TC.SAVE_NEW_CHANNEL_CLN,(0,i.xk)()),u=(0,i.VP)(g.TC.CLOSE_CHANNEL_CLN,(0,i.xk)()),_=(0,i.VP)(g.TC.REMOVE_CHANNEL_CLN,(0,i.xk)()),T=(0,i.VP)(g.TC.PEER_LOOKUP_CLN,(0,i.xk)()),P=(0,i.VP)(g.TC.CHANNEL_LOOKUP_CLN,(0,i.xk)()),C=(0,i.VP)(g.TC.INVOICE_LOOKUP_CLN,(0,i.xk)()),a=(0,i.VP)(g.TC.SET_LOOKUP_CLN,(0,i.xk)()),x=(0,i.VP)(g.TC.GET_FORWARDING_HISTORY_CLN,(0,i.xk)()),Y=(0,i.VP)(g.TC.SET_FORWARDING_HISTORY_CLN,(0,i.xk)()),R=(0,i.VP)(g.TC.FETCH_INVOICES_CLN),U=(0,i.VP)(g.TC.SET_INVOICES_CLN,(0,i.xk)()),fe=(0,i.VP)(g.TC.SAVE_NEW_INVOICE_CLN,(0,i.xk)()),re=(0,i.VP)(g.TC.ADD_INVOICE_CLN,(0,i.xk)()),he=(0,i.VP)(g.TC.UPDATE_INVOICE_CLN,(0,i.xk)()),Oe=(0,i.VP)(g.TC.DELETE_EXPIRED_INVOICE_CLN,(0,i.xk)()),ge=(0,i.VP)(g.TC.SET_CHANNEL_TRANSACTION_CLN,(0,i.xk)()),Re=((0,i.VP)(g.TC.SET_CHANNEL_TRANSACTION_RES_CLN,(0,i.xk)()),(0,i.VP)(g.TC.FETCH_UTXO_BALANCES_CLN)),Me=(0,i.VP)(g.TC.SET_UTXO_BALANCES_CLN,(0,i.xk)()),ve=(0,i.VP)(g.TC.FETCH_OFFER_INVOICE_CLN,(0,i.xk)()),oe=(0,i.VP)(g.TC.SET_OFFER_INVOICE_CLN,(0,i.xk)()),Se=(0,i.VP)(g.TC.FETCH_OFFERS_CLN),be=(0,i.VP)(g.TC.SET_OFFERS_CLN,(0,i.xk)()),nt=(0,i.VP)(g.TC.SAVE_NEW_OFFER_CLN,(0,i.xk)()),$e=(0,i.VP)(g.TC.ADD_OFFER_CLN,(0,i.xk)()),dt=(0,i.VP)(g.TC.DISABLE_OFFER_CLN,(0,i.xk)()),yt=(0,i.VP)(g.TC.UPDATE_OFFER_CLN,(0,i.xk)()),Et=(0,i.VP)(g.TC.FETCH_OFFER_BOOKMARKS_CLN),rt=(0,i.VP)(g.TC.SET_OFFER_BOOKMARKS_CLN,(0,i.xk)()),Mn=(0,i.VP)(g.TC.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,i.xk)()),qt=(0,i.VP)(g.TC.DELETE_OFFER_BOOKMARK_CLN,(0,i.xk)()),S=(0,i.VP)(g.TC.REMOVE_OFFER_BOOKMARK_CLN,(0,i.xk)())},283(ke,q,l){"use strict";l.d(q,{i:()=>se});var i=l(11747),g=l(21413),p=l(7673),D=l(99437),o=l(96354),e=l(31397),A=l(56977),h=l(12462),d=l(8321),w=l(4416),f=l(11771),F=l(28430),M=l(59584),K=l(32142),j=l(2615),Z=l(29330),ee=l(59640),V=l(53202),Q=l(82571),$=l(98570),ie=l(43694),_e=l(7879),ye=l(57303);let se=(()=>{var pe;class Ee{constructor(t,s,m,u,_,T,P,C,a){this.actions=t,this.httpClient=s,this.store=m,this.sessionService=u,this.commonService=_,this.logger=T,this.router=P,this.wsService=C,this.location=a,this.CHILD_API_URL=w.H$+"/cln",this.CLN_VERISON="",this.flgInitialized=!1,this.unSubs=[new g.B,new g.B,new g.B],this.infoFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_INFO_CLN),(0,e.Z)(x=>(this.flgInitialized=!1,this.store.dispatch((0,f.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,F.no)({payload:{action:"FetchInfo",status:w.wn.INITIATED}})),this.store.dispatch((0,f.mt)({payload:w.MZ.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+w.rl.GETINFO_API).pipe((0,A.Q)(this.actions.pipe((0,i.gp)(w.aU.SET_SELECTED_NODE))),(0,o.T)(Y=>(this.logger.info(Y),this.CLN_VERISON=Y.version||"",Y.chains&&Y.chains.length&&Y.chains[0]&&"object"==typeof Y.chains[0]&&Y.chains[0].hasOwnProperty("chain")&&Y?.chains[0].chain&&Y?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&Y?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,F.no)({payload:{action:"FetchInfo",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.GET_NODE_INFO})),this.store.dispatch((0,f.Jh)()),setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{type:w.A$.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.aU.LOGOUT,payload:"Sorry Not Sorry, RTL is Bitcoin Only!"}):(this.initializeRemainingData(Y,x.payload.loadPage),this.store.dispatch((0,F.no)({payload:{action:"FetchInfo",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.GET_NODE_INFO})),{type:w.TC.SET_INFO_CLN,payload:Y||{}}))),(0,D.W)(Y=>{const R=this.commonService.extractErrorCode(Y),U=503===R?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(Y);return this.router.navigate(["/error"],{state:{errorCode:R,errorMessage:U}}),this.handleErrorWithoutAlert("FetchInfo",w.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:R,error:U}),(0,p.of)({type:w.aU.VOID})})))))),this.fetchFeeRatesCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_FEE_RATES_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"FetchFeeRates"+x.payload,status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/feeRates",{style:x.payload}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"FetchFeeRates"+x.payload,status:w.wn.COMPLETED}})),{type:w.TC.SET_FEE_RATES_CLN,payload:Y||{}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchFeeRates"+x.payload,w.MZ.NO_SPINNER,"Fetching Fee Rates Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.getNewAddressCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.GET_NEW_ADDRESS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.post(this.CHILD_API_URL+w.rl.ON_CHAIN_API+"/newaddr",{addresstype:x.payload.addressCode}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.GENERATE_NEW_ADDRESS})),{type:w.TC.SET_NEW_ADDRESS_CLN,payload:Y&&Y[x.payload.addressCode]?Y[x.payload.addressCode]:{}})),(0,D.W)(Y=>(this.handleErrorWithAlert("GenerateNewAddress",w.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+w.rl.ON_CHAIN_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.setNewAddressCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_NEW_ADDRESS_CLN),(0,o.T)(x=>(this.logger.info(x.payload),x.payload))),{dispatch:!1}),this.peersFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_PEERS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchPeers",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.PEERS_API).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchPeers",status:w.wn.COMPLETED}})),{type:w.TC.SET_PEERS_CLN,payload:x||[]})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPeers",w.MZ.NO_SPINNER,"Fetching Peers Failed.",x),(0,p.of)({type:w.aU.VOID})))))))),this.saveNewPeerCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_PEER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.CONNECT_PEER})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewPeer",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.PEERS_API,{id:x.payload.id}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SaveNewPeer",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.CONNECT_PEER})),this.store.dispatch((0,F.Qj)({payload:Y||[]})),{type:w.TC.NEWLY_ADDED_PEER_CLN,payload:{peer:Y.find(R=>0===x.payload.id.indexOf(R.id?R.id:""))}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewPeer",w.MZ.CONNECT_PEER,"Peer Connection Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.detachPeerCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DETACH_PEER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DISCONNECT_PEER})),this.httpClient.post(this.CHILD_API_URL+w.rl.PEERS_API+"/disconnect",{id:x.payload.id,force:x.payload.force}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.DISCONNECT_PEER})),this.store.dispatch((0,f.UI)({payload:"Peer Disconnected Successfully!"})),{type:w.TC.REMOVE_PEER_CLN,payload:{id:x.payload.id}})),(0,D.W)(Y=>(this.handleErrorWithAlert("PeerDisconnect",w.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+w.rl.PEERS_API+"/"+x.payload.id,Y),(0,p.of)({type:w.aU.VOID})))))))),this.channelsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_CHANNELS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchChannels",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.CHANNELS_API+"/listPeerChannels"))),(0,o.T)(x=>{this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchChannels",status:w.wn.COMPLETED}}));const Y={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return x.forEach(R=>{"CHANNELD_NORMAL"===R.state?R.peer_connected?Y.activeChannels.push(R):Y.inactiveChannels.push(R):Y.pendingChannels.push(R)}),{type:w.TC.SET_CHANNELS_CLN,payload:Y}}),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchChannels",w.MZ.NO_SPINNER,"Fetching Channels Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.openNewChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_CHANNEL_CLN),(0,e.Z)(x=>{this.store.dispatch((0,f.mt)({payload:w.MZ.OPEN_CHANNEL})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewChannel",status:w.wn.INITIATED}}));const Y={id:x.payload.peerId,amount:x.payload.amount,feerate:x.payload.feeRate,announce:x.payload.announce};return x.payload.minconf&&(Y.minconf=x.payload.minconf),x.payload.utxos&&(Y.utxos=x.payload.utxos),x.payload.requestAmount&&(Y.request_amt=x.payload.requestAmount),x.payload.compactLease&&(Y.compact_lease=x.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API,Y).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,F.no)({payload:{action:"SaveNewChannel",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.OPEN_CHANNEL})),this.store.dispatch((0,f.UI)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,F.g6)()),{type:w.TC.FETCH_CHANNELS_CLN})),(0,D.W)(R=>(this.handleErrorWithoutAlert("SaveNewChannel",w.MZ.OPEN_CHANNEL,"Opening Channel Failed.",R),(0,p.of)({type:w.aU.VOID}))))}))),this.updateChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.UPDATE_CHANNEL_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API+"/setChannelFee",x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,f.UI)("all"===x.payload.id?{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.TC.FETCH_CHANNELS_CLN})),(0,D.W)(Y=>(this.handleErrorWithAlert("UpdateChannel",w.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+w.rl.CHANNELS_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.closeChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.CLOSE_CHANNEL_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:x.payload.force?w.MZ.FORCE_CLOSE_CHANNEL:w.MZ.CLOSE_CHANNEL})),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API+"/close",{id:x.payload.channelId,unilateraltimeout:x.payload.force?1:null}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:x.payload.force?w.MZ.FORCE_CLOSE_CHANNEL:w.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.g6)()),this.store.dispatch((0,f.UI)({payload:"Channel Closed Successfully!"})),{type:w.TC.REMOVE_CHANNEL_CLN,payload:x.payload})),(0,D.W)(Y=>(this.handleErrorWithAlert("CloseChannel",x.payload.force?w.MZ.FORCE_CLOSE_CHANNEL:w.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+w.rl.CHANNELS_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.paymentsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_PAYMENTS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchPayments",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.PAYMENTS_API))),(0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchPayments",status:w.wn.COMPLETED}})),{type:w.TC.SET_PAYMENTS_CLN,payload:x||[]})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPayments",w.MZ.NO_SPINNER,"Fetching Payments Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.fetchOfferInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_OFFER_INVOICE_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.FETCH_INVOICE})),this.store.dispatch((0,F.no)({payload:{action:"FetchOfferInvoice",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API+"/fetchOfferInvoice",x.payload).pipe((0,o.T)(Y=>{this.logger.info(Y),setTimeout(()=>{this.store.dispatch((0,F.no)({payload:{action:"FetchOfferInvoice",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.FETCH_INVOICE})),this.store.dispatch((0,F.GZ)({payload:Y||{}}))},500)}),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.MZ.FETCH_INVOICE,"Offer Invoice Fetch Failed",Y),(0,p.of)({type:w.aU.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_OFFER_INVOICE_CLN),(0,o.T)(x=>(this.logger.info(x.payload),x.payload))),{dispatch:!1}),this.sendPaymentCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SEND_PAYMENT_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:x.payload.uiMessage})),this.store.dispatch((0,F.no)({payload:{action:"SendPayment",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.PAYMENTS_API,x.payload).pipe((0,o.T)(Y=>{this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SendPayment",status:w.wn.COMPLETED}}));let R="Payment Sent Successfully!";Y.saveToDBError&&(R="Payment Sent Successfully but Offer Saving to Database Failed."),Y.saveToDBResponse&&"NA"!==Y.saveToDBResponse&&(this.store.dispatch((0,F.Db)({payload:Y.saveToDBResponse})),R="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.g6)()),this.store.dispatch((0,F.CK)()),this.store.dispatch((0,f.y0)({payload:x.payload.uiMessage})),this.store.dispatch((0,f.UI)({payload:R})),this.store.dispatch((0,F.N4)({payload:Y.paymentResponse}))},1e3)}),(0,D.W)(Y=>(this.logger.error("Error: "+JSON.stringify(Y)),x.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",x.payload.uiMessage,"Send Payment Failed.",Y):this.handleErrorWithAlert("SendPayment",x.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+w.rl.PAYMENTS_API,Y),(0,p.of)({type:w.aU.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.GET_QUERY_ROUTES_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"GetQueryRoutes",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/getRoute",{id:x.payload.destPubkey,amount_msat:x.payload.amount,riskfactor:0}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"GetQueryRoutes",status:w.wn.COMPLETED}})),{type:w.TC.SET_QUERY_ROUTES_CLN,payload:Y})),(0,D.W)(Y=>(this.store.dispatch((0,F.Hm)({payload:{route:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+w.rl.NETWORK_API+"/getRoute",Y),(0,p.of)({type:w.aU.VOID})))))))),this.setQueryRoutesCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_QUERY_ROUTES_CLN),(0,o.T)(x=>x.payload)),{dispatch:!1}),this.peerLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.PEER_LOOKUP_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.SEARCHING_NODE})),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/listNodes",{id:x.payload}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.SEARCHING_NODE})),{type:w.TC.SET_LOOKUP_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithAlert("Lookup",w.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+w.rl.NETWORK_API+"/listNodes/"+x.payload,Y),(0,p.of)({type:w.aU.VOID})))))))),this.channelLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.CHANNEL_LOOKUP_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:x.payload.uiMessage})),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/listChannels",{short_channel_id:x.payload.shortChannelID}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:x.payload.uiMessage})),{type:w.TC.SET_LOOKUP_CLN,payload:Y})),(0,D.W)(Y=>(x.payload.showError?this.handleErrorWithAlert("Lookup",x.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+w.rl.NETWORK_API+"/listChannels/"+x.payload.shortChannelID,Y):this.store.dispatch((0,f.y0)({payload:x.payload.uiMessage})),this.store.dispatch((0,F.$J)({payload:[]})),(0,p.of)({type:w.aU.VOID})))))))),this.invoiceLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.INVOICE_LOOKUP_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API+"/lookup",{label:x.payload}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.SEARCHING_INVOICE})),Y.invoices&&Y.invoices.length&&Y.invoices.length>0&&this.store.dispatch((0,F.Dq)({payload:Y.invoices[0]})),{type:w.TC.SET_LOOKUP_CLN,payload:Y.invoices&&Y.invoices.length&&Y.invoices.length>0?Y.invoices[0]:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("Lookup",w.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",Y),this.store.dispatch((0,f.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,p.of)({type:w.aU.VOID})))))))),this.setLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_LOOKUP_CLN),(0,o.T)(x=>(this.logger.info(x.payload),x.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.GET_FORWARDING_HISTORY_CLN),(0,e.Z)(x=>{const Y=x.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,F.no)({payload:{action:"FetchForwardingHistory"+Y,status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API+"/listForwards",x.payload).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,F.no)({payload:{action:"FetchForwardingHistory"+Y,status:w.wn.COMPLETED}})),x.payload.status===w.xk.FAILED?this.store.dispatch((0,F.kv)({payload:{status:w.xk.FAILED,totalForwards:R.length,listForwards:R}})):x.payload.status===w.xk.LOCAL_FAILED?this.store.dispatch((0,F.kv)({payload:{status:w.xk.LOCAL_FAILED,totalForwards:R.length,listForwards:R}})):x.payload.status===w.xk.SETTLED&&this.store.dispatch((0,F.kv)({payload:{status:w.xk.SETTLED,totalForwards:R.length,listForwards:R}})),{type:w.aU.VOID})),(0,D.W)(R=>(this.handleErrorWithAlert("FetchForwardingHistory"+Y,w.MZ.NO_SPINNER,"Get "+x.payload.status+" Forwarding History Failed",this.CHILD_API_URL+w.rl.CHANNELS_API+"/listForwards",R),(0,p.of)({type:w.aU.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DELETE_EXPIRED_INVOICE_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DELETE_INVOICE})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API+"/delete",{subsystem:"expiredinvoices",age:w.NG}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.DELETE_INVOICE})),this.store.dispatch((0,f.UI)({payload:Y.status})),{type:w.TC.FETCH_INVOICES_CLN})),(0,D.W)(Y=>(this.handleErrorWithAlert("DeleteInvoices",w.MZ.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+w.rl.INVOICES_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.saveNewInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_INVOICE_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.ADD_INVOICE})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewInvoice",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SaveNewInvoice",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.ADD_INVOICE})),Y.amount_msat=x.payload.amount_msat,Y.label=x.payload.label,Y.expires_at=Math.round((new Date).getTime()/1e3+x.payload.expiry),Y.description=x.payload.description,Y.status="unpaid",setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{invoice:Y,newlyAdded:!0,component:d.y}}}))},200),{type:w.TC.ADD_INVOICE_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.MZ.ADD_INVOICE,"Add Invoice Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.saveNewOfferCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_OFFER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.CREATE_OFFER})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewOffer",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SaveNewOffer",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{offer:Y,newlyAdded:!0,component:K.f}}}))},100),{type:w.TC.ADD_OFFER_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewOffer",w.MZ.CREATE_OFFER,"Create Offer Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.invoicesFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_INVOICES_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchInvoices",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API+"/lookup",null))),(0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchInvoices",status:w.wn.COMPLETED}})),{type:w.TC.SET_INVOICES_CLN,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchInvoices",w.MZ.NO_SPINNER,"Fetching Invoices Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.offersFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_OFFERS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"FetchOffers",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.OFFERS_API).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"FetchOffers",status:w.wn.COMPLETED}})),{type:w.TC.SET_OFFERS_CLN,payload:Y.offers?Y.offers:[]})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchOffers",w.MZ.NO_SPINNER,"Fetching Offers Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.offersDisableCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DISABLE_OFFER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DISABLE_OFFER})),this.store.dispatch((0,F.no)({payload:{action:"DisableOffer",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API+"/disableOffer",{offer_id:x.payload.offer_id}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"DisableOffer",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.DISABLE_OFFER})),this.store.dispatch((0,f.UI)({payload:"Offer Disabled Successfully!"})),{type:w.TC.UPDATE_OFFER_CLN,payload:{offer:Y}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("DisableOffer",w.MZ.DISABLE_OFFER,"Disabling Offer Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.offerBookmarksFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_OFFER_BOOKMARKS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"FetchOfferBookmarks",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.OFFERS_API+"/offerbookmarks").pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"FetchOfferBookmarks",status:w.wn.COMPLETED}})),{type:w.TC.SET_OFFER_BOOKMARKS_CLN,payload:Y||[]})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.MZ.NO_SPINNER,"Fetching Offer Bookmarks Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.peidOffersDeleteCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DELETE_OFFER_BOOKMARK_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,F.no)({payload:{action:"DeleteOfferBookmark",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API+"/offerbookmark/delete",{offer_str:x.payload.bolt12}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"DeleteOfferBookmark",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,f.UI)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.TC.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:x.payload.bolt12}})),(0,D.W)(Y=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.MZ.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+w.rl.OFFERS_API+"/offerbookmark/"+x.payload.bolt12,Y),(0,p.of)({type:w.aU.VOID})))))))),this.SetChannelTransactionCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_CHANNEL_TRANSACTION_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.SEND_FUNDS})),this.store.dispatch((0,F.no)({payload:{action:"SetChannelTransaction",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.ON_CHAIN_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SetChannelTransaction",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.SEND_FUNDS})),this.store.dispatch((0,F.g6)()),{type:w.TC.SET_CHANNEL_TRANSACTION_RES_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.MZ.SEND_FUNDS,"Sending Fund Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.utxoBalancesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_UTXO_BALANCES_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchUTXOBalances",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.ON_CHAIN_API+"/utxos"))),(0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchUTXOBalances",status:w.wn.COMPLETED}})),{type:w.TC.SET_UTXO_BALANCES_CLN,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchUTXOBalances",w.MZ.NO_SPINNER,"Fetching UTXO and Balances Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.pageSettingsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_PAGE_SETTINGS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchPageSettings",status:w.wn.INITIATED}})),this.httpClient.get(w.rl.PAGE_SETTINGS_API).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchPageSettings",status:w.wn.COMPLETED}})),{type:w.TC.SET_PAGE_SETTINGS_CLN,payload:x||[]})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPageSettings",w.MZ.NO_SPINNER,"Fetching Page Settings Failed.",x),(0,p.of)({type:w.aU.VOID})))))))),this.savePageSettingsCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_PAGE_SETTINGS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,F.no)({payload:{action:"SavePageSettings",status:w.wn.INITIATED}})),this.httpClient.post(w.rl.PAGE_SETTINGS_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SavePageSettings",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,f.UI)({payload:"Page Layout Updated Successfully!"})),{type:w.TC.SET_PAGE_SETTINGS_CLN,payload:Y||[]})),(0,D.W)(Y=>(this.handleErrorWithAlert("SavePageSettings",w.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",w.rl.PAGE_SETTINGS_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.store.select(M.ru).pipe((0,A.Q)(this.unSubs[0])).subscribe(x=>{x.FetchInfo.status!==w.wn.COMPLETED&&x.FetchInfo.status!==w.wn.ERROR||x.FetchChannels.status!==w.wn.COMPLETED&&x.FetchChannels.status!==w.wn.ERROR||x.FetchUTXOBalances.status!==w.wn.COMPLETED&&x.FetchUTXOBalances.status!==w.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,f.y0)({payload:w.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,A.Q)(this.unSubs[1])).subscribe(x=>{this.logger.info("Received new message from the service: "+JSON.stringify(x)),x&&x.data&&x.data[w.Jr.INVOICE_PAYMENT]&&x.data[w.Jr.INVOICE_PAYMENT].label&&this.store.dispatch((0,F.Dq)({payload:x.data[w.Jr.INVOICE_PAYMENT]}))})}initializeRemainingData(t,s){this.sessionService.setItem("clnUnlocked","true");const m={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network.toLowerCase(),chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,numberOfPendingChannels:t.num_pending_channels};this.store.dispatch((0,f.mt)({payload:w.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,f.Fl)({payload:m}));let u=this.location.path();u.includes("/lnd/")?u=u?.replace("/lnd/","/cln/"):u.includes("/ecl/")&&(u=u?.replace("/ecl/","/cln/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===s||u.includes("?access-key="))&&(u="/cln/home"),this.router.navigate([u]),this.store.dispatch((0,F.Do)()),this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.g6)()),this.store.dispatch((0,F.kX)({payload:"perkw"})),this.store.dispatch((0,F.kX)({payload:"perkb"})),this.store.dispatch((0,F.Gy)()),this.store.dispatch((0,F.CK)())}handleErrorWithoutAlert(t,s,m,u){if(this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(u)),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.Jh)()),this.store.dispatch((0,f.ri)({payload:"Authentication Failed: "+JSON.stringify(u.error)}));else{this.store.dispatch((0,f.y0)({payload:s}));const _=this.commonService.extractErrorMessage(u,m);this.store.dispatch((0,F.no)({payload:{action:t,status:w.wn.ERROR,statusCode:u.status.toString(),message:_}}))}}handleErrorWithAlert(t,s,m,u,_){if(this.logger.error(_),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.Jh)()),this.store.dispatch((0,f.ri)({payload:"Authentication Failed: "+JSON.stringify(_.error)})),this.store.dispatch((0,f.UI)({payload:"Authentication Failed: "+_.error}));else{this.store.dispatch((0,f.y0)({payload:s}));const T=this.commonService.extractErrorMessage(_);this.store.dispatch((0,f.xO)({payload:{data:{type:"ERROR",alertTitle:m,message:{code:_.status,message:T,URL:u},component:h.f}}})),this.store.dispatch((0,F.no)({payload:{action:t,status:w.wn.ERROR,statusCode:_.status.toString(),message:T,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}static#e=pe=()=>(this.\u0275fac=function(s){return new(s||Ee)(j.KVO(i.En),j.KVO(Z.Qq),j.KVO(ee.il),j.KVO(V.Q),j.KVO(Q.h),j.KVO($.gP),j.KVO(ie.Ix),j.KVO(_e.I),j.KVO(ye.aZ))},this.\u0275prov=j.jDH({token:Ee,factory:Ee.\u0275fac}))}return pe(),Ee})()},59584(ke,q,l){"use strict";l.d(q,{Al:()=>M,BM:()=>K,Dv:()=>Z,GX:()=>V,Ie:()=>j,KT:()=>h,O5:()=>ie,Pj:()=>F,RB:()=>f,RQ:()=>$,aJ:()=>ee,av:()=>D,ip:()=>_e,kQ:()=>Q,kr:()=>w,mH:()=>o,os:()=>d,ru:()=>A});var g=l(59640);const p=(0,g.UX)("cln"),D=(0,g.Mz)(p,se=>({pageSettings:se.pageSettings,apiCallStatus:se.apisCallStatus.FetchPageSettings})),o=(0,g.Mz)(p,se=>se.information),A=((0,g.Mz)(p,se=>se.apisCallStatus.FetchInfo),(0,g.Mz)(p,se=>se.apisCallStatus)),h=(0,g.Mz)(p,se=>({payments:se.payments,apiCallStatus:se.apisCallStatus.FetchPayments})),d=(0,g.Mz)(p,se=>({peers:se.peers,apiCallStatus:se.apisCallStatus.FetchPeers})),w=(0,g.Mz)(p,se=>({feeRatesPerKB:se.feeRatesPerKB,apiCallStatus:se.apisCallStatus.FetchFeeRatesperkb})),f=(0,g.Mz)(p,se=>({feeRatesPerKW:se.feeRatesPerKW,apiCallStatus:se.apisCallStatus.FetchFeeRatesperkw})),F=(0,g.Mz)(p,se=>({listInvoices:se.invoices,apiCallStatus:se.apisCallStatus.FetchInvoices})),M=(0,g.Mz)(p,se=>({utxos:se.utxos,balance:se.balance,localRemoteBalance:se.localRemoteBalance,apiCallStatus:se.apisCallStatus.FetchUTXOBalances})),K=(0,g.Mz)(p,se=>({activeChannels:se.activeChannels,pendingChannels:se.pendingChannels,inactiveChannels:se.inactiveChannels,apiCallStatus:se.apisCallStatus.FetchChannels})),j=(0,g.Mz)(p,se=>({forwardingHistory:se.forwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistoryS})),Z=(0,g.Mz)(p,se=>({failedForwardingHistory:se.failedForwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistoryF})),ee=(0,g.Mz)(p,se=>({localFailedForwardingHistory:se.localFailedForwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistoryL})),V=(0,g.Mz)(p,se=>({information:se.information,balance:se.balance,numPeers:se.peers.length})),Q=(0,g.Mz)(p,se=>({information:se.information,balance:se.balance})),$=(0,g.Mz)(p,se=>({information:se.information,fees:se.fees,apisCallStatus:[se.apisCallStatus.FetchInfo,se.apisCallStatus.FetchForwardingHistoryS]})),ie=(0,g.Mz)(p,se=>({offers:se.offers,apiCallStatus:se.apisCallStatus.FetchOffers})),_e=(0,g.Mz)(p,se=>({offersBookmarks:se.offersBookmarks,apiCallStatus:se.apisCallStatus.FetchOfferBookmarks}))},8321(ke,q,l){"use strict";l.d(q,{y:()=>be});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(59584),A=l(2615),h=l(73664),d=l(98570),w=l(82571),f=l(95416),F=l(59640),M=l(72200),K=l(20060),j=l(88834),Z=l(25596),ee=l(71997),V=l(9183),Q=l(52920),$=l(16038),ie=l(40455),_e=l(38288),ye=l(29157),se=l(89587);const pe=nt=>({"display-none":nt}),Ee=nt=>({"xs-scroll-y":nt}),L=(nt,$e)=>({"mt-2":nt,"mt-1":$e}),t=nt=>({"mr-0":nt}),s=()=>[];function m(nt,$e){if(1&nt&&h.nrm(0,"qr-code",33),2&nt){const dt=h.XpG();h.Y8G("value",(null==dt.invoice?null:dt.invoice.bolt11)||(null==dt.invoice?null:dt.invoice.bolt12))("size",dt.qrWidth)}}function u(nt,$e){1&nt&&(h.j41(0,"span",34),h.EFF(1,"N/A"),h.k0s())}function _(nt,$e){if(1&nt&&h.nrm(0,"span",35),2&nt){const dt=h.XpG();h.Y8G("ngClass",h.eq3(1,t,dt.screenSize===dt.screenSizeEnum.XS))}}function T(nt,$e){if(1&nt&&h.nrm(0,"span",36),2&nt){const dt=h.XpG();h.Y8G("ngClass",h.eq3(1,t,dt.screenSize===dt.screenSizeEnum.XS))}}function P(nt,$e){if(1&nt&&h.nrm(0,"span",37),2&nt){const dt=h.XpG();h.Y8G("ngClass",h.eq3(1,t,dt.screenSize===dt.screenSizeEnum.XS))}}function C(nt,$e){if(1&nt&&h.nrm(0,"qr-code",33),2&nt){const dt=h.XpG();h.Y8G("value",(null==dt.invoice?null:dt.invoice.bolt11)||(null==dt.invoice?null:dt.invoice.bolt12))("size",dt.qrWidth)}}function a(nt,$e){1&nt&&(h.j41(0,"span",38),h.EFF(1,"QR Code Not Applicable"),h.k0s())}function x(nt,$e){1&nt&&h.nrm(0,"mat-divider",39)}function Y(nt,$e){if(1&nt&&(h.j41(0,"div",20)(1,"div",40),h.nrm(2,"fa-icon",41),h.j41(3,"span"),h.EFF(4),h.k0s()()()),2&nt){const dt=h.XpG();h.R7$(2),h.Y8G("icon",dt.faExclamationTriangle),h.R7$(2),h.JRh(null==dt.invoice?null:dt.invoice.warning_capacity)}}function R(nt,$e){1&nt&&(h.qex(0),h.EFF(1," (zero amount) "),h.bVm())}function U(nt,$e){1&nt&&h.nrm(0,"span",47)}function fe(nt,$e){if(1&nt&&(h.j41(0,"div",43)(1,"div",44)(2,"span",45),h.EFF(3),h.nI1(4,"number"),h.k0s(),h.DNE(5,U,1,0,"span",46),h.k0s()()),2&nt){const dt=h.XpG(2);h.R7$(3),h.SpI("",h.bMT(4,2,(null==dt.invoice?null:dt.invoice.amount_received_msat)/1e3)," Sats"),h.R7$(2),h.Y8G("ngForOf",h.lJ4(4,s).constructor(35))}}function re(nt,$e){if(1&nt&&(h.j41(0,"div"),h.EFF(1),h.nI1(2,"number"),h.k0s()),2&nt){const dt=h.XpG(2);h.R7$(),h.SpI("",h.bMT(2,1,(null==dt.invoice?null:dt.invoice.amount_received_msat)/1e3)," Sats")}}function he(nt,$e){if(1&nt&&(h.qex(0),h.DNE(1,fe,6,5,"div",42)(2,re,3,3,"div",24),h.bVm()),2&nt){const dt=h.XpG();h.R7$(),h.Y8G("ngIf",dt.flgInvoicePaid),h.R7$(),h.Y8G("ngIf",!dt.flgInvoicePaid)}}function Oe(nt,$e){1&nt&&(h.j41(0,"span"),h.EFF(1,"-"),h.k0s())}function ge(nt,$e){1&nt&&h.nrm(0,"mat-spinner",49),2&nt&&h.Y8G("diameter",20)}function ce(nt,$e){if(1&nt&&(h.qex(0),h.DNE(1,Oe,2,0,"span",24)(2,ge,1,1,"mat-spinner",48),h.bVm()),2&nt){const dt=h.XpG();h.R7$(),h.Y8G("ngIf","unpaid"!==(null==dt.invoice?null:dt.invoice.status)),h.R7$(),h.Y8G("ngIf","unpaid"===(null==dt.invoice?null:dt.invoice.status))}}function Re(nt,$e){if(1&nt&&(h.j41(0,"div"),h.nrm(1,"mat-divider",26),h.j41(2,"div",20)(3,"div",27)(4,"h4",22),h.EFF(5,"Payment Hash"),h.k0s(),h.j41(6,"span",25),h.EFF(7),h.k0s()()(),h.nrm(8,"mat-divider",26),h.j41(9,"div",20)(10,"div",27)(11,"h4",22),h.EFF(12,"Label"),h.k0s(),h.j41(13,"span",25),h.EFF(14),h.k0s()()(),h.nrm(15,"mat-divider",26),h.k0s()),2&nt){const dt=h.XpG();h.R7$(7),h.JRh(null==dt.invoice?null:dt.invoice.payment_hash),h.R7$(7),h.JRh(null==dt.invoice?null:dt.invoice.label)}}function Me(nt,$e){1&nt&&(h.j41(0,"p"),h.EFF(1,"Show Advanced"),h.k0s())}function ve(nt,$e){1&nt&&(h.j41(0,"p"),h.EFF(1,"Hide Advanced"),h.k0s())}function oe(nt,$e){if(1&nt){const dt=h.RV6();h.j41(0,"button",50),h.bIt("copied",function(Et){A.eBV(dt);const rt=h.XpG();return A.Njj(rt.onCopyPayment(Et))}),h.EFF(1,"Copy Invoice"),h.k0s()}if(2&nt){const dt=h.XpG();h.Y8G("payload",(null==dt.invoice?null:dt.invoice.bolt11)||(null==dt.invoice?null:dt.invoice.bolt12))}}function Se(nt,$e){if(1&nt){const dt=h.RV6();h.j41(0,"button",51),h.bIt("click",function(){A.eBV(dt);const Et=h.XpG();return A.Njj(Et.onClose())}),h.EFF(1,"OK"),h.k0s()}}let be=(()=>{var nt;class $e{constructor(yt,Et,rt,Mn,qt,S){this.dialogRef=yt,this.data=Et,this.logger=rt,this.commonService=Mn,this.snackBar=qt,this.store=S,this.faReceipt=g.Mf0,this.faExclamationTriangle=g.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.invoiceStatus="",this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgInvoicePaid=!1,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.invoice=this.data.invoice,this.invoiceStatus=this.invoice.status,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.store.select(e.Pj).pipe((0,D.Q)(this.unSubs[1])).subscribe(yt=>{const rt=(yt.listInvoices.invoices||[])?.find(Mn=>Mn.payment_hash===this.invoice.payment_hash)||null;rt&&(this.invoice=rt),this.invoiceStatus!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(this.invoice),this.logger.info(this.invoiceStatus),this.logger.info(rt),this.logger.info(yt)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(yt){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+yt)}ngOnDestroy(){this.unSubs.forEach(yt=>{yt.next(null),yt.complete()})}static#e=nt=()=>(this.\u0275fac=function(Et){return new(Et||$e)(h.rXU(i.CP),h.rXU(i.Vh),h.rXU(d.gP),h.rXU(w.h),h.rXU(f.UG),h.rXU(F.il))},this.\u0275cmp=h.VBU({type:$e,selectors:[["rtl-cln-invoice-information"]],standalone:!1,decls:72,vars:49,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",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 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",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"],["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"],["errorCorrectionLevel","L",3,"value","size"],[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"],["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,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Et,rt){if(1&Et){const Mn=h.RV6();h.j41(0,"div",1)(1,"div",2),h.DNE(2,m,1,2,"qr-code",3)(3,u,2,0,"span",4),h.k0s(),h.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),h.nrm(7,"fa-icon",8),h.j41(8,"span",9),h.EFF(9),h.DNE(10,_,1,3,"span",10)(11,T,1,3,"span",11)(12,P,1,3,"span",12),h.k0s()(),h.j41(13,"button",13),h.bIt("click",function(){return A.eBV(Mn),A.Njj(rt.onClose())}),h.EFF(14,"X"),h.k0s()(),h.j41(15,"mat-card-content",14)(16,"div",15)(17,"div",16),h.DNE(18,C,1,2,"qr-code",3)(19,a,2,0,"span",17),h.k0s(),h.DNE(20,x,1,0,"mat-divider",18)(21,Y,5,2,"div",19),h.j41(22,"div",20)(23,"div",21)(24,"h4",22),h.EFF(25),h.k0s(),h.j41(26,"span",23),h.EFF(27),h.nI1(28,"number"),h.DNE(29,R,2,0,"ng-container",24),h.k0s()(),h.j41(30,"div",21)(31,"h4",22),h.EFF(32,"Amount Received"),h.k0s(),h.j41(33,"span",25),h.DNE(34,he,3,2,"ng-container",24)(35,ce,3,2,"ng-container",24),h.k0s()()(),h.nrm(36,"mat-divider",26),h.j41(37,"div",20)(38,"div",21)(39,"h4",22),h.EFF(40,"Date Expiry"),h.k0s(),h.j41(41,"span",23),h.EFF(42),h.nI1(43,"date"),h.k0s()(),h.j41(44,"div",21)(45,"h4",22),h.EFF(46,"Date Settled"),h.k0s(),h.j41(47,"span",23),h.EFF(48),h.nI1(49,"date"),h.k0s()()(),h.nrm(50,"mat-divider",26),h.j41(51,"div",20)(52,"div",27)(53,"h4",22),h.EFF(54,"Description"),h.k0s(),h.j41(55,"span",23),h.EFF(56),h.k0s()()(),h.nrm(57,"mat-divider",26),h.j41(58,"div",20)(59,"div",27)(60,"h4",22),h.EFF(61),h.k0s(),h.j41(62,"span",25),h.EFF(63),h.k0s()()(),h.DNE(64,Re,16,2,"div",24),h.j41(65,"div",28)(66,"button",29),h.bIt("click",function(){return A.eBV(Mn),A.Njj(rt.onShowAdvanced())}),h.DNE(67,Me,2,0,"p",30)(68,ve,2,0,"ng-template",null,0,h.C5r),h.k0s(),h.DNE(70,oe,2,1,"button",31)(71,Se,2,0,"button",32),h.k0s()()()()()}if(2&Et){const Mn=h.sdS(69);h.R7$(),h.Y8G("fxLayoutAlign",null!=rt.invoice&&rt.invoice.bolt11&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||null!=rt.invoice&&rt.invoice.bolt12&&""!==(null==rt.invoice?null:rt.invoice.bolt12)?"center start":"center center")("ngClass",h.eq3(40,pe,rt.screenSize===rt.screenSizeEnum.XS||rt.screenSize===rt.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==rt.invoice?null:rt.invoice.bolt11)&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)&&""!==(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.bolt11||null!=rt.invoice&&rt.invoice.bolt12)),h.R7$(4),h.Y8G("icon",rt.faReceipt),h.R7$(2),h.SpI(" ",rt.screenSize===rt.screenSizeEnum.XS?rt.newlyAdded?"Created":"Invoice":rt.newlyAdded?"Invoice Created":"Invoice Information"," "),h.R7$(),h.Y8G("ngIf","paid"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(),h.Y8G("ngIf","unpaid"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(),h.Y8G("ngIf","expired"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(3),h.Y8G("ngClass",h.eq3(42,Ee,rt.screenSize===rt.screenSizeEnum.XS)),h.R7$(2),h.Y8G("fxLayoutAlign",null!=rt.invoice&&rt.invoice.bolt11&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||null!=rt.invoice&&rt.invoice.bolt12&&""!==(null==rt.invoice?null:rt.invoice.bolt12)?"center start":"center center")("ngClass",h.eq3(44,pe,rt.screenSize!==rt.screenSizeEnum.XS&&rt.screenSize!==rt.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==rt.invoice?null:rt.invoice.bolt11)&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)&&""!==(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.bolt11||null!=rt.invoice&&rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",rt.screenSize===rt.screenSizeEnum.XS||rt.screenSize===rt.screenSizeEnum.SM),h.R7$(),h.Y8G("ngIf",null==rt.invoice?null:rt.invoice.warning_capacity),h.R7$(4),h.JRh(rt.screenSize===rt.screenSizeEnum.XS?"Amount":"Amount Requested"),h.R7$(2),h.SpI(" ",h.bMT(28,32,(null==rt.invoice?null:rt.invoice.amount_msat)/1e3||0)," Sats"),h.R7$(2),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.amount_msat)||"0"===(null==rt.invoice?null:rt.invoice.amount_msat)||"any"===(null==rt.invoice?null:rt.invoice.amount_msat)),h.R7$(5),h.Y8G("ngIf","paid"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(),h.Y8G("ngIf","paid"!==(null==rt.invoice?null:rt.invoice.status)),h.R7$(7),h.JRh(h.i5U(43,34,1e3*(null==rt.invoice?null:rt.invoice.expires_at),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(h.i5U(49,37,1e3*(null==rt.invoice?null:rt.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),h.R7$(8),h.JRh((null==rt.invoice?null:rt.invoice.description)||"-"),h.R7$(5),h.SpI("",null!=rt.invoice&&rt.invoice.bolt12?"Bolt12":null!=rt.invoice&&rt.invoice.bolt11&&!rt.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),h.R7$(2),h.JRh((null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",rt.showAdvanced),h.R7$(),h.Y8G("ngClass",h.l_i(46,L,!rt.showAdvanced,rt.showAdvanced)),h.R7$(2),h.Y8G("ngIf",!rt.showAdvanced)("ngIfElse",Mn),h.R7$(3),h.Y8G("ngIf",(null==rt.invoice?null:rt.invoice.bolt11)&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)&&""!==(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.bolt11||null!=rt.invoice&&rt.invoice.bolt12))}},dependencies:[M.YU,M.Sq,M.bT,K.aY,j.$z,Z.m2,Z.MM,ee.q,V.LG,Q.DJ,Q.sA,Q.UI,$.PW,ie.oV,_e.Um,ye.U,se.N,M.QX,M.vh],encapsulation:2}))}return nt(),$e})()},32142(ke,q,l){"use strict";l.d(q,{f:()=>fe});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(2615),A=l(73664),h=l(98570),d=l(82571),w=l(95416),f=l(51534),F=l(72200),M=l(20060),K=l(88834),j=l(25596),Z=l(71997),ee=l(52920),V=l(16038),Q=l(38288),$=l(29157),ie=l(89587);const _e=re=>({"display-none":re}),ye=re=>({"xs-scroll-y":re}),se=(re,he)=>({"mt-2":re,"mt-1":he});function pe(re,he){if(1&re&&A.nrm(0,"qr-code",28),2&re){const Oe=A.XpG();A.Y8G("value",null==Oe.offer?null:Oe.offer.bolt12)("size",Oe.qrWidth)}}function Ee(re,he){1&re&&(A.j41(0,"span",29),A.EFF(1,"N/A"),A.k0s())}function L(re,he){if(1&re&&A.nrm(0,"qr-code",28),2&re){const Oe=A.XpG();A.Y8G("value",null==Oe.offer?null:Oe.offer.bolt12)("size",Oe.qrWidth)}}function t(re,he){1&re&&(A.j41(0,"span",30),A.EFF(1,"QR Code Not Applicable"),A.k0s())}function s(re,he){1&re&&A.nrm(0,"mat-divider",31),2&re&&A.Y8G("inset",!0)}function m(re,he){1&re&&A.nrm(0,"mat-divider",20)}function u(re,he){if(1&re&&(A.j41(0,"div",16)(1,"div",17)(2,"h4",18),A.EFF(3,"Used"),A.k0s(),A.j41(4,"span",19),A.EFF(5),A.k0s()(),A.j41(6,"div",17)(7,"h4",18),A.EFF(8,"Single Use"),A.k0s(),A.j41(9,"span",19),A.EFF(10),A.k0s()()()),2&re){const Oe=A.XpG(2);A.R7$(5),A.SpI(" ",null!=Oe.offer&&Oe.offer.used?null!=Oe.offer&&Oe.offer.used?"Yes":"No":"N/K"," "),A.R7$(5),A.SpI(" ",null!=Oe.offer&&Oe.offer.single_use?null!=Oe.offer&&Oe.offer.single_use?"Yes":"No":"N/K"," ")}}function _(re,he){1&re&&A.nrm(0,"mat-divider",20)}function T(re,he){if(1&re&&(A.j41(0,"div",16)(1,"div",21)(2,"h4",18),A.EFF(3,"Issuer"),A.k0s(),A.j41(4,"span",34),A.EFF(5),A.k0s()()()),2&re){const Oe=A.XpG(2);A.R7$(5),A.JRh(null==Oe.offerDecoded?null:Oe.offerDecoded.offer_issuer)}}function P(re,he){1&re&&A.nrm(0,"mat-divider",20)}function C(re,he){if(1&re&&(A.j41(0,"div",16)(1,"div",21)(2,"h4",18),A.EFF(3,"Label"),A.k0s(),A.j41(4,"span",19),A.EFF(5),A.k0s()()()),2&re){const Oe=A.XpG(2);A.R7$(5),A.JRh(Oe.offer.label)}}function a(re,he){if(1&re&&(A.j41(0,"div"),A.DNE(1,m,1,0,"mat-divider",32)(2,u,11,2,"div",33)(3,_,1,0,"mat-divider",32)(4,T,6,1,"div",33)(5,P,1,0,"mat-divider",32)(6,C,6,1,"div",33),A.nrm(7,"mat-divider",20),A.j41(8,"div",16)(9,"div",21)(10,"h4",18),A.EFF(11,"Offer ID"),A.k0s(),A.j41(12,"span",19),A.EFF(13),A.k0s()()(),A.nrm(14,"mat-divider",20),A.j41(15,"div",16)(16,"div",21)(17,"h4",18),A.EFF(18,"Offer Node ID"),A.k0s(),A.j41(19,"span",19),A.EFF(20),A.k0s()()(),A.nrm(21,"mat-divider",20),A.k0s()),2&re){const Oe=A.XpG();A.R7$(),A.Y8G("ngIf",(null==Oe.offer?null:Oe.offer.used)||(null==Oe.offer?null:Oe.offer.single_use)),A.R7$(),A.Y8G("ngIf",(null==Oe.offer?null:Oe.offer.used)||(null==Oe.offer?null:Oe.offer.single_use)),A.R7$(),A.Y8G("ngIf",null==Oe.offerDecoded?null:Oe.offerDecoded.issuer),A.R7$(),A.Y8G("ngIf",null==Oe.offerDecoded?null:Oe.offerDecoded.issuer),A.R7$(),A.Y8G("ngIf",Oe.offer.label),A.R7$(),A.Y8G("ngIf",Oe.offer.label),A.R7$(7),A.JRh(Oe.offerDecoded.offer_id),A.R7$(7),A.JRh(null==Oe.offerDecoded?null:Oe.offerDecoded.offer_node_id)}}function x(re,he){1&re&&(A.j41(0,"p"),A.EFF(1,"Show Advanced"),A.k0s())}function Y(re,he){1&re&&(A.j41(0,"p"),A.EFF(1,"Hide Advanced"),A.k0s())}function R(re,he){if(1&re){const Oe=A.RV6();A.j41(0,"button",35),A.bIt("copied",function(ce){e.eBV(Oe);const Re=A.XpG();return e.Njj(Re.onCopyOffer(ce))}),A.EFF(1,"Copy Offer"),A.k0s()}if(2&re){const Oe=A.XpG();A.Y8G("payload",null==Oe.offer?null:Oe.offer.bolt12)}}function U(re,he){if(1&re){const Oe=A.RV6();A.j41(0,"button",36),A.bIt("click",function(){e.eBV(Oe);const ce=A.XpG();return e.Njj(ce.onClose())}),A.EFF(1,"OK"),A.k0s()}}let fe=(()=>{var re;class he{constructor(ge,ce,Re,Me,ve,oe){this.dialogRef=ge,this.data=ce,this.logger=Re,this.commonService=Me,this.snackBar=ve,this.dataService=oe,this.faReceipt=g.Mf0,this.faExclamationTriangle=g.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgOfferPaid=!1,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,D.Q)(this.unSubs[1])).subscribe(ge=>{this.offerDecoded=ge,this.offerDecoded.offer_id&&!this.offerDecoded.offer_amount_msat&&(this.offerDecoded.offer_amount_msat=0)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(ge){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+ge)}ngOnDestroy(){this.unSubs.forEach(ge=>{ge.next(null),ge.complete()})}static#e=re=()=>(this.\u0275fac=function(ce){return new(ce||he)(A.rXU(i.CP),A.rXU(i.Vh),A.rXU(h.gP),A.rXU(d.h),A.rXU(w.UG),A.rXU(f.u))},this.\u0275cmp=A.VBU({type:he,selectors:[["rtl-cln-offer-information"]],standalone:!1,decls:52,vars:33,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",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 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"],["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"],["errorCorrectionLevel","L",3,"value","size"],[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,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,Re){if(1&ce){const Me=A.RV6();A.j41(0,"div",1)(1,"div",2),A.DNE(2,pe,1,2,"qr-code",3)(3,Ee,2,0,"span",4),A.k0s(),A.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),A.nrm(7,"fa-icon",8),A.j41(8,"span",9),A.EFF(9),A.k0s()(),A.j41(10,"button",10),A.bIt("click",function(){return e.eBV(Me),e.Njj(Re.onClose())}),A.EFF(11,"X"),A.k0s()(),A.j41(12,"mat-card-content",11)(13,"div",12)(14,"div",13),A.DNE(15,L,1,2,"qr-code",3)(16,t,2,0,"span",14),A.k0s(),A.DNE(17,s,1,1,"mat-divider",15),A.j41(18,"div",16)(19,"div",17)(20,"h4",18),A.EFF(21,"Amount Requested (Sats)"),A.k0s(),A.j41(22,"span",19),A.EFF(23),A.nI1(24,"number"),A.k0s()(),A.j41(25,"div",17)(26,"h4",18),A.EFF(27,"Valid"),A.k0s(),A.j41(28,"span",19),A.EFF(29),A.k0s()()(),A.nrm(30,"mat-divider",20),A.j41(31,"div",16)(32,"div",21)(33,"h4",18),A.EFF(34,"Description"),A.k0s(),A.j41(35,"span",19),A.EFF(36),A.k0s()()(),A.nrm(37,"mat-divider",20),A.j41(38,"div",16)(39,"div",21)(40,"h4",18),A.EFF(41,"Offer"),A.k0s(),A.j41(42,"span",19),A.EFF(43),A.k0s()()(),A.DNE(44,a,22,8,"div",22),A.j41(45,"div",23)(46,"button",24),A.bIt("click",function(){return e.eBV(Me),e.Njj(Re.onShowAdvanced())}),A.DNE(47,x,2,0,"p",25)(48,Y,2,0,"ng-template",null,0,A.C5r),A.k0s(),A.DNE(50,R,2,1,"button",26)(51,U,2,0,"button",27),A.k0s()()()()()}if(2&ce){const Me=A.sdS(49);A.R7$(),A.Y8G("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",A.eq3(24,_e,Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM)),A.R7$(),A.Y8G("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),A.R7$(4),A.Y8G("icon",Re.faReceipt),A.R7$(2),A.JRh(Re.screenSize===Re.screenSizeEnum.XS?Re.newlyAdded?"Created":"Offer":Re.newlyAdded?"Offer Created":"Offer Information"),A.R7$(3),A.Y8G("ngClass",A.eq3(26,ye,Re.screenSize===Re.screenSizeEnum.XS)),A.R7$(2),A.Y8G("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",A.eq3(28,_e,Re.screenSize!==Re.screenSizeEnum.XS&&Re.screenSize!==Re.screenSizeEnum.SM)),A.R7$(),A.Y8G("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM),A.R7$(6),A.SpI(" ",null!=Re.offerDecoded&&Re.offerDecoded.offer_amount_msat&&0!==(null==Re.offerDecoded?null:Re.offerDecoded.offer_amount_msat)?A.bMT(24,22,(null==Re.offerDecoded?null:Re.offerDecoded.offer_amount_msat)/1e3):"Open Offer"," "),A.R7$(6),A.SpI(" ",null!=Re.offerDecoded&&Re.offerDecoded.valid?null!=Re.offerDecoded&&Re.offerDecoded.valid?"Yes":"No":"N/K"," "),A.R7$(7),A.SpI(" ",null==Re.offerDecoded?null:Re.offerDecoded.offer_description," "),A.R7$(7),A.JRh(null==Re.offer?null:Re.offer.bolt12),A.R7$(),A.Y8G("ngIf",Re.showAdvanced),A.R7$(),A.Y8G("ngClass",A.l_i(30,se,!Re.showAdvanced,Re.showAdvanced)),A.R7$(2),A.Y8G("ngIf",!Re.showAdvanced)("ngIfElse",Me),A.R7$(3),A.Y8G("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12))}},dependencies:[F.YU,F.bT,M.aY,K.$z,j.m2,j.MM,Z.q,ee.DJ,ee.sA,ee.UI,V.PW,Q.Um,$.U,ie.N,F.QX],encapsulation:2}))}return re(),he})()},95428(ke,q,l){"use strict";l.d(q,{$6:()=>Oe,$Q:()=>F,As:()=>U,CK:()=>T,Do:()=>he,Dq:()=>Re,Fd:()=>x,Gy:()=>$,Hh:()=>D,Hm:()=>a,I6:()=>j,Jx:()=>ce,Lc:()=>pe,Lz:()=>fe,N4:()=>Y,N8:()=>V,NS:()=>e,Qj:()=>ie,Sn:()=>A,T4:()=>C,Tp:()=>M,Uj:()=>P,Uo:()=>f,XT:()=>L,Xx:()=>ee,Yi:()=>ve,ZE:()=>Q,Zi:()=>Ee,cR:()=>_,cU:()=>K,fy:()=>m,gZ:()=>Se,iO:()=>ge,jJ:()=>Z,lg:()=>o,mh:()=>R,sq:()=>_e,uL:()=>p,vL:()=>s,w0:()=>u,x1:()=>d,yn:()=>be,yp:()=>w,zR:()=>h,zU:()=>Me});var i=l(59640),g=l(4416);const p=(0,i.VP)(g.Uu.UPDATE_API_CALL_STATUS_ECL,(0,i.xk)()),D=(0,i.VP)(g.Uu.RESET_ECL_STORE),o=(0,i.VP)(g.Uu.FETCH_PAGE_SETTINGS_ECL),e=(0,i.VP)(g.Uu.SET_PAGE_SETTINGS_ECL,(0,i.xk)()),A=(0,i.VP)(g.Uu.SAVE_PAGE_SETTINGS_ECL,(0,i.xk)()),h=(0,i.VP)(g.Uu.FETCH_INFO_ECL,(0,i.xk)()),d=(0,i.VP)(g.Uu.SET_INFO_ECL,(0,i.xk)()),w=(0,i.VP)(g.Uu.FETCH_FEES_ECL),f=(0,i.VP)(g.Uu.SET_FEES_ECL,(0,i.xk)()),F=(0,i.VP)(g.Uu.FETCH_CHANNELS_ECL),M=(0,i.VP)(g.Uu.SET_ACTIVE_CHANNELS_ECL,(0,i.xk)()),K=(0,i.VP)(g.Uu.SET_PENDING_CHANNELS_ECL,(0,i.xk)()),j=(0,i.VP)(g.Uu.SET_INACTIVE_CHANNELS_ECL,(0,i.xk)()),Z=(0,i.VP)(g.Uu.FETCH_ONCHAIN_BALANCE_ECL),ee=(0,i.VP)(g.Uu.SET_ONCHAIN_BALANCE_ECL,(0,i.xk)()),V=(0,i.VP)(g.Uu.SET_LIGHTNING_BALANCE_ECL,(0,i.xk)()),Q=(0,i.VP)(g.Uu.SET_CHANNELS_STATUS_ECL,(0,i.xk)()),$=(0,i.VP)(g.Uu.FETCH_PEERS_ECL),ie=(0,i.VP)(g.Uu.SET_PEERS_ECL,(0,i.xk)()),_e=(0,i.VP)(g.Uu.SAVE_NEW_PEER_ECL,(0,i.xk)()),pe=((0,i.VP)(g.Uu.NEWLY_ADDED_PEER_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.ADD_PEER_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.DETACH_PEER_ECL,(0,i.xk)())),Ee=(0,i.VP)(g.Uu.REMOVE_PEER_ECL,(0,i.xk)()),L=(0,i.VP)(g.Uu.GET_NEW_ADDRESS_ECL),s=((0,i.VP)(g.Uu.SET_NEW_ADDRESS_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.SAVE_NEW_CHANNEL_ECL,(0,i.xk)())),m=(0,i.VP)(g.Uu.UPDATE_CHANNEL_ECL,(0,i.xk)()),u=(0,i.VP)(g.Uu.CLOSE_CHANNEL_ECL,(0,i.xk)()),_=(0,i.VP)(g.Uu.REMOVE_CHANNEL_ECL,(0,i.xk)()),T=(0,i.VP)(g.Uu.FETCH_PAYMENTS_ECL,(0,i.xk)()),P=(0,i.VP)(g.Uu.SET_PAYMENTS_ECL,(0,i.xk)()),C=(0,i.VP)(g.Uu.GET_QUERY_ROUTES_ECL,(0,i.xk)()),a=(0,i.VP)(g.Uu.SET_QUERY_ROUTES_ECL,(0,i.xk)()),x=(0,i.VP)(g.Uu.SEND_PAYMENT_ECL,(0,i.xk)()),Y=(0,i.VP)(g.Uu.SEND_PAYMENT_STATUS_ECL,(0,i.xk)()),R=(0,i.VP)(g.Uu.FETCH_TRANSACTIONS_ECL,(0,i.xk)()),U=(0,i.VP)(g.Uu.SET_TRANSACTIONS_ECL,(0,i.xk)()),fe=(0,i.VP)(g.Uu.SEND_ONCHAIN_FUNDS_ECL,(0,i.xk)()),he=((0,i.VP)(g.Uu.SEND_ONCHAIN_FUNDS_RES_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.FETCH_INVOICES_ECL,(0,i.xk)())),Oe=(0,i.VP)(g.Uu.SET_INVOICES_ECL,(0,i.xk)()),ge=(0,i.VP)(g.Uu.CREATE_INVOICE_ECL,(0,i.xk)()),ce=(0,i.VP)(g.Uu.ADD_INVOICE_ECL,(0,i.xk)()),Re=(0,i.VP)(g.Uu.UPDATE_INVOICE_ECL,(0,i.xk)()),Me=(0,i.VP)(g.Uu.PEER_LOOKUP_ECL,(0,i.xk)()),ve=(0,i.VP)(g.Uu.INVOICE_LOOKUP_ECL,(0,i.xk)()),Se=((0,i.VP)(g.Uu.SET_LOOKUP_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.UPDATE_CHANNEL_STATE_ECL,(0,i.xk)())),be=(0,i.VP)(g.Uu.UPDATE_RELAYED_PAYMENT_ECL,(0,i.xk)())},13017(ke,q,l){"use strict";l.d(q,{B:()=>ye});var i=l(11747),g=l(21413),p=l(7673),D=l(99437),o=l(96354),e=l(31397),A=l(56977),h=l(12462),d=l(4416),w=l(11771),f=l(86439),F=l(95428),M=l(72730),K=l(2615),j=l(29330),Z=l(59640),ee=l(53202),V=l(82571),Q=l(98570),$=l(43694),ie=l(7879),_e=l(57303);let ye=(()=>{var se;class pe{constructor(L,t,s,m,u,_,T,P,C){this.actions=L,this.httpClient=t,this.store=s,this.sessionService=m,this.commonService=u,this.logger=_,this.router=T,this.wsService=P,this.location=C,this.CHILD_API_URL=d.H$+"/ecl",this.invoicesPageSettings=d.X8.find(a=>"transactions"===a.pageId)?.tables.find(a=>"invoices"===a.tableId),this.paymentsPageSettings=d.X8.find(a=>"transactions"===a.pageId)?.tables.find(a=>"payments"===a.tableId),this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new g.B,new g.B,new g.B],this.infoFetchECL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_INFO_ECL),(0,e.Z)(a=>(this.flgInitialized=!1,this.store.dispatch((0,w.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,w.mt)({payload:d.MZ.GET_NODE_INFO})),this.store.dispatch((0,F.uL)({payload:{action:"FetchInfo",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.GETINFO_API).pipe((0,A.Q)(this.actions.pipe((0,i.gp)(d.aU.SET_SELECTED_NODE))),(0,o.T)(x=>(this.logger.info(x),this.initializeRemainingData(x,a.payload.loadPage),this.store.dispatch((0,F.uL)({payload:{action:"FetchInfo",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.GET_NODE_INFO})),{type:d.Uu.SET_INFO_ECL,payload:x||{}})),(0,D.W)(x=>{const Y=this.commonService.extractErrorCode(x),R=503===Y?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(x);return this.router.navigate(["/error"],{state:{errorCode:Y,errorMessage:R}}),this.handleErrorWithoutAlert("FetchInfo",d.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:Y,error:R}),(0,p.of)({type:d.aU.VOID})})))))),this.fetchFees=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_FEES_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchFees",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.FEES_API+"/fees").pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchFees",status:d.wn.COMPLETED}})),{type:d.Uu.SET_FEES_ECL,payload:a||{}})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchFees",d.MZ.NO_SPINNER,"Fetching Fees Failed.",a),(0,p.of)({type:d.aU.VOID})))))))),this.fetchPayments=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_PAYMENTS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchPayments",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.FEES_API+"/payments?count="+a.payload.count+"&skip="+a.payload.skip).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"FetchPayments",status:d.wn.COMPLETED}})),{type:d.Uu.SET_PAYMENTS_ECL,payload:x||{}})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPayments",d.MZ.NO_SPINNER,"Fetching Payments Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.channelsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_CHANNELS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchChannels",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.CHANNELS_API).pipe((0,o.T)(x=>(this.logger.info(x),this.rawChannelsList=x,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,F.uL)({payload:{action:"FetchChannels",status:d.wn.COMPLETED}})),{type:d.aU.VOID})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchChannels",d.MZ.NO_SPINNER,"Fetching Channels Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.fetchOnchainBalance=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_ONCHAIN_BALANCE_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchOnchainBalance",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.ON_CHAIN_API+"/balance"))),(0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchOnchainBalance",status:d.wn.COMPLETED}})),{type:d.Uu.SET_ONCHAIN_BALANCE_ECL,payload:a||{}})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchOnchainBalance",d.MZ.NO_SPINNER,"Fetching Onchain Balances Failed.",a),(0,p.of)({type:d.aU.VOID}))))),this.peersFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_PEERS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchPeers",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.PEERS_API).pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchPeers",status:d.wn.COMPLETED}})),{type:d.Uu.SET_PEERS_ECL,payload:a||[]})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchPeers",d.MZ.NO_SPINNER,"Fetching Peers Failed.",a),(0,p.of)({type:d.aU.VOID})))))))),this.getNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.GET_NEW_ADDRESS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,w.mt)({payload:d.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+d.rl.ON_CHAIN_API).pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,w.y0)({payload:d.MZ.GENERATE_NEW_ADDRESS})),{type:d.Uu.SET_NEW_ADDRESS_ECL,payload:a})),(0,D.W)(a=>(this.handleErrorWithAlert("GetNewAddress",d.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+d.rl.ON_CHAIN_API,a),(0,p.of)({type:d.aU.VOID})))))))),this.setNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SET_NEW_ADDRESS_ECL),(0,o.T)(a=>(this.logger.info(a.payload),a.payload))),{dispatch:!1}),this.saveNewPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SAVE_NEW_PEER_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.CONNECT_PEER})),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewPeer",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.PEERS_API+(a.payload.id.includes("@")?"?uri=":"?nodeId=")+a.payload.id,{}).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewPeer",status:d.wn.COMPLETED}})),x=x||[],this.store.dispatch((0,w.y0)({payload:d.MZ.CONNECT_PEER})),this.store.dispatch((0,F.Qj)({payload:x})),{type:d.Uu.NEWLY_ADDED_PEER_ECL,payload:{peer:x.find(Y=>Y.nodeId===(a.payload.id.includes("@")?a.payload.id.substring(0,a.payload.id.indexOf("@")):a.payload.id))}})),(0,D.W)(x=>(this.handleErrorWithoutAlert("SaveNewPeer",d.MZ.CONNECT_PEER,"Peer Connection Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.detachPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.DETACH_PEER_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+d.rl.PEERS_API+"/"+a.payload.nodeId).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,w.y0)({payload:d.MZ.DISCONNECT_PEER})),this.store.dispatch((0,w.UI)({payload:"Disconnecting Peer!"})),{type:d.Uu.REMOVE_PEER_ECL,payload:{nodeId:a.payload.nodeId}})),(0,D.W)(x=>(this.handleErrorWithAlert("DisconnectPeer",d.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.rl.PEERS_API+"/"+a.payload.nodeId,x),(0,p.of)({type:d.aU.VOID})))))))),this.openNewChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SAVE_NEW_CHANNEL_ECL),(0,e.Z)(a=>{this.store.dispatch((0,w.mt)({payload:d.MZ.OPEN_CHANNEL})),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewChannel",status:d.wn.INITIATED}}));const x={nodeId:a.payload.nodeId,fundingSatoshis:a.payload.amount,announceChannel:!a.payload.private};return a.payload.feeRate&&a.payload.feeRate>0&&(x.fundingFeerateSatByte=a.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+d.rl.CHANNELS_API,x).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewChannel",status:d.wn.COMPLETED}})),this.store.dispatch((0,F.Gy)()),this.store.dispatch((0,F.jJ)()),this.store.dispatch((0,w.y0)({payload:d.MZ.OPEN_CHANNEL})),this.store.dispatch((0,w.UI)({payload:"Channel Added Successfully!"})),{type:d.Uu.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewChannel",d.MZ.OPEN_CHANNEL,"Opening Channel Failed.",Y),(0,p.of)({type:d.aU.VOID}))))}))),this.updateChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.UPDATE_CHANNEL_ECL),(0,e.Z)(a=>{this.store.dispatch((0,w.mt)({payload:d.MZ.UPDATE_CHAN_POLICY}));let x="?feeBaseMsat="+a.payload.baseFeeMsat+"&feeProportionalMillionths="+a.payload.feeRate;return x=a.payload.nodeIds?x+"&nodeIds="+a.payload.nodeIds:a.payload.nodeId?x+"&nodeId="+a.payload.nodeId:a.payload.channelIds?x+"&channelIds="+a.payload.channelIds:x+"&channelId="+a.payload.channelId,this.httpClient.post(this.CHILD_API_URL+d.rl.CHANNELS_API+"/updateRelayFee"+x,{}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,w.y0)({payload:d.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.UI)(a.payload.nodeIds||a.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:d.Uu.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,D.W)(Y=>(this.handleErrorWithAlert("UpdateChannels",d.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+d.rl.CHANNELS_API,Y),(0,p.of)({type:d.aU.VOID}))))}))),this.closeChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.CLOSE_CHANNEL_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:a.payload.force?d.MZ.FORCE_CLOSE_CHANNEL:d.MZ.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+d.rl.CHANNELS_API+"?channelId="+a.payload.channelId+"&force="+a.payload.force).pipe((0,o.T)(x=>(this.logger.info(x),setTimeout(()=>{this.store.dispatch((0,w.y0)({payload:a.payload.force?d.MZ.FORCE_CLOSE_CHANNEL:d.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,w.UI)({payload:a.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:d.aU.VOID})),(0,D.W)(x=>(this.handleErrorWithAlert("CloseChannel",a.payload.force?d.MZ.FORCE_CLOSE_CHANNEL:d.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.rl.CHANNELS_API,x),(0,p.of)({type:d.aU.VOID})))))))),this.queryRoutesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.GET_QUERY_ROUTES_ECL),(0,e.Z)(a=>this.httpClient.get(this.CHILD_API_URL+d.rl.PAYMENTS_API+"/route?nodeId="+a.payload.nodeId+"&amountMsat="+a.payload.amount).pipe((0,o.T)(x=>(this.logger.info(x),{type:d.Uu.SET_QUERY_ROUTES_ECL,payload:x})),(0,D.W)(x=>(this.store.dispatch((0,F.Hm)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",d.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+d.rl.PAYMENTS_API+"/route?nodeId="+a.payload.nodeId+"&amountMsat="+a.payload.amount,x),(0,p.of)({type:d.aU.VOID}))))))),this.setQueryRoutes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SET_QUERY_ROUTES_ECL),(0,o.T)(a=>a.payload)),{dispatch:!1}),this.sendPayment=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SEND_PAYMENT_ECL),(0,e.Z)(a=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,w.mt)({payload:d.MZ.SEND_PAYMENT})),this.store.dispatch((0,F.uL)({payload:{action:"SendPayment",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.PAYMENTS_API,a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.latestPaymentRes=x,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:d.aU.VOID})),(0,D.W)(x=>(this.logger.error("Error: "+JSON.stringify(x)),a.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",d.MZ.SEND_PAYMENT,"Send Payment Failed.",x):this.handleErrorWithAlert("SendPayment",d.MZ.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+d.rl.PAYMENTS_API,x),(0,p.of)({type:d.aU.VOID})))))))),this.transactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_TRANSACTIONS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchTransactions",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.ON_CHAIN_API+"/transactions?count="+a.payload.count+"&skip="+a.payload.skip))),(0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchTransactions",status:d.wn.COMPLETED}})),{type:d.Uu.SET_TRANSACTIONS_ECL,payload:a||[]})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchTransactions",d.MZ.NO_SPINNER,"Fetching Transactions Failed.",a),(0,p.of)({type:d.aU.VOID}))))),this.SendOnchainFunds=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SEND_ONCHAIN_FUNDS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.SEND_FUNDS})),this.store.dispatch((0,F.uL)({payload:{action:"SendOnchainFunds",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.ON_CHAIN_API,a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"SendOnchainFunds",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEND_FUNDS})),this.store.dispatch((0,F.jJ)()),{type:d.Uu.SEND_ONCHAIN_FUNDS_RES_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("SendOnchainFunds",d.MZ.SEND_FUNDS,"Sending Fund Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.createInvoice=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.CREATE_INVOICE_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.CREATE_INVOICE})),this.store.dispatch((0,F.uL)({payload:{action:"CreateInvoice",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.INVOICES_API,a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"CreateInvoice",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.CREATE_INVOICE})),x.timestamp=Math.round((new Date).getTime()/1e3),x.expiresAt=Math.round(x.timestamp+a.payload.expireIn),x.description=a.payload.description,x.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.xO)({payload:{data:{invoice:x,newlyAdded:!0,component:f.Z}}}))},200),{type:d.Uu.ADD_INVOICE_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("CreateInvoice",d.MZ.CREATE_INVOICE,"Create Invoice Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.invoicesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_INVOICES_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchInvoices",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.INVOICES_API+"?count="+a.payload.count+"&skip="+a.payload.skip).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"FetchInvoices",status:d.wn.COMPLETED}})),{type:d.Uu.SET_INVOICES_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchInvoices",d.MZ.NO_SPINNER,"Fetching Invoices Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.peerLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.PEER_LOOKUP_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.SEARCHING_NODE})),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.NETWORK_API+"/nodes/"+a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEARCHING_NODE})),{type:d.Uu.SET_LOOKUP_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithAlert("Lookup",d.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+d.rl.NETWORK_API+"/nodes/"+a.payload,x),(0,p.of)({type:d.aU.VOID})))))))),this.invoiceLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.INVOICE_LOOKUP_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.INVOICES_API+"/"+a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,F.Dq)({payload:x})),{type:d.Uu.SET_LOOKUP_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("Lookup",d.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",x),this.store.dispatch((0,w.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,p.of)({type:d.aU.VOID})))))))),this.setLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SET_LOOKUP_ECL),(0,o.T)(a=>(this.logger.info(a.payload),a.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_PAGE_SETTINGS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchPageSettings",status:d.wn.INITIATED}})),this.httpClient.get(d.rl.PAGE_SETTINGS_API).pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchPageSettings",status:d.wn.COMPLETED}})),this.invoicesPageSettings=a&&Object.keys(a).length>0?a.find(x=>"transactions"===x.pageId)?.tables.find(x=>"invoices"===x.tableId):d.X8.find(x=>"transactions"===x.pageId)?.tables.find(x=>"invoices"===x.tableId),this.paymentsPageSettings=a&&Object.keys(a).length>0?a.find(x=>"transactions"===x.pageId)?.tables.find(x=>"payments"===x.tableId):d.X8.find(x=>"transactions"===x.pageId)?.tables.find(x=>"payments"===x.tableId),{type:d.Uu.SET_PAGE_SETTINGS_ECL,payload:a||[]})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchPageSettings",d.MZ.NO_SPINNER,"Fetching Page Settings Failed.",a),(0,p.of)({type:d.aU.VOID})))))))),this.savePageSettingsCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SAVE_PAGE_SETTINGS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,F.uL)({payload:{action:"SavePageSettings",status:d.wn.INITIATED}})),this.httpClient.post(d.rl.PAGE_SETTINGS_API,a.payload).pipe((0,o.T)(x=>{this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"SavePageSettings",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,w.UI)({payload:"Page Layout Updated Successfully!"}));const Y=(x.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId)||d.X8.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId))?.recordsPerPage,R=(x.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId)||d.X8.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId))?.recordsPerPage;return this.invoicesPageSettings&&Y!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=Y),this.paymentsPageSettings&&R!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=R),{type:d.Uu.SET_PAGE_SETTINGS_ECL,payload:x||[]}}),(0,D.W)(x=>(this.handleErrorWithAlert("SavePageSettings",d.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",d.rl.PAGE_SETTINGS_API,x),(0,p.of)({type:d.aU.VOID})))))))),this.handleSendPaymentStatus=a=>{this.store.dispatch((0,F.uL)({payload:{action:"SendPayment",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEND_PAYMENT})),this.store.dispatch((0,F.N4)({payload:this.latestPaymentRes})),this.store.dispatch((0,w.UI)({payload:a}))},this.store.select(M.ru).pipe((0,A.Q)(this.unSubs[0])).subscribe(a=>{a.FetchInfo.status!==d.wn.COMPLETED&&a.FetchInfo.status!==d.wn.ERROR||a.FetchFees.status!==d.wn.COMPLETED&&a.FetchFees.status!==d.wn.ERROR||a.FetchOnchainBalance.status!==d.wn.COMPLETED&&a.FetchOnchainBalance.status!==d.wn.ERROR||a.FetchChannels.status!==d.wn.COMPLETED&&a.FetchChannels.status!==d.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.y0)({payload:d.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,A.Q)(this.unSubs[1])).subscribe(a=>{this.logger.info("Received new message from the service: "+JSON.stringify(a));let x="";if(a)switch(a.type){case d.ck.PAYMENT_SENT:a&&a.id&&this.latestPaymentRes===a.id&&(this.flgReceivedPaymentUpdateFromWS=!0,x="Payment Sent: "+(a.paymentHash?"with payment hash "+a.paymentHash:JSON.stringify(a)),this.handleSendPaymentStatus(x));break;case d.ck.PAYMENT_FAILED:a&&a.id&&this.latestPaymentRes===a.id&&(this.flgReceivedPaymentUpdateFromWS=!0,x="Payment Failed: "+(a.failures&&a.failures.length&&a.failures.length>0&&a.failures[0].t?a.failures[0].t:a.failures&&a.failures.length&&a.failures.length>0&&a.failures[0].e&&a.failures[0].e.failureMessage?a.failures[0].e.failureMessage:JSON.stringify(a)),this.handleSendPaymentStatus(x));break;case d.ck.PAYMENT_RECEIVED:this.store.dispatch((0,F.Dq)({payload:a}));break;case d.ck.PAYMENT_RELAYED:delete a.source,a.amountIn=Math.round((a.amountIn||0)/1e3),a.amountOut=Math.round((a.amountOut||0)/1e3),a.timestamp.unix&&(a.timestamp=1e3*a.timestamp.unix),this.store.dispatch((0,F.yn)({payload:a}));break;case d.ck.CHANNEL_STATE_CHANGED:"NORMAL"===a.currentState||"CLOSED"===a.currentState?(this.rawChannelsList=this.rawChannelsList?.map(Y=>(Y.channelId===a.channelId&&Y.nodeId===a.remoteNodeId&&(Y.state=a.currentState),Y)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,F.gZ)({payload:a}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(a))}})}setChannelsAndStatusAndBalances(){let L=0,t=0,s=0,m={localBalance:0,remoteBalance:0},u=[];const _=[],T=[],P={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((C,a)=>{C&&("NORMAL"===C.state?(L=(C.toLocal||0)+(C.toRemote||0),t+=C.toLocal||0,s+=C.toRemote||0,C.balancedness=0===L?1:+(1-Math.abs(((C.toLocal||0)-(C.toRemote||0))/L)).toFixed(3),u.push(C),P.active.channels=P.active.channels+1,P.active.capacity=P.active.capacity+(C.toLocal||0)):C.state?.includes("WAIT")||C.state?.includes("CLOSING")||C.state?.includes("SYNCING")?(C.state=C.state?.replace(/_/g," "),_.push(C),P.pending.channels=P.pending.channels+1,P.pending.capacity=P.pending.capacity+(C.toLocal||0)):(C.state=C.state?.replace(/_/g," "),T.push(C),P.inactive.channels=P.inactive.channels+1,P.inactive.capacity=P.inactive.capacity+(C.toLocal||0)))}),m={localBalance:t,remoteBalance:s},u=this.commonService.sortDescByKey(u,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(u)),this.logger.info("Pending Channels: "+JSON.stringify(_)),this.logger.info("Inactive Channels: "+JSON.stringify(T)),this.logger.info("Lightning Balances: "+JSON.stringify(m)),this.logger.info("Channels Status: "+JSON.stringify(P)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:u,pending:_,inactive:T,balances:m,status:P})),this.store.dispatch((0,F.Tp)({payload:u})),this.store.dispatch((0,F.cU)({payload:_})),this.store.dispatch((0,F.I6)({payload:T})),this.store.dispatch((0,F.N8)({payload:m})),this.store.dispatch((0,F.ZE)({payload:P}))}initializeRemainingData(L,t){this.sessionService.setItem("eclUnlocked","true");const s={identity_pubkey:L.nodeId,alias:L.alias,testnet:"testnet"===L.network,chains:L.publicAddresses,uris:L.uris,version:L.version,numberOfPendingChannels:0};this.store.dispatch((0,w.mt)({payload:d.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,w.Fl)({payload:s}));let m=this.location.path();m.includes("/lnd/")?m=m?.replace("/lnd/","/ecl/"):m.includes("/cln/")&&(m=m?.replace("/cln/","/ecl/")),(m.includes("/login")||m.includes("/error")||""===m||"HOME"===t||m.includes("?access-key="))&&(m="/ecl/home"),this.router.navigate([m]),this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.yp)()),this.store.dispatch((0,F.jJ)()),this.store.dispatch((0,F.Gy)())}handleErrorWithoutAlert(L,t,s,m){this.logger.error("ERROR IN: "+L+"\n"+JSON.stringify(m)),401===m.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.Jh)()),this.store.dispatch((0,w.ri)({payload:"Authentication Failed: "+JSON.stringify(m.error)}))):(this.store.dispatch((0,w.y0)({payload:t})),this.store.dispatch((0,F.uL)({payload:{action:L,status:d.wn.ERROR,statusCode:m.status.toString(),message:this.commonService.extractErrorMessage(m,s)}})))}handleErrorWithAlert(L,t,s,m,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.Jh)()),this.store.dispatch((0,w.ri)({payload:"Authentication Failed: "+JSON.stringify(u.error)}));else{this.store.dispatch((0,w.y0)({payload:t}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,w.xO)({payload:{data:{type:"ERROR",alertTitle:s,message:{code:u.status,message:_,URL:m},component:h.f}}})),this.store.dispatch((0,F.uL)({payload:{action:L,status:d.wn.ERROR,statusCode:u.status.toString(),message:_,URL:m}}))}}ngOnDestroy(){this.unSubs.forEach(L=>{L.next(null),L.complete()})}static#e=se=()=>(this.\u0275fac=function(t){return new(t||pe)(K.KVO(i.En),K.KVO(j.Qq),K.KVO(Z.il),K.KVO(ee.Q),K.KVO(V.h),K.KVO(Q.gP),K.KVO($.Ix),K.KVO(ie.I),K.KVO(_e.aZ))},this.\u0275prov=K.jDH({token:pe,factory:pe.\u0275fac}))}return se(),pe})()},72730(ke,q,l){"use strict";l.d(q,{DW:()=>ee,KT:()=>h,Ou:()=>M,b_:()=>o,gN:()=>K,jZ:()=>p,oR:()=>d,os:()=>Z,p3:()=>D,rN:()=>j,ru:()=>A});var i=l(59640);const g=(0,i.UX)("ecl"),p=(0,i.Mz)(g,V=>({pageSettings:V.pageSettings,apiCallStatus:V.apisCallStatus.FetchPageSettings})),D=(0,i.Mz)(g,V=>V.information),o=(0,i.Mz)(g,V=>({information:V.information,apiCallStatus:V.apisCallStatus.FetchInfo})),A=((0,i.Mz)(g,V=>V.apisCallStatus.FetchInfo),(0,i.Mz)(g,V=>V.apisCallStatus)),h=(0,i.Mz)(g,V=>({payments:V.payments,apiCallStatus:V.apisCallStatus.FetchPayments})),d=(0,i.Mz)(g,V=>({fees:V.fees,apiCallStatus:V.apisCallStatus.FetchFees})),M=((0,i.Mz)(g,V=>({activeChannels:V.activeChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),(0,i.Mz)(g,V=>({pendingChannels:V.pendingChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),(0,i.Mz)(g,V=>({inactiveChannels:V.inactiveChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),(0,i.Mz)(g,V=>({activeChannels:V.activeChannels,pendingChannels:V.pendingChannels,inactiveChannels:V.inactiveChannels,lightningBalance:V.lightningBalance,channelsStatus:V.channelsStatus,apiCallStatus:V.apisCallStatus.FetchChannels}))),K=(0,i.Mz)(g,V=>({transactions:V.transactions,apiCallStatus:V.apisCallStatus.FetchTransactions})),j=(0,i.Mz)(g,V=>({invoices:V.invoices,apiCallStatus:V.apisCallStatus.FetchInvoices})),Z=(0,i.Mz)(g,V=>({peers:V.peers,apiCallStatus:V.apisCallStatus.FetchPeers})),ee=(0,i.Mz)(g,V=>({onchainBalance:V.onchainBalance,apiCallStatus:V.apisCallStatus.FetchOnchainBalance}))},86439(ke,q,l){"use strict";l.d(q,{Z:()=>ce});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(72730),A=l(2615),h=l(73664),d=l(98570),w=l(82571),f=l(95416),F=l(59640),M=l(72200),K=l(20060),j=l(88834),Z=l(25596),ee=l(71997),V=l(9183),Q=l(52920),$=l(16038),ie=l(38288),_e=l(29157),ye=l(89587);const se=Re=>({"display-none":Re}),pe=Re=>({"xs-scroll-y":Re}),Ee=(Re,Me)=>({"mt-2":Re,"mt-1":Me}),L=()=>[];function t(Re,Me){if(1&Re&&h.nrm(0,"qr-code",29),2&Re){const ve=h.XpG();h.Y8G("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)}}function s(Re,Me){1&Re&&(h.j41(0,"span",30),h.EFF(1,"N/A"),h.k0s())}function m(Re,Me){if(1&Re&&h.nrm(0,"qr-code",29),2&Re){const ve=h.XpG();h.Y8G("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)}}function u(Re,Me){1&Re&&(h.j41(0,"span",31),h.EFF(1,"QR Code Not Applicable"),h.k0s())}function _(Re,Me){1&Re&&h.nrm(0,"mat-divider",32),2&Re&&h.Y8G("inset",!0)}function T(Re,Me){1&Re&&(h.qex(0),h.EFF(1," (zero amount) "),h.bVm())}function P(Re,Me){1&Re&&h.nrm(0,"span",38)}function C(Re,Me){if(1&Re&&(h.j41(0,"div",34)(1,"div",35)(2,"span",36),h.EFF(3),h.nI1(4,"number"),h.k0s(),h.DNE(5,P,1,0,"span",37),h.k0s()()),2&Re){const ve=h.XpG(2);h.R7$(3),h.SpI("",h.bMT(4,2,null==ve.invoice?null:ve.invoice.amountSettled)," Sats"),h.R7$(2),h.Y8G("ngForOf",h.lJ4(4,L).constructor(35))}}function a(Re,Me){if(1&Re&&(h.j41(0,"div"),h.EFF(1),h.nI1(2,"number"),h.k0s()),2&Re){const ve=h.XpG(2);h.R7$(),h.SpI("",h.bMT(2,1,null==ve.invoice?null:ve.invoice.amountSettled)," Sats")}}function x(Re,Me){if(1&Re&&(h.qex(0),h.DNE(1,C,6,5,"div",33)(2,a,3,3,"div",20),h.bVm()),2&Re){const ve=h.XpG();h.R7$(),h.Y8G("ngIf",ve.flgInvoicePaid),h.R7$(),h.Y8G("ngIf",!ve.flgInvoicePaid)}}function Y(Re,Me){1&Re&&(h.j41(0,"span"),h.EFF(1,"-"),h.k0s())}function R(Re,Me){1&Re&&h.nrm(0,"mat-spinner",40),2&Re&&h.Y8G("diameter",20)}function U(Re,Me){if(1&Re&&(h.qex(0),h.DNE(1,Y,2,0,"span",20)(2,R,1,1,"mat-spinner",39),h.bVm()),2&Re){const ve=h.XpG();h.R7$(),h.Y8G("ngIf","unpaid"!==(null==ve.invoice?null:ve.invoice.status)||!ve.flgVersionCompatible),h.R7$(),h.Y8G("ngIf","unpaid"===(null==ve.invoice?null:ve.invoice.status)&&ve.flgVersionCompatible)}}function fe(Re,Me){if(1&Re&&(h.j41(0,"div"),h.nrm(1,"mat-divider",21),h.j41(2,"div",16)(3,"div",41)(4,"h4",18),h.EFF(5,"Date Expiry"),h.k0s(),h.j41(6,"span",19),h.EFF(7),h.nI1(8,"date"),h.k0s()(),h.j41(9,"div",42)(10,"h4",18),h.EFF(11,"Date Settled"),h.k0s(),h.j41(12,"span",22),h.EFF(13),h.nI1(14,"date"),h.k0s()()(),h.nrm(15,"mat-divider",21),h.j41(16,"div",16)(17,"div",23)(18,"h4",18),h.EFF(19,"Payment Hash"),h.k0s(),h.j41(20,"span",22),h.EFF(21),h.k0s()()(),h.nrm(22,"mat-divider",21),h.j41(23,"div",16)(24,"div",23)(25,"h4",18),h.EFF(26,"Node ID"),h.k0s(),h.j41(27,"span",22),h.EFF(28),h.k0s()()(),h.nrm(29,"mat-divider",21),h.k0s()),2&Re){const ve=h.XpG();h.R7$(7),h.JRh(h.i5U(8,4,1e3*(null==ve.invoice?null:ve.invoice.expiresAt),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(h.i5U(14,7,1e3*(null==ve.invoice?null:ve.invoice.receivedAt),"dd/MMM/y HH:mm")),h.R7$(8),h.JRh(null==ve.invoice?null:ve.invoice.paymentHash),h.R7$(7),h.JRh(null==ve.invoice?null:ve.invoice.nodeId)}}function re(Re,Me){1&Re&&(h.j41(0,"p"),h.EFF(1,"Show Advanced"),h.k0s())}function he(Re,Me){1&Re&&(h.j41(0,"p"),h.EFF(1,"Hide Advanced"),h.k0s())}function Oe(Re,Me){if(1&Re){const ve=h.RV6();h.j41(0,"button",43),h.bIt("copied",function(Se){A.eBV(ve);const be=h.XpG();return A.Njj(be.onCopyPayment(Se))}),h.EFF(1,"Copy Invoice"),h.k0s()}if(2&Re){const ve=h.XpG();h.Y8G("payload",null==ve.invoice?null:ve.invoice.serialized)}}function ge(Re,Me){if(1&Re){const ve=h.RV6();h.j41(0,"button",44),h.bIt("click",function(){A.eBV(ve);const Se=h.XpG();return A.Njj(Se.onClose())}),h.EFF(1,"OK"),h.k0s()}}let ce=(()=>{var Re;class Me{constructor(oe,Se,be,nt,$e,dt){this.dialogRef=oe,this.data=Se,this.logger=be,this.commonService=nt,this.snackBar=$e,this.store=dt,this.faReceipt=g.Mf0,this.faExclamationTriangle=g.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.store.select(e.p3).pipe((0,D.Q)(this.unSubs[0])).subscribe(oe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(oe.version,"0.5.0")}),this.store.select(e.rN).pipe((0,D.Q)(this.unSubs[1])).subscribe(oe=>{const Se=this.invoice.status,nt=(oe.invoices&&oe.invoices.length>0?oe.invoices:[])?.find($e=>$e.paymentHash===this.invoice.paymentHash)||null;nt&&(this.invoice=nt),Se!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(oe)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(oe){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+oe)}ngOnDestroy(){this.unSubs.forEach(oe=>{oe.next(null),oe.complete()})}static#e=Re=()=>(this.\u0275fac=function(Se){return new(Se||Me)(h.rXU(i.CP),h.rXU(i.Vh),h.rXU(d.gP),h.rXU(w.h),h.rXU(f.UG),h.rXU(F.il))},this.\u0275cmp=h.VBU({type:Me,selectors:[["rtl-ecl-invoice-information"]],standalone:!1,decls:68,vars:42,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",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 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"],["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"],["errorCorrectionLevel","L",3,"value","size"],[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,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Se,be){if(1&Se){const nt=h.RV6();h.j41(0,"div",1)(1,"div",2),h.DNE(2,t,1,2,"qr-code",3)(3,s,2,0,"span",4),h.k0s(),h.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),h.nrm(7,"fa-icon",8),h.j41(8,"span",9),h.EFF(9),h.k0s()(),h.j41(10,"button",10),h.bIt("click",function(){return A.eBV(nt),A.Njj(be.onClose())}),h.EFF(11,"X"),h.k0s()(),h.j41(12,"mat-card-content",11)(13,"div",12)(14,"div",13),h.DNE(15,m,1,2,"qr-code",3)(16,u,2,0,"span",14),h.k0s(),h.DNE(17,_,1,1,"mat-divider",15),h.j41(18,"div",16)(19,"div",17)(20,"h4",18),h.EFF(21,"Amount Requested"),h.k0s(),h.j41(22,"span",19),h.EFF(23),h.nI1(24,"number"),h.DNE(25,T,2,0,"ng-container",20),h.k0s()(),h.j41(26,"div",17)(27,"h4",18),h.EFF(28,"Amount Settled"),h.k0s(),h.j41(29,"span",19),h.DNE(30,x,3,2,"ng-container",20)(31,U,3,2,"ng-container",20),h.k0s()()(),h.nrm(32,"mat-divider",21),h.j41(33,"div",16)(34,"div",17)(35,"h4",18),h.EFF(36,"Date Created"),h.k0s(),h.j41(37,"span",22),h.EFF(38),h.nI1(39,"date"),h.k0s()(),h.j41(40,"div",17)(41,"h4",18),h.EFF(42,"Status"),h.k0s(),h.j41(43,"span",22),h.EFF(44),h.nI1(45,"titlecase"),h.k0s()()(),h.nrm(46,"mat-divider",21),h.j41(47,"div",16)(48,"div",23)(49,"h4",18),h.EFF(50,"Description"),h.k0s(),h.j41(51,"span",19),h.EFF(52),h.k0s()()(),h.nrm(53,"mat-divider",21),h.j41(54,"div",16)(55,"div",23)(56,"h4",18),h.EFF(57,"Invoice"),h.k0s(),h.j41(58,"span",22),h.EFF(59),h.k0s()()(),h.DNE(60,fe,30,10,"div",20),h.j41(61,"div",24)(62,"button",25),h.bIt("click",function(){return A.eBV(nt),A.Njj(be.onShowAdvanced())}),h.DNE(63,re,2,0,"p",26)(64,he,2,0,"ng-template",null,0,h.C5r),h.k0s(),h.DNE(66,Oe,2,1,"button",27)(67,ge,2,0,"button",28),h.k0s()()()()()}if(2&Se){const nt=h.sdS(65);h.R7$(),h.Y8G("fxLayoutAlign",null!=be.invoice&&be.invoice.serialized&&""!==(null==be.invoice?null:be.invoice.serialized)?"center start":"center center")("ngClass",h.eq3(33,se,be.screenSize===be.screenSizeEnum.XS||be.screenSize===be.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==be.invoice?null:be.invoice.serialized)&&""!==(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.serialized)||""===(null==be.invoice?null:be.invoice.serialized)),h.R7$(4),h.Y8G("icon",be.faReceipt),h.R7$(2),h.JRh(be.screenSize===be.screenSizeEnum.XS?be.newlyAdded?"Created":"Invoice":be.newlyAdded?"Invoice Created":"Invoice Information"),h.R7$(3),h.Y8G("ngClass",h.eq3(35,pe,be.screenSize===be.screenSizeEnum.XS)),h.R7$(2),h.Y8G("fxLayoutAlign",null!=be.invoice&&be.invoice.serialized&&""!==(null==be.invoice?null:be.invoice.serialized)?"center start":"center center")("ngClass",h.eq3(37,se,be.screenSize!==be.screenSizeEnum.XS&&be.screenSize!==be.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==be.invoice?null:be.invoice.serialized)&&""!==(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.serialized)||""===(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",be.screenSize===be.screenSizeEnum.XS||be.screenSize===be.screenSizeEnum.SM),h.R7$(6),h.SpI("",h.bMT(24,26,(null==be.invoice?null:be.invoice.amount)||0)," Sats"),h.R7$(2),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.amount)||"0"===(null==be.invoice?null:be.invoice.amount)),h.R7$(5),h.Y8G("ngIf",null==be.invoice?null:be.invoice.amountSettled),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.amountSettled)),h.R7$(7),h.JRh(h.i5U(39,28,1e3*(null==be.invoice?null:be.invoice.timestamp),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(h.bMT(45,31,null==be.invoice?null:be.invoice.status)),h.R7$(8),h.JRh((null==be.invoice?null:be.invoice.description)||"-"),h.R7$(7),h.JRh((null==be.invoice?null:be.invoice.serialized)||"N/A"),h.R7$(),h.Y8G("ngIf",be.showAdvanced),h.R7$(),h.Y8G("ngClass",h.l_i(39,Ee,!be.showAdvanced,be.showAdvanced)),h.R7$(2),h.Y8G("ngIf",!be.showAdvanced)("ngIfElse",nt),h.R7$(3),h.Y8G("ngIf",(null==be.invoice?null:be.invoice.serialized)&&""!==(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.serialized)||""===(null==be.invoice?null:be.invoice.serialized))}},dependencies:[M.YU,M.Sq,M.bT,K.aY,j.$z,Z.m2,Z.MM,ee.q,V.LG,Q.DJ,Q.sA,Q.UI,$.PW,ie.Um,_e.U,ye.N,M.QX,M.PV,M.vh],encapsulation:2}))}return Re(),Me})()},190(ke,q,l){"use strict";l.d(q,{$6:()=>ge,$J:()=>U,$Q:()=>Ee,As:()=>ve,Br:()=>d,CK:()=>be,DI:()=>ye,DY:()=>_e,Do:()=>Oe,Dq:()=>ce,Fd:()=>$e,GZ:()=>ae,Gy:()=>f,H2:()=>a,Hm:()=>Pe,J9:()=>pe,Jx:()=>Q,L:()=>x,Lf:()=>re,NS:()=>A,O8:()=>Se,Qj:()=>F,SM:()=>oe,Sn:()=>h,T4:()=>Fe,Uj:()=>nt,Uo:()=>ie,VK:()=>ee,WE:()=>Le,X9:()=>e,XT:()=>rt,Yi:()=>Vt,Zi:()=>Z,_$:()=>Re,aB:()=>qt,ar:()=>t,b1:()=>Qe,cR:()=>C,cU:()=>s,dv:()=>L,e8:()=>p,ed:()=>j,fy:()=>_,ij:()=>tn,jk:()=>hn,kv:()=>tt,lg:()=>o,mh:()=>Me,oX:()=>Xt,p1:()=>D,pL:()=>m,sq:()=>M,t0:()=>yt,t5:()=>fe,tG:()=>Ue,tf:()=>se,uK:()=>_n,vL:()=>T,w0:()=>P,x1:()=>w,yp:()=>$,z2:()=>u,zU:()=>et});var i=l(59640),g=l(4416);const p=(0,i.VP)(g.QP.UPDATE_API_CALL_STATUS_LND,(0,i.xk)()),D=(0,i.VP)(g.QP.RESET_LND_STORE),o=(0,i.VP)(g.QP.FETCH_PAGE_SETTINGS_LND),e=(0,i.VP)(g.QP.UPDATE_SELECTED_NODE_OPTIONS),A=(0,i.VP)(g.QP.SET_PAGE_SETTINGS_LND,(0,i.xk)()),h=(0,i.VP)(g.QP.SAVE_PAGE_SETTINGS_LND,(0,i.xk)()),d=(0,i.VP)(g.QP.FETCH_INFO_LND,(0,i.xk)()),w=(0,i.VP)(g.QP.SET_INFO_LND,(0,i.xk)()),f=(0,i.VP)(g.QP.FETCH_PEERS_LND),F=(0,i.VP)(g.QP.SET_PEERS_LND,(0,i.xk)()),M=(0,i.VP)(g.QP.SAVE_NEW_PEER_LND,(0,i.xk)()),j=((0,i.VP)(g.QP.NEWLY_ADDED_PEER_LND,(0,i.xk)()),(0,i.VP)(g.QP.DETACH_PEER_LND,(0,i.xk)())),Z=(0,i.VP)(g.QP.REMOVE_PEER_LND,(0,i.xk)()),ee=(0,i.VP)(g.QP.SAVE_NEW_INVOICE_LND,(0,i.xk)()),Q=((0,i.VP)(g.QP.NEWLY_SAVED_INVOICE_LND,(0,i.xk)()),(0,i.VP)(g.QP.ADD_INVOICE_LND,(0,i.xk)())),$=(0,i.VP)(g.QP.FETCH_FEES_LND),ie=(0,i.VP)(g.QP.SET_FEES_LND,(0,i.xk)()),_e=(0,i.VP)(g.QP.FETCH_BLOCKCHAIN_BALANCE_LND),ye=(0,i.VP)(g.QP.SET_BLOCKCHAIN_BALANCE_LND,(0,i.xk)()),se=(0,i.VP)(g.QP.FETCH_NETWORK_LND),pe=(0,i.VP)(g.QP.SET_NETWORK_LND,(0,i.xk)()),Ee=(0,i.VP)(g.QP.FETCH_CHANNELS_LND),L=(0,i.VP)(g.QP.SET_CHANNELS_LND,(0,i.xk)()),t=(0,i.VP)(g.QP.FETCH_PENDING_CHANNELS_LND),s=(0,i.VP)(g.QP.SET_PENDING_CHANNELS_LND,(0,i.xk)()),m=(0,i.VP)(g.QP.FETCH_CLOSED_CHANNELS_LND),u=(0,i.VP)(g.QP.SET_CLOSED_CHANNELS_LND,(0,i.xk)()),_=(0,i.VP)(g.QP.UPDATE_CHANNEL_LND,(0,i.xk)()),T=(0,i.VP)(g.QP.SAVE_NEW_CHANNEL_LND,(0,i.xk)()),P=(0,i.VP)(g.QP.CLOSE_CHANNEL_LND,(0,i.xk)()),C=(0,i.VP)(g.QP.REMOVE_CHANNEL_LND,(0,i.xk)()),a=(0,i.VP)(g.QP.BACKUP_CHANNELS_LND,(0,i.xk)()),x=(0,i.VP)(g.QP.VERIFY_CHANNEL_LND,(0,i.xk)()),U=((0,i.VP)(g.QP.BACKUP_CHANNELS_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.VERIFY_CHANNEL_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.RESTORE_CHANNELS_LIST_LND)),fe=(0,i.VP)(g.QP.SET_RESTORE_CHANNELS_LIST_LND,(0,i.xk)()),re=(0,i.VP)(g.QP.RESTORE_CHANNELS_LND,(0,i.xk)()),Oe=((0,i.VP)(g.QP.RESTORE_CHANNELS_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.FETCH_INVOICES_LND,(0,i.xk)())),ge=(0,i.VP)(g.QP.SET_INVOICES_LND,(0,i.xk)()),ce=(0,i.VP)(g.QP.UPDATE_INVOICE_LND,(0,i.xk)()),Re=(0,i.VP)(g.QP.UPDATE_PAYMENT_LND,(0,i.xk)()),Me=(0,i.VP)(g.QP.FETCH_TRANSACTIONS_LND),ve=(0,i.VP)(g.QP.SET_TRANSACTIONS_LND,(0,i.xk)()),oe=(0,i.VP)(g.QP.FETCH_UTXOS_LND),Se=(0,i.VP)(g.QP.SET_UTXOS_LND,(0,i.xk)()),be=(0,i.VP)(g.QP.FETCH_PAYMENTS_LND,(0,i.xk)()),nt=(0,i.VP)(g.QP.SET_PAYMENTS_LND,(0,i.xk)()),$e=(0,i.VP)(g.QP.SEND_PAYMENT_LND,(0,i.xk)()),yt=((0,i.VP)(g.QP.SEND_PAYMENT_STATUS_LND,(0,i.xk)()),(0,i.VP)(g.QP.FETCH_GRAPH_NODE_LND,(0,i.xk)())),rt=((0,i.VP)(g.QP.SET_GRAPH_NODE_LND,(0,i.xk)()),(0,i.VP)(g.QP.GET_NEW_ADDRESS_LND,(0,i.xk)())),qt=((0,i.VP)(g.QP.SET_NEW_ADDRESS_LND,(0,i.xk)()),(0,i.VP)(g.QP.SET_CHANNEL_TRANSACTION_LND,(0,i.xk)())),Xt=((0,i.VP)(g.QP.SET_CHANNEL_TRANSACTION_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.GEN_SEED_LND,(0,i.xk)())),ae=((0,i.VP)(g.QP.GEN_SEED_RESPONSE_LND,(0,i.xk)()),(0,i.VP)(g.QP.INIT_WALLET_LND,(0,i.xk)())),Le=((0,i.VP)(g.QP.INIT_WALLET_RESPONSE_LND,(0,i.xk)()),(0,i.VP)(g.QP.UNLOCK_WALLET_LND,(0,i.xk)())),et=(0,i.VP)(g.QP.PEER_LOOKUP_LND,(0,i.xk)()),tn=(0,i.VP)(g.QP.CHANNEL_LOOKUP_LND,(0,i.xk)()),Vt=(0,i.VP)(g.QP.INVOICE_LOOKUP_LND,(0,i.xk)()),hn=(0,i.VP)(g.QP.PAYMENT_LOOKUP_LND,(0,i.xk)()),_n=((0,i.VP)(g.QP.SET_LOOKUP_LND,(0,i.xk)()),(0,i.VP)(g.QP.GET_FORWARDING_HISTORY_LND,(0,i.xk)())),tt=(0,i.VP)(g.QP.SET_FORWARDING_HISTORY_LND,(0,i.xk)()),Fe=(0,i.VP)(g.QP.GET_QUERY_ROUTES_LND,(0,i.xk)()),Pe=(0,i.VP)(g.QP.SET_QUERY_ROUTES_LND,(0,i.xk)()),Ue=(0,i.VP)(g.QP.GET_ALL_LIGHTNING_TRANSATIONS_LND),Qe=(0,i.VP)(g.QP.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,i.xk)())},69579(ke,q,l){"use strict";l.d(q,{L:()=>pe});var i=l(11747),g=l(21413),p=l(7673),D=l(99437),o=l(96354),e=l(31397),A=l(56977),h=l(53993),d=l(46391),w=l(12462),f=l(4416),F=l(11771),M=l(190),K=l(63536),j=l(2615),Z=l(29330),ee=l(59640),V=l(98570),Q=l(82571),$=l(53202),ie=l(51585),_e=l(43694),ye=l(7879),se=l(57303);let pe=(()=>{var Ee;class L{constructor(s,m,u,_,T,P,C,a,x,Y){this.actions=s,this.httpClient=m,this.store=u,this.logger=_,this.commonService=T,this.sessionService=P,this.dialog=C,this.router=a,this.wsService=x,this.location=Y,this.CHILD_API_URL=f.H$+"/lnd",this.invoicesPageSettings=f.ZC.find(R=>"transactions"===R.pageId)?.tables.find(R=>"invoices"===R.tableId),this.paymentsPageSettings=f.ZC.find(R=>"transactions"===R.pageId)?.tables.find(R=>"payments"===R.tableId),this.flgInitialized=!1,this.unSubs=[new g.B,new g.B],this.infoFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_INFO_LND),(0,e.Z)(R=>(this.flgInitialized=!1,this.store.dispatch((0,F.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.mt)({payload:f.MZ.GET_NODE_INFO})),this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.GETINFO_API).pipe((0,A.Q)(this.actions.pipe((0,i.gp)(f.aU.SET_SELECTED_NODE))),(0,o.T)(U=>(this.logger.info(U),U.chains&&U.chains.length&&U.chains[0]&&("string"==typeof U.chains[0]&&U.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof U.chains[0]&&U.chains[0].hasOwnProperty("chain")&&U.chains[0].chain&&U.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.xO)({payload:{data:{type:f.A$.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:f.aU.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,R.payload.loadPage),this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.Jh)()),{type:f.QP.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.Jh)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:f.QP.SET_INFO_LND,payload:{}}))),(0,D.W)(U=>{if("string"==typeof U.error.error&&U.error.error.includes("Not Found")||"string"==typeof U.error.error&&U.error.error.includes("wallet locked")||502===U.status&&!U.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",f.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",U);else if("string"==typeof U.error.error&&U.error.error.includes("starting up")&&500===U.status)setTimeout(()=>{this.store.dispatch((0,M.Br)({payload:{loadPage:"HOME"}}))},2e3);else{const fe=this.commonService.extractErrorCode(U),re=503===fe?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:fe,errorMessage:re}}),this.handleErrorWithoutAlert("FetchInfo",f.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:fe,error:re})}return(0,p.of)({type:f.aU.VOID})})))))),this.peersFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PEERS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPeers",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PEERS_API).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchPeers",status:f.wn.COMPLETED}})),{type:f.QP.SET_PEERS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchPeers",f.MZ.NO_SPINNER,"Fetching Peers Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.saveNewPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_NEW_PEER_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.CONNECT_PEER})),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewPeer",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.PEERS_API,{pubkey:R.payload.pubkey,host:R.payload.host,perm:R.payload.perm}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewPeer",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.CONNECT_PEER})),this.store.dispatch((0,M.Qj)({payload:U||[]})),{type:f.QP.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",f.MZ.CONNECT_PEER,"Peer Connection Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.detachPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.DETACH_PEER_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+f.rl.PEERS_API+"/"+R.payload.pubkey).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.DISCONNECT_PEER})),this.store.dispatch((0,F.UI)({payload:"Peer Disconnected Successfully."})),{type:f.QP.REMOVE_PEER_LND,payload:{pubkey:R.payload.pubkey}})),(0,D.W)(U=>(this.handleErrorWithAlert("DetachPeer",f.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+f.rl.PEERS_API+"/"+R.payload.pubkey,U),(0,p.of)({type:f.aU.VOID})))))))),this.saveNewInvoice=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_NEW_INVOICE_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewInvoice",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.INVOICES_API,{memo:R.payload.memo,value:R.payload.value,private:R.payload.private,expiry:R.payload.expiry,is_amp:R.payload.is_amp}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewInvoice",status:f.wn.COMPLETED}})),this.store.dispatch((0,M.Do)({payload:{num_max_invoices:R.payload.pageSize,reversed:!0}})),R.payload.openModal?(U.memo=R.payload.memo,U.value=R.payload.value,U.expiry=R.payload.expiry,U.private=R.payload.private,U.is_amp=R.payload.is_amp,U.cltv_expiry="144",U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,F.xO)({payload:{data:{invoice:U,newlyAdded:!0,component:d.H}}}))},200),{type:f.aU.CLOSE_SPINNER,payload:R.payload.uiMessage}):{type:f.QP.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",R.payload.uiMessage,"Add Invoice Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.openNewChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_NEW_CHANNEL_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.OPEN_CHANNEL})),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewChannel",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_API,{node_pubkey:R.payload.selectedPeerPubkey,local_funding_amount:R.payload.fundingAmount,private:R.payload.private,trans_type:R.payload.transType,trans_type_value:R.payload.transTypeValue,spend_unconfirmed:R.payload.spendUnconfirmed,commitment_type:R.payload.commitmentType}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewChannel",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.OPEN_CHANNEL})),this.store.dispatch((0,M.DY)()),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.H2)({payload:{uiMessage:f.MZ.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:f.QP.FETCH_PENDING_CHANNELS_LND})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",f.MZ.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.updateChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.UPDATE_CHANNEL_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_API+"/chanPolicy",{baseFeeMsat:R.payload.baseFeeMsat,feeRate:R.payload.feeRate,timeLockDelta:R.payload.timeLockDelta,max_htlc_msat:R.payload.maxHtlcMsat,min_htlc_msat:R.payload.minHtlcMsat,chanPoint:R.payload.chanPoint}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,F.UI)("all"===R.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:f.QP.FETCH_CHANNELS_LND})),(0,D.W)(U=>(this.handleErrorWithAlert("UpdateChannels",f.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+f.rl.CHANNELS_API+"/chanPolicy",U),(0,p.of)({type:f.aU.VOID})))))))),this.closeChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.CLOSE_CHANNEL_LND),(0,e.Z)(R=>{this.store.dispatch((0,F.mt)({payload:R.payload.forcibly?f.MZ.FORCE_CLOSE_CHANNEL:f.MZ.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+f.rl.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly;return R.payload.targetConf&&(U=U+"&target_conf="+R.payload.targetConf),R.payload.satPerByte&&(U=U+"&sat_per_byte="+R.payload.satPerByte),this.httpClient.delete(U).pipe((0,o.T)(fe=>(this.logger.info(fe),this.store.dispatch((0,F.y0)({payload:R.payload.forcibly?f.MZ.FORCE_CLOSE_CHANNEL:f.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.ar)()),this.store.dispatch((0,M.H2)({payload:{uiMessage:f.MZ.NO_SPINNER,channelPoint:"ALL",showMessage:fe.message}})),{type:f.aU.VOID})),(0,D.W)(fe=>(this.handleErrorWithAlert("CloseChannel",R.payload.forcibly?f.MZ.FORCE_CLOSE_CHANNEL:f.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly,fe),(0,p.of)({type:f.aU.VOID}))))}))),this.backupChannels=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.BACKUP_CHANNELS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"BackupChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"BackupChannels",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,F.UI)({payload:R.payload.showMessage+" "+U.message})),{type:f.QP.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,D.W)(U=>(this.handleErrorWithAlert("BackupChannels",R.payload.uiMessage,R.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint,U),(0,p.of)({type:f.aU.VOID})))))))),this.verifyChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.VERIFY_CHANNEL_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.VERIFY_CHANNEL})),this.store.dispatch((0,M.e8)({payload:{action:"VerifyChannel",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,{}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"VerifyChannel",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.VERIFY_CHANNEL})),this.store.dispatch((0,F.UI)({payload:U.message})),{type:f.QP.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,D.W)(U=>(this.handleErrorWithAlert("VerifyChannel",f.MZ.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,U),(0,p.of)({type:f.aU.VOID})))))))),this.restoreChannels=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.RESTORE_CHANNELS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.RESTORE_CHANNEL})),this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannels",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,{}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannels",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.RESTORE_CHANNEL})),this.store.dispatch((0,F.UI)({payload:U.message})),this.store.dispatch((0,M.t5)({payload:U.list})),{type:f.QP.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,D.W)(U=>(this.handleErrorWithAlert("RestoreChannels",f.MZ.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,U),(0,p.of)({type:f.aU.VOID})))))))),this.fetchFees=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_FEES_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchFees",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.FEES_API))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchFees",status:f.wn.COMPLETED}})),R.forwarding_events_history&&(this.store.dispatch((0,M.kv)({payload:R.forwarding_events_history})),delete R.forwarding_events_history),{type:f.QP.SET_FEES_LND,payload:R||{}})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchFees",f.MZ.NO_SPINNER,"Fetching Fees Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.balanceBlockchainFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_BLOCKCHAIN_BALANCE_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchBalance",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.BALANCE_API))),(0,o.T)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchBalance",status:f.wn.COMPLETED}})),this.logger.info(R),{type:f.QP.SET_BLOCKCHAIN_BALANCE_LND,payload:R||{total_balance:""}})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchBalance",f.MZ.NO_SPINNER,"Fetching Blockchain Balance Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.networkInfoFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_NETWORK_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchNetwork",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/info"))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchNetwork",status:f.wn.COMPLETED}})),{type:f.QP.SET_NETWORK_LND,payload:R||{}})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchNetwork",f.MZ.NO_SPINNER,"Fetching Network Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.channelsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_API).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchChannels",status:f.wn.COMPLETED}})),{type:f.QP.SET_CHANNELS_LND,payload:R.channels||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchChannels",f.MZ.NO_SPINNER,"Fetching Channels Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.channelsPendingFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PENDING_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPendingChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_API+"/pending").pipe((0,o.T)(R=>{this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchPendingChannels",status:f.wn.COMPLETED}}));const U={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 R&&(U.total_limbo_balance=R.total_limbo_balance,R.pending_closing_channels&&(U.closing.num_channels=R.pending_closing_channels.length,U.total_channels=U.total_channels+R.pending_closing_channels.length,R.pending_closing_channels.forEach(fe=>{U.closing.limbo_balance=+U.closing.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)})),R.pending_force_closing_channels&&(U.force_closing.num_channels=R.pending_force_closing_channels.length,U.total_channels=U.total_channels+R.pending_force_closing_channels.length,R.pending_force_closing_channels.forEach(fe=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)})),R.pending_open_channels&&(U.open.num_channels=R.pending_open_channels.length,U.total_channels=U.total_channels+R.pending_open_channels.length,R.pending_open_channels.forEach(fe=>{U.open.limbo_balance=+U.open.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)})),R.waiting_close_channels&&(U.waiting_close.num_channels=R.waiting_close_channels.length,U.total_channels=U.total_channels+R.waiting_close_channels.length,R.waiting_close_channels.forEach(fe=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)}))),{type:f.QP.SET_PENDING_CHANNELS_LND,payload:R?{pendingChannels:R,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchPendingChannels",f.MZ.NO_SPINNER,"Fetching Pending Channels Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.channelsClosedFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_CLOSED_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchClosedChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_API+"/closed").pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchClosedChannels",status:f.wn.COMPLETED}})),{type:f.QP.SET_CLOSED_CHANNELS_LND,payload:R.channels||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchClosedChannels",f.MZ.NO_SPINNER,"Fetching Closed Channels Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.invoicesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_INVOICES_LND),(0,e.Z)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchInvoices",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.INVOICES_API+"?num_max_invoices="+(R.payload.num_max_invoices?R.payload.num_max_invoices:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,o.T)(he=>(this.logger.info(he),this.store.dispatch((0,M.e8)({payload:{action:"FetchInvoices",status:f.wn.COMPLETED}})),R.payload.reversed&&!R.payload.index_offset&&(he.total_invoices=+(he.last_index_offset||0)),{type:f.QP.SET_INVOICES_LND,payload:he})),(0,D.W)(he=>(this.handleErrorWithoutAlert("FetchInvoices",f.MZ.NO_SPINNER,"Fetching Invoices Failed.",he),(0,p.of)({type:f.aU.VOID})))))))),this.transactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_TRANSACTIONS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchTransactions",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.TRANSACTIONS_API))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchTransactions",status:f.wn.COMPLETED}})),{type:f.QP.SET_TRANSACTIONS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchTransactions",f.MZ.NO_SPINNER,"Fetching Transactions Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.utxosFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_UTXOS_LND),(0,h.E)(this.store.select(K.pI)),(0,e.Z)(([R,U])=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchUTXOs",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchUTXOs",status:f.wn.COMPLETED}})),{type:f.QP.SET_UTXOS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchUTXOs",f.MZ.NO_SPINNER,"Fetching UTXOs Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.paymentsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PAYMENTS_LND),(0,e.Z)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPayments",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PAYMENTS_API+"?max_payments="+(R.payload.max_payments?R.payload.max_payments:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,o.T)(he=>(this.logger.info(he),this.store.dispatch((0,M.e8)({payload:{action:"FetchPayments",status:f.wn.COMPLETED}})),this.commonService.sortByKey(he.payments||[],this.paymentsPageSettings?.sortBy||"creation_date","number",this.paymentsPageSettings?.sortOrder),{type:f.QP.SET_PAYMENTS_LND,payload:he})),(0,D.W)(he=>(this.handleErrorWithoutAlert("FetchPayments",f.MZ.NO_SPINNER,"Fetching Payments Failed.",he),(0,p.of)({type:f.QP.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SEND_PAYMENT_LND),(0,e.Z)(R=>{this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SendPayment",status:f.wn.INITIATED}}));const U=JSON.parse(JSON.stringify(R.payload));return delete U.uiMessage,delete U.fromDialog,this.httpClient.post(this.CHILD_API_URL+f.rl.PAYMENTS_API+"/send",U).pipe((0,o.T)(fe=>{if(this.logger.info(fe),this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SendPayment",status:f.wn.COMPLETED}})),fe.payment_error)return R.payload.allow_self_payment?(this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),{type:f.QP.SEND_PAYMENT_STATUS_LND,payload:fe}):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",fe.payment_error):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+f.rl.CHANNELS_API+"/transactions",fe.payment_error),{type:f.aU.VOID});if(this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SendPayment",status:f.wn.COMPLETED}})),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.CK)({payload:{max_payments:this.paymentsPageSettings?.recordsPerPage,reversed:!0}})),R.payload.allow_self_payment)this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}));else{let re="Payment Sent Successfully.";fe.payment_route&&fe.payment_route.total_fees_msat&&(re="Payment sent successfully with the total fee "+fe.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,F.UI)({payload:re}))}return{type:f.QP.SEND_PAYMENT_STATUS_LND,payload:fe}}),(0,D.W)(fe=>(this.logger.error("Error: "+JSON.stringify(fe)),R.payload.allow_self_payment?(this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",fe),this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),(0,p.of)({type:f.QP.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(fe)}})):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",fe):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+f.rl.CHANNELS_API+"/transactions",fe),(0,p.of)({type:f.aU.VOID})))))}))),this.graphNodeFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_GRAPH_NODE_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.GET_NODE_ADDRESS})),this.store.dispatch((0,M.e8)({payload:{action:"FetchGraphNode",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/node/"+R.payload.pubkey).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.GET_NODE_ADDRESS})),this.store.dispatch((0,M.e8)({payload:{action:"FetchGraphNode",status:f.wn.COMPLETED}})),{type:f.QP.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,D.W)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",f.MZ.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.setGraphNode=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_GRAPH_NODE_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_NEW_ADDRESS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+f.rl.NEW_ADDRESS_API+"?type="+R.payload.addressId).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.GENERATE_NEW_ADDRESS})),{type:f.QP.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,D.W)(U=>(this.handleErrorWithAlert("GetNewAddress",f.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+f.rl.NEW_ADDRESS_API+"?type="+R.payload.addressId,U),(0,p.of)({type:f.aU.VOID})))))))),this.setNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_NEW_ADDRESS_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_CHANNEL_TRANSACTION_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.SEND_FUNDS})),this.store.dispatch((0,M.e8)({payload:{action:"SetChannelTransaction",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.TRANSACTIONS_API,{amount:R.payload.amount,address:R.payload.address,sendAll:R.payload.sendAll,fees:R.payload.fees,blocks:R.payload.blocks}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SetChannelTransaction",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.SEND_FUNDS})),this.store.dispatch((0,M.mh)()),this.store.dispatch((0,M.DY)()),this.store.dispatch((0,M.$Q)()),{type:f.QP.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",f.MZ.SEND_FUNDS,"Sending Fund Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.fetchForwardingHistory=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_FORWARDING_HISTORY_LND),(0,e.Z)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchForwardingHistory",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.SWITCH_API,{num_max_events:R.payload.num_max_events,index_offset:R.payload.index_offset,end_time:R.payload.end_time,start_time:R.payload.start_time}).pipe((0,o.T)(fe=>(this.logger.info(fe),this.store.dispatch((0,M.e8)({payload:{action:"FetchForwardingHistory",status:f.wn.COMPLETED}})),{type:f.QP.SET_FORWARDING_HISTORY_LND,payload:fe})),(0,D.W)(fe=>(this.handleErrorWithAlert("FetchForwardingHistory",f.MZ.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+f.rl.SWITCH_API,fe),(0,p.of)({type:f.aU.VOID})))))))),this.queryRoutesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_QUERY_ROUTES_LND),(0,e.Z)(R=>{let U=this.CHILD_API_URL+f.rl.NETWORK_API+"/routes/"+R.payload.destPubkey+"/"+R.payload.amount;return R.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+R.payload.outgoingChanId),this.httpClient.get(U).pipe((0,o.T)(fe=>(this.logger.info(fe),{type:f.QP.SET_QUERY_ROUTES_LND,payload:fe})),(0,D.W)(fe=>(this.store.dispatch((0,M.Hm)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",f.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+f.rl.NETWORK_API,fe),(0,p.of)({type:f.aU.VOID}))))}))),this.setQueryRoutes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_QUERY_ROUTES_LND),(0,o.T)(R=>R.payload)),{dispatch:!1}),this.genSeed=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GEN_SEED_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+f.rl.WALLET_API+"/genseed/"+R.payload).pipe((0,o.T)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.GEN_SEED})),{type:f.QP.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,D.W)(U=>(this.handleErrorWithAlert("GenSeed",f.MZ.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+f.rl.WALLET_API+"/genseed/"+R.payload,U),(0,p.of)({type:f.aU.VOID})))))))),this.updateSelNodeOptions=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.UPDATE_SELECTED_NODE_OPTIONS),(0,e.Z)(()=>this.httpClient.get(this.CHILD_API_URL+f.rl.WALLET_API+"/updateSelNodeOptions").pipe((0,o.T)(R=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(R),{type:f.aU.VOID})),(0,D.W)(R=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",f.MZ.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",R),(0,p.of)({type:f.aU.VOID}))))))),this.genSeedResponse=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GEN_SEED_RESPONSE_LND),(0,o.T)(R=>R.payload)),{dispatch:!1}),this.initWalletRes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.INIT_WALLET_RESPONSE_LND),(0,o.T)(R=>R.payload)),{dispatch:!1}),this.initWallet=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.INIT_WALLET_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+f.rl.WALLET_API+"/wallet/initwallet",{wallet_password:R.payload.pwd,cipher_seed_mnemonic:R.payload.cipher?R.payload.cipher:"",aezeed_passphrase:R.payload.passphrase?R.payload.passphrase:""}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.INITIALIZE_WALLET})),{type:f.QP.INIT_WALLET_RESPONSE_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithAlert("InitWallet",f.MZ.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+f.rl.WALLET_API+"/initwallet",U),(0,p.of)({type:f.aU.VOID})))))))),this.unlockWallet=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.UNLOCK_WALLET_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+f.rl.WALLET_API+"/wallet/unlockwallet",{wallet_password:R.payload.pwd}).pipe((0,o.T)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,F.y0)({payload:f.MZ.UNLOCK_WALLET})),this.store.dispatch((0,F.mt)({payload:f.MZ.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,F.y0)({payload:f.MZ.WAIT_SYNC_NODE})),this.store.dispatch((0,M.Br)({payload:{loadPage:"HOME"}}))},5e3),{type:f.aU.VOID})),(0,D.W)(U=>(this.handleErrorWithAlert("UnlockWallet",f.MZ.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+f.rl.WALLET_API+"/unlockwallet",U),(0,p.of)({type:f.aU.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.PEER_LOOKUP_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.SEARCHING_NODE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/node/"+R.payload).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.SEARCHING_NODE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),{type:f.QP.SET_LOOKUP_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithAlert("Lookup",f.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+f.rl.NETWORK_API+"/node/"+R.payload,U),(0,p.of)({type:f.aU.VOID})))))))),this.channelLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.CHANNEL_LOOKUP_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/edge/"+R.payload.channelID).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),{type:f.QP.SET_LOOKUP_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithAlert("Lookup",R.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+f.rl.NETWORK_API+"/edge/"+R.payload.channelID,U),(0,p.of)({type:f.aU.VOID})))))))),this.invoiceLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.INVOICE_LOOKUP_LND),(0,e.Z)(R=>{this.store.dispatch((0,F.mt)({payload:f.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}}));let U=this.CHILD_API_URL+f.rl.INVOICES_API+"/lookup";return U=R.payload.paymentAddress&&""!==R.payload.paymentAddress?U+"?payment_addr="+R.payload.paymentAddress:U+"?payment_hash="+R.payload.paymentHash,this.httpClient.get(U).pipe((0,o.T)(fe=>(this.logger.info(fe),this.store.dispatch((0,F.y0)({payload:f.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),this.store.dispatch((0,M.Dq)({payload:fe})),{type:f.QP.SET_LOOKUP_LND,payload:fe})),(0,D.W)(fe=>(this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.ERROR}})),this.handleErrorWithoutAlert("Lookup",f.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",fe),R.payload.openSnackBar&&this.store.dispatch((0,F.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,p.of)({type:f.QP.SET_LOOKUP_LND,payload:{error:fe}}))))}))),this.paymentLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.PAYMENT_LOOKUP_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.SEARCHING_PAYMENT})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PAYMENTS_API+"/lookup/"+R.payload).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.SEARCHING_PAYMENT})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),this.store.dispatch((0,M._$)({payload:U})),{type:f.QP.SET_LOOKUP_LND,payload:U})),(0,D.W)(U=>(this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.ERROR}})),this.handleErrorWithoutAlert("Lookup",f.MZ.SEARCHING_PAYMENT,"Payment Lookup Failed",U),(0,p.of)({type:f.QP.SET_LOOKUP_LND,payload:{error:U}})))))))),this.setLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_LOOKUP_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.RESTORE_CHANNELS_LIST_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannelsList",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/restore/list").pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannelsList",status:f.wn.COMPLETED}})),{type:f.QP.SET_RESTORE_CHANNELS_LIST_LND,payload:R||{all_restore_exists:!1,files:[]}})),(0,D.W)(R=>(this.handleErrorWithAlert("RestoreChannelsList",f.MZ.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API,R),(0,p.of)({type:f.aU.VOID})))))))),this.setRestoreChannelList=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_RESTORE_CHANNELS_LIST_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchLightningTransactions",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PAYMENTS_API+"/alltransactions").pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchLightningTransactions",status:f.wn.COMPLETED}})),{type:f.QP.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:R})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchLightningTransactions",f.MZ.NO_SPINNER,"Fetching All Lightning Transaction Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.pageSettingsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PAGE_SETTINGS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPageSettings",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.PAGE_SETTINGS_API).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchPageSettings",status:f.wn.COMPLETED}})),this.invoicesPageSettings=R&&Object.keys(R).length>0?R.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId):f.ZC.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId),this.paymentsPageSettings=R&&Object.keys(R).length>0?R.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId):f.ZC.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId),{type:f.QP.SET_PAGE_SETTINGS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchPageSettings",f.MZ.NO_SPINNER,"Fetching Page Settings Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.savePageSettings=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_PAGE_SETTINGS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,M.e8)({payload:{action:"SavePageSettings",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.PAGE_SETTINGS_API,R.payload).pipe((0,o.T)(U=>{this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SavePageSettings",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,F.UI)({payload:"Page Layout Updated Successfully!"}));const fe=(U.find(he=>"transactions"===he.pageId)?.tables.find(he=>"invoices"===he.tableId)||f.ZC.find(he=>"transactions"===he.pageId)?.tables.find(he=>"invoices"===he.tableId)).recordsPerPage,re=(U.find(he=>"transactions"===he.pageId)?.tables.find(he=>"payments"===he.tableId)||f.ZC.find(he=>"transactions"===he.pageId)?.tables.find(he=>"payments"===he.tableId)).recordsPerPage;return this.invoicesPageSettings&&fe!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=fe,this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))),this.paymentsPageSettings&&re!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=re),{type:f.QP.SET_PAGE_SETTINGS_LND,payload:U||[]}}),(0,D.W)(U=>(this.handleErrorWithAlert("SavePageSettings",f.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",f.rl.PAGE_SETTINGS_API,U),(0,p.of)({type:f.aU.VOID})))))))),this.store.select(K.ru).pipe((0,A.Q)(this.unSubs[0])).subscribe(R=>{R.FetchInfo.status!==f.wn.COMPLETED&&R.FetchInfo.status!==f.wn.ERROR||R.FetchFees.status!==f.wn.COMPLETED&&R.FetchFees.status!==f.wn.ERROR||R.FetchBalanceBlockchain.status!==f.wn.COMPLETED&&R.FetchBalanceBlockchain.status!==f.wn.ERROR||R.FetchAllChannels.status!==f.wn.COMPLETED&&R.FetchAllChannels.status!==f.wn.ERROR||R.FetchPendingChannels.status!==f.wn.COMPLETED&&R.FetchPendingChannels.status!==f.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,F.y0)({payload:f.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,A.Q)(this.unSubs[1])).subscribe(R=>{this.logger.info("Received new message from the service: "+JSON.stringify(R)),R&&(R.type===f.o1.INVOICE?(this.logger.info(R),R&&R.result&&R.result.payment_request&&this.store.dispatch((0,M.Dq)({payload:R.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(R)))})}initializeRemainingData(s,m){this.sessionService.setItem("lndUnlocked","true");const u={identity_pubkey:s.identity_pubkey,alias:s.alias,testnet:s.testnet,chains:s.chains,uris:s.uris,version:s.version?s.version.split(" ")[0]:""};this.store.dispatch((0,F.mt)({payload:f.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,F.Fl)({payload:u}));let _=this.location.path();_.includes("/cln/")?_=_?.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_?.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===m||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,M.DY)()),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.ar)()),this.store.dispatch((0,M.pL)()),this.store.dispatch((0,M.Gy)()),this.store.dispatch((0,M.tf)()),this.store.dispatch((0,M.yp)()),this.store.dispatch((0,M.CK)({payload:{max_payments:1e5,reversed:!0}})),this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))}handleErrorWithoutAlert(s,m,u,_){this.logger.error("ERROR IN: "+s+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.ri)({payload:"Authentication Failed: "+JSON.stringify(_.error)}))):(this.store.dispatch((0,F.y0)({payload:m})),this.store.dispatch((0,M.e8)({payload:{action:s,status:f.wn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(s,m,u,_,T){if(this.logger.error(T),401===T.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.ri)({payload:"Authentication Failed: "+JSON.stringify(T.error)}));else{this.store.dispatch((0,F.y0)({payload:m}));const P=this.commonService.extractErrorMessage(T);this.store.dispatch((0,F.xO)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:T.status,message:P,URL:_},component:w.f}}})),this.store.dispatch((0,M.e8)({payload:{action:s,status:f.wn.ERROR,statusCode:T.status.toString(),message:P,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(s=>{s.next(null),s.complete()})}static#e=Ee=()=>(this.\u0275fac=function(m){return new(m||L)(j.KVO(i.En),j.KVO(Z.Qq),j.KVO(ee.il),j.KVO(V.gP),j.KVO(Q.h),j.KVO($.Q),j.KVO(ie.bZ),j.KVO(_e.Ix),j.KVO(ye.I),j.KVO(se.aZ))},this.\u0275prov=j.jDH({token:L,factory:L.\u0275fac}))}return Ee(),L})()},63536(ke,q,l){"use strict";l.d(q,{$7:()=>ee,$G:()=>p,BM:()=>M,Bw:()=>Z,Ie:()=>A,KT:()=>h,Uv:()=>j,ah:()=>Q,eO:()=>_e,gN:()=>f,gj:()=>ye,n_:()=>ie,oR:()=>d,os:()=>w,pI:()=>D,rN:()=>F,ru:()=>e,tA:()=>$});var i=l(59640);const g=(0,i.UX)("lnd"),p=(0,i.Mz)(g,se=>({pageSettings:se.pageSettings,apiCallStatus:se.apisCallStatus.FetchPageSettings})),D=(0,i.Mz)(g,se=>se.information),e=((0,i.Mz)(g,se=>({information:se.information,apiCallStatus:se.apisCallStatus.FetchInfo})),(0,i.Mz)(g,se=>se.apisCallStatus)),A=(0,i.Mz)(g,se=>({forwardingHistory:se.forwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistory})),h=(0,i.Mz)(g,se=>({listPayments:se.listPayments,apiCallStatus:se.apisCallStatus.FetchPayments})),d=(0,i.Mz)(g,se=>({fees:se.fees,apiCallStatus:se.apisCallStatus.FetchFees})),w=(0,i.Mz)(g,se=>({peers:se.peers,apiCallStatus:se.apisCallStatus.FetchPeers})),f=(0,i.Mz)(g,se=>({transactions:se.transactions,apiCallStatus:se.apisCallStatus.FetchTransactions})),F=(0,i.Mz)(g,se=>({listInvoices:se.listInvoices,apiCallStatus:se.apisCallStatus.FetchInvoices})),M=(0,i.Mz)(g,se=>({channels:se.channels,channelsSummary:se.channelsSummary,lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),j=((0,i.Mz)(g,se=>({channelsSummary:se.channelsSummary,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,i.Mz)(g,se=>({pendingChannels:se.pendingChannels,pendingChannelsSummary:se.pendingChannelsSummary,apiCallStatus:se.apisCallStatus.FetchPendingChannels}))),Z=(0,i.Mz)(g,se=>({closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchClosedChannels})),ee=(0,i.Mz)(g,se=>({blockchainBalance:se.blockchainBalance,apiCallStatus:se.apisCallStatus.FetchBalanceBlockchain})),Q=((0,i.Mz)(g,se=>({lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,i.Mz)(g,se=>({utxos:se.utxos,apiCallStatus:se.apisCallStatus.FetchUTXOs}))),$=(0,i.Mz)(g,se=>({networkInfo:se.networkInfo,apiCallStatus:se.apisCallStatus.FetchNetwork})),ie=(0,i.Mz)(g,se=>({allLightningTransactions:se.allLightningTransactions,apiCallStatus:se.apisCallStatus.FetchLightningTransactions})),_e=(0,i.Mz)(g,se=>({channels:se.channels,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels})),ye=(0,i.Mz)(g,se=>({information:se.information,apiCallStatus:se.apisCallStatus.FetchInfo}))},46391(ke,q,l){"use strict";l.d(q,{H:()=>qt});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(63536),A=l(2615),h=l(73664),d=l(98570),w=l(82571),f=l(95416),F=l(59640),M=l(72200),K=l(20060),j=l(88834),Z=l(25596),ee=l(9454),V=l(12629),Q=l(71997),$=l(9183),ie=l(52920),_e=l(16038),ye=l(40455),se=l(38288),pe=l(29157),Ee=l(89587);const L=["scrollContainer"],t=S=>({"display-none":S}),s=S=>({"xs-scroll-y":S}),m=S=>({"h-50":S}),u=()=>[],_=S=>({"mr-0":S});function T(S,Xt){if(1&S&&h.nrm(0,"qr-code",33),2&S){const de=h.XpG();h.Y8G("value",null==de.invoice?null:de.invoice.payment_request)("size",de.qrWidth)}}function P(S,Xt){1&S&&(h.j41(0,"span",34),h.EFF(1,"N/A"),h.k0s())}function C(S,Xt){if(1&S&&h.nrm(0,"qr-code",33),2&S){const de=h.XpG();h.Y8G("value",null==de.invoice?null:de.invoice.payment_request)("size",de.qrWidth)}}function a(S,Xt){1&S&&(h.j41(0,"span",35),h.EFF(1,"QR Code Not Applicable"),h.k0s())}function x(S,Xt){1&S&&h.nrm(0,"mat-divider",24),2&S&&h.Y8G("inset",!0)}function Y(S,Xt){1&S&&(h.qex(0),h.EFF(1," (zero amount) "),h.bVm())}function R(S,Xt){1&S&&h.nrm(0,"span",41)}function U(S,Xt){if(1&S&&(h.j41(0,"div",37)(1,"div",38)(2,"span",39),h.EFF(3),h.nI1(4,"number"),h.k0s(),h.DNE(5,R,1,0,"span",40),h.k0s()()),2&S){const de=h.XpG(2);h.R7$(3),h.SpI("",h.bMT(4,2,null==de.invoice?null:de.invoice.amt_paid_sat)," Sats"),h.R7$(2),h.Y8G("ngForOf",h.lJ4(4,u).constructor(35))}}function fe(S,Xt){if(1&S&&(h.j41(0,"div"),h.EFF(1),h.nI1(2,"number"),h.k0s()),2&S){const de=h.XpG(2);h.R7$(),h.SpI("",h.bMT(2,1,null==de.invoice?null:de.invoice.amt_paid_sat)," Sats")}}function re(S,Xt){if(1&S&&(h.qex(0),h.DNE(1,U,6,5,"div",36)(2,fe,3,3,"div",23),h.bVm()),2&S){const de=h.XpG();h.R7$(),h.Y8G("ngIf",de.flgInvoicePaid),h.R7$(),h.Y8G("ngIf",!de.flgInvoicePaid)}}function he(S,Xt){1&S&&(h.j41(0,"span"),h.EFF(1,"-"),h.k0s())}function Oe(S,Xt){1&S&&h.nrm(0,"mat-spinner",43),2&S&&h.Y8G("diameter",20)}function ge(S,Xt){if(1&S&&(h.qex(0),h.DNE(1,he,2,0,"span",23)(2,Oe,1,1,"mat-spinner",42),h.bVm()),2&S){const de=h.XpG();h.R7$(),h.Y8G("ngIf","OPEN"!==(null==de.invoice?null:de.invoice.state)||!de.flgVersionCompatible),h.R7$(),h.Y8G("ngIf","OPEN"===(null==de.invoice?null:de.invoice.state)&&de.flgVersionCompatible)}}function ce(S,Xt){1&S&&h.eu8(0)}function Re(S,Xt){if(1&S&&(h.j41(0,"div"),h.DNE(1,ce,1,0,"ng-container",44),h.k0s()),2&S){h.XpG();const de=h.sdS(79);h.R7$(),h.Y8G("ngTemplateOutlet",de)}}function Me(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"div",45)(1,"button",46),h.bIt("click",function(){A.eBV(de);const me=h.XpG();return A.Njj(me.onScrollDown())}),h.j41(2,"mat-icon",47),h.EFF(3,"arrow_downward"),h.k0s()()()}}function ve(S,Xt){1&S&&(h.j41(0,"p"),h.EFF(1,"Show Advanced"),h.k0s())}function oe(S,Xt){1&S&&(h.j41(0,"p"),h.EFF(1,"Hide Advanced"),h.k0s())}function Se(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"button",48),h.bIt("copied",function(me){A.eBV(de);const Le=h.XpG();return A.Njj(Le.onCopyPayment(me))}),h.EFF(1),h.k0s()}if(2&S){const de=h.XpG();h.Y8G("payload",null==de.invoice?null:de.invoice.payment_request),h.R7$(),h.JRh(de.screenSize===de.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function be(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"button",49),h.bIt("click",function(){A.eBV(de);const me=h.XpG();return A.Njj(me.onClose())}),h.EFF(1,"OK"),h.k0s()}}function nt(S,Xt){if(1&S&&h.nrm(0,"span",64),2&S){const de=h.XpG(4);h.Y8G("ngClass",h.eq3(1,_,de.screenSize===de.screenSizeEnum.XS))}}function $e(S,Xt){if(1&S&&h.nrm(0,"span",65),2&S){const de=h.XpG(4);h.Y8G("ngClass",h.eq3(1,_,de.screenSize===de.screenSizeEnum.XS))}}function dt(S,Xt){if(1&S&&h.nrm(0,"span",66),2&S){const de=h.XpG(4);h.Y8G("ngClass",h.eq3(1,_,de.screenSize===de.screenSizeEnum.XS))}}function yt(S,Xt){if(1&S&&(h.j41(0,"div",53)(1,"div",58)(2,"span",59),h.DNE(3,nt,1,3,"span",60)(4,$e,1,3,"span",61)(5,dt,1,3,"span",62),h.EFF(6),h.k0s(),h.j41(7,"span",63),h.EFF(8),h.nI1(9,"number"),h.k0s()(),h.nrm(10,"mat-divider",24),h.k0s()),2&S){const de=Xt.$implicit,ae=h.XpG(3);h.R7$(3),h.Y8G("ngIf","SETTLED"===de.state),h.R7$(),h.Y8G("ngIf","ACCEPTED"===de.state),h.R7$(),h.Y8G("ngIf","CANCELED"===de.state),h.R7$(),h.SpI(" ",de.chan_id," "),h.R7$(2),h.JRh(h.i5U(9,6,+de.amt_msat/1e3||0,ae.getDecimalFormat(de))),h.R7$(2),h.Y8G("inset",!0)}}function Et(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"div",19)(1,"mat-expansion-panel",51),h.bIt("opened",function(){A.eBV(de);const me=h.XpG(2);return A.Njj(me.flgOpened=!0)})("closed",function(){A.eBV(de);const me=h.XpG(2);return A.Njj(me.onExpansionClosed())}),h.j41(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),h.EFF(5,"HTLCs"),h.k0s()()(),h.j41(6,"div",53)(7,"div",54)(8,"span",55),h.EFF(9,"Channel ID"),h.k0s(),h.j41(10,"span",56),h.EFF(11,"Amount (Sats)"),h.k0s()(),h.nrm(12,"mat-divider",24),h.DNE(13,yt,11,9,"div",57),h.k0s()()()}if(2&S){const de=h.XpG(2);h.R7$(12),h.Y8G("inset",!0),h.R7$(),h.Y8G("ngForOf",null==de.invoice?null:de.invoice.htlcs)}}function rt(S,Xt){1&S&&h.nrm(0,"mat-divider",24),2&S&&h.Y8G("inset",!0)}function Mn(S,Xt){if(1&S&&(h.nrm(0,"mat-divider",24),h.j41(1,"div",19)(2,"div",25)(3,"h4",21),h.EFF(4,"Preimage"),h.k0s(),h.j41(5,"span",26),h.EFF(6),h.k0s()()(),h.nrm(7,"mat-divider",24),h.j41(8,"div",19)(9,"div",20)(10,"h4",21),h.EFF(11,"State"),h.k0s(),h.j41(12,"span",26),h.EFF(13),h.k0s()(),h.j41(14,"div",20)(15,"h4",21),h.EFF(16,"Expiry"),h.k0s(),h.j41(17,"span",26),h.EFF(18),h.nI1(19,"date"),h.k0s()()(),h.nrm(20,"mat-divider",24),h.j41(21,"div",19)(22,"div",20)(23,"h4",21),h.EFF(24,"Private Routing Hints"),h.k0s(),h.j41(25,"span",26),h.EFF(26),h.k0s()(),h.j41(27,"div",20)(28,"h4",21),h.EFF(29,"AMP Invoice"),h.k0s(),h.j41(30,"span",26),h.EFF(31),h.k0s()()(),h.nrm(32,"mat-divider",24),h.DNE(33,Et,14,2,"div",50)(34,rt,1,1,"mat-divider",17)),2&S){const de=h.XpG();h.Y8G("inset",!0),h.R7$(6),h.JRh((null==de.invoice?null:de.invoice.r_preimage)||"-"),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh(null==de.invoice?null:de.invoice.state),h.R7$(5),h.JRh(h.i5U(19,11,1e3*(+(null==de.invoice?null:de.invoice.creation_date)+ +(null==de.invoice?null:de.invoice.expiry)),"dd/MMM/y HH:mm")),h.R7$(2),h.Y8G("inset",!0),h.R7$(6),h.JRh(null!=de.invoice&&de.invoice.private?"Yes":"No"),h.R7$(5),h.JRh(null!=de.invoice&&de.invoice.is_amp?"Yes":"No"),h.R7$(),h.Y8G("inset",!0),h.R7$(),h.Y8G("ngIf",(null==de.invoice?null:de.invoice.htlcs)&&(null==de.invoice?null:de.invoice.htlcs.length)>0),h.R7$(),h.Y8G("ngIf",(null==de.invoice?null:de.invoice.htlcs)&&(null==de.invoice?null:de.invoice.htlcs.length)>0)}}let qt=(()=>{var S;class Xt{set container(ae){ae&&(this.scrollContainer=ae)}constructor(ae,me,Le,et,tn,Vt){this.dialogRef=ae,this.data=me,this.logger=Le,this.commonService=et,this.snackBar=tn,this.store=Vt,this.faReceipt=g.Mf0,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.store.select(e.pI).pipe((0,D.Q)(this.unSubs[0])).subscribe(me=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(me.version,"0.11.0")});const ae=JSON.parse(JSON.stringify(this.invoice));this.store.select(e.rN).pipe((0,D.Q)(this.unSubs[1])).subscribe(me=>{const Le=this.invoice?.state,tn=(me.listInvoices.invoices||[]).find(Vt=>Vt.r_hash===ae.r_hash)||null;tn&&(this.invoice=tn),Le!==this.invoice?.state&&"SETTLED"===this.invoice?.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(me)})}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(ae){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+ae)}getDecimalFormat(ae){return ae.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(ae=>{ae.next(null),ae.complete()})}static#e=S=()=>(this.\u0275fac=function(me){return new(me||Xt)(h.rXU(i.CP),h.rXU(i.Vh),h.rXU(d.gP),h.rXU(w.h),h.rXU(f.UG),h.rXU(F.il))},this.\u0275cmp=h.VBU({type:Xt,selectors:[["rtl-invoice-information"]],viewQuery:function(me,Le){if(1&me&&h.GBs(L,5),2&me){let et;h.mGM(et=h.lsd())&&(Le.container=et.first)}},standalone:!1,decls:80,vars:49,consts:[["scrollContainer",""],["hideAdvancedText",""],["advancedBlock",""],["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"],["errorCorrectionLevel","L",3,"value","size",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 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"],["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"],["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"],["errorCorrectionLevel","L",3,"value","size"],[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,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["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(me,Le){if(1&me){const et=h.RV6();h.j41(0,"div",3)(1,"div",4),h.DNE(2,T,1,2,"qr-code",5)(3,P,2,0,"span",6),h.k0s(),h.j41(4,"div",7)(5,"mat-card-header",8)(6,"div",9),h.nrm(7,"fa-icon",10),h.j41(8,"span",11),h.EFF(9),h.k0s()(),h.j41(10,"button",12),h.bIt("click",function(){return A.eBV(et),A.Njj(Le.onClose())}),h.EFF(11,"X"),h.k0s()(),h.j41(12,"mat-card-content",13)(13,"div",14)(14,"div",15),h.DNE(15,C,1,2,"qr-code",5)(16,a,2,0,"span",16),h.k0s(),h.DNE(17,x,1,1,"mat-divider",17),h.j41(18,"div",18,0)(20,"div",19)(21,"div",20)(22,"h4",21),h.EFF(23),h.k0s(),h.j41(24,"span",22),h.EFF(25),h.nI1(26,"number"),h.DNE(27,Y,2,0,"ng-container",23),h.k0s()(),h.j41(28,"div",20)(29,"h4",21),h.EFF(30,"Amount Settled"),h.k0s(),h.j41(31,"span",22),h.DNE(32,re,3,2,"ng-container",23)(33,ge,3,2,"ng-container",23),h.k0s()()(),h.nrm(34,"mat-divider",24),h.j41(35,"div",19)(36,"div",20)(37,"h4",21),h.EFF(38,"Date Created"),h.k0s(),h.j41(39,"span",22),h.EFF(40),h.nI1(41,"date"),h.k0s()(),h.j41(42,"div",20)(43,"h4",21),h.EFF(44,"Date Settled"),h.k0s(),h.j41(45,"span",22),h.EFF(46),h.nI1(47,"date"),h.k0s()()(),h.nrm(48,"mat-divider",24),h.j41(49,"div",19)(50,"div",25)(51,"h4",21),h.EFF(52,"Memo"),h.k0s(),h.j41(53,"span",22),h.EFF(54),h.k0s()()(),h.nrm(55,"mat-divider",24),h.j41(56,"div",19)(57,"div",25)(58,"h4",21),h.EFF(59,"Payment Request"),h.k0s(),h.j41(60,"span",26),h.EFF(61),h.k0s()()(),h.nrm(62,"mat-divider",24),h.j41(63,"div",19)(64,"div",25)(65,"h4",21),h.EFF(66,"Payment Hash"),h.k0s(),h.j41(67,"span",26),h.EFF(68),h.k0s()()(),h.DNE(69,Re,2,1,"div",23),h.k0s()()(),h.DNE(70,Me,4,0,"div",27),h.j41(71,"div",28)(72,"button",29),h.bIt("click",function(){return A.eBV(et),A.Njj(Le.onShowAdvanced())}),h.DNE(73,ve,2,0,"p",30)(74,oe,2,0,"ng-template",null,1,h.C5r),h.k0s(),h.DNE(76,Se,2,2,"button",31)(77,be,2,0,"button",32),h.k0s()()(),h.DNE(78,Mn,35,14,"ng-template",null,2,h.C5r)}if(2&me){const et=h.sdS(75);h.R7$(),h.Y8G("fxLayoutAlign",null!=Le.invoice&&Le.invoice.payment_request&&""!==(null==Le.invoice?null:Le.invoice.payment_request)?"center start":"center center")("ngClass",h.eq3(41,t,Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(4),h.Y8G("icon",Le.faReceipt),h.R7$(2),h.JRh(Le.screenSize===Le.screenSizeEnum.XS?Le.newlyAdded?"Created":"Invoice":Le.newlyAdded?"Invoice Created":"Invoice Information"),h.R7$(3),h.Y8G("ngClass",h.eq3(43,s,Le.screenSize===Le.screenSizeEnum.XS)),h.R7$(2),h.Y8G("fxLayoutAlign",null!=Le.invoice&&Le.invoice.payment_request&&""!==(null==Le.invoice?null:Le.invoice.payment_request)?"center start":"center center")("ngClass",h.eq3(45,t,Le.screenSize!==Le.screenSizeEnum.XS&&Le.screenSize!==Le.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM),h.R7$(),h.Y8G("ngClass",h.eq3(47,m,(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0&&Le.showAdvanced)),h.R7$(5),h.JRh(Le.screenSize===Le.screenSizeEnum.XS?"Amount":"Amount Requested"),h.R7$(2),h.SpI("",h.bMT(26,33,(null==Le.invoice?null:Le.invoice.value)||0)," Sats"),h.R7$(2),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.value)||"0"===(null==Le.invoice?null:Le.invoice.value)),h.R7$(5),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.amt_paid_sat)&&"OPEN"!==(null==Le.invoice?null:Le.invoice.state)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.amt_paid_sat)||"0"===(null==Le.invoice?null:Le.invoice.amt_paid_sat)),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh(h.i5U(41,35,1e3*(null==Le.invoice?null:Le.invoice.creation_date),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(0!=+(null==Le.invoice?null:Le.invoice.settle_date)?h.i5U(47,38,1e3*+(null==Le.invoice?null:Le.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),h.R7$(2),h.Y8G("inset",!0),h.R7$(6),h.JRh(null==Le.invoice?null:Le.invoice.memo),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh((null==Le.invoice?null:Le.invoice.payment_request)||"N/A"),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh((null==Le.invoice?null:Le.invoice.r_hash)||""),h.R7$(),h.Y8G("ngIf",Le.showAdvanced),h.R7$(),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0&&Le.showAdvanced&&Le.flgOpened),h.R7$(3),h.Y8G("ngIf",!Le.showAdvanced)("ngIfElse",et),h.R7$(3),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request))}},dependencies:[M.YU,M.Sq,M.bT,M.T3,K.aY,j.$z,j.$0,Z.m2,Z.MM,ee.GK,ee.Z2,ee.WN,V.An,Q.q,$.LG,ie.DJ,ie.sA,ie.UI,_e.PW,ye.oV,se.Um,pe.U,Ee.N,M.QX,M.vh],encapsulation:2}))}return S(),Xt})()},1001(ke,q,l){"use strict";l.d(q,{C:()=>g,q:()=>p});var i=l(11514);const g=[(0,i.hZ)("opacityAnimation",[(0,i.kY)(":enter",[(0,i.iF)({opacity:0}),(0,i.i0)("1000ms ease-in",(0,i.iF)({opacity:1}))]),(0,i.kY)(":leave",[(0,i.i0)("0ms",(0,i.iF)({opacity:0}))])])],p=[(0,i.hZ)("fadeIn",[(0,i.kY)("void => *",[]),(0,i.kY)("* => void",[]),(0,i.kY)("* => *",[(0,i.i0)(800,(0,i.i7)([(0,i.iF)({opacity:0,transform:"translateY(100%)"}),(0,i.iF)({opacity:1,transform:"translateY(0%)"})]))])])]},9881(ke,q,l){"use strict";l.d(q,{E:()=>g});var i=l(11514);const g=(0,i.hZ)("routeAnimation",[(0,i.kY)("* => *",[(0,i.P)(":enter, :leave",(0,i.iF)({position:"fixed",width:"100%"}),{optional:!0}),(0,i.Os)([(0,i.P)(":enter",[(0,i.iF)({transform:"translateX(100%)"}),(0,i.i0)("1000ms ease-in-out",(0,i.iF)({transform:"translateX(0%)"}))],{optional:!0}),(0,i.P)(":leave",[(0,i.iF)({transform:"translateX(0%)"}),(0,i.i0)("1000ms ease-in-out",(0,i.iF)({transform:"translateX(-100%)"}))],{optional:!0})])])])},16949(ke,q,l){"use strict";l.d(q,{k:()=>g});var i=l(11514);const g=[(0,i.hZ)("sliderAnimation",[(0,i.wk)("*",(0,i.iF)({transform:"translateX(0)"})),(0,i.kY)("void => backward",[(0,i.iF)({transform:"translateX(-100%"}),(0,i.i0)("800ms")]),(0,i.kY)("backward => void",[(0,i.i0)("0ms",(0,i.iF)({transform:"translateX(100%)"}))]),(0,i.kY)("void => forward",[(0,i.iF)({transform:"translateX(100%"}),(0,i.i0)("800ms")]),(0,i.kY)("forward => void",[(0,i.i0)("0ms",(0,i.iF)({transform:"translateX(-100%)"}))])])]},12462(ke,q,l){"use strict";l.d(q,{f:()=>f});var i=l(51585),g=l(73664),p=l(98570),D=l(72200),o=l(88834),e=l(25596),A=l(71997),h=l(52920),d=l(89587);function w(F,M){if(1&F&&(g.j41(0,"p",14),g.EFF(1),g.k0s()),2&F){const K=g.XpG();g.R7$(),g.JRh(K.data.titleMessage)}}let f=(()=>{var F;class M{constructor(j,Z,ee){this.dialogRef=j,this.data=Z,this.logger=ee,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)}static#e=F=()=>(this.\u0275fac=function(Z){return new(Z||M)(g.rXU(i.CP),g.rXU(i.Vh),g.rXU(p.gP))},this.\u0275cmp=g.VBU({type:M,selectors:[["rtl-error-message"]],standalone:!1,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 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(Z,ee){1&Z&&(g.j41(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),g.EFF(5),g.k0s()(),g.j41(6,"button",5),g.bIt("click",function(){return ee.onClose()}),g.EFF(7,"X"),g.k0s()(),g.j41(8,"mat-card-content",6)(9,"div",7),g.DNE(10,w,2,1,"p",8),g.j41(11,"h4",9),g.EFF(12,"Error Code"),g.k0s(),g.j41(13,"span"),g.EFF(14),g.k0s(),g.nrm(15,"mat-divider",10),g.j41(16,"h4",9),g.EFF(17,"Error Message"),g.k0s(),g.j41(18,"span",11),g.EFF(19),g.k0s(),g.nrm(20,"mat-divider",10),g.j41(21,"h4",9),g.EFF(22,"API URL"),g.k0s(),g.j41(23,"span",11),g.EFF(24),g.k0s(),g.nrm(25,"mat-divider",10),g.j41(26,"div",12)(27,"button",13),g.EFF(28,"OK"),g.k0s()()()()()()),2&Z&&(g.R7$(5),g.JRh(ee.data.alertTitle||"ERROR"),g.R7$(5),g.Y8G("ngIf",ee.data.titleMessage),g.R7$(4),g.JRh(ee.data.message.code),g.R7$(5),g.JRh(ee.errorMessage),g.R7$(5),g.JRh(ee.data.message.URL),g.R7$(3),g.Y8G("mat-dialog-close",!1))},dependencies:[D.bT,i.tx,o.$z,e.m2,e.MM,A.q,h.DJ,h.sA,h.UI,d.N],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}))}return F(),M})()},1092(ke,q,l){"use strict";l.d(q,{D:()=>kt});var i=l(89417),g=l(21413),p=l(56977),D=l(51585),o=l(45383),e=l(1001),A=l(4416),h=l(63536),d=l(73664),w=l(2615),f=l(59640),F=l(4104),M=l(72200),K=l(98570),j=l(43694),Z=l(82571),ee=l(88834),V=l(25596),Q=l(9454),$=l(12629),ie=l(33746),_e=l(69588),ye=l(67575),se=l(5951),pe=l(52920),Ee=l(16038),L=l(30450),t=l(40455),s=l(36013),m=l(89587),u=l(71997);const _=Ot=>({"h-5":Ot});function T(Ot,Ze){1&Ot&&d.eu8(0)}function P(Ot,Ze){1&Ot&&d.eu8(0)}function C(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),d.EFF(4),d.nI1(5,"number"),d.k0s()()(),d.DNE(6,P,1,0,"ng-container",2),d.k0s()),2&Ot){const Ge=d.XpG(),Pt=d.sdS(4);d.Y8G("expanded",Ge.panelExpanded)("ngClass",d.eq3(7,_,!Ge.flgShowPanel)),d.R7$(4),d.Lme("Quote for ",Ge.termCaption," amount (",d.bMT(5,5,Ge.quote.amount)," Sats)"),d.R7$(2),d.Y8G("ngTemplateOutlet",Pt)}}function a(Ot,Ze){if(1&Ot&&(d.j41(0,"div",19)(1,"h4",8),d.EFF(2," Prepay Amount (Sats) "),d.j41(3,"mat-icon",20),d.EFF(4,"info_outline"),d.k0s()(),d.j41(5,"span",10),d.EFF(6),d.nI1(7,"number"),d.k0s()()),2&Ot){const Ge=d.XpG(2);d.R7$(6),d.JRh(d.bMT(7,1,null==Ge.quote?null:Ge.quote.prepay_amt_sat))}}function x(Ot,Ze){1&Ot&&d.nrm(0,"mat-divider",13)}function Y(Ot,Ze){if(1&Ot&&(d.j41(0,"div",6)(1,"div",21)(2,"h4",8),d.EFF(3," Swap Server Node Pubkey "),d.j41(4,"mat-icon",22),d.EFF(5,"info_outline"),d.k0s()(),d.j41(6,"span",10),d.EFF(7),d.k0s()()()),2&Ot){const Ge=d.XpG(2);d.R7$(7),d.JRh(null==Ge.quote?null:Ge.quote.swap_payment_dest)}}function R(Ot,Ze){if(1&Ot&&(d.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),d.EFF(4," Swap Fee (Sats) "),d.j41(5,"mat-icon",9),d.EFF(6,"info_outline"),d.k0s()(),d.j41(7,"span",10),d.EFF(8),d.nI1(9,"number"),d.k0s()(),d.j41(10,"div",7)(11,"h4",8),d.EFF(12),d.j41(13,"mat-icon",11),d.EFF(14,"info_outline"),d.k0s()(),d.j41(15,"span",10),d.EFF(16),d.nI1(17,"number"),d.k0s()(),d.DNE(18,a,8,3,"div",12),d.k0s(),d.nrm(19,"mat-divider",13),d.j41(20,"div",6)(21,"div",14)(22,"h4",8),d.EFF(23," Max Off-chain Swap Routing Fee (Sats) "),d.j41(24,"mat-icon",15),d.EFF(25,"info_outline"),d.k0s()(),d.j41(26,"span",10),d.EFF(27),d.nI1(28,"number"),d.k0s()(),d.j41(29,"div",14)(30,"h4",8),d.EFF(31," Max Off-chain Prepay Routing Fee (Sats) "),d.j41(32,"mat-icon",16),d.EFF(33,"info_outline"),d.k0s()(),d.j41(34,"span",10),d.EFF(35,"36"),d.k0s()()(),d.DNE(36,x,1,0,"mat-divider",17)(37,Y,8,1,"div",18),d.k0s()),2&Ot){const Ge=d.XpG();d.R7$(2),d.Y8G("ngClass",null!=Ge.quote&&Ge.quote.prepay_amt_sat?"flex-30":"flex-50"),d.R7$(6),d.JRh(d.bMT(9,9,null==Ge.quote?null:Ge.quote.swap_fee_sat)),d.R7$(2),d.Y8G("ngClass",null!=Ge.quote&&Ge.quote.prepay_amt_sat?"flex-35":"flex-50"),d.R7$(2),d.SpI(" ",null!=Ge.quote&&Ge.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=Ge.quote&&Ge.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),d.R7$(4),d.JRh(d.bMT(17,11,null!=Ge.quote&&Ge.quote.htlc_sweep_fee_sat?Ge.quote.htlc_sweep_fee_sat:null!=Ge.quote&&Ge.quote.htlc_publish_fee_sat?Ge.quote.htlc_publish_fee_sat:0)),d.R7$(2),d.Y8G("ngIf",null==Ge.quote?null:Ge.quote.prepay_amt_sat),d.R7$(9),d.JRh(d.bMT(28,13,(null==Ge.quote?null:Ge.quote.amount)*((null!=Ge.quote&&Ge.quote.off_chain_swap_routing_fee_percentage?null==Ge.quote?null:Ge.quote.off_chain_swap_routing_fee_percentage:2)/100))),d.R7$(9),d.Y8G("ngIf",""!==(null==Ge.quote?null:Ge.quote.swap_payment_dest)),d.R7$(),d.Y8G("ngIf",""!==(null==Ge.quote?null:Ge.quote.swap_payment_dest))}}let U=(()=>{var Ot;class Ze{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},standalone:!1,decls:5,vars:1,consts:[["informationBlock",""],["quoteDetailsBlock",""],[4,"ngTemplateOutlet"],["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,"ngClass"],["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(Yt,bn){if(1&Yt&&d.DNE(0,T,1,0,"ng-container",2)(1,C,7,9,"ng-template",null,0,d.C5r)(3,R,38,15,"ng-template",null,1,d.C5r),2&Yt){const $n=d.sdS(2),oi=d.sdS(4);d.Y8G("ngTemplateOutlet",bn.showPanel?$n:oi)}},dependencies:[M.YU,M.bT,M.T3,Q.GK,Q.Z2,Q.WN,$.An,u.q,pe.DJ,pe.sA,pe.UI,Ee.PW,t.oV,M.QX],encapsulation:2}))}return Ot(),Ze})();function fe(Ot,Ze){1&Ot&&d.eu8(0)}function re(Ot,Ze){if(1&Ot&&(d.j41(0,"div",3)(1,"span",4),d.EFF(2),d.k0s()()),2&Ot){const Ge=d.XpG();d.R7$(2),d.JRh(null!=Ge.loopStatus&&Ge.loopStatus.error?null==Ge.loopStatus?null:Ge.loopStatus.error:"Unknown Error.")}}function he(Ot,Ze){if(1&Ot&&(d.j41(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),d.EFF(4,"ID"),d.k0s(),d.j41(5,"span",4),d.EFF(6),d.k0s()()(),d.nrm(7,"mat-divider",8),d.j41(8,"div",5)(9,"div",6)(10,"h4",7),d.EFF(11,"HTLC Address"),d.k0s(),d.j41(12,"span",4),d.EFF(13),d.k0s()()()()),2&Ot){const Ge=d.XpG();d.R7$(6),d.JRh(null==Ge.loopStatus?null:Ge.loopStatus.id_bytes),d.R7$(7),d.JRh(null==Ge.loopStatus?null:Ge.loopStatus.htlc_address)}}let Oe=(()=>{var Ot;class Ze{constructor(){}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},standalone:!1,decls:5,vars:1,consts:[["loopFailedBlock",""],["loopSuccessfulBlock",""],[4,"ngTemplateOutlet"],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(Yt,bn){if(1&Yt&&d.DNE(0,fe,1,0,"ng-container",2)(1,re,3,1,"ng-template",null,0,d.C5r)(3,he,14,2,"ng-template",null,1,d.C5r),2&Yt){const $n=d.sdS(2),oi=d.sdS(4);d.Y8G("ngTemplateOutlet",null!=bn.loopStatus&&bn.loopStatus.error?$n:oi)}},dependencies:[M.T3,u.q,pe.DJ,pe.sA,pe.UI],encapsulation:2}))}return Ot(),Ze})();var ge=l(16949);const ce=(Ot,Ze)=>({"small-svg":Ot,"large-svg":Ze});function Re(Ot,Ze){1&Ot&&d.eu8(0)}function Me(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",7)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d.nrm(8,"circle",12)(9,"path",13),d.k0s(),d.j41(10,"g",14),d.nrm(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),d.k0s()()()()(),w.joV(),d.j41(26,"div",30)(27,"mat-card-title"),d.EFF(28,"Loop In explained."),d.k0s()(),d.j41(29,"div",31)(30,"mat-card-subtitle",32),d.EFF(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function ve(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",33)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),d.nrm(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),d.k0s(),d.j41(28,"g",56)(29,"g",57)(30,"g",58),d.nrm(31,"path",59)(32,"rect",60)(33,"polygon",61),d.j41(34,"g",62),d.nrm(35,"path",63),d.k0s(),d.nrm(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),d.k0s(),d.j41(45,"g",73),d.nrm(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),d.k0s(),d.nrm(59,"path",87),d.k0s()()()()()(),w.joV(),d.j41(60,"div",30)(61,"mat-card-title"),d.EFF(62,"Step 1: Deciding to Loop In"),d.k0s()(),d.j41(63,"div",31)(64,"mat-card-subtitle",32),d.EFF(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function oe(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",88)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",89),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),d.nrm(14,"circle",95)(15,"path",96),d.j41(16,"g",97),d.nrm(17,"polygon",98)(18,"polygon",99)(19,"path",100),d.k0s(),d.j41(20,"g",101),d.nrm(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),d.j41(31,"g",112)(32,"g",113),d.nrm(33,"g",114),d.k0s(),d.nrm(34,"g",115),d.k0s()()(),d.j41(35,"g",116)(36,"g",40),d.nrm(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),d.k0s(),d.j41(53,"g",56)(54,"g",57)(55,"g",58),d.nrm(56,"path",59)(57,"rect",60)(58,"polygon",61),d.j41(59,"g",122),d.nrm(60,"path",63),d.k0s(),d.nrm(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),d.k0s(),d.j41(70,"g",73),d.nrm(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),d.k0s(),d.nrm(84,"path",139),d.k0s()()()(),d.nrm(85,"path",140)(86,"path",141),d.k0s()()()(),w.joV(),d.j41(87,"div",30)(88,"mat-card-title"),d.EFF(89,"Step 2: Send payment out"),d.k0s()(),d.j41(90,"div",31)(91,"mat-card-subtitle",32),d.EFF(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function Se(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",142)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),d.nrm(10,"circle",12)(11,"path",147),d.k0s(),d.j41(12,"g",14),d.nrm(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),d.k0s()(),d.j41(28,"g",149),d.nrm(29,"polygon",150)(30,"polygon",99)(31,"path",151),d.k0s(),d.j41(32,"g",152),d.nrm(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),d.j41(43,"g",112)(44,"g",113),d.nrm(45,"g",114),d.k0s(),d.nrm(46,"g",115),d.k0s()()(),d.nrm(47,"path",153),d.k0s()()()(),w.joV(),d.j41(48,"div",30)(49,"mat-card-title"),d.EFF(50,"Step 3: Recieve Funds Off-chain"),d.k0s()(),d.j41(51,"div",31)(52,"mat-card-subtitle",32),d.EFF(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function be(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",154)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),d.nrm(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),d.k0s(),d.j41(28,"g",172),d.nrm(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),d.k0s(),d.nrm(43,"path",187),d.k0s()(),d.nrm(44,"circle",188),d.k0s()()()(),w.joV(),d.j41(45,"div",30)(46,"mat-card-title"),d.EFF(47,"Done!"),d.k0s()(),d.j41(48,"div",31)(49,"mat-card-subtitle",32),d.EFF(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. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}let nt=(()=>{var Ot;class Ze{constructor(Pt){this.commonService=Pt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.bkB,this.screenSize="",this.screenSizeEnum=A.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Pt){2===Pt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Pt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)(d.rXU(Z.h))},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],[4,"ngTemplateOutlet"],["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(Yt,bn){if(1&Yt&&d.DNE(0,Re,1,0,"ng-container",5)(1,Me,32,5,"ng-template",null,0,d.C5r)(3,ve,66,5,"ng-template",null,1,d.C5r)(5,oe,93,5,"ng-template",null,2,d.C5r)(7,Se,54,5,"ng-template",null,3,d.C5r)(9,be,51,5,"ng-template",null,4,d.C5r),2&Yt){const $n=d.sdS(2),oi=d.sdS(4),Ii=d.sdS(6),Ei=d.sdS(8),Nt=d.sdS(10);d.Y8G("ngTemplateOutlet",1===bn.stepNumber?$n:2===bn.stepNumber?oi:3===bn.stepNumber?Ii:4===bn.stepNumber?Ei:Nt)}},dependencies:[M.YU,M.T3,V.Lc,V.dh,pe.DJ,pe.sA,pe.UI,Ee.PW],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:[ge.k]}}))}return Ot(),Ze})();const $e=(Ot,Ze)=>({"small-svg":Ot,"large-svg":Ze});function dt(Ot,Ze){1&Ot&&d.eu8(0)}function yt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",7)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d.nrm(8,"circle",12)(9,"path",13),d.k0s(),d.j41(10,"g",14),d.nrm(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),d.k0s()()()()(),w.joV(),d.j41(26,"div",30)(27,"mat-card-title"),d.EFF(28,"Loop Out explained."),d.k0s()(),d.j41(29,"div",31)(30,"mat-card-subtitle",32),d.EFF(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function Et(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",33)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),d.nrm(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),d.k0s(),d.j41(28,"g",56),d.nrm(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),d.k0s(),d.nrm(43,"path",71),d.k0s()(),d.nrm(44,"circle",72),d.k0s()()()(),w.joV(),d.j41(45,"div",30)(46,"mat-card-title"),d.EFF(47,"Step 1: Deciding to Loop Out"),d.k0s()(),d.j41(48,"div",31)(49,"mat-card-subtitle",32),d.EFF(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function rt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",73)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",74),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",75)(11,"g",76),d.nrm(12,"circle",77)(13,"path",78),d.j41(14,"g",79),d.nrm(15,"polygon",80)(16,"polygon",81)(17,"path",82),d.k0s(),d.j41(18,"g",83),d.nrm(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),d.j41(29,"g",94)(30,"g",95),d.nrm(31,"g",96),d.k0s(),d.nrm(32,"g",97),d.k0s(),d.nrm(33,"path",98),d.k0s(),d.j41(34,"g",99)(35,"g",41)(36,"g",42),d.nrm(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),d.k0s(),d.j41(52,"g",56),d.nrm(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),d.k0s(),d.nrm(67,"path",111),d.k0s()()()()()(),w.joV(),d.j41(68,"div",30)(69,"mat-card-title"),d.EFF(70,"Step 2: Send lightning payment"),d.k0s()(),d.j41(71,"div",31)(72,"mat-card-subtitle",32),d.EFF(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. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function Mn(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",112)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),d.nrm(9,"circle",12)(10,"path",117),d.k0s(),d.j41(11,"g",14),d.nrm(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),d.k0s()(),d.j41(27,"g",119),d.nrm(28,"polygon",80)(29,"polygon",120)(30,"path",82),d.k0s(),d.j41(31,"g",121),d.nrm(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),d.j41(42,"g",94)(43,"g",95),d.nrm(44,"g",96),d.k0s(),d.nrm(45,"g",97),d.k0s(),d.nrm(46,"path",123),d.k0s()()()()(),w.joV(),d.j41(47,"div",30)(48,"mat-card-title"),d.EFF(49,"Step 3: Receive funds back"),d.k0s()(),d.j41(50,"div",31)(51,"mat-card-subtitle",32),d.EFF(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function qt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",124)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),d.nrm(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),d.k0s(),d.j41(28,"g",142)(29,"g",143)(30,"g",144),d.nrm(31,"path",145)(32,"rect",146)(33,"polygon",147),d.j41(34,"g",148),d.nrm(35,"path",149),d.k0s(),d.nrm(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),d.k0s(),d.j41(45,"g",159),d.nrm(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),d.k0s(),d.nrm(59,"path",173),d.k0s()()()()()(),w.joV(),d.j41(60,"div",30)(61,"mat-card-title"),d.EFF(62,"Done!"),d.k0s()(),d.j41(63,"div",31)(64,"mat-card-subtitle",32),d.EFF(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. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}let S=(()=>{var Ot;class Ze{constructor(Pt){this.commonService=Pt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.bkB,this.screenSize="",this.screenSizeEnum=A.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Pt){2===Pt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Pt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)(d.rXU(Z.h))},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],[4,"ngTemplateOutlet"],["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(Yt,bn){if(1&Yt&&d.DNE(0,dt,1,0,"ng-container",5)(1,yt,32,5,"ng-template",null,0,d.C5r)(3,Et,51,5,"ng-template",null,1,d.C5r)(5,rt,74,5,"ng-template",null,2,d.C5r)(7,Mn,53,5,"ng-template",null,3,d.C5r)(9,qt,66,5,"ng-template",null,4,d.C5r),2&Yt){const $n=d.sdS(2),oi=d.sdS(4),Ii=d.sdS(6),Ei=d.sdS(8),Nt=d.sdS(10);d.Y8G("ngTemplateOutlet",1===bn.stepNumber?$n:2===bn.stepNumber?oi:3===bn.stepNumber?Ii:4===bn.stepNumber?Ei:Nt)}},dependencies:[M.YU,M.T3,V.Lc,V.dh,pe.DJ,pe.sA,pe.UI,Ee.PW],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:[ge.k]}}))}return Ot(),Ze})();const Xt=["stepper"],de=()=>[1,2,3,4,5],ae=(Ot,Ze)=>({"dot-primary":Ot,"dot-primary-lighter":Ze});function me(Ot,Ze){if(1&Ot&&(d.j41(0,"div",49)(1,"p",50)(2,"strong"),d.EFF(3,"Channel Peer:\xa0"),d.k0s(),d.EFF(4),d.nI1(5,"titlecase"),d.k0s(),d.j41(6,"p",51)(7,"strong"),d.EFF(8,"Channel ID:\xa0"),d.k0s(),d.EFF(9),d.k0s(),d.nrm(10,"p",51),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(4),d.JRh(d.bMT(5,2,Ge.channel.remote_alias)),d.R7$(5),d.JRh(Ge.channel.chan_id)}}function Le(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(2);d.JRh(Ge.inputFormLabel)}}function et(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Amount is required."),d.k0s())}function tn(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-error"),d.EFF(1),d.nI1(2,"number"),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.SpI("Amount must be greater than or equal to ",d.bMT(2,1,Ge.minQuote.amount),".")}}function Vt(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-error"),d.EFF(1),d.nI1(2,"number"),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.SpI("Amount must be less than or equal to ",d.bMT(2,1,Ge.maxQuote.amount),".")}}function hn(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Confirmation target is required."),d.k0s())}function En(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Confirmation target must be a positive number."),d.k0s())}function _n(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Percentage is required."),d.k0s())}function tt(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Percentage must be a positive number."),d.k0s())}function Fe(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-form-field",51)(1,"mat-label"),d.EFF(2,"Max Off-chain Routing Fee (%)"),d.k0s(),d.nrm(3,"input",52),d.DNE(4,_n,2,0,"mat-error",26)(5,tt,2,0,"mat-error",26),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(3),d.Y8G("step",1),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.routingFeePercent.errors?null:Ge.inputFormGroup.controls.routingFeePercent.errors.required),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.routingFeePercent.errors?null:Ge.inputFormGroup.controls.routingFeePercent.errors.min)}}function Pe(Ot,Ze){1&Ot&&(d.j41(0,"div",53)(1,"mat-slide-toggle",54),d.EFF(2,"Fast"),d.k0s(),d.j41(3,"mat-icon",55),d.EFF(4,"info_outline"),d.k0s()())}function Ue(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(2);d.JRh(Ge.quoteFormLabel)}}function Qe(Ot,Ze){1&Ot&&(d.j41(0,"p",56)(1,"mat-icon",57),d.EFF(2,"close"),d.k0s(),d.EFF(3,"Local balance amount is insufficient for swap."),d.k0s())}function Ie(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",58),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onValidateAmount())}),d.EFF(1,"Next"),d.k0s()}}function le(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",59),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onLoop())}),d.EFF(1),d.k0s()}if(2&Ot){const Ge=d.XpG(2);d.R7$(),d.SpI("Initiate ",Ge.loopDirectionCaption)}}function Ne(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(3);d.JRh(Ge.addressFormLabel)}}function ze(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Address is required."),d.k0s())}function Je(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"mat-step",16)(1,"form",17),d.DNE(2,Ne,1,1,"ng-template",18),d.j41(3,"div",60)(4,"mat-radio-group",61),d.bIt("change",function(Yt){w.eBV(Ge);const bn=d.XpG(2);return w.Njj(bn.onAddressTypeChange(Yt))}),d.j41(5,"mat-radio-button",62),d.EFF(6,"Node Local Address"),d.k0s(),d.j41(7,"mat-radio-button",63),d.EFF(8,"External Address"),d.k0s()(),d.j41(9,"mat-form-field",64)(10,"mat-label"),d.EFF(11,"Address"),d.k0s(),d.nrm(12,"input",65),d.DNE(13,ze,2,0,"mat-error",26),d.k0s()(),d.j41(14,"div",30)(15,"button",66),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onLoop())}),d.EFF(16),d.k0s()()()()}if(2&Ot){const Ge=d.XpG(2);d.Y8G("stepControl",Ge.addressFormGroup)("editable",Ge.flgEditable),d.R7$(),d.Y8G("formGroup",Ge.addressFormGroup),d.R7$(11),d.Y8G("required","external"===Ge.addressFormGroup.controls.addressType.value),d.R7$(),d.Y8G("ngIf",null==Ge.addressFormGroup.controls.address.errors?null:Ge.addressFormGroup.controls.address.errors.required),d.R7$(3),d.SpI("Initiate ",Ge.loopDirectionCaption)}}function gt(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(2);d.SpI("",Ge.loopDirectionCaption," Status")}}function zt(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-icon",67),d.EFF(1),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.JRh(Ge.loopStatus&&null!=Ge.loopStatus&&Ge.loopStatus.id_bytes?"check":"close")}}function Ye(Ot,Ze){1&Ot&&d.nrm(0,"div")}function st(Ot,Ze){1&Ot&&d.nrm(0,"mat-progress-bar",68)}function it(Ot,Ze){if(1&Ot&&(d.j41(0,"h4",69),d.EFF(1),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.JRh(Ge.loopStatus&&Ge.loopStatus.error?Ge.loopDirectionCaption+" failed.":Ge.loopStatus&&Ge.loopStatus.id_bytes&&Ge.channel?Ge.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":Ge.loopDirectionCaption+" request placed successfully.")}}function He(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",70),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.goToLoop())}),d.EFF(1,"Check Status"),d.k0s()}}function Wt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",71),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onRestart())}),d.EFF(1,"Start Again"),d.k0s()}}function we(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),d.EFF(5),d.k0s()(),d.j41(6,"div",9)(7,"button",10),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return w.Njj(Yt.showInfo())}),d.EFF(8,"?"),d.k0s(),d.j41(9,"button",11),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return w.Njj(Yt.onClose())}),d.EFF(10,"X"),d.k0s()()(),d.j41(11,"mat-card-content",12)(12,"div",13),d.DNE(13,me,11,4,"div",14),d.j41(14,"mat-vertical-stepper",15,1),d.bIt("selectionChange",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.stepSelectionChanged(Yt))}),d.j41(16,"mat-step",16)(17,"form",17),d.DNE(18,Le,1,1,"ng-template",18),d.j41(19,"div",19),d.nrm(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",21),d.k0s(),d.j41(22,"div",22)(23,"mat-form-field",23)(24,"mat-label"),d.EFF(25,"Amount"),d.k0s(),d.nrm(26,"input",24),d.j41(27,"mat-hint"),d.EFF(28),d.nI1(29,"number"),d.nI1(30,"number"),d.k0s(),d.j41(31,"span",25),d.EFF(32,"Sats"),d.k0s(),d.DNE(33,et,2,0,"mat-error",26)(34,tn,3,3,"mat-error",26)(35,Vt,3,3,"mat-error",26),d.k0s(),d.j41(36,"mat-form-field",23)(37,"mat-label"),d.EFF(38,"Sweep Confirmation Target"),d.k0s(),d.nrm(39,"input",27),d.DNE(40,hn,2,0,"mat-error",26)(41,En,2,0,"mat-error",26),d.k0s(),d.DNE(42,Fe,6,3,"mat-form-field",28),d.k0s(),d.DNE(43,Pe,5,0,"div",29),d.j41(44,"div",30)(45,"button",31),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return w.Njj(Yt.onEstimateQuote())}),d.EFF(46,"Estimate Quote"),d.k0s()()()(),d.j41(47,"mat-step",16)(48,"form",17),d.DNE(49,Ue,1,1,"ng-template",18),d.nrm(50,"rtl-loop-quote",32),d.DNE(51,Qe,4,0,"p",33),d.j41(52,"div",30),d.DNE(53,Ie,2,0,"button",34)(54,le,2,1,"button",35),d.k0s()()(),d.DNE(55,Je,17,6,"mat-step",36),d.j41(56,"mat-step",37)(57,"form",17),d.DNE(58,gt,1,1,"ng-template",18),d.j41(59,"div",38)(60,"mat-expansion-panel",39)(61,"mat-expansion-panel-header")(62,"mat-panel-title")(63,"span",40),d.EFF(64),d.DNE(65,zt,2,1,"mat-icon",41),d.k0s()()(),d.DNE(66,Ye,1,0,"div",42),d.k0s(),d.DNE(67,st,1,0,"mat-progress-bar",43),d.k0s(),d.DNE(68,it,2,1,"h4",44),d.j41(69,"div",30),d.DNE(70,He,2,0,"button",45)(71,Wt,2,0,"button",46),d.k0s()()()(),d.j41(72,"div",47)(73,"button",48),d.EFF(74,"Close"),d.k0s()()()()()()}if(2&Ot){const Ge=d.XpG(),Pt=d.sdS(2);d.Y8G("@opacityAnimation",void 0),d.R7$(3),d.Y8G("ngClass",Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM?"flex-83":"flex-91"),d.R7$(2),d.JRh(Ge.channel?"Channel "+Ge.loopDirectionCaption:Ge.loopDirectionCaption),d.R7$(),d.Y8G("ngClass",Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM?"flex-17":"flex-9"),d.R7$(7),d.Y8G("ngIf",Ge.channel),d.R7$(),d.Y8G("linear",!0),d.R7$(2),d.Y8G("stepControl",Ge.inputFormGroup)("editable",Ge.flgEditable),d.R7$(),d.Y8G("formGroup",Ge.inputFormGroup),d.R7$(3),d.Y8G("quote",Ge.minQuote)("panelExpanded",!1)("showPanel",!0),d.R7$(),d.Y8G("quote",Ge.maxQuote)("panelExpanded",!1)("showPanel",!0),d.R7$(2),d.Y8G("ngClass",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT?"flex-35":"flex-48"),d.R7$(3),d.Y8G("step",1e3),d.R7$(2),d.Lme("Range: ",d.bMT(29,49,Ge.minQuote.amount),"-",d.bMT(30,51,Ge.maxQuote.amount)),d.R7$(5),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.amount.errors?null:Ge.inputFormGroup.controls.amount.errors.required),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.amount.errors?null:Ge.inputFormGroup.controls.amount.errors.min),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.amount.errors?null:Ge.inputFormGroup.controls.amount.errors.max),d.R7$(),d.Y8G("ngClass",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT?"flex-30":"flex-48"),d.R7$(3),d.Y8G("step",1),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.sweepConfTarget.errors?null:Ge.inputFormGroup.controls.sweepConfTarget.errors.required),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.sweepConfTarget.errors?null:Ge.inputFormGroup.controls.sweepConfTarget.errors.min),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(4),d.Y8G("stepControl",Ge.quoteFormGroup)("editable",Ge.flgEditable),d.R7$(),d.Y8G("formGroup",Ge.quoteFormGroup),d.R7$(2),d.Y8G("quote",Ge.quote)("showPanel",!1),d.R7$(),d.Y8G("ngIf",Ge.inputFormGroup.controls.amount.value>Ge.localBalanceToCompare),d.R7$(2),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_IN),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("stepControl",Ge.statusFormGroup),d.R7$(),d.Y8G("formGroup",Ge.statusFormGroup),d.R7$(3),d.Y8G("expanded",!!Ge.loopStatus),d.R7$(4),d.JRh(Ge.loopStatus?Ge.loopStatus.id_bytes?Ge.loopDirectionCaption+" request details":Ge.loopDirectionCaption+" error details":"Waiting for "+Ge.loopDirectionCaption+" request..."),d.R7$(),d.Y8G("ngIf",Ge.loopStatus),d.R7$(),d.Y8G("ngIf",!Ge.loopStatus)("ngIfElse",Pt),d.R7$(),d.Y8G("ngIf",!Ge.loopStatus),d.R7$(),d.Y8G("ngIf",Ge.loopStatus),d.R7$(2),d.Y8G("ngIf",Ge.loopStatus&&Ge.loopStatus.id_bytes&&Ge.channel),d.R7$(),d.Y8G("ngIf",Ge.loopStatus&&(Ge.loopStatus.error||!Ge.loopStatus.id_bytes)),d.R7$(2),d.Y8G("mat-dialog-close",!1)}}function We(Ot,Ze){if(1&Ot&&d.nrm(0,"rtl-loop-status",72),2&Ot){const Ge=d.XpG();d.Y8G("loopStatus",Ge.loopStatus)}}function Lt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"rtl-loop-out-info-graphics",88),d.mxI("stepNumberChange",function(Yt){w.eBV(Ge);const bn=d.XpG(2);return d.DH7(bn.stepNumber,Yt)||(bn.stepNumber=Yt),w.Njj(Yt)}),d.k0s()}if(2&Ot){const Ge=d.XpG(2);d.Y8G("animationDirection",Ge.animationDirection),d.R50("stepNumber",Ge.stepNumber)}}function St(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"rtl-loop-in-info-graphics",88),d.mxI("stepNumberChange",function(Yt){w.eBV(Ge);const bn=d.XpG(2);return d.DH7(bn.stepNumber,Yt)||(bn.stepNumber=Yt),w.Njj(Yt)}),d.k0s()}if(2&Ot){const Ge=d.XpG(2);d.Y8G("animationDirection",Ge.animationDirection),d.R50("stepNumber",Ge.stepNumber)}}function At(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"span",89),d.bIt("click",function(){const Yt=w.eBV(Ge).$implicit,bn=d.XpG(2);return w.Njj(bn.onStepChanged(Yt))}),d.nrm(1,"p",90),d.k0s()}if(2&Ot){const Ge=Ze.$implicit,Pt=d.XpG(2);d.R7$(),d.Y8G("ngClass",d.l_i(1,ae,Pt.stepNumber===Ge,Pt.stepNumber!==Ge))}}function fn(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",91),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onReadMore())}),d.EFF(1,"Read More"),d.k0s()}}function mt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",92),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onStepChanged(4))}),d.EFF(1,"Back"),d.k0s()}}function It(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",93),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return Yt.flgShowInfo=!1,w.Njj(Yt.stepNumber=1)}),d.EFF(1,"Close"),d.k0s()}}function wn(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",94),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return Yt.flgShowInfo=!1,w.Njj(Yt.stepNumber=1)}),d.EFF(1,"Close"),d.k0s()}}function In(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",95),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onStepChanged(Yt.stepNumber-1))}),d.EFF(1,"Back"),d.k0s()}}function ei(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",96),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onStepChanged(Yt.stepNumber+1))}),d.EFF(1,"Next"),d.k0s()}}function Li(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",73)(1,"div",19)(2,"mat-card-header",74)(3,"div",75),d.nrm(4,"span",8),d.k0s(),d.j41(5,"div",76)(6,"button",11),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return Yt.flgShowInfo=!1,w.Njj(Yt.stepNumber=1)}),d.EFF(7,"X"),d.k0s()()(),d.j41(8,"mat-card-content",77),d.DNE(9,Lt,1,2,"rtl-loop-out-info-graphics",78)(10,St,1,2,"rtl-loop-in-info-graphics",78),d.k0s(),d.j41(11,"div",79),d.DNE(12,At,2,4,"span",80),d.k0s(),d.j41(13,"div",81),d.DNE(14,fn,2,0,"button",82)(15,mt,2,0,"button",83)(16,It,2,0,"button",84)(17,wn,2,0,"button",85)(18,In,2,0,"button",86)(19,ei,2,0,"button",87),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@opacityAnimation",void 0),d.R7$(9),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_IN),d.R7$(2),d.Y8G("ngForOf",d.lJ4(10,de)),d.R7$(2),d.Y8G("ngIf",5===Ge.stepNumber),d.R7$(),d.Y8G("ngIf",5===Ge.stepNumber),d.R7$(),d.Y8G("ngIf",5===Ge.stepNumber),d.R7$(),d.Y8G("ngIf",Ge.stepNumber<5),d.R7$(),d.Y8G("ngIf",Ge.stepNumber>1&&Ge.stepNumber<5),d.R7$(),d.Y8G("ngIf",Ge.stepNumber<5)}}let kt=(()=>{var Ot;class Ze{constructor(Pt,Yt,bn,$n,oi,Ii,Ei,Nt,nn){this.dialogRef=Pt,this.data=Yt,this.store=bn,this.loopService=$n,this.formBuilder=oi,this.decimalPipe=Ii,this.logger=Ei,this.router=Nt,this.commonService=nn,this.faInfoCircle=o.iW_,this.LoopTypeEnum=A.C7,this.direction=A.C7.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=A.f7,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}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||A.C7.LOOP_OUT,this.loopDirectionCaption=this.direction===A.C7.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[i.k0.required,i.k0.min(this.minQuote.amount||0),i.k0.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[i.k0.required,i.k0.min(1)]],routingFeePercent:[2,[i.k0.required,i.k0.min(0)]],fast:[!1,[i.k0.required]]}),this.inputFormGroup.setErrors({Invalid:!0}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[i.k0.required]],address:[{value:"",disabled:!0}]}),this.direction===A.C7.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(h.BM).pipe((0,p.Q)(this.unSubs[6])).subscribe(Pt=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:Pt.lightningBalance&&Pt.lightningBalance.local?+Pt.lightningBalance.local:null})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,p.Q)(this.unSubs[4])).subscribe(Pt=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===A.C7.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,p.Q)(this.unSubs[5])).subscribe(Pt=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(Pt){"external"===Pt.value?(this.addressFormGroup.controls.address.setValidators([i.k0.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(){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===A.C7.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===A.C7.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===A.C7.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,p.Q)(this.unSubs[0])).subscribe({next:Pt=>{this.loopStatus=Pt,this.loopService.listSwaps(),this.flgEditable=!0},error:Pt=>{this.loopStatus={error:Pt},this.flgEditable=!0,this.logger.error(Pt)}});else{const Pt=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),Yt="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",bn=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,Pt,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),bn,Yt).pipe((0,p.Q)(this.unSubs[1])).subscribe({next:$n=>{this.loopStatus=$n,this.loopService.listSwaps(),this.flgEditable=!0},error:$n=>{this.loopStatus={error:$n},this.flgEditable=!0,this.logger.error($n)}})}}onEstimateQuote(){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 Pt=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===A.C7.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Pt).pipe((0,p.Q)(this.unSubs[2])).subscribe(Yt=>{this.quote=Yt,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,Pt).pipe((0,p.Q)(this.unSubs[3])).subscribe(Yt=>{this.quote=Yt,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected?.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(Pt){switch(Pt.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===A.C7.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===A.C7.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===A.C7.LOOP_OUT&&1!==Pt.selectedIndex&&Pt.selectedIndex{Pt.next(null),Pt.complete()})}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)(d.rXU(D.CP),d.rXU(D.Vh),d.rXU(f.il),d.rXU(F.Q),d.rXU(i.ze),d.rXU(M.QX),d.rXU(K.gP),d.rXU(j.Ix),d.rXU(Z.h))},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-modal"]],viewQuery:function(Yt,bn){if(1&Yt&&d.GBs(Xt,5),2&Yt){let $n;d.mGM($n=d.lsd())&&(bn.stepper=$n.first)}},standalone:!1,decls:4,vars:2,consts:[["loopStatusBlock",""],["stepper",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["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,"ngClass"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"ngClass"],["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,"selectionChange","linear"],[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"],["termCaption","min",3,"quote","panelExpanded","showPanel"],["termCaption","max",3,"quote","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"ngClass"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","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","","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"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","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"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","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,"stepNumberChange","animationDirection","stepNumber"],["tabindex","21","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(Yt,bn){1&Yt&&d.DNE(0,we,75,53,"div",2)(1,We,1,1,"ng-template",null,0,d.C5r)(3,Li,20,11,"div",3),2&Yt&&(d.Y8G("ngIf",!bn.flgShowInfo),d.R7$(3),d.Y8G("ngIf",bn.flgShowInfo))},dependencies:[M.YU,M.Sq,M.bT,i.qT,i.me,i.Q0,i.BC,i.cb,i.YS,i.j4,i.JD,D.tx,ee.$z,V.m2,V.MM,Q.GK,Q.Z2,Q.WN,$.An,ie.fg,_e.rl,_e.nJ,_e.MV,_e.TL,_e.yw,ye.HM,se.VT,se._g,pe.DJ,pe.sA,pe.UI,Ee.PW,L.sG,t.oV,s.V5,s.Ti,s.M6,m.N,U,Oe,nt,S,M.QX,M.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[e.C]}}))}return Ot(),Ze})()},90013(ke,q,l){"use strict";l.d(q,{X:()=>h});var i=l(45383),g=l(73664),p=l(43694),D=l(20060),o=l(88834),e=l(25596),A=l(52920);let h=(()=>{var d;class w{constructor(F){this.router=F,this.faTimes=i.GRI}goToHelp(){this.router.navigate(["/help"])}static#e=d=()=>(this.\u0275fac=function(M){return new(M||w)(g.rXU(p.Ix))},this.\u0275cmp=g.VBU({type:w,selectors:[["rtl-not-found"]],standalone:!1,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(M,K){1&M&&(g.j41(0,"div",0),g.nrm(1,"fa-icon",1),g.j41(2,"span",2),g.EFF(3,"Page Not Found"),g.k0s()(),g.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),g.EFF(9,"This page does not exist!"),g.k0s(),g.j41(10,"span",7)(11,"button",8),g.bIt("click",function(){return K.goToHelp()}),g.EFF(12,"Go To Help"),g.k0s()()()()()()),2&M&&(g.R7$(),g.Y8G("icon",K.faTimes))},dependencies:[D.aY,o.$z,e.RN,e.m2,A.DJ,A.sA,A.UI],encapsulation:2}))}return d(),w})()},89587(ke,q,l){"use strict";l.d(q,{N:()=>g});var i=l(73664);let g=(()=>{var p;class D{constructor(e){this.el=e}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}static#e=p=()=>(this.\u0275fac=function(A){return new(A||D)(i.rXU(i.aKT))},this.\u0275dir=i.FsC({type:D,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"},standalone:!1}))}return p(),D})()},29157(ke,q,l){"use strict";l.d(q,{U:()=>g});var i=l(73664);let g=(()=>{var p;class D{constructor(){this.copied=new i.bkB}onClick(e){e.preventDefault(),this.payload&&(navigator.clipboard?this.copyUsingClipboardAPI():this.copyUsingFallbackMethod())}copyUsingFallbackMethod(){const e=document.createElement("textarea");e.value=this.payload,document.body.appendChild(e),e.select();try{document.execCommand("copy")?this.copied.emit(this.payload.toString()):this.copied.emit("Error could not copy text.")}finally{document.body.removeChild(e)}}copyUsingClipboardAPI(){navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())}).catch(e=>{this.copied.emit("Error could not copy text: "+JSON.stringify(e))})}static#e=p=()=>(this.\u0275fac=function(A){return new(A||D)},this.\u0275dir=i.FsC({type:D,selectors:[["","rtlClipboard",""]],hostBindings:function(A,h){1&A&&i.bIt("click",function(w){return h.onClick(w)})},inputs:{payload:"payload"},outputs:{copied:"copied"},standalone:!1}))}return p(),D})()},60092(ke,q,l){"use strict";l.d(q,{z:()=>p});var i=l(89417),g=l(73664);let p=(()=>{var D;class o{validate(A){return this.max?i.k0.max(+this.max)(A):null}static#e=D=()=>(this.\u0275fac=function(h){return new(h||o)},this.\u0275dir=g.FsC({type:o,selectors:[["input","max",""]],inputs:{max:"max"},standalone:!1,features:[g.Jv_([{provide:i.cz,useExisting:o,multi:!0}])]}))}return D(),o})()},56114(ke,q,l){"use strict";l.d(q,{V:()=>p});var i=l(89417),g=l(73664);let p=(()=>{var D;class o{validate(A){return this.min?i.k0.min(+this.min)(A):null}static#e=D=()=>(this.\u0275fac=function(h){return new(h||o)},this.\u0275dir=g.FsC({type:o,selectors:[["input","min",""]],inputs:{min:"min"},standalone:!1,features:[g.Jv_([{provide:i.cz,useExisting:o,multi:!0}])]}))}return D(),o})()},52929(ke,q,l){"use strict";l.d(q,{Qu:()=>D,VD:()=>o,ZE:()=>p,gZ:()=>g});var i=l(73664);let g=(()=>{var e;class A{transform(d,w){return d?.replace(/^[0]+/g,"")}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"removeleadingzeros",type:A,pure:!0,standalone:!1}))}return e(),A})(),p=(()=>{var e;class A{transform(d,w){return d?.replace(/(?:^\w|[A-Z]|\b\w)/g,(f,F)=>f.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"camelcase",type:A,pure:!0,standalone:!1}))}return e(),A})(),D=(()=>{var e;class A{transform(d,w,f){return d.replace(/(?:^\w|[A-Z]|\b\w)/g,(F,M)=>" "+F.toUpperCase())}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"camelCaseWithSpaces",type:A,pure:!0,standalone:!1}))}return e(),A})(),o=(()=>{var e;class A{transform(d,w,f){return d=d?d.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "):"",w&&(d=d.replace(new RegExp(w,"g")," ")),f&&(d=d.replace(new RegExp(f,"g")," ")),d.replace(/(?:^\w|[A-Z]|\b\w)/g,(F,M)=>F.toUpperCase())}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"camelcaseWithReplace",type:A,pure:!0,standalone:!1}))}return e(),A})()},17186(ke,q,l){"use strict";l.d(q,{Wz:()=>A,fe:()=>h,jn:()=>e,q_:()=>o});var i=l(2615),g=l(43694),p=l(53202),D=l(96354);function o(){return()=>{const d=(0,i.WQX)(g.Ix),w=(0,i.WQX)(g.nX),f=(0,i.WQX)(p.Q);return!(!f.getItem("token")||w.snapshot.url&&w.snapshot.url.length&&"settings"!==w.snapshot.url[0].path&&"auth"!==w.snapshot.url[0].path&&"true"===f.getItem("defaultPassword")&&(d.navigate(["/settings/auth"]),1))}}function e(){return()=>!!(0,i.WQX)(p.Q).watchSession().pipe((0,D.T)(w=>w.lndUnlocked))}function A(){return()=>!!(0,i.WQX)(p.Q).watchSession().pipe((0,D.T)(w=>w.clnUnlocked))}function h(){return()=>!!(0,i.WQX)(p.Q).watchSession().pipe((0,D.T)(w=>w.eclUnlocked))}},82571(ke,q,l){"use strict";l.d(q,{h:()=>K});var i=l(21413),g=l(84412),p=l(7673),D=l(18810),o=l(99437),e=l(25558),A=l(56977),h=l(4416),d=l(2615),w=l(51534),f=l(98570),F=l(72200),M=l(345);let K=(()=>{var j;class Z{constructor(V,Q,$,ie){this.dataService=V,this.logger=Q,this.datePipe=$,this.sanitizer=ie,this.currencyUnits=[],this.CurrencyUnitEnum=h.BQ,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=h.wn.UN_INITIATED,this.screenSize=h.f7.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new g.t(this.containerSize),this.unSubs=[new i.B,new i.B,new i.B]}getScreenSize(){return this.screenSize}setScreenSize(V){this.screenSize=V}getContainerSize(){return this.containerSize}setContainerSize(V,Q){this.containerSize={width:V,height:Q},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(V,Q,$,ie="asc"){return V.sort("number"===$?"desc"===ie?(_e,ye)=>+_e[Q]>+ye[Q]?-1:1:(_e,ye)=>+_e[Q]>+ye[Q]?1:-1:"desc"===ie?(_e,ye)=>_e[Q]>ye[Q]?-1:1:(_e,ye)=>_e[Q]>ye[Q]?1:-1)}sortDescByKey(V,Q){return V.sort(($,ie)=>{const _e=+$[Q],ye=+ie[Q];return _e>ye?-1:_e{const _e=+$[Q],ye=+ie[Q];return _eye?1:0})}camelCase(V){return V?.replace(/(?:^\w|[A-Z]|\b\w)/g,(Q,$)=>Q.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(V,Q,$){return Q&&$&&""!==Q&&""!==$&&(V=V?.replace(new RegExp(Q,"g"),$)),V.indexOf("!\n")>0||V.indexOf(".\n")>0?V.split("\n")?.reduce((ie,_e)=>ie+_e.charAt(0).toUpperCase()+_e.substring(1).toLowerCase()+"\n",""):V.indexOf(" ")>0?V.split(" ")?.reduce((ie,_e)=>ie+_e.charAt(0).toUpperCase()+_e.substring(1).toLowerCase()+" ",""):V.charAt(0).toUpperCase()+V.substring(1).toLowerCase()}convertCurrency(V,Q,$,ie,_e){const ye=(new Date).valueOf();try{return _e&&ie&&(Q===h.BQ.OTHER||$===h.BQ.OTHER)?this.ratesAPIStatus!==h.wn.INITIATED?this.conversionData.data&&this.conversionData.last_fetched&&ye(this.ratesAPIStatus=h.wn.COMPLETED,this.conversionData.data=se&&"object"==typeof se?se:se&&"string"==typeof se?JSON.parse(se):{},this.conversionData.last_fetched=ye,(0,p.of)(this.convertWithFiat(V,Q,ie)))),(0,o.W)(se=>(this.ratesAPIStatus=h.wn.ERROR,(0,D.$)(()=>"Currency Conversion Error."))))):(0,p.of)(this.conversionData.data&&this.conversionData.last_fetched&&ye"Currency Conversion Error.")}}convertWithoutFiat(V,Q){const $={};switch($[h.BQ.SATS]=0,$[h.BQ.BTC]=0,Q){case h.BQ.SATS:$[h.BQ.SATS]=V,$[h.BQ.BTC]=1e-8*V;break;case h.BQ.BTC:$[h.BQ.SATS]=1e8*V,$[h.BQ.BTC]=V}return $}convertWithFiat(V,Q,$){const ie={unit:$,iconType:"FA",symbol:null};if($){const _e=(0,h.Zo)(this.conversionData.data[$].symbol);ie.iconType=_e.iconType,ie.symbol=_e&&"SVG"===_e.iconType&&_e.symbol&&"string"==typeof _e.symbol?this.sanitizer.bypassSecurityTrustHtml(_e.symbol):_e.symbol}switch(ie[h.BQ.SATS]=0,ie[h.BQ.BTC]=0,ie[h.BQ.OTHER]=0,Q){case h.BQ.SATS:ie[h.BQ.SATS]=V,ie[h.BQ.BTC]=1e-8*V,ie[h.BQ.OTHER]=1e-8*V*this.conversionData.data[$].last;break;case h.BQ.BTC:ie[h.BQ.SATS]=1e8*V,ie[h.BQ.BTC]=V,ie[h.BQ.OTHER]=V*this.conversionData.data[$].last;break;case h.BQ.OTHER:ie[h.BQ.SATS]=V/this.conversionData.data[$].last*1e8,ie[h.BQ.BTC]=V/this.conversionData.data[$].last,ie[h.BQ.OTHER]=V}return ie}convertTime(V,Q,$){switch(Q){case h.F7.SECS:switch($){case h.F7.MINS:V/=60;break;case h.F7.HOURS:V/=h.bz;break;case h.F7.DAYS:V/=24*h.bz}break;case h.F7.MINS:switch($){case h.F7.SECS:V*=60;break;case h.F7.HOURS:V/=60;break;case h.F7.DAYS:V/=1440}break;case h.F7.HOURS:switch($){case h.F7.SECS:V*=h.bz;break;case h.F7.MINS:V*=60;break;case h.F7.DAYS:V/=24}break;case h.F7.DAYS:switch($){case h.F7.SECS:V=V*h.bz*24;break;case h.F7.MINS:V=60*V*24;break;case h.F7.HOURS:V*=24}}return V}downloadFile(V,Q,$=".json",ie=".csv"){let _e=new Blob;_e=".json"===$?new Blob(["\ufeff"+this.convertToCSV(V)],{type:"text/csv;charset=utf-8;"}):new Blob([V.toString()],{type:"text/plain;charset=utf-8"});const ye=document.createElement("a"),se=URL.createObjectURL(_e);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ye.setAttribute("target","_blank"),ye.setAttribute("href",se),ye.setAttribute("download",Q+ie),ye.style.visibility="hidden",document.body.appendChild(ye),ye.click(),document.body.removeChild(ye)}convertToCSV(V){const Q=[];let $="",ie="",_e="";return"object"!=typeof V&&(V=JSON.parse(V)),V.forEach((se,pe)=>{for(const Ee in se)Q.findIndex(L=>L===Ee)<0&&Q.push(Ee)}),_e=Q.join(",")+"\r\n",V.forEach(se=>{$="",Q.forEach(pe=>{if(se.hasOwnProperty(pe))if(Array.isArray(se[pe]))ie="",se[pe].forEach((Ee,L)=>{ie+="object"==typeof Ee?"("+JSON.stringify(Ee)?.replace(/\,/g,";")+")":"("+Ee+")"}),$+=ie+",";else if("object"==typeof se[pe])$+=JSON.stringify(se[pe])?.replace(/\,/g,";")+",";else if(pe.includes("timestamp")||pe.includes("date"))try{switch(se[pe].toString().length){case 10:$+=this.datePipe.transform(new Date(1e3*se[pe]),"dd/MMM/y HH:mm")+",";break;case 13:$+=this.datePipe.transform(new Date(se[pe]),"dd/MMM/y HH:mm")+",";break;default:$+=se[pe]+","}}catch{$+=se[pe]+","}else $+=se[pe]+",";else $+=","}),_e+=$.slice(0,-1)+"\r\n"}),_e}isVersionCompatible(V,Q){if(V){const $=V.match(/v?(?\d+(?:\.\d+)*)/);if($&&$.groups&&$.groups.version){this.logger.info("Current Version: "+$.groups.version),this.logger.info("Checking Compatiblility with Version: "+Q);const ie=$.groups.version.split(".")||[],_e=Q.split(".");return+ie[0]>+_e[0]||+ie[0]==+_e[0]&&+ie[1]>+_e[1]||+ie[0]==+_e[0]&&+ie[1]==+_e[1]&&+ie[2]>=+_e[2]}return this.logger.error("Invalid Version String: "+V),!1}return!1}extractErrorMessage(V,Q="Unknown Error."){const $=this.titleCase(V.error&&V.error.text&&"string"==typeof V.error.text&&V.error.text.includes('')?"API Route Does Not Exist.":V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.error&&"string"==typeof V.error.error.error.error.error?V.error.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&"string"==typeof V.error.error.error.error?V.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&"string"==typeof V.error.error.error?V.error.error.error:V.error&&V.error.error&&"string"==typeof V.error.error?V.error.error:V.error&&"string"==typeof V.error?V.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.message&&"string"==typeof V.error.error.error.error.message?V.error.error.error.error.message:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.message&&"string"==typeof V.error.error.error.message?V.error.error.error.message:V.error&&V.error.error&&V.error.error.message&&"string"==typeof V.error.error.message?V.error.error.message:V.error&&V.error.message&&"string"==typeof V.error.message?V.error.message:V.message&&"string"==typeof V.message?V.message:Q);return this.logger.info("Error Message: "+$),$}extractErrorCode(V,Q=500){const $=V.error&&V.error.error&&V.error.error.message&&V.error.error.message.code?V.error.error.message.code:V.error&&V.error.error&&V.error.error.code?V.error.error.code:V.error&&V.error.code?V.error.code:V.code?V.code:V.status?V.status:Q;return this.logger.info("Error Code: "+$),$}extractErrorNumber(V,Q=500){const $=V.error&&V.error.error&&V.error.error.errno?V.error.error.errno:V.error&&V.error.errno?V.error.errno:V.errno?V.errno:V.status?V.status:Q;return this.logger.info("Error Number: "+$),$}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)(d.KVO(w.u),d.KVO(f.gP),d.KVO(F.vh),d.KVO(M.up))},this.\u0275prov=d.jDH({token:Z,factory:Z.\u0275fac}))}return j(),Z})()},4416(ke,q,l){"use strict";l.d(q,{A$:()=>Ee,A0:()=>f,Ah:()=>Oe,BQ:()=>m,Bd:()=>R,Bv:()=>ie,C6:()=>tt,C7:()=>Y,F7:()=>t,G:()=>$,H$:()=>d,HW:()=>pe,Hx:()=>x,It:()=>A,Jd:()=>me,Jr:()=>ye,KR:()=>fe,Ld:()=>ee,MZ:()=>ce,NG:()=>e,QP:()=>oe,SY:()=>M,TC:()=>Se,TH:()=>nt,U1:()=>L,UN:()=>u,Uq:()=>$e,Uu:()=>be,WW:()=>Vt,X8:()=>tn,XG:()=>V,Y0:()=>Re,ZC:()=>Le,Zb:()=>a,Zi:()=>En,Zo:()=>_n,_1:()=>et,_U:()=>dt,aG:()=>P,aR:()=>Me,aU:()=>ve,bz:()=>o,ck:()=>_e,f7:()=>_,iI:()=>C,jG:()=>de,k:()=>F,md:()=>j,mu:()=>ae,nv:()=>Q,o1:()=>se,oi:()=>Xt,on:()=>D,q9:()=>U,rl:()=>w,rs:()=>re,tj:()=>T,ul:()=>yt,wn:()=>ge,xk:()=>Et,xp:()=>Z,xv:()=>h});var i=l(17705),g=l(96695),p=l(45383);function D(Fe){const Pe=new g.xX;return Pe.itemsPerPageLabel=Fe+" per page:",Pe}const o=3600,e=31536e3,A=24*o*7,h="0.15.9-beta",d=(0,i.naY)()?"http://localhost:3000/rtl/api":"./api",w={AUTHENTICATE_API:d+"/authenticate",CONF_API:d+"/conf",PAGE_SETTINGS_API:d+"/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=["Sats","BTC"],F={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},M=["SECS","MINS","HOURS","DAYS"],j=10,Z=[5,10,25,100],ee=[{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"}],V=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],Q=[{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 Amount",placeholder:"Percentage Limit"}],$=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom"}],ie={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 _e=function(Fe){return Fe.PAYMENT_RECEIVED="payment-received",Fe.PAYMENT_RELAYED="payment-relayed",Fe.PAYMENT_SENT="payment-sent",Fe.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",Fe.PAYMENT_FAILED="payment-failed",Fe.CHANNEL_OPENED="channel-opened",Fe.CHANNEL_STATE_CHANGED="channel-state-changed",Fe.CHANNEL_CLOSED="channel-closed",Fe}(_e||{}),ye=function(Fe){return Fe.CONNECT="connect",Fe.DISCONNECT="disconnect",Fe.WARNING="warning",Fe.INVOICE_PAYMENT="invoice_payment",Fe.INVOICE_CREATION="invoice_creation",Fe.CHANNEL_OPENED="channel_opened",Fe.CHANNEL_STATE_CHANGED="channel_state_changed",Fe.SENDPAY_SUCCESS="sendpay_success",Fe.SENDPAY_FAILURE="sendpay_failure",Fe.COIN_MOVEMENT="coin_movement",Fe.BALANCE_SNAPSHOT="balance_snapshot",Fe.BLOCK_ADDED="block_added",Fe.OPENCHANNEL_PEER_SIGS="openchannel_peer_sigs",Fe.CHANNEL_OPEN_FAILED="channel_open_failed",Fe}(ye||{}),se=function(Fe){return Fe.INVOICE="invoice",Fe}(se||{}),pe=function(Fe){return Fe.OPERATOR="OPERATOR",Fe.MERCHANT="MERCHANT",Fe.ALL="ALL",Fe}(pe||{}),Ee=function(Fe){return Fe.INFORMATION="Information",Fe.WARNING="Warning",Fe.ERROR="Error",Fe.SUCCESS="Success",Fe.CONFIRM="Confirm",Fe}(Ee||{}),L=function(Fe){return Fe.NOAUTH="NOAUTH",Fe.JWT="JWT",Fe.PASSWORD="PASSWORD",Fe}(L||{}),t=function(Fe){return Fe.SECS="SECS",Fe.MINS="MINS",Fe.HOURS="HOURS",Fe.DAYS="DAYS",Fe}(t||{}),m=function(Fe){return Fe.SATS="Sats",Fe.BTC="BTC",Fe.OTHER="OTHER",Fe}(m||{}),u=function(Fe){return Fe.ARRAY="ARRAY",Fe.NUMBER="NUMBER",Fe.STRING="STRING",Fe.BOOLEAN="BOOLEAN",Fe.PASSWORD="PASSWORD",Fe.DATE="DATE",Fe.DATE_TIME="DATE_TIME",Fe}(u||{}),_=function(Fe){return Fe.XS="XS",Fe.SM="SM",Fe.MD="MD",Fe.LG="LG",Fe.XL="XL",Fe}(_||{});const T={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"}},P={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 C=function(Fe){return Fe.WIRE_INVALID_ONION_VERSION="Invalid Onion Version",Fe.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",Fe.WIRE_INVALID_ONION_KEY="Invalid Onion Key",Fe.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",Fe.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",Fe.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",Fe.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",Fe.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",Fe.WIRE_FEE_INSUFFICIENT="Insufficient Fee",Fe.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Fe.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",Fe.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",Fe.WIRE_CHANNEL_DISABLED="Channel Disabled",Fe.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",Fe.WIRE_INVALID_REALM="Invalid Realm",Fe.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",Fe.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",Fe.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",Fe.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",Fe.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",Fe.WIRE_MPP_TIMEOUT="MPP Timeout",Fe.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Fe.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",Fe}(C||{}),a=function(Fe){return Fe.CHANNELD_NORMAL="Active",Fe.OPENINGD="Opening",Fe.CHANNELD_AWAITING_LOCKIN="Pending Open",Fe.CHANNELD_SHUTTING_DOWN="Shutting Down",Fe.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",Fe.CLOSINGD_COMPLETE="Closed",Fe.AWAITING_UNILATERAL="Awaiting Unilateral Close",Fe.FUNDING_SPEND_SEEN="Funding Spend Seen",Fe.ONCHAIN="Onchain",Fe.DUALOPEND_OPEN_INIT="Dual Open Initialized",Fe.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",Fe}(a||{}),x=function(Fe){return Fe.INITIATED="Initiated",Fe.PREIMAGE_REVEALED="Preimage Revealed",Fe.HTLC_PUBLISHED="HTLC Published",Fe.SUCCESS="Successful",Fe.FAILED="Failed",Fe.INVOICE_SETTLED="Invoice Settled",Fe}(x||{}),Y=function(Fe){return Fe.LOOP_OUT="LOOP_OUT",Fe.LOOP_IN="LOOP_IN",Fe}(Y||{}),R=function(Fe){return Fe.SWAP_OUT="SWAP_OUT",Fe.SWAP_IN="SWAP_IN",Fe}(R||{}),U=function(Fe){return Fe["swap.created"]="Swap Created",Fe["swap.expired"]="Swap Expired",Fe["invoice.set"]="Invoice Set",Fe["invoice.paid"]="Invoice Paid",Fe["invoice.pending"]="Invoice Pending",Fe["invoice.settled"]="Invoice Settled",Fe["invoice.failedToPay"]="Invoice Failed To Pay",Fe["channel.created"]="Channel Created",Fe["transaction.failed"]="Transaction Failed",Fe["transaction.mempool"]="Transaction Mempool",Fe["transaction.claimed"]="Transaction Claimed",Fe["transaction.refunded"]="Transaction Refunded",Fe["transaction.confirmed"]="Transaction Confirmed",Fe["transaction.lockupFailed"]="Lockup Transaction Failed",Fe["swap.refunded"]="Swap Refunded",Fe["swap.abandoned"]="Swap Abandoned",Fe}(U||{});const fe=[{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}],re=["MONTHLY","YEARLY"],Oe=["password","changeme","moneyprintergobrrr"];var ge=function(Fe){return Fe.UN_INITIATED="UN_INITIATED",Fe.INITIATED="INITIATED",Fe.COMPLETED="COMPLETED",Fe.ERROR="ERROR",Fe}(ge||{});const ce={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_APPLICATION_SETTINGS:"Updating Application Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_BOLTZ_INFO:"Getting Boltz Info...",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_INFO:"Getting Loop Info...",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...",REBALANCE_CHANNEL:"Rebalancing Channel...",LOG_OUT:"Logging Out..."};var Re=function(Fe){return Fe.INVOICE="INVOICE",Fe.OFFER="OFFER",Fe.KEYSEND="KEYSEND",Fe}(Re||{}),Me=function(Fe){return Fe.FEES="FEES",Fe.EVENTS="EVENTS",Fe}(Me||{}),ve=function(Fe){return Fe.VOID="VOID",Fe.SET_API_URL_ECL="SET_API_URL_ECL",Fe.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",Fe.RESET_ROOT_STORE="RESET_ROOT_STORE",Fe.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",Fe.OPEN_SNACK_BAR="OPEN_SNACKBAR",Fe.OPEN_SPINNER="OPEN_SPINNER",Fe.CLOSE_SPINNER="CLOSE_SPINNER",Fe.OPEN_ALERT="OPEN_ALERT",Fe.CLOSE_ALERT="CLOSE_ALERT",Fe.OPEN_CONFIRMATION="OPEN_CONFIRMATION",Fe.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",Fe.SHOW_PUBKEY="SHOW_PUBKEY",Fe.FETCH_CONFIG="FETCH_CONFIG",Fe.SHOW_CONFIG="SHOW_CONFIG",Fe.FETCH_STORE="FETCH_STORE",Fe.SET_STORE="SET_STORE",Fe.FETCH_APPLICATION_SETTINGS="FETCH_APPLICATION_SETTINGS",Fe.SET_APPLICATION_SETTINGS="SET_APPLICATION_SETTINGS",Fe.SAVE_SETTINGS="SAVE_SETTINGS",Fe.SET_SELECTED_NODE="SET_SELECTED_NODE",Fe.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",Fe.UPDATE_APPLICATION_SETTINGS="UPDATE_APPLICATION_SETTINGS",Fe.UPDATE_NODE_SETTINGS="UPDATE_NODE_SETTINGS",Fe.SET_SELECTED_NODE_SETTINGS="SET_SELECTED_NODE_SETTINGS",Fe.SET_NODE_DATA="SET_NODE_DATA",Fe.IS_AUTHORIZED="IS_AUTHORIZED",Fe.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",Fe.LOGIN="LOGIN",Fe.VERIFY_TWO_FA="VERIFY_TWO_FA",Fe.LOGOUT="LOGOUT",Fe.RESET_PASSWORD="RESET_PASSWORD",Fe.RESET_PASSWORD_RES="RESET_PASSWORD_RES",Fe.FETCH_FILE="FETCH_FILE",Fe.SHOW_FILE="SHOW_FILE",Fe}(ve||{}),oe=function(Fe){return Fe.RESET_LND_STORE="RESET_LND_STORE",Fe.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",Fe.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",Fe.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",Fe.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",Fe.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",Fe.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",Fe.FETCH_INFO_LND="FETCH_INFO_LND",Fe.SET_INFO_LND="SET_INFO_LND",Fe.FETCH_PEERS_LND="FETCH_PEERS_LND",Fe.SET_PEERS_LND="SET_PEERS_LND",Fe.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",Fe.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",Fe.DETACH_PEER_LND="DETACH_PEER_LND",Fe.REMOVE_PEER_LND="REMOVE_PEER_LND",Fe.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",Fe.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",Fe.ADD_INVOICE_LND="ADD_INVOICE_LND",Fe.FETCH_FEES_LND="FETCH_FEES_LND",Fe.SET_FEES_LND="SET_FEES_LND",Fe.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",Fe.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",Fe.FETCH_NETWORK_LND="FETCH_NETWORK_LND",Fe.SET_NETWORK_LND="SET_NETWORK_LND",Fe.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",Fe.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",Fe.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",Fe.SET_CHANNELS_LND="SET_CHANNELS_LND",Fe.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",Fe.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",Fe.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",Fe.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",Fe.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",Fe.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",Fe.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",Fe.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",Fe.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",Fe.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",Fe.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",Fe.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",Fe.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",Fe.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",Fe.FETCH_INVOICES_LND="FETCH_INVOICES_LND",Fe.SET_INVOICES_LND="SET_INVOICES_LND",Fe.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",Fe.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",Fe.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",Fe.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",Fe.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",Fe.FETCH_UTXOS_LND="FETCH_UTXOS_LND",Fe.SET_UTXOS_LND="SET_UTXOS_LND",Fe.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",Fe.SET_PAYMENTS_LND="SET_PAYMENTS_LND",Fe.SEND_PAYMENT_LND="SEND_PAYMENT_LND",Fe.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",Fe.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",Fe.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",Fe.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",Fe.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",Fe.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",Fe.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",Fe.GEN_SEED_LND="GEN_SEED_LND",Fe.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",Fe.INIT_WALLET_LND="INIT_WALLET_LND",Fe.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",Fe.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",Fe.PEER_LOOKUP_LND="PEER_LOOKUP_LND",Fe.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",Fe.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",Fe.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",Fe.SET_LOOKUP_LND="SET_LOOKUP_LND",Fe.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",Fe.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",Fe.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",Fe.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",Fe.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",Fe.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",Fe}(oe||{}),Se=function(Fe){return Fe.RESET_CLN_STORE="RESET_CLN_STORE",Fe.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",Fe.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",Fe.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",Fe.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",Fe.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",Fe.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",Fe.SET_INFO_CLN="SET_INFO_CLN",Fe.FETCH_FEES_CLN="FETCH_FEES_CLN",Fe.SET_FEES_CLN="SET_FEES_CLN",Fe.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",Fe.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",Fe.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",Fe.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",Fe.FETCH_UTXO_BALANCES_CLN="FETCH_UTXO_BALANCES_CLN",Fe.SET_UTXO_BALANCES_CLN="SET_UTXO_BALANCES_CLN",Fe.FETCH_PEERS_CLN="FETCH_PEERS_CLN",Fe.SET_PEERS_CLN="SET_PEERS_CLN",Fe.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",Fe.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",Fe.ADD_PEER_CLN="ADD_PEER_CLN",Fe.DETACH_PEER_CLN="DETACH_PEER_CLN",Fe.REMOVE_PEER_CLN="REMOVE_PEER_CLN",Fe.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",Fe.SET_CHANNELS_CLN="SET_CHANNELS_CLN",Fe.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",Fe.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",Fe.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",Fe.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",Fe.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",Fe.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",Fe.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",Fe.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",Fe.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",Fe.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",Fe.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",Fe.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",Fe.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",Fe.SET_LOOKUP_CLN="SET_LOOKUP_CLN",Fe.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",Fe.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",Fe.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",Fe.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",Fe.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Fe.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Fe.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",Fe.SET_INVOICES_CLN="SET_INVOICES_CLN",Fe.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",Fe.ADD_INVOICE_CLN="ADD_INVOICE_CLN",Fe.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",Fe.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",Fe.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",Fe.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",Fe.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",Fe.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",Fe.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",Fe.SET_OFFERS_CLN="SET_OFFERS_CLN",Fe.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",Fe.ADD_OFFER_CLN="ADD_OFFER_CLN",Fe.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",Fe.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",Fe.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",Fe.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",Fe.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",Fe.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",Fe.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",Fe}(Se||{}),be=function(Fe){return Fe.RESET_ECL_STORE="RESET_ECL_STORE",Fe.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",Fe.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",Fe.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",Fe.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",Fe.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",Fe.FETCH_INFO_ECL="FETCH_INFO_ECL",Fe.SET_INFO_ECL="SET_INFO_ECL",Fe.FETCH_FEES_ECL="FETCH_FEES_ECL",Fe.SET_FEES_ECL="SET_FEES_ECL",Fe.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",Fe.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",Fe.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",Fe.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",Fe.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",Fe.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",Fe.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",Fe.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",Fe.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",Fe.FETCH_PEERS_ECL="FETCH_PEERS_ECL",Fe.SET_PEERS_ECL="SET_PEERS_ECL",Fe.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",Fe.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",Fe.ADD_PEER_ECL="ADD_PEER_ECL",Fe.DETACH_PEER_ECL="DETACH_PEER_ECL",Fe.REMOVE_PEER_ECL="REMOVE_PEER_ECL",Fe.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",Fe.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",Fe.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",Fe.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",Fe.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",Fe.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",Fe.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",Fe.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",Fe.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",Fe.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",Fe.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",Fe.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",Fe.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",Fe.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",Fe.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",Fe.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",Fe.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",Fe.SET_INVOICES_ECL="SET_INVOICES_ECL",Fe.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",Fe.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",Fe.ADD_INVOICE_ECL="ADD_INVOICE_ECL",Fe.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",Fe.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",Fe.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",Fe.SET_LOOKUP_ECL="SET_LOOKUP_ECL",Fe.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",Fe.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Fe}(be||{});const nt=[{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"},{range:{min:30,max:31},description:"AMP support"},{range:{min:44,max:45},description:"Explicit commitment type"}];var $e=function(Fe){return Fe.gossip_queries_ex="Gossip queries including additional information",Fe.option_anchor_outputs="Anchor outputs",Fe.option_data_loss_protect="Extra channel re-establish fields",Fe.var_onion_optin="Variable-length routing onion payloads",Fe.option_static_remotekey="Static key for remote output",Fe.option_support_large_channel="Create large channels",Fe.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Fe.payment_secret="Payment secret field",Fe.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",Fe.basic_mpp="Basic multi-part payments",Fe.gossip_queries="More sophisticated gossip control",Fe.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",Fe.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Fe.amp="AMP",Fe}($e||{}),dt=function(Fe){return Fe["data-loss-protect"]="Extra channel re-establish fields",Fe["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",Fe["gossip-queries"]="More sophisticated gossip control",Fe["tlv-onion"]="Variable-length routing onion payloads",Fe["ext-gossip-queries"]="Gossip queries can include additional information",Fe["static-remote-key"]="Static key for remote output",Fe["payment-addr"]="Payment secret field",Fe["multi-path-payments"]="Basic multi-part payments",Fe["wumbo-channels"]="Wumbo Channels",Fe.anchors="Anchor outputs",Fe["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",Fe.amp="AMP",Fe}(dt||{});const yt=[{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 Et=function(Fe){return Fe.OFFERED="offered",Fe.SETTLED="settled",Fe.FAILED="failed",Fe.LOCAL_FAILED="local_failed",Fe}(Et||{}),Xt=function(Fe){return Fe.ASCENDING="asc",Fe.DESCENDING="desc",Fe}(Xt||{});const de=["asc","desc"],ae=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:j,sortBy:"blockheight",sortOrder:Xt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:j,sortBy:"blockheight",sortOrder:Xt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:j,sortBy:"msatoshi_to_us",sortOrder:Xt.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:j,sortBy:"state",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]},{tableId:"active_HTLCs",recordsPerPage:j,sortBy:"expiry",sortOrder:Xt.DESCENDING,columnSelectionSM:["amount_msat","direction","expiry"],columnSelection:["amount_msat","direction","expiry","state"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:j,sortBy:"channel_opening_fee",sortOrder:Xt.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:j,sortBy:"created_at",sortOrder:Xt.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:j,sortBy:"expires_at",sortOrder:Xt.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:j,sortBy:"offer_id",sortOrder:Xt.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:j,sortBy:"lastUpdatedAt",sortOrder:Xt.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:j,sortBy:"received_time",sortOrder:Xt.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:j,sortBy:"total_fee",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:j,sortBy:"received_time",sortOrder:Xt.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:j,sortBy:"received_time",sortOrder:Xt.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:j,sortBy:"received_time",sortOrder:Xt.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:j,sortBy:"date",sortOrder:Xt.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:j,sortBy:"msatoshi",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]}],me={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"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount_msat",label:"Amount (Sats)"},{column:"direction"},{column:"id",label:"HTLC ID"},{column:"state"},{column:"expiry"},{column:"payment_hash"},{column:"local_trimmed"}]}},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:"issuer"},{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"}]}}},Le=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:j,sortBy:"tx_id",sortOrder:Xt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:j,sortBy:"time_stamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:j,sortBy:"tx_id",sortOrder:Xt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:j,sortBy:"balancedness",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","local_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","blocks_til_maturity","limbo_balance"],columnSelection:["remote_alias","blocks_til_maturity","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:j,sortBy:"close_type",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:j,sortBy:"incoming",sortOrder:Xt.ASCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:j,sortBy:"creation_date",sortOrder:Xt.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:j,sortBy:"creation_date",sortOrder:Xt.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:j,sortBy:"total_amount",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:j,sortBy:"remote_alias",sortOrder:Xt.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:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:j,sortBy:"date",sortOrder:Xt.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:j,sortBy:"hop_sequence",sortOrder:Xt.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:j,sortBy:"initiation_time",sortOrder:Xt.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:j,sortBy:"status",sortOrder:Xt.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:j,sortBy:"status",sortOrder:Xt.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],et={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"}]}}},tn=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:j,sortBy:"firstPartTimestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:j,sortBy:"receivedAt",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:j,sortBy:"totalFee",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:j,sortBy:"date",sortOrder:Xt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],Vt={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:"isInitiator",label:"Initiator"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{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"}]}}},hn_DKK="\n \n \n \n ",En=[{id:"USD",name:"United States Dollar",iconType:"FA",symbol:p.Vpi},{id:"ARS",name:"Argentina Peso",iconType:"FA",symbol:p.Vpi},{id:"AUD",name:"Australia Dollar",iconType:"FA",symbol:p.Vpi},{id:"BRL",name:"Brazil Real",iconType:"FA",symbol:p.Tq9},{id:"CAD",name:"Canada Dollar",iconType:"FA",symbol:p.Vpi},{id:"CHF",name:"Switzerland Franc",iconType:"FA",symbol:p.zjW},{id:"CLP",name:"Chile Peso",iconType:"FA",symbol:p.Vpi},{id:"CNY",name:"China Yuan Renminbi",iconType:"FA",symbol:p.zPk},{id:"CZK",name:"Czech Republic Koruna",iconType:"SVG",symbol:"\n \n \n \n \n \n \n \n ",class:"currency-icon-x-large"},{id:"DKK",name:"Denmark Krone",iconType:"SVG",symbol:hn_DKK,class:"currency-icon-medium"},{id:"EUR",name:"Euro Member Countries",iconType:"FA",symbol:p.s5m},{id:"GBP",name:"United Kingdom Pound",iconType:"FA",symbol:p.vfE},{id:"HKD",name:"Hong Kong Dollar",iconType:"FA",symbol:p.Vpi},{id:"HRK",name:"Croatia Kuna",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/15766/croatia-kuna-currency-symbol --\x3e\n \n \n \n \n \n ',class:"currency-icon-medium"},{id:"HUF",name:"Hungary Forint",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/183602/forint-business-and-finance --\x3e\n \n \n \n \n \n \n ',class:"currency-icon-small"},{id:"INR",name:"India Rupee",iconType:"FA",symbol:p.FYJ},{id:"ISK",name:"Iceland Krona",iconType:"SVG",symbol:hn_DKK,class:"currency-icon-medium"},{id:"JPY",name:"Japan Yen",iconType:"FA",symbol:p.zPk},{id:"KRW",name:"Korea (South) Won",iconType:"FA",symbol:p.JKM},{id:"NZD",name:"New Zealand Dollar",iconType:"FA",symbol:p.Vpi},{id:"PLN",name:"Poland Zloty",iconType:"SVG",symbol:"\n \n \n \n \n \n \n ",class:"currency-icon-large"},{id:"RON",name:"Romania Leu",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/64526/romania-lei-currency --\x3e\n \n \n \n \n \n ',class:"currency-icon-medium"},{id:"RUB",name:"Russia Ruble",iconType:"FA",symbol:p.f6_},{id:"SEK",name:"Sweden Krona",iconType:"SVG",symbol:hn_DKK,class:"currency-icon-medium"},{id:"SGD",name:"Singapore Dollar",iconType:"FA",symbol:p.Vpi},{id:"THB",name:"Thailand Baht",iconType:"FA",symbol:p.Kcb},{id:"TRY",name:"Turkey Lira",iconType:"FA",symbol:p.hb3},{id:"TWD",name:"Taiwan New Dollar",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/142061/new-taiwan-dollar --\x3e\n \n \n \n \n \n \n ',class:"currency-icon-small"}];function _n(Fe){const Pe=En.find(Ue=>Ue.id===Fe);return"SVG"===Pe.iconType&&"string"==typeof Pe.symbol&&(Pe.symbol=Pe.symbol.replace('ye});var i=l(29330),g=l(21413),p=l(84412),D=l(7673),o=l(18810),e=l(99437),A=l(61594),h=l(96354),d=l(31397),w=l(56977),f=l(53993),F=l(4416),M=l(12462),K=l(11771),j=l(190),Z=l(63536),ee=l(59584),V=l(2615),Q=l(59640),$=l(98570),ie=l(95416),_e=l(72200);let ye=(()=>{var se;class pe{constructor(L,t,s,m,u){this.httpClient=L,this.store=t,this.logger=s,this.snackBar=m,this.titleCasePipe=u,this.APIUrl=F.H$,this.lnImplementation="",this.lnImplementationUpdated=new p.t(null),this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.mapAliases=(_,T)=>(_&&_.length>0?_.forEach((P,C)=>{if(T&&T.length>0)for(let a=0;a{let m;return this.store.dispatch((0,K.mt)({payload:F.MZ.DECODE_PAYMENT})),m="cln"===s?this.httpClient.post(this.APIUrl+"/"+s+F.rl.UTILITY_API+"/decode",{string:L},{headers:{"Content-Type":"application/json"}}):this.httpClient.get(this.APIUrl+"/"+s+F.rl.PAYMENTS_API+"/decode/"+L),m.pipe((0,w.Q)(this.unSubs[0]),(0,h.T)(u=>(this.store.dispatch((0,K.y0)({payload:F.MZ.DECODE_PAYMENT})),u)),(0,e.W)(u=>(t?this.handleErrorWithoutAlert("Decode Payment",F.MZ.DECODE_PAYMENT,u):this.handleErrorWithAlert("decodePaymentData",F.MZ.DECODE_PAYMENT,"Decode Payment Failed",this.APIUrl+"/"+s+("cln"===s?F.rl.UTILITY_API+"/decode":F.rl.PAYMENTS_API+"/decode/"+L),u),(0,o.$)(()=>new Error(this.extractErrorMessage(u))))))}))}decodePayments(L){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(t=>{let s="",m="",u=null;return"ecl"===t?(s=this.APIUrl+"/"+t+F.rl.PAYMENTS_API+"/getsentinfos",u={payments:L},m=F.MZ.GET_SENT_PAYMENTS):"cln"===t?(s=this.APIUrl+"/"+t+F.rl.UTILITY_API+"/decode",u={string:L},m=F.MZ.DECODE_PAYMENTS):(s=this.APIUrl+"/"+t+F.rl.PAYMENTS_API,u={payments:L},m=F.MZ.DECODE_PAYMENTS),this.store.dispatch((0,K.mt)({payload:m})),this.httpClient.post(s,u).pipe((0,w.Q)(this.unSubs[1]),(0,h.T)(_=>(this.store.dispatch((0,K.y0)({payload:m})),_)),(0,e.W)(_=>(this.handleErrorWithAlert("decodePaymentsData",m,m+" Failed",s,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}))}getAliasesFromPubkeys(L,t){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(s=>{if(t){const m=(new i.Nl).set("pubkeys",L);return this.httpClient.get(this.APIUrl+"/"+s+F.rl.NETWORK_API+"/nodes",{params:m})}return this.httpClient.get(this.APIUrl+"/"+s+F.rl.NETWORK_API+"/node/"+L)}))}signMessage(L){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(t=>{let s=this.APIUrl+"/"+t+F.rl.MESSAGE_API+"/sign";return"cln"===t&&(s=this.APIUrl+"/"+t+F.rl.UTILITY_API+"/sign"),this.store.dispatch((0,K.mt)({payload:F.MZ.SIGN_MESSAGE})),this.httpClient.post(s,{message:L}).pipe((0,w.Q)(this.unSubs[2]),(0,h.T)(m=>(this.store.dispatch((0,K.y0)({payload:F.MZ.SIGN_MESSAGE})),m)),(0,e.W)(m=>(this.handleErrorWithAlert("signMessageData",F.MZ.SIGN_MESSAGE,"Sign Message Failed",s,m),(0,o.$)(()=>new Error(this.extractErrorMessage(m))))))}))}verifyMessage(L,t){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(s=>{let m="",u=null;return"cln"===s?(m=this.APIUrl+"/"+s+F.rl.UTILITY_API+"/verify",u={message:L,zbase:t}):(m=this.APIUrl+"/"+s+F.rl.MESSAGE_API+"/verify",u={message:L,signature:t}),this.store.dispatch((0,K.mt)({payload:F.MZ.VERIFY_MESSAGE})),this.httpClient.post(m,u).pipe((0,w.Q)(this.unSubs[3]),(0,h.T)(_=>(this.store.dispatch((0,K.y0)({payload:F.MZ.VERIFY_MESSAGE})),_)),(0,e.W)(_=>(this.handleErrorWithAlert("verifyMessageData",F.MZ.VERIFY_MESSAGE,"Verify Message Failed",m,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}))}bumpFee(L,t,s,m){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(u=>{const _={txid:L,outputIndex:t};return s&&(_.targetConf=s),m&&(_.satPerByte=m),this.store.dispatch((0,K.mt)({payload:F.MZ.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+u+F.rl.WALLET_API+"/bumpfee",_).pipe((0,w.Q)(this.unSubs[4]),(0,h.T)(T=>(this.store.dispatch((0,K.y0)({payload:F.MZ.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),T)),(0,e.W)(T=>(this.handleErrorWithoutAlert("Bump Fee",F.MZ.BUMP_FEE,T),(0,o.$)(()=>new Error(this.extractErrorMessage(T))))))}))}labelUTXO(L,t,s=!0){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(m=>{const u={txid:L,label:t,overwrite:s};return this.store.dispatch((0,K.mt)({payload:F.MZ.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+m+F.rl.WALLET_API+"/label",u).pipe((0,w.Q)(this.unSubs[5]),(0,h.T)(_=>(this.store.dispatch((0,K.y0)({payload:F.MZ.LABEL_UTXO})),_)),(0,e.W)(_=>(this.handleErrorWithoutAlert("Label UTXO",F.MZ.LABEL_UTXO,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}))}leaseUTXO(L,t){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(s=>{const m={txid:L,outputIndex:t};return this.store.dispatch((0,K.mt)({payload:F.MZ.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+s+F.rl.WALLET_API+"/lease",m).pipe((0,w.Q)(this.unSubs[6]),(0,h.T)(u=>{this.store.dispatch((0,K.y0)({payload:F.MZ.LEASE_UTXO})),this.store.dispatch((0,j.mh)()),this.store.dispatch((0,j.SM)());const _=new Date(1e3*u.expiration);return Math.round(_.getTime())-60*_.getTimezoneOffset()}),(0,e.W)(u=>(this.handleErrorWithoutAlert("Lease UTXO",F.MZ.LEASE_UTXO,u),(0,o.$)(()=>new Error(this.extractErrorMessage(u))))))}))}getForwardingHistory(L,t,s,m){if("LND"===L){const u={end_time:s,start_time:t};return this.store.dispatch((0,K.mt)({payload:F.MZ.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+F.rl.SWITCH_API,u).pipe((0,w.Q)(this.unSubs[7]),(0,f.E)(this.store.select(Z.eO)),(0,d.Z)(([_,T])=>{if(_.forwarding_events){const P=[...T.channels,...T.closedChannels];_.forwarding_events.forEach(C=>{if(P&&P.length>0)for(let a=0;a(this.handleErrorWithAlert("getForwardingHistoryData",F.MZ.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+F.rl.SWITCH_API,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}return"CLN"===L?(this.store.dispatch((0,K.mt)({payload:F.MZ.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/cln"+F.rl.CHANNELS_API+"/listForwards",{status:m||"settled"}).pipe((0,w.Q)(this.unSubs[8]),(0,f.E)(this.store.select(ee.BM)),(0,d.Z)(([u,_])=>{const T=this.mapAliases(u,[..._.activeChannels,..._.pendingChannels,..._.inactiveChannels]);return this.store.dispatch((0,K.y0)({payload:F.MZ.GET_FORWARDING_HISTORY})),(0,D.of)(T)}),(0,e.W)(u=>(this.handleErrorWithAlert("getForwardingHistoryData",F.MZ.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+F.rl.CHANNELS_API+"/listForwards",u),(0,o.$)(()=>new Error(this.extractErrorMessage(u))))))):(0,D.of)({})}listNetworkNodes(L){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(t=>(this.store.dispatch((0,K.mt)({payload:F.MZ.LIST_NETWORK_NODES})),this.httpClient.post(this.APIUrl+"/"+t+F.rl.NETWORK_API+"/listNodes",L).pipe((0,w.Q)(this.unSubs[9]),(0,d.Z)(s=>(this.store.dispatch((0,K.y0)({payload:F.MZ.LIST_NETWORK_NODES})),(0,D.of)(s))),(0,e.W)(s=>(this.handleErrorWithoutAlert("List Network Nodes",F.MZ.LIST_NETWORK_NODES,s),(0,o.$)(()=>this.extractErrorMessage(s))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(L=>(this.store.dispatch((0,K.mt)({payload:F.MZ.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+L+F.rl.UTILITY_API+"/listConfigs").pipe((0,w.Q)(this.unSubs[10]),(0,d.Z)(t=>(this.store.dispatch((0,K.y0)({payload:F.MZ.GET_LIST_CONFIGS})),(0,D.of)(t))),(0,e.W)(t=>(this.handleErrorWithoutAlert("List Configurations",F.MZ.GET_LIST_CONFIGS,t),(0,o.$)(()=>this.extractErrorMessage(t))))))))}getOrUpdateFunderPolicy(L,t,s,m,u,_){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(T=>{const P=L?{policy:L,policy_mod:t,lease_fee_base_msat:s,lease_fee_basis:m,channel_fee_max_base_msat:u,channel_fee_max_proportional_thousandths:_}:null;return this.store.dispatch((0,K.mt)({payload:F.MZ.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+T+F.rl.CHANNELS_API+"/funderUpdate",P).pipe((0,w.Q)(this.unSubs[11]),(0,h.T)(C=>(this.store.dispatch((0,K.y0)({payload:F.MZ.GET_FUNDER_POLICY})),P&&this.store.dispatch((0,K.UI)({payload:"Funder Policy Updated Successfully with Compact Lease: "+C.compact_lease+"!"})),C)),(0,e.W)(C=>(this.handleErrorWithoutAlert("Funder Policy",F.MZ.GET_FUNDER_POLICY,C),(0,o.$)(()=>new Error(this.extractErrorMessage(C))))))}))}circularRebalance(L,t="",s="",m="",u="",_=[],T="shortChannelId"){return this.httpClient.post(this.APIUrl+"/"+this.lnImplementation+F.rl.CHANNELS_API+"/circularRebalance",{amountMsat:L,sourceShortChannelId:t,sourceNodeId:s,targetShortChannelId:m,targetNodeId:u,ignoreNodeIds:_,format:T}).pipe((0,w.Q)(this.unSubs[12]),(0,h.T)(a=>a),(0,e.W)(a=>(this.handleErrorWithoutAlert("Rebalance Channel",F.MZ.REBALANCE_CHANNEL,a),(0,o.$)(()=>a.error))))}extractErrorMessage(L,t="Unknown Error."){return this.titleCasePipe.transform(L.error.text&&"string"==typeof L.error.text&&L.error.text.includes('')?"API Route Does Not Exist.":L.error&&L.error.error&&L.error.error.error&&L.error.error.error.error&&L.error.error.error.error.error&&"string"==typeof L.error.error.error.error.error?L.error.error.error.error.error:L.error&&L.error.error&&L.error.error.error&&L.error.error.error.error&&"string"==typeof L.error.error.error.error?L.error.error.error.error:L.error&&L.error.error&&L.error.error.error&&"string"==typeof L.error.error.error?L.error.error.error:L.error&&L.error.error&&"string"==typeof L.error.error?L.error.error:L.error&&"string"==typeof L.error?L.error:L.error&&L.error.error&&L.error.error.error&&L.error.error.error.error&&L.error.error.error.error.message&&"string"==typeof L.error.error.error.error.message?L.error.error.error.error.message:L.error&&L.error.error&&L.error.error.error&&L.error.error.error.message&&"string"==typeof L.error.error.error.message?L.error.error.error.message:L.error&&L.error.error&&L.error.error.message&&"string"==typeof L.error.error.message?L.error.error.message:L.error&&L.error.message&&"string"==typeof L.error.message?L.error.message:L.message&&"string"==typeof L.message?L.message:t)}handleErrorWithoutAlert(L,t,s){s.error.text&&"string"==typeof s.error.text&&s.error.text.includes('')&&(s={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+L+"\n"+JSON.stringify(s)),401===s.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,K.Jh)()),this.store.dispatch((0,K.ri)({payload:"Authentication Failed: "+JSON.stringify(s.error)}))):(this.store.dispatch((0,K.y0)({payload:t})),this.store.dispatch((0,K.Gd)({payload:{action:L,status:F.wn.ERROR,statusCode:s.status.toString(),message:this.extractErrorMessage(s)}})))}handleErrorWithAlert(L,t,s,m,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,K.Jh)()),this.store.dispatch((0,K.ri)({payload:"Authentication Failed: "+JSON.stringify(u.error)}));else{this.store.dispatch((0,K.y0)({payload:t}));const _=this.extractErrorMessage(u);this.store.dispatch((0,K.xO)({payload:{data:{type:"ERROR",alertTitle:s,message:{code:u.status?u.status:"Unknown Error",message:_,URL:m},component:M.f}}})),this.store.dispatch((0,K.Gd)({payload:{action:L,status:F.wn.ERROR,statusCode:u.status.toString(),message:_,URL:m}}))}}ngOnDestroy(){this.unSubs.forEach(L=>{L.next(null),L.complete()})}static#e=se=()=>(this.\u0275fac=function(t){return new(t||pe)(V.KVO(i.Qq),V.KVO(Q.il),V.KVO($.gP),V.KVO(ie.UG),V.KVO(_e.PV))},this.\u0275prov=V.jDH({token:pe,factory:pe.\u0275fac}))}return se(),pe})()},98570(ke,q,l){"use strict";l.d(q,{gP:()=>e,tU:()=>A});var i=l(17705),g=l(2615);const p=(0,i.naY)(),D=()=>null;let e=(()=>{var h;class d{invokeConsoleMethod(f,F){}static#e=h=()=>(this.\u0275fac=function(F){return new(F||d)},this.\u0275prov=g.jDH({token:d,factory:d.\u0275fac}))}return h(),d})(),A=(()=>{var h;class d{get info(){return p?console.log.bind(console):D}get warn(){return p?console.warn.bind(console):D}get error(){return p?console.error.bind(console):D}invokeConsoleMethod(f,F){(console[f]||console.log||D).apply(console,[F])}static#e=h=()=>(this.\u0275fac=function(F){return new(F||d)},this.\u0275prov=g.jDH({token:d,factory:d.\u0275fac}))}return h(),d})()},4104(ke,q,l){"use strict";l.d(q,{Q:()=>Z});var i=l(29330),g=l(21413),p=l(84412),D=l(7673),o=l(18810),e=l(99437),A=l(96354),h=l(56977),d=l(4416),w=l(12462),f=l(11771),F=l(2615),M=l(98570),K=l(59640),j=l(82571);let Z=(()=>{var ee;class V{constructor($,ie,_e,ye){this.httpClient=$,this.logger=ie,this.store=_e,this.commonService=ye,this.loopUrl="",this.swaps=[],this.swapsChanged=new p.t([]),this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}getLoopInfo(){return this.loopUrl=d.H$+d.rl.LOOP_API+"/info",this.httpClient.get(this.loopUrl)}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,f.mt)({payload:d.MZ.GET_LOOP_SWAPS})),this.loopUrl=d.H$+d.rl.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,h.Q)(this.unSubs[0])).subscribe({next:$=>{this.store.dispatch((0,f.y0)({payload:d.MZ.GET_LOOP_SWAPS})),this.swaps=$,this.swapsChanged.next(this.swaps)},error:$=>this.swapsChanged.error(this.handleErrorWithAlert(d.MZ.GET_LOOP_SWAPS,this.loopUrl,$))})}loopOut($,ie,_e,ye,se,pe,Ee,L,t,s){const m={amount:$,targetConf:_e,swapRoutingFee:ye,minerFee:se,prepayRoutingFee:pe,prepayAmt:Ee,swapFee:L,swapPublicationDeadline:t,destAddress:s};return""!==ie&&(m.chanId=ie),this.loopUrl=d.H$+d.rl.LOOP_API+"/out",this.httpClient.post(this.loopUrl,m).pipe((0,e.W)(u=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ie,d.MZ.NO_SPINNER,u)))}getLoopOutTerms(){return this.loopUrl=d.H$+d.rl.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,e.W)($=>this.handleErrorWithoutAlert("Loop Out Terms",d.MZ.NO_SPINNER,$)))}getLoopOutQuote($,ie,_e){let ye=new i.Nl;return ye=ye.append("targetConf",ie.toString()),ye=ye.append("swapPublicationDeadline",_e.toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/out/quote/"+$,this.store.dispatch((0,f.mt)({payload:d.MZ.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ye}).pipe((0,h.Q)(this.unSubs[1]),(0,A.T)(se=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_QUOTE})),se)),(0,e.W)(se=>this.handleErrorWithoutAlert("Loop Out Quote",d.MZ.GET_QUOTE,se)))}getLoopOutTermsAndQuotes($){let ie=new i.Nl;return ie=ie.append("targetConf",$.toString()),ie=ie.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,f.mt)({payload:d.MZ.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,h.Q)(this.unSubs[2]),(0,A.T)(_e=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_TERMS_QUOTES})),_e)),(0,e.W)(_e=>(0,D.of)(this.handleErrorWithAlert(d.MZ.GET_TERMS_QUOTES,this.loopUrl,_e))))}loopIn($,ie,_e,ye,se){const pe={amount:$,swapFee:ie,minerFee:_e,lastHop:ye,externalHtlc:se};return this.loopUrl=d.H$+d.rl.LOOP_API+"/in",this.httpClient.post(this.loopUrl,pe).pipe((0,e.W)(Ee=>this.handleErrorWithoutAlert("Loop In",d.MZ.NO_SPINNER,Ee)))}getLoopInTerms(){return this.loopUrl=d.H$+d.rl.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,e.W)($=>this.handleErrorWithoutAlert("Loop In Terms",d.MZ.NO_SPINNER,$)))}getLoopInQuote($,ie,_e){let ye=new i.Nl;return ye=ye.append("targetConf",ie.toString()),ye=ye.append("swapPublicationDeadline",_e.toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/in/quote/"+$,this.store.dispatch((0,f.mt)({payload:d.MZ.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ye}).pipe((0,h.Q)(this.unSubs[3]),(0,A.T)(se=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_QUOTE})),se)),(0,e.W)(se=>this.handleErrorWithoutAlert("Loop In Qoute",d.MZ.GET_QUOTE,se)))}getLoopInTermsAndQuotes($){let ie=new i.Nl;return ie=ie.append("targetConf",$.toString()),ie=ie.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,f.mt)({payload:d.MZ.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,h.Q)(this.unSubs[4]),(0,A.T)(_e=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_TERMS_QUOTES})),_e)),(0,e.W)(_e=>(0,D.of)(this.handleErrorWithAlert(d.MZ.GET_TERMS_QUOTES,this.loopUrl,_e))))}getSwap($){return this.loopUrl=d.H$+d.rl.LOOP_API+"/swap/"+$,this.httpClient.get(this.loopUrl).pipe((0,e.W)(ie=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+$,d.MZ.NO_SPINNER,ie)))}handleErrorWithoutAlert($,ie,_e){let ye="";return this.logger.error("ERROR IN: "+$+"\n"+JSON.stringify(_e)),this.store.dispatch((0,f.y0)({payload:ie})),401===_e.status?(ye="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.ri)({payload:ye}))):503===_e.status?(ye="Unable to Connect to Loop Server.",this.store.dispatch((0,f.xO)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:$},component:w.f}}}))):ye=this.commonService.extractErrorMessage(_e),(0,o.$)(()=>new Error(ye))}handleErrorWithAlert($,ie,_e){let ye="";if(this.logger.error(_e),this.store.dispatch((0,f.y0)({payload:$})),401===_e.status)ye="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.ri)({payload:ye}));else if(503===_e.status)ye="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:ie},component:w.f}}}))},100);else{ye=this.commonService.extractErrorMessage(_e);const se=_e.error&&_e.error.error&&_e.error.error.code?_e.error.error.code:_e.error&&_e.error.code?_e.error.code:_e.code?_e.code:_e.status;setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{type:d.A$.ERROR,alertTitle:"ERROR",message:{code:se,message:ye,URL:ie},component:w.f}}}))},100)}return{message:ye}}ngOnDestroy(){this.unSubs.forEach($=>{$.next(null),$.complete()})}static#e=ee=()=>(this.\u0275fac=function(ie){return new(ie||V)(F.KVO(i.Qq),F.KVO(M.gP),F.KVO(K.il),F.KVO(j.h))},this.\u0275prov=F.jDH({token:V,factory:V.\u0275fac}))}return ee(),V})()},53202(ke,q,l){"use strict";l.d(q,{Q:()=>p});var i=l(21413),g=l(2615);let p=(()=>{var D;class o{constructor(){this.sessionSub=new i.B}watchSession(){return this.sessionSub.asObservable()}getItem(A){return sessionStorage.getItem(A)}getAllItems(){return sessionStorage}setItem(A,h){sessionStorage.setItem(A,h),this.sessionSub.next(sessionStorage)}removeItem(A){sessionStorage.removeItem(A),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}static#e=D=()=>(this.\u0275fac=function(h){return new(h||o)},this.\u0275prov=g.jDH({token:o,factory:o.\u0275fac}))}return D(),o})()},7879(ke,q,l){"use strict";l.d(q,{I:()=>K});var i=l(84412),g=l(21413),p=l(56977),D=l(47707),o=l(71985),e=l(18359),A=l(92771);const h={url:"",deserializer:j=>JSON.parse(j.data),serializer:j=>JSON.stringify(j)};class w extends g.k{constructor(Z,ee){if(super(),this._socket=null,Z instanceof o.c)this.destination=ee,this.source=Z;else{const V=this._config=Object.assign({},h);if(this._output=new g.B,"string"==typeof Z)V.url=Z;else for(const Q in Z)Z.hasOwnProperty(Q)&&(V[Q]=Z[Q]);if(!V.WebSocketCtor&&WebSocket)V.WebSocketCtor=WebSocket;else if(!V.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new A.m}}lift(Z){const ee=new w(this._config,this.destination);return ee.operator=Z,ee.source=this,ee}_resetState(){this._socket=null,this.source||(this.destination=new A.m),this._output=new g.B}multiplex(Z,ee,V){const Q=this;return new o.c($=>{try{Q.next(Z())}catch(_e){$.error(_e)}const ie=Q.subscribe({next:_e=>{try{V(_e)&&$.next(_e)}catch(ye){$.error(ye)}},error:_e=>$.error(_e),complete:()=>$.complete()});return()=>{try{Q.next(ee())}catch(_e){$.error(_e)}ie.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Z,protocol:ee,url:V,binaryType:Q}=this._config,$=this._output;let ie=null;try{ie=ee?new Z(V,ee):new Z(V),this._socket=ie,Q&&(this._socket.binaryType=Q)}catch(ye){return void $.error(ye)}const _e=new e.yU(()=>{this._socket=null,ie&&1===ie.readyState&&ie.close()});ie.onopen=ye=>{const{_socket:se}=this;if(!se)return ie.close(),void this._resetState();const{openObserver:pe}=this._config;pe&&pe.next(ye);const Ee=this.destination;this.destination=D.vU.create(L=>{if(1===ie.readyState)try{const{serializer:t}=this._config;ie.send(t(L))}catch(t){this.destination.error(t)}},L=>{const{closingObserver:t}=this._config;t&&t.next(void 0),L&&L.code?ie.close(L.code,L.reason):$.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:L}=this._config;L&&L.next(void 0),ie.close(),this._resetState()}),Ee&&Ee instanceof A.m&&_e.add(Ee.subscribe(this.destination))},ie.onerror=ye=>{this._resetState(),$.error(ye)},ie.onclose=ye=>{ie===this._socket&&this._resetState();const{closeObserver:se}=this._config;se&&se.next(ye),ye.wasClean?$.complete():$.error(ye)},ie.onmessage=ye=>{try{const{deserializer:se}=this._config;$.next(se(ye))}catch(se){$.error(se)}}}_subscribe(Z){const{source:ee}=this;return ee?ee.subscribe(Z):(this._socket||this._connectSocket(),this._output.subscribe(Z),Z.add(()=>{const{_socket:V}=this;0===this._output.observers.length&&(V&&(1===V.readyState||0===V.readyState)&&V.close(),this._resetState())}),Z)}unsubscribe(){const{_socket:Z}=this;Z&&(1===Z.readyState||0===Z.readyState)&&Z.close(),this._resetState(),super.unsubscribe()}}var f=l(2615),F=l(98570),M=l(53202);let K=(()=>{var j;class Z{constructor(V,Q){this.logger=V,this.sessionService=Q,this.clWSMessages=new i.t(null),this.eclWSMessages=new i.t(null),this.lndWSMessages=new i.t(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}connectWebSocket(V,Q){(!this.socket||this.socket.closed)&&(this.wsUrl=V,this.nodeIndex=Q,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new w({url:V,protocol:[this.sessionService.getItem("token")||"",Q]}),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(){this.socket?.pipe((0,p.Q)(this.unSubs[1])).subscribe({next:V=>{if((V="string"==typeof V?JSON.parse(V):V).error)this.handleError(V.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(V)),V.source){case"LND":this.lndWSMessages.next(V);break;case"CLN":this.clWSMessages.next(V);break;case"ECL":this.eclWSMessages.next(V)}},error:V=>this.handleError(V),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(V){this.logger.error(V),this.clWSMessages.error(V),this.eclWSMessages.error(V),this.lndWSMessages.error(V),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()}static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)(f.KVO(F.gP),f.KVO(M.Q))},this.\u0275prov=f.jDH({token:Z,factory:Z.\u0275fac}))}return j(),Z})()},19029(ke,q,l){"use strict";l.d(q,{G:()=>Er});var i=l(72200),g=l(38132),p=l(89417),D=l(20060),o=l(99327),e=l(3),A=l(19945),h=l(51585),d=l(22628),w=l(1975),f=l(88834),F=l(89726),M=l(76838),V=(l(61577),l(83869),l(67336),l(10438),l(88968)),Q=l(73664),$=l(2615),ie=l(17705),_e=l(12496),ye=l(63386),se=l(31804),pe=l(32046),Ee=l(22466),L=l(26881);const t=["button"],s=["*"];function m(Kt,Vn){if(1&Kt&&(Q.j41(0,"div",2),Q.nrm(1,"mat-pseudo-checkbox",6),Q.k0s()),2&Kt){const _t=Q.XpG();Q.R7$(),Q.Y8G("disabled",_t.disabled)}}const u=new $.nKC("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:function _(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}}),T=new $.nKC("MatButtonToggleGroup");class C{source;value;constructor(Vn,_t){this.source=Vn,this.value=_t}}let x=(()=>{class Kt{_changeDetectorRef=(0,$.WQX)(ie.gRc);_elementRef=(0,$.WQX)(Q.aKT);_focusMonitor=(0,$.WQX)(M.FN);_idGenerator=(0,$.WQX)(F.g);_animationDisabled=(0,se.Rc)();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(_t){this._tabIndex.set(_t)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(_t){this._appearance=_t}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(_t){_t!==this._checked&&(this._checked=_t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(_t){this._disabled=_t}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||null!==this.buttonToggleGroup&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(_t){this._disabledInteractive=_t}_disabledInteractive;change=new Q.bkB;constructor(){(0,$.WQX)(V.l).load(pe.A);const _t=(0,$.WQX)(T,{optional:!0}),xn=(0,$.WQX)(new ie.ES_("tabindex"),{optional:!0})||"",Bn=(0,$.WQX)(u,{optional:!0});this._tabIndex=(0,$.vPA)(parseInt(xn)||0),this.buttonToggleGroup=_t,this.appearance=Bn&&Bn.appearance?Bn.appearance:"standard",this.disabledInteractive=Bn?.disabledInteractive??!1}ngOnInit(){const _t=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),_t&&(_t._isPrechecked(this)?this.checked=!0:_t._isSelected(this)!==this._checked&&_t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const _t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),_t&&_t._isSelected(this)&&_t._syncButtonToggle(this,!1,!1,!0)}focus(_t){this._buttonElement.nativeElement.focus(_t)}_onButtonClick(){if(this.disabled)return;const _t=!!this.isSingleSelector()||!this._checked;if(_t!==this._checked&&(this._checked=_t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){const xn=this.buttonToggleGroup._buttonToggles.find(Bn=>0===Bn.tabIndex);xn&&(xn.tabIndex=-1),this.tabIndex=0}this.change.emit(new C(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(xn){return new(xn||Kt)};static \u0275cmp=Q.VBU({type:Kt,selectors:[["mat-button-toggle"]],viewQuery:function(xn,Bn){if(1&xn&&Q.GBs(t,5),2&xn){let wi;Q.mGM(wi=Q.lsd())&&(Bn._buttonElement=wi.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(xn,Bn){1&xn&&Q.bIt("focus",function(){return Bn.focus()}),2&xn&&(Q.BMQ("aria-label",null)("aria-labelledby",null)("id",Bn.id)("name",null),Q.AVh("mat-button-toggle-standalone",!Bn.buttonToggleGroup)("mat-button-toggle-checked",Bn.checked)("mat-button-toggle-disabled",Bn.disabled)("mat-button-toggle-disabled-interactive",Bn.disabledInteractive)("mat-button-toggle-appearance-standard","standard"===Bn.appearance))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",ie.L39],appearance:"appearance",checked:[2,"checked","checked",ie.L39],disabled:[2,"disabled","disabled",ie.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",ie.L39]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:s,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(xn,Bn){if(1&xn){const wi=Q.RV6();Q.NAR(),Q.j41(0,"button",1,0),Q.bIt("click",function(){return $.eBV(wi),$.Njj(Bn._onButtonClick())}),Q.nVh(2,m,2,1,"div",2),Q.j41(3,"span",3),Q.SdG(4),Q.k0s()(),Q.nrm(5,"span",4)(6,"span",5)}if(2&xn){const wi=Q.sdS(1);Q.Y8G("id",Bn.buttonId)("disabled",Bn.disabled&&!Bn.disabledInteractive||null),Q.BMQ("role",Bn.isSingleSelector()?"radio":"button")("tabindex",Bn.disabled&&!Bn.disabledInteractive?-1:Bn.tabIndex)("aria-pressed",Bn.isSingleSelector()?null:Bn.checked)("aria-checked",Bn.isSingleSelector()?Bn.checked:null)("name",Bn._getButtonName())("aria-label",Bn.ariaLabel)("aria-labelledby",Bn.ariaLabelledby)("aria-disabled",Bn.disabled&&Bn.disabledInteractive?"true":null),Q.R7$(2),Q.vxM(Bn.buttonToggleGroup&&(!Bn.buttonToggleGroup.multiple&&!Bn.buttonToggleGroup.hideSingleSelectionIndicator||Bn.buttonToggleGroup.multiple&&!Bn.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),Q.R7$(4),Q.Y8G("matRippleTrigger",wi)("matRippleDisabled",Bn.disableRipple||Bn.disabled)}},dependencies:[_e.r6,ye.w],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}\n"],encapsulation:2,changeDetection:0})}return Kt})(),Y=(()=>{class Kt{static \u0275fac=function(xn){return new(xn||Kt)};static \u0275mod=Q.$C({type:Kt});static \u0275inj=$.G2t({imports:[Ee.y,L.p,x,Ee.y]})}return Kt})();var R=l(25596),U=l(82765),fe=l(25084),re=l(9454),he=l(82885),Oe=l(12629),ge=l(33746),ce=l(3902),Re=l(59115),Me=l(96695),ve=l(67575),oe=l(9183),Se=l(5951),be=l(96183),nt=l(90882),$e=l(30450),dt=l(39842);l(21413);let It=(()=>{class Kt{static \u0275fac=function(xn){return new(xn||Kt)};static \u0275mod=Q.$C({type:Kt});static \u0275inj=$.G2t({imports:[Ee.y,L.p]})}return Kt})();var wn=l(95416),In=l(2042),ei=l(36013),Li=l(19295),kt=l(96850),Ot=l(55911),Ze=l(86156),Ge=l(47358),Pt=l(36471),Yt=l(29340),bn=l(16038),$n=l(52920);l(14085);let Aa=(()=>{class Kt{}return Kt.\u0275fac=function(_t){return new(_t||Kt)},Kt.\u0275mod=Q.$C({type:Kt}),Kt.\u0275inj=$.G2t({imports:[Yt.Ui]}),Kt})();var Ha=l(60177);let ks=(()=>{class Kt{constructor(_t,xn){(0,Ha.Vy)(xn)&&!_t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(_t,xn=[]){return{ngModule:Kt,providers:_t.serverLoaded?[{provide:Yt.EA,useValue:{...Yt.PV,..._t}},{provide:Yt.SL,useValue:xn,multi:!0},{provide:Yt.Ce,useValue:!0}]:[{provide:Yt.EA,useValue:{...Yt.PV,..._t}},{provide:Yt.SL,useValue:xn,multi:!0}]}}}return Kt.\u0275fac=function(_t){return new(_t||Kt)($.KVO(Yt.Ce),$.KVO(Q.Agw))},Kt.\u0275mod=Q.$C({type:Kt}),Kt.\u0275inj=$.G2t({imports:[$n.w2,bn.Cc,Aa,$n.w2,bn.Cc,Aa]}),Kt})();var Rs=l(51993),Nr=l(38288),Ws=l(10497),Qr=l(49338);let Es=(()=>{var Kt;class Vn extends Qr.Sf{constructor(xn,Bn){super(xn,Bn)}_createContainer(){super._createContainer(),this._containerElement&&(document.querySelector("#rtl-container")||document.body).appendChild(this._containerElement)}ngOnDestroy(){super.ngOnDestroy()}static#e=Kt=()=>(this.\u0275fac=function(Bn){return new(Bn||Vn)(Q.rXU($.qQL),Q.rXU(dt.O))},this.\u0275dir=Q.FsC({type:Vn,features:[Q.Vt3]}))}return Kt(),Vn})();var ct=l(98570),pt=l(4416),Ve=l(52929),Rt=l(29330);const vn={suppressScrollX:!1,suppressScrollY:!1};let Ni=(()=>{var Kt;class Vn extends e.xW{constructor(xn){super(xn)}format(xn,Bn){if("input"===Bn){let wi=xn.getDate().toString();return wi=+wi<10?"0"+wi:wi,wi+"/"+pt.KR[xn.getMonth()].name.toUpperCase()+"/"+xn.getFullYear()}return pt.KR[xn.getMonth()].name.toUpperCase()+" "+xn.getFullYear()}static#e=Kt=()=>(this.\u0275fac=function(Bn){return new(Bn||Vn)($.KVO(A.Ju,8))},this.\u0275prov=$.jDH({token:Vn,factory:Vn.\u0275fac}))}return Kt(),Vn})();const ca={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 Er=(()=>{var Kt;class Vn{static#e=Kt=()=>(this.\u0275fac=function(Bn){return new(Bn||Vn)},this.\u0275mod=Q.$C({type:Vn}),this.\u0275inj=$.G2t({providers:[{provide:ct.gP,useClass:ct.tU},{provide:Ws.kU,useValue:vn},{provide:wn.x6,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:h.di,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog"}},{provide:A.MJ,useClass:Ni},{provide:A.de,useValue:ca},{provide:Qr.Sf,useClass:Es},i.QX,i.PV,i.vh,Ve.gZ,Ve.ZE,Ve.VD,Ve.Qu],imports:[i.MD,Rt.q1,p.YN,p.X1,D.dX,o.RH,h.hM,f.Hl,Y,R.Hu,U.g7,re.MY,he.Fe,fe.X6,e.WX,Oe.m_,ge.fS,ce.Fg,Re.Cn,ve.PO,oe.D6,Se.Wk,Ge.jH,ks,Pt.YN,be.Ve,nt.vg,$e.mV,In.NQ,Li.tP,Ot.s5,Ze.u,w.Y,Me.Ou,ei.aP,It,kt.RI,wn._T,d.jL,Rs.dV,Nr.XK,g.iI,Ws.U$,p.YN,p.X1,D.dX,o.RH,h.hM,f.Hl,Y,R.Hu,U.g7,re.MY,he.Fe,fe.X6,e.WX,Oe.m_,ge.fS,ce.Fg,Re.Cn,ve.PO,oe.D6,Se.Wk,Ge.jH,ks,Pt.YN,be.Ve,nt.vg,$e.mV,In.NQ,Li.tP,Ot.s5,Ze.u,w.Y,Me.Ou,ei.aP,It,kt.RI,wn._T,d.jL,Rs.dV,Nr.XK,Ws.U$]}))}return Kt(),Vn})()},11771(ke,q,l){"use strict";l.d(q,{Dz:()=>j,Fl:()=>se,Gd:()=>o,I1:()=>F,IK:()=>Q,Jh:()=>e,My:()=>D,NU:()=>V,Np:()=>_e,OP:()=>K,Qi:()=>$,R$:()=>f,T$:()=>ie,Tn:()=>ee,UI:()=>A,iD:()=>m,mt:()=>h,oz:()=>t,rc:()=>ye,ri:()=>pe,t2:()=>_,uP:()=>M,xO:()=>w,xw:()=>Ee,y0:()=>d});var i=l(59640),g=l(4416);(0,i.VP)(g.aU.VOID);const D=(0,i.VP)(g.aU.SET_API_URL_ECL,(0,i.xk)()),o=(0,i.VP)(g.aU.UPDATE_API_CALL_STATUS_ROOT,(0,i.xk)()),e=(0,i.VP)(g.aU.CLOSE_ALL_DIALOGS),A=(0,i.VP)(g.aU.OPEN_SNACK_BAR,(0,i.xk)()),h=(0,i.VP)(g.aU.OPEN_SPINNER,(0,i.xk)()),d=(0,i.VP)(g.aU.CLOSE_SPINNER,(0,i.xk)()),w=(0,i.VP)(g.aU.OPEN_ALERT,(0,i.xk)()),f=(0,i.VP)(g.aU.CLOSE_ALERT,(0,i.xk)()),F=(0,i.VP)(g.aU.OPEN_CONFIRMATION,(0,i.xk)()),M=(0,i.VP)(g.aU.CLOSE_CONFIRMATION,(0,i.xk)()),K=(0,i.VP)(g.aU.SHOW_PUBKEY),j=(0,i.VP)(g.aU.FETCH_CONFIG,(0,i.xk)()),ee=((0,i.VP)(g.aU.SHOW_CONFIG,(0,i.xk)()),(0,i.VP)(g.aU.RESET_ROOT_STORE,(0,i.xk)())),V=(0,i.VP)(g.aU.FETCH_APPLICATION_SETTINGS),Q=(0,i.VP)(g.aU.SET_APPLICATION_SETTINGS,(0,i.xk)()),$=(0,i.VP)(g.aU.SET_SELECTED_NODE,(0,i.xk)()),ie=(0,i.VP)(g.aU.UPDATE_NODE_SETTINGS,(0,i.xk)()),_e=(0,i.VP)(g.aU.SET_SELECTED_NODE_SETTINGS,(0,i.xk)()),ye=(0,i.VP)(g.aU.UPDATE_APPLICATION_SETTINGS,(0,i.xk)()),se=(0,i.VP)(g.aU.SET_NODE_DATA,(0,i.xk)()),pe=(0,i.VP)(g.aU.LOGOUT,(0,i.xk)()),Ee=(0,i.VP)(g.aU.RESET_PASSWORD,(0,i.xk)()),t=((0,i.VP)(g.aU.RESET_PASSWORD_RES,(0,i.xk)()),(0,i.VP)(g.aU.IS_AUTHORIZED,(0,i.xk)())),m=((0,i.VP)(g.aU.IS_AUTHORIZED_RES,(0,i.xk)()),(0,i.VP)(g.aU.LOGIN,(0,i.xk)())),_=((0,i.VP)(g.aU.VERIFY_TWO_FA,(0,i.xk)()),(0,i.VP)(g.aU.FETCH_FILE,(0,i.xk)()));(0,i.VP)(g.aU.SHOW_FILE,(0,i.xk)())},37541(ke,q,l){"use strict";l.d(q,{H:()=>ui});var i=l(17705),g=l(11747),p=l(21413),D=l(7673),o=l(96354),e=l(96697),A=l(53993),h=l(31397),d=l(99437),w=l(56977),f=l(4416),F=l(51585),M=l(73664),K=l(9183),j=l(52920);let Z=(()=>{var gn;class zn{constructor(Kn,ci){this.dialogRef=Kn,this.data=ci}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-spinner-dialog"]],standalone:!1,decls:4,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"spinner-container"],["color","primary","mode","indeterminate",1,"modal-spinner-message"]],template:function(ci,Xn){1&ci&&(M.j41(0,"div",0),M.nrm(1,"mat-progress-spinner",1),M.j41(2,"h2"),M.EFF(3),M.k0s()()),2&ci&&(M.R7$(3),M.JRh(Xn.data.titleMessage))},dependencies:[K.LG,j.DJ,j.sA],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]}))}return gn(),zn})();var ee=l(45383),V=l(79647),Q=l(2615),$=l(98570),ie=l(95416),_e=l(82571),ye=l(43694),se=l(59640),pe=l(72200),Ee=l(20060),L=l(88834),t=l(25596),s=l(12629),m=l(71997),u=l(16038),_=l(40455),T=l(38288),P=l(10497),C=l(29157),a=l(89587);const x=["scrollContainer"],Y=gn=>({"display-none":gn}),R=gn=>({"h-40":gn}),U=gn=>({"failed-status":gn});function fe(gn,zn){if(1&gn&&M.nrm(0,"qr-code",19),2&gn){const kn=M.XpG();M.Y8G("value",kn.showQRField)("size",200)}}function re(gn,zn){1&gn&&M.eu8(0)}function he(gn,zn){if(1&gn&&(M.qex(0),M.j41(1,"mat-card-content",20,1),M.DNE(3,re,1,0,"ng-container",21),M.k0s(),M.bVm()),2&gn){const kn=M.XpG(),Kn=M.sdS(20);M.R7$(),M.Y8G("ngClass",M.eq3(2,R,kn.data.scrollable)),M.R7$(2),M.Y8G("ngTemplateOutlet",Kn)}}function Oe(gn,zn){1&gn&&M.eu8(0)}function ge(gn,zn){if(1&gn&&(M.qex(0),M.j41(1,"mat-card-content",22),M.DNE(2,Oe,1,0,"ng-container",21),M.k0s(),M.bVm()),2&gn){M.XpG();const kn=M.sdS(20);M.R7$(2),M.Y8G("ngTemplateOutlet",kn)}}function ce(gn,zn){1&gn&&(M.j41(0,"mat-icon",27),M.EFF(1,"arrow_downward"),M.k0s())}function Re(gn,zn){1&gn&&(M.j41(0,"mat-icon",28),M.EFF(1,"arrow_upward"),M.k0s())}function Me(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"div",23)(1,"button",24),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onScroll())}),M.DNE(2,ce,2,0,"mat-icon",25)(3,Re,2,0,"mat-icon",26),M.k0s()()}if(2&gn){const kn=M.XpG();M.R7$(2),M.Y8G("ngIf","DOWN"===kn.scrollDirection),M.R7$(),M.Y8G("ngIf","UP"===kn.scrollDirection)}}function ve(gn,zn){1&gn&&(M.j41(0,"button",29),M.EFF(1,"OK"),M.k0s()),2&gn&&M.Y8G("mat-dialog-close",!1)}function oe(gn,zn){1&gn&&(M.j41(0,"button",30),M.EFF(1,"Close"),M.k0s()),2&gn&&M.Y8G("mat-dialog-close",!1)}function Se(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",31),M.bIt("copied",function(ci){Q.eBV(kn);const Xn=M.XpG();return Q.Njj(Xn.onCopyField(ci))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.Y8G("payload",kn.showCopyField),M.R7$(),M.SpI("Copy ",kn.showCopyName)}}function be(gn,zn){1&gn&&(M.j41(0,"button",30),M.EFF(1,"Close"),M.k0s()),2&gn&&M.Y8G("mat-dialog-close",!1)}function nt(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",31),M.bIt("copied",function(ci){Q.eBV(kn);const Xn=M.XpG();return Q.Njj(Xn.onCopyField(ci))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.Y8G("payload",kn.showQRField),M.R7$(),M.SpI("Copy ",kn.showQRName)}}function $e(gn,zn){if(1&gn&&M.nrm(0,"qr-code",19),2&gn){const kn=M.XpG(2);M.Y8G("value",kn.showQRField)("size",200)}}function dt(gn,zn){if(1&gn&&(M.j41(0,"p",37),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG(2);M.R7$(),M.JRh(kn.data.titleMessage)}}function yt(gn,zn){1&gn&&M.nrm(0,"span",51),2&gn&&M.Y8G("innerHTML",zn.$implicit,M.npT)}function Et(gn,zn){if(1&gn&&(M.qex(0),M.j41(1,"span",34),M.DNE(2,yt,1,1,"span",50),M.k0s(),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(2),M.Y8G("ngForOf",kn.value)}}function rt(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"date"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,1e3*kn.value,"dd/MMM/y HH:mm"))}}function Mn(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"number"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,kn.value,kn.digitsInfo?kn.digitsInfo:"1.0-3"))}}function qt(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(kn.value?"True":"False")}}function S(gn,zn){1&gn&&(M.j41(0,"mat-icon",55),M.EFF(1,"info"),M.k0s())}function Xt(gn,zn){if(1&gn&&(M.j41(0,"p",53),M.EFF(1),M.DNE(2,S,2,0,"mat-icon",54),M.k0s()),2&gn){const kn=M.XpG(3).$implicit,Kn=M.XpG(4);M.Y8G("ngClass",M.eq3(3,U,kn.value===Kn.LoopStateEnum.FAILED)),M.R7$(),M.SpI(" ",kn.value," "),M.R7$(),M.Y8G("ngIf",kn.value===Kn.LoopStateEnum.FAILED)}}function de(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"p",57),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG(8);return Q.Njj(ci.onGoToLink())}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG(4).$implicit,Kn=M.XpG(4);M.Y8G("matTooltip",M.mNQ("Go To "+Kn.goToName)),M.R7$(),M.SpI(" ",kn.value," ")}}function ae(gn,zn){if(1&gn&&M.EFF(0),2&gn){const kn=M.XpG(4).$implicit;M.SpI(" ",kn.value," ")}}function me(gn,zn){if(1&gn&&M.DNE(0,de,2,3,"p",56)(1,ae,1,1,"ng-template",null,4,M.C5r),2&gn){const kn=M.sdS(2),Kn=M.XpG(3).$implicit,ci=M.XpG(4);M.Y8G("ngIf",Kn.value===ci.goToFieldValue)("ngIfElse",kn)}}function Le(gn,zn){if(1&gn&&(M.qex(0),M.DNE(1,Xt,3,5,"p",52)(2,me,3,2,"ng-template",null,3,M.C5r),M.bVm()),2&gn){const kn=M.sdS(3),Kn=M.XpG(2).$implicit,ci=M.XpG(4);M.R7$(),M.Y8G("ngIf","SWAP"===ci.data.openedBy&&"state"===Kn.key)("ngIfElse",kn)}}function et(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"fa-icon",58),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG(2).$implicit,Xn=M.XpG(4);return Q.Njj(Xn.onExplorerClicked(ci))}),M.k0s()}if(2&gn){const kn=M.XpG(6);M.Y8G("matTooltip",M.mNQ("Link to "+kn.selNode.settings.blockExplorerUrl))("icon",kn.faUpRightFromSquare)}}function tn(gn,zn){if(1&gn&&(M.j41(0,"span")(1,"span",46),M.DNE(2,Et,3,1,"ng-container",47)(3,rt,3,4,"ng-container",47)(4,Mn,3,4,"ng-container",47)(5,qt,2,1,"ng-container",47)(6,Le,4,2,"ng-container",48),M.j41(7,"span"),M.DNE(8,et,1,3,"fa-icon",49),M.k0s()()()),2&gn){const kn=M.XpG().$implicit,Kn=M.XpG(4);M.R7$(),M.Y8G("ngSwitch",kn.type),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.ARRAY),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.DATE_TIME),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.NUMBER),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.BOOLEAN),M.R7$(3),M.Y8G("ngIf",kn.explorerLink&&""!==kn.explorerLink)}}function Vt(gn,zn){1&gn&&(M.j41(0,"span",59),M.EFF(1,"\xa0"),M.k0s())}function hn(gn,zn){if(1&gn&&(M.j41(0,"div",42)(1,"h4",43),M.EFF(2),M.k0s(),M.DNE(3,tn,9,6,"span",44)(4,Vt,2,0,"ng-template",null,2,M.C5r),M.nrm(6,"mat-divider",45),M.k0s()),2&gn){const kn=zn.$implicit,Kn=M.sdS(5);M.Y8G("fxFlex.gt-md",M.mNQ(kn.width)),M.R7$(2),M.JRh(kn.title),M.R7$(),M.Y8G("ngIf",kn&&(!!kn.value||0===kn.value))("ngIfElse",Kn)}}function En(gn,zn){if(1&gn&&(M.j41(0,"div")(1,"div",40),M.DNE(2,hn,7,5,"div",41),M.k0s()()),2&gn){const kn=zn.$implicit;M.R7$(2),M.Y8G("ngForOf",kn)}}function _n(gn,zn){if(1&gn&&(M.j41(0,"div",38),M.DNE(1,En,3,1,"div",39),M.k0s()),2&gn){const kn=M.XpG(2);M.R7$(),M.Y8G("ngForOf",kn.messageObjs)}}function tt(gn,zn){if(1&gn&&(M.j41(0,"div",32)(1,"div",33),M.DNE(2,$e,1,2,"qr-code",7),M.k0s(),M.j41(3,"div",34),M.DNE(4,dt,2,1,"p",35)(5,_n,2,1,"div",36),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("ngClass",M.eq3(4,Y,""===kn.showQRField||kn.screenSize!==kn.screenSizeEnum.XS&&kn.screenSize!==kn.screenSizeEnum.SM)),M.R7$(),M.Y8G("ngIf",""!==kn.showQRField),M.R7$(2),M.Y8G("ngIf",kn.data.titleMessage),M.R7$(),M.Y8G("ngIf",(null==kn.messageObjs?null:kn.messageObjs.length)>0)}}let Fe=(()=>{var gn;class zn{set container(Kn){Kn&&(this.scrollContainer=Kn,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",ci=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",ci=>{this.scrollDirection="DOWN"})))}constructor(Kn,ci,Xn,aa,sa,ma,ua,dn){this.dialogRef=Kn,this.data=ci,this.logger=Xn,this.snackBar=aa,this.commonService=sa,this.renderer=ma,this.router=ua,this.store=dn,this.faUpRightFromSquare=ee.k02,this.LoopStateEnum=f.Hx,this.goToFieldValue="",this.goToName="",this.goToLink="",this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=f.A$,this.dataTypeEnum=f.UN,this.screenSize="",this.screenSizeEnum=f.f7,this.scrollDirection="DOWN",this.shouldScroll=!0,this.unSubs=[new p.B,new p.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.goToFieldValue=this.data.goToFieldValue?this.data.goToFieldValue:"",this.goToName=this.data.goToName?this.data.goToName:"",this.goToLink=this.data.goToLink?this.data.goToLink:"",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===f.A$.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs),this.store.select(V._c).pipe((0,w.Q)(this.unSubs[0])).subscribe(Kn=>{this.selNode=Kn,this.logger.info(this.selNode)})}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(Kn){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+Kn)}onClose(){this.dialogRef.close(!1)}onGoToLink(){this.router.navigateByUrl(this.goToLink,{state:{lookupType:"0",lookupValue:this.goToFieldValue}}),this.onClose()}onExplorerClicked(Kn){window.open(this.selNode.settings.blockExplorerUrl+"/"+Kn.explorerLink+"/"+Kn.value,"_blank")}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd(),this.unSubs.forEach(Kn=>{Kn.next(null),Kn.complete()})}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh),M.rXU($.gP),M.rXU(ie.UG),M.rXU(_e.h),M.rXU(M.sFG),M.rXU(ye.Ix),M.rXU(se.il))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-alert-message"]],viewQuery:function(ci,Xn){if(1&ci&&M.GBs(x,5),2&ci){let aa;M.mGM(aa=M.lsd())&&(Xn.container=aa.first)}},standalone:!1,decls:21,vars:14,consts:[["contentBlock",""],["scrollContainer",""],["emptyField",""],["noStyleBlock",""],["noStyleChild",""],["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"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],[3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center 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"],["errorCorrectionLevel","L",3,"value","size"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],[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"],["class","arrow-downward","fxLayoutAlign","center center",4,"ngIf"],["class","arrow-upward","fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center",1,"arrow-downward"],["fxLayoutAlign","center center",1,"arrow-upward"],["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,"copied","payload"],["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"],[1,"w-100","my-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","ml-1 fa-icon-primary",3,"matTooltip","icon","click",4,"ngIf"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxLayout","row","class","go-to-link","tabindex","4",3,"matTooltip","click",4,"ngIf","ngIfElse"],["fxLayout","row","tabindex","4",1,"go-to-link",3,"click","matTooltip"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(ci,Xn){if(1&ci){const aa=M.RV6();M.j41(0,"div",5)(1,"div",6),M.DNE(2,fe,1,2,"qr-code",7),M.k0s(),M.j41(3,"div",8)(4,"mat-card-header",9)(5,"div",10)(6,"span",11),M.EFF(7),M.k0s()(),M.j41(8,"button",12),M.bIt("click",function(){return Q.eBV(aa),Q.Njj(Xn.onClose())}),M.EFF(9,"X"),M.k0s()(),M.DNE(10,he,4,4,"ng-container",13)(11,ge,3,1,"ng-container",13)(12,Me,4,2,"div",14),M.j41(13,"div",15),M.DNE(14,ve,2,1,"button",16)(15,oe,2,1,"button",17)(16,Se,2,2,"button",18)(17,be,2,1,"button",17)(18,nt,2,2,"button",18),M.k0s()()(),M.DNE(19,tt,6,6,"ng-template",null,0,M.C5r)}2&ci&&(M.R7$(),M.Y8G("ngClass",M.eq3(12,Y,""===Xn.showQRField||Xn.screenSize===Xn.screenSizeEnum.XS||Xn.screenSize===Xn.screenSizeEnum.SM)),M.R7$(),M.Y8G("ngIf",""!==Xn.showQRField),M.R7$(),M.Y8G("ngClass",""===Xn.showQRField||Xn.screenSize===Xn.screenSizeEnum.XS||Xn.screenSize===Xn.screenSizeEnum.SM?"flex-100":"flex-70"),M.R7$(4),M.JRh(Xn.data.alertTitle||Xn.alertTypeEnum[Xn.data.type]),M.R7$(3),M.Y8G("ngIf",Xn.data.scrollable),M.R7$(),M.Y8G("ngIf",!Xn.data.scrollable),M.R7$(),M.Y8G("ngIf",Xn.data.scrollable&&Xn.shouldScroll),M.R7$(2),M.Y8G("ngIf",(!Xn.showQRField||""===Xn.showQRField)&&""===Xn.showCopyName),M.R7$(),M.Y8G("ngIf",""!==Xn.showCopyName),M.R7$(),M.Y8G("ngIf",""!==Xn.showCopyName),M.R7$(),M.Y8G("ngIf",""!==Xn.showQRField),M.R7$(),M.Y8G("ngIf",""!==Xn.showQRField))},dependencies:[pe.YU,pe.Sq,pe.bT,pe.T3,pe.ux,pe.e1,pe.fG,Ee.aY,F.tx,L.$z,L.$0,t.m2,t.MM,s.An,m.q,j.DJ,j.sA,j.UI,u.PW,_.oV,T.Um,P.Ld,C.U,a.N,pe.QX,pe.vh],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}))}return gn(),zn})();var Pe=l(11771),Ue=l(89417),Qe=l(33746),Ie=l(69588),le=l(56114);function Ne(gn,zn){if(1&gn&&(M.j41(0,"div",20),M.nrm(1,"fa-icon",21),M.j41(2,"span"),M.EFF(3),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("icon",kn.faExclamationTriangle),M.R7$(2),M.JRh(kn.warningMessage)}}function ze(gn,zn){if(1&gn&&(M.j41(0,"div",22),M.nrm(1,"fa-icon",21),M.j41(2,"span"),M.EFF(3),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("icon",kn.faInfoCircle),M.R7$(2),M.JRh(kn.informationMessage)}}function Je(gn,zn){if(1&gn&&(M.j41(0,"p",23),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG();M.R7$(),M.JRh(kn.data.titleMessage)}}function gt(gn,zn){1&gn&&M.nrm(0,"div",37),2&gn&&M.Y8G("innerHTML",zn.$implicit,M.npT)}function zt(gn,zn){if(1&gn&&(M.qex(0,35),M.DNE(1,gt,1,1,"div",36),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.Y8G("ngForOf",kn.value)}}function Ye(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"date"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,1e3*kn.value,"dd/MMM/y HH:mm"))}}function st(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"number"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,kn.value,"1.0-3"))}}function it(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(!0===kn.value?"True":"False")}}function He(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(kn.value)}}function Wt(gn,zn){if(1&gn&&(M.j41(0,"span")(1,"span",31),M.DNE(2,zt,2,1,"ng-container",32)(3,Ye,3,4,"ng-container",33)(4,st,3,4,"ng-container",33)(5,it,2,1,"ng-container",33)(6,He,2,1,"ng-container",34),M.k0s()()),2&gn){const kn=M.XpG().$implicit,Kn=M.XpG(3);M.R7$(),M.Y8G("ngSwitch",kn.type),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.ARRAY),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.DATE_TIME),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.NUMBER),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.BOOLEAN)}}function we(gn,zn){1&gn&&(M.j41(0,"span",38),M.EFF(1,"\xa0"),M.k0s())}function We(gn,zn){if(1&gn&&(M.j41(0,"div",27)(1,"h4",28),M.EFF(2),M.k0s(),M.DNE(3,Wt,7,5,"span",29)(4,we,2,0,"ng-template",null,0,M.C5r),M.nrm(6,"mat-divider",30),M.k0s()),2&gn){const kn=zn.$implicit,Kn=M.sdS(5);M.Y8G("fxFlex.gt-md",M.mNQ(kn.width)),M.R7$(2),M.JRh(kn.title),M.R7$(),M.Y8G("ngIf",kn&&(!!kn.value||0===kn.value))("ngIfElse",Kn)}}function Lt(gn,zn){if(1&gn&&(M.j41(0,"div")(1,"div",25),M.DNE(2,We,7,5,"div",26),M.k0s()()),2&gn){const kn=zn.$implicit;M.R7$(2),M.Y8G("ngForOf",kn)}}function St(gn,zn){if(1&gn&&(M.j41(0,"div"),M.DNE(1,Lt,3,1,"div",24),M.k0s()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("ngForOf",kn.messageObjs)}}function At(gn,zn){if(1&gn&&(M.j41(0,"p",23),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG(2);M.R7$(),M.JRh(kn.data.titleMessage)}}function fn(gn,zn){if(1&gn&&(M.j41(0,"mat-error"),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.SpI("",kn.placeholder," is required.")}}function mt(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"mat-form-field",42)(1,"mat-label"),M.EFF(2),M.k0s(),M.j41(3,"input",43),M.nI1(4,"lowercase"),M.mxI("ngModelChange",function(ci){Q.eBV(kn);const Xn=M.XpG().$implicit;return M.DH7(Xn.inputValue,ci)||(Xn.inputValue=ci),Q.Njj(ci)}),M.k0s(),M.DNE(5,fn,2,1,"mat-error",13),M.j41(6,"mat-hint"),M.EFF(7),M.k0s()()}if(2&gn){const kn=M.XpG(),Kn=kn.$implicit,ci=kn.index;M.Y8G("ngClass",Kn.width),M.R7$(2),M.JRh(Kn.placeholder),M.R7$(),M.Y8G("name",M.VkB("input",ci))("autoFocus",0===ci)("min",Kn.min)("step",Kn.step)("type",M.bMT(4,12,Kn.inputType))("tabindex",ci+1),M.R50("ngModel",Kn.inputValue),M.R7$(2),M.Y8G("ngIf",!Kn.inputValue),M.R7$(2),M.JRh(Kn.hintFunction?Kn.hintFunction(Kn.inputValue):Kn.hintText)}}function It(gn,zn){if(1&gn&&(M.qex(0),M.DNE(1,mt,8,14,"mat-form-field",41),M.bVm()),2&gn){const kn=zn.$implicit,Kn=M.XpG(2);M.R7$(),M.Y8G("ngIf",!kn.advancedField||Kn.showAdvanced)}}function wn(gn,zn){if(1&gn&&(M.j41(0,"div",39),M.DNE(1,At,2,1,"p",12),M.j41(2,"div",40),M.DNE(3,It,2,1,"ng-container",24),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("ngIf",kn.data.titleMessage),M.R7$(2),M.Y8G("ngForOf",kn.getInputs)}}function In(gn,zn){1&gn&&(M.j41(0,"p"),M.EFF(1,"Show Advanced"),M.k0s())}function ei(gn,zn){1&gn&&(M.j41(0,"p"),M.EFF(1,"Hide Advanced"),M.k0s())}function Li(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",44),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onShowAdvanced())}),M.DNE(1,In,2,0,"p",29)(2,ei,2,0,"ng-template",null,1,M.C5r),M.k0s()}if(2&gn){const kn=M.sdS(3),Kn=M.XpG();M.R7$(),M.Y8G("ngIf",!Kn.showAdvanced)("ngIfElse",kn)}}function kt(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",45),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onClose(ci.getInputs))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.R7$(),M.JRh(kn.yesBtnText)}}function Ot(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",46),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onClose(!0))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.R7$(),M.JRh(kn.yesBtnText)}}let Ze=(()=>{var gn;class zn{constructor(Kn,ci,Xn,aa){this.dialogRef=Kn,this.data=ci,this.logger=Xn,this.store=aa,this.faInfoCircle=ee.iW_,this.faExclamationTriangle=ee.zpE,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=f.A$,this.dataTypeEnum=f.UN,this.getInputs=[{placeholder:"",inputType:f.UN.STRING,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===f.A$.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(Kn){if(Kn&&this.getInputs&&this.getInputs.some(ci=>typeof ci.inputValue>"u"))return!0;!this.showAdvanced&&Kn.length&&(Kn=Kn?.reduce((ci,Xn)=>(Xn.advancedField||ci.push(Xn),ci),[])),this.store.dispatch((0,Pe.uP)({payload:Kn}))}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh),M.rXU($.gP),M.rXU(se.il))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-confirmation-message"]],standalone:!1,decls:21,vars:10,consts:[["emptyField",""],["hideAdvancedText",""],["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 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"],[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,"ngClass",4,"ngIf"],[3,"ngClass"],["matInput","","required","",3,"ngModelChange","name","autoFocus","min","step","type","tabindex","ngModel"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["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(ci,Xn){1&ci&&(M.j41(0,"div",2)(1,"div",3)(2,"mat-card-header",4)(3,"div",5)(4,"span",6),M.EFF(5),M.k0s()(),M.j41(6,"button",7),M.bIt("click",function(){return Xn.onClose(!1)}),M.EFF(7,"X"),M.k0s()(),M.j41(8,"mat-card-content",8)(9,"form",9),M.DNE(10,Ne,4,2,"div",10)(11,ze,4,2,"div",11)(12,Je,2,1,"p",12)(13,St,2,1,"div",13)(14,wn,4,2,"div",14),M.j41(15,"div",15)(16,"button",16),M.bIt("click",function(){return Xn.onClose(!1)}),M.EFF(17),M.k0s(),M.DNE(18,Li,4,2,"button",17)(19,kt,2,1,"button",18)(20,Ot,2,1,"button",19),M.k0s()()()()()),2&ci&&(M.R7$(5),M.JRh(Xn.data.alertTitle||Xn.alertTypeEnum[Xn.data.type]),M.R7$(5),M.Y8G("ngIf",Xn.warningMessage&&""!==Xn.warningMessage),M.R7$(),M.Y8G("ngIf",Xn.informationMessage&&""!==Xn.informationMessage),M.R7$(),M.Y8G("ngIf",Xn.data.titleMessage&&!Xn.flgShowInput),M.R7$(),M.Y8G("ngIf",(null==Xn.messageObjs?null:Xn.messageObjs.length)>0),M.R7$(),M.Y8G("ngIf",Xn.flgShowInput),M.R7$(3),M.JRh(Xn.noBtnText),M.R7$(),M.Y8G("ngIf",Xn.hasAdvanced),M.R7$(),M.Y8G("ngIf",Xn.flgShowInput),M.R7$(),M.Y8G("ngIf",!Xn.flgShowInput))},dependencies:[pe.YU,pe.Sq,pe.bT,pe.ux,pe.e1,pe.fG,Ue.qT,Ue.me,Ue.BC,Ue.cb,Ue.YS,Ue.vS,Ue.cV,Ee.aY,L.$z,t.m2,t.MM,Qe.fg,Ie.rl,Ie.nJ,Ie.MV,Ie.TL,m.q,j.DJ,j.sA,j.UI,u.PW,a.N,le.V,pe.GH,pe.QX,pe.vh],encapsulation:2}))}return gn(),zn})();var Ge=l(12462),Pt=l(96183),Yt=l(23029);const bn=gn=>({"display-none":gn});function $n(gn,zn){if(1&gn&&(M.j41(0,"mat-option",23),M.EFF(1),M.k0s()),2&gn){const kn=zn.$implicit;M.Y8G("value",kn),M.R7$(),M.SpI(" ",kn.infoName," ")}}function oi(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"div",13)(1,"mat-form-field",20)(2,"mat-label"),M.EFF(3,"Info Type"),M.k0s(),M.j41(4,"mat-select",21),M.mxI("valueChange",function(ci){Q.eBV(kn);const Xn=M.XpG();return M.DH7(Xn.selInfoType,ci)||(Xn.selInfoType=ci),Q.Njj(ci)}),M.DNE(5,$n,2,2,"mat-option",22),M.k0s()()()}if(2&gn){const kn=M.XpG();M.R7$(4),M.R50("value",kn.selInfoType),M.R7$(),M.Y8G("ngForOf",kn.infoTypes)}}let Ii=(()=>{var gn;class zn{constructor(Kn,ci,Xn,aa,sa){this.dialogRef=Kn,this.data=ci,this.logger=Xn,this.snackBar=aa,this.commonService=sa,this.faReceipt=ee.Mf0,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=f.f7}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((Kn,ci)=>{this.infoTypes.push({infoID:ci+1,infoKey:"node URI "+(ci+1),infoName:"Node URI "+(ci+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(Kn){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+Kn)}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh),M.rXU($.gP),M.rXU(ie.UG),M.rXU(_e.h))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-show-pubkey"]],standalone:!1,decls:26,vars:20,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"],["errorCorrectionLevel","L",3,"value","size"],["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"],["fxFlex","5","fxLayoutAlign","center 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","type","submit","rtlClipboard","",3,"copied","payload"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(ci,Xn){1&ci&&(M.j41(0,"div",0)(1,"div",1),M.nrm(2,"qr-code",2),M.k0s(),M.j41(3,"div",3)(4,"mat-card-header",4)(5,"div",5),M.nrm(6,"fa-icon",6),M.j41(7,"span",7),M.EFF(8),M.k0s()(),M.j41(9,"button",8),M.bIt("click",function(){return Xn.onClose()}),M.EFF(10,"X"),M.k0s()(),M.j41(11,"mat-card-content",9)(12,"div",10)(13,"div",11),M.nrm(14,"qr-code",2),M.k0s(),M.DNE(15,oi,6,2,"div",12),M.j41(16,"div",13)(17,"div",14)(18,"h4",15),M.EFF(19),M.k0s(),M.j41(20,"span",16),M.EFF(21),M.k0s()()(),M.nrm(22,"mat-divider",17),M.j41(23,"div",18)(24,"button",19),M.bIt("copied",function(sa){return Xn.onCopyPubkey(sa)}),M.EFF(25),M.k0s()()()()()()),2&ci&&(M.R7$(),M.Y8G("ngClass",M.eq3(16,bn,Xn.screenSize===Xn.screenSizeEnum.XS||Xn.screenSize===Xn.screenSizeEnum.SM)),M.R7$(),M.Y8G("value",M.mNQ(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1]))("size",Xn.qrWidth),M.R7$(4),M.Y8G("icon",Xn.faReceipt),M.R7$(2),M.JRh(Xn.selInfoType.infoName),M.R7$(5),M.Y8G("ngClass",M.eq3(18,bn,Xn.screenSize!==Xn.screenSizeEnum.XS&&Xn.screenSize!==Xn.screenSizeEnum.SM)),M.R7$(),M.Y8G("value",M.mNQ(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1]))("size",Xn.qrWidth),M.R7$(),M.Y8G("ngIf",Xn.information.uris&&Xn.information.uris.length>0),M.R7$(4),M.JRh(Xn.selInfoType.infoName),M.R7$(2),M.JRh(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1]),M.R7$(3),M.Y8G("payload",M.mNQ(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1])),M.R7$(),M.SpI("Copy ",Xn.selInfoType.infoKey))},dependencies:[pe.YU,pe.Sq,pe.bT,Ee.aY,L.$z,t.m2,t.MM,Ie.rl,Ie.nJ,m.q,j.DJ,j.sA,j.UI,u.PW,Pt.VO,Yt.wT,T.Um,C.U,a.N],encapsulation:2}))}return gn(),zn})();var Ei=l(190),Nt=l(28430),nn=l(95428),en=l(29330),Nn=l(7879),jn=l(53202),Un=l(51534);let ui=(()=>{var gn;class zn{constructor(Kn,ci,Xn,aa,sa,ma,ua,dn,Ln,Zn,hi){this.actions=Kn,this.httpClient=ci,this.store=Xn,this.logger=aa,this.wsService=sa,this.sessionService=ma,this.commonService=ua,this.dataService=dn,this.dialog=Ln,this.snackBar=Zn,this.router=hi,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new p.B,new p.B],this.closeAllDialogs=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_ALL_DIALOGS),(0,o.T)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_SNACK_BAR),(0,o.T)(Gn=>{"string"==typeof Gn.payload?this.snackBar.open(Gn.payload):this.snackBar.open(Gn.payload.message,"","ERROR"===Gn.payload.type?{duration:Gn.payload.duration?Gn.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Gn.payload.type?{duration:Gn.payload.duration?Gn.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Gn.payload.duration?Gn.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_SPINNER),(0,o.T)(Gn=>{Gn.payload!==f.MZ.NO_SPINNER&&(this.dialogRef=this.dialog.open(Z,{panelClass:"spinner-dialog-panel",data:{titleMessage:Gn.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_SPINNER),(0,o.T)(Gn=>{if(Gn.payload!==f.MZ.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Gn.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Jn=>{Jn.componentInstance&&Jn.componentInstance.data&&Jn.componentInstance.data.titleMessage&&Jn.componentInstance.data.titleMessage===Gn.payload&&Jn.close()})}catch(Jn){this.logger.error(Jn)}})),{dispatch:!1}),this.openAlert=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_ALERT),(0,o.T)(Gn=>{const Jn=JSON.parse(JSON.stringify(Gn.payload));Jn.width||(Jn.width=this.alertWidth),this.dialogRef=this.dialog.open(Gn.payload.data.component?Gn.payload.data.component:Fe,Jn)})),{dispatch:!1}),this.closeAlert=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_ALERT),(0,o.T)(Gn=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Gn.payload),Gn.payload))),{dispatch:!1}),this.openConfirm=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_CONFIRMATION),(0,o.T)(Gn=>{const Jn=JSON.parse(JSON.stringify(Gn.payload));Jn.width||(Jn.width=this.confirmWidth),this.dialogRef=this.dialog.open(Ze,Jn)})),{dispatch:!1}),this.closeConfirm=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_CONFIRMATION),(0,e.s)(1),(0,o.T)(Gn=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Gn.payload),Gn.payload))),{dispatch:!1}),this.showNodePubkey=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SHOW_PUBKEY),(0,A.E)(this.store.select(V.N)),(0,h.Z)(([Gn,Jn])=>(this.sessionService.getItem("token")&&Jn.identity_pubkey?this.store.dispatch((0,Pe.xO)({payload:{data:{information:Jn,component:Ii}}})):this.snackBar.open("Node Pubkey does not exist."),(0,D.of)({type:f.aU.VOID}))))),this.appConfigFetch=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.FETCH_APPLICATION_SETTINGS),(0,h.Z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.f7.XS||this.screenSize===f.f7.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===f.f7.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="50%",this.confirmWidth="53%"),this.store.dispatch((0,Pe.mt)({payload:f.MZ.GET_RTL_CONFIG})),this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchRTLConfig",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.CONF_API))),(0,o.T)(Gn=>{this.logger.info(Gn),this.store.dispatch((0,Pe.y0)({payload:f.MZ.GET_RTL_CONFIG})),this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchRTLConfig",status:f.wn.COMPLETED}}));let Jn=null;return Gn.nodes.forEach(Bi=>{Bi.settings.currencyUnits=[...f.A0,Bi.settings?.currencyUnit?Bi.settings?.currencyUnit:""],+(Bi.index||-1)===Gn.selectedNodeIndex&&(Jn=Bi)}),Jn?(this.store.dispatch((0,Pe.Qi)({payload:{uiMessage:f.MZ.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Jn,isInitialSetup:!0}})),{type:f.aU.SET_APPLICATION_SETTINGS,payload:Gn}):{type:f.aU.VOID}}),(0,d.W)(Gn=>(this.handleErrorWithAlert("FetchRTLConfig",f.MZ.GET_RTL_CONFIG,"Fetch RTL Config Failed!",f.rl.CONF_API,Gn),(0,D.of)({type:f.aU.VOID}))))),this.updateNodeSettings=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.UPDATE_NODE_SETTINGS),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.UPDATE_NODE_SETTINGS})),this.store.dispatch((0,Pe.Gd)({payload:{action:"updateNodeSettings",status:f.wn.INITIATED}})),Gn.payload.settings.fiatConversion||delete Gn.payload.settings.currencyUnit,delete Gn.payload.settings.currencyUnits,this.httpClient.post(f.rl.CONF_API+"/node",Gn.payload).pipe((0,o.T)(Jn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"updateNodeSettings",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.UPDATE_NODE_SETTINGS})),Jn.settings.currencyUnits=[...f.A0,Jn.settings?.currencyUnit?Jn.settings?.currencyUnit:""],this.store.dispatch((0,Pe.Np)({payload:Jn})),{type:f.aU.OPEN_SNACK_BAR,payload:"Node settings updated successfully!"})),(0,d.W)(Jn=>(this.handleErrorWithAlert("updateNodeSettings",f.MZ.UPDATE_NODE_SETTINGS,"Update Node Settings Failed!",f.rl.CONF_API+"/node",Jn),(0,D.of)({type:f.aU.VOID})))))))),this.updateApplicationSettings=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.UPDATE_APPLICATION_SETTINGS),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.UPDATE_APPLICATION_SETTINGS})),this.store.dispatch((0,Pe.Gd)({payload:{action:"updateApplicationSettings",status:f.wn.INITIATED}})),Gn.payload.config.nodes.forEach(Jn=>{delete Jn.settings.currencyUnits}),this.httpClient.post(f.rl.CONF_API+"/application",Gn.payload.config).pipe((0,o.T)(Jn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"updateApplicationSettings",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.UPDATE_APPLICATION_SETTINGS})),Gn.payload.showSnackBar&&this.store.dispatch((0,Pe.UI)({payload:Gn.payload.message})),{type:f.aU.SET_APPLICATION_SETTINGS,payload:Jn})),(0,d.W)(Jn=>(this.handleErrorWithAlert("updateApplicationSettings",f.MZ.UPDATE_APPLICATION_SETTINGS,"Update Application Settings Failed!",f.rl.CONF_API+"/application",Jn),(0,D.of)({type:f.aU.VOID})))))))),this.configFetch=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.FETCH_CONFIG),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.OPEN_CONFIG_FILE})),this.store.dispatch((0,Pe.Gd)({payload:{action:"fetchConfig",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.CONF_API+"/config/"+Gn.payload).pipe((0,o.T)(Jn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"fetchConfig",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.OPEN_CONFIG_FILE})),{type:f.aU.SHOW_CONFIG,payload:Jn})),(0,d.W)(Jn=>(this.handleErrorWithAlert("fetchConfig",f.MZ.OPEN_CONFIG_FILE,"Fetch Config Failed!",f.rl.CONF_API+"/config/"+Gn.payload,Jn),(0,D.of)({type:f.aU.VOID})))))))),this.showLnConfig=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SHOW_CONFIG),(0,o.T)(Gn=>Gn.payload)),{dispatch:!1}),this.isAuthorized=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.IS_AUTHORIZED),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"IsAuthorized",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API,{authenticateWith:Gn.payload&&""!==Gn.payload.trim()?f.U1.PASSWORD:f.U1.JWT,authenticationValue:Gn.payload&&""!==Gn.payload.trim()?Gn.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,o.T)(Jn=>(this.logger.info(Jn),this.store.dispatch((0,Pe.Gd)({payload:{action:"IsAuthorized",status:f.wn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:f.aU.IS_AUTHORIZED_RES,payload:Jn})),(0,d.W)(Jn=>(this.handleErrorWithAlert("IsAuthorized",f.MZ.NO_SPINNER,"Authorization Failed",f.rl.AUTHENTICATE_API,Jn),(0,D.of)({type:f.aU.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.IS_AUTHORIZED_RES),(0,o.T)(Gn=>Gn.payload)),{dispatch:!1}),this.authLogin=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.LOGIN),(0,A.E)(this.store.select(V.qv)),(0,h.Z)(([Gn,Jn])=>(this.store.dispatch((0,Ei.p1)()),this.store.dispatch((0,Nt.gf)()),this.store.dispatch((0,nn.Hh)()),this.store.dispatch((0,Pe.Gd)({payload:{action:"Login",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API,{authenticateWith:"disabledAuth"===Gn.payload.password?f.U1.NOAUTH:Gn.payload.password?f.U1.PASSWORD:f.U1.JWT,authenticationValue:Gn.payload.password?Gn.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Gn.payload.twoFAToken?Gn.payload.twoFAToken:""}).pipe((0,o.T)(Bi=>{this.logger.info(Bi),this.store.dispatch((0,Pe.Gd)({payload:{action:"Login",status:f.wn.COMPLETED}})),this.setLoggedInDetails(Gn.payload.defaultPassword,Bi)}),(0,d.W)(Bi=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",f.MZ.NO_SPINNER,Bi),+Jn.SSO.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:Bi.error&&Bi.error.error?Bi.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"],{state:{logoutReason:Bi.error&&Bi.error.error?Bi.error.error:"Single Sign On Failed!"}}),(0,D.of)({type:f.aU.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.VERIFY_TWO_FA),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.VERIFY_TOKEN})),this.store.dispatch((0,Pe.Gd)({payload:{action:"VerifyToken",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API+"/token",{authentication2FA:Gn.payload.token}).pipe((0,o.T)(Jn=>{this.logger.info(Jn),this.store.dispatch((0,Pe.y0)({payload:f.MZ.VERIFY_TOKEN})),this.store.dispatch((0,Pe.Gd)({payload:{action:"VerifyToken",status:f.wn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Gn.payload.authResponse)}),(0,d.W)(Jn=>(this.handleErrorWithAlert("VerifyToken",f.MZ.VERIFY_TOKEN,"Authorization Failed!",f.rl.AUTHENTICATE_API+"/token",Jn),(0,D.of)({type:f.aU.VOID}))))))),{dispatch:!1}),this.logOut=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.LOGOUT),(0,A.E)(this.store.select(V.qv)),(0,h.Z)(([Gn,Jn])=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.LOG_OUT})),Jn.SSO&&+Jn.SSO.rtlSSO?window.location.href=Jn.SSO.logoutRedirectLink:this.router.navigate(["./login"],{state:{logoutReason:Gn.payload}}),this.sessionService.clearAll(),this.store.dispatch((0,Pe.Fl)({payload:{}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.LOG_OUT})),this.logger.info("Logged out from browser"),this.httpClient.get(f.rl.AUTHENTICATE_API+"/logout").pipe((0,o.T)(Bi=>{this.logger.info(Bi),this.store.dispatch((0,Pe.y0)({payload:f.MZ.LOG_OUT})),this.logger.info("Logged out from server")}))))),{dispatch:!1}),this.resetPassword=(0,g.EH)(()=>this.actions.pipe((0,w.Q)(this.unSubs[1]),(0,g.gp)(f.aU.RESET_PASSWORD),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"ResetPassword",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API+"/reset",{currPassword:Gn.payload.currPassword,newPassword:Gn.payload.newPassword}).pipe((0,w.Q)(this.unSubs[0]),(0,o.T)(Jn=>(this.logger.info(Jn),this.store.dispatch((0,Pe.Gd)({payload:{action:"ResetPassword",status:f.wn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Pe.UI)({payload:"Password Reset Successful!"})),this.SetToken(Jn.token),{type:f.aU.RESET_PASSWORD_RES,payload:Jn.token})),(0,d.W)(Jn=>(this.handleErrorWithAlert("ResetPassword",f.MZ.NO_SPINNER,"Password Reset Failed!",f.rl.AUTHENTICATE_API+"/reset",Jn),(0,D.of)({type:f.aU.VOID})))))))),this.setSelectedNode=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SET_SELECTED_NODE),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:Gn.payload.uiMessage})),this.store.dispatch((0,Pe.Gd)({payload:{action:"UpdateSelNode",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.CONF_API+"/updateSelNode/"+Gn.payload.currentLnNode?.index+"/"+Gn.payload.prevLnNodeIndex).pipe((0,o.T)(Jn=>(this.logger.info(Jn),this.store.dispatch((0,Pe.Gd)({payload:{action:"UpdateSelNode",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:Gn.payload.uiMessage})),this.initializeNode(Jn,Gn.payload.isInitialSetup),{type:f.aU.VOID})),(0,d.W)(Jn=>(this.handleErrorWithAlert("UpdateSelNode",Gn.payload.uiMessage,"Update Selected Node Failed!",f.rl.CONF_API+"/updateSelNode",Jn),(0,D.of)({type:f.aU.VOID})))))))),this.fetchFile=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.FETCH_FILE),(0,h.Z)(Gn=>{this.store.dispatch((0,Pe.mt)({payload:f.MZ.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchFile",status:f.wn.INITIATED}}));const Jn="?channel="+Gn.payload.channelPoint+(Gn.payload.path?"&path="+Gn.payload.path:"");return this.httpClient.get(f.rl.CONF_API+"/file"+Jn).pipe((0,o.T)(Bi=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchFile",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.DOWNLOAD_BACKUP_FILE})),{type:f.aU.SHOW_FILE,payload:Bi})),(0,d.W)(Bi=>(this.handleErrorWithAlert("fetchFile",f.MZ.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",f.rl.CONF_API+"/file"+Jn,{status:this.commonService.extractErrorNumber(Bi),error:{error:this.commonService.extractErrorCode(Bi)}}),(0,D.of)({type:f.aU.VOID}))))}))),this.showFile=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SHOW_FILE),(0,o.T)(Gn=>Gn.payload)),{dispatch:!1})}initializeNode(Kn,ci){this.logger.info("Initializing node from RTL Effects.");const Xn=ci?"":"HOME";if(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clnUnlocked"),this.sessionService.removeItem("eclUnlocked"),Kn.settings.currencyUnits=[...f.A0,Kn.settings?.currencyUnit?Kn.settings?.currencyUnit:""],this.store.dispatch((0,Pe.Tn)({payload:Kn})),this.store.dispatch((0,Ei.p1)()),this.store.dispatch((0,Nt.gf)()),this.store.dispatch((0,nn.Hh)()),this.sessionService.getItem("token")){const aa=Kn.lnImplementation?Kn.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(aa);const sa=!(0,i.naY)()&&window.location.origin?window.location.origin+"/rtl/api":f.H$;switch(this.wsService.connectWebSocket(sa?.replace(/^http/,"ws")+f.rl.Web_SOCKET_API,Kn.index?Kn.index.toString():"-1"),aa){case"CLN":this.store.dispatch((0,Nt.lg)()),this.store.dispatch((0,Nt.Aw)({payload:{loadPage:Xn}}));break;case"ECL":this.store.dispatch((0,nn.lg)()),this.store.dispatch((0,nn.zR)({payload:{loadPage:Xn}}));break;default:this.store.dispatch((0,Ei.lg)()),this.store.dispatch((0,Ei.Br)({payload:{loadPage:Xn}}))}}}SetToken(Kn){Kn?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",Kn)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(Kn,ci){this.logger.info("Successfully Authorized!"),this.SetToken(ci.token),this.sessionService.setItem("defaultPassword",Kn),Kn?(this.store.dispatch((0,Pe.UI)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Pe.NU)())}handleErrorWithoutAlert(Kn,ci,Xn){this.logger.error("ERROR IN: "+Kn+"\n"+JSON.stringify(Xn)),401===Xn.status&&"Login"!==Kn?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Pe.Jh)()),this.store.dispatch((0,Pe.ri)({payload:"Authentication Failed: "+JSON.stringify(Xn.error)}))):(this.store.dispatch((0,Pe.y0)({payload:ci})),this.store.dispatch((0,Pe.Gd)({payload:{action:Kn,status:f.wn.ERROR,statusCode:Xn.status?Xn.status.toString():"",message:this.commonService.extractErrorMessage(Xn)}})))}handleErrorWithAlert(Kn,ci,Xn,aa,sa){if(this.logger.error(sa),0===sa.status&&sa.statusText&&"Unknown Error"===sa.statusText&&(sa={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===sa.status&&"Login"!==Kn)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Pe.Jh)()),this.store.dispatch((0,Pe.ri)({payload:"Authentication Failed: "+JSON.stringify(sa.error)}));else{this.store.dispatch((0,Pe.y0)({payload:ci}));const ma=this.commonService.extractErrorMessage(sa);this.store.dispatch((0,Pe.xO)({payload:{data:{type:"ERROR",alertTitle:Xn,message:{code:sa.status?sa.status:"Unknown Error",message:ma,URL:aa},component:Ge.f}}})),this.store.dispatch((0,Pe.Gd)({payload:{action:Kn,status:f.wn.ERROR,statusCode:sa.status?sa.status.toString():"",message:ma,URL:aa}}))}}ngOnDestroy(){this.unSubs.forEach(Kn=>{Kn.next(null),Kn.complete()})}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(Q.KVO(g.En),Q.KVO(en.Qq),Q.KVO(se.il),Q.KVO($.gP),Q.KVO(Nn.I),Q.KVO(jn.Q),Q.KVO(_e.h),Q.KVO(Un.u),Q.KVO(F.bZ),Q.KVO(ie.UG),Q.KVO(ye.Ix))},this.\u0275prov=Q.jDH({token:zn,factory:zn.\u0275fac}))}return gn(),zn})()},79647(ke,q,l){"use strict";l.d(q,{Az:()=>d,E2:()=>h,Kq:()=>A,N:()=>e,_c:()=>D,qv:()=>o});var i=l(59640);const g=(0,i.UX)("root"),D=((0,i.Mz)(g,w=>w.apiURL),(0,i.Mz)(g,w=>w.selNode)),o=(0,i.Mz)(g,w=>w.appConfig),e=(0,i.Mz)(g,w=>w.nodeData),A=(0,i.Mz)(g,w=>w.apisCallStatus.Login),h=(0,i.Mz)(g,w=>w.apisCallStatus.IsAuthorized),d=(0,i.Mz)(g,w=>({nodeDate:w.nodeData,selNode:w.selNode}))},67947(ke,q,l){"use strict";var i=l(57303),g=l(52512),p=l(2615),D=l(60177),o=l(72200),e=l(73664),A=l(17705),h=l(93393);class f extends i.qj{supportsDOMEvents=!0;static makeCurrent(){(0,i.ig)(new f)}onAndCancel(N,I,H,J){return N.addEventListener(I,H,J),()=>{N.removeEventListener(I,H,J)}}dispatchEvent(N,I){N.dispatchEvent(I)}remove(N){N.remove()}createElement(N,I){return(I=I||this.getDefaultDocument()).createElement(N)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(N){return N.nodeType===Node.ELEMENT_NODE}isShadowRoot(N){return N instanceof DocumentFragment}getGlobalEventTarget(N,I){return"window"===I?window:"document"===I?N:"body"===I?N.body:null}getBaseHref(N){const I=function M(){return F=F||document.head.querySelector("base"),F?F.getAttribute("href"):null}();return null==I?null:function K(z){return new URL(z,document.baseURI).pathname}(I)}resetBaseElement(){F=null}getUserAgent(){return window.navigator.userAgent}getCookie(N){return(0,g.b)(document.cookie,N)}}let F=null,Z=(()=>{class z{build(){return new XMLHttpRequest}static \u0275fac=function(H){return new(H||z)};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})();const ee=["alt","control","meta","shift"],V={"\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"},Q={alt:z=>z.altKey,control:z=>z.ctrlKey,meta:z=>z.metaKey,shift:z=>z.shiftKey};let $=(()=>{class z extends h.Hl{constructor(I){super(I)}supports(I){return null!=z.parseEventName(I)}addEventListener(I,H,J,ne){const ot=z.parseEventName(H),jt=z.eventCallback(ot.fullKey,J,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.rb)().onAndCancel(I,ot.domEventName,jt,ne))}static parseEventName(I){const H=I.toLowerCase().split("."),J=H.shift();if(0===H.length||"keydown"!==J&&"keyup"!==J)return null;const ne=z._normalizeKey(H.pop());let ot="",jt=H.indexOf("code");if(jt>-1&&(H.splice(jt,1),ot="code."),ee.forEach(Tn=>{const ii=H.indexOf(Tn);ii>-1&&(H.splice(ii,1),ot+=Tn+".")}),ot+=ne,0!=H.length||0===ne.length)return null;const $t={};return $t.domEventName=J,$t.fullKey=ot,$t}static matchEventFullKeyCode(I,H){let J=V[I.key]||I.key,ne="";return H.indexOf("code.")>-1&&(J=I.code,ne="code."),!(null==J||!J)&&(J=J.toLowerCase()," "===J?J="space":"."===J&&(J="dot"),ee.forEach(ot=>{ot!==J&&(0,Q[ot])(I)&&(ne+=ot+".")}),ne+=J,ne===H)}static eventCallback(I,H,J){return ne=>{z.matchEventFullKeyCode(ne,I)&&J.runGuarded(()=>H(ne))}}static _normalizeKey(I){return"esc"===I?"escape":I}static \u0275fac=function(H){return new(H||z)(p.KVO(p.qQL))};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})();const s=(0,A.oH4)(A.fpN,"browser",[{provide:e.Agw,useValue:D.AJ},{provide:e.PLl,useValue:function pe(){f.makeCurrent()},multi:!0},{provide:p.qQL,useFactory:function L(){return(0,e._9u)(document),document}}]),u=[{provide:e.$Ln,useClass:class j{addToWindow(N){p.laP.getAngularTestability=(H,J=!0)=>{const ne=N.findTestabilityInTree(H,J);if(null==ne)throw new p.buA(5103,!1);return ne},p.laP.getAllAngularTestabilities=()=>N.getAllTestabilities(),p.laP.getAllAngularRootElements=()=>N.getAllRootElements(),p.laP.frameworkStabilizers||(p.laP.frameworkStabilizers=[]),p.laP.frameworkStabilizers.push(H=>{const J=p.laP.getAllAngularTestabilities();let ne=J.length;const ot=function(){ne--,0==ne&&H()};J.forEach(jt=>{jt.whenStable(ot)})})}findTestabilityInTree(N,I,H){return null==I?null:N.getTestability(I)??(H?(0,i.rb)().isShadowRoot(I)?this.findTestabilityInTree(N,I.host,!0):this.findTestabilityInTree(N,I.parentElement,!0):null)}}},{provide:e.dOL,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]},{provide:e.NYb,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]}],_=[{provide:p.GBX,useValue:"root"},{provide:p.zcH,useFactory:function Ee(){return new p.zcH}},{provide:h.Q5,useClass:h.jd,multi:!0,deps:[p.qQL]},{provide:h.Q5,useClass:$,multi:!0,deps:[p.qQL]},h.mE,h.CI,h.EU,{provide:e._9s,useExisting:h.mE},{provide:g.N,useClass:Z},[]];let T=(()=>{class z{constructor(){}static \u0275fac=function(H){return new(H||z)};static \u0275mod=e.$C({type:z});static \u0275inj=p.G2t({providers:[..._,...u],imports:[o.MD,A.Hbi]})}return z})();var P=l(345),C=l(11514);function Y(z){return new p.buA(3e3,!1)}function Me(z){return new p.buA(3002,!1)}function tt(z){switch(z.length){case 0:return new C.sf;case 1:return z[0];default:return new C.PZ(z)}}function Fe(z,N,I=new Map,H=new Map){const J=[],ne=[];let ot=-1,jt=null;if(N.forEach($t=>{const Tn=$t.get("offset"),ii=Tn==ot,Qn=ii&&jt||new Map;$t.forEach((Vi,Qi)=>{let Di=Qi,Fi=Vi;if("offset"!==Qi)switch(Di=z.normalizePropertyName(Di,J),Fi){case C.FX:Fi=I.get(Qi);break;case C.kp:Fi=H.get(Qi);break;default:Fi=z.normalizeStyleValue(Qi,Di,Fi,J)}Qn.set(Di,Fi)}),ii||ne.push(Qn),jt=Qn,ot=Tn}),J.length)throw function S(){return new p.buA(3502,!1)}();return ne}function Pe(z,N,I,H){switch(N){case"start":z.onStart(()=>H(I&&Ue(I,"start",z)));break;case"done":z.onDone(()=>H(I&&Ue(I,"done",z)));break;case"destroy":z.onDestroy(()=>H(I&&Ue(I,"destroy",z)))}}function Ue(z,N,I){const ne=Qe(z.element,z.triggerName,z.fromState,z.toState,N||z.phaseName,I.totalTime??z.totalTime,!!I.disabled),ot=z._data;return null!=ot&&(ne._data=ot),ne}function Qe(z,N,I,H,J="",ne=0,ot){return{element:z,triggerName:N,fromState:I,toState:H,phaseName:J,totalTime:ne,disabled:!!ot}}function Ie(z,N,I){let H=z.get(N);return H||z.set(N,H=I),H}function le(z){const N=z.indexOf(":");return[z.substring(1,N),z.slice(N+1)]}const Ne=typeof document>"u"?null:document.documentElement;function ze(z){const N=z.parentNode||z.host||null;return N===Ne?null:N}let gt=null,zt=!1;function He(z,N){for(;N;){if(N===z)return!0;N=ze(N)}return!1}function Wt(z,N,I){if(I)return Array.from(z.querySelectorAll(N));const H=z.querySelector(N);return H?[H]:[]}const St="ng-enter",At="ng-leave",fn="ng-trigger",mt=".ng-trigger",It="ng-animating",wn=".ng-animating";function In(z){if("number"==typeof z)return z;const N=z.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:ei(parseFloat(N[1]),N[2])}function ei(z,N){return"s"===N?1e3*z:z}function Li(z,N,I){return z.hasOwnProperty("duration")?z:function Ot(z,N,I){let H,J=0,ne="";if("string"==typeof z){const ot=z.match(kt);if(null===ot)return N.push(Y()),{duration:0,delay:0,easing:""};H=ei(parseFloat(ot[1]),ot[2]);const jt=ot[3];null!=jt&&(J=ei(parseFloat(jt),ot[4]));const $t=ot[5];$t&&(ne=$t)}else H=z;if(!I){let ot=!1,jt=N.length;H<0&&(N.push(function R(){return new p.buA(3100,!1)}()),ot=!0),J<0&&(N.push(function U(){return new p.buA(3101,!1)}()),ot=!0),ot&&N.splice(jt,0,Y())}return{duration:H,delay:J,easing:ne}}(z,N,I)}const kt=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Pt(z,N,I){N.forEach((H,J)=>{const ne=nn(J);I&&!I.has(J)&&I.set(J,z.style[ne]),z.style[ne]=H})}function Yt(z,N){N.forEach((I,H)=>{const J=nn(H);z.style[J]=""})}function bn(z){return Array.isArray(z)?1==z.length?z[0]:(0,C.K2)(z):z}const oi=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ii(z){let N=[];if("string"==typeof z){let I;for(;I=oi.exec(z);)N.push(I[1]);oi.lastIndex=0}return N}function Ei(z,N,I){const H=`${z}`,J=H.replace(oi,(ne,ot)=>{let jt=N[ot];return null==jt&&(I.push(function re(){return new p.buA(3003,!1)}()),jt=""),jt.toString()});return J==H?z:J}const Nt=/-+([a-z0-9])/g;function nn(z){return z.replace(Nt,(...N)=>N[1].toUpperCase())}function Un(z,N,I){switch(N.type){case C.If.Trigger:return z.visitTrigger(N,I);case C.If.State:return z.visitState(N,I);case C.If.Transition:return z.visitTransition(N,I);case C.If.Sequence:return z.visitSequence(N,I);case C.If.Group:return z.visitGroup(N,I);case C.If.Animate:return z.visitAnimate(N,I);case C.If.Keyframes:return z.visitKeyframes(N,I);case C.If.Style:return z.visitStyle(N,I);case C.If.Reference:return z.visitReference(N,I);case C.If.AnimateChild:return z.visitAnimateChild(N,I);case C.If.AnimateRef:return z.visitAnimateRef(N,I);case C.If.Query:return z.visitQuery(N,I);case C.If.Stagger:return z.visitStagger(N,I);default:throw function he(){return new p.buA(3004,!1)}()}}function ui(z,N){return window.getComputedStyle(z)[N]}let Xn=(()=>{class z{validateStyleProperty(I){return function Ye(z){gt||(gt=function it(){return typeof document<"u"?document.body:null}()||{},zt=!!gt.style&&"WebkitAppearance"in gt.style);let N=!0;return gt.style&&!function Je(z){return"ebkit"==z.substring(1,6)}(z)&&(N=z in gt.style,!N&&zt&&(N="Webkit"+z.charAt(0).toUpperCase()+z.slice(1)in gt.style)),N}(I)}containsElement(I,H){return He(I,H)}getParentElement(I){return ze(I)}query(I,H,J){return Wt(I,H,J)}computeStyle(I,H,J){return J||""}animate(I,H,J,ne,ot,jt=[],$t){return new C.sf(J,ne)}static \u0275fac=function(H){return new(H||z)};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})();class aa{static NOOP=new Xn}class sa{}const ua=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class dn extends sa{normalizePropertyName(N,I){return nn(N)}normalizeStyleValue(N,I,H,J){let ne="";const ot=H.toString().trim();if(ua.has(I)&&0!==H&&"0"!==H)if("number"==typeof H)ne="px";else{const jt=H.match(/^[+-]?[\d\.]+([a-z]*)$/);jt&&0==jt[1].length&&J.push(function Oe(){return new p.buA(3005,!1)}())}return ot+ne}}const Sn=new Set(["true","1"]),fi=new Set(["false","0"]);function Dn(z,N){const I=Sn.has(z)||fi.has(z),H=Sn.has(N)||fi.has(N);return(J,ne)=>{let ot="*"==z||z==J,jt="*"==N||N==ne;return!ot&&I&&"boolean"==typeof J&&(ot=J?Sn.has(z):fi.has(z)),!jt&&H&&"boolean"==typeof ne&&(jt=ne?Sn.has(N):fi.has(N)),ot&&jt}}const Ci=new RegExp("s*:selfs*,?","g");function Xi(z,N,I,H){return new lt(z).build(N,I,H)}class lt{_driver;constructor(N){this._driver=N}build(N,I,H){const J=new Gt(I);return this._resetContextStyleTimingState(J),Un(this,bn(N),J)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles=new Map,N.collectedStyles.set("",new Map),N.currentTime=0}visitTrigger(N,I){let H=I.queryCount=0,J=I.depCount=0;const ne=[],ot=[];return"@"==N.name.charAt(0)&&I.errors.push(function ge(){return new p.buA(3006,!1)}()),N.definitions.forEach(jt=>{if(this._resetContextStyleTimingState(I),jt.type==C.If.State){const $t=jt,Tn=$t.name;Tn.toString().split(/\s*,\s*/).forEach(ii=>{$t.name=ii,ne.push(this.visitState($t,I))}),$t.name=Tn}else if(jt.type==C.If.Transition){const $t=this.visitTransition(jt,I);H+=$t.queryCount,J+=$t.depCount,ot.push($t)}else I.errors.push(function ce(){return new p.buA(3007,!1)}())}),{type:C.If.Trigger,name:N.name,states:ne,transitions:ot,queryCount:H,depCount:J,options:null}}visitState(N,I){const H=this.visitStyle(N.styles,I),J=N.options&&N.options.params||null;if(H.containsDynamicStyles){const ne=new Set,ot=J||{};H.styles.forEach(jt=>{jt instanceof Map&&jt.forEach($t=>{Ii($t).forEach(Tn=>{ot.hasOwnProperty(Tn)||ne.add(Tn)})})}),ne.size&&I.errors.push(function Re(){return new p.buA(3008,!1)}(0,ne.values()))}return{type:C.If.State,name:N.name,style:H,options:J?{params:J}:null}}visitTransition(N,I){I.queryCount=0,I.depCount=0;const H=Un(this,bn(N.animation),I),J=function _a(z,N){const I=[];return"string"==typeof z?z.split(/\s*,\s*/).forEach(H=>function Sa(z,N,I){if(":"==z[0]){const $t=function un(z,N){switch(z){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(I,H)=>parseFloat(H)>parseFloat(I);case":decrement":return(I,H)=>parseFloat(H) *"}}(z,I);if("function"==typeof $t)return void N.push($t);z=$t}const H=z.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==H||H.length<4)return I.push(function yt(){return new p.buA(3015,!1)}()),N;const J=H[1],ne=H[2],ot=H[3];N.push(Dn(J,ot)),"<"==ne[0]&&("*"!=J||"*"!=ot)&&N.push(Dn(ot,J))}(H,I,N)):I.push(z),I}(N.expr,I.errors);return{type:C.If.Transition,matchers:J,animation:H,queryCount:I.queryCount,depCount:I.depCount,options:pi(N.options)}}visitSequence(N,I){return{type:C.If.Sequence,steps:N.steps.map(H=>Un(this,H,I)),options:pi(N.options)}}visitGroup(N,I){const H=I.currentTime;let J=0;const ne=N.steps.map(ot=>{I.currentTime=H;const jt=Un(this,ot,I);return J=Math.max(J,I.currentTime),jt});return I.currentTime=J,{type:C.If.Group,steps:ne,options:pi(N.options)}}visitAnimate(N,I){const H=function si(z,N){if(z.hasOwnProperty("duration"))return z;if("number"==typeof z)return Oi(Li(z,N).duration,0,"");const I=z;if(I.split(/\s+/).some(ne=>"{"==ne.charAt(0)&&"{"==ne.charAt(1))){const ne=Oi(0,0,"");return ne.dynamic=!0,ne.strValue=I,ne}const J=Li(I,N);return Oi(J.duration,J.delay,J.easing)}(N.timings,I.errors);I.currentAnimateTimings=H;let J,ne=N.styles?N.styles:(0,C.iF)({});if(ne.type==C.If.Keyframes)J=this.visitKeyframes(ne,I);else{let ot=N.styles,jt=!1;if(!ot){jt=!0;const Tn={};H.easing&&(Tn.easing=H.easing),ot=(0,C.iF)(Tn)}I.currentTime+=H.duration+H.delay;const $t=this.visitStyle(ot,I);$t.isEmptyStep=jt,J=$t}return I.currentAnimateTimings=null,{type:C.If.Animate,timings:H,style:J,options:null}}visitStyle(N,I){const H=this._makeStyleAst(N,I);return this._validateStyleAst(H,I),H}_makeStyleAst(N,I){const H=[],J=Array.isArray(N.styles)?N.styles:[N.styles];for(let jt of J)"string"==typeof jt?jt===C.kp?H.push(jt):I.errors.push(Me()):H.push(new Map(Object.entries(jt)));let ne=!1,ot=null;return H.forEach(jt=>{if(jt instanceof Map&&(jt.has("easing")&&(ot=jt.get("easing"),jt.delete("easing")),!ne))for(let $t of jt.values())if($t.toString().indexOf("{{")>=0){ne=!0;break}}),{type:C.If.Style,styles:H,easing:ot,offset:N.offset,containsDynamicStyles:ne,options:null}}_validateStyleAst(N,I){const H=I.currentAnimateTimings;let J=I.currentTime,ne=I.currentTime;H&&ne>0&&(ne-=H.duration+H.delay),N.styles.forEach(ot=>{"string"!=typeof ot&&ot.forEach((jt,$t)=>{const Tn=I.collectedStyles.get(I.currentQuerySelector),ii=Tn.get($t);let Qn=!0;ii&&(ne!=J&&ne>=ii.startTime&&J<=ii.endTime&&(I.errors.push(function ve(){return new p.buA(3010,!1)}()),Qn=!1),ne=ii.startTime),Qn&&Tn.set($t,{startTime:ne,endTime:J}),I.options&&function $n(z,N,I){const H=N.params||{},J=Ii(z);J.length&&J.forEach(ne=>{H.hasOwnProperty(ne)||I.push(function fe(){return new p.buA(3001,!1)}())})}(jt,I.options,I.errors)})})}visitKeyframes(N,I){const H={type:C.If.Keyframes,styles:[],options:null};if(!I.currentAnimateTimings)return I.errors.push(function oe(){return new p.buA(3011,!1)}()),H;let ne=0;const ot=[];let jt=!1,$t=!1,Tn=0;const ii=N.steps.map(Oa=>{const sr=this._makeStyleAst(Oa,I);let vs=null!=sr.offset?sr.offset:function cn(z){if("string"==typeof z)return null;let N=null;if(Array.isArray(z))z.forEach(I=>{if(I instanceof Map&&I.has("offset")){const H=I;N=parseFloat(H.get("offset")),H.delete("offset")}});else if(z instanceof Map&&z.has("offset")){const I=z;N=parseFloat(I.get("offset")),I.delete("offset")}return N}(sr.styles),xa=0;return null!=vs&&(ne++,xa=sr.offset=vs),$t=$t||xa<0||xa>1,jt=jt||xa0&&ne{const vs=Vi>0?sr==Qi?1:Vi*sr:ot[sr],xa=vs*ya;I.currentTime=Di+Fi.delay+xa,Fi.duration=xa,this._validateStyleAst(Oa,I),Oa.offset=vs,H.styles.push(Oa)}),H}visitReference(N,I){return{type:C.If.Reference,animation:Un(this,bn(N.animation),I),options:pi(N.options)}}visitAnimateChild(N,I){return I.depCount++,{type:C.If.AnimateChild,options:pi(N.options)}}visitAnimateRef(N,I){return{type:C.If.AnimateRef,animation:this.visitReference(N.animation,I),options:pi(N.options)}}visitQuery(N,I){const H=I.currentQuerySelector,J=N.options||{};I.queryCount++,I.currentQuery=N;const[ne,ot]=function an(z){const N=!!z.split(/\s*,\s*/).find(I=>":self"==I);return N&&(z=z.replace(Ci,"")),z=z.replace(/@\*/g,mt).replace(/@\w+/g,I=>mt+"-"+I.slice(1)).replace(/:animating/g,wn),[z,N]}(N.selector);I.currentQuerySelector=H.length?H+" "+ne:ne,Ie(I.collectedStyles,I.currentQuerySelector,new Map);const jt=Un(this,bn(N.animation),I);return I.currentQuery=null,I.currentQuerySelector=H,{type:C.If.Query,selector:ne,limit:J.limit||0,optional:!!J.optional,includeSelf:ot,animation:jt,originalSelector:N.selector,options:pi(N.options)}}visitStagger(N,I){I.currentQuery||I.errors.push(function $e(){return new p.buA(3013,!1)}());const H="full"===N.timings?{duration:0,delay:0,easing:"full"}:Li(N.timings,I.errors,!0);return{type:C.If.Stagger,animation:Un(this,bn(N.animation),I),timings:H,options:null}}}class Gt{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(N){this.errors=N}}function pi(z){return z?(z={...z}).params&&(z.params=function ht(z){return z?{...z}:null}(z.params)):z={},z}function Oi(z,N,I){return{duration:z,delay:N,easing:I}}function la(z,N,I,H,J,ne,ot=null,jt=!1){return{type:1,element:z,keyframes:N,preStyleProps:I,postStyleProps:H,duration:J,delay:ne,totalTime:J+ne,easing:ot,subTimeline:jt}}class mn{_map=new Map;get(N){return this._map.get(N)||[]}append(N,I){let H=this._map.get(N);H||this._map.set(N,H=[]),H.push(...I)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const xt=new RegExp(":enter","g"),rn=new RegExp(":leave","g");function Wn(z,N,I,H,J,ne=new Map,ot=new Map,jt,$t,Tn=[]){return(new Yi).buildKeyframes(z,N,I,H,J,ne,ot,jt,$t,Tn)}class Yi{buildKeyframes(N,I,H,J,ne,ot,jt,$t,Tn,ii=[]){Tn=Tn||new mn;const Qn=new Va(N,I,Tn,J,ne,ii,[]);Qn.options=$t;const Vi=$t.delay?In($t.delay):0;Qn.currentTimeline.delayNextStep(Vi),Qn.currentTimeline.setStyles([ot],null,Qn.errors,$t),Un(this,H,Qn);const Qi=Qn.timelines.filter(Di=>Di.containsAnimation());if(Qi.length&&jt.size){let Di;for(let Fi=Qi.length-1;Fi>=0;Fi--){const ya=Qi[Fi];if(ya.element===I){Di=ya;break}}Di&&!Di.allowOnlyTimelineStyles()&&Di.setStyles([jt],null,Qn.errors,$t)}return Qi.length?Qi.map(Di=>Di.buildKeyframes()):[la(I,[],[],[],0,Vi,"",!1)]}visitTrigger(N,I){}visitState(N,I){}visitTransition(N,I){}visitAnimateChild(N,I){const H=I.subInstructions.get(I.element);if(H){const J=I.createSubContext(N.options),ne=I.currentTimeline.currentTime,ot=this._visitSubInstructions(H,J,J.options);ne!=ot&&I.transformIntoNewTimeline(ot)}I.previousNode=N}visitAnimateRef(N,I){const H=I.createSubContext(N.options);H.transformIntoNewTimeline(),this._applyAnimationRefDelays([N.options,N.animation.options],I,H),this.visitReference(N.animation,H),I.transformIntoNewTimeline(H.currentTimeline.currentTime),I.previousNode=N}_applyAnimationRefDelays(N,I,H){for(const J of N){const ne=J?.delay;if(ne){const ot="number"==typeof ne?ne:In(Ei(ne,J?.params??{},I.errors));H.delayNextStep(ot)}}}_visitSubInstructions(N,I,H){let ne=I.currentTimeline.currentTime;const ot=null!=H.duration?In(H.duration):null,jt=null!=H.delay?In(H.delay):null;return 0!==ot&&N.forEach($t=>{const Tn=I.appendInstructionToTimeline($t,ot,jt);ne=Math.max(ne,Tn.duration+Tn.delay)}),ne}visitReference(N,I){I.updateOptions(N.options,!0),Un(this,N.animation,I),I.previousNode=N}visitSequence(N,I){const H=I.subContextCount;let J=I;const ne=N.options;if(ne&&(ne.params||ne.delay)&&(J=I.createSubContext(ne),J.transformIntoNewTimeline(),null!=ne.delay)){J.previousNode.type==C.If.Style&&(J.currentTimeline.snapshotCurrentStyles(),J.previousNode=va);const ot=In(ne.delay);J.delayNextStep(ot)}N.steps.length&&(N.steps.forEach(ot=>Un(this,ot,J)),J.currentTimeline.applyStylesToKeyframe(),J.subContextCount>H&&J.transformIntoNewTimeline()),I.previousNode=N}visitGroup(N,I){const H=[];let J=I.currentTimeline.currentTime;const ne=N.options&&N.options.delay?In(N.options.delay):0;N.steps.forEach(ot=>{const jt=I.createSubContext(N.options);ne&&jt.delayNextStep(ne),Un(this,ot,jt),J=Math.max(J,jt.currentTimeline.currentTime),H.push(jt.currentTimeline)}),H.forEach(ot=>I.currentTimeline.mergeTimelineCollectedStyles(ot)),I.transformIntoNewTimeline(J),I.previousNode=N}_visitTiming(N,I){if(N.dynamic){const H=N.strValue;return Li(I.params?Ei(H,I.params,I.errors):H,I.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,I){const H=I.currentAnimateTimings=this._visitTiming(N.timings,I),J=I.currentTimeline;H.delay&&(I.incrementTime(H.delay),J.snapshotCurrentStyles());const ne=N.style;ne.type==C.If.Keyframes?this.visitKeyframes(ne,I):(I.incrementTime(H.duration),this.visitStyle(ne,I),J.applyStylesToKeyframe()),I.currentAnimateTimings=null,I.previousNode=N}visitStyle(N,I){const H=I.currentTimeline,J=I.currentAnimateTimings;!J&&H.hasCurrentStyleProperties()&&H.forwardFrame();const ne=J&&J.easing||N.easing;N.isEmptyStep?H.applyEmptyStep(ne):H.setStyles(N.styles,ne,I.errors,I.options),I.previousNode=N}visitKeyframes(N,I){const H=I.currentAnimateTimings,J=I.currentTimeline.duration,ne=H.duration,jt=I.createSubContext().currentTimeline;jt.easing=H.easing,N.styles.forEach($t=>{jt.forwardTime(($t.offset||0)*ne),jt.setStyles($t.styles,$t.easing,I.errors,I.options),jt.applyStylesToKeyframe()}),I.currentTimeline.mergeTimelineCollectedStyles(jt),I.transformIntoNewTimeline(J+ne),I.previousNode=N}visitQuery(N,I){const H=I.currentTimeline.currentTime,J=N.options||{},ne=J.delay?In(J.delay):0;ne&&(I.previousNode.type===C.If.Style||0==H&&I.currentTimeline.hasCurrentStyleProperties())&&(I.currentTimeline.snapshotCurrentStyles(),I.previousNode=va);let ot=H;const jt=I.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!J.optional,I.errors);I.currentQueryTotal=jt.length;let $t=null;jt.forEach((Tn,ii)=>{I.currentQueryIndex=ii;const Qn=I.createSubContext(N.options,Tn);ne&&Qn.delayNextStep(ne),Tn===I.element&&($t=Qn.currentTimeline),Un(this,N.animation,Qn),Qn.currentTimeline.applyStylesToKeyframe(),ot=Math.max(ot,Qn.currentTimeline.currentTime)}),I.currentQueryIndex=0,I.currentQueryTotal=0,I.transformIntoNewTimeline(ot),$t&&(I.currentTimeline.mergeTimelineCollectedStyles($t),I.currentTimeline.snapshotCurrentStyles()),I.previousNode=N}visitStagger(N,I){const H=I.parentContext,J=I.currentTimeline,ne=N.timings,ot=Math.abs(ne.duration),jt=ot*(I.currentQueryTotal-1);let $t=ot*I.currentQueryIndex;switch(ne.duration<0?"reverse":ne.easing){case"reverse":$t=jt-$t;break;case"full":$t=H.currentStaggerTime}const ii=I.currentTimeline;$t&&ii.delayNextStep($t);const Qn=ii.currentTime;Un(this,N.animation,I),I.previousNode=N,H.currentStaggerTime=J.currentTime-Qn+(J.startTime-H.currentTimeline.startTime)}}const va={};class Va{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=va;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(N,I,H,J,ne,ot,jt,$t){this._driver=N,this.element=I,this.subInstructions=H,this._enterClassName=J,this._leaveClassName=ne,this.errors=ot,this.timelines=jt,this.currentTimeline=$t||new $a(this._driver,I,0),jt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,I){if(!N)return;const H=N;let J=this.options;null!=H.duration&&(J.duration=In(H.duration)),null!=H.delay&&(J.delay=In(H.delay));const ne=H.params;if(ne){let ot=J.params;ot||(ot=this.options.params={}),Object.keys(ne).forEach(jt=>{(!I||!ot.hasOwnProperty(jt))&&(ot[jt]=Ei(ne[jt],ot,this.errors))})}}_copyOptions(){const N={};if(this.options){const I=this.options.params;if(I){const H=N.params={};Object.keys(I).forEach(J=>{H[J]=I[J]})}}return N}createSubContext(N=null,I,H){const J=I||this.element,ne=new Va(this._driver,J,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(J,H||0));return ne.previousNode=this.previousNode,ne.currentAnimateTimings=this.currentAnimateTimings,ne.options=this._copyOptions(),ne.updateOptions(N),ne.currentQueryIndex=this.currentQueryIndex,ne.currentQueryTotal=this.currentQueryTotal,ne.parentContext=this,this.subContextCount++,ne}transformIntoNewTimeline(N){return this.previousNode=va,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,I,H){const J={duration:I??N.duration,delay:this.currentTimeline.currentTime+(H??0)+N.delay,easing:""},ne=new ir(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,J,N.stretchStartingKeyframe);return this.timelines.push(ne),J}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,I,H,J,ne,ot){let jt=[];if(J&&jt.push(this.element),N.length>0){N=(N=N.replace(xt,"."+this._enterClassName)).replace(rn,"."+this._leaveClassName);let Tn=this._driver.query(this.element,N,1!=H);0!==H&&(Tn=H<0?Tn.slice(Tn.length+H,Tn.length):Tn.slice(0,H)),jt.push(...Tn)}return!ne&&0==jt.length&&ot.push(function dt(){return new p.buA(3014,!1)}()),jt}}class $a{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(N,I,H,J){this._driver=N,this.element=I,this.startTime=H,this._elementTimelineStylesLookup=J,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(I),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(I,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(N){const I=1===this._keyframes.size&&this._pendingStyles.size;this.duration||I?(this.forwardTime(this.currentTime+N),I&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,I){return this.applyStylesToKeyframe(),new $a(this._driver,N,I||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,I){this._localTimelineStyles.set(N,I),this._globalTimelineStyles.set(N,I),this._styleSummary.set(N,{time:this.currentTime,value:I})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&this._previousKeyframe.set("easing",N);for(let[I,H]of this._globalTimelineStyles)this._backFill.set(I,H||C.kp),this._currentKeyframe.set(I,C.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,I,H,J){I&&this._previousKeyframe.set("easing",I);const ne=J&&J.params||{},ot=function Ar(z,N){const I=new Map;let H;return z.forEach(J=>{if("*"===J){H??=N.keys();for(let ne of H)I.set(ne,C.kp)}else for(let[ne,ot]of J)I.set(ne,ot)}),I}(N,this._globalTimelineStyles);for(let[jt,$t]of ot){const Tn=Ei($t,ne,H);this._pendingStyles.set(jt,Tn),this._localTimelineStyles.has(jt)||this._backFill.set(jt,this._globalTimelineStyles.get(jt)??C.kp),this._updateStyle(jt,Tn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((N,I)=>{this._currentKeyframe.set(I,N)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((N,I)=>{this._currentKeyframe.has(I)||this._currentKeyframe.set(I,N)}))}snapshotCurrentStyles(){for(let[N,I]of this._localTimelineStyles)this._pendingStyles.set(N,I),this._updateStyle(N,I)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let I in this._currentKeyframe)N.push(I);return N}mergeTimelineCollectedStyles(N){N._styleSummary.forEach((I,H)=>{const J=this._styleSummary.get(H);(!J||I.time>J.time)&&this._updateStyle(H,I.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,I=new Set,H=1===this._keyframes.size&&0===this.duration;let J=[];this._keyframes.forEach((jt,$t)=>{const Tn=new Map([...this._backFill,...jt]);Tn.forEach((ii,Qn)=>{ii===C.FX?N.add(Qn):ii===C.kp&&I.add(Qn)}),H||Tn.set("offset",$t/this.duration),J.push(Tn)});const ne=[...N.values()],ot=[...I.values()];if(H){const jt=J[0],$t=new Map(jt);jt.set("offset",0),$t.set("offset",1),J=[jt,$t]}return la(this.element,J,ne,ot,this.duration,this.startTime,this.easing,!1)}}class ir extends $a{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(N,I,H,J,ne,ot,jt=!1){super(N,I,ot.delay),this.keyframes=H,this.preStyleProps=J,this.postStyleProps=ne,this._stretchStartingKeyframe=jt,this.timings={duration:ot.duration,delay:ot.delay,easing:ot.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:I,duration:H,easing:J}=this.timings;if(this._stretchStartingKeyframe&&I){const ne=[],ot=H+I,jt=I/ot,$t=new Map(N[0]);$t.set("offset",0),ne.push($t);const Tn=new Map(N[0]);Tn.set("offset",Ga(jt)),ne.push(Tn);const ii=N.length-1;for(let Qn=1;Qn<=ii;Qn++){let Vi=new Map(N[Qn]);const Qi=Vi.get("offset");Vi.set("offset",Ga((I+Qi*H)/ot)),ne.push(Vi)}H=ot,I=0,J="",N=ne}return la(this.element,N,this.preStyleProps,this.postStyleProps,H,I,J,!0)}}function Ga(z,N=3){const I=Math.pow(10,N-1);return Math.round(z*I)/I}function ds(z,N,I,H,J,ne,ot,jt,$t,Tn,ii,Qn,Vi){return{type:0,element:z,triggerName:N,isRemovalTransition:J,fromState:I,fromStyles:ne,toState:H,toStyles:ot,timelines:jt,queriedElements:$t,preStyleProps:Tn,postStyleProps:ii,totalTime:Qn,errors:Vi}}const us={};class hs{_triggerName;ast;_stateStyles;constructor(N,I,H){this._triggerName=N,this.ast=I,this._stateStyles=H}match(N,I,H,J){return function fs(z,N,I,H,J){return z.some(ne=>ne(N,I,H,J))}(this.ast.matchers,N,I,H,J)}buildStyles(N,I,H){let J=this._stateStyles.get("*");return void 0!==N&&(J=this._stateStyles.get(N?.toString())||J),J?J.buildStyles(I,H):new Map}build(N,I,H,J,ne,ot,jt,$t,Tn,ii){const Qn=[],Vi=this.ast.options&&this.ast.options.params||us,Di=this.buildStyles(H,jt&&jt.params||us,Qn),Fi=$t&&$t.params||us,ya=this.buildStyles(J,Fi,Qn),Oa=new Set,sr=new Map,vs=new Map,xa="void"===J,br={params:ms(Fi,Vi),delay:this.ast.options?.delay},Ba=ii?[]:Wn(N,I,this.ast.animation,ne,ot,Di,ya,br,Tn,Qn);let Vr=0;return Ba.forEach(Dr=>{Vr=Math.max(Dr.duration+Dr.delay,Vr)}),Qn.length?ds(I,this._triggerName,H,J,xa,Di,ya,[],[],sr,vs,Vr,Qn):(Ba.forEach(Dr=>{const ll=Dr.element,Xc=Ie(sr,ll,new Set);Dr.preStyleProps.forEach(hd=>Xc.add(hd));const $f=Ie(vs,ll,new Set);Dr.postStyleProps.forEach(hd=>$f.add(hd)),ll!==I&&Oa.add(ll)}),ds(I,this._triggerName,H,J,xa,Di,ya,Ba,[...Oa.values()],sr,vs,Vr))}}function ms(z,N){const I={...N};return Object.entries(z).forEach(([H,J])=>{null!=J&&(I[H]=J)}),I}class bo{styles;defaultParams;normalizer;constructor(N,I,H){this.styles=N,this.defaultParams=I,this.normalizer=H}buildStyles(N,I){const H=new Map,J=ms(N,this.defaultParams);return this.styles.styles.forEach(ne=>{"string"!=typeof ne&&ne.forEach((ot,jt)=>{ot&&(ot=Ei(ot,J,I));const $t=this.normalizer.normalizePropertyName(jt,I);ot=this.normalizer.normalizeStyleValue(jt,$t,ot,I),H.set(jt,ot)})}),H}}class js{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(N,I,H){this.name=N,this.ast=I,this._normalizer=H,I.states.forEach(J=>{this.states.set(J.name,new bo(J.style,J.options&&J.options.params||{},H))}),Ka(this.states,"true","1"),Ka(this.states,"false","0"),I.transitions.forEach(J=>{this.transitionFactories.push(new hs(N,J,this.states))}),this.fallbackTransition=function Cs(z,N){return new hs(z,{type:C.If.Transition,animation:{type:C.If.Sequence,steps:[],options:null},matchers:[(ot,jt)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,I,H,J){return this.transitionFactories.find(ot=>ot.match(N,I,H,J))||null}matchStyles(N,I,H){return this.fallbackTransition.buildStyles(N,I,H)}}function Ka(z,N,I){z.has(N)?z.has(I)||z.set(I,z.get(N)):z.has(I)&&z.set(N,z.get(I))}const Pr=new mn;class Is{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(N,I,H){this.bodyNode=N,this._driver=I,this._normalizer=H}register(N,I){const H=[],ne=Xi(this._driver,I,H,[]);if(H.length)throw function Xt(){return new p.buA(3503,!1)}();this._animations.set(N,ne)}_buildPlayer(N,I,H){const J=N.element,ne=Fe(this._normalizer,N.keyframes,I,H);return this._driver.animate(J,ne,N.duration,N.delay,N.easing,[],!0)}create(N,I,H={}){const J=[],ne=this._animations.get(N);let ot;const jt=new Map;if(ne?(ot=Wn(this._driver,I,ne,St,At,new Map,new Map,H,Pr,J),ot.forEach(ii=>{const Qn=Ie(jt,ii.element,new Map);ii.postStyleProps.forEach(Vi=>Qn.set(Vi,null))})):(J.push(function de(){return new p.buA(3300,!1)}()),ot=[]),J.length)throw function ae(){return new p.buA(3504,!1)}();jt.forEach((ii,Qn)=>{ii.forEach((Vi,Qi)=>{ii.set(Qi,this._driver.computeStyle(Qn,Qi,C.kp))})});const Tn=tt(ot.map(ii=>{const Qn=jt.get(ii.element);return this._buildPlayer(ii,new Map,Qn)}));return this._playersById.set(N,Tn),Tn.onDestroy(()=>this.destroy(N)),this.players.push(Tn),Tn}destroy(N){const I=this._getPlayer(N);I.destroy(),this._playersById.delete(N);const H=this.players.indexOf(I);H>=0&&this.players.splice(H,1)}_getPlayer(N){const I=this._playersById.get(N);if(!I)throw function me(){return new p.buA(3301,!1)}();return I}listen(N,I,H,J){const ne=Qe(I,"","","");return Pe(this._getPlayer(N),H,ne,J),()=>{}}command(N,I,H,J){if("register"==H)return void this.register(N,J[0]);if("create"==H)return void this.create(N,I,J[0]||{});const ne=this._getPlayer(N);switch(H){case"play":ne.play();break;case"pause":ne.pause();break;case"reset":ne.reset();break;case"restart":ne.restart();break;case"finish":ne.finish();break;case"init":ne.init();break;case"setPosition":ne.setPosition(parseFloat(J[0]));break;case"destroy":this.destroy(N)}}}const Wr="ng-animate-queued",Js="ng-animate-disabled",Jr=[],ps={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dr="__ng_removed";class ar{namespaceId;value;options;get params(){return this.options.params}constructor(N,I=""){this.namespaceId=I;const H=N&&N.hasOwnProperty("value");if(this.value=function qr(z){return z??null}(H?N.value:N),H){const{value:ne,...ot}=N;this.options=ot}else this.options={};this.options.params||(this.options.params={})}absorbOptions(N){const I=N.params;if(I){const H=this.options.params;Object.keys(I).forEach(J=>{null==H[J]&&(H[J]=I[J])})}}}const Xr="void",Kr=new ar(Xr);class Ms{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(N,I,H){this.id=N,this.hostElement=I,this._engine=H,this._hostClassName="ng-tns-"+N,Ha(I,this._hostClassName)}listen(N,I,H,J){if(!this._triggers.has(I))throw function Le(){return new p.buA(3302,!1)}();if(null==H||0==H.length)throw function et(){return new p.buA(3303,!1)}();if(!function _s(z){return"start"==z||"done"==z}(H))throw function tn(){return new p.buA(3400,!1)}();const ne=Ie(this._elementListeners,N,[]),ot={name:I,phase:H,callback:J};ne.push(ot);const jt=Ie(this._engine.statesByElement,N,new Map);return jt.has(I)||(Ha(N,fn),Ha(N,fn+"-"+I),jt.set(I,Kr)),()=>{this._engine.afterFlush(()=>{const $t=ne.indexOf(ot);$t>=0&&ne.splice($t,1),this._triggers.has(I)||jt.delete(I)})}}register(N,I){return!this._triggers.has(N)&&(this._triggers.set(N,I),!0)}_getTrigger(N){const I=this._triggers.get(N);if(!I)throw function Vt(){return new p.buA(3401,!1)}();return I}trigger(N,I,H,J=!0){const ne=this._getTrigger(I),ot=new Mr(this.id,I,N);let jt=this._engine.statesByElement.get(N);jt||(Ha(N,fn),Ha(N,fn+"-"+I),this._engine.statesByElement.set(N,jt=new Map));let $t=jt.get(I);const Tn=new ar(H,this.id);if(!(H&&H.hasOwnProperty("value"))&&$t&&Tn.absorbOptions($t.options),jt.set(I,Tn),$t||($t=Kr),Tn.value!==Xr&&$t.value===Tn.value){if(!function Ws(z,N){const I=Object.keys(z),H=Object.keys(N);if(I.length!=H.length)return!1;for(let J=0;J{Yt(N,ya),Pt(N,Oa)})}return}const Vi=Ie(this._engine.playersByElement,N,[]);Vi.forEach(Fi=>{Fi.namespaceId==this.id&&Fi.triggerName==I&&Fi.queued&&Fi.destroy()});let Qi=ne.matchTransition($t.value,Tn.value,N,Tn.params),Di=!1;if(!Qi){if(!J)return;Qi=ne.fallbackTransition,Di=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:I,transition:Qi,fromState:$t,toState:Tn,player:ot,isFallbackTransition:Di}),Di||(Ha(N,Wr),ot.onStart(()=>{Za(N,Wr)})),ot.onDone(()=>{let Fi=this.players.indexOf(ot);Fi>=0&&this.players.splice(Fi,1);const ya=this._engine.playersByElement.get(N);if(ya){let Oa=ya.indexOf(ot);Oa>=0&&ya.splice(Oa,1)}}),this.players.push(ot),Vi.push(ot),ot}deregister(N){this._triggers.delete(N),this._engine.statesByElement.forEach(I=>I.delete(N)),this._elementListeners.forEach((I,H)=>{this._elementListeners.set(H,I.filter(J=>J.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const I=this._engine.playersByElement.get(N);I&&(I.forEach(H=>H.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,I){const H=this._engine.driver.query(N,mt,!0);H.forEach(J=>{if(J[dr])return;const ne=this._engine.fetchNamespacesByElement(J);ne.size?ne.forEach(ot=>ot.triggerLeaveAnimation(J,I,!1,!0)):this.clearElementCache(J)}),this._engine.afterFlushAnimationsDone(()=>H.forEach(J=>this.clearElementCache(J)))}triggerLeaveAnimation(N,I,H,J){const ne=this._engine.statesByElement.get(N),ot=new Map;if(ne){const jt=[];if(ne.forEach(($t,Tn)=>{if(ot.set(Tn,$t.value),this._triggers.has(Tn)){const ii=this.trigger(N,Tn,Xr,J);ii&&jt.push(ii)}}),jt.length)return this._engine.markElementAsRemoved(this.id,N,!0,I,ot),H&&tt(jt).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const I=this._elementListeners.get(N),H=this._engine.statesByElement.get(N);if(I&&H){const J=new Set;I.forEach(ne=>{const ot=ne.name;if(J.has(ot))return;J.add(ot);const $t=this._triggers.get(ot).fallbackTransition,Tn=H.get(ot)||Kr,ii=new ar(Xr),Qn=new Mr(this.id,ot,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:ot,transition:$t,fromState:Tn,toState:ii,player:Qn,isFallbackTransition:!0})})}}removeNode(N,I){const H=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,I),this.triggerLeaveAnimation(N,I,!0))return;let J=!1;if(H.totalAnimations){const ne=H.players.length?H.playersByQueriedElement.get(N):[];if(ne&&ne.length)J=!0;else{let ot=N;for(;ot=ot.parentNode;)if(H.statesByElement.get(ot)){J=!0;break}}}if(this.prepareLeaveAnimationListeners(N),J)H.markElementAsRemoved(this.id,N,!1,I);else{const ne=N[dr];(!ne||ne===ps)&&(H.afterFlush(()=>this.clearElementCache(N)),H.destroyInnerAnimations(N),H._onRemovalComplete(N,I))}}insertNode(N,I){Ha(N,this._hostClassName)}drainQueuedTransitions(N){const I=[];return this._queue.forEach(H=>{const J=H.player;if(J.destroyed)return;const ne=H.element,ot=this._elementListeners.get(ne);ot&&ot.forEach(jt=>{if(jt.name==H.triggerName){const $t=Qe(ne,H.triggerName,H.fromState.value,H.toState.value);$t._data=N,Pe(H.player,jt.phase,$t,jt.callback)}}),J.markedForDestroy?this._engine.afterFlush(()=>{J.destroy()}):I.push(H)}),this._queue=[],I.sort((H,J)=>{const ne=H.transition.ast.depCount,ot=J.transition.ast.depCount;return 0==ne||0==ot?ne-ot:this._engine.driver.containsElement(H.element,J.element)?1:-1})}destroy(N){this.players.forEach(I=>I.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}}class Hi{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(N,I)=>{};_onRemovalComplete(N,I){this.onRemovalComplete(N,I)}constructor(N,I,H){this.bodyNode=N,this.driver=I,this._normalizer=H}get queuedPlayers(){const N=[];return this._namespaceList.forEach(I=>{I.players.forEach(H=>{H.queued&&N.push(H)})}),N}createNamespace(N,I){const H=new Ms(N,I,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,I)?this._balanceNamespaceList(H,I):(this.newHostElements.set(I,H),this.collectEnterElement(I)),this._namespaceLookup[N]=H}_balanceNamespaceList(N,I){const H=this._namespaceList,J=this.namespacesByHostElement;if(H.length-1>=0){let ot=!1,jt=this.driver.getParentElement(I);for(;jt;){const $t=J.get(jt);if($t){const Tn=H.indexOf($t);H.splice(Tn+1,0,N),ot=!0;break}jt=this.driver.getParentElement(jt)}ot||H.unshift(N)}else H.push(N);return J.set(I,N),N}register(N,I){let H=this._namespaceLookup[N];return H||(H=this.createNamespace(N,I)),H}registerTrigger(N,I,H){let J=this._namespaceLookup[N];J&&J.register(I,H)&&this.totalAnimations++}destroy(N,I){N&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const H=this._fetchNamespace(N);this.namespacesByHostElement.delete(H.hostElement);const J=this._namespaceList.indexOf(H);J>=0&&this._namespaceList.splice(J,1),H.destroy(I),delete this._namespaceLookup[N]}))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const I=new Set,H=this.statesByElement.get(N);if(H)for(let J of H.values())if(J.namespaceId){const ne=this._fetchNamespace(J.namespaceId);ne&&I.add(ne)}return I}trigger(N,I,H,J){if(Pa(I)){const ne=this._fetchNamespace(N);if(ne)return ne.trigger(I,H,J),!0}return!1}insertNode(N,I,H,J){if(!Pa(I))return;const ne=I[dr];if(ne&&ne.setForRemoval){ne.setForRemoval=!1,ne.setForMove=!0;const ot=this.collectedLeaveElements.indexOf(I);ot>=0&&this.collectedLeaveElements.splice(ot,1)}if(N){const ot=this._fetchNamespace(N);ot&&ot.insertNode(I,H)}J&&this.collectEnterElement(I)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,I){I?this.disabledNodes.has(N)||(this.disabledNodes.add(N),Ha(N,Js)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),Za(N,Js))}removeNode(N,I,H){if(Pa(I)){const J=N?this._fetchNamespace(N):null;J?J.removeNode(I,H):this.markElementAsRemoved(N,I,!1,H);const ne=this.namespacesByHostElement.get(I);ne&&ne.id!==N&&ne.removeNode(I,H)}else this._onRemovalComplete(I,H)}markElementAsRemoved(N,I,H,J,ne){this.collectedLeaveElements.push(I),I[dr]={namespaceId:N,setForRemoval:J,hasAnimation:H,removedBeforeQueried:!1,previousTriggersValues:ne}}listen(N,I,H,J,ne){return Pa(I)?this._fetchNamespace(N).listen(I,H,J,ne):()=>{}}_buildInstruction(N,I,H,J,ne){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,H,J,N.fromState.options,N.toState.options,I,ne)}destroyInnerAnimations(N){let I=this.driver.query(N,mt,!0);I.forEach(H=>this.destroyActiveAnimationsForElement(H)),0!=this.playersByQueriedElement.size&&(I=this.driver.query(N,wn,!0),I.forEach(H=>this.finishActiveQueriedAnimationOnElement(H)))}destroyActiveAnimationsForElement(N){const I=this.playersByElement.get(N);I&&I.forEach(H=>{H.queued?H.markedForDestroy=!0:H.destroy()})}finishActiveQueriedAnimationOnElement(N){const I=this.playersByQueriedElement.get(N);I&&I.forEach(H=>H.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return tt(this.players).onDone(()=>N());N()})}processLeaveNode(N){const I=N[dr];if(I&&I.setForRemoval){if(N[dr]=ps,I.namespaceId){this.destroyInnerAnimations(N);const H=this._fetchNamespace(I.namespaceId);H&&H.clearElementCache(N)}this._onRemovalComplete(N,I.setForRemoval)}N.classList?.contains(Js)&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(H=>{this.markElementAsDisabled(H,!1)})}flush(N=-1){let I=[];if(this.newHostElements.size&&(this.newHostElements.forEach((H,J)=>this._balanceNamespaceList(H,J)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let H=0;HH()),this._flushFns=[],this._whenQuietFns.length){const H=this._whenQuietFns;this._whenQuietFns=[],I.length?tt(I).onDone(()=>{H.forEach(J=>J())}):H.forEach(J=>J())}}reportError(N){throw function hn(){return new p.buA(3402,!1)}()}_flushAnimations(N,I){const H=new mn,J=[],ne=new Map,ot=[],jt=new Map,$t=new Map,Tn=new Map,ii=new Set;this.disabledNodes.forEach(ea=>{ii.add(ea);const ha=this.driver.query(ea,".ng-animate-queued",!0);for(let da=0;da{const da=St+Fi++;Di.set(ha,da),ea.forEach(er=>Ha(er,da))});const ya=[],Oa=new Set,sr=new Set;for(let ea=0;eaOa.add(er)):sr.add(ha))}const vs=new Map,xa=Aa(Vi,Array.from(Oa));xa.forEach((ea,ha)=>{const da=At+Fi++;vs.set(ha,da),ea.forEach(er=>Ha(er,da))}),N.push(()=>{Qi.forEach((ea,ha)=>{const da=Di.get(ha);ea.forEach(er=>Za(er,da))}),xa.forEach((ea,ha)=>{const da=vs.get(ha);ea.forEach(er=>Za(er,da))}),ya.forEach(ea=>{this.processLeaveNode(ea)})});const br=[],Ba=[];for(let ea=this._namespaceList.length-1;ea>=0;ea--)this._namespaceList[ea].drainQueuedTransitions(I).forEach(da=>{const er=da.player,Us=da.element;if(br.push(er),this.collectedEnterElements.length){const ys=Us[dr];if(ys&&ys.setForMove){if(ys.previousTriggersValues&&ys.previousTriggersValues.has(da.triggerName)){const Ac=ys.previousTriggersValues.get(da.triggerName),_l=this.statesByElement.get(da.element);if(_l&&_l.has(da.triggerName)){const n2=_l.get(da.triggerName);n2.value=Ac,_l.set(da.triggerName,n2)}}return void er.destroy()}}const uc=!Qn||!this.driver.containsElement(Qn,Us),Vs=vs.get(Us),Nl=Di.get(Us),Gr=this._buildInstruction(da,H,Nl,Vs,uc);if(Gr.errors&&Gr.errors.length)return void Ba.push(Gr);if(uc)return er.onStart(()=>Yt(Us,Gr.fromStyles)),er.onDestroy(()=>Pt(Us,Gr.toStyles)),void J.push(er);if(da.isFallbackTransition)return er.onStart(()=>Yt(Us,Gr.fromStyles)),er.onDestroy(()=>Pt(Us,Gr.toStyles)),void J.push(er);const fd=[];Gr.timelines.forEach(ys=>{ys.stretchStartingKeyframe=!0,this.disabledNodes.has(ys.element)||fd.push(ys)}),Gr.timelines=fd,H.append(Us,Gr.timelines),ot.push({instruction:Gr,player:er,element:Us}),Gr.queriedElements.forEach(ys=>Ie(jt,ys,[]).push(er)),Gr.preStyleProps.forEach((ys,Ac)=>{if(ys.size){let _l=$t.get(Ac);_l||$t.set(Ac,_l=new Set),ys.forEach((n2,i2)=>_l.add(i2))}}),Gr.postStyleProps.forEach((ys,Ac)=>{let _l=Tn.get(Ac);_l||Tn.set(Ac,_l=new Set),ys.forEach((n2,i2)=>_l.add(i2))})});if(Ba.length){const ea=[];Ba.forEach(ha=>{ea.push(function En(){return new p.buA(3505,!1)}())}),br.forEach(ha=>ha.destroy()),this.reportError(ea)}const Vr=new Map,Dr=new Map;ot.forEach(ea=>{const ha=ea.element;H.has(ha)&&(Dr.set(ha,ha),this._beforeAnimationBuild(ea.player.namespaceId,ea.instruction,Vr))}),J.forEach(ea=>{const ha=ea.element;this._getPreviousPlayers(ha,!1,ea.namespaceId,ea.triggerName,null).forEach(er=>{Ie(Vr,ha,[]).push(er),er.destroy()})});const ll=ya.filter(ea=>Qr(ea,$t,Tn)),Xc=new Map;Yr(Xc,this.driver,sr,Tn,C.kp).forEach(ea=>{Qr(ea,$t,Tn)&&ll.push(ea)});const hd=new Map;Qi.forEach((ea,ha)=>{Yr(hd,this.driver,new Set(ea),$t,C.FX)}),ll.forEach(ea=>{const ha=Xc.get(ea),da=hd.get(ea);Xc.set(ea,new Map([...ha?.entries()??[],...da?.entries()??[]]))});const Zu=[],B1=[],Kc={};ot.forEach(ea=>{const{element:ha,player:da,instruction:er}=ea;if(H.has(ha)){if(ii.has(ha))return da.onDestroy(()=>Pt(ha,er.toStyles)),da.disabled=!0,da.overrideTotalTime(er.totalTime),void J.push(da);let Us=Kc;if(Dr.size>1){let Vs=ha;const Nl=[];for(;Vs=Vs.parentNode;){const Gr=Dr.get(Vs);if(Gr){Us=Gr;break}Nl.push(Vs)}Nl.forEach(Gr=>Dr.set(Gr,Us))}const uc=this._buildAnimation(da.namespaceId,er,Vr,ne,hd,Xc);if(da.setRealPlayer(uc),Us===Kc)Zu.push(da);else{const Vs=this.playersByElement.get(Us);Vs&&Vs.length&&(da.parentPlayer=tt(Vs)),J.push(da)}}else Yt(ha,er.fromStyles),da.onDestroy(()=>Pt(ha,er.toStyles)),B1.push(da),ii.has(ha)&&J.push(da)}),B1.forEach(ea=>{const ha=ne.get(ea.element);if(ha&&ha.length){const da=tt(ha);ea.setRealPlayer(da)}}),J.forEach(ea=>{ea.parentPlayer?ea.syncPlayerEvents(ea.parentPlayer):ea.destroy()});for(let ea=0;ea!uc.destroyed);Us.length?ks(this,ha,Us):this.processLeaveNode(ha)}return ya.length=0,Zu.forEach(ea=>{this.players.push(ea),ea.onDone(()=>{ea.destroy();const ha=this.players.indexOf(ea);this.players.splice(ha,1)}),ea.play()}),Zu}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,I,H,J,ne){let ot=[];if(I){const jt=this.playersByQueriedElement.get(N);jt&&(ot=jt)}else{const jt=this.playersByElement.get(N);if(jt){const $t=!ne||ne==Xr;jt.forEach(Tn=>{Tn.queued||!$t&&Tn.triggerName!=J||ot.push(Tn)})}}return(H||J)&&(ot=ot.filter(jt=>!(H&&H!=jt.namespaceId||J&&J!=jt.triggerName))),ot}_beforeAnimationBuild(N,I,H){const ne=I.element,ot=I.isRemovalTransition?void 0:N,jt=I.isRemovalTransition?void 0:I.triggerName;for(const $t of I.timelines){const Tn=$t.element,ii=Tn!==ne,Qn=Ie(H,Tn,[]);this._getPreviousPlayers(Tn,ii,ot,jt,I.toState).forEach(Qi=>{const Di=Qi.getRealPlayer();Di.beforeDestroy&&Di.beforeDestroy(),Qi.destroy(),Qn.push(Qi)})}Yt(ne,I.fromStyles)}_buildAnimation(N,I,H,J,ne,ot){const jt=I.triggerName,$t=I.element,Tn=[],ii=new Set,Qn=new Set,Vi=I.timelines.map(Di=>{const Fi=Di.element;ii.add(Fi);const ya=Fi[dr];if(ya&&ya.removedBeforeQueried)return new C.sf(Di.duration,Di.delay);const Oa=Fi!==$t,sr=function Rs(z){const N=[];return Nr(z,N),N}((H.get(Fi)||Jr).map(Vr=>Vr.getRealPlayer())).filter(Vr=>!!Vr.element&&Vr.element===Fi),vs=ne.get(Fi),xa=ot.get(Fi),br=Fe(this._normalizer,Di.keyframes,vs,xa),Ba=this._buildPlayer(Di,br,sr);if(Di.subTimeline&&J&&Qn.add(Fi),Oa){const Vr=new Mr(N,jt,Fi);Vr.setRealPlayer(Ba),Tn.push(Vr)}return Ba});Tn.forEach(Di=>{Ie(this.playersByQueriedElement,Di.element,[]).push(Di),Di.onDone(()=>function gs(z,N,I){let H=z.get(N);if(H){if(H.length){const J=H.indexOf(I);H.splice(J,1)}0==H.length&&z.delete(N)}return H}(this.playersByQueriedElement,Di.element,Di))}),ii.forEach(Di=>Ha(Di,It));const Qi=tt(Vi);return Qi.onDestroy(()=>{ii.forEach(Di=>Za(Di,It)),Pt($t,I.toStyles)}),Qn.forEach(Di=>{Ie(J,Di,[]).push(Qi)}),Qi}_buildPlayer(N,I,H){return I.length>0?this.driver.animate(N.element,I,N.duration,N.delay,N.easing,H):new C.sf(N.duration,N.delay)}}class Mr{namespaceId;triggerName;element;_player=new C.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(N,I,H){this.namespaceId=N,this.triggerName=I,this.element=H}setRealPlayer(N){this._containsRealPlayer||(this._player=N,this._queuedCallbacks.forEach((I,H)=>{I.forEach(J=>Pe(N,H,void 0,J))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const I=this._player;I.triggerCallback&&N.onStart(()=>I.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,I){Ie(this._queuedCallbacks,N,[]).push(I)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}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(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const I=this._player;I.triggerCallback&&I.triggerCallback(N)}}function Pa(z){return z&&1===z.nodeType}function es(z,N){const I=z.style.display;return z.style.display=N??"none",I}function Yr(z,N,I,H,J){const ne=[];I.forEach($t=>ne.push(es($t)));const ot=[];H.forEach(($t,Tn)=>{const ii=new Map;$t.forEach(Qn=>{const Vi=N.computeStyle(Tn,Qn,J);ii.set(Qn,Vi),(!Vi||0==Vi.length)&&(Tn[dr]=lr,ot.push(Tn))}),z.set(Tn,ii)});let jt=0;return I.forEach($t=>es($t,ne[jt++])),ot}function Aa(z,N){const I=new Map;if(z.forEach(jt=>I.set(jt,[])),0==N.length)return I;const J=new Set(N),ne=new Map;function ot(jt){if(!jt)return 1;let $t=ne.get(jt);if($t)return $t;const Tn=jt.parentNode;return $t=I.has(Tn)?Tn:J.has(Tn)?1:ot(Tn),ne.set(jt,$t),$t}return N.forEach(jt=>{const $t=ot(jt);1!==$t&&I.get($t).push(jt)}),I}function Ha(z,N){z.classList?.add(N)}function Za(z,N){z.classList?.remove(N)}function ks(z,N,I){tt(I).onDone(()=>z.processLeaveNode(N))}function Nr(z,N){for(let I=0;IJ.add(ne)):N.set(z,H),I.delete(z),!0}class Es{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(N,I)=>{};constructor(N,I,H){this._driver=I,this._normalizer=H,this._transitionEngine=new Hi(N.body,I,H),this._timelineEngine=new Is(N.body,I,H),this._transitionEngine.onRemovalComplete=(J,ne)=>this.onRemovalComplete(J,ne)}registerTrigger(N,I,H,J,ne){const ot=N+"-"+J;let jt=this._triggerCache[ot];if(!jt){const $t=[],ii=Xi(this._driver,ne,$t,[]);if($t.length)throw function qt(){return new p.buA(3404,!1)}();jt=function Zr(z,N,I){return new js(z,N,I)}(J,ii,this._normalizer),this._triggerCache[ot]=jt}this._transitionEngine.registerTrigger(I,J,jt)}register(N,I){this._transitionEngine.register(N,I)}destroy(N,I){this._transitionEngine.destroy(N,I)}onInsert(N,I,H,J){this._transitionEngine.insertNode(N,I,H,J)}onRemove(N,I,H){this._transitionEngine.removeNode(N,I,H)}disableAnimations(N,I){this._transitionEngine.markElementAsDisabled(N,I)}process(N,I,H,J){if("@"==H.charAt(0)){const[ne,ot]=le(H);this._timelineEngine.command(ne,I,ot,J)}else this._transitionEngine.trigger(N,I,H,J)}listen(N,I,H,J,ne){if("@"==H.charAt(0)){const[ot,jt]=le(H);return this._timelineEngine.listen(ot,I,jt,ne)}return this._transitionEngine.listen(N,I,H,J,ne)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(N){this._transitionEngine.afterFlushAnimationsDone(N)}}let pt=(()=>{class z{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(I,H,J){this._element=I,this._startStyles=H,this._endStyles=J;let ne=z.initialStylesByElement.get(I);ne||z.initialStylesByElement.set(I,ne=new Map),this._initialStyles=ne}start(){this._state<1&&(this._startStyles&&Pt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pt(this._element,this._initialStyles),this._endStyles&&(Pt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(z.initialStylesByElement.delete(this._element),this._startStyles&&(Yt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yt(this._element,this._endStyles),this._endStyles=null),Pt(this._element,this._initialStyles),this._state=3)}}return z})();function Ve(z){let N=null;return z.forEach((I,H)=>{(function Rt(z){return"display"===z||"position"===z})(H)&&(N=N||new Map,N.set(H,I))}),N}class vn{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(N,I,H,J){this.element=N,this.keyframes=I,this.options=H,this._specialStyles=J,this._duration=H.duration,this._delay=H.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;const N=this.keyframes,I=this._triggerWebAnimation(this.element,N,this.options);if(!I)return this._onFinish(),null;this.domPlayer=I,this._finalKeyframe=N.length?N[N.length-1]:new Map;const H=()=>this._onFinish();return I.addEventListener("finish",H),this.onDestroy(()=>{I.removeEventListener("finish",H)}),I}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(N){const I=[];return N.forEach(H=>{I.push(Object.fromEntries(H))}),I}_triggerWebAnimation(N,I,H){const J=this._convertKeyframesToObject(I);try{return N.animate(J,H)}catch{return null}}onStart(N){this._originalOnStartFns.push(N),this._onStartFns.push(N)}onDone(N){this._originalOnDoneFns.push(N),this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){const N=this._buildPlayer();N&&(this.hasStarted()||(this._onStartFns.forEach(I=>I()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),N.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.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(N=>N()),this._onDestroyFns=[])}setPosition(N){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=N*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N=new Map;this.hasStarted()&&this._finalKeyframe.forEach((H,J)=>{"offset"!==J&&N.set(J,this._finished?H:ui(this.element,J))}),this.currentSnapshot=N}triggerCallback(N){const I="start"===N?this._onStartFns:this._onDoneFns;I.forEach(H=>H()),I.length=0}}class Ni{validateStyleProperty(N){return!0}validateAnimatableStyleProperty(N){return!0}containsElement(N,I){return He(N,I)}getParentElement(N){return ze(N)}query(N,I,H){return Wt(N,I,H)}computeStyle(N,I,H){return ui(N,I)}animate(N,I,H,J,ne,ot=[]){const $t={duration:H,delay:J,fill:0==J?"both":"forwards"};ne&&($t.easing=ne);const Tn=new Map,ii=ot.filter(Qi=>Qi instanceof vn);(function Nn(z,N){return 0===z||0===N})(H,J)&&ii.forEach(Qi=>{Qi.currentSnapshot.forEach((Di,Fi)=>Tn.set(Fi,Di))});let Qn=function Ze(z){return z.length?z[0]instanceof Map?z:z.map(N=>new Map(Object.entries(N))):[]}(I).map(Qi=>new Map(Qi));Qn=function jn(z,N,I){if(I.size&&N.length){let H=N[0],J=[];if(I.forEach((ne,ot)=>{H.has(ot)||J.push(ot),H.set(ot,ne)}),J.length)for(let ne=1;neot.set(jt,ui(z,jt)))}}return N}(N,Qn,Tn);const Vi=function ct(z,N){let I=null,H=null;return Array.isArray(N)&&N.length?(I=Ve(N[0]),N.length>1&&(H=Ve(N[N.length-1]))):N instanceof Map&&(I=Ve(N)),I||H?new pt(z,I,H):null}(N,Qn);return new vn(N,Qn,$t,Vi)}}const Vn="@.disabled";class _t{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(N,I,H,J){this.namespaceId=N,this.delegate=I,this.engine=H,this._onDestroy=J}get data(){return this.delegate.data}destroyNode(N){this.delegate.destroyNode?.(N)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(N,I){return this.delegate.createElement(N,I)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,I){this.delegate.appendChild(N,I),this.engine.onInsert(this.namespaceId,I,N,!1)}insertBefore(N,I,H,J=!0){this.delegate.insertBefore(N,I,H),this.engine.onInsert(this.namespaceId,I,N,J)}removeChild(N,I,H,J){J?this.delegate.removeChild(N,I,H,J):this.parentNode(I)&&this.engine.onRemove(this.namespaceId,I,this.delegate)}selectRootElement(N,I){return this.delegate.selectRootElement(N,I)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,I,H,J){this.delegate.setAttribute(N,I,H,J)}removeAttribute(N,I,H){this.delegate.removeAttribute(N,I,H)}addClass(N,I){this.delegate.addClass(N,I)}removeClass(N,I){this.delegate.removeClass(N,I)}setStyle(N,I,H,J){this.delegate.setStyle(N,I,H,J)}removeStyle(N,I,H){this.delegate.removeStyle(N,I,H)}setProperty(N,I,H){"@"==I.charAt(0)&&I==Vn?this.disableAnimations(N,!!H):this.delegate.setProperty(N,I,H)}setValue(N,I){this.delegate.setValue(N,I)}listen(N,I,H,J){return this.delegate.listen(N,I,H,J)}disableAnimations(N,I){this.engine.disableAnimations(N,I)}}class xn extends _t{factory;constructor(N,I,H,J,ne){super(I,H,J,ne),this.factory=N,this.namespaceId=I}setProperty(N,I,H){"@"==I.charAt(0)?"."==I.charAt(1)&&I==Vn?this.disableAnimations(N,H=void 0===H||!!H):this.engine.process(this.namespaceId,N,I.slice(1),H):this.delegate.setProperty(N,I,H)}listen(N,I,H,J){if("@"==I.charAt(0)){const ne=function Bn(z){switch(z){case"body":return document.body;case"document":return document;case"window":return window;default:return z}}(N);let ot=I.slice(1),jt="";return"@"!=ot.charAt(0)&&([ot,jt]=function wi(z){const N=z.indexOf(".");return[z.substring(0,N),z.slice(N+1)]}(ot)),this.engine.listen(this.namespaceId,ne,ot,jt,$t=>{this.factory.scheduleListenerCallback($t._data||-1,H,$t)})}return this.delegate.listen(N,I,H,J)}}class Ea{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(N,I,H){this.delegate=N,this.engine=I,this._zone=H,I.onRemovalComplete=(J,ne)=>{ne?.removeChild(null,J)}}createRenderer(N,I){const J=this.delegate.createRenderer(N,I);if(!N||!I?.data?.animation){const Tn=this._rendererCache;let ii=Tn.get(J);return ii||(ii=new _t("",J,this.engine,()=>Tn.delete(J)),Tn.set(J,ii)),ii}const ne=I.id,ot=I.id+"-"+this._currentId;this._currentId++,this.engine.register(ot,N);const jt=Tn=>{Array.isArray(Tn)?Tn.forEach(jt):this.engine.registerTrigger(ne,ot,N,Tn.name,Tn)};return I.data.animation.forEach(jt),new xn(this,ot,J,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(N,I,H){if(N>=0&&NI(H));const J=this._animationCallbacksBuffer;0==J.length&&queueMicrotask(()=>{this._zone.run(()=>{J.forEach(ne=>{const[ot,jt]=ne;ot(jt)}),this._animationCallbacksBuffer=[]})}),J.push([I,H])}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()}componentReplaced(N){this.engine.flush(),this.delegate.componentReplaced?.(N)}}const Sr=[{provide:sa,useFactory:function qo(){return new dn}},{provide:Es,useClass:(()=>{class z extends Es{constructor(I,H,J){super(I,H,J)}ngOnDestroy(){this.flush()}static \u0275fac=function(H){return new(H||z)(p.KVO(p.qQL),p.KVO(aa),p.KVO(sa))};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})()},{provide:e._9s,useFactory:function yl(z,N,I){return new Ea(z,N,I)},deps:[h.mE,Es,e.SKi]}],ts=[{provide:aa,useClass:Xn},{provide:e.bc$,useValue:"NoopAnimations"},...Sr],Mo=[{provide:aa,useFactory:()=>new Ni},{provide:e.bc$,useFactory:()=>"BrowserAnimations"},...Sr];let Eo=(()=>{class z{static withConfig(I){return{ngModule:z,providers:I.disableAnimations?ts:Mo}}static \u0275fac=function(H){return new(H||z)};static \u0275mod=e.$C({type:z});static \u0275inj=p.G2t({providers:Mo,imports:[T]})}return z})();var hr=l(99327),ns=l(29330),vi=l(59640),Vo=l(11747),Go=l(983),fl=l(71985),ws=l(7673),Ho=l(57786),fo=l(47242),xl=l(92771),zl=l(97647),za=l(5964),fr=l(96354),Cl=l(70274),to=l(43236),wo=l(28211),mo=l(39974),So=l(58750),jo=l(81853),ml=l(54360),no=l(45225);const Ml=(0,jo.L)(z=>function(I=null){z(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=I});function El(z){throw new Ml(z)}var ao=l(70152),$r=l(99437),Ss=l(96697),mi=l(56977),Xs=l(25558),ro=l(65245),Os=l(40941),so=l(53993),el=l(31943),Ul=l(89079);const To="PERFORM_ACTION",is="ROLLBACK",tl="TOGGLE_ACTION",je="JUMP_TO_STATE",Be="JUMP_TO_ACTION",Ke="IMPORT_STATE",bt="LOCK_CHANGES",Ht="PAUSE_RECORDING";class sn{constructor(N,I){if(this.action=N,this.timestamp=I,this.type=To,typeof N.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Rn{constructor(){this.type="REFRESH"}}class di{constructor(N){this.timestamp=N,this.type="RESET"}}class ji{constructor(N){this.timestamp=N,this.type=is}}class Ia{constructor(N){this.timestamp=N,this.type="COMMIT"}}class rr{constructor(){this.type="SWEEP"}}class Fr{constructor(N){this.id=N,this.type=tl}}class as{constructor(N){this.index=N,this.type=je}}class oo{constructor(N){this.actionId=N,this.type=Be}}class lo{constructor(N){this.nextLiftedState=N,this.type=Ke}}class Sl{constructor(N){this.status=N,this.type=bt}}class mc{constructor(N){this.status=N,this.type=Ht}}const Tl=new p.nKC("@ngrx/store-devtools Options"),qc=new p.nKC("@ngrx/store-devtools Initial Config");function po(){return null}function gc(z){const N={maxAge:!1,monitor:po,actionSanitizer:void 0,stateSanitizer:void 0,name:"NgRx Store DevTools",serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},I="function"==typeof z?z():z,J=I.features||!!I.logOnly&&{pause:!0,export:!0,test:!0}||N.features;!0===J.import&&(J.import="custom");const ne=Object.assign({},N,{features:J},I);if(ne.maxAge&&ne.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${ne.maxAge}`);return ne}function Ps(z,N){return z.filter(I=>N.indexOf(I)<0)}function Do(z){const{computedStates:N,currentStateIndex:I}=z;if(I>=N.length){const{state:J}=N[N.length-1];return J}const{state:H}=N[I];return H}function Ao(z){return new sn(z,+Date.now())}function kc(z,N){return Object.keys(N).reduce((I,H)=>{const J=Number(H);return I[J]=pl(z,N[J],J),I},{})}function pl(z,N,I){return{...N,action:z(N.action,I)}}function il(z,N){return N.map((I,H)=>({state:Lo(z,I.state,H),error:I.error}))}function Lo(z,N,I){return z(N,I)}function Dl(z){return z.predicate||z.actionsSafelist||z.actionsBlocklist}function Gl(z,N,I,H,J){const ne=I&&!I(z,N.action),ot=H&&!N.action.type.match(H.map($t=>Hl($t)).join("|")),jt=J&&N.action.type.match(J.map($t=>Hl($t)).join("|"));return ne||ot||jt}function Hl(z){return z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Al(z){return{ngZone:z?(0,p.WQX)(e.SKi):null,connectInZone:z}}let Io=(()=>{var z;class N extends vi.SS{static#e=z=()=>(this.\u0275fac=(()=>{let H;return function(ne){return(H||(H=e.xGo(N)))(ne||N)}})(),this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();const jl=new p.nKC("@ngrx/store-devtools Redux Devtools Extension");let rs=(()=>{var z;class N{constructor(H,J,ne){this.config=J,this.dispatcher=ne,this.zoneConfig=Al(this.config.connectInZone),this.devtoolsExtension=H,this.createActionStreams()}notify(H,J){if(this.devtoolsExtension)if(H.type===To){if(J.isLocked||J.isPaused)return;const ne=Do(J);if(Dl(this.config)&&Gl(ne,H,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const ot=this.config.stateSanitizer?Lo(this.config.stateSanitizer,ne,J.currentStateIndex):ne,jt=this.config.actionSanitizer?pl(this.config.actionSanitizer,H,J.nextActionId):H;this.sendToReduxDevtools(()=>this.extensionConnection.send(jt,ot))}else{const ne={...J,stagedActionIds:J.stagedActionIds,actionsById:this.config.actionSanitizer?kc(this.config.actionSanitizer,J.actionsById):J.actionsById,computedStates:this.config.stateSanitizer?il(this.config.stateSanitizer,J.computedStates):J.computedStates};this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,ne,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new fl.c(H=>{const J=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=J,J.init(),J.subscribe(ne=>H.next(ne)),J.unsubscribe}):Go.w}createActionStreams(){const H=this.createChangesObservable().pipe((0,zl.u)()),J=H.pipe((0,za.p)(ii=>"START"===ii.type)),ne=H.pipe((0,za.p)(ii=>"STOP"===ii.type)),ot=H.pipe((0,za.p)(ii=>"DISPATCH"===ii.type),(0,fr.T)(ii=>this.unwrapAction(ii.payload)),(0,Cl.H)(ii=>ii.type===Ke?this.dispatcher.pipe((0,za.p)(Qn=>Qn.type===vi.q6),function io(z,N){const{first:I,each:H,with:J=El,scheduler:ne=N??to.E,meta:ot=null}=(0,wo.v)(z)?{first:z}:"number"==typeof z?{each:z}:z;if(null==I&&null==H)throw new TypeError("No timeout provided.");return(0,mo.N)((jt,$t)=>{let Tn,ii,Qn=null,Vi=0;const Qi=Di=>{ii=(0,no.N)($t,ne,()=>{try{Tn.unsubscribe(),(0,So.Tg)(J({meta:ot,lastValue:Qn,seen:Vi})).subscribe($t)}catch(Fi){$t.error(Fi)}},Di)};Tn=jt.subscribe((0,ml._)($t,Di=>{ii?.unsubscribe(),Vi++,$t.next(Qn=Di),H>0&&Qi(H)},void 0,void 0,()=>{ii?.closed||ii?.unsubscribe(),Qn=null})),!Vi&&Qi(null!=I?"number"==typeof I?I:+I-ne.now():H)})}(1e3),(0,ao.B)(1e3),(0,fr.T)(()=>ii),(0,$r.W)(()=>(0,ws.of)(ii)),(0,Ss.s)(1)):(0,ws.of)(ii))),$t=H.pipe((0,za.p)(ii=>"ACTION"===ii.type),(0,fr.T)(ii=>this.unwrapAction(ii.payload))).pipe((0,mi.Q)(ne)),Tn=ot.pipe((0,mi.Q)(ne));this.start$=J.pipe((0,mi.Q)(ne)),this.actions$=this.start$.pipe((0,Xs.n)(()=>$t)),this.liftedActions$=this.start$.pipe((0,Xs.n)(()=>Tn))}unwrapAction(H){return"string"==typeof H?(0,eval)(`(${H})`):H}getExtensionConfig(H){const J={name:H.name,features:H.features,serialize:H.serialize,autoPause:H.autoPause??!1,trace:H.trace??!1,traceLimit:H.traceLimit??75};return!1!==H.maxAge&&(J.maxAge=H.maxAge),J}sendToReduxDevtools(H){try{H()}catch(J){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",J)}}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(jl),p.KVO(Tl),p.KVO(Io))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();const Tr={type:vi.Zz},ft={type:"@ngrx/store-devtools/recompute"};function Tt(z,N,I,H,J){if(H)return{state:I,error:"Interrupted by an error up the chain"};let ot,ne=I;try{ne=z(I,N)}catch(jt){ot=jt.toString(),J.handleError(jt)}return{state:ne,error:ot}}function on(z,N,I,H,J,ne,ot,jt,$t){if(N>=z.length&&z.length===ne.length)return z;const Tn=z.slice(0,N),ii=ne.length-($t?1:0);for(let Qn=N;Qn-1?Di:Tt(I,Qi,Fi,ya,jt);Tn.push(sr)}return $t&&Tn.push(z[z.length-1]),Tn}let Mi=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t,Tn,ii){const Qn=function Hn(z,N){return{monitorState:N(void 0,{}),nextActionId:1,actionsById:{0:Ao(Tr)},stagedActionIds:[0],skippedActionIds:[],committedState:z,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}(Tn,ii.monitor),Vi=function ni(z,N,I,H,J={}){return ne=>(ot,jt)=>{let{monitorState:$t,actionsById:Tn,nextActionId:ii,stagedActionIds:Qn,skippedActionIds:Vi,committedState:Qi,currentStateIndex:Di,computedStates:Fi,isLocked:ya,isPaused:Oa}=ot||N;function sr(br){let Ba=br,Vr=Qn.slice(1,Ba+1);for(let Dr=0;Dr-1===Vr.indexOf(Dr)),Qn=[0,...Qn.slice(Ba+1)],Qi=Fi[Ba].state,Fi=Fi.slice(Ba),Di=Di>Ba?Di-Ba:0}function vs(){Tn={0:Ao(Tr)},ii=1,Qn=[0],Vi=[],Qi=Fi[Di].state,Di=0,Fi=[]}ot||(Tn=Object.create(Tn));let xa=0;switch(jt.type){case bt:ya=jt.status,xa=1/0;break;case Ht:Oa=jt.status,Oa?(Qn=[...Qn,ii],Tn[ii]=new sn({type:"@ngrx/devtools/pause"},+Date.now()),ii++,xa=Qn.length-1,Fi=Fi.concat(Fi[Fi.length-1]),Di===Qn.length-2&&Di++,xa=1/0):vs();break;case"RESET":Tn={0:Ao(Tr)},ii=1,Qn=[0],Vi=[],Qi=z,Di=0,Fi=[];break;case"COMMIT":vs();break;case is:Tn={0:Ao(Tr)},ii=1,Qn=[0],Vi=[],Di=0,Fi=[];break;case tl:{const{id:br}=jt;Vi=-1===Vi.indexOf(br)?[br,...Vi]:Vi.filter(Vr=>Vr!==br),xa=Qn.indexOf(br);break}case"SET_ACTIONS_ACTIVE":{const{start:br,end:Ba,active:Vr}=jt,Dr=[];for(let ll=br;llJ.maxAge&&(Fi=on(Fi,xa,ne,Qi,Tn,Qn,Vi,I,Oa),sr(Qn.length-J.maxAge),xa=1/0);break;case vi.q6:if(Fi.filter(Ba=>Ba.error).length>0)xa=0,J.maxAge&&Qn.length>J.maxAge&&(Fi=on(Fi,xa,ne,Qi,Tn,Qn,Vi,I,Oa),sr(Qn.length-J.maxAge),xa=1/0);else{if(!Oa&&!ya){Di===Qn.length-1&&Di++;const Ba=ii++;Tn[Ba]=new sn(jt,+Date.now()),Qn=[...Qn,Ba],xa=Qn.length-1,Fi=on(Fi,xa,ne,Qi,Tn,Qn,Vi,I,Oa)}Fi=Fi.map(Ba=>({...Ba,state:ne(Ba.state,ft)})),Di=Qn.length-1,J.maxAge&&Qn.length>J.maxAge&&sr(Qn.length-J.maxAge),xa=1/0}break;default:xa=1/0}return Fi=on(Fi,xa,ne,Qi,Tn,Qn,Vi,I,Oa),$t=H($t,jt),{monitorState:$t,actionsById:Tn,nextActionId:ii,stagedActionIds:Qn,skippedActionIds:Vi,committedState:Qi,currentStateIndex:Di,computedStates:Fi,isLocked:ya,isPaused:Oa}}}(Tn,Qn,$t,ii.monitor,ii),Qi=(0,Ho.h)((0,Ho.h)(J.asObservable().pipe((0,ro.i)(1)),ot.actions$).pipe((0,fr.T)(Ao)),H,ot.liftedActions$).pipe((0,Os.Q)(fo.T)),Di=ne.pipe((0,fr.T)(Vi)),Fi=Al(ii.connectInZone),ya=new xl.m(1);this.liftedStateSubscription=Qi.pipe((0,so.E)(Di),ki(Fi),(0,el.S)(({state:vs},[xa,br])=>{let Ba=br(vs,xa);return xa.type!==To&&Dl(ii)&&(Ba=function Vl(z,N,I,H){const J=[],ne={},ot=[];return z.stagedActionIds.forEach((jt,$t)=>{const Tn=z.actionsById[jt];Tn&&($t&&Gl(z.computedStates[$t],Tn,N,I,H)||(ne[jt]=Tn,J.push(jt),ot.push(z.computedStates[$t])))}),{...z,stagedActionIds:J,actionsById:ne,computedStates:ot}}(Ba,ii.predicate,ii.actionsSafelist,ii.actionsBlocklist)),ot.notify(xa,Ba),{state:Ba,action:xa}},{state:Qn,action:null})).subscribe(({state:vs,action:xa})=>{ya.next(vs),xa.type===To&&jt.next(xa.action)}),this.extensionStartSubscription=ot.start$.pipe(ki(Fi)).subscribe(()=>{this.refresh()});const Oa=ya.asObservable(),sr=Oa.pipe((0,fr.T)(Do));Object.defineProperty(sr,"state",{value:(0,Ul.ot)(sr,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=H,this.liftedState=Oa,this.state=sr}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(H){this.dispatcher.next(H)}next(H){this.dispatcher.next(H)}error(H){}complete(){}performAction(H){this.dispatch(new sn(H,+Date.now()))}refresh(){this.dispatch(new Rn)}reset(){this.dispatch(new di(+Date.now()))}rollback(){this.dispatch(new ji(+Date.now()))}commit(){this.dispatch(new Ia(+Date.now()))}sweep(){this.dispatch(new rr)}toggleAction(H){this.dispatch(new Fr(H))}jumpToAction(H){this.dispatch(new oo(H))}jumpToState(H){this.dispatch(new as(H))}importState(H){this.dispatch(new lo(H))}lockChanges(H){this.dispatch(new Sl(H))}pauseRecording(H){this.dispatch(new mc(H))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(Io),p.KVO(vi.SS),p.KVO(vi.QU),p.KVO(rs),p.KVO(vi.sA),p.KVO(p.zcH),p.KVO(vi.N_),p.KVO(Tl))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();function ki({ngZone:z,connectInZone:N}){return I=>N?new fl.c(H=>I.subscribe({next:J=>z.run(()=>H.next(J)),error:J=>z.run(()=>H.error(J)),complete:()=>z.run(()=>H.complete())})):I}const $i=new p.nKC("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function ra(z,N){return!!z||N.monitor!==po}function ba(){const z="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[z]<"u"?window[z]:null}function oa(z){return z.state}function mr(z={}){return(0,p.EmA)([rs,Io,Mi,{provide:qc,useValue:z},{provide:$i,deps:[jl,Tl],useFactory:ra},{provide:jl,useFactory:ba},{provide:Tl,deps:[qc],useFactory:gc},{provide:vi.h1,deps:[Mi],useFactory:oa},{provide:vi.Bh,useExisting:Io}])}let Lr=(()=>{var z;class N{static instrument(H={}){return{ngModule:N,providers:[mr(H)]}}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275mod=e.$C({type:N}),this.\u0275inj=p.G2t({}))}return z(),N})();var bi=l(21413),Ns=l(33726),Fs=l(22806),Xo=l(1807);function Ro(z=0,N=to.E){return z<0&&(z=0),(0,Xo.O)(z,z,N)}var Ll=l(18359),gl=l(57908),Ks=l(9326),Wl=l(88141),ed=l(70980),_d=l(23294);class td{}function tc(z){return(0,p.EmA)([{provide:td,useValue:z}])}let vd=(()=>{class z{constructor(I,H){this._ngZone=H,this.timerStart$=new bi.B,this.idleDetected$=new bi.B,this.timeout$=new bi.B,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,I&&this.setConfig(I)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,Ho.h)((0,Ns.R)(window,"mousemove"),(0,Ns.R)(window,"resize"),(0,Ns.R)(document,"keydown"))),this.idle$=(0,Fs.H)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function ec(z,...N){var I,H;const J=null!==(I=(0,Ks.lI)(N))&&void 0!==I?I:to.E,ne=null!==(H=N[0])&&void 0!==H?H:null,ot=N[1]||1/0;return(0,mo.N)((jt,$t)=>{let Tn=[],ii=!1;const Qn=Di=>{const{buffer:Fi,subs:ya}=Di;ya.unsubscribe(),(0,gl.o)(Tn,Di),$t.next(Fi),ii&&Vi()},Vi=()=>{if(Tn){const Di=new Ll.yU;$t.add(Di);const ya={buffer:[],subs:Di};Tn.push(ya),(0,no.N)(Di,J,()=>Qn(ya),z)}};null!==ne&&ne>=0?(0,no.N)($t,J,Vi,ne,!0):ii=!0,Vi();const Qi=(0,ml._)($t,Di=>{const Fi=Tn.slice();for(const ya of Fi){const{buffer:Oa}=ya;Oa.push(Di),ot<=Oa.length&&Qn(ya)}},()=>{for(;Tn?.length;)$t.next(Tn.shift().buffer);Qi?.unsubscribe(),$t.complete(),$t.unsubscribe()},void 0,()=>Tn=null);jt.subscribe(Qi)})}(this.idleSensitivityMillisec),(0,za.p)(I=>!I.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,Wl.M)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,Xs.n)(()=>this._ngZone.runOutsideAngular(()=>Ro(1e3).pipe((0,mi.Q)((0,Ho.h)(this.activityEvents$,(0,Xo.O)(this.idleMillisec).pipe((0,Wl.M)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,ed.j)(()=>{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,_d.F)(),(0,Xs.n)(I=>I?this.timer$:(0,ws.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,za.p)(I=>!!I),(0,Wl.M)(()=>this.isTimeout=!0),(0,fr.T)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(I){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(I):console.error("Call stopWatching() before set config values")}setConfig(I){I.idle&&(this.idleMillisec=1e3*I.idle),I.ping&&(this.pingMillisec=1e3*I.ping),I.idleSensitivity&&(this.idleSensitivityMillisec=1e3*I.idleSensitivity),I.timeout&&(this.timeout=I.timeout)}setCustomActivityEvents(I){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=I:console.error("Call stopWatching() before set custom activity events")}setupTimer(I){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,ws.of)(()=>new Date).pipe((0,fr.T)(H=>H()),(0,Xs.n)(H=>Ro(1e3).pipe((0,fr.T)(()=>Math.round(((new Date).valueOf()-H.valueOf())/1e3)),(0,Wl.M)(J=>{J>=I&&this.timeout$.next(!0)}))))})}setupPing(I){this.ping$=Ro(I).pipe((0,za.p)(()=>!this.isTimeout))}}return z.\u0275fac=function(I){return new(I||z)(p.KVO(td,8),p.KVO(e.SKi))},z.\u0275prov=p.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var co=l(38132),ja=l(43694),Ti=l(45383),Ra=l(79647),cr=l(20060),De=l(25596),at=l(52920),Jt=l(96850);const Yn=()=>({initial:!1});function gi(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[1].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[1].link))("active",I.activeLink===I.links[1].link)("state",e.lJ4(5,Yn)),e.R7$(),e.JRh(I.links[1].name)}}function Pi(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[2].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[2].link))("active",I.activeLink===I.links[2].link),e.R7$(),e.JRh(I.links[2].name)}}let Wa=(()=>{var z;class N{constructor(H,J){this.store=H,this.router=J,this.faUserCog=Ti.McB,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){const H=this.links.find(J=>this.router.url.includes(J.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeLink=ne?ne.link:this.links[0].link}}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{this.appConfig=J}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[2])).subscribe(J=>{this.showBitcoind=!1,this.selNode=J,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-settings"]],standalone:!1,decls:16,vars:8,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","state","click",4,"ngIf"],["role","tab","tabindex","3","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active","state"],["role","tab","tabindex","3","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Settings"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6)(8,"div",7),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.activeLink=ne.links[0].link)}),e.EFF(9),e.k0s(),e.DNE(10,gi,2,6,"div",8)(11,Pi,2,4,"div",9),e.k0s(),e.nrm(12,"mat-tab-nav-panel",null,0),e.j41(14,"div",10),e.nrm(15,"router-outlet"),e.k0s()()()()}if(2&J){const ot=e.sdS(13);e.R7$(),e.Y8G("icon",ne.faUserCog),e.R7$(6),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("routerLink",e.mNQ(ne.links[0].link))("active",ne.activeLink===ne.links[0].link),e.R7$(),e.JRh(ne.links[0].name),e.R7$(),e.Y8G("ngIf",!+ne.appConfig.SSO.rtlSSO),e.R7$(),e.Y8G("ngIf",ne.showBitcoind)}},dependencies:[o.bT,cr.aY,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,ja.n3,co.Wk],encapsulation:2}))}return z(),N})();var Ui=l(11771),La=l(98570),_i=l(89417),tr=l(88834),wa=l(69588),al=l(96183),ic=l(23029),go=l(10497),Xl=l(89587);function Z1(z,N){if(1&z&&(e.j41(0,"mat-option",15),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I.index),e.R7$(),e.Lme(" ",I.lnNode," (",I.lnImplementation,") ")}}function Eh(z,N){if(1&z){const I=e.RV6();e.j41(0,"form",3,0)(2,"div",4),e.nrm(3,"fa-icon",5),e.j41(4,"span",6),e.EFF(5,"Default Node"),e.k0s()(),e.j41(6,"div",7)(7,"div",8)(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10,"Default Node"),e.k0s(),e.j41(11,"mat-select",10),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.appConfig.defaultNodeIndex,J)||(ne.appConfig.defaultNodeIndex=J),p.Njj(J)}),e.DNE(12,Z1,2,3,"mat-option",11),e.k0s()()(),e.j41(13,"div",12)(14,"div",8)(15,"button",13),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onResetSettings())}),e.EFF(16,"Reset"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onUpdateApplicationSettings())}),e.EFF(18,"Update"),e.k0s()()()()()}if(2&z){const I=e.XpG();e.R7$(3),e.Y8G("icon",I.faWindowRestore),e.R7$(8),e.R50("ngModel",I.appConfig.defaultNodeIndex),e.R7$(),e.Y8G("ngForOf",I.appConfig.nodes)}}let nd=(()=>{var z;class N{constructor(H,J){this.logger=H,this.store=J,this.faWindowRestore=Ti.aFw,this.faPlus=Ti.QLR,this.previousDefaultNode=0,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(H)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateApplicationSettings(){this.appConfig.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,this.store.dispatch((0,Ui.rc)({payload:{showSnackBar:!0,message:"Default Node Updated.",config:this.appConfig}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-app-settings"]],standalone:!1,decls:2,vars:1,consts:[["form","ngForm"],["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"],["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","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start start"],["autoFocus","","name","defaultNode",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary",1,"mr-1",3,"click"],["mat-flat-button","","color","primary",3,"click"],[3,"value"]],template:function(J,ne){1&J&&(e.j41(0,"div",1),e.DNE(1,Eh,19,3,"form",2),e.k0s()),2&J&&(e.R7$(),e.Y8G("ngIf",ne.appConfig.nodes&&ne.appConfig.nodes.length&&ne.appConfig.nodes.length>0))},dependencies:[o.Sq,o.bT,_i.qT,_i.BC,_i.cb,_i.vS,_i.cV,cr.aY,tr.$z,wa.rl,wa.nJ,at.DJ,at.sA,at.UI,al.VO,ic.wT,go.Ld,Xl.N],encapsulation:2}))}return z(),N})();var vc=l(82852),Oo=l(51585),yc=l(31264),Ko=l(37541),J1=l(95416),Br=l(33746),uo=l(36013),bc=l(38288),ac=l(29157);const q1=["stepper"];function Il(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG();e.JRh(I.passwordFormLabel)}}function yd(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function t1(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.secretFormLabel)}}function e0(z,N){if(1&z&&e.nrm(0,"qr-code",33),2&z){const I=e.XpG(2);e.Y8G("value",I.otpauth)("size",180)}}function T2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Secret Code is required."),e.k0s())}function Rc(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-step",10)(1,"form",22),e.DNE(2,t1,1,1,"ng-template",23),e.j41(3,"div",24),e.DNE(4,e0,1,2,"qr-code",25),e.k0s(),e.j41(5,"div",26),e.nrm(6,"fa-icon",27),e.j41(7,"span"),e.EFF(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.k0s()(),e.j41(9,"div",28)(10,"mat-form-field",13)(11,"mat-label"),e.EFF(12,"Secret Code"),e.k0s(),e.nrm(13,"input",29),e.j41(14,"fa-icon",30),e.bIt("copied",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onCopySecret(J))}),e.k0s(),e.DNE(15,T2,2,0,"mat-error",15),e.k0s()(),e.j41(16,"div",31)(17,"button",32),e.EFF(18,"Next"),e.k0s()()()()}if(2&z){const I=e.XpG();e.Y8G("stepControl",I.secretFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.secretFormGroup),e.R7$(3),e.Y8G("ngIf",I.otpauth),e.R7$(2),e.Y8G("icon",I.faInfoCircle),e.R7$(8),e.Y8G("icon",I.faCopy)("payload",null==I.secretFormGroup||null==I.secretFormGroup.controls||null==I.secretFormGroup.controls.secret?null:I.secretFormGroup.controls.secret.value),e.R7$(),e.Y8G("ngIf",null==I.secretFormGroup||null==I.secretFormGroup.controls||null==I.secretFormGroup.controls.secret||null==I.secretFormGroup.controls.secret.errors?null:I.secretFormGroup.controls.secret.errors.required)}}function wh(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.tokenFormLabel)}}function D2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Token is required."),e.k0s())}function A2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Token is invalid."),e.k0s())}function qe(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",8)(1,"div",28)(2,"mat-form-field",13)(3,"mat-label"),e.EFF(4,"Token"),e.k0s(),e.nrm(5,"input",37),e.DNE(6,D2,2,0,"mat-error",15)(7,A2,2,0,"mat-error",15),e.k0s()(),e.j41(8,"div",31)(9,"button",38),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onVerifyToken())}),e.EFF(10),e.k0s()()()}if(2&z){const I=e.XpG(2);e.R7$(6),e.Y8G("ngIf",null==I.tokenFormGroup||null==I.tokenFormGroup.controls||null==I.tokenFormGroup.controls.token||null==I.tokenFormGroup.controls.token.errors?null:I.tokenFormGroup.controls.token.errors.required),e.R7$(),e.Y8G("ngIf",null==I.tokenFormGroup||null==I.tokenFormGroup.controls||null==I.tokenFormGroup.controls.token||null==I.tokenFormGroup.controls.token.errors?null:I.tokenFormGroup.controls.token.errors.notValid),e.R7$(3),e.JRh(null!=I.tokenFormGroup&&null!=I.tokenFormGroup.controls&&null!=I.tokenFormGroup.controls.token&&null!=I.tokenFormGroup.controls.token.errors&&I.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function Dt(z,N){1&z&&(e.j41(0,"div")(1,"strong"),e.EFF(2,"Success! You are all set."),e.k0s()())}function wt(z,N){if(1&z&&(e.j41(0,"mat-step",34)(1,"form",35),e.DNE(2,wh,1,1,"ng-template",12)(3,qe,11,3,"div",36)(4,Dt,3,0,"div",15),e.k0s()()),2&z){const I=e.XpG();e.Y8G("stepControl",I.tokenFormGroup),e.R7$(),e.Y8G("formGroup",I.tokenFormGroup),e.R7$(2),e.Y8G("ngIf",!I.flgValidated||!I.isTokenValid),e.R7$(),e.Y8G("ngIf",I.flgValidated&&I.isTokenValid)}}function Ft(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.disableFormLabel)}}function ln(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",8)(1,"div",39),e.nrm(2,"fa-icon",27),e.j41(3,"span"),e.EFF(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.k0s()(),e.j41(5,"div",31)(6,"button",38),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onVerifyToken())}),e.EFF(7,"Disable"),e.k0s()()()}if(2&z){const I=e.XpG(2);e.R7$(2),e.Y8G("icon",I.faExclamationTriangle)}}function An(z,N){1&z&&(e.j41(0,"div")(1,"strong"),e.EFF(2,"Two factor authentication removed from RTL."),e.k0s()())}function On(z,N){if(1&z&&(e.j41(0,"mat-step",34)(1,"form",35),e.DNE(2,Ft,1,1,"ng-template",12)(3,ln,8,1,"div",36)(4,An,3,0,"div",15),e.k0s()()),2&z){const I=e.XpG();e.Y8G("stepControl",I.disableFormGroup),e.R7$(),e.Y8G("formGroup",I.disableFormGroup),e.R7$(2),e.Y8G("ngIf",!I.flgValidated||!I.isTokenValid),e.R7$(),e.Y8G("ngIf",I.flgValidated&&I.isTokenValid)}}let ai=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.dialogRef=H,this.data=J,this.store=ne,this.formBuilder=ot,this.rtlEffects=jt,this.snackBar=$t,this.faExclamationTriangle=Ti.zpE,this.faCopy=Ti.jPR,this.faInfoCircle=Ti.iW_,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:["",[_i.k0.required]],password:["",[_i.k0.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},_i.k0.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",_i.k0.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!this.appConfig?.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig?.enable2FA?"":this.generateSecret(),disabled:!0},_i.k0.required]})}generateSecret(){const H=yc.authenticator.generateSecret();return this.otpauth=yc.authenticator.keyuri("","Ride The Lightning (RTL)",H),H}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Ui.oz)({payload:vc(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Ss.s)(1)).subscribe(H=>{"ERROR"!==H?(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(H){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig?.enable2FA)this.appConfig.enable2FA=!1,this.appConfig.secret2FA="",this.store.dispatch((0,Ui.rc)({payload:{showSnackBar:!1,message:"Two factor authentication disabled successfully.",config:this.appConfig}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=yc.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.appConfig.enable2FA=!0,this.appConfig.secret2FA=this.secretFormGroup.controls.secret.value,this.store.dispatch((0,Ui.rc)({payload:{showSnackBar:!1,message:"Two factor authentication enabled successfully.",config:this.appConfig}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0}stepSelectionChanged(H){switch(H.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}H.selectedIndex{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(Oo.Vh),e.rXU(vi.il),e.rXU(_i.ze),e.rXU(Ko.H),e.rXU(J1.UG))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-two-factor-auth"]],viewQuery:function(J,ne){if(1&J&&e.GBs(q1,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.stepper=ot.first)}},standalone:!1,decls:30,vars:11,consts:[["stepper",""],["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 center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","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"],["errorCorrectionLevel","L",3,"value","size",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","","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"copied","icon","payload"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],["errorCorrectionLevel","L",3,"value","size"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Setup Two Factor Authentication"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),e.bIt("selectionChange",function($t){return p.eBV(ot),p.Njj(ne.stepSelectionChanged($t))}),e.j41(12,"mat-step",10)(13,"form",11),e.DNE(14,Il,1,1,"ng-template",12),e.j41(15,"div",1)(16,"mat-form-field",13)(17,"mat-label"),e.EFF(18,"Password"),e.k0s(),e.nrm(19,"input",14),e.DNE(20,yd,2,0,"mat-error",15),e.k0s()(),e.j41(21,"div",16)(22,"button",17),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onAuthenticate())}),e.EFF(23,"Confirm"),e.k0s()()()(),e.DNE(24,Rc,19,8,"mat-step",18)(25,wt,5,4,"mat-step",19)(26,On,5,4,"mat-step",19),e.k0s(),e.j41(27,"div",20)(28,"button",21),e.EFF(29),e.k0s()()()()()()}2&J&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(4),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",ne.passwordFormGroup)("editable",ne.flgEditable),e.R7$(),e.Y8G("formGroup",ne.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==ne.passwordFormGroup||null==ne.passwordFormGroup.controls||null==ne.passwordFormGroup.controls.password||null==ne.passwordFormGroup.controls.password.errors?null:ne.passwordFormGroup.controls.password.errors.required),e.R7$(4),e.Y8G("ngIf",!ne.showDisableStepper),e.R7$(),e.Y8G("ngIf",!ne.showDisableStepper),e.R7$(),e.Y8G("ngIf",ne.showDisableStepper),e.R7$(2),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(ne.flgValidated&&ne.isTokenValid?"Close":"Cancel"))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.j4,_i.JD,cr.aY,Oo.tx,tr.$z,De.m2,De.MM,Br.fg,wa.rl,wa.nJ,wa.TL,wa.yw,at.DJ,at.sA,at.UI,uo.V5,uo.Ti,uo.M6,uo.F7,bc.Um,ac.U,Xl.N],encapsulation:2}))}return z(),N})();var Mt=l(4416),zi=l(53202),Wi=l(71997);const Zi=["authForm"];function Ja(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Current password is required."),e.k0s())}function Fa(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.errorMsg)}}function Ts(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.errorConfirmMsg)}}function _r(z,N){if(1&z){const I=e.RV6();e.j41(0,"form",12,0)(2,"div",13),e.nrm(3,"fa-icon",6),e.j41(4,"span",7),e.EFF(5,"Password"),e.k0s()(),e.j41(6,"mat-form-field")(7,"mat-label"),e.EFF(8,"Current Password"),e.k0s(),e.j41(9,"input",14),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.currPassword,J)||(ne.currPassword=J),p.Njj(J)}),e.k0s(),e.DNE(10,Ja,2,0,"mat-error",15),e.k0s(),e.j41(11,"mat-form-field")(12,"mat-label"),e.EFF(13,"New Password"),e.k0s(),e.j41(14,"input",16),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.newPassword,J)||(ne.newPassword=J),p.Njj(J)}),e.k0s(),e.DNE(15,Fa,2,1,"mat-error",15),e.k0s(),e.j41(16,"mat-form-field")(17,"mat-label"),e.EFF(18,"Confirm New Password"),e.k0s(),e.j41(19,"input",17),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.confirmPassword,J)||(ne.confirmPassword=J),p.Njj(J)}),e.k0s(),e.DNE(20,Ts,2,1,"mat-error",15),e.k0s(),e.j41(21,"div",18)(22,"button",19),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onResetPassword())}),e.EFF(23,"Reset"),e.k0s(),e.j41(24,"button",20),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onChangePassword())}),e.EFF(25,"Change Password"),e.k0s()()()}if(2&z){const I=e.XpG();e.R7$(3),e.Y8G("icon",I.faLock),e.R7$(6),e.R50("ngModel",I.currPassword),e.R7$(),e.Y8G("ngIf",!I.currPassword),e.R7$(4),e.R50("ngModel",I.newPassword),e.R7$(),e.Y8G("ngIf",I.matchOldAndNewPasswords()),e.R7$(4),e.R50("ngModel",I.confirmPassword),e.R7$(),e.Y8G("ngIf",I.matchNewPasswords())}}let vr=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.logger=H,this.store=J,this.actions=ne,this.router=ot,this.sessionService=jt,this.faInfoCircle=Ti.iW_,this.faUserLock=Ti.aAJ,this.faUserClock=Ti.ld_,this.faLock=Ti.DW4,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.logger.info(this.appConfig)}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.selNode=H}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(H=>H.type===Mt.aU.RESET_PASSWORD_RES)).subscribe(H=>{if(Mt.Ah.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation?.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||Mt.Ah.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Ui.xw)({payload:{currPassword:vc(this.currPassword).toString(),newPassword:vc(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let H=!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.",H=!0):Mt.Ah.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=Mt.Ah?.reduce((J,ne,ot)=>ot{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il),e.rXU(Vo.En),e.rXU(ja.Ix),e.rXU(zi.Q))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-auth-settings"]],viewQuery:function(J,ne){if(1&J&&e.GBs(Zi,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.form=ot.first)}},standalone:!1,decls:15,vars:4,consts:[["authForm","ngForm"],["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"],[1,"my-2"],["fxLayout","column","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"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["matInput","","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModelChange","ngModel"],["matInput","","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModelChange","ngModel"],["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"]],template:function(J,ne){1&J&&(e.j41(0,"div",1),e.DNE(1,_r,26,7,"form",2),e.nrm(2,"mat-divider",3),e.j41(3,"div",4)(4,"div",5),e.nrm(5,"fa-icon",6),e.j41(6,"span",7),e.EFF(7,"Two Factor Authentication"),e.k0s()(),e.j41(8,"div",8),e.nrm(9,"fa-icon",9),e.j41(10,"span"),e.EFF(11,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.k0s()(),e.j41(12,"div",10)(13,"button",11),e.bIt("click",function(){return ne.on2FAuth()}),e.EFF(14),e.k0s()()()()),2&J&&(e.R7$(),e.Y8G("ngIf",null==ne.appConfig?null:ne.appConfig.allowPasswordUpdate),e.R7$(4),e.Y8G("icon",ne.faUserClock),e.R7$(4),e.Y8G("icon",ne.faInfoCircle),e.R7$(5),e.JRh(ne.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,wa.TL,Wi.q,at.DJ,at.sA,at.UI,Xl.N],encapsulation:2}))}return z(),N})();var yr=l(3902);function Bs(z,N){1&z&&e.nrm(0,"mat-divider",7)}function rl(z,N){if(1&z&&(e.j41(0,"div",4)(1,"pre",5),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.DNE(4,Bs,1,0,"mat-divider",6),e.k0s()),2&z){const I=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,I.configData)),e.R7$(2),e.Y8G("ngIf",""!==I.configData)}}function Ys(z,N){if(1&z&&(e.j41(0,"h2"),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function rc(z,N){if(1&z&&(e.j41(0,"h4",14),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function sl(z,N){1&z&&e.nrm(0,"mat-divider",15),2&z&&e.Y8G("inset",!0)}function Sh(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-card-subtitle",7),e.DNE(2,Ys,2,1,"h2",10),e.k0s(),e.j41(3,"mat-card-subtitle",11),e.DNE(4,rc,2,1,"h4",12),e.k0s(),e.DNE(5,sl,1,1,"mat-divider",13),e.k0s()),2&z){const I=N.$implicit;e.R7$(2),e.Y8G("ngIf",I.indexOf("[")>=0),e.R7$(2),e.Y8G("ngIf",I.indexOf("[")<0),e.R7$(),e.Y8G("ngIf",I.indexOf("[")<0)}}function xc(z,N){if(1&z&&(e.j41(0,"div",8)(1,"mat-list"),e.DNE(2,Sh,6,3,"mat-list-item",9),e.k0s()()),2&z){const I=e.XpG();e.R7$(2),e.Y8G("ngForOf",I.configData)}}let t0=(()=>{var z;class N{constructor(H,J,ne){this.store=H,this.rtlEffects=J,this.router=ne,this.configData="",this.fileFormat="INI",this.faCog=Ti.dB,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.dispatch((0,Ui.Dz)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{const J=H.data;this.fileFormat=H.format,this.configData=""===J||!J||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==J&&J&&"JSON"===this.fileFormat?J:"":J.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(Ko.H),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-bitcoin-config"]],standalone:!1,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(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,rl,5,4,"div",2)(3,xc,3,1,"div",3),e.k0s()()),2&J&&(e.R7$(2),e.Y8G("ngIf",""!==ne.configData&&"JSON"===ne.fileFormat),e.R7$(),e.Y8G("ngIf",""!==ne.configData&&("INI"===ne.fileFormat||"HOCON"===ne.fileFormat)))},dependencies:[o.Sq,o.bT,De.Lc,yr.jt,yr.YE,Wi.q,at.DJ,at.sA,at.UI,o.TG],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})();function Nm(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}let K4=(()=>{var z;class N{constructor(H,J,ne){this.dialogRef=H,this.store=J,this.rtlEffects=ne,this.password="",this.isAuthenticated=!1,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,Ss.s)(1)).subscribe(H=>{"ERROR"!==H?(this.isAuthenticated=!0,this.store.dispatch((0,Ui.R$)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Ui.oz)({payload:vc(this.password)}))}onClose(){this.store.dispatch((0,Ui.R$)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(vi.il),e.rXU(Ko.H))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-is-authorized"]],standalone:!1,decls:18,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 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","","type","password","id","password","name","password","tabindex","1","required","",3,"ngModelChange","ngModel"],[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(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e.EFF(5,"Authenticate with your RTL Password"),e.k0s()(),e.j41(6,"button",5),e.bIt("click",function(){return ne.onClose()}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"mat-label"),e.EFF(12,"Password"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(jt){return e.DH7(ne.password,jt)||(ne.password=jt),jt}),e.k0s(),e.DNE(14,Nm,2,0,"mat-error",9),e.k0s(),e.j41(15,"div",10)(16,"button",11),e.bIt("click",function(){return ne.onAuthenticate()}),e.EFF(17,"Confirm"),e.k0s()()()()()()),2&J&&(e.R7$(13),e.R50("ngModel",ne.password),e.R7$(),e.Y8G("ngIf",!ne.password))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,tr.$z,De.m2,De.MM,Br.fg,wa.rl,wa.nJ,wa.TL,at.DJ,at.sA,at.UI,Xl.N],encapsulation:2}))}return z(),N})();const n0=()=>({initial:!1});function i0(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[2].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[2].link))("active",I.activeLink===I.links[2].link)("state",e.lJ4(5,n0)),e.R7$(),e.JRh(I.links[2].name)}}function n1(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[3].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[3].link))("active",I.activeLink===I.links[3].link),e.R7$(),e.JRh(I.links[3].name)}}function bd(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",15),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.showLnConfigClicked())}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("active",I.activeLink===I.links[4].link),e.R7$(),e.JRh(I.links[4].name)}}let Th=(()=>{var z;class N{constructor(H,J,ne,ot){this.store=H,this.router=J,this.rtlEffects=ne,this.activatedRoute=ot,this.faTools=Ti.nsx,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodesettings",name:"Node Settings"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){const H=this.links.find(J=>this.router.url.includes(J.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeLink=ne?ne.link:this.links[0].link}}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{this.appConfig=J}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[2])).subscribe(J=>{switch(this.showLnConfig=!1,this.selNode=J,this.selNode.lnImplementation?.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.appConfig.SSO.rtlSSO?(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})):(this.store.dispatch((0,Ui.xO)({payload:{maxWidth:"50rem",data:{component:K4}}})),this.rtlEffects.closeAlert.pipe((0,mi.Q)(this.unSubs[3])).subscribe(H=>{H&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(ja.Ix),e.rXU(Ko.H),e.rXU(ja.nX))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-node-config"]],standalone:!1,decls:19,vars:13,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","3","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","state","click",4,"ngIf"],["tabindex","4","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","5","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"],["tabindex","3","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active","state"],["tabindex","4","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","5","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","active"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Node Config"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6)(8,"div",7),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.activeLink=ne.links[0].link)}),e.EFF(9),e.k0s(),e.j41(10,"div",8),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.activeLink=ne.links[1].link)}),e.EFF(11),e.k0s(),e.DNE(12,i0,2,6,"div",9)(13,n1,2,4,"div",10)(14,bd,2,2,"div",11),e.k0s(),e.nrm(15,"mat-tab-nav-panel",null,0),e.j41(17,"div",12),e.nrm(18,"router-outlet"),e.k0s()()()()}if(2&J){const ot=e.sdS(16);e.R7$(),e.Y8G("icon",ne.faTools),e.R7$(6),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("routerLink",e.mNQ(ne.links[0].link))("active",ne.activeLink===ne.links[0].link),e.R7$(),e.JRh(ne.links[0].name),e.R7$(),e.Y8G("routerLink",e.mNQ(ne.links[1].link))("active",ne.activeLink===ne.links[1].link),e.R7$(),e.JRh(ne.links[1].name),e.R7$(),e.Y8G("ngIf","ECL"!==(null==ne.selNode||null==ne.selNode.lnImplementation?null:ne.selNode.lnImplementation.toUpperCase())),e.R7$(),e.Y8G("ngIf","CLN"===(null==ne.selNode||null==ne.selNode.lnImplementation?null:ne.selNode.lnImplementation.toUpperCase())),e.R7$(),e.Y8G("ngIf",ne.showLnConfig)}},dependencies:[o.bT,cr.aY,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,ja.n3,co.Wk],encapsulation:2}))}return z(),N})();function L2(z,N){1&z&&e.nrm(0,"mat-divider",7)}function zs(z,N){if(1&z&&(e.j41(0,"div",4)(1,"pre",5),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.DNE(4,L2,1,0,"mat-divider",6),e.k0s()),2&z){const I=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,I.configData)),e.R7$(2),e.Y8G("ngIf",""!==I.configData)}}function I2(z,N){if(1&z&&(e.j41(0,"h2"),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function Dh(z,N){if(1&z&&(e.j41(0,"h4",14),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function Xa(z,N){1&z&&e.nrm(0,"mat-divider",15),2&z&&e.Y8G("inset",!0)}function k2(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-card-subtitle",7),e.DNE(2,I2,2,1,"h2",10),e.k0s(),e.j41(3,"mat-card-subtitle",11),e.DNE(4,Dh,2,1,"h4",12),e.k0s(),e.DNE(5,Xa,1,1,"mat-divider",13),e.k0s()),2&z){const I=N.$implicit;e.R7$(2),e.Y8G("ngIf",I.indexOf("[")>=0),e.R7$(2),e.Y8G("ngIf",I.indexOf("[")<0),e.R7$(),e.Y8G("ngIf",I.indexOf("[")<0)}}function Cc(z,N){if(1&z&&(e.j41(0,"div",8)(1,"mat-list"),e.DNE(2,k2,6,3,"mat-list-item",9),e.k0s()()),2&z){const I=e.XpG();e.R7$(2),e.Y8G("ngForOf",I.configData)}}let id=(()=>{var z;class N{constructor(H,J,ne){this.store=H,this.rtlEffects=J,this.router=ne,this.configData="",this.fileFormat="INI",this.faCog=Ti.dB,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.dispatch((0,Ui.Dz)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{const J=H.data;this.fileFormat=H.format,this.configData=""===J||!J||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==J&&J&&"JSON"===this.fileFormat?J:"":J.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(Ko.H),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-lnp-config"]],standalone:!1,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(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,zs,5,4,"div",2)(3,Cc,3,1,"div",3),e.k0s()()),2&J&&(e.R7$(2),e.Y8G("ngIf",""!==ne.configData&&"JSON"===ne.fileFormat),e.R7$(),e.Y8G("ngIf",""!==ne.configData&&("INI"===ne.fileFormat||"HOCON"===ne.fileFormat)))},dependencies:[o.Sq,o.bT,De.Lc,yr.jt,yr.YE,Wi.q,at.DJ,at.sA,at.UI,o.TG],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})();var _o=l(82571),ss=l(9454),i1=l(5951),ol=l(16038),xd=l(30450);const a1=z=>({skin:!0,"selected-color":z});function r1(z,N){if(1&z&&(e.j41(0,"span",41),e.nrm(1,"fa-icon",42),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("icon",I.symbol)}}function R2(z,N){if(1&z&&(e.j41(0,"span",41),e.nrm(1,"span",43),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("innerHTML",I.symbol,e.npT)}}function a0(z,N){if(1&z&&(e.j41(0,"mat-option",39),e.DNE(1,r1,2,1,"span",40)(2,R2,2,1,"span",40),e.EFF(3),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I.id),e.R7$(),e.Y8G("ngIf",I&&"FA"===I.iconType),e.R7$(),e.Y8G("ngIf",I&&"SVG"===I.iconType),e.R7$(),e.Lme(" ",I.name," (",I.id,") ")}}function s1(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Currency unit is required."),e.k0s())}function Mc(z,N){if(1&z&&(e.j41(0,"mat-radio-button",44),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("value",I)("checked",H.selNode.settings.userPersona===I),e.R7$(),e.SpI(" ",e.bMT(2,3,I)," ")}}function O2(z,N){if(1&z&&(e.j41(0,"mat-radio-button",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI("",I.name," ")}}function r0(z,N){if(1&z){const I=e.RV6();e.j41(0,"span",46)(1,"div",47),e.nI1(2,"lowercase"),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.changeThemeColor(J.id))}),e.k0s(),e.EFF(3),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.HbH(e.bMT(2,4,I.id)),e.Y8G("ngClass",e.eq3(6,a1,H.selectedThemeColor===I.id)),e.R7$(2),e.SpI(" ",I.name," ")}}let Cd=(()=>{var z;class N{constructor(H,J,ne,ot){this.logger=H,this.commonService=J,this.store=ne,this.sanitizer=ot,this.faBarsStaggered=Ti.o97,this.faExclamationTriangle=Ti.zpE,this.faMoneyBillAlt=Ti.iy8,this.faPaintBrush=Ti._eQ,this.faInfoCircle=Ti.iW_,this.faEyeSlash=Ti.k6j,this.userPersonas=[Mt.HW.OPERATOR,Mt.HW.MERCHANT],this.currencyUnits=Mt.Zi,this.themeModes=Mt.Bv.modes,this.themeColors=Mt.Bv.themes,this.selectedThemeMode=Mt.Bv.modes[0],this.selectedThemeColor=Mt.Bv.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Mt.f7,this.unSubs=[new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.currencyUnits.map(H=>("SVG"===H.iconType&&"string"==typeof H.symbol&&(H.symbol=H.symbol.replace('{this.selNode=JSON.parse(JSON.stringify(H)),this.selectedThemeMode=this.themeModes.find(J=>this.selNode.settings.themeMode===J.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(H)})}toggleSettings(H,J){this.selNode.settings[H]=!this.selNode.settings[H]}changeThemeColor(H){this.selectedThemeColor=H,this.selNode.settings.themeColor=H}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onFiatConversionChange(H){this.selNode.settings.fiatConversion||delete this.selNode.settings.currencyUnit}onUpdateNodeSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.selNode.settings.blockExplorerUrl=this.selNode.settings.blockExplorerUrl.replace(/\/$/,""),this.logger.info(this.selNode.settings),this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}onResetSettings(){const H=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(J=>J.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Ui.Qi)({payload:{uiMessage:Mt.MZ.NO_SPINNER,prevLnNodeIndex:+H,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(P.up))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-node-settings"]],standalone:!1,decls:100,vars:21,consts:[["form","ngForm"],["currencyUnit","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container"],["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"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://mempool.space/","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["matInput","","name","blockExplorerUrl",3,"ngModelChange","ngModel"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModelChange","change","ngModel"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["tabindex","2","color","primary","name","fiatConversion",1,"mr-2",3,"ngModelChange","change","ngModel"],["fxFlex","25"],["autoFocus","","tabindex","3","name","currencyUnit",3,"ngModelChange","disabled","required","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",1,"radio-group",3,"ngModelChange","ngModel"],["class","radio-text mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["color","primary","name","themeMode",1,"radio-group",3,"ngModelChange","change","ngModel"],["tabindex","5","class","radio-text mr-4",3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["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","column","fxLayoutAlign","start start",1,"mt-1"],["fxLayout","row"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],["class","mr-1",4,"ngIf"],[1,"mr-1"],[3,"icon"],["fxLayoutAlign","center center",3,"innerHTML"],[1,"radio-text","mr-4",3,"value","checked"],["tabindex","5",1,"radio-text","mr-4",3,"value"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"click","ngClass"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"mat-accordion",4)(4,"mat-expansion-panel",5)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e.nrm(7,"fa-icon",6),e.j41(8,"span",7),e.EFF(9,"Block Explorer"),e.k0s()()(),e.j41(10,"div",8)(11,"div",9),e.nrm(12,"fa-icon",10),e.j41(13,"span"),e.EFF(14,"Configure your own blockchain explorer url or "),e.j41(15,"strong")(16,"a",11),e.EFF(17,"mempool.space"),e.k0s()(),e.EFF(18," will be used."),e.k0s()(),e.j41(19,"div",12)(20,"mat-form-field",13)(21,"mat-label"),e.EFF(22,"Block Explorer URL"),e.k0s(),e.j41(23,"input",14),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.blockExplorerUrl,$t)||(ne.selNode.settings.blockExplorerUrl=$t),p.Njj($t)}),e.k0s(),e.j41(24,"mat-hint"),e.EFF(25,"Blockchain explorer URL, eg. https://mempool.space or https://blockstream.info"),e.k0s()()()()(),e.j41(26,"mat-expansion-panel",5)(27,"mat-expansion-panel-header")(28,"mat-panel-title"),e.nrm(29,"fa-icon",6),e.j41(30,"span",7),e.EFF(31,"Open Unannounced Channels"),e.k0s()()(),e.j41(32,"div",8)(33,"div",15),e.nrm(34,"fa-icon",10),e.j41(35,"span"),e.EFF(36,"Use this control to toggle setting which defaults to opening unannounced channels only."),e.k0s()(),e.j41(37,"div",12)(38,"mat-slide-toggle",16),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.unannouncedChannels,$t)||(ne.selNode.settings.unannouncedChannels=$t),p.Njj($t)}),e.bIt("change",function(){return p.eBV(ot),p.Njj(!ne.selNode.settings.unannouncedChannels)}),e.EFF(39,"Open Unannounced Channels"),e.k0s()()()(),e.j41(40,"mat-expansion-panel",5)(41,"mat-expansion-panel-header")(42,"mat-panel-title"),e.nrm(43,"fa-icon",6),e.j41(44,"span",7),e.EFF(45,"Balance Display"),e.k0s()()(),e.j41(46,"div",8)(47,"div",9),e.nrm(48,"fa-icon",10),e.j41(49,"span"),e.EFF(50,"Fiat conversion calls "),e.j41(51,"strong")(52,"a",17),e.EFF(53,"Blockchain.com"),e.k0s()(),e.EFF(54," API to get conversion rates."),e.k0s()(),e.j41(55,"div",12)(56,"mat-slide-toggle",18),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.fiatConversion,$t)||(ne.selNode.settings.fiatConversion=$t),p.Njj($t)}),e.bIt("change",function($t){return p.eBV(ot),p.Njj(ne.onFiatConversionChange($t))}),e.EFF(57,"Enable Fiat Conversion"),e.k0s(),e.j41(58,"mat-form-field",19)(59,"mat-label"),e.EFF(60,"Fiat Currency"),e.k0s(),e.j41(61,"mat-select",20,1),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.currencyUnit,$t)||(ne.selNode.settings.currencyUnit=$t),p.Njj($t)}),e.DNE(63,a0,4,5,"mat-option",21),e.k0s(),e.DNE(64,s1,2,0,"mat-error",22),e.k0s()()()(),e.j41(65,"mat-expansion-panel",5)(66,"mat-expansion-panel-header")(67,"mat-panel-title"),e.nrm(68,"fa-icon",6),e.j41(69,"span",7),e.EFF(70,"Customization"),e.k0s()()(),e.j41(71,"div",8)(72,"div",23),e.nrm(73,"fa-icon",10),e.j41(74,"span"),e.EFF(75,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.k0s()(),e.j41(76,"div",24)(77,"h4"),e.EFF(78,"Dashboard Layout"),e.k0s(),e.j41(79,"mat-radio-group",25),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.userPersona,$t)||(ne.selNode.settings.userPersona=$t),p.Njj($t)}),e.DNE(80,Mc,3,5,"mat-radio-button",26),e.k0s()(),e.nrm(81,"mat-divider",27),e.j41(82,"div",28)(83,"h4"),e.EFF(84,"Mode"),e.k0s(),e.j41(85,"mat-radio-group",29),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selectedThemeMode,$t)||(ne.selectedThemeMode=$t),p.Njj($t)}),e.bIt("change",function(){return p.eBV(ot),p.Njj(ne.chooseThemeMode())}),e.DNE(86,O2,2,2,"mat-radio-button",30),e.k0s()(),e.nrm(87,"mat-divider",27),e.j41(88,"div",31)(89,"div",32)(90,"h4"),e.EFF(91,"Themes"),e.k0s(),e.j41(92,"div",33),e.DNE(93,r0,4,8,"span",34),e.k0s()()()()()()(),e.j41(94,"div",35)(95,"div",36)(96,"button",37),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onResetSettings())}),e.EFF(97,"Reset"),e.k0s(),e.j41(98,"button",38),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdateNodeSettings())}),e.EFF(99,"Update"),e.k0s()()()()}2&J&&(e.R7$(7),e.Y8G("icon",ne.faBarsStaggered),e.R7$(5),e.Y8G("icon",ne.faExclamationTriangle),e.R7$(11),e.R50("ngModel",ne.selNode.settings.blockExplorerUrl),e.R7$(6),e.Y8G("icon",ne.faEyeSlash),e.R7$(5),e.Y8G("icon",ne.faInfoCircle),e.R7$(4),e.R50("ngModel",ne.selNode.settings.unannouncedChannels),e.R7$(5),e.Y8G("icon",ne.faMoneyBillAlt),e.R7$(5),e.Y8G("icon",ne.faExclamationTriangle),e.R7$(8),e.R50("ngModel",ne.selNode.settings.fiatConversion),e.R7$(5),e.Y8G("disabled",!ne.selNode.settings.fiatConversion)("required",ne.selNode.settings.fiatConversion),e.R50("ngModel",ne.selNode.settings.currencyUnit),e.R7$(2),e.Y8G("ngForOf",ne.currencyUnits),e.R7$(),e.Y8G("ngIf",ne.selNode.settings.fiatConversion&&!ne.selNode.settings.currencyUnit),e.R7$(4),e.Y8G("icon",ne.faPaintBrush),e.R7$(5),e.Y8G("icon",ne.faInfoCircle),e.R7$(6),e.R50("ngModel",ne.selNode.settings.userPersona),e.R7$(),e.Y8G("ngForOf",ne.userPersonas),e.R7$(5),e.R50("ngModel",ne.selectedThemeMode),e.R7$(),e.Y8G("ngForOf",ne.themeModes),e.R7$(7),e.Y8G("ngForOf",ne.themeColors))},dependencies:[o.YU,o.Sq,o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,ss.BS,ss.GK,ss.Z2,ss.WN,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,Wi.q,i1.VT,i1._g,at.DJ,at.sA,at.UI,ol.PW,al.VO,ic.wT,xd.sG,go.Ld,Xl.N,o.GH,o.PV],styles:["h4[_ngcontent-%COMP%]{margin:.75rem 0 .5rem}.theme-name[_ngcontent-%COMP%]{min-width:10rem}@media only screen and (max-width:37.5em){.theme-name[_ngcontent-%COMP%]{min-width:unset}}.skin[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;border-radius:50%;cursor:pointer;margin-right:.5rem}.skin.selected-color[_ngcontent-%COMP%]{width:1rem;height:1rem;border:2px solid}.skin.purple[_ngcontent-%COMP%]{background-color:#5e4ea5}.skin.indigo[_ngcontent-%COMP%]{background-color:#3f51b5}.skin.teal[_ngcontent-%COMP%]{background-color:#00695c}.skin.pink[_ngcontent-%COMP%]{background-color:#d81b60}.skin.yellow[_ngcontent-%COMP%]{background-color:#a1842c}"]}))}return z(),N})();var s0=l(59584),o0=l(63536),zr=l(28430),Ur=l(190),Ah=l(72730),Ta=l(95428),sc=l(22598),Oc=l(12629),o1=l(40455),l1=l(52929);const kl=z=>({error:z}),l0=z=>({"error-border":z}),c0=z=>({"ml-minus-1":z}),P2=z=>({"error-border p-2":z});function d0(z,N){if(1&z&&e.eu8(0,14),2&z){const I=e.XpG(),H=e.sdS(18);e.Y8G("ngTemplateOutlet",H)("ngTemplateOutletContext",e.eq3(2,kl,I.errorMessage))}}function u0(z,N){if(1&z&&(e.j41(0,"mat-option",31),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI(" ",I," ")}}function Lh(z,N){if(1&z&&(e.j41(0,"mat-option",31),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG(3);e.Y8G("value",I),e.R7$(),e.SpI(" ","ECL"===H.selNode.lnImplementation?e.bMT(2,2,I):e.i5U(3,4,I,"_")," ")}}function N2(z,N){if(1&z&&(e.j41(0,"mat-option",31),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI(" ","desc"===I?"Descending":"Ascending"," ")}}function Ih(z,N){if(1&z&&(e.j41(0,"mat-option",34),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG(2).$implicit,J=e.XpG(2);e.Y8G("value",I.column)("disabled",H.columnSelection.length<=2&&H.columnSelection.includes(I.column)),e.R7$(),e.SpI(" ",I.label?I.label:"ECL"===J.selNode.lnImplementation?e.bMT(2,3,I.column):e.i5U(3,5,I.column,"_")," ")}}function F2(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-form-field",32)(1,"mat-label"),e.EFF(2,"Column selection (Desktop Resolution)"),e.k0s(),e.j41(3,"mat-select",33),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG().$implicit;return e.DH7(ne.columnSelection,J)||(ne.columnSelection=J),p.Njj(J)}),e.bIt("selectionChange",function(){p.eBV(I);const J=e.XpG().$implicit,ne=e.XpG(2);return p.Njj(ne.oncolumnSelectionChange(J))}),e.DNE(4,Ih,4,8,"mat-option",28),e.k0s()()}if(2&z){const I=e.XpG().$implicit,H=e.XpG().$implicit,J=e.XpG();e.R7$(3),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-columns-selection")),e.R50("ngModel",I.columnSelection),e.R7$(),e.Y8G("ngForOf",J.nodePageDefs[H.pageId][I.tableId].allowedColumns)}}function B2(z,N){if(1&z&&(e.j41(0,"mat-option",34),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG().$implicit,J=e.XpG(2);e.Y8G("value",I.column)("disabled",H.columnSelectionSM.length<=1&&H.columnSelectionSM.includes(I.column)||H.columnSelectionSM.length>=3&&!H.columnSelectionSM.includes(I.column)),e.R7$(),e.SpI(" ",I.label?I.label:"ECL"===J.selNode.lnImplementation?e.bMT(2,3,I.column):e.i5U(3,5,I.column,"_")," ")}}function Y4(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",17)(1,"div",18)(2,"span",19),e.EFF(3),e.nI1(4,"camelcaseWithReplace"),e.k0s(),e.j41(5,"mat-form-field",20)(6,"mat-label"),e.EFF(7,"Records/Page"),e.k0s(),e.j41(8,"mat-select",21),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.recordsPerPage,J)||(ne.recordsPerPage=J),p.Njj(J)}),e.DNE(9,u0,2,2,"mat-option",22),e.k0s()(),e.j41(10,"mat-form-field",20)(11,"mat-label"),e.EFF(12,"Sort By"),e.k0s(),e.j41(13,"mat-select",23),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.sortBy,J)||(ne.sortBy=J),p.Njj(J)}),e.DNE(14,Lh,4,7,"mat-option",22),e.k0s()(),e.j41(15,"mat-form-field",20)(16,"mat-label"),e.EFF(17,"Sort Order"),e.k0s(),e.j41(18,"mat-select",24),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.sortOrder,J)||(ne.sortOrder=J),p.Njj(J)}),e.DNE(19,N2,2,2,"mat-option",22),e.k0s()(),e.DNE(20,F2,5,5,"mat-form-field",25),e.j41(21,"mat-form-field",26)(22,"mat-label"),e.EFF(23,"Column Selection (Mobile Resolution)"),e.k0s(),e.j41(24,"mat-select",27),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.columnSelectionSM,J)||(ne.columnSelectionSM=J),p.Njj(J)}),e.DNE(25,B2,4,8,"mat-option",28),e.k0s()(),e.j41(26,"button",29),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG().$implicit,ot=e.XpG();return p.Njj(ot.onTableReset(ne.pageId,J))}),e.j41(27,"mat-icon",30),e.EFF(28,"restore"),e.k0s()()()()}if(2&z){const I=N.$implicit,H=e.XpG().$implicit,J=e.XpG();e.R7$(3),e.SpI("",e.i5U(4,24,I.tableId,"_"),":"),e.R7$(5),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-page-size-options"))("disabled",J.nodePageDefs[H.pageId][I.tableId].disablePageSize),e.R50("ngModel",I.recordsPerPage),e.R7$(),e.Y8G("ngForOf",J.pageSizeOptions),e.R7$(4),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-sort-by")),e.R50("ngModel",I.sortBy),e.R7$(),e.Y8G("ngForOf",I.columnSelection),e.R7$(4),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-sort-order")),e.R50("ngModel",I.sortOrder),e.R7$(),e.Y8G("ngForOf",J.sortOrders),e.R7$(),e.Y8G("ngIf",J.screenSize!==J.screenSizeEnum.XS),e.R7$(4),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-columns-selection-sm")),e.R50("ngModel",I.columnSelectionSM),e.R7$(),e.Y8G("ngForOf",J.nodePageDefs[H.pageId][I.tableId].allowedColumns),e.R7$(2),e.Y8G("ngClass",e.eq3(27,c0,J.screenSize===J.screenSizeEnum.XS||J.screenSize===J.screenSizeEnum.SM))}}function Md(z,N){if(1&z&&e.eu8(0,14),2&z){const I=e.XpG(2),H=e.sdS(18);e.Y8G("ngTemplateOutlet",H)("ngTemplateOutletContext",e.eq3(2,kl,I.errorMessage))}}function z2(z,N){if(1&z&&(e.j41(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e.EFF(3),e.nI1(4,"camelcaseWithReplace"),e.k0s()(),e.DNE(5,Y4,29,29,"div",16)(6,Md,1,4,"ng-container",7),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("ngClass",e.eq3(7,l0,(null==H.errorMessage?null:H.errorMessage.page)===I.pageId)),e.R7$(3),e.JRh(e.i5U(4,4,I.pageId,"_")),e.R7$(2),e.Y8G("ngForOf",I.tables),e.R7$(),e.Y8G("ngIf",H.errorMessage&&(null==H.errorMessage?null:H.errorMessage.page)===I.pageId)}}function c1(z,N){if(1&z&&(e.j41(0,"mat-panel-title"),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&z){const I=e.XpG().error;e.R7$(),e.SpI("Page ",e.bMT(2,1,I.page))}}function U2(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-icon",39),e.EFF(2,"close"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&z){const I=e.XpG().error;e.R7$(4),e.JRh(I.message)}}function h0(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-icon",39),e.EFF(2,"close"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"titlecase"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(4),e.Lme("Table ",e.bMT(5,2,I.table)," ",I.message)}}function kh(z,N){if(1&z&&(e.j41(0,"div",35),e.DNE(1,c1,3,3,"mat-panel-title",36),e.j41(2,"mat-list",37),e.DNE(3,U2,5,1,"mat-list-item",36)(4,h0,6,4,"mat-list-item",38),e.k0s()()),2&z){const I=N.error,H=e.XpG();e.Y8G("ngClass",e.eq3(4,P2,"unknown"===H.errorMessage.page)),e.R7$(),e.Y8G("ngIf","unknown"===H.errorMessage.page),e.R7$(2),e.Y8G("ngIf",I.message),e.R7$(),e.Y8G("ngForOf",I.tables)}}let V2=(()=>{var z;class N{constructor(H,J,ne,ot){this.logger=H,this.commonService=J,this.store=ne,this.actions=ot,this.faPenRuler=Ti.$$g,this.faExclamationTriangle=Ti.zpE,this.screenSize="",this.screenSizeEnum=Mt.f7,this.pageSizeOptions=Mt.xp,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=Mt.jG,this.apiCallStatus=null,this.apiCallStatusEnum=Mt.wn,this.errorMessage=null,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{switch(this.selNode=H,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],Mt.mu),this.defaultSettings=Object.assign([],Mt.mu),this.nodePageDefs=Mt.Jd,this.store.select(s0.av).pipe((0,mi.Q)(this.unSubs[1]),(0,so.E)(this.store.select(Ra._c))).subscribe(([J,ne])=>{const ot=JSON.parse(JSON.stringify(J.pageSettings));if(this.errorMessage=null,this.apiCallStatus=J.apiCallStatus,this.apiCallStatus.status===Mt.wn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ot,this.initialPageSettings=ot;else{if(!ne?.settings.enableOffers){const jt=ot.find(ii=>"transactions"===ii.pageId),$t=jt?.tables.findIndex(ii=>"offers"===ii.tableId),Tn=jt?.tables.findIndex(ii=>"offer_bookmarks"===ii.tableId);$t>-1&&jt?.tables.splice($t,1),Tn>-1&&jt?.tables.splice(Tn,1)}if(!ne?.settings.enablePeerswap){const jt=ot.findIndex($t=>"peerswap"===$t.pageId);jt>-1&&ot.splice(jt,1)}this.pageSettings=ot,this.initialPageSettings=ot}this.logger.info(ot)}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(J=>J.type===Mt.TC.UPDATE_API_CALL_STATUS_CLN||J.type===Mt.TC.SAVE_PAGE_SETTINGS_CLN)).subscribe(J=>{J.type===Mt.TC.UPDATE_API_CALL_STATUS_CLN&&J.payload.status===Mt.wn.ERROR&&"SavePageSettings"===J.payload.action&&(this.errorMessage=JSON.parse(J.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],Mt.X8),this.defaultSettings=Object.assign([],Mt.X8),this.nodePageDefs=Mt.WW,this.store.select(Ah.jZ).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{const ne=JSON.parse(JSON.stringify(J.pageSettings));this.errorMessage=null,this.apiCallStatus=J.apiCallStatus,this.apiCallStatus.status===Mt.wn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ne,this.initialPageSettings=ne):(this.pageSettings=ne,this.initialPageSettings=ne),this.logger.info(ne)}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(J=>J.type===Mt.Uu.UPDATE_API_CALL_STATUS_ECL||J.type===Mt.Uu.SAVE_PAGE_SETTINGS_ECL)).subscribe(J=>{J.type===Mt.Uu.UPDATE_API_CALL_STATUS_ECL&&J.payload.status===Mt.wn.ERROR&&"SavePageSettings"===J.payload.action&&(this.errorMessage=JSON.parse(J.payload.message))});break;default:this.initialPageSettings=Object.assign([],Mt.ZC),this.defaultSettings=Object.assign([],Mt.ZC),this.nodePageDefs=Mt._1,this.store.select(o0.$G).pipe((0,mi.Q)(this.unSubs[1]),(0,so.E)(this.store.select(Ra._c))).subscribe(([J,ne])=>{const ot=JSON.parse(JSON.stringify(J.pageSettings));if(this.errorMessage=null,this.apiCallStatus=J.apiCallStatus,this.apiCallStatus.status===Mt.wn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ot,this.initialPageSettings=ot;else{if(!ne?.settings.swapServerUrl||""===ne.settings.swapServerUrl.trim()){const jt=ot.findIndex($t=>"loop"===$t.pageId);jt>-1&&ot.splice(jt,1)}if(!ne?.settings.boltzServerUrl||""===ne.settings.boltzServerUrl.trim()){const jt=ot.findIndex($t=>"boltz"===$t.pageId);jt>-1&&ot.splice(jt,1)}if(!ne?.settings.enablePeerswap){const jt=ot.findIndex($t=>"peerswap"===$t.pageId);jt>-1&&ot.splice(jt,1)}this.pageSettings=ot,this.initialPageSettings=ot}this.logger.info(ot)}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(J=>J.type===Mt.QP.UPDATE_API_CALL_STATUS_LND||J.type===Mt.QP.SAVE_PAGE_SETTINGS_LND)).subscribe(J=>{J.type===Mt.QP.UPDATE_API_CALL_STATUS_LND&&J.payload.status===Mt.wn.ERROR&&"SavePageSettings"===J.payload.action&&(this.errorMessage=JSON.parse(J.payload.message))})}})}oncolumnSelectionChange(H){H.columnSelection&&(!H.sortBy||!H.columnSelection.includes(H.sortBy))&&(H.sortBy=H.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((H,J)=>H||J.tables.reduce((ne,ot)=>!(ot.recordsPerPage&&ot.sortBy&&ot.sortOrder&&ot.columnSelection&&ot.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,zr.Sn)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,Ta.Sn)({payload:this.pageSettings}));break;default:this.store.dispatch((0,Ur.Sn)({payload:this.pageSettings}))}}onTableReset(H,J){const ne=this.pageSettings.findIndex($t=>$t.pageId===H),ot=this.pageSettings[ne].tables.findIndex($t=>$t.tableId===J.tableId),jt=this.defaultSettings.find($t=>$t.pageId===H)?.tables.find($t=>$t.tableId===J.tableId)||this.pageSettings.find($t=>$t.pageId===H)?.tables.find($t=>$t.tableId===J.tableId);this.pageSettings[ne].tables.splice(ot,1,jt)}onResetPageSettings(H){"current"===H?(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(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(Vo.En))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-page-settings"]],standalone:!1,decls:19,vars:3,consts:[["form","ngForm"],["errorObjectBlock",""],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["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"],[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","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","10",1,"mb-2"],["fxLayout","column","fxFlex","10"],["tabindex","2","required","",3,"ngModelChange","name","disabled","ngModel"],[3,"value",4,"ngFor","ngForOf"],["tabindex","3","required","",3,"ngModelChange","name","ngModel"],["tabindex","4","required","",3,"ngModelChange","name","ngModel"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxLayout","column","fxFlex","15","matTooltip","Select between 1 and 3 columns"],["tabindex","5","multiple","","required","",3,"ngModelChange","name","ngModel"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",1,"mb-2",3,"click"],["color","primary",3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["tabindex","6","multiple","","required","",3,"ngModelChange","selectionChange","name","ngModel"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"div",4),e.nrm(4,"fa-icon",5),e.j41(5,"span",6),e.EFF(6,"Grid Settings"),e.k0s()(),e.DNE(7,d0,1,4,"ng-container",7),e.j41(8,"mat-accordion",8),e.DNE(9,z2,7,9,"mat-expansion-panel",9),e.k0s()(),e.j41(10,"div",10)(11,"button",11),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onResetPageSettings("current"))}),e.EFF(12,"Reset"),e.k0s(),e.j41(13,"button",12),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onResetPageSettings("default"))}),e.EFF(14,"Reset to Default"),e.k0s(),e.j41(15,"button",13),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdatePageSettings())}),e.EFF(16,"Save"),e.k0s()()(),e.DNE(17,kh,5,6,"ng-template",null,1,e.C5r)}2&J&&(e.R7$(4),e.Y8G("icon",ne.faPenRuler),e.R7$(3),e.Y8G("ngIf",ne.errorMessage&&"unknown"===ne.errorMessage.page),e.R7$(2),e.Y8G("ngForOf",ne.pageSettings))},dependencies:[o.YU,o.Sq,o.bT,o.T3,_i.qT,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,sc.iY,ss.BS,ss.GK,ss.Z2,ss.WN,Oc.An,wa.rl,wa.nJ,yr.jt,yr.YE,at.DJ,at.sA,at.UI,ol.PW,al.VO,ic.wT,o1.oV,go.Ld,o.PV,l1.VD,l1.Qu],styles:[".table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:.5rem 0}"]}))}return z(),N})();function Q4(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.setActiveLink(J.links[0].link))}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[0].link))("active",I.activeLink===I.links[0].link),e.R7$(),e.JRh(I.links[0].name)}}function Rh(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.setActiveLink(J.links[1].link))}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[1].link))("active",I.activeLink===I.links[1].link),e.R7$(),e.JRh(I.links[1].name)}}function Oh(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.setActiveLink(J.links[2].link))}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[2].link))("active",I.activeLink===I.links[2].link),e.R7$(),e.JRh(I.links[2].name)}}let Ph=(()=>{var z;class N{constructor(H,J,ne){this.store=H,this.router=J,this.activatedRoute=ne,this.faLayerGroup=Ti.qIE,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"noservice",name:"No Service"}],this.activeLink="",this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){this.setActiveLink(),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.selNode=H,this.setActiveLink(),this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})})}setActiveLink(H){if(H&&""!==H)this.activeLink=H;else{const J=this.links.find(ne=>this.router.url.includes(ne.link));this.activeLink=J?this.selNode&&"CLN"===this.selNode.lnImplementation?this.links[1].link:J.link:this.links[this.links.length-1].link}}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(ja.Ix),e.rXU(ja.nX))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-services-settings"]],standalone:!1,decls:16,vars:5,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","my-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","2","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","3","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","3","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(J,ne){if(1&J&&(e.j41(0,"div",1)(1,"div",2),e.nrm(2,"fa-icon",3),e.j41(3,"span",4),e.EFF(4,"Services"),e.k0s()()(),e.j41(5,"div",5)(6,"mat-card")(7,"mat-card-content",5)(8,"nav",6),e.DNE(9,Q4,2,4,"div",7)(10,Rh,2,4,"div",8)(11,Oh,2,4,"div",9),e.k0s(),e.nrm(12,"mat-tab-nav-panel",null,0),e.j41(14,"div",10),e.nrm(15,"router-outlet"),e.k0s()()()()),2&J){const ot=e.sdS(13);e.R7$(2),e.Y8G("icon",ne.faLayerGroup),e.R7$(6),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("ngIf","LND"===ne.selNode.lnImplementation),e.R7$(),e.Y8G("ngIf","ECL"!==ne.selNode.lnImplementation),e.R7$(),e.Y8G("ngIf","ECL"===ne.selNode.lnImplementation)}},dependencies:[o.bT,cr.aY,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,ja.n3,co.Wk],encapsulation:2}))}return z(),N})();const G2=["form"];function Nh(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Loop server URL is required."),e.k0s())}function H2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Specify the loop server url with 'https://'."),e.k0s())}function Fh(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Loop macaroon path is required."),e.k0s())}let d1=(()=>{var z;class N{constructor(H,J){this.logger=H,this.store=J,this.faInfoCircle=Ti.iW_,this.enableLoop=!1,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableLoop=!(!H.settings.swapServerUrl||""===H.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(H)})}onEnableServiceChanged(H){this.enableLoop=H.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.enableLoop||(delete this.selNode.settings.swapServerUrl,delete this.selNode.authentication.swapMacaroonPath),this.logger.info(this.selNode),this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-loop-service-settings"]],viewQuery:function(J,ne){if(1&J&&e.GBs(G2,7),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.form=ot.first)}},standalone:!1,decls:38,vars:11,consts:[["form","ngForm"],["srvrUrl","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[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"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"mb-2"],["matInput","","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModelChange","required","disabled","ngModel"],[4,"ngIf"],["matInput","","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModelChange","required","disabled","ngModel"],["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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"loopd"),e.k0s(),e.EFF(7," is running and accessible to RTL before enabling this service. Click "),e.j41(8,"strong")(9,"a",5),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about the installation."),e.k0s()(),e.j41(12,"form",6,0)(14,"div",7)(15,"mat-slide-toggle",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.enableLoop,$t)||(ne.enableLoop=$t),p.Njj($t)}),e.bIt("change",function($t){return p.eBV(ot),p.Njj(ne.onEnableServiceChanged($t))}),e.EFF(16,"Enable Loop Service"),e.k0s(),e.j41(17,"mat-form-field",9)(18,"mat-label"),e.EFF(19,"Loop Server URL"),e.k0s(),e.j41(20,"input",10,1),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.swapServerUrl,$t)||(ne.selNode.settings.swapServerUrl=$t),p.Njj($t)}),e.k0s(),e.j41(22,"mat-hint"),e.EFF(23,"Service url for loop server REST APIs, eg. https://127.0.0.1:8081"),e.k0s(),e.DNE(24,Nh,2,0,"mat-error",11)(25,H2,2,0,"mat-error",11),e.k0s(),e.j41(26,"mat-form-field")(27,"mat-label"),e.EFF(28,"Loop Macaroon Path"),e.k0s(),e.j41(29,"input",12),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.authentication.swapMacaroonPath,$t)||(ne.selNode.authentication.swapMacaroonPath=$t),p.Njj($t)}),e.k0s(),e.j41(30,"mat-hint"),e.EFF(31,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.k0s(),e.DNE(32,Fh,2,0,"mat-error",11),e.k0s()()(),e.j41(33,"div",13)(34,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onReset())}),e.EFF(35,"Reset"),e.k0s(),e.j41(36,"button",15),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdateService())}),e.EFF(37,"Update"),e.k0s()()()}if(2&J){const ot=e.sdS(21);e.R7$(2),e.Y8G("icon",ne.faInfoCircle),e.R7$(13),e.R50("ngModel",ne.enableLoop),e.R7$(5),e.Y8G("required",ne.enableLoop)("disabled",!ne.enableLoop),e.R50("ngModel",ne.selNode.settings.swapServerUrl),e.R7$(4),e.Y8G("ngIf",!ne.selNode.settings.swapServerUrl&&ne.enableLoop),e.R7$(),e.Y8G("ngIf",(null==ot||null==ot.errors?null:ot.errors.invalid)&&ne.enableLoop),e.R7$(4),e.Y8G("required",ne.enableLoop)("disabled",!ne.enableLoop),e.R50("ngModel",ne.selNode.authentication.swapMacaroonPath),e.R7$(3),e.Y8G("ngIf",!ne.selNode.authentication.swapMacaroonPath&&ne.enableLoop)}},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,at.DJ,at.sA,at.UI,xd.sG,go.Ld,Xl.N],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})();const ad=["form"];function Kl(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Boltz server URL is required."),e.k0s())}function j2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Specify the boltz server url with 'https://'."),e.k0s())}function Bh(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Boltz macaroon path is required."),e.k0s())}let W2=(()=>{var z;class N{constructor(H,J){this.logger=H,this.store=J,this.faInfoCircle=Ti.iW_,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableBoltz=!(!H.settings.boltzServerUrl||""===H.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(H)})}onEnableServiceChanged(H){this.enableBoltz=H.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.enableBoltz?(this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath):(delete this.selNode.settings.boltzServerUrl,delete this.selNode.authentication.boltzMacaroonPath),this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}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(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(J,ne){if(1&J&&e.GBs(ad,7),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.form=ot.first)}},standalone:!1,decls:38,vars:11,consts:[["form","ngForm"],["srvrUrl","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://docs.boltz.exchange/v/boltz-client/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"mb-2"],["matInput","","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModelChange","required","disabled","ngModel"],[4,"ngIf"],["matInput","","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModelChange","required","disabled","ngModel"],["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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"boltzd"),e.k0s(),e.EFF(7," is running and accessible to RTL before enabling this service. Click "),e.j41(8,"strong")(9,"a",5),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about the installation."),e.k0s()(),e.j41(12,"form",6,0)(14,"div",7)(15,"mat-slide-toggle",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.enableBoltz,$t)||(ne.enableBoltz=$t),p.Njj($t)}),e.bIt("change",function($t){return p.eBV(ot),p.Njj(ne.onEnableServiceChanged($t))}),e.EFF(16,"Enable Boltz Service"),e.k0s(),e.j41(17,"mat-form-field",9)(18,"mat-label"),e.EFF(19,"Boltz Server URL"),e.k0s(),e.j41(20,"input",10,1),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.serverUrl,$t)||(ne.serverUrl=$t),p.Njj($t)}),e.k0s(),e.j41(22,"mat-hint"),e.EFF(23,"Service url for boltz server REST APIs, eg. https://127.0.0.1:9003"),e.k0s(),e.DNE(24,Kl,2,0,"mat-error",11)(25,j2,2,0,"mat-error",11),e.k0s(),e.j41(26,"mat-form-field")(27,"mat-label"),e.EFF(28,"Boltz Macaroon Path"),e.k0s(),e.j41(29,"input",12),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.macaroonPath,$t)||(ne.macaroonPath=$t),p.Njj($t)}),e.k0s(),e.j41(30,"mat-hint"),e.EFF(31,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.k0s(),e.DNE(32,Bh,2,0,"mat-error",11),e.k0s()()(),e.j41(33,"div",13)(34,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onReset())}),e.EFF(35,"Reset"),e.k0s(),e.j41(36,"button",15),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdateService())}),e.EFF(37,"Update"),e.k0s()()()}if(2&J){const ot=e.sdS(21);e.R7$(2),e.Y8G("icon",ne.faInfoCircle),e.R7$(13),e.R50("ngModel",ne.enableBoltz),e.R7$(5),e.Y8G("required",ne.enableBoltz)("disabled",!ne.enableBoltz),e.R50("ngModel",ne.serverUrl),e.R7$(4),e.Y8G("ngIf",(!ne.serverUrl||""===ne.serverUrl.trim())&&ne.enableBoltz),e.R7$(),e.Y8G("ngIf",(null==ot||null==ot.errors?null:ot.errors.invalid)&&ne.enableBoltz),e.R7$(4),e.Y8G("required",ne.enableBoltz)("disabled",!ne.enableBoltz),e.R50("ngModel",ne.macaroonPath),e.R7$(3),e.Y8G("ngIf",!ne.macaroonPath&&ne.enableBoltz)}},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,at.DJ,at.sA,at.UI,xd.sG,go.Ld,Xl.N],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})(),$4=(()=>{var z;class N{constructor(){}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-ln-services"]],standalone:!1,decls:1,vars:0,template:function(J,ne){1&J&&e.nrm(0,"router-outlet")},dependencies:[ja.n3],encapsulation:2}))}return z(),N})();var zh=l(1092),u1=l(4104),Ec=l(96695),Pc=l(2042),Ya=l(19295),oc=l(67575);const X2=()=>["all"],f0=z=>({"overflow-auto error-border":z,"overflow-auto":!0}),Uh=()=>["no_swap"],h1=z=>({width:z}),Rl=z=>({"display-none":z});function K2(z,N){if(1&z&&(e.j41(0,"mat-option",37),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("value",I),e.R7$(),e.JRh(H.getLabel(I))}}function Vh(z,N){1&z&&e.nrm(0,"mat-progress-bar",38)}function m0(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"State"),e.k0s())}function Gh(z,N){if(1&z&&(e.j41(0,"td",40),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.JRh(H.LoopStateEnum[null==I?null:I.state])}}function Z4(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"Initiation Time"),e.k0s())}function Y2(z,N){if(1&z&&(e.j41(0,"td",40),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(e.i5U(2,1,(null==I?null:I.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function p0(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"Last Update Time"),e.k0s())}function Hh(z,N){if(1&z&&(e.j41(0,"td",40),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(e.i5U(2,1,(null==I?null:I.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function jh(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Amount (Sats)"),e.k0s())}function Wh(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.amt))}}function qa(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Cost Server (Sats)"),e.k0s())}function wc(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.cost_server))}}function g0(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Cost Offchain (Sats)"),e.k0s())}function Q2(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.cost_offchain))}}function Ed(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Cost Onchain (Sats)"),e.k0s())}function Xh(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,null==I?null:I.cost_onchain)," ")}}function wd(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"HTLC Address"),e.k0s())}function Sd(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,h1,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.htlc_address)}}function f1(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"ID"),e.k0s())}function rd(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,h1,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.id)}}function Kh(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"ID (Bytes)"),e.k0s())}function Td(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,h1,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.id_bytes)}}function Dd(z,N){if(1&z){const I=e.RV6();e.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",48),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Ad(z,N){if(1&z){const I=e.RV6();e.j41(0,"td",49)(1,"button",50),e.bIt("click",function(J){const ne=p.eBV(I).$implicit,ot=e.XpG();return p.Njj(ot.onSwapClick(ne,J))}),e.EFF(2,"View Info"),e.k0s()()}}function m1(z,N){if(1&z&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.emptyTableMessage)}}function _0(z,N){if(1&z&&(e.j41(0,"td",51),e.DNE(1,m1,2,1,"p",52),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.Y8G("ngIf",!(null!=I.listSwaps&&I.listSwaps.data)||(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)<1)}}function Yh(z,N){if(1&z&&e.nrm(0,"tr",53),2&z){const I=e.XpG();e.Y8G("ngClass",e.eq3(1,Rl,(null==I.listSwaps?null:I.listSwaps.data)&&(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)>0))}}function Nc(z,N){1&z&&e.nrm(0,"tr",54)}function Sc(z,N){1&z&&e.nrm(0,"tr",55)}let $2=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.logger=H,this.commonService=J,this.store=ne,this.loopService=ot,this.datePipe=jt,this.camelCaseWithReplace=$t,this.selectedSwapType=Mt.C7.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Mt._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:Mt.md,sortBy:"initiation_time",sortOrder:Mt.oi.DESCENDING},this.LoopStateEnum=Mt.Hx,this.faHistory=Ti.Int,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new Ya.I6([]),this.selFilter="",this.pageSize=Mt.md,this.pageSizeOptions=Mt.xp,this.screenSize="",this.screenSizeEnum=Mt.f7,this.unSubs=[new bi.B,new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(H){this.swapCaption=this.selectedSwapType===Mt.C7.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}ngOnInit(){this.store.select(o0.$G).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.tableSetting=H.pageSettings.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSetting.tableId)||Mt.ZC.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===Mt.f7.XS||this.screenSize===Mt.f7.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:Mt.md,this.swapsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(H){const J=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(ne=>ne.column===H);return J?J.label?J.label:this.camelCaseWithReplace.transform(J.column,"_"):this.commonService.titleCase(H)}setFilterPredicate(){this.listSwaps.filterPredicate=(H,J)=>{let ne="";switch(this.selFilterBy){case"all":ne=JSON.stringify(H).toLowerCase();break;case"state":ne=H?.state?this.LoopStateEnum[H?.state]:"";break;case"initiation_time":case"last_update_time":ne=this.datePipe.transform(new Date((H[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:ne=typeof H[this.selFilterBy]>"u"?"":"string"==typeof H[this.selFilterBy]?H[this.selFilterBy].toLowerCase():"boolean"==typeof H[this.selFilterBy]?H[this.selFilterBy]?"yes":"no":H[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===ne.indexOf(J):ne.includes(J)}}onSwapClick(H,J){this.loopService.getSwap(H.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,mi.Q)(this.unSubs[1])).subscribe(ne=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:Mt.Hx[ne.state||""],title:"Status",width:50,type:Mt.UN.STRING},{key:"amt",value:ne.amt,title:"Amount (Sats)",width:50,type:Mt.UN.NUMBER}],[{key:"initiation_time",value:(ne.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:Mt.UN.DATE_TIME},{key:"last_update_time",value:(ne.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:Mt.UN.DATE_TIME}],[{key:"cost_server",value:ne.cost_server,title:"Server Cost (Sats)",width:33,type:Mt.UN.NUMBER},{key:"cost_offchain",value:ne.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Mt.UN.NUMBER},{key:"cost_onchain",value:ne.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Mt.UN.NUMBER}],[{key:"id_bytes",value:ne.id_bytes,title:"ID",width:100,type:Mt.UN.STRING}],[{key:"htlc_address",value:ne.htlc_address,title:"HTLC Address",width:100,type:Mt.UN.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new Ya.I6([...H]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(J,ne)=>J[ne]&&isNaN(J[ne])?J[ne].toLocaleLowerCase():J[ne]?+J[ne]:null,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===Mt.C7.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(u1.Q),e.rXU(o.vh),e.rXU(l1.VD))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-swaps"]],viewQuery:function(J,ne){if(1&J&&(e.GBs(Pc.B4,5),e.GBs(Ec.iy,5)),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.sort=ot.first),e.mGM(ot=e.lsd())&&(ne.paginator=ot.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},standalone:!1,features:[e.Jv_([{provide:al.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Ec.xX,useValue:(0,Mt.on)("Swaps")}]),e.OA$],decls:61,vars:20,consts:[["table",""],["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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["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.gt-xs","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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilterBy,$t)||(ne.selFilterBy=$t),p.Njj($t)}),e.bIt("selectionChange",function(){return p.eBV(ot),ne.selFilter="",p.Njj(ne.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,K2,2,2,"mat-option",9),e.k0s()()(),e.j41(13,"mat-form-field",7)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",10),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilter,$t)||(ne.selFilter=$t),p.Njj($t)}),e.bIt("input",function(){return p.eBV(ot),p.Njj(ne.applyFilter())})("keyup",function(){return p.eBV(ot),p.Njj(ne.applyFilter())}),e.k0s()()()(),e.j41(17,"div",11)(18,"div",12),e.DNE(19,Vh,1,0,"mat-progress-bar",13),e.j41(20,"table",14,0),e.qex(22,15),e.DNE(23,m0,2,0,"th",16)(24,Gh,2,1,"td",17),e.bVm(),e.qex(25,18),e.DNE(26,Z4,2,0,"th",16)(27,Y2,3,4,"td",17),e.bVm(),e.qex(28,19),e.DNE(29,p0,2,0,"th",16)(30,Hh,3,4,"td",17),e.bVm(),e.qex(31,20),e.DNE(32,jh,2,0,"th",21)(33,Wh,4,3,"td",17),e.bVm(),e.qex(34,22),e.DNE(35,qa,2,0,"th",21)(36,wc,4,3,"td",17),e.bVm(),e.qex(37,23),e.DNE(38,g0,2,0,"th",21)(39,Q2,4,3,"td",17),e.bVm(),e.qex(40,24),e.DNE(41,Ed,2,0,"th",21)(42,Xh,4,3,"td",17),e.bVm(),e.qex(43,25),e.DNE(44,wd,2,0,"th",16)(45,Sd,4,4,"td",17),e.bVm(),e.qex(46,26),e.DNE(47,f1,2,0,"th",16)(48,rd,4,4,"td",17),e.bVm(),e.qex(49,27),e.DNE(50,Kh,2,0,"th",16)(51,Td,4,4,"td",17),e.bVm(),e.qex(52,28),e.DNE(53,Dd,6,0,"th",29)(54,Ad,3,0,"td",30),e.bVm(),e.qex(55,31),e.DNE(56,_0,2,1,"td",32),e.bVm(),e.DNE(57,Yh,1,3,"tr",33)(58,Nc,1,0,"tr",34)(59,Sc,1,0,"tr",35),e.k0s(),e.nrm(60,"mat-paginator",36),e.k0s()()()}2&J&&(e.R7$(3),e.Y8G("icon",ne.faHistory),e.R7$(2),e.SpI("",ne.swapCaption," History"),e.R7$(5),e.R50("ngModel",ne.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,X2).concat(ne.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",ne.selFilter),e.R7$(3),e.Y8G("ngIf",!0===ne.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",ne.tableSetting.sortBy)("matSortDirection",ne.tableSetting.sortOrder)("dataSource",ne.listSwaps)("ngClass",e.eq3(17,f0,"error"===ne.flgLoading[0])),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(19,Uh)),e.R7$(),e.Y8G("matHeaderRowDef",ne.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",ne.displayedColumns),e.R7$(),e.Y8G("pageSize",ne.pageSize)("pageSizeOptions",ne.pageSizeOptions)("showFirstLastButtons",ne.screenSize!==ne.screenSizeEnum.XS))},dependencies:[o.YU,o.Sq,o.bT,o.B3,_i.me,_i.BC,_i.vS,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,oc.HM,at.DJ,at.sA,at.UI,ol.PW,ol.eI,al.VO,al.$2,ic.wT,Pc.B4,Pc.aE,Ya.Zl,Ya.tL,Ya.ji,Ya.cC,Ya.YV,Ya.iL,Ya.Zq,Ya.xW,Ya.KS,Ya.$R,Ya.Qo,Ya.YZ,Ya.NB,Ya.iF,Ec.iy,go.ZF,go.Ld,o.QX,o.vh],encapsulation:2}))}return z(),N})();const p1=z=>["../",z];function Tc(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.onSelectedIndexChange(J))}),e.EFF(1),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG();e.Y8G("active",H.activeTab.link===I.link)("routerLink",e.eq3(3,p1,I.link)),e.R7$(),e.JRh(I.name)}}let Z2=(()=>{var z;class N{constructor(H,J,ne){this.router=H,this.loopService=J,this.store=ne,this.faInfinity=Ti.C8j,this.loopInfo=null,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Mt.C7,this.selectedSwapType=Mt.C7.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 bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_LOOP_INFO})),this.loopService.getLoopInfo().pipe((0,mi.Q)(this.unSubs[4])).subscribe({next:J=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_LOOP_INFO})),this.loopInfo=J,this.loopInfo&&this.loopInfo.version&&(this.loopInfo.version=this.loopInfo.version.split(" ")[0])},error:J=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_LOOP_INFO})),this.loopInfo.version=" Unknown"}}),this.loopService.listSwaps();const H=this.links.find(J=>this.router.url.includes(J.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"loopin"===H.link?Mt.C7.LOOP_IN:Mt.C7.LOOP_OUT,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeTab=ne||this.links[0],this.selectedSwapType=ne&&"loopin"===ne.link?Mt.C7.LOOP_IN:Mt.C7.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,mi.Q)(this.unSubs[1])).subscribe({next:J=>{this.flgLoading[0]=!1,this.storedSwaps=J,this.filteredSwaps=this.storedSwaps?.filter(ne=>ne.type===this.selectedSwapType)},error:J=>{this.flgLoading[0]="error",this.emptyTableMessage=J.message?J.message:"No loop "+(this.selectedSwapType===Mt.C7.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){this.selectedSwapType="loopin"===H.link?Mt.C7.LOOP_IN:Mt.C7.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(J=>J.type===this.selectedSwapType)}onLoop(H){H===Mt.C7.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,mi.Q)(this.unSubs[2])).subscribe({next:J=>{this.store.dispatch((0,Ui.xO)({payload:{data:{minQuote:J[0],maxQuote:J[1],direction:H,component:zh.D}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,mi.Q)(this.unSubs[3])).subscribe({next:J=>{this.store.dispatch((0,Ui.xO)({payload:{data:{minQuote:J[0],maxQuote:J[1],direction:H,component:zh.D}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(ja.Ix),e.rXU(u1.Q),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-loop"]],standalone:!1,decls:15,vars:9,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","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","2",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Tc,2,5,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8)(12,"button",9),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onLoop(ne.selectedSwapType))}),e.EFF(13),e.k0s()(),e.nrm(14,"rtl-swaps",10),e.k0s()()()}if(2&J){const ot=e.sdS(10);e.R7$(),e.Y8G("icon",ne.faInfinity),e.R7$(2),e.SpI("Loop (v",(null==ne.loopInfo?null:ne.loopInfo.version)||" Unknown",")"),e.R7$(4),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("ngForOf",ne.links),e.R7$(5),e.SpI("Start ",ne.activeTab.name),e.R7$(),e.Y8G("selectedSwapType",ne.selectedSwapType)("swapsData",ne.filteredSwaps)("flgLoading",ne.flgLoading)("emptyTableMessage",ne.emptyTableMessage)}},dependencies:[o.Sq,cr.aY,tr.$z,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,co.Wk,$2],encapsulation:2}))}return z(),N})();var J2=l(1001),v0=l(84412),Qh=l(18810),Yo=l(12462);let sd=(()=>{var z;class N{constructor(H,J,ne,ot){this.httpClient=H,this.logger=J,this.store=ne,this.commonService=ot,this.swapUrl="",this.swaps={},this.boltzInfo=null,this.boltzInfoChanged=new v0.t(null),this.swapsChanged=new v0.t({}),this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_BOLTZ_SWAPS})),this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,mi.Q)(this.unSubs[0])).subscribe({next:H=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_BOLTZ_SWAPS})),this.swaps=H,this.swapsChanged.next(this.swaps)},error:H=>this.swapsChanged.error(this.handleErrorWithAlert(Mt.MZ.GET_BOLTZ_SWAPS,this.swapUrl,H))})}swapInfo(H){return this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/swapInfo/"+H,this.httpClient.get(this.swapUrl).pipe((0,$r.W)(J=>(0,ws.of)(this.handleErrorWithAlert(Mt.MZ.NO_SPINNER,this.swapUrl,J))))}getBoltzInfo(){this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_BOLTZ_INFO})),this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/info",this.httpClient.get(this.swapUrl).pipe((0,mi.Q)(this.unSubs[1])).subscribe({next:H=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_BOLTZ_INFO})),this.boltzInfo=H,this.boltzInfoChanged.next(this.boltzInfo)},error:H=>(this.boltzInfo={version:"2.0.0"},this.boltzInfoChanged.next(this.boltzInfo),(0,ws.of)(this.handleErrorWithoutAlert(Mt.MZ.GET_BOLTZ_INFO,this.swapUrl,H)))})}serviceInfo(){return this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_SERVICE_INFO})),this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,mi.Q)(this.unSubs[2]),(0,fr.T)(H=>(this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_SERVICE_INFO})),H)),(0,$r.W)(H=>(0,ws.of)(this.handleErrorWithAlert(Mt.MZ.GET_SERVICE_INFO,this.swapUrl,H))))}swapOut(H,J,ne){const ot={amount:H,address:J,acceptZeroConf:ne};return this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,ot).pipe((0,$r.W)(jt=>this.handleErrorWithoutAlert("Swap Out for Address: "+J,Mt.MZ.NO_SPINNER,jt)))}swapIn(H,J,ne){const ot={amount:H,sendFromInternal:J,refundAddress:ne};return this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,ot).pipe((0,$r.W)(jt=>this.handleErrorWithoutAlert("Swap In for Amount: "+H,Mt.MZ.NO_SPINNER,jt)))}handleErrorWithoutAlert(H,J,ne){let ot="";return this.logger.error("ERROR IN: "+H+"\n"+JSON.stringify(ne)),this.store.dispatch((0,Ui.y0)({payload:J})),401===ne.status?(ot="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ui.ri)({payload:ot}))):503===ne.status?(ot="Unable to Connect to Boltz Server.",this.store.dispatch((0,Ui.xO)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:ne.status,message:"Unable to Connect to Boltz Server",URL:H},component:Yo.f}}}))):ot=this.commonService.extractErrorMessage(ne),(0,Qh.$)(()=>new Error(ot))}handleErrorWithAlert(H,J,ne){let ot="";if(401===ne.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ui.ri)({payload:"Authentication Failed: "+JSON.stringify(ne.error)}))),this.logger.error(ne),this.store.dispatch((0,Ui.y0)({payload:H})),401===ne.status)ot="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ui.ri)({payload:ot}));else if(503===ne.status)ot="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:ne.status,message:"Unable to Connect to Boltz Server",URL:J},component:Yo.f}}}))},100);else{ot=this.commonService.extractErrorMessage(ne);const jt=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,Ui.xO)({payload:{data:{type:Mt.A$.ERROR,alertTitle:"ERROR",message:{code:jt,message:ot,URL:J},component:Yo.f}}}))},100)}return{message:ot}}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(ns.Qq),p.KVO(La.gP),p.KVO(vi.il),p.KVO(_o.h))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();const Fc=z=>({"display-none":z});function g1(z,N){1&z&&e.eu8(0)}function Qs(z,N){if(1&z&&(e.j41(0,"div",4)(1,"span",5),e.EFF(2),e.k0s()()),2&z){const I=e.XpG();e.R7$(2),e.JRh(null!=I.swapStatus&&I.swapStatus.error?null==I.swapStatus?null:I.swapStatus.error:"Unknown Error.")}}function od(z,N){if(1&z&&(e.j41(0,"div",7)(1,"h4",8),e.EFF(2,"Routing Fee (mSats)"),e.k0s(),e.j41(3,"span",5),e.EFF(4),e.nI1(5,"number"),e.k0s()()),2&z){const I=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,1,null==I.swapStatus?null:I.swapStatus.routingFeeMilliSat))}}function q2(z,N){if(1&z&&(e.j41(0,"div",7)(1,"h4",8),e.EFF(2,"Claim Transaction ID"),e.k0s(),e.j41(3,"span",5),e.EFF(4),e.k0s()()),2&z){const I=e.XpG(2);e.R7$(4),e.JRh(null==I.swapStatus?null:I.swapStatus.claimTransactionId)}}function lc(z,N){if(1&z&&(e.j41(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e.EFF(4,"ID"),e.k0s(),e.j41(5,"span",5),e.EFF(6),e.k0s()(),e.DNE(7,od,6,3,"div",9)(8,q2,5,1,"div",9),e.k0s(),e.nrm(9,"mat-divider",10),e.j41(10,"div",6)(11,"div",11)(12,"h4",8),e.EFF(13,"Lockup Address"),e.k0s(),e.j41(14,"span",5),e.EFF(15),e.k0s()()()()),2&z){const I=e.XpG();e.R7$(6),e.JRh(null==I.swapStatus?null:I.swapStatus.id),e.R7$(),e.Y8G("ngIf",I.acceptZeroConf),e.R7$(),e.Y8G("ngIf",I.acceptZeroConf),e.R7$(7),e.JRh(null==I.swapStatus?null:I.swapStatus.lockupAddress)}}function Ld(z,N){1&z&&(e.j41(0,"span",22),e.EFF(1,"N/A"),e.k0s())}function y0(z,N){1&z&&(e.j41(0,"span",23),e.EFF(1,"QR Code Not Applicable"),e.k0s())}function $h(z,N){1&z&&e.nrm(0,"mat-divider",24),2&z&&e.Y8G("inset",!0)}function b0(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"Transaction ID"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.txId)}}function _1(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",25)(2,"h4",8),e.EFF(3,"ID"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",25)(7,"h4",8),e.EFF(8,"Expected Amount (Sats)"),e.k0s(),e.j41(9,"span",5),e.EFF(10),e.nI1(11,"number"),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.id),e.R7$(5),e.JRh(e.bMT(11,2,null==I.swapStatus?null:I.swapStatus.expectedAmount))}}function Zh(z,N){1&z&&e.nrm(0,"mat-divider",10)}function pr(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"Address"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.address)}}function Jh(z,N){1&z&&e.nrm(0,"mat-divider",10)}function cc(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"BIP 21"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.bip21)}}function eu(z,N){if(1&z&&(e.j41(0,"div",12)(1,"div",13),e.nrm(2,"qr-code",14),e.DNE(3,Ld,2,0,"span",15),e.k0s(),e.j41(4,"div",16)(5,"div",4)(6,"div",17),e.nrm(7,"qr-code",14),e.DNE(8,y0,2,0,"span",18),e.k0s(),e.DNE(9,$h,1,1,"mat-divider",19)(10,b0,6,1,"div",20)(11,_1,12,4,"div",20)(12,Zh,1,0,"mat-divider",21)(13,pr,6,1,"div",20)(14,Jh,1,0,"mat-divider",21)(15,cc,6,1,"div",20),e.k0s()()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("fxLayoutAlign",""!==((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))?"center start":"center center")("ngClass",e.eq3(17,Fc,I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM)),e.R7$(),e.Y8G("value",(null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))("size",I.qrWidth),e.R7$(),e.Y8G("ngIf",""===((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))),e.R7$(3),e.Y8G("fxLayoutAlign",""!==((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))?"center start":"center center")("ngClass",e.eq3(19,Fc,I.screenSize!==I.screenSizeEnum.XS&&I.screenSize!==I.screenSizeEnum.SM)),e.R7$(),e.Y8G("value",(null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))("size",I.qrWidth),e.R7$(),e.Y8G("ngIf",""===((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))),e.R7$(),e.Y8G("ngIf",I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM),e.R7$(),e.Y8G("ngIf",I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal)}}let tu=(()=>{var z;class N{constructor(H){this.commonService=H,this.swapStatus=null,this.direction=Mt.Bd.SWAP_OUT,this.acceptZeroConf=!1,this.sendFromInternal=!0,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=Mt.f7,this.swapTypeEnum=Mt.Bd}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===Mt.f7.XS&&(this.qrWidth=180)}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction",acceptZeroConf:"acceptZeroConf",sendFromInternal:"sendFromInternal"},standalone:!1,decls:7,vars:1,consts:[["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],[4,"ngTemplateOutlet"],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","33"],["fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","33",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["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"],["class","w-100 my-1",4,"ngIf"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","50"]],template:function(J,ne){if(1&J&&e.DNE(0,g1,1,0,"ng-container",3)(1,Qs,3,1,"ng-template",null,0,e.C5r)(3,lc,16,4,"ng-template",null,1,e.C5r)(5,eu,16,21,"ng-template",null,2,e.C5r),2&J){const ot=e.sdS(2),jt=e.sdS(4),$t=e.sdS(6);e.Y8G("ngTemplateOutlet",null!=ne.swapStatus&&ne.swapStatus.error?ot:ne.direction===ne.swapTypeEnum.SWAP_OUT?jt:$t)}},dependencies:[o.YU,o.bT,o.T3,Wi.q,at.DJ,at.sA,at.UI,ol.PW,bc.Um,o.QX],encapsulation:2}))}return z(),N})(),nu=(()=>{var z;class N{constructor(){this.serviceInfo={},this.direction=Mt.Bd.SWAP_OUT,this.swapTypeEnum=Mt.Bd}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},standalone:!1,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(J,ne){1&J&&(e.j41(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e.EFF(4,"Service Information"),e.k0s()()(),e.j41(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e.EFF(9,"Minimum Amount (Sats)"),e.k0s(),e.j41(10,"span",6),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div",4)(14,"h4",5),e.EFF(15,"Maximum Amount (Sats)"),e.k0s(),e.j41(16,"span",6),e.EFF(17),e.nI1(18,"number"),e.k0s()()(),e.nrm(19,"mat-divider",7),e.j41(20,"div",3)(21,"div",4)(22,"h4",5),e.EFF(23,"Fee Percentage"),e.k0s(),e.j41(24,"span",6),e.EFF(25),e.nI1(26,"number"),e.k0s()(),e.j41(27,"div",4)(28,"h4",5),e.EFF(29,"Miner Fee (Sats)"),e.k0s(),e.j41(30,"span",6),e.EFF(31),e.nI1(32,"number"),e.k0s()()()()()),2&J&&(e.Y8G("expanded",!0),e.R7$(11),e.JRh(e.bMT(12,5,null==ne.serviceInfo||null==ne.serviceInfo.limits?null:ne.serviceInfo.limits.minimal)),e.R7$(6),e.JRh(e.bMT(18,7,null==ne.serviceInfo||null==ne.serviceInfo.limits?null:ne.serviceInfo.limits.maximal)),e.R7$(8),e.JRh(e.bMT(26,9,null==ne.serviceInfo||null==ne.serviceInfo.fees?null:ne.serviceInfo.fees.percentage)),e.R7$(6),e.JRh(e.bMT(32,11,ne.direction===ne.swapTypeEnum.SWAP_OUT?null==ne.serviceInfo||null==ne.serviceInfo.fees||null==ne.serviceInfo.fees.miner?null:ne.serviceInfo.fees.miner.reverse:null==ne.serviceInfo||null==ne.serviceInfo.fees||null==ne.serviceInfo.fees.miner?null:ne.serviceInfo.fees.miner.normal)))},dependencies:[ss.GK,ss.Z2,ss.WN,Wi.q,at.DJ,at.sA,at.UI,o.QX],encapsulation:2}))}return z(),N})();var ld=l(16949);const Bc=(z,N)=>({"small-svg":z,"large-svg":N});function v1(z,N){1&z&&e.eu8(0)}function iu(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",7),e.nrm(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.k0s(),p.joV(),e.j41(12,"div",18)(13,"mat-card-title"),e.EFF(14,"Boltz Submarine Swaps explained."),e.k0s()(),e.j41(15,"div",19)(16,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function x0(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",21),e.nrm(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.k0s(),p.joV(),e.j41(9,"div",18)(10,"mat-card-title"),e.EFF(11,"Step 1: Deciding to Submarine Swap"),e.k0s()(),e.j41(12,"div",19)(13,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function y1(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.j41(9,"defs")(10,"pattern",37),e.nrm(11,"use",38),e.k0s(),e.nrm(12,"image",39),e.k0s()(),p.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 2: Sending the on-chain funds"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function zc(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",40)(2,"g",41),e.nrm(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.k0s(),e.j41(8,"defs")(9,"clipPath",47),e.nrm(10,"rect",48),e.k0s()()(),p.joV(),e.j41(11,"div",18)(12,"mat-card-title"),e.EFF(13,"Step 3: Receiving the funds on Lightning"),e.k0s()(),e.j41(14,"div",19)(15,"mat-card-subtitle",20),e.EFF(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function b1(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",49),e.nrm(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.k0s(),p.joV(),e.j41(7,"div",18)(8,"mat-card-title"),e.EFF(9,"Done!"),e.k0s()(),e.j41(10,"div",19)(11,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}let C0=(()=>{var z;class N{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=Mt.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],[4,"ngTemplateOutlet"],["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(J,ne){if(1&J&&e.DNE(0,v1,1,0,"ng-container",5)(1,iu,18,5,"ng-template",null,0,e.C5r)(3,x0,15,5,"ng-template",null,1,e.C5r)(5,y1,19,5,"ng-template",null,2,e.C5r)(7,zc,17,5,"ng-template",null,3,e.C5r)(9,b1,13,5,"ng-template",null,4,e.C5r),2&J){const ot=e.sdS(2),jt=e.sdS(4),$t=e.sdS(6),Tn=e.sdS(8),ii=e.sdS(10);e.Y8G("ngTemplateOutlet",1===ne.stepNumber?ot:2===ne.stepNumber?jt:3===ne.stepNumber?$t:4===ne.stepNumber?Tn:ii)}},dependencies:[o.YU,o.T3,De.Lc,De.dh,at.DJ,at.sA,at.UI,ol.PW],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:[ld.k]}}))}return z(),N})();const Uc=(z,N)=>({"small-svg":z,"large-svg":N});function au(z,N){1&z&&e.eu8(0)}function ru(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",7),e.nrm(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.k0s(),p.joV(),e.j41(12,"div",18)(13,"mat-card-title"),e.EFF(14,"Boltz Reverse Submarine Swap explained."),e.k0s()(),e.j41(15,"div",19)(16,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function M0(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",21)(2,"g",22),e.nrm(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.k0s(),e.nrm(9,"path",29),e.j41(10,"defs")(11,"clipPath",30),e.nrm(12,"rect",31),e.k0s()()(),p.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 1: Deciding to Reverse Submarine Swap"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function su(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",32),e.nrm(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.j41(9,"defs")(10,"pattern",40),e.nrm(11,"use",41),e.k0s(),e.nrm(12,"image",42),e.k0s()(),p.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 2: Paying the Lightning Invoice"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function ou(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",43)(2,"g",22),e.nrm(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.k0s(),e.j41(8,"defs")(9,"clipPath",30),e.nrm(10,"rect",49),e.k0s()()(),p.joV(),e.j41(11,"div",18)(12,"mat-card-title"),e.EFF(13,"Step 3: Receiving the funds on-chain"),e.k0s()(),e.j41(14,"div",19)(15,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function lu(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",50),e.nrm(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.k0s(),p.joV(),e.j41(7,"div",18)(8,"mat-card-title"),e.EFF(9,"Done!"),e.k0s()(),e.j41(10,"div",19)(11,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}let Id=(()=>{var z;class N{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=Mt.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],[4,"ngTemplateOutlet"],["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(J,ne){if(1&J&&e.DNE(0,au,1,0,"ng-container",5)(1,ru,18,5,"ng-template",null,0,e.C5r)(3,M0,19,5,"ng-template",null,1,e.C5r)(5,su,19,5,"ng-template",null,2,e.C5r)(7,ou,17,5,"ng-template",null,3,e.C5r)(9,lu,13,5,"ng-template",null,4,e.C5r),2&J){const ot=e.sdS(2),jt=e.sdS(4),$t=e.sdS(6),Tn=e.sdS(8),ii=e.sdS(10);e.Y8G("ngTemplateOutlet",1===ne.stepNumber?ot:2===ne.stepNumber?jt:3===ne.stepNumber?$t:4===ne.stepNumber?Tn:ii)}},dependencies:[o.YU,o.T3,De.Lc,De.dh,at.DJ,at.sA,at.UI,ol.PW],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:[ld.k]}}))}return z(),N})();const cu=["stepper"],J4=()=>[1,2,3,4,5],qh=(z,N)=>({"dot-primary":z,"dot-primary-lighter":N});function E0(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.inputFormLabel)}}function kd(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function X(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.SpI("Amount must be greater than or equal to ",e.bMT(2,1,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.minimal),".")}}function Rd(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.SpI("Amount must be less than or equal to ",e.bMT(2,1,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.maximal),".")}}function ef(z,N){1&z&&(e.j41(0,"div",44)(1,"div",45)(2,"mat-slide-toggle",46),e.EFF(3,"Accept Zero Conf"),e.k0s(),e.j41(4,"mat-icon",47),e.EFF(5,"info_outline"),e.k0s()()())}function q4(z,N){1&z&&(e.j41(0,"div",44)(1,"div",45)(2,"mat-slide-toggle",48),e.EFF(3,"Send from Internal Wallet"),e.k0s(),e.j41(4,"mat-icon",49),e.EFF(5,"info_outline"),e.k0s()()())}function tf(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1," Refund address is required when not using internal wallet. "),e.k0s())}function e3(z,N){1&z&&(e.j41(0,"button",50),e.EFF(1,"Next"),e.k0s())}function w0(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",51),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onSwap())}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG(2);e.R7$(),e.SpI("Initiate ",I.swapDirectionCaption)}}function x1(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(3);e.JRh(I.addressFormLabel)}}function S0(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Address is required."),e.k0s())}function du(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-step",15)(1,"form",16),e.DNE(2,x1,1,1,"ng-template",17),e.j41(3,"div",52)(4,"mat-radio-group",53),e.bIt("change",function(J){p.eBV(I);const ne=e.XpG(2);return p.Njj(ne.onAddressTypeChange(J))}),e.j41(5,"mat-radio-button",54),e.EFF(6,"Node Local Address"),e.k0s(),e.j41(7,"mat-radio-button",55),e.EFF(8,"External Address"),e.k0s()(),e.j41(9,"mat-form-field",56)(10,"mat-label"),e.EFF(11,"Address"),e.k0s(),e.nrm(12,"input",57),e.DNE(13,S0,2,0,"mat-error",24),e.k0s()(),e.j41(14,"div",29)(15,"button",58),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onSwap())}),e.EFF(16),e.k0s()()()()}if(2&z){const I=e.XpG(2);e.Y8G("stepControl",I.addressFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.addressFormGroup),e.R7$(11),e.Y8G("required","external"===I.addressFormGroup.controls.addressType.value),e.R7$(),e.Y8G("ngIf",null==I.addressFormGroup.controls.address.errors?null:I.addressFormGroup.controls.address.errors.required),e.R7$(3),e.SpI("Initiate ",I.swapDirectionCaption)}}function t3(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.SpI("",I.swapDirectionCaption," Status")}}function nf(z,N){if(1&z&&(e.j41(0,"mat-icon",59),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.swapStatus&&null!=I.swapStatus&&I.swapStatus.id?"check":"close")}}function T0(z,N){1&z&&e.nrm(0,"div")}function D0(z,N){1&z&&e.nrm(0,"mat-progress-bar",60)}function uu(z,N){if(1&z&&(e.j41(0,"h4",61),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.swapStatus&&I.swapStatus.error?I.swapDirectionCaption+" failed.":I.swapStatus&&I.swapStatus.id?I.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":I.swapDirectionCaption+" request placed successfully.")}}function af(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onRestart())}),e.EFF(1,"Start Again"),e.k0s()}}function rf(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),e.EFF(5),e.k0s()(),e.j41(6,"div",9)(7,"button",10),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.showInfo())}),e.EFF(8,"?"),e.k0s(),e.j41(9,"button",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onClose())}),e.EFF(10,"X"),e.k0s()()(),e.j41(11,"mat-card-content",12)(12,"div",13)(13,"mat-vertical-stepper",14,1),e.bIt("selectionChange",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.stepSelectionChanged(J))}),e.j41(15,"mat-step",15)(16,"form",16),e.DNE(17,E0,1,1,"ng-template",17),e.j41(18,"div",18),e.nrm(19,"rtl-boltz-service-info",19),e.k0s(),e.j41(20,"div",20)(21,"mat-form-field",21)(22,"mat-label"),e.EFF(23,"Amount"),e.k0s(),e.nrm(24,"input",22),e.j41(25,"mat-hint"),e.EFF(26),e.nI1(27,"number"),e.nI1(28,"number"),e.k0s(),e.j41(29,"span",23),e.EFF(30,"Sats"),e.k0s(),e.DNE(31,kd,2,0,"mat-error",24)(32,X,3,3,"mat-error",24)(33,Rd,3,3,"mat-error",24),e.k0s(),e.DNE(34,ef,6,0,"div",25)(35,q4,6,0,"div",25),e.j41(36,"div",26)(37,"mat-form-field",27)(38,"mat-label"),e.EFF(39,"Refund Address"),e.k0s(),e.nrm(40,"input",28),e.j41(41,"mat-hint"),e.EFF(42,"The address where funds will be returned in case of a failed swap"),e.k0s(),e.DNE(43,tf,2,0,"mat-error",24),e.k0s()()(),e.j41(44,"div",29),e.DNE(45,e3,2,0,"button",30)(46,w0,2,1,"button",31),e.k0s()()(),e.DNE(47,du,17,6,"mat-step",32),e.j41(48,"mat-step",33)(49,"form",16),e.DNE(50,t3,1,1,"ng-template",17),e.j41(51,"div",34)(52,"mat-expansion-panel",35)(53,"mat-expansion-panel-header")(54,"mat-panel-title")(55,"span",36),e.EFF(56),e.DNE(57,nf,2,1,"mat-icon",37),e.k0s()()(),e.DNE(58,T0,1,0,"div",38),e.k0s(),e.DNE(59,D0,1,0,"mat-progress-bar",39),e.k0s(),e.DNE(60,uu,2,1,"h4",40),e.j41(61,"div",29),e.DNE(62,af,2,0,"button",41),e.k0s()()()(),e.j41(63,"div",42)(64,"button",43),e.EFF(65,"Close"),e.k0s()()()()()()}if(2&z){const I=e.XpG(),H=e.sdS(2);e.Y8G("@opacityAnimation",void 0),e.R7$(3),e.Y8G("ngClass",I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM?"flex-83":"flex-91"),e.R7$(2),e.JRh(I.swapDirectionCaption),e.R7$(),e.Y8G("ngClass",I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM?"flex-17":"flex-9"),e.R7$(7),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",I.inputFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.inputFormGroup),e.R7$(3),e.Y8G("serviceInfo",I.serviceInfo)("direction",I.direction),e.R7$(5),e.Y8G("step",1e3),e.R7$(2),e.Lme("Range: ",e.bMT(27,34,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.minimal),"-",e.bMT(28,36,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.maximal)),e.R7$(5),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.amount||null==I.inputFormGroup.controls.amount.errors?null:I.inputFormGroup.controls.amount.errors.required),e.R7$(),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.amount||null==I.inputFormGroup.controls.amount.errors?null:I.inputFormGroup.controls.amount.errors.min),e.R7$(),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.amount||null==I.inputFormGroup.controls.amount.errors?null:I.inputFormGroup.controls.amount.errors.max),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_IN&&I.isSendFromInternalCompatible),e.R7$(5),e.Y8G("required",!(null!=I.inputFormGroup&&null!=I.inputFormGroup.controls&&I.inputFormGroup.controls.sendFromInternal.value)),e.R7$(3),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.refundAddress||null==I.inputFormGroup.controls.refundAddress.errors?null:I.inputFormGroup.controls.refundAddress.errors.required),e.R7$(2),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_IN),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("stepControl",I.statusFormGroup),e.R7$(),e.Y8G("formGroup",I.statusFormGroup),e.R7$(3),e.Y8G("expanded",!!I.swapStatus),e.R7$(4),e.JRh(I.swapStatus?I.swapStatus.id?I.swapDirectionCaption+" request details":I.swapDirectionCaption+" error details":"Waiting for "+I.swapDirectionCaption+" request..."),e.R7$(),e.Y8G("ngIf",I.swapStatus),e.R7$(),e.Y8G("ngIf",!I.swapStatus)("ngIfElse",H),e.R7$(),e.Y8G("ngIf",!I.swapStatus),e.R7$(),e.Y8G("ngIf",I.swapStatus),e.R7$(2),e.Y8G("ngIf",I.swapStatus&&(I.swapStatus.error||!I.swapStatus.id)),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}function hu(z,N){if(1&z&&e.nrm(0,"rtl-boltz-swap-status",63),2&z){const I=e.XpG();e.Y8G("swapStatus",I.swapStatus)("direction",I.direction)("acceptZeroConf",null==I.inputFormGroup||null==I.inputFormGroup.controls?null:I.inputFormGroup.controls.acceptZeroConf.value)("sendFromInternal",null==I.inputFormGroup||null==I.inputFormGroup.controls?null:I.inputFormGroup.controls.sendFromInternal.value)}}function fu(z,N){if(1&z){const I=e.RV6();e.j41(0,"rtl-boltz-swapout-info-graphics",79),e.mxI("stepNumberChange",function(J){p.eBV(I);const ne=e.XpG(2);return e.DH7(ne.stepNumber,J)||(ne.stepNumber=J),p.Njj(J)}),e.k0s()}if(2&z){const I=e.XpG(2);e.Y8G("animationDirection",I.animationDirection),e.R50("stepNumber",I.stepNumber)}}function sf(z,N){if(1&z){const I=e.RV6();e.j41(0,"rtl-boltz-swapin-info-graphics",79),e.mxI("stepNumberChange",function(J){p.eBV(I);const ne=e.XpG(2);return e.DH7(ne.stepNumber,J)||(ne.stepNumber=J),p.Njj(J)}),e.k0s()}if(2&z){const I=e.XpG(2);e.Y8G("animationDirection",I.animationDirection),e.R50("stepNumber",I.stepNumber)}}function mu(z,N){if(1&z){const I=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG(2);return p.Njj(ne.onStepChanged(J))}),e.nrm(1,"p",81),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(1,qh,H.stepNumber===I,H.stepNumber!==I))}}function Vc(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",82),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onReadMore())}),e.EFF(1,"Read More"),e.k0s()}}function of(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onStepChanged(4))}),e.EFF(1,"Back"),e.k0s()}}function C1(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return J.flgShowInfo=!1,p.Njj(J.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function pu(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",85),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return J.flgShowInfo=!1,p.Njj(J.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function A0(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onStepChanged(J.stepNumber-1))}),e.EFF(1,"Back"),e.k0s()}}function n3(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",87),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onStepChanged(J.stepNumber+1))}),e.EFF(1,"Next"),e.k0s()}}function lf(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",64)(1,"div",18)(2,"mat-card-header",65)(3,"div",66),e.nrm(4,"span",8),e.k0s(),e.j41(5,"div",67)(6,"button",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return J.flgShowInfo=!1,p.Njj(J.stepNumber=1)}),e.EFF(7,"X"),e.k0s()()(),e.j41(8,"mat-card-content",68),e.DNE(9,fu,1,2,"rtl-boltz-swapout-info-graphics",69)(10,sf,1,2,"rtl-boltz-swapin-info-graphics",69),e.k0s(),e.j41(11,"div",70),e.DNE(12,mu,2,4,"span",71),e.k0s(),e.j41(13,"div",72),e.DNE(14,Vc,2,0,"button",73)(15,of,2,0,"button",74)(16,C1,2,0,"button",75)(17,pu,2,0,"button",76)(18,A0,2,0,"button",77)(19,n3,2,0,"button",78),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@opacityAnimation",void 0),e.R7$(9),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_IN),e.R7$(2),e.Y8G("ngForOf",e.lJ4(10,J4)),e.R7$(2),e.Y8G("ngIf",5===I.stepNumber),e.R7$(),e.Y8G("ngIf",5===I.stepNumber),e.R7$(),e.Y8G("ngIf",5===I.stepNumber),e.R7$(),e.Y8G("ngIf",I.stepNumber<5),e.R7$(),e.Y8G("ngIf",I.stepNumber>1&&I.stepNumber<5),e.R7$(),e.Y8G("ngIf",I.stepNumber<5)}}let L0=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t,Tn){this.dialogRef=H,this.data=J,this.boltzService=ne,this.formBuilder=ot,this.decimalPipe=jt,this.logger=$t,this.commonService=Tn,this.faInfoCircle=Ti.iW_,this.boltzInfo=null,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Mt.Bd,this.direction=Mt.Bd.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=Mt.f7,this.animationDirection="forward",this.flgEditable=!0,this.isSendFromInternalCompatible=!0,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||Mt.Bd.SWAP_OUT,this.swapDirectionCaption=this.direction===Mt.Bd.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[_i.k0.required,_i.k0.min(this.serviceInfo.limits?.minimal||0),_i.k0.max(this.serviceInfo.limits?.maximal||0)]],acceptZeroConf:[!1],sendFromInternal:[!0],refundAddress:[{value:"",disabled:!0}]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[_i.k0.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.boltzService.boltzInfoChanged.pipe((0,mi.Q)(this.unSubs[0])).subscribe({next:H=>{this.boltzInfo=H,this.isSendFromInternalCompatible=this.commonService.isVersionCompatible(this.boltzInfo.version,"2.0.0")},error:H=>{this.boltzInfo={version:"2.0.0"},this.logger.error(H)}})}ngAfterViewInit(){this.direction===Mt.Bd.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Mt.Bd.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.addressFormGroup.setErrors({Invalid:!0})}),this.direction===Mt.Bd.SWAP_IN&&this.inputFormGroup.controls.sendFromInternal.valueChanges.pipe((0,mi.Q)(this.unSubs[4])).subscribe(()=>{this.onSendFromInternalChange()})}onSendFromInternalChange(){this.inputFormGroup.controls.sendFromInternal.value?(this.inputFormGroup.controls.refundAddress.disable(),this.inputFormGroup.controls.refundAddress.clearValidators(),this.inputFormGroup.controls.refundAddress.updateValueAndValidity()):(this.inputFormGroup.controls.refundAddress.enable(),this.inputFormGroup.controls.refundAddress.setValidators([_i.k0.required]),this.inputFormGroup.controls.refundAddress.updateValueAndValidity())}onAddressTypeChange(H){"external"===H.value?(this.addressFormGroup.controls.address.setValidators([_i.k0.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.serviceInfo.limits?.minimal&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.serviceInfo.limits?.maximal&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Mt.Bd.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===Mt.Bd.SWAP_IN){const H=this.inputFormGroup.controls.sendFromInternal.value?null:this.inputFormGroup.controls.refundAddress.value,J=this.isSendFromInternalCompatible?this.inputFormGroup.controls.sendFromInternal.value:null;if(!J&&!H)return this.stepper.selected?.stepControl.setErrors({Invalid:!0}),void(this.flgEditable=!0);this.boltzService.swapIn(this.inputFormGroup.controls.amount.value,J,H).pipe((0,mi.Q)(this.unSubs[2])).subscribe({next:ne=>{this.swapStatus=ne,this.boltzService.listSwaps(),this.flgEditable=!0},error:ne=>{this.swapStatus={error:ne},this.flgEditable=!0,this.logger.error(ne)}})}else this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",this.inputFormGroup.controls.acceptZeroConf.value).pipe((0,mi.Q)(this.unSubs[3])).subscribe({next:J=>{this.swapStatus=J,this.boltzService.listSwaps(),this.flgEditable=!0},error:J=>{this.swapStatus={error:J},this.flgEditable=!0,this.logger.error(J)}})}stepSelectionChanged(H){switch(H.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:if(this.inputFormGroup.controls.amount.value)if(this.direction===Mt.Bd.SWAP_IN){let J=this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Send from Internal Wallet: "+(this.inputFormGroup.controls.sendFromInternal.value?"Yes":"No");!this.inputFormGroup.controls.sendFromInternal.value&&this.inputFormGroup.controls.refundAddress.value&&(J+=" | Refund Address: "+this.inputFormGroup.controls.refundAddress.value),this.inputFormLabel=J}else this.inputFormLabel=this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Zero Conf: "+(this.inputFormGroup.controls.acceptZeroConf.value?"Yes":"No");else this.inputFormLabel="Amount to "+this.swapDirectionCaption;this.addressFormLabel="Withdrawal Address"}H.selectedIndex{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(Oo.Vh),e.rXU(sd),e.rXU(_i.ze),e.rXU(o.QX),e.rXU(La.gP),e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(J,ne){if(1&J&&e.GBs(cu,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.stepper=ot.first)}},standalone:!1,decls:4,vars:2,consts:[["swapStatusBlock",""],["stepper",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["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,"ngClass"],[1,"page-title"],["fxLayoutAlign","end end",3,"ngClass"],["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,"selectionChange","linear"],[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"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start stretch",4,"ngIf"],["disabled","direction === swapTypeEnum.SWAP_IN && isSendFromInternalCompatible && !inputFormGroup?.controls?.sendFromInternal.value","fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"mt-1"],["fxLayout","column","fxFlex","100"],["matInput","","type","text","tabindex","3","formControlName","refundAddress",3,"required"],["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"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayoutAlign","start center","tabindex","2","color","primary","formControlName","acceptZeroConf","name","acceptZeroConf"],["matTooltip","Only recommended for smaller payments, involves trust in Boltz","matTooltipPosition","above",1,"info-icon","mt-2"],["fxLayoutAlign","start center","tabindex","2","color","primary","formControlName","sendFromInternal","name","sendFromInternal"],["matTooltip","Pay from the node's onchain wallet","matTooltipPosition","above",1,"info-icon","mt-2"],["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"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","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","acceptZeroConf","sendFromInternal"],["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"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","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,"stepNumberChange","animationDirection","stepNumber"],["tabindex","21","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(J,ne){1&J&&e.DNE(0,rf,66,38,"div",2)(1,hu,1,4,"ng-template",null,0,e.C5r)(3,lf,20,11,"div",3),2&J&&(e.Y8G("ngIf",!ne.flgShowInfo),e.R7$(3),e.Y8G("ngIf",ne.flgShowInfo))},dependencies:[o.YU,o.Sq,o.bT,_i.qT,_i.me,_i.Q0,_i.BC,_i.cb,_i.YS,_i.j4,_i.JD,Oo.tx,tr.$z,De.m2,De.MM,ss.GK,ss.Z2,ss.WN,Oc.An,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,wa.yw,oc.HM,i1.VT,i1._g,at.DJ,at.sA,at.UI,ol.PW,xd.sG,o1.oV,uo.V5,uo.Ti,uo.M6,uo.F7,Xl.N,tu,nu,C0,Id,o.QX],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[J2.C]}}))}return z(),N})();const cf=()=>["all"],df=z=>({"overflow-auto error-border":z,"overflow-auto":!0}),I0=()=>["no_swap"],Ol=z=>({width:z}),i3=z=>({"display-none":z});function gu(z,N){if(1&z&&(e.j41(0,"mat-option",42),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("value",I),e.R7$(),e.JRh(H.getLabel(I))}}function _u(z,N){1&z&&e.nrm(0,"mat-progress-bar",43)}function vu(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Status"),e.k0s())}function a3(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.JRh(H.swapStateEnum[null==I?null:I.status])}}function yu(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Swap ID"),e.k0s())}function k0(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.id)}}function R0(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Claim Address"),e.k0s())}function O0(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.claimAddress)}}function P0(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Lockup Address"),e.k0s())}function uf(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.lockupAddress)}}function hf(z,N){1&z&&(e.j41(0,"th",48),e.EFF(1,"Onchain Amount (Sats)"),e.k0s())}function ff(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.onchainAmount))}}function bu(z,N){1&z&&(e.j41(0,"th",48),e.EFF(1,"Expected Amount (Sats)"),e.k0s())}function N0(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.expectedAmount))}}function mf(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Error"),e.k0s())}function M1(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.error)}}function pf(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Private Key"),e.k0s())}function E1(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.privateKey)}}function w1(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Preimage"),e.k0s())}function r3(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.preimage)}}function xu(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Redeem Script"),e.k0s())}function Od(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.redeemScript)}}function S1(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Invoice"),e.k0s())}function gf(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.invoice)}}function F0(z,N){1&z&&(e.j41(0,"th",48),e.EFF(1,"Timeout Block Height"),e.k0s())}function _f(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.timeoutBlockHeight))}}function T1(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Lockup Tx ID"),e.k0s())}function vf(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.lockupTransactionId)}}function dc(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Claim Tx ID"),e.k0s())}function Gc(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.claimTransactionId)}}function s3(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Refund Tx ID"),e.k0s())}function o3(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.refundTransactionId)}}function Pd(z,N){if(1&z){const I=e.RV6();e.j41(0,"th",50)(1,"div",51)(2,"mat-select",52),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",53),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function yf(z,N){if(1&z){const I=e.RV6();e.j41(0,"td",54)(1,"button",55),e.bIt("click",function(J){const ne=p.eBV(I).$implicit,ot=e.XpG();return p.Njj(ot.onSwapClick(ne,J))}),e.EFF(2,"View Info"),e.k0s()()}}function Cu(z,N){if(1&z&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.emptyTableMessage)}}function Mu(z,N){if(1&z&&(e.j41(0,"td",56),e.DNE(1,Cu,2,1,"p",57),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.Y8G("ngIf",!(null!=I.listSwaps&&I.listSwaps.data)||(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)<1)}}function Eu(z,N){if(1&z&&e.nrm(0,"tr",58),2&z){const I=e.XpG();e.Y8G("ngClass",e.eq3(1,i3,(null==I.listSwaps?null:I.listSwaps.data)&&(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)>0))}}function bf(z,N){1&z&&e.nrm(0,"tr",59)}function wu(z,N){1&z&&e.nrm(0,"tr",60)}let xf=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.logger=H,this.commonService=J,this.store=ne,this.boltzService=ot,this.camelCaseWithReplace=jt,this.selectedSwapType=Mt.Bd.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Mt._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:Mt.md,sortBy:"status",sortOrder:Mt.oi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:Mt.md,sortBy:"status",sortOrder:Mt.oi.DESCENDING},this.swapStateEnum=Mt.q9,this.swapTypeEnum=Mt.Bd,this.faHistory=Ti.Int,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new Ya.I6([]),this.selFilter="",this.pageSize=Mt.md,this.pageSizeOptions=Mt.xp,this.screenSize="",this.screenSizeEnum=Mt.f7,this.unSubs=[new bi.B,new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(H){H.selectedSwapType&&!H.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Mt.Bd.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}ngOnInit(){this.store.select(o0.$G).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.tableSettingSwapOut=H.pageSettings.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapOut.tableId)||Mt.ZC.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=H.pageSettings.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapIn.tableId)||Mt.ZC.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapIn.tableId),this.setTableColumns(),this.swapsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===Mt.Bd.SWAP_IN?(this.displayedColumns=this.screenSize===Mt.f7.XS||this.screenSize===Mt.f7.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:Mt.md):(this.displayedColumns=this.screenSize===Mt.f7.XS||this.screenSize===Mt.f7.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:Mt.md)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(H){const ne=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===Mt.Bd.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(ot=>ot.column===H);return ne?ne.label?ne.label:this.camelCaseWithReplace.transform(ne.column,"_"):this.commonService.titleCase(H)}setFilterPredicate(){this.listSwaps.filterPredicate=(H,J)=>{let ne="";switch(this.selFilterBy){case"all":ne=JSON.stringify(H).toLowerCase();break;case"status":ne=H?.status?this.swapStateEnum[H?.status]:"";break;default:ne=typeof H[this.selFilterBy]>"u"?"":"string"==typeof H[this.selFilterBy]?H[this.selFilterBy].toLowerCase():"boolean"==typeof H[this.selFilterBy]?H[this.selFilterBy]?"yes":"no":H[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===ne.indexOf(J):ne.includes(J)}}onSwapClick(H,J){this.boltzService.swapInfo(H.id||"").pipe((0,mi.Q)(this.unSubs[1])).subscribe(ne=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:Mt.q9[(ne=this.selectedSwapType===Mt.Bd.SWAP_IN?ne.swap:ne.reverseSwap).status],title:"Status",width:50,type:Mt.UN.STRING},{key:"id",value:ne.id,title:"ID",width:50,type:Mt.UN.STRING}],[{key:"amount",value:ne.onchainAmount?ne.onchainAmount:ne.expectedAmount?ne.expectedAmount:0,title:ne.onchainAmount?"Onchain Amount (Sats)":ne.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Mt.UN.NUMBER},{key:"timeoutBlockHeight",value:ne.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Mt.UN.NUMBER}],[{key:"address",value:ne.claimAddress?ne.claimAddress:ne.lockupAddress?ne.lockupAddress:"",title:ne.claimAddress?"Claim Address":ne.lockupAddress?"Lockup Address":"Address",width:100,type:Mt.UN.STRING}],[{key:"invoice",value:ne.invoice,title:"Invoice",width:100,type:Mt.UN.STRING}],[{key:"privateKey",value:ne.privateKey,title:"Private Key",width:100,type:Mt.UN.STRING}],[{key:"preimage",value:ne.preimage,title:"Preimage",width:100,type:Mt.UN.STRING}],[{key:"redeemScript",value:ne.redeemScript,title:"Redeem Script",width:100,type:Mt.UN.STRING}],[{key:"lockupTransactionId",value:ne.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Mt.UN.STRING},{key:"transactionId",value:ne.claimTransactionId?ne.claimTransactionId:ne.refundTransactionId?ne.refundTransactionId:"",title:ne.claimTransactionId?"Claim Transaction ID":ne.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Mt.UN.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new Ya.I6(H?[...H]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(J,ne)=>J[ne]&&isNaN(J[ne])?J[ne].toLocaleLowerCase():J[ne]?+J[ne]:null,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===Mt.Bd.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(sd),e.rXU(l1.VD))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swaps"]],viewQuery:function(J,ne){if(1&J&&(e.GBs(Pc.B4,5),e.GBs(Ec.iy,5)),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.sort=ot.first),e.mGM(ot=e.lsd())&&(ne.paginator=ot.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},standalone:!1,features:[e.Jv_([{provide:al.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Ec.xX,useValue:(0,Mt.on)("Swaps")}]),e.OA$],decls:76,vars:20,consts:[["table",""],["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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["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.gt-xs","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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilterBy,$t)||(ne.selFilterBy=$t),p.Njj($t)}),e.bIt("selectionChange",function(){return p.eBV(ot),ne.selFilter="",p.Njj(ne.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,gu,2,2,"mat-option",9),e.k0s()()(),e.j41(13,"mat-form-field",7)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",10),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilter,$t)||(ne.selFilter=$t),p.Njj($t)}),e.bIt("input",function(){return p.eBV(ot),p.Njj(ne.applyFilter())})("keyup",function(){return p.eBV(ot),p.Njj(ne.applyFilter())}),e.k0s()()()(),e.j41(17,"div",11)(18,"div",12),e.DNE(19,_u,1,0,"mat-progress-bar",13),e.j41(20,"table",14,0),e.qex(22,15),e.DNE(23,vu,2,0,"th",16)(24,a3,2,1,"td",17),e.bVm(),e.qex(25,18),e.DNE(26,yu,2,0,"th",16)(27,k0,2,1,"td",17),e.bVm(),e.qex(28,19),e.DNE(29,R0,2,0,"th",16)(30,O0,4,4,"td",17),e.bVm(),e.qex(31,20),e.DNE(32,P0,2,0,"th",16)(33,uf,4,4,"td",17),e.bVm(),e.qex(34,21),e.DNE(35,hf,2,0,"th",22)(36,ff,4,3,"td",17),e.bVm(),e.qex(37,23),e.DNE(38,bu,2,0,"th",22)(39,N0,4,3,"td",17),e.bVm(),e.qex(40,24),e.DNE(41,mf,2,0,"th",16)(42,M1,4,4,"td",17),e.bVm(),e.qex(43,25),e.DNE(44,pf,2,0,"th",16)(45,E1,4,4,"td",17),e.bVm(),e.qex(46,26),e.DNE(47,w1,2,0,"th",16)(48,r3,4,4,"td",17),e.bVm(),e.qex(49,27),e.DNE(50,xu,2,0,"th",16)(51,Od,4,4,"td",17),e.bVm(),e.qex(52,28),e.DNE(53,S1,2,0,"th",16)(54,gf,4,4,"td",17),e.bVm(),e.qex(55,29),e.DNE(56,F0,2,0,"th",22)(57,_f,4,3,"td",17),e.bVm(),e.qex(58,30),e.DNE(59,T1,2,0,"th",16)(60,vf,2,1,"td",17),e.bVm(),e.qex(61,31),e.DNE(62,dc,2,0,"th",16)(63,Gc,2,1,"td",17),e.bVm(),e.qex(64,32),e.DNE(65,s3,2,0,"th",16)(66,o3,2,1,"td",17),e.bVm(),e.qex(67,33),e.DNE(68,Pd,6,0,"th",34)(69,yf,3,0,"td",35),e.bVm(),e.qex(70,36),e.DNE(71,Mu,2,1,"td",37),e.bVm(),e.DNE(72,Eu,1,3,"tr",38)(73,bf,1,0,"tr",39)(74,wu,1,0,"tr",40),e.k0s(),e.nrm(75,"mat-paginator",41),e.k0s()()()}2&J&&(e.R7$(3),e.Y8G("icon",ne.faHistory),e.R7$(2),e.SpI("",ne.swapCaption," History"),e.R7$(5),e.R50("ngModel",ne.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,cf).concat(ne.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",ne.selFilter),e.R7$(3),e.Y8G("ngIf",!0===ne.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",ne.selectedSwapType===ne.swapTypeEnum.SWAP_IN?ne.tableSettingSwapIn.sortBy:ne.tableSettingSwapOut.sortBy)("matSortDirection",ne.selectedSwapType===ne.swapTypeEnum.SWAP_IN?ne.tableSettingSwapIn.sortOrder:ne.tableSettingSwapOut.sortOrder)("dataSource",ne.listSwaps)("ngClass",e.eq3(17,df,"error"===ne.flgLoading[0])),e.R7$(52),e.Y8G("matFooterRowDef",e.lJ4(19,I0)),e.R7$(),e.Y8G("matHeaderRowDef",ne.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",ne.displayedColumns),e.R7$(),e.Y8G("pageSize",ne.pageSize)("pageSizeOptions",ne.pageSizeOptions)("showFirstLastButtons",ne.screenSize!==ne.screenSizeEnum.XS))},dependencies:[o.YU,o.Sq,o.bT,o.B3,_i.me,_i.BC,_i.vS,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,oc.HM,at.DJ,at.sA,at.UI,ol.PW,ol.eI,al.VO,al.$2,ic.wT,Pc.B4,Pc.aE,Ya.Zl,Ya.tL,Ya.ji,Ya.cC,Ya.YV,Ya.iL,Ya.Zq,Ya.xW,Ya.KS,Ya.$R,Ya.Qo,Ya.YZ,Ya.NB,Ya.iF,Ec.iy,go.ZF,go.Ld,o.QX],encapsulation:2}))}return z(),N})();const Su=z=>["../",z];function Cf(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.onSelectedIndexChange(J))}),e.EFF(1),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG();e.Y8G("active",H.activeTab.link===I.link)("routerLink",e.eq3(3,Su,I.link)),e.R7$(),e.JRh(I.name)}}let B0=(()=>{var z;class N{constructor(H,J,ne){this.router=H,this.store=J,this.boltzService=ne,this.swapTypeEnum=Mt.Bd,this.selectedSwapType=Mt.Bd.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 bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.boltzService.getBoltzInfo(),this.boltzService.listSwaps();const H=this.links.find(J=>this.router.url.includes(J.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"swapin"===H.link?Mt.Bd.SWAP_IN:Mt.Bd.SWAP_OUT,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeTab=ne||this.links[0],this.selectedSwapType=ne&&"swapin"===ne.link?Mt.Bd.SWAP_IN:Mt.Bd.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,mi.Q)(this.unSubs[1])).subscribe({next:J=>{this.swaps=J,this.swapsData=this.selectedSwapType===Mt.Bd.SWAP_IN&&J.swaps?J.swaps:this.selectedSwapType===Mt.Bd.SWAP_OUT&&J.reverseSwaps?J.reverseSwaps:[],this.flgLoading[0]=!1},error:J=>{this.flgLoading[0]="error",this.emptyTableMessage=J.message?J.message:"No swap "+(this.selectedSwapType===Mt.Bd.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){"swapin"===H.link?(this.selectedSwapType=Mt.Bd.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=Mt.Bd.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(H){this.boltzService.serviceInfo().pipe((0,mi.Q)(this.unSubs[2])).subscribe({next:J=>{this.store.dispatch((0,Ui.xO)({payload:{data:{serviceInfo:J,direction:H,component:L0}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(ja.Ix),e.rXU(vi.il),e.rXU(sd))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-root"]],standalone:!1,decls:20,vars:7,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","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","2",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),p.qSk(),e.j41(1,"svg",2)(2,"g",3)(3,"g",4),e.nrm(4,"circle",5)(5,"path",6)(6,"path",7),e.k0s()()(),p.joV(),e.j41(7,"span",8),e.EFF(8,"Boltz"),e.k0s()(),e.j41(9,"div",9)(10,"mat-card")(11,"mat-card-content",10)(12,"nav",11),e.DNE(13,Cf,2,5,"div",12),e.k0s(),e.nrm(14,"mat-tab-nav-panel",null,0),e.j41(16,"div",13)(17,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onSwap(ne.selectedSwapType))}),e.EFF(18),e.k0s()(),e.nrm(19,"rtl-boltz-swaps",15),e.k0s()()()}if(2&J){const ot=e.sdS(15);e.R7$(12),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("ngForOf",ne.links),e.R7$(5),e.SpI("Start ",ne.activeTab.name),e.R7$(),e.Y8G("selectedSwapType",ne.selectedSwapType)("swapsData",ne.swapsData)("flgLoading",ne.flgLoading)("emptyTableMessage",ne.emptyTableMessage)}},dependencies:[o.Sq,tr.$z,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,co.Wk,xf],encapsulation:2}))}return z(),N})();class ho{constructor(N){this.help=N}}function Du(z,N){if(1&z&&(e.j41(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e.EFF(3),e.k0s()(),e.j41(4,"mat-panel-description",9),e.nrm(5,"span",10),e.j41(6,"a",11),e.EFF(7),e.k0s()()()),2&z){const I=e.XpG().$implicit,H=e.XpG();e.R7$(3),e.JRh(I.help.question),e.R7$(2),e.Y8G("innerHTML",I.help.answer,e.npT),e.R7$(),e.Y8G("routerLink",H.flgLoggedIn?I.help.link:"/login"),e.R7$(),e.JRh(H.flgLoggedIn?I.help.linkCaption:"Login to go to the page")}}function Au(z,N){if(1&z&&(e.j41(0,"div",6),e.DNE(1,Du,8,4,"mat-expansion-panel",7),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngIf","ALL"===I.help.lnImplementation||I.help.lnImplementation===H.selNode.lnImplementation)}}let Mf=(()=>{var z;class N{constructor(H,J){this.store=H,this.sessionService=J,this.helpTopics=[],this.faQuestion=Ti.EvL,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.flgLoggedIn=!!H.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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. issuer - issuer 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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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/nodesettings",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new ho({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(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(zi.Q))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-help"]],standalone:!1,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(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"fa-icon",2),e.j41(3,"span",3),e.EFF(4,"Help"),e.k0s()(),e.j41(5,"div",4)(6,"div",0),e.DNE(7,Au,2,1,"div",5),e.k0s()()()),2&J&&(e.R7$(2),e.Y8G("icon",ne.faQuestion),e.R7$(5),e.Y8G("ngForOf",ne.helpTopics))},dependencies:[o.Sq,o.bT,cr.aY,ss.GK,ss.Z2,ss.WN,ss.Q6,at.DJ,at.sA,at.UI,co.Wk],styles:[".mat-mdc-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}))}return z(),N})();var cd=l(84572);function Lu(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Token is required."),e.k0s())}let V0=(()=>{var z;class N{constructor(H,J){this.dialogRef=H,this.store=J,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Ui.R$)({payload:{twoFAToken:this.token}}))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-login-token"]],standalone:!1,decls:19,vars:2,consts:[["tokenForm","ngForm"],["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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["autoFocus","","matInput","","type","text","id","token","name","token","tabindex","2","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Two Factor Token"),e.k0s()(),e.j41(6,"button",6),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0),e.bIt("ngSubmit",function(){return p.eBV(ot),p.Njj(ne.onVerifyToken())}),e.j41(11,"mat-form-field")(12,"mat-label"),e.EFF(13,"Token"),e.k0s(),e.j41(14,"input",9),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.token,$t)||(ne.token=$t),p.Njj($t)}),e.k0s(),e.DNE(15,Lu,2,0,"mat-error",10),e.k0s(),e.j41(16,"div",11)(17,"button",12),e.EFF(18,"Verify Token"),e.k0s()()()()()()}2&J&&(e.R7$(14),e.R50("ngModel",ne.token),e.R7$(),e.Y8G("ngIf",!ne.token))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,tr.$z,De.m2,De.MM,Br.fg,wa.rl,wa.nJ,wa.TL,at.DJ,at.sA,at.UI,Xl.N],encapsulation:2}))}return z(),N})();const Iu=z=>({"padding-gap-large":z}),Ef=(z,N)=>({"font-size-200":z,"font-size-300":N});function dd(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function ku(z,N){if(1&z&&(e.j41(0,"p",21)(1,"mat-icon",22),e.EFF(2,"close"),e.k0s(),e.EFF(3),e.k0s()),2&z){const I=e.XpG();e.R7$(3),e.SpI(" ",I.loginErrorMessage," ")}}function Ru(z,N){if(1&z&&(e.j41(0,"p",23)(1,"mat-icon",22),e.EFF(2,"close"),e.k0s(),e.EFF(3),e.k0s()),2&z){const I=e.XpG();e.R7$(3),e.SpI(" ",I.logoutReason," ")}}let Hc=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.actions=H,this.logger=J,this.store=ne,this.rtlEffects=ot,this.commonService=jt,this.faUnlockAlt=Ti.HEq,this.logoutReason="",this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Mt.f7,this.loginErrorMessage="",this.apiCallStatusEnum=Mt.wn,this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,cd.z)([this.store.select(Ra.Kq),this.store.select(Ra.E2)]).pipe((0,mi.Q)(this.unSubs[0])).subscribe(([H,J])=>{this.loginErrorMessage="",H.status===Mt.wn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof H.message?JSON.stringify(H.message):H.message),this.logger.error(H.message)),J.status===Mt.wn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof J.message?JSON.stringify(J.message):J.message),this.logger.error(J.message))}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.appConfig=H,this.logger.info(H)}),this.actions.pipe((0,za.p)(H=>H.type===Mt.aU.LOGOUT),(0,Ss.s)(1)).subscribe(H=>{this.logoutReason=H.payload})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.logoutReason="",this.appConfig.enable2FA?(this.store.dispatch((0,Ui.xO)({payload:{maxWidth:"35rem",data:{component:V0}}})),this.rtlEffects.closeAlert.pipe((0,Ss.s)(1)).subscribe(H=>{H&&this.store.dispatch((0,Ui.iD)({payload:{password:vc(this.password),defaultPassword:Mt.Ah.includes(this.password.toLowerCase()),twoFAToken:H.twoFAToken}}))})):this.store.dispatch((0,Ui.iD)({payload:{password:vc(this.password),defaultPassword:Mt.Ah.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.logoutReason="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Vo.En),e.rXU(La.gP),e.rXU(vi.il),e.rXU(Ko.H),e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-login"]],standalone:!1,decls:29,vars:14,consts:[["loginForm","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"login-container"],["fxLayout","row","fxFlex.gt-sm","35","fxLayoutAlign","center center"],["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"],["alt","RTL Logo","src","assets/images/RTL-Horse-BY.svg",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","mt-2","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"pb-2"],["fxLayout","column","fxLayoutAlign","start space-between"],["autoFocus","","matInput","","id","password","name","password","tabindex","1","required","",3,"ngModelChange","type","ngModel"],["mat-icon-button","","matSuffix","","tabindex","2","type","button",3,"click"],[4,"ngIf"],["class","color-warn pre-wrap","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","color-warn pre-wrap","fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1","mb-2",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","pre-wrap"],["fxLayoutAlign","center center",1,"mr-3px","icon-small"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"color-warn","pre-wrap"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card",3)(3,"div",4)(4,"div",5),e.nrm(5,"img",6),e.k0s(),e.j41(6,"div",7)(7,"mat-card-header",8)(8,"mat-card-title",9)(9,"span",10),e.EFF(10,"Welcome"),e.k0s()()(),e.j41(11,"mat-card-content",11)(12,"form",12,0)(14,"mat-form-field")(15,"mat-label"),e.EFF(16,"Password"),e.k0s(),e.j41(17,"input",13),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.password,$t)||(ne.password=$t),p.Njj($t)}),e.k0s(),e.j41(18,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.flgShow=!ne.flgShow)}),e.j41(19,"mat-icon"),e.EFF(20),e.k0s()(),e.DNE(21,dd,2,0,"mat-error",15),e.k0s(),e.DNE(22,ku,4,1,"p",16)(23,Ru,4,1,"p",17),e.j41(24,"div",18)(25,"button",19),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.resetData())}),e.EFF(26,"Clear"),e.k0s(),e.j41(27,"button",20),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onLogin())}),e.EFF(28,"Login"),e.k0s()()()()()()()()()}2&J&&(e.R7$(6),e.Y8G("ngClass",e.eq3(9,Iu,ne.screenSize===ne.screenSizeEnum.XS)),e.R7$(2),e.Y8G("ngClass",e.l_i(11,Ef,ne.screenSize===ne.screenSizeEnum.XS,ne.screenSize!==ne.screenSizeEnum.XS)),e.R7$(9),e.Y8G("type",ne.flgShow?"text":"password"),e.R50("ngModel",ne.password),e.R7$(),e.BMQ("aria-label","Hide password"),e.R7$(2),e.JRh(ne.flgShow?"visibility_off":"visibility"),e.R7$(),e.Y8G("ngIf",!ne.password),e.R7$(),e.Y8G("ngIf",""!==ne.loginErrorMessage),e.R7$(),e.Y8G("ngIf",""!==ne.logoutReason))},dependencies:[o.YU,o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,tr.$z,sc.iY,De.RN,De.m2,De.MM,De.dh,Oc.An,Br.fg,wa.rl,wa.nJ,wa.TL,wa.yw,at.DJ,at.sA,at.UI,ol.PW,Xl.N],styles:[".login-container[_ngcontent-%COMP%]{height:60vh;margin-top:15%}.login-container[_ngcontent-%COMP%] .mat-mdc-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:90%;cursor:pointer}"]}))}return z(),N})();var G0=l(90013);let Nd=(()=>{var z;class N{constructor(H,J){this.activatedRoute=H,this.router=J,this.error={errorCode:"",errorMessage:""},this.faTimes=Ti.GRI,this.unsubs=[new bi.B,new bi.B]}ngOnInit(){this.activatedRoute.paramMap.pipe((0,mi.Q)(this.unsubs[0])).subscribe(H=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(ja.nX),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-error"]],standalone:!1,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(J,ne){1&J&&(e.j41(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e.nrm(4,"fa-icon",4),e.j41(5,"span",5),e.EFF(6),e.k0s()()(),e.j41(7,"mat-card-content",6)(8,"div",7),e.EFF(9),e.k0s(),e.j41(10,"span",8)(11,"button",9),e.bIt("click",function(){return ne.goToHelp()}),e.EFF(12,"Go To Help"),e.k0s()()()()()),2&J&&(e.R7$(4),e.Y8G("icon",ne.faTimes),e.R7$(2),e.SpI("Error ",ne.error.errorCode),e.R7$(3),e.JRh(ne.error.errorMessage))},dependencies:[cr.aY,tr.$z,De.RN,De.m2,De.MM,De.dh,at.DJ,at.sA,at.UI],encapsulation:2}))}return z(),N})();var vo=l(17186),H0=l(51534),Fd=l(60092),c3=l(56114);const d3=(z,N)=>({"alert-danger":z,"alert-info":N});function Bd(z,N){1&z&&e.nrm(0,"span",17)}function wf(z,N){1&z&&e.nrm(0,"span",18)}function D1(z,N){if(1&z){const I=e.RV6();e.j41(0,"form",19,0)(2,"div",20),e.nrm(3,"fa-icon",4),e.j41(4,"span"),e.EFF(5,"Please ensure that "),e.j41(6,"strong"),e.EFF(7,"experimental-offers"),e.k0s(),e.EFF(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.j41(9,"strong")(10,"a",21),e.EFF(11,"here"),e.k0s()(),e.EFF(12," to learn more about Core Lightning offers."),e.k0s()(),e.j41(13,"h4",22),e.EFF(14,"Description"),e.k0s(),e.j41(15,"span"),e.EFF(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.k0s(),e.j41(17,"h4",22),e.EFF(18,"Links"),e.k0s(),e.j41(19,"span")(20,"a",23),e.EFF(21,"Core lightning Bolt12"),e.k0s()(),e.nrm(22,"mat-divider",24),e.j41(23,"div",25),e.nrm(24,"fa-icon",4),e.j41(25,"span"),e.EFF(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.k0s()(),e.j41(27,"mat-slide-toggle",26),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(2);return e.DH7(ne.enableOffers,J)||(ne.enableOffers=J),p.Njj(J)}),e.bIt("change",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onUpdateFeature())}),e.EFF(28),e.k0s()()}if(2&z){const I=e.XpG(2);e.R7$(3),e.Y8G("icon",I.faInfoCircle),e.R7$(19),e.Y8G("inset",!0),e.R7$(2),e.Y8G("icon",I.faExclamationTriangle),e.R7$(3),e.R50("ngModel",I.enableOffers),e.R7$(),e.SpI("Enable Offers ",I.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"")}}function j0(z,N){if(1&z&&(e.j41(0,"div")(1,"div",29),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"experimental-dual-fund"),e.k0s(),e.EFF(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.j41(8,"strong")(9,"a",30),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about Core Lightning Liquidity Ads."),e.k0s()()()),2&z){const I=e.XpG(3);e.R7$(2),e.Y8G("icon",I.faExclamationTriangle)}}function Sf(z,N){if(1&z&&(e.j41(0,"mat-option",47),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI(" ",e.bMT(2,2,I.id)," ")}}function Tf(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(4);e.R7$(),e.SpI("",I.selPolicyType.placeholder," is required.")}}function u3(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(4);e.R7$(),e.Lme("",I.selPolicyType.placeholder," must be greater than or equal to ",I.selPolicyType.min,".")}}function Df(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(4);e.R7$(),e.Lme("",I.selPolicyType.placeholder," must be less than or equal to ",I.selPolicyType.max,".")}}function Af(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Lease base fee is required."),e.k0s())}function h3(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Lease base basis is required."),e.k0s())}function Bm(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Max channel routing base fee is required."),e.k0s())}function Lf(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Max channel routing fee rate is required."),e.k0s())}function If(z,N){if(1&z&&(e.j41(0,"h4",48)(1,"span",49),e.EFF(2),e.k0s()()),2&z){const I=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,d3,!!I.updateMsg.error,!!I.updateMsg.data)),e.R7$(),e.SpI(" ",I.updateMsg.error&&""!==I.updateMsg.error?`Error: ${I.updateMsg.error||"Unknown Error"}`:I.updateMsg.data&&""!==I.updateMsg.data?I.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function ud(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",31)(1,"div",32),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(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.k0s()(),e.j41(5,"div",33)(6,"mat-form-field",34)(7,"mat-label"),e.EFF(8,"Policy"),e.k0s(),e.j41(9,"mat-select",35),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.selPolicyType,J)||(ne.selPolicyType=J),p.Njj(J)}),e.bIt("selectionChange",function(){p.eBV(I);const J=e.XpG(3);return p.Njj(J.policyMod=null)}),e.DNE(10,Sf,3,4,"mat-option",36),e.k0s()(),e.j41(11,"mat-form-field",37)(12,"mat-label"),e.EFF(13),e.k0s(),e.j41(14,"input",38,1),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.policyMod,J)||(ne.policyMod=J),p.Njj(J)}),e.k0s(),e.j41(16,"mat-hint"),e.EFF(17),e.k0s(),e.DNE(18,Tf,2,1,"mat-error",27)(19,u3,2,2,"mat-error",27)(20,Df,2,2,"mat-error",27),e.k0s()(),e.j41(21,"div",33)(22,"mat-form-field",37)(23,"mat-label"),e.EFF(24,"Lease Base Fee (Sats)"),e.k0s(),e.j41(25,"input",39),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.lease_fee_base_sat,J)||(ne.lease_fee_base_sat=J),p.Njj(J)}),e.k0s(),e.DNE(26,Af,2,0,"mat-error",27),e.k0s(),e.j41(27,"mat-form-field",37)(28,"mat-label"),e.EFF(29,"Lease Base Basis (bps)"),e.k0s(),e.j41(30,"input",40),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.lease_fee_basis,J)||(ne.lease_fee_basis=J),p.Njj(J)}),e.k0s(),e.DNE(31,h3,2,0,"mat-error",27),e.k0s()(),e.j41(32,"div",33)(33,"mat-form-field",37)(34,"mat-label"),e.EFF(35,"Max Channel Routing Base Fee (Sats)"),e.k0s(),e.j41(36,"input",41),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.channelFeeMaxBaseSat,J)||(ne.channelFeeMaxBaseSat=J),p.Njj(J)}),e.k0s(),e.DNE(37,Bm,2,0,"mat-error",27),e.k0s(),e.j41(38,"mat-form-field",37)(39,"mat-label"),e.EFF(40,"Max Channel Routing Fee Rate (ppm)"),e.k0s(),e.j41(41,"input",42),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.channelFeeMaxProportional,J)||(ne.channelFeeMaxProportional=J),p.Njj(J)}),e.k0s(),e.DNE(42,Lf,2,0,"mat-error",27),e.k0s()(),e.DNE(43,If,3,5,"h4",43),e.j41(44,"div",44)(45,"button",45),e.bIt("click",function(){p.eBV(I);const J=e.XpG(3);return p.Njj(J.onResetPolicy())}),e.EFF(46,"Reset"),e.k0s(),e.j41(47,"button",46),e.bIt("click",function(){p.eBV(I);const J=e.XpG(3);return p.Njj(J.onUpdateFundingPolicy())}),e.EFF(48,"Update"),e.k0s()()()}if(2&z){const I=e.XpG(3);e.R7$(2),e.Y8G("icon",I.faExclamationTriangle),e.R7$(7),e.R50("ngModel",I.selPolicyType),e.R7$(),e.Y8G("ngForOf",I.policyTypes),e.R7$(3),e.JRh(I.selPolicyType.placeholder),e.R7$(),e.Y8G("step","fixed"===I.selPolicyType.id?1e3:10)("min",I.selPolicyType.min)("max",I.selPolicyType.max),e.R50("ngModel",I.policyMod),e.R7$(3),e.E5c("",I.selPolicyType.placeholder," should be between ",I.selPolicyType.min," and ",I.selPolicyType.max),e.R7$(),e.Y8G("ngIf",!I.policyMod),e.R7$(),e.Y8G("ngIf",I.policyModI.selPolicyType.max),e.R7$(5),e.R50("ngModel",I.lease_fee_base_sat),e.R7$(),e.Y8G("ngIf",!I.lease_fee_base_sat),e.R7$(4),e.R50("ngModel",I.lease_fee_basis),e.R7$(),e.Y8G("ngIf",!I.lease_fee_basis),e.R7$(5),e.R50("ngModel",I.channelFeeMaxBaseSat),e.R7$(),e.Y8G("ngIf",!I.channelFeeMaxBaseSat),e.R7$(4),e.R50("ngModel",I.channelFeeMaxProportional),e.R7$(),e.Y8G("ngIf",!I.channelFeeMaxProportional),e.R7$(),e.Y8G("ngIf",I.flgUpdateCalled)}}function f3(z,N){if(1&z&&(e.j41(0,"form",19,0),e.DNE(2,j0,12,1,"div",27)(3,ud,49,23,"div",28),e.k0s()),2&z){const I=e.XpG(2);e.R7$(2),e.Y8G("ngIf",!I.features[1].enabled),e.R7$(),e.Y8G("ngIf",I.features[1].enabled)}}function W0(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-expansion-panel",10),e.bIt("opened",function(){const J=p.eBV(I).index,ne=e.XpG();return p.Njj(ne.onPanelExpanded(J))}),e.j41(1,"mat-expansion-panel-header")(2,"mat-panel-title",11)(3,"h4",12),e.EFF(4),e.k0s(),e.j41(5,"h4",12),e.DNE(6,Bd,1,0,"span",13)(7,wf,1,0,"span",14),e.EFF(8),e.k0s()()(),e.j41(9,"div",15),e.DNE(10,D1,29,5,"form",16)(11,f3,4,2,"form",16),e.k0s()()}if(2&z){const I=N.$implicit,H=N.index;e.Y8G("expanded",!1),e.R7$(4),e.JRh(I.name),e.R7$(2),e.Y8G("ngIf",I.enabled),e.R7$(),e.Y8G("ngIf",!I.enabled),e.R7$(),e.SpI(" ",I.enabled?"Enabled":"Disabled"," "),e.R7$(2),e.Y8G("ngIf",0===H),e.R7$(),e.Y8G("ngIf",1===H)}}let A1=(()=>{var z;class N{constructor(H,J,ne,ot){this.logger=H,this.store=J,this.dataService=ne,this.commonService=ot,this.faInfoCircle=Ti.iW_,this.faExclamationTriangle=Ti.zpE,this.faCode=Ti.jTw,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=Mt.ul,this.selPolicyType=Mt.ul[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.dataService.listConfigs().pipe((0,mi.Q)(this.unSubs[0])).subscribe({next:H=>{this.logger.info("Received List Configs: "+JSON.stringify(H)),this.features[1].enabled=!!H.configs["experimental-dual-fund"].set},error:H=>{this.logger.error("List Configs Error: "+JSON.stringify(H)),this.features[1].enabled=!1}}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.selNode=H,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(s0.Al).pipe((0,mi.Q)(this.unSubs[2])).subscribe(H=>{this.policyTypes[2].max=H.balance.totalBalance||1e3})}onPanelExpanded(H){1===H&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,mi.Q)(this.unSubs[3])).subscribe(J=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(J)),this.fundingPolicy=J,this.fundingPolicy.policy&&(this.selPolicyType=Mt.ul.find(ne=>ne.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,Ui.T$)({payload:this.selNode}))}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,mi.Q)(this.unSubs[4])).subscribe({next:H=>{this.logger.info(H),this.fundingPolicy=H,this.updateMsg={data:"Compact Lease: "+H.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:H=>{this.logger.error(H),this.updateMsg={error:this.commonService.extractErrorMessage(H,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?Mt.ul.find(H=>H.id===this.fundingPolicy.policy)||this.policyTypes[0]:Mt.ul[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(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il),e.rXU(H0.u),e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-experimental-settings"]],standalone:!1,decls:13,vars:3,consts:[["form","ngForm"],["plcMod","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[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"],["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,"opened","expanded"],["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,"ngModelChange","change","ngModel"],[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"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","name","policy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModelChange","step","min","max","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModelChange","ngModel"],["matInput","","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModelChange","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModelChange","ngModel"],["matInput","","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModelChange","ngModel"],["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(J,ne){1&J&&(e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(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.k0s()(),e.j41(5,"form",5,0)(7,"div",6),e.nrm(8,"fa-icon",7),e.j41(9,"span",8),e.EFF(10,"Features"),e.k0s()(),e.j41(11,"mat-accordion"),e.DNE(12,W0,12,7,"mat-expansion-panel",9),e.k0s()()()),2&J&&(e.R7$(2),e.Y8G("icon",ne.faInfoCircle),e.R7$(6),e.Y8G("icon",ne.faCode),e.R7$(4),e.Y8G("ngForOf",ne.features))},dependencies:[o.YU,o.Sq,o.bT,_i.qT,_i.me,_i.Q0,_i.BC,_i.cb,_i.YS,_i.VZ,_i.zX,_i.vS,_i.cV,cr.aY,tr.$z,ss.BS,ss.GK,ss.Z2,ss.WN,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,Wi.q,at.DJ,at.sA,at.UI,ol.PW,al.VO,ic.wT,xd.sG,go.Ld,Xl.N,Fd.z,c3.V,o.PV],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})(),X0=(()=>{var z;class N{constructor(){}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-no-service-found"]],standalone:!1,decls:6,vars:0,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"]],template:function(J,ne){1&J&&(e.j41(0,"div",0)(1,"mat-card")(2,"mat-card-content",1)(3,"div",2)(4,"div",3),e.EFF(5,"No Service Found!"),e.k0s()()()()())},dependencies:[De.RN,De.m2,at.DJ,at.sA],encapsulation:2}))}return z(),N})();const K0=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([l.e(193),l.e(190)]).then(l.bind(l,39190)).then(z=>z.LNDModule),canActivate:[(0,vo.q_)()]},{path:"cln",loadChildren:()=>Promise.all([l.e(193),l.e(853)]).then(l.bind(l,94853)).then(z=>z.CLNModule),canActivate:[(0,vo.q_)()]},{path:"ecl",loadChildren:()=>Promise.all([l.e(193),l.e(17)]).then(l.bind(l,89017)).then(z=>z.ECLModule),canActivate:[(0,vo.q_)()]},{path:"settings",component:Wa,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:nd,canActivate:[(0,vo.q_)()]},{path:"auth",component:vr,canActivate:[(0,vo.q_)()]},{path:"bconfig",component:t0,canActivate:[(0,vo.q_)()]}]},{path:"config",component:Th,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:Cd,canActivate:[(0,vo.q_)()]},{path:"pglayout",component:V2,canActivate:[(0,vo.q_)()]},{path:"services",component:Ph,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:d1,canActivate:[(0,vo.q_)()]},{path:"boltz",component:W2,canActivate:[(0,vo.q_)()]},{path:"noservice",component:X0}]},{path:"experimental",component:A1,canActivate:[(0,vo.q_)()]},{path:"lnconfig",component:id,canActivate:[(0,vo.q_)()]}]},{path:"services",component:$4,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Z2},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:B0}]},{path:"help",component:Mf},{path:"login",component:Hc},{path:"error",component:Nd},{path:"**",component:G0.X}],Y0=co.iI.forRoot(K0,{onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"});var L1=l(19029),Ou=l(9881),m3=l(34330),I1=l(9183),k1=l(90882),Pu=l(55911),Yl=l(72279),Pl=l(47358);const Dc={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/lnd/home",userPersona:Mt.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/lnd/onchain",userPersona:Mt.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/lnd/connections",userPersona:Mt.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/lnd/connections",userPersona:Mt.HW.ALL,children:[]},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/lnd/transactions",userPersona:Mt.HW.ALL,children:[]},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/lnd/routing",userPersona:Mt.HW.ALL,children:[]},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/lnd/reports",userPersona:Mt.HW.ALL,children:[]},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/lnd/graph",userPersona:Mt.HW.ALL,children:[]},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ti.pCJ,link:"/lnd/messages",userPersona:Mt.HW.ALL,children:[]},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:Ti.cbP,link:"/lnd/channelbackup",userPersona:Mt.HW.ALL,children:[]},{id:38,parentId:3,name:"Network",iconType:"FA",icon:Ti.qFF,link:"/lnd/network",userPersona:Mt.HW.OPERATOR,children:[]},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:Ti.D6w,link:"/lnd/network",userPersona:Mt.HW.MERCHANT,children:[]}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ti.qIE,link:"/services/loop",userPersona:Mt.HW.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:Ti.C8j,link:"/services/loop",userPersona:Mt.HW.ALL,children:[]},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Mt.HW.ALL,children:[]}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:Mt.HW.ALL,children:[]},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:Mt.HW.ALL,children:[]}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/cln/home",userPersona:Mt.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/cln/onchain",userPersona:Mt.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/cln/connections",userPersona:Mt.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/cln/connections",userPersona:Mt.HW.ALL,children:[]},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:Ti.e4L,link:"/cln/liquidityads",userPersona:Mt.HW.ALL,children:[]},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/cln/transactions",userPersona:Mt.HW.ALL,children:[]},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/cln/routing",userPersona:Mt.HW.ALL,children:[]},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/cln/reports",userPersona:Mt.HW.ALL,children:[]},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/cln/graph",userPersona:Mt.HW.ALL,children:[]},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ti.pCJ,link:"/cln/messages",userPersona:Mt.HW.ALL,children:[]},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:Ti.WKo,link:"/cln/rates",userPersona:Mt.HW.OPERATOR,children:[]},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:Ti.D6w,link:"/cln/rates",userPersona:Mt.HW.MERCHANT,children:[]}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ti.qIE,link:"/services/loop",userPersona:Mt.HW.ALL,children:[{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Mt.HW.ALL,children:[]}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:Mt.HW.ALL,children:[]},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:Mt.HW.ALL,children:[]}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/ecl/home",userPersona:Mt.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/ecl/onchain",userPersona:Mt.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/ecl/connections",userPersona:Mt.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/ecl/connections",userPersona:Mt.HW.ALL,children:[]},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/ecl/transactions",userPersona:Mt.HW.ALL,children:[]},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/ecl/routing",userPersona:Mt.HW.ALL,children:[]},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/ecl/reports",userPersona:Mt.HW.ALL,children:[]},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/ecl/graph",userPersona:Mt.HW.ALL,children:[]}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:Mt.HW.ALL,children:[]},{id:5,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:Mt.HW.ALL,children:[]}]};function kf(z,N){if(1&z&&(e.j41(0,"mat-option",12),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I.index),e.R7$(),e.Lme(" ",I.lnNode," (",I.lnImplementation,") ")}}function Rf(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-select",10),e.bIt("selectionChange",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onNodeSelectionChange(J.value))}),e.j41(1,"perfect-scrollbar"),e.DNE(2,kf,2,3,"mat-option",11),e.k0s()()}if(2&z){const I=e.XpG();e.Y8G("value",I.selConfigNodeIndex),e.R7$(2),e.Y8G("ngForOf",I.appConfig.nodes)}}function Of(z,N){if(1&z&&(e.j41(0,"span",21),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.XpG(2);const H=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet","boltzIconBlock"===I.icon?H:null)}}function Pf(z,N){if(1&z&&e.nrm(0,"fa-icon",23),2&z){const I=e.XpG().$implicit;e.Y8G("icon",I.icon)}}function R1(z,N){if(1&z&&(e.j41(0,"mat-icon",24),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I.icon)}}function Nf(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-tree-node",15)(1,"div",16),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG(2);return p.Njj(ne.onChildNavClicked(J))}),e.j41(2,"div",17),e.DNE(3,Of,2,1,"span",18)(4,Pf,1,1,"fa-icon",19)(5,R1,2,1,"mat-icon",20),e.j41(6,"span"),e.EFF(7),e.k0s()()()()}if(2&z){const I=N.$implicit;e.Y8G("routerLink",e.mNQ(I.link)),e.R7$(3),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(),e.Y8G("ngIf",!I.iconType),e.R7$(2),e.JRh(I.name)}}function Ff(z,N){if(1&z&&(e.j41(0,"span",32),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",I.icon)}}function Bf(z,N){if(1&z&&e.nrm(0,"fa-icon",23),2&z){const I=e.XpG().$implicit;e.Y8G("icon",I.icon)}}function Q0(z,N){if(1&z&&(e.j41(0,"mat-icon",24),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I.icon)}}function Fu(z,N){if(1&z&&(e.j41(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.DNE(3,Ff,2,1,"span",28)(4,Bf,1,1,"fa-icon",19)(5,Q0,2,1,"mat-icon",20),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.j41(8,"button",29)(9,"mat-icon"),e.EFF(10),e.k0s()()(),e.j41(11,"div",30),e.eu8(12,31),e.k0s()()),2&z){const I=N.$implicit,H=e.XpG(2);e.R7$(3),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(),e.Y8G("ngIf",!I.iconType),e.R7$(2),e.JRh(I.name),e.R7$(),e.BMQ("aria-label","toggle "+I.name),e.R7$(2),e.JRh(H.treeControlNested.isExpanded(I)?"arrow_drop_up":"arrow_drop_down"),e.R7$(),e.AVh("tree-children-invisible",!H.treeControlNested.isExpanded(I))}}function Bu(z,N){if(1&z&&(e.j41(0,"mat-tree",7,1),e.DNE(2,Nf,8,6,"mat-tree-node",13)(3,Fu,13,8,"mat-nested-tree-node",14),e.k0s()),2&z){const I=e.XpG();e.Y8G("dataSource",I.navMenus)("treeControl",I.treeControlNested),e.R7$(3),e.Y8G("matTreeNodeDefWhen",I.hasChild)}}function zf(z,N){if(1&z&&(e.j41(0,"span",37),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",I.icon)}}function Uf(z,N){if(1&z&&e.nrm(0,"fa-icon",38),2&z){const I=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(I.name))("icon",I.icon)}}function Vf(z,N){if(1&z&&(e.j41(0,"mat-icon",39),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(I.name)),e.R7$(),e.JRh(I.icon)}}function $0(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-tree-node",33),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.onShowData(J))}),e.DNE(1,zf,2,1,"span",34)(2,Uf,1,3,"fa-icon",35)(3,Vf,2,3,"mat-icon",36),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&z){const I=N.$implicit;e.R7$(),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(),e.Y8G("ngIf",!I.iconType),e.R7$(2),e.JRh(I.name)}}function O1(z,N){if(1&z&&(e.j41(0,"span",32),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",I.icon)}}function Gf(z,N){if(1&z&&e.nrm(0,"fa-icon",38),2&z){const I=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(I.name))("icon",I.icon)}}function p3(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-tree-node",33),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG(2);return p.Njj(ne.onClick(J))}),e.DNE(1,O1,2,1,"span",28)(2,Gf,1,3,"fa-icon",35),e.j41(3,"span"),e.EFF(4),e.k0s()()}if(2&z){const I=N.$implicit;e.R7$(),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(2),e.JRh(I.name)}}function Hf(z,N){if(1&z&&(e.j41(0,"mat-tree",7),e.DNE(1,p3,5,3,"mat-tree-node",8),e.k0s()),2&z){const I=e.XpG();e.Y8G("dataSource",I.navMenusLogout)("treeControl",I.treeControlLogout)}}function Z0(z,N){1&z&&(p.qSk(),e.j41(0,"svg",40)(1,"g",41)(2,"g",42),e.nrm(3,"circle",43)(4,"path",44)(5,"path",45),e.k0s()()())}let g3=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.logger=H,this.commonService=J,this.sessionService=ne,this.store=ot,this.actions=jt,this.rtlEffects=$t,this.ChildNavClicked=new e.bkB,this.faEject=Ti.njF,this.faEye=Ti.pS3,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:Ti.njF,children:[]}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:Ti.pS3,children:[]}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=Mt.HW,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B],this.treeControlNested=new Yl.XO(Tn=>Tn.children),this.treeControlLogout=new Yl.XO(Tn=>Tn.children),this.treeControlShowData=new Yl.XO(Tn=>Tn.children),this.navMenus=new Pl.Zh,this.navMenusLogout=new Pl.Zh,this.navMenusShowData=new Pl.Zh,this.hasChild=(Tn,ii)=>!!ii.children&&ii.children.length>0,this.version=Mt.xv,Dc.LNDChildren&&200===Dc.LNDChildren[Dc.LNDChildren.length-1].id&&Dc.LNDChildren.pop(),this.navMenus.data=Dc.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const H=this.sessionService.getItem("token");this.showLogout=!!H,this.flgLoading=!!H,this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[0])).subscribe(J=>{this.appConfig=J}),this.store.select(Ra.Az).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{if(this.information=J.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 ne=this.information.chains[0];this.informationChain.chain=ne.chain,this.informationChain.network=ne.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=J.selNode,this.selConfigNodeIndex=+(J.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(J)}),this.sessionService.watchSession().pipe((0,mi.Q)(this.unSubs[2])).subscribe(J=>{this.showLogout=!!J.token,this.flgLoading=!!J.token}),this.actions.pipe((0,mi.Q)(this.unSubs[3]),(0,za.p)(J=>J.type===Mt.aU.LOGOUT)).subscribe(J=>{this.showLogout=!1})}onClick(H){"Logout"===H.name&&(this.store.dispatch((0,Ui.I1)({payload:{data:{type:Mt.A$.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,mi.Q)(this.unSubs[4])).subscribe(J=>{J&&(this.showLogout=!1,this.store.dispatch((0,Ui.ri)({payload:""})))})),this.ChildNavClicked.emit(H)}onChildNavClicked(H){this.ChildNavClicked.emit(H)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){const H=JSON.parse(JSON.stringify(Dc.LNDChildren));this.navMenus.data=H?.filter(J=>J.children&&J.children.length?(J.children=J.children?.filter(ne=>(ne.userPersona===Mt.HW.ALL||ne.userPersona===this.selNode.settings.userPersona)&&"/services/loop"!==ne.link&&"/services/boltz"!==ne.link||"/services/loop"===ne.link&&this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()||"/services/boltz"===ne.link&&this.selNode.settings.boltzServerUrl&&""!==this.selNode.settings.boltzServerUrl.trim()),J.children.length>0):J.userPersona===Mt.HW.ALL||J.userPersona===this.selNode.settings.userPersona)}loadCLNMenu(){const H=JSON.parse(JSON.stringify(Dc.CLNChildren));this.navMenus.data=H?.filter(J=>J.children&&J.children.length?(J.children=J.children?.filter(ne=>(ne.userPersona===Mt.HW.ALL||ne.userPersona===this.selNode.settings.userPersona)&&(!ne.link.includes("/services")||"/services/peerswap"===ne.link&&this.selNode.settings.enablePeerswap||"/services/boltz"===ne.link&&this.selNode.settings.boltzServerUrl&&""!==this.selNode.settings.boltzServerUrl.trim())),J.children.length>0):J.userPersona===Mt.HW.ALL||J.userPersona===this.selNode.settings.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Dc.ECLChildren))}onShowData(H){this.store.dispatch((0,Ui.OP)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(H){const J=this.selConfigNodeIndex;this.selConfigNodeIndex=H;const ne=this.appConfig.nodes.find(ot=>+ot.index===H);this.store.dispatch((0,Ui.Qi)({payload:{uiMessage:Mt.MZ.UPDATE_SELECTED_NODE,prevLnNodeIndex:+J,currentLnNode:ne||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(zi.Q),e.rXU(vi.il),e.rXU(Vo.En),e.rXU(Ko.H))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-side-navigation"]],viewQuery:function(J,ne){if(1&J&&e.GBs(Pl.lQ,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.tree=ot.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},standalone:!1,decls:12,vars:5,consts:[["boltzIconBlock",""],["tree",""],["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"],[1,"m-2","multi-node-select",3,"selectionChange","value"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["routerLinkActive","active-link","matTreeNodeToggle","",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["routerLinkActive","active-link","matTreeNodeToggle","",3,"routerLink"],["tabindex","2",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2","fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",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","80","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","20","mat-icon-button","","fxLayoutAlign","end center",1,"btn-icon-small"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],[3,"click"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"matTooltip","icon",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"fa-icon-small","mr-2"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"matTooltip","icon"],["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(J,ne){1&J&&(e.j41(0,"div",2)(1,"div",3),e.DNE(2,Rf,3,2,"mat-select",4),e.nrm(3,"mat-divider",5),e.DNE(4,Bu,4,3,"mat-tree",6),e.nrm(5,"mat-divider",5),e.j41(6,"mat-tree",7),e.DNE(7,$0,6,4,"mat-tree-node",8),e.k0s()(),e.j41(8,"div",9),e.DNE(9,Hf,2,2,"mat-tree",6),e.k0s()(),e.DNE(10,Z0,6,0,"ng-template",null,0,e.C5r)),2&J&&(e.R7$(2),e.Y8G("ngIf",ne.appConfig.nodes.length>1),e.R7$(2),e.Y8G("ngIf",null==ne.selNode.settings?null:ne.selNode.settings.lnServerUrl),e.R7$(2),e.Y8G("dataSource",ne.navMenusShowData)("treeControl",ne.treeControlShowData),e.R7$(3),e.Y8G("ngIf",ne.showLogout))},dependencies:[o.Sq,o.bT,o.T3,cr.aY,sc.iY,Oc.An,Wi.q,Pl.q1,Pl.yI,Pl.pO,Pl.lQ,Pl.d6,Pl.wx,at.DJ,at.sA,at.UI,al.VO,ic.wT,o1.oV,co.Wk,co.wQ,go.ZF,go.Ld],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}))}return z(),N})();var zu=l(59115);function J0(z,N){if(1&z&&(e.j41(0,"p",14),e.nrm(1,"fa-icon",3),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faCode),e.R7$(2),e.SpI("API Version: ",null==I.information?null:I.information.api_version)}}function _3(z,N){if(1&z&&(e.j41(0,"p",15),e.nrm(1,"fa-icon",3),e.j41(2,"span",16),e.EFF(3,"Settings"),e.k0s()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faUserCog)}}function zd(z,N){if(1&z&&(e.j41(0,"p",17),e.nrm(1,"fa-icon",3),e.j41(2,"span",18),e.EFF(3,"Help"),e.k0s()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faQuestion)}}function jf(z,N){if(1&z){const I=e.RV6();e.j41(0,"p",19),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onClick())}),e.nrm(1,"fa-icon",3),e.j41(2,"span"),e.EFF(3,"Logout"),e.k0s()()}if(2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faEject)}}let v3=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.logger=H,this.sessionService=J,this.store=ne,this.rtlEffects=ot,this.actions=jt,this.faUserCog=Ti.McB,this.faCodeBranch=Ti.Xbc,this.faCode=Ti.jTw,this.faCog=Ti.dB,this.faQuestion=Ti.EvL,this.faEject=Ti.njF,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B],this.version=Mt.xv}ngOnInit(){this.store.select(Ra.N).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{if(this.information=H,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 J=this.information.chains[0];this.informationChain.chain=J.chain,this.informationChain.network=J.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(H)}),this.sessionService.watchSession().pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.showLogout=!!H.token,this.flgLoading=!!H.token}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(H=>H.type===Mt.aU.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Ui.I1)({payload:{data:{type:Mt.A$.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,mi.Q)(this.unSubs[3])).subscribe(H=>{H&&(this.showLogout=!1,this.store.dispatch((0,Ui.ri)({payload:""})))})}onDonate(){window.open("https://www.ridethelightning.info/donate/","_blank")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(zi.Q),e.rXU(vi.il),e.rXU(Ko.H),e.rXU(Vo.En))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-top-menu"]],standalone:!1,decls:20,vars:8,consts:[["topMenu","matMenu"],[1,"top-menu",3,"overlapTrigger"],["tabindex","1","mat-menu-item","",1,"cursor-default"],[1,"fa-icon-small","mr-1",3,"icon"],["tabindex","2","mat-menu-item","","class","cursor-default",4,"ngIf"],["tabindex","3","mat-menu-item","","routerLink","/settings",4,"ngIf"],["tabindex","4","mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","","tabindex","5","fxLayoutAlign","start center",3,"click"],["fill","currentColor","version","1.1","viewBox","0 0 64 64",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"svg-donation"],["d","M62.519,17.698l-12-14c-0.659-0.768-1.786-0.923-2.628-0.362l-8.712,5.808l-16.688,4.172 c-2.485,0.622-4.537,2.412-5.487,4.791L12.21,30.09C10.206,32.512,9,35.618,9,39c0,2.974,0.939,5.73,2.527,8H5 c-2.206,0-4,1.794-4,4v6c0,2.206,1.794,4,4,4h36c2.206,0,4-1.794,4-4v-6c0-2.206-1.794-4-4-4h-6.522 c0.375-0.535,0.713-1.1,1.013-1.691l4.291-2.452l3.378-0.965c2.619-0.749,4.903-2.269,6.604-4.395 c1.39-1.736,2.317-3.813,2.682-6.006l0.412-2.472l9.48-8.532C63.145,19.76,63.225,18.523,62.519,17.698z M34.428,30.929 c-1.487-2.094-3.517-3.732-5.842-4.75L29.207,25h7.058l0.588,4.11L34.428,30.929z M31.225,33.331l-0.373,0.28 c-1.772,1.329-2.889,3.273-3.146,5.473c-0.257,2.2,0.382,4.348,1.8,6.048l0.667,0.8C28.315,47.845,25.742,49,23,49 c-5.514,0-10-4.486-10-10s4.486-10,10-10C26.299,29,29.376,30.663,31.225,33.331z M41,57H5v-6h10.826c2.101,1.261,4.55,2,7.174,2 c2.571,0,5.041-0.723,7.176-2H41V57z M49.662,26.513c-0.336,0.303-0.561,0.711-0.635,1.158L48.5,30.833 c-0.253,1.521-0.896,2.96-1.86,4.165c-1.18,1.475-2.763,2.529-4.579,3.048l-3.61,1.031c-0.155,0.044-0.303,0.106-0.443,0.187 l-5.541,3.166c-0.63-0.826-0.909-1.843-0.788-2.882c0.128-1.1,0.687-2.072,1.573-2.737l6.001-4.5 c1.169-0.877,1.767-2.32,1.56-3.766l-0.587-4.11C39.946,22.477,38.244,21,36.266,21h-7.059c-1.489,0-2.845,0.818-3.539,2.136 l-1.037,1.969C24.093,25.041,23.549,25,23,25c-1.685,0-3.294,0.314-4.791,0.862l2.509-6.271c0.476-1.189,1.501-2.084,2.743-2.395 l17.024-4.256c0.223-0.056,0.434-0.149,0.625-0.276l7.525-5.017l9.576,11.172L49.662,26.513z"],["tabindex","6","mat-menu-item","",3,"click",4,"ngIf"],["tabindex","7","mat-icon-button","",3,"matMenuTriggerFor"],["alt","RTL Logo","src","assets/images/RTL-Horse-BY.svg",1,"rtl-log-top"],[1,"rtl-logo-dropdown","color-white"],["tabindex","2","mat-menu-item","",1,"cursor-default"],["tabindex","3","mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["tabindex","4","mat-menu-item","","routerLink","/help"],["routerLink","/help"],["tabindex","6","mat-menu-item","",3,"click"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"mat-menu",1,0)(2,"p",2),e.nrm(3,"fa-icon",3),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.DNE(6,J0,4,2,"p",4)(7,_3,4,1,"p",5)(8,zd,4,1,"p",6),e.j41(9,"p",7),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onDonate())}),p.qSk(),e.j41(10,"svg",8)(11,"g"),e.nrm(12,"path",9),e.k0s()(),p.joV(),e.j41(13,"span"),e.EFF(14,"Donate"),e.k0s()(),e.DNE(15,jf,4,1,"p",10),e.k0s(),e.j41(16,"button",11),e.nrm(17,"img",12),e.j41(18,"mat-icon",13),e.EFF(19,"arrow_drop_down"),e.k0s()()}if(2&J){const ot=e.sdS(1);e.Y8G("overlapTrigger",!1),e.R7$(3),e.Y8G("icon",ne.faCodeBranch),e.R7$(2),e.SpI("Version: ",ne.version),e.R7$(),e.Y8G("ngIf",null==ne.information?null:ne.information.api_version),e.R7$(),e.Y8G("ngIf",ne.showLogout),e.R7$(),e.Y8G("ngIf",ne.showLogout),e.R7$(7),e.Y8G("ngIf",ne.showLogout),e.R7$(),e.Y8G("matMenuTriggerFor",ot)}},dependencies:[o.bT,cr.aY,sc.iY,Oc.An,zu.kk,zu.fb,zu.Cp,at.sA,co.Wk],styles:[".mat-mdc-icon-button img.rtl-log-top{width:2rem;height:2rem}.mat-icon.material-icons.mat-icon-no-color.rtl-logo-dropdown{height:2rem}\n"],encapsulation:2}))}return z(),N})();const P1=["sideNavigation"],N1=["sideNavContent"],Um=(z,N)=>[z,N];function Wf(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.sideNavToggle())}),e.j41(1,"mat-icon",16),e.EFF(2,"menu"),e.k0s()()}if(2&z){const I=e.XpG();e.Y8G("matTooltip",I.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",I.smallScreen)}}function Uu(z,N){1&z&&(p.qSk(),e.nrm(0,"path",21))}function q0(z,N){1&z&&(p.qSk(),e.nrm(0,"path",22))}function e2(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.flgSidenavPinned=!J.flgSidenavPinned)}),p.qSk(),e.j41(1,"svg",18),e.DNE(2,Uu,1,0,"path",19)(3,q0,1,0,"path",20),e.k0s()()}if(2&z){const I=e.XpG();e.Y8G("matTooltip",I.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.R7$(2),e.Y8G("ngIf",!I.flgSidenavPinned),e.R7$(),e.Y8G("ngIf",I.flgSidenavPinned)}}function Vu(z,N){if(1&z&&(e.j41(0,"span",23),e.EFF(1),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.JRh(I.information.alias?"RTL - "+I.information.alias:"RTL")}}function y3(z,N){if(1&z&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.JRh(I.information.alias?"Ride The Lightning - "+I.information.alias:"Ride The Lightning")}}function b3(z,N){1&z&&(e.j41(0,"div",25),e.nrm(1,"mat-spinner",26),e.j41(2,"h4"),e.EFF(3,"Loading RTL..."),e.k0s()())}let Gu=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t,Tn,ii,Qn){this.logger=H,this.commonService=J,this.store=ne,this.actions=ot,this.userIdle=jt,this.router=$t,this.sessionService=Tn,this.breakpointObserver=ii,this.renderer=Qn,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 bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.router.events.subscribe(H=>{H instanceof ja.wF&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([hr.Rp.XSmall,hr.Rp.TabletPortrait,hr.Rp.Small,hr.Rp.Medium,hr.Rp.Large,hr.Rp.XLarge]).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{H.breakpoints[hr.Rp.XSmall]?(this.commonService.setScreenSize(Mt.f7.XS),this.smallScreen=!0):H.breakpoints[hr.Rp.TabletPortrait]?(this.commonService.setScreenSize(Mt.f7.SM),this.smallScreen=!0):H.breakpoints[hr.Rp.Small]||H.breakpoints[hr.Rp.Medium]?(this.commonService.setScreenSize(Mt.f7.MD),this.smallScreen=!1):H.breakpoints[hr.Rp.Large]?(this.commonService.setScreenSize(Mt.f7.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Mt.f7.XL),this.smallScreen=!1)}),this.store.dispatch((0,Ui.NU)()),this.accessKey=this.readAccessKey()||"",this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1),this.selNode=H}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[2])).subscribe(H=>{this.appConfig=H}),this.store.select(Ra.N).pipe((0,mi.Q)(this.unSubs[3])).subscribe(H=>{this.information=H,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,mi.Q)(this.unSubs[4]),(0,za.p)(H=>H.type===Mt.aU.SET_APPLICATION_SETTINGS||H.type===Mt.aU.LOGIN||H.type===Mt.aU.LOGOUT)).subscribe(H=>{H.type===Mt.aU.SET_APPLICATION_SETTINGS&&(this.sessionService.getItem("token")||(H.payload.disableAuth?this.store.dispatch((0,Ui.iD)({payload:{password:"disabledAuth",defaultPassword:!1}})):+H.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,Ui.iD)({payload:{password:vc(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"],{state:{logoutReason:"Access key too short. It should be at least 32 characters long."}}))),H.type===Mt.aU.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)),H.type===Mt.aU.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,mi.Q)(this.unSubs[5])).subscribe(H=>{this.logger.info("Counting Down: "+(11-H))}),this.userIdle.onTimeout().pipe((0,mi.Q)(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,Ui.Jh)()),this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Ui.ri)({payload:"Logging Out. Time limit exceeded for session inactivity."})))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const H=window.location.href;return H.includes("access-key=")?H.substring(H.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(H){this.smallScreen&&(this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.close())}backdropClicked(){(!this.flgSidenavPinned||this.smallScreen)&&(this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.close())}copiedText(H){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+H)}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(Vo.En),e.rXU(vd),e.rXU(ja.Ix),e.rXU(zi.Q),e.rXU(m3.Q),e.rXU(e.sFG))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-app"]],viewQuery:function(J,ne){if(1&J&&(e.GBs(P1,5),e.GBs(N1,5)),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.sideNavigation=ot.first),e.mGM(ot=e.lsd())&&(ne.sideNavContent=ot.first)}},standalone:!1,decls:22,vars:15,consts:[["sideNavigation",""],["sideNavContent",""],["outlet","outlet"],["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"bg-primary","rtl-top-toolbar"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],["class","font-weight-500",4,"ngIf"],["class","font-size-120 font-weight-500",4,"ngIf"],[3,"backdropClick"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip","matTooltipDisabled"],[1,"color-white"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip"],["width","20","height","20","viewBox","0 0 24 24",1,"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,"font-weight-500"],[1,"font-size-120","font-weight-500"],[1,"rtl-spinner"],["color","accent"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",3),e.nI1(1,"lowercase"),e.nI1(2,"lowercase"),e.j41(3,"mat-toolbar",4)(4,"div"),e.DNE(5,Wf,3,2,"button",5)(6,e2,4,3,"button",6),e.k0s(),e.j41(7,"div"),e.DNE(8,Vu,2,1,"span",7)(9,y3,2,1,"span",8),e.k0s(),e.j41(10,"div"),e.nrm(11,"rtl-top-menu"),e.k0s()(),e.j41(12,"mat-sidenav-container",9),e.bIt("backdropClick",function(){return p.eBV(ot),p.Njj(ne.backdropClicked())}),e.j41(13,"mat-sidenav",10,0)(15,"rtl-side-navigation",11),e.bIt("ChildNavClicked",function($t){return p.eBV(ot),p.Njj(ne.onNavigationClicked($t))}),e.k0s()(),e.j41(16,"mat-sidenav-content",12,1)(18,"div",13),e.nrm(19,"router-outlet",null,2),e.k0s()()(),e.DNE(21,b3,4,0,"div",14),e.k0s()}2&J&&(e.Y8G("ngClass",e.l_i(12,Um,e.bMT(1,8,ne.selNode.settings.themeColor),e.bMT(2,10,ne.selNode.settings.themeMode))),e.R7$(5),e.Y8G("ngIf",ne.flgLoggedIn),e.R7$(),e.Y8G("ngIf",!ne.smallScreen&&ne.flgLoggedIn),e.R7$(2),e.Y8G("ngIf",ne.smallScreen),e.R7$(),e.Y8G("ngIf",!ne.smallScreen),e.R7$(4),e.Y8G("opened",ne.flgSideNavOpened&&ne.flgLoggedIn)("mode",ne.flgSidenavPinned&&!ne.smallScreen?"side":"over"),e.R7$(8),e.Y8G("ngIf",!ne.selNode.settings.themeColor))},dependencies:[o.YU,o.bT,sc.iY,Oc.An,I1.LG,at.DJ,at.sA,at.UI,ol.PW,k1.LG,k1.US,k1.El,Pu.KQ,o1.oV,go.Ld,g3,v3,ja.n3,o.GH],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Ou.E]}}))}return z(),N})(),Hu=(()=>{var z;class N{constructor(H){this.sessionService=H}intercept(H,J){if(this.sessionService.getItem("token")){const ne=H.clone({headers:H.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return J.handle(ne)}return J.handle(H)}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(zi.Q))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();var ju=l(7879),x3=l(69579),Wu=l(283),Xf=l(13017);const Kf={userPersona:Mt.HW.OPERATOR,themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1,logLevel:"ERROR",lnServerUrl:"",swapServerUrl:"",boltzServerUrl:"",currencyUnit:"USD",blockExplorerUrl:"https://mempool.space"},Yf={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},Xu={apiURL:"",apisCallStatus:{Login:{status:Mt.wn.UN_INITIATED},IsAuthorized:{status:Mt.wn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Kf,authentication:Yf,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,SSO:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,secret2FA:"",disableAuth:!1,allowPasswordUpdate:!0,nodes:[{settings:Kf,authentication:Yf}]},nodeData:{}},Ku=(0,vi.vy)(Xu,(0,vi.on)(Ui.Gd,(z,{payload:N})=>{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(Ui.Tn,(z,{payload:N})=>({...Xu,apisCallStatus:z.apisCallStatus,appConfig:z.appConfig,selNode:N})),(0,vi.on)(Ui.Np,(z,{payload:N})=>({...z,selNode:N})),(0,vi.on)(Ui.Fl,(z,{payload:N})=>({...z,nodeData:N})),(0,vi.on)(Ui.IK,(z,{payload:N})=>({...z,appConfig:N}))),C3={apisCallStatus:{FetchPageSettings:{status:Mt.wn.UN_INITIATED},FetchInfo:{status:Mt.wn.UN_INITIATED},FetchFees:{status:Mt.wn.UN_INITIATED},FetchPeers:{status:Mt.wn.UN_INITIATED},FetchClosedChannels:{status:Mt.wn.UN_INITIATED},FetchPendingChannels:{status:Mt.wn.UN_INITIATED},FetchAllChannels:{status:Mt.wn.UN_INITIATED},FetchBalanceBlockchain:{status:Mt.wn.UN_INITIATED},FetchInvoices:{status:Mt.wn.UN_INITIATED},FetchPayments:{status:Mt.wn.UN_INITIATED},FetchForwardingHistory:{status:Mt.wn.UN_INITIATED},FetchUTXOs:{status:Mt.wn.UN_INITIATED},FetchTransactions:{status:Mt.wn.UN_INITIATED},FetchLightningTransactions:{status:Mt.wn.UN_INITIATED},FetchNetwork:{status:Mt.wn.UN_INITIATED}},pageSettings:Mt.ZC,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 t2=!1,Yu=!1;const M3=(0,vi.vy)(C3,(0,vi.on)(Ur.e8,(z,{payload:N})=>{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(Ur.p1,z=>({...C3})),(0,vi.on)(Ur.x1,(z,{payload:N})=>({...z,information:N})),(0,vi.on)(Ur.Qj,(z,{payload:N})=>({...z,peers:N})),(0,vi.on)(Ur.Zi,(z,{payload:N})=>{const I=[...z.peers],H=z.peers.findIndex(J=>J.pub_key===N.pubkey);return H>-1&&I.splice(H,1),{...z,peers:I}}),(0,vi.on)(Ur.Jx,(z,{payload:N})=>{const I=z.listInvoices;return I.invoices?.unshift(N),{...z,listInvoices:I}}),(0,vi.on)(Ur.Dq,(z,{payload:N})=>{const I=z.listInvoices;return I.invoices=I.invoices?.map(H=>H.payment_request===N.payment_request?N:H),{...z,listInvoices:I}}),(0,vi.on)(Ur._$,(z,{payload:N})=>{const I=z.listPayments;return I.payments=I.payments?.map(H=>H.payment_hash===N.payment_hash?N:H),{...z,listPayments:I}}),(0,vi.on)(Ur.Uo,(z,{payload:N})=>({...z,fees:N})),(0,vi.on)(Ur.z2,(z,{payload:N})=>({...z,closedChannels:N})),(0,vi.on)(Ur.cU,(z,{payload:N})=>({...z,pendingChannels:N.pendingChannels,pendingChannelsSummary:N.pendingChannelsSummary})),(0,vi.on)(Ur.dv,(z,{payload:N})=>{let I=0,H=0,J=0,ne=0,ot=0,jt=0;return N&&N.forEach($t=>{$t.local_balance||($t.local_balance=0),!0===$t.active?(ot+=+$t.local_balance,J+=1,$t.local_balance?I=+I+ +$t.local_balance:$t.local_balance=0,$t.remote_balance?H=+H+ +$t.remote_balance:$t.remote_balance=0):(jt+=+$t.local_balance,ne+=1)}),{...z,channels:N,channelsSummary:{active:{num_channels:J,capacity:ot},inactive:{num_channels:ne,capacity:jt}},lightningBalance:{local:I,remote:H}}}),(0,vi.on)(Ur.cR,(z,{payload:N})=>{const I=[...z.channels],H=z.channels.findIndex(J=>J.channel_point===N.channelPoint);return H>-1&&I.splice(H,1),{...z,channels:I}}),(0,vi.on)(Ur.DI,(z,{payload:N})=>({...z,blockchainBalance:N})),(0,vi.on)(Ur.J9,(z,{payload:N})=>({...z,networkInfo:N})),(0,vi.on)(Ur.$6,(z,{payload:N})=>(N.total_invoices||(N.total_invoices=z.listInvoices.total_invoices),{...z,listInvoices:N})),(0,vi.on)(Ur.As,(z,{payload:N})=>{if(t2=!0,N.length&&Yu){const I=[...z.utxos];return I.forEach(H=>{const J=N.find(ne=>ne.tx_hash===H.outpoint?.txid_str);H.label=J&&J.label?J.label:""}),{...z,utxos:I,transactions:N}}return{...z,transactions:N}}),(0,vi.on)(Ur.O8,(z,{payload:N})=>{if(Yu=!0,N.length&&t2){const I=[...z.transactions];N.forEach(H=>{const J=I.find(ne=>ne.tx_hash===H.outpoint?.txid_str);H.label=J&&J.label?J.label:""})}return{...z,utxos:N}}),(0,vi.on)(Ur.Uj,(z,{payload:N})=>{const I={listInvoicesAll:z.allLightningTransactions.listInvoicesAll,listPaymentsAll:N};return{...z,listPayments:N,allLightningTransactions:I}}),(0,vi.on)(Ur.b1,(z,{payload:N})=>{const I={listInvoicesAll:N.listInvoicesAll,listPaymentsAll:z.listPayments};return{...z,allLightningTransactions:I}}),(0,vi.on)(Ur.kv,(z,{payload:N})=>{const I=[...z.channels,...z.closedChannels];let H=N.forwarding_events?JSON.parse(JSON.stringify(N)):{};return H.forwarding_events&&(H=Qu(H,I)),{...z,forwardingHistory:H}}),(0,vi.on)(Ur.NS,(z,{payload:N})=>{const I=[];return Mt.ZC.forEach(H=>{const J=N&&N.length&&N.length>0?N.find(ne=>ne.pageId===H.pageId):null;if(J){const ne=JSON.parse(JSON.stringify(J.tables));J.tables=[],H.tables.forEach(ot=>{const jt=ne.find($t=>$t.tableId===ot.tableId)||null;J.tables.push(jt||JSON.parse(JSON.stringify(ot)))}),I.push(J)}else I.push(JSON.parse(JSON.stringify(H)))}),{...z,pageSettings:I}})),Qu=(z,N)=>(z.forwarding_events.forEach(I=>{if(N&&N.length>0)for(let H=0;H{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(zr.gf,z=>({...jc})),(0,vi.on)(zr.x1,(z,{payload:N})=>({...z,information:N,fees:{feeCollected:N.fees_collected_msat}})),(0,vi.on)(zr.C2,(z,{payload:N})=>N.perkb?{...z,feeRatesPerKB:N}:N.perkw?{...z,feeRatesPerKW:N}:{...z}),(0,vi.on)(zr.EM,(z,{payload:N})=>({...z,utxos:N.utxos||[],balance:N.balance,localRemoteBalance:N.localRemoteBalance})),(0,vi.on)(zr.Qj,(z,{payload:N})=>({...z,peers:N})),(0,vi.on)(zr.We,(z,{payload:N})=>({...z,peers:[...z.peers,N]})),(0,vi.on)(zr.Zi,(z,{payload:N})=>{const I=[...z.peers],H=z.peers.findIndex(J=>J.id===N.id);return H>-1&&I.splice(H,1),{...z,peers:I}}),(0,vi.on)(zr.dv,(z,{payload:N})=>({...z,activeChannels:N.activeChannels,pendingChannels:N.pendingChannels,inactiveChannels:N.inactiveChannels})),(0,vi.on)(zr.cR,(z,{payload:N})=>{const I=[...z.peers];return I.forEach(H=>{H.id===N.id&&(H.connected=!1,delete H.netaddr)}),{...z,peers:I}}),(0,vi.on)(zr.Uj,(z,{payload:N})=>({...z,payments:N})),(0,vi.on)(zr.kv,(z,{payload:N})=>{const I=[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels],H=$u(N.listForwards,I);switch(N.listForwards=H,N.status){case Mt.xk.SETTLED:const J=z.fees;return J.totalTxCount=N.totalForwards||0,{...z,fees:J,forwardingHistory:N};case Mt.xk.FAILED:return{...z,failedForwardingHistory:N};case Mt.xk.LOCAL_FAILED:return{...z,localFailedForwardingHistory:N};default:return{...z}}}),(0,vi.on)(zr.Jx,(z,{payload:N})=>{const I=z.invoices;return I.invoices?.unshift(N),{...z,invoices:I}}),(0,vi.on)(zr.$6,(z,{payload:N})=>({...z,invoices:N})),(0,vi.on)(zr.Dq,(z,{payload:N})=>{const I=z.invoices;return I.invoices=I.invoices?.map(H=>(H.label===N.label&&(H.amount_received_msat=N.msat,H.payment_preimage=N.preimage,H.status="paid"),H)),{...z,invoices:I}}),(0,vi.on)(zr.qw,(z,{payload:N})=>({...z,offers:N})),(0,vi.on)(zr.kQ,(z,{payload:N})=>{const I=z.offers;return I?.unshift(N),{...z,offers:I}}),(0,vi.on)(zr.Gz,(z,{payload:N})=>{const I=[...z.offers],H=z.offers.findIndex(J=>J.offer_id===N.offer.offer_id);return H>-1&&I.splice(H,1,N.offer),{...z,offers:I}}),(0,vi.on)(zr.Qv,(z,{payload:N})=>({...z,offersBookmarks:N})),(0,vi.on)(zr.Db,(z,{payload:N})=>{const I=[...z.offersBookmarks],H=I.findIndex(J=>J.bolt12===N.bolt12);if(H<0)I?.unshift(N);else{const J={...I[H]};J.title=N.title,J.amountMSat=N.amountMSat,J.lastUpdatedAt=N.lastUpdatedAt,J.description=N.description,J.issuer=N.issuer,I.splice(H,1,J)}return{...z,offersBookmarks:I}}),(0,vi.on)(zr.NU,(z,{payload:N})=>{const I=[...z.offersBookmarks],H=z.offersBookmarks.findIndex(J=>J.bolt12===N.bolt12);return H>-1&&I.splice(H,1),{...z,offersBookmarks:I}}),(0,vi.on)(zr.NS,(z,{payload:N})=>{const I=[];return Mt.mu.forEach(H=>{const J=N&&N.length&&N.length>0?N.find(ne=>ne.pageId===H.pageId):null;if(J){const ne=JSON.parse(JSON.stringify(J.tables));J.tables=[],H.tables.forEach(ot=>{const jt=ne.find($t=>$t.tableId===ot.tableId)||null;J.tables.push(jt||JSON.parse(JSON.stringify(ot)))}),I.push(J)}else I.push(JSON.parse(JSON.stringify(H)))}),{...z,pageSettings:I}})),$u=(z,N)=>(z&&z.length>0?z.forEach((I,H)=>{if(N&&N.length>0)for(let J=0;J{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(Ta.Hh,z=>({...F1})),(0,vi.on)(Ta.x1,(z,{payload:N})=>({...z,information:N})),(0,vi.on)(Ta.Uo,(z,{payload:N})=>({...z,fees:N})),(0,vi.on)(Ta.Tp,(z,{payload:N})=>({...z,activeChannels:N})),(0,vi.on)(Ta.cU,(z,{payload:N})=>({...z,pendingChannels:N})),(0,vi.on)(Ta.I6,(z,{payload:N})=>({...z,inactiveChannels:N})),(0,vi.on)(Ta.ZE,(z,{payload:N})=>({...z,channelsStatus:N})),(0,vi.on)(Ta.Xx,(z,{payload:N})=>({...z,onchainBalance:N})),(0,vi.on)(Ta.N8,(z,{payload:N})=>({...z,lightningBalance:N})),(0,vi.on)(Ta.Qj,(z,{payload:N})=>({...z,peers:N})),(0,vi.on)(Ta.Zi,(z,{payload:N})=>{const I=[...z.peers],H=z.peers.findIndex(J=>J.nodeId===N.nodeId);return H>-1&&I.splice(H,1),{...z,peers:I}}),(0,vi.on)(Ta.cR,(z,{payload:N})=>{const I=[...z.activeChannels],H=z.activeChannels.findIndex(J=>J.channelId===N.channelId);return H>-1&&I.splice(H,1),{...z,activeChannels:I}}),(0,vi.on)(Ta.Uj,(z,{payload:N})=>{if(N&&N.sent){const I=[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels];N.sent?.map(H=>{const J=z.peers.find(ne=>ne.nodeId===H.recipientNodeId);return H.recipientNodeAlias=J?J.alias:H.recipientNodeId,H.parts&&H.parts?.map(ne=>{const ot=I.find(jt=>jt.channelId===ne.toChannelId);return ne.toChannelAlias=ot?ot.alias:ne.toChannelId,H.parts}),N.sent})}if(N&&N.relayed){const I=[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels];N.relayed.forEach(H=>{H=Wc(H,I)})}return{...z,payments:N}}),(0,vi.on)(Ta.As,(z,{payload:N})=>({...z,transactions:N})),(0,vi.on)(Ta.Jx,(z,{payload:N})=>{const I=z.invoices;return I?.unshift(N),{...z,invoices:I}}),(0,vi.on)(Ta.$6,(z,{payload:N})=>({...z,invoices:N})),(0,vi.on)(Ta.Dq,(z,{payload:N})=>{let I=z.invoices;return I=I?.map(H=>{if(H.paymentHash===N.paymentHash){if(N.hasOwnProperty("type")){const J=JSON.parse(JSON.stringify(H));return J.amountSettled=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].amount?(N.parts[0].amount||0)/1e3:0,J.receivedAt=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].timestamp?Math.round((N.parts[0].timestamp||0)/1e3):0,J.status="received",J}return N}return H}),{...z,invoices:I}}),(0,vi.on)(Ta.gZ,(z,{payload:N})=>{let I=z.pendingChannels;return I=I?.map(H=>(H.channelId===N.channelId&&H.nodeId===N.remoteNodeId&&(N.currentState=N.currentState?.replace(/_/g," "),H.state=N.currentState),H)),{...z,pendingChannels:I}}),(0,vi.on)(Ta.yn,(z,{payload:N})=>{const I=z.payments,H=Wc(N,[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels]);I.relayed?.unshift(H);const J=(N.amountIn||0)-(N.amountOut||0),ne={localBalance:z.lightningBalance.localBalance+J,remoteBalance:z.lightningBalance.remoteBalance-J},ot=z.channelsStatus;ot.active&&(ot.active.capacity=(z.channelsStatus?.active?.capacity||0)+J);const jt={daily_fee:(z.fees.daily_fee||0)+J,daily_txs:(z.fees.daily_txs||0)+1,weekly_fee:(z.fees.weekly_fee||0)+J,weekly_txs:(z.fees.weekly_txs||0)+1,monthly_fee:(z.fees.monthly_fee||0)+J,monthly_txs:(z.fees.monthly_txs||0)+1},$t=z.activeChannels;let Tn=!1,ii=!1;for(const Qn of $t){if(Qn.channelId===N.fromChannelId){Tn=!0;const Vi=(Qn.toLocal||0)+(Qn.toRemote||0);Qn.toLocal=(Qn.toLocal||0)+H.amountIn,Qn.toRemote=(Qn.toRemote||0)-H.amountIn,Qn.balancedness=0===Vi?1:+(1-Math.abs((Qn.toLocal-Qn.toRemote)/Vi)).toFixed(3)}if(Qn.channelId===N.toChannelId){ii=!0;const Vi=(Qn.toLocal||0)+(Qn.toRemote||0);Qn.toLocal=(Qn.toLocal||0)-H.amountOut,Qn.toRemote=(Qn.toRemote||0)+H.amountOut,Qn.balancedness=0===Vi?1:+(1-Math.abs((Qn.toLocal-Qn.toRemote)/Vi)).toFixed(3)}if(ii&&Tn)break}return{...z,payments:I,lightningBalance:ne,channelStatus:ot,fees:jt,activeChannels:$t}}),(0,vi.on)(Ta.NS,(z,{payload:N})=>{const I=[];return Mt.X8.forEach(H=>{const J=N&&N.length&&N.length>0?N.find(ne=>ne.pageId===H.pageId):null;if(J){const ne=JSON.parse(JSON.stringify(J.tables));J.tables=[],H.tables.forEach(ot=>{const jt=ne.find($t=>$t.tableId===ot.tableId)||null;J.tables.push(jt||JSON.parse(JSON.stringify(ot)))}),I.push(J)}else I.push(JSON.parse(JSON.stringify(H)))}),{...z,pageSettings:I}})),Wc=(z,N)=>{if("payment-relayed"===z.type)if(N&&N.length>0)for(let I=0;I0)for(let J=0;J{N[J].channelId?.toString()===ne.channelId&&(ne.channelAlias=N[J].alias?N[J].alias:ne.channelId,ne.shortChannelId=N[J].shortChannelId?N[J].shortChannelId:"")}),z.outgoing?.forEach(ne=>{N[J].channelId?.toString()===ne.channelId&&(ne.channelAlias=N[J].alias?N[J].alias:ne.channelId,ne.shortChannelId=N[J].shortChannelId?N[J].shortChannelId:"")}),J===N.length-1&&(z.incoming&&z.incoming.length&&z.incoming.length>0&&!z.incoming[0].channelAlias&&z.incoming?.forEach(ne=>{ne.channelAlias=ne.channelId?.substring(0,17)+"...",ne.shortChannelId=""}),z.outgoing&&z.outgoing.length&&z.outgoing.length>0&&!z.outgoing[0].channelAlias&&z.outgoing?.forEach(ne=>{ne.channelAlias=ne.channelId?.substring(0,17)+"...",ne.shortChannelId=""}));else z.incoming?.forEach(J=>{J.channelAlias=J.channelId?.substring(0,17)+"...",J.shortChannelId=""}),z.outgoing?.forEach(J=>{J.channelAlias=J.channelId?.substring(0,17)+"...",J.shortChannelId=""});const I=z.incoming?.reduce((J,ne)=>J+ne.amount,0)||0;z.amountIn=Math.round(I/1e3),z.fromChannelId=z.incoming&&z.incoming.length?z.incoming[0].channelId:"",z.fromChannelAlias=z.incoming&&z.incoming.length?z.incoming[0].channelAlias:"",z.fromShortChannelId=z.incoming&&z.incoming.length?z.incoming[0].shortChannelId:"";const H=z.outgoing?.reduce((J,ne)=>J+ne.amount,0)||0;z.amountOut=Math.round(H/1e3),z.toChannelId=z.outgoing&&z.outgoing.length?z.outgoing[0].channelId:"",z.toChannelAlias=z.outgoing&&z.outgoing.length?z.outgoing[0].channelAlias:"",z.toShortChannelId=z.outgoing&&z.outgoing.length?z.outgoing[0].shortChannelId:""}return z};let Vd=!1;(0,A.naY)()&&(Vd=!0);let E3=(()=>{var z;class N{static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275mod=e.$C({type:N,bootstrap:[Gu]}),this.\u0275inj=p.G2t({providers:[(0,ns.$R)((0,ns.ZZ)(),(0,ns.Sx)()),tc({idle:Mt.bz-10,timeout:10,ping:12e3}),{provide:ns.a7,useClass:Hu,multi:!0},zi.Q,H0.u,ju.I,u1.Q,_o.h,sd],imports:[Eo,L1.G,Y0,hr.RH,P.fM,vi.md.forRoot({root:Ku,lnd:M3,cln:Ud,ecl:Qf},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),Vo.Vm.forRoot([Ko.H,x3.L,Wu.i,Xf.B]),Vd?Lr.instrument({connectInZone:!0}):[]]}))}return z(),N})();s().bootstrapModule(E3).catch(z=>console.error(z))},60426(ke,q){"use strict";function l(ce){return Object.keys(ce).map(Re=>ce[Re])}var ce;Object.defineProperty(q,"__esModule",{value:!0}),(ce=q.HashAlgorithms||(q.HashAlgorithms={})).SHA1="sha1",ce.SHA256="sha256",ce.SHA512="sha512";const i=l(q.HashAlgorithms);!function(ce){ce.ASCII="ascii",ce.BASE64="base64",ce.HEX="hex",ce.LATIN1="latin1",ce.UTF8="utf8"}(q.KeyEncodings||(q.KeyEncodings={}));const g=l(q.KeyEncodings);!function(ce){ce.HOTP="hotp",ce.TOTP="totp"}(q.Strategy||(q.Strategy={}));const p=l(q.Strategy),D=()=>{throw new Error("Please provide an options.createDigest implementation.")};function o(ce){return/^(\d+)$/.test(ce)}function e(ce,Re,Me){return ce.length>=Re?ce:`${Array(Re+1).join(Me)}${ce}`.slice(-1*Re)}function A(ce){const Re=`otpauth://${ce.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Me=[];if(p.indexOf(ce.type)<0)throw new Error(`Expecting options.type to be one of ${p.join(", ")}. Received ${ce.type}.`);if("hotp"===ce.type){if(null==ce.counter||"number"!=typeof ce.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Me.push(`&counter=${ce.counter}`)}return"totp"===ce.type&&ce.step&&Me.push(`&period=${ce.step}`),ce.digits&&Me.push(`&digits=${ce.digits}`),ce.algorithm&&Me.push(`&algorithm=${ce.algorithm.toUpperCase()}`),ce.issuer&&Me.push(`&issuer=${encodeURIComponent(ce.issuer)}`),Re.replace("{labelPrefix}",encodeURIComponent(ce.issuer||ce.accountName)).replace("{accountName}",encodeURIComponent(ce.accountName)).replace("{secret}",ce.secret).replace("{query}",Me.join(""))}class h{constructor(Re={}){this._defaultOptions=Object.freeze({...Re}),this._options=Object.freeze({})}create(Re={}){return new h(Re)}clone(Re={}){const Me=this.create({...this._defaultOptions,...Re});return Me.options=this._options,Me}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(Re){this._options=Object.freeze({...this._options,...Re})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function d(ce){if("function"!=typeof ce.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof ce.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof ce.digits)throw new Error("Expecting options.digits to be a number.");if(!ce.algorithm||i.indexOf(ce.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${i.join(", ")}. Received ${ce.algorithm}.`);if(!ce.encoding||g.indexOf(ce.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${g.join(", ")}. Received ${ce.encoding}.`)}const w=(ce,Re,Me)=>Buffer.from(Re,Me).toString("hex");function f(){return{algorithm:q.HashAlgorithms.SHA1,createHmacKey:w,createDigest:D,digits:6,encoding:q.KeyEncodings.ASCII}}function F(ce){const Re={...f(),...ce};return d(Re),Object.freeze(Re)}function M(ce){return e(ce.toString(16),16,"0")}function K(ce,Re){const Me=Buffer.from(ce,"hex"),ve=15&Me[Me.length-1],Se=((127&Me[ve])<<24|(255&Me[ve+1])<<16|(255&Me[ve+2])<<8|255&Me[ve+3])%Math.pow(10,Re);return e(String(Se),Re,"0")}function Z(ce,Re,Me){const ve=Me.digest||function j(ce,Re,Me){const ve=M(Re),oe=Me.createHmacKey(Me.algorithm,ce,Me.encoding);return Me.createDigest(Me.algorithm,oe,ve)}(ce,Re,Me);return K(ve,Me.digits)}function ee(ce,Re,Me,ve){return!!o(ce)&&ce===Z(Re,Me,ve)}function V(ce,Re,Me,ve,oe){return A({algorithm:oe.algorithm,digits:oe.digits,type:q.Strategy.HOTP,accountName:ce,counter:ve,issuer:Re,secret:Me})}class Q extends h{create(Re={}){return new Q(Re)}allOptions(){return F(this.options)}generate(Re,Me){return Z(Re,Me,this.allOptions())}check(Re,Me,ve){return ee(Re,Me,ve,this.allOptions())}verify(Re){if("object"!=typeof Re)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Re.token,Re.secret,Re.counter)}keyuri(Re,Me,ve,oe){return V(Re,Me,ve,oe,this.allOptions())}}function $(ce){if("number"==typeof ce)return[Math.abs(ce),Math.abs(ce)];if(Array.isArray(ce)){const[Re,Me]=ce;if("number"==typeof Re&&"number"==typeof Me)return[Math.abs(Re),Math.abs(Me)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ie(ce){if(d(ce),$(ce.window),"number"!=typeof ce.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof ce.step)throw new Error("Expecting options.step to be a number.")}const _e=(ce,Re,Me)=>{const ve=ce.length,oe=Buffer.from(ce,Re).toString("hex");if(ve{switch(ce){case q.HashAlgorithms.SHA1:return _e(Re,Me,20);case q.HashAlgorithms.SHA256:return _e(Re,Me,32);case q.HashAlgorithms.SHA512:return _e(Re,Me,64);default:throw new Error(`Expecting algorithm to be one of ${i.join(", ")}. Received ${ce}.`)}};function se(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:D,createHmacKey:ye,digits:6,encoding:q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function pe(ce){const Re={...se(),...ce};return ie(Re),Object.freeze(Re)}function Ee(ce,Re){return Math.floor(ce/Re/1e3)}function L(ce,Re){return Z(ce,Ee(Re.epoch,Re.step),Re)}function t(ce,Re,Me,ve){const oe=[];if(0===ve)return oe;for(let Se=1;Se<=ve;Se++)oe.push(ce+Re*Se*Me);return oe}function s(ce,Re,Me){const ve=$(Me),oe=1e3*Re;return{current:ce,past:t(ce,-1,oe,ve[0]),future:t(ce,1,oe,ve[1])}}function m(ce,Re,Me){return!!o(ce)&&ce===L(Re,Me)}function u(ce,Re,Me,ve){let oe=null;return ce.some((Se,be)=>!!m(Re,Me,{...ve,epoch:Se})&&(oe=be+1,!0)),oe}function _(ce,Re,Me){if(m(ce,Re,Me))return 0;const ve=s(Me.epoch,Me.step,Me.window),oe=u(ve.past,ce,Re,Me);return null!==oe?-1*oe:u(ve.future,ce,Re,Me)}function T(ce,Re){return Math.floor(ce/1e3)%Re}function P(ce,Re){return Re-T(ce,Re)}function C(ce,Re,Me,ve){return A({algorithm:ve.algorithm,digits:ve.digits,step:ve.step,type:q.Strategy.TOTP,accountName:ce,issuer:Re,secret:Me})}class a extends Q{create(Re={}){return new a(Re)}allOptions(){return pe(this.options)}generate(Re){return L(Re,this.allOptions())}checkDelta(Re,Me){return _(Re,Me,this.allOptions())}check(Re,Me){return"number"==typeof this.checkDelta(Re,Me)}verify(Re){if("object"!=typeof Re)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Re.token,Re.secret)}timeRemaining(){const Re=this.allOptions();return P(Re.epoch,Re.step)}timeUsed(){const Re=this.allOptions();return T(Re.epoch,Re.step)}keyuri(Re,Me,ve){return C(Re,Me,ve,this.allOptions())}}function x(ce){if(ie(ce),"function"!=typeof ce.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(ce.keyEncoder&&"function"!=typeof ce.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function Y(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:D,createHmacKey:ye,digits:6,encoding:q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function R(ce){const Re={...Y(),...ce};return x(Re),Object.freeze(Re)}function U(ce,Re){return Re.keyEncoder(ce,Re.encoding)}function fe(ce,Re){return Re.keyDecoder(ce,Re.encoding)}function re(ce,Re){return U(Re.createRandomBytes(ce,Re.encoding),Re)}function he(ce,Re){return L(fe(ce,Re),Re)}function Oe(ce,Re,Me){return _(ce,fe(Re,Me),Me)}class ge extends a{create(Re={}){return new ge(Re)}allOptions(){return R(this.options)}generate(Re){return he(Re,this.allOptions())}checkDelta(Re,Me){return Oe(Re,Me,this.allOptions())}encode(Re){return U(Re,this.allOptions())}decode(Re){return fe(Re,this.allOptions())}generateSecret(Re=10){return re(Re,this.allOptions())}}q.Authenticator=ge,q.HASH_ALGORITHMS=i,q.HOTP=Q,q.KEY_ENCODINGS=g,q.OTP=h,q.STRATEGY=p,q.TOTP=a,q.authenticatorCheckWithWindow=Oe,q.authenticatorDecoder=fe,q.authenticatorDefaultOptions=Y,q.authenticatorEncoder=U,q.authenticatorGenerateSecret=re,q.authenticatorOptionValidator=x,q.authenticatorOptions=R,q.authenticatorToken=he,q.createDigestPlaceholder=D,q.hotpCheck=ee,q.hotpCounter=M,q.hotpCreateHmacKey=w,q.hotpDefaultOptions=f,q.hotpDigestToToken=K,q.hotpKeyuri=V,q.hotpOptions=F,q.hotpOptionsValidator=d,q.hotpToken=Z,q.isTokenValid=o,q.keyuri=A,q.objectValues=l,q.padStart=e,q.totpCheck=m,q.totpCheckByEpoch=u,q.totpCheckWithWindow=_,q.totpCounter=Ee,q.totpCreateHmacKey=ye,q.totpDefaultOptions=se,q.totpEpochAvailable=s,q.totpKeyuri=C,q.totpOptions=pe,q.totpOptionsValidator=ie,q.totpPadSecret=_e,q.totpTimeRemaining=P,q.totpTimeUsed=T,q.totpToken=L},97840(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var g=function i(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(l(91426));q.createDigest=(o,e,A)=>g.createHmac(o,Buffer.from(e,"hex")).update(Buffer.from(A,"hex")).digest().toString("hex"),q.createRandomBytes=(o,e)=>g.randomBytes(o).toString(e)},15526(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var g=function i(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(l(47851));q.keyDecoder=(o,e)=>g.decode(o).toString(e),q.keyEncoder=(o,e)=>g.encode(Buffer.from(o,e).toString("ascii")).toString().replace(/=/g,"")},94478(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var i=l(97840),g=l(15526),p=l(60426);const D=new p.HOTP({createDigest:i.createDigest}),o=new p.TOTP({createDigest:i.createDigest}),e=new p.Authenticator({createDigest:i.createDigest,createRandomBytes:i.createRandomBytes,keyDecoder:g.keyDecoder,keyEncoder:g.keyEncoder});q.authenticator=e,q.hotp=D,q.totp=o},49609(ke,q,l){var i=q;i.bignum=l(96867),i.define=l(16626).define,i.base=l(15066),i.constants=l(47740),i.decoders=l(91558),i.encoders=l(22714)},16626(ke,q,l){var i=l(49609),g=l(71993);function D(o,e){this.name=o,this.body=e,this.decoders={},this.encoders={}}q.define=function(e,A){return new D(e,A)},D.prototype._createNamed=function(e){var A;try{A=l(68326).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch{A=function(d){this._initNamed(d)}}return g(A,e),A.prototype._initNamed=function(d){e.call(this,d)},new A(this)},D.prototype._getDecoder=function(e){return this.decoders.hasOwnProperty(e=e||"der")||(this.decoders[e]=this._createNamed(i.decoders[e])),this.decoders[e]},D.prototype.decode=function(e,A,h){return this._getDecoder(A).decode(e,h)},D.prototype._getEncoder=function(e){return this.encoders.hasOwnProperty(e=e||"der")||(this.encoders[e]=this._createNamed(i.encoders[e])),this.encoders[e]},D.prototype.encode=function(e,A,h){return this._getEncoder(A).encode(e,h)}},97290(ke,q,l){var i=l(71993),g=l(15066).Reporter,p=l(83838).Buffer;function D(e,A){g.call(this,A),p.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,A){if(Array.isArray(e))this.length=0,this.value=e.map(function(h){return h instanceof o||(h=new o(h,A)),this.length+=h.length,h},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return A.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=p.byteLength(e);else{if(!p.isBuffer(e))return A.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(D,g),q.t=D,D.prototype.save=function(){return{offset:this.offset,reporter:g.prototype.save.call(this)}},D.prototype.restore=function(A){var h=new D(this.base);return h.offset=A.offset,h.length=this.offset,this.offset=A.offset,g.prototype.restore.call(this,A.reporter),h},D.prototype.isEmpty=function(){return this.offset===this.length},D.prototype.readUInt8=function(A){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(A||"DecoderBuffer overrun")},D.prototype.skip=function(A,h){if(!(this.offset+A<=this.length))return this.error(h||"DecoderBuffer overrun");var d=new D(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+A,this.offset+=A,d},D.prototype.raw=function(A){return this.base.slice(A?A.offset:this.offset,this.length)},q.d=o,o.prototype.join=function(A,h){return A||(A=new p(this.length)),h||(h=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(A,h),h+=d.length}):("number"==typeof this.value?A[h]=this.value:"string"==typeof this.value?A.write(this.value,h):p.isBuffer(this.value)&&this.value.copy(A,h),h+=this.length)),A}},15066(ke,q,l){var i=q;i.Reporter=l(85697).a,i.DecoderBuffer=l(97290).t,i.EncoderBuffer=l(97290).d,i.Node=l(34320)},34320(ke,q,l){var i=l(15066).Reporter,g=l(15066).EncoderBuffer,p=l(15066).DecoderBuffer,D=l(39210),o=["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"],e=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function h(w,f){var F={};this._baseState=F,F.enc=w,F.parent=f||null,F.children=null,F.tag=null,F.args=null,F.reverseArgs=null,F.choice=null,F.optional=!1,F.any=!1,F.obj=!1,F.use=null,F.useDecoder=null,F.key=null,F.default=null,F.explicit=null,F.implicit=null,F.contains=null,F.parent||(F.children=[],this._wrap())}ke.exports=h;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var f=this._baseState,F={};d.forEach(function(K){F[K]=f[K]});var M=new this.constructor(F.parent);return M._baseState=F,M},h.prototype._wrap=function(){var f=this._baseState;e.forEach(function(F){this[F]=function(){var K=new this.constructor(this);return f.children.push(K),K[F].apply(K,arguments)}},this)},h.prototype._init=function(f){var F=this._baseState;D(null===F.parent),f.call(this),F.children=F.children.filter(function(M){return M._baseState.parent===this},this),D.equal(F.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(f){var F=this._baseState,M=f.filter(function(K){return K instanceof this.constructor},this);f=f.filter(function(K){return!(K instanceof this.constructor)},this),0!==M.length&&(D(null===F.children),F.children=M,M.forEach(function(K){K._baseState.parent=this},this)),0!==f.length&&(D(null===F.args),F.args=f,F.reverseArgs=f.map(function(K){if("object"!=typeof K||K.constructor!==Object)return K;var j={};return Object.keys(K).forEach(function(Z){Z==(0|Z)&&(Z|=0),j[K[Z]]=Z}),j}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(w){h.prototype[w]=function(){throw new Error(w+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(w){h.prototype[w]=function(){var F=this._baseState,M=Array.prototype.slice.call(arguments);return D(null===F.tag),F.tag=w,this._useArgs(M),this}}),h.prototype.use=function(f){D(f);var F=this._baseState;return D(null===F.use),F.use=f,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(f){var F=this._baseState;return D(null===F.default),F.default=f,F.optional=!0,this},h.prototype.explicit=function(f){var F=this._baseState;return D(null===F.explicit&&null===F.implicit),F.explicit=f,this},h.prototype.implicit=function(f){var F=this._baseState;return D(null===F.explicit&&null===F.implicit),F.implicit=f,this},h.prototype.obj=function(){var f=this._baseState,F=Array.prototype.slice.call(arguments);return f.obj=!0,0!==F.length&&this._useArgs(F),this},h.prototype.key=function(f){var F=this._baseState;return D(null===F.key),F.key=f,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(f){var F=this._baseState;return D(null===F.choice),F.choice=f,this._useArgs(Object.keys(f).map(function(M){return f[M]})),this},h.prototype.contains=function(f){var F=this._baseState;return D(null===F.use),F.contains=f,this},h.prototype._decode=function(f,F){var M=this._baseState;if(null===M.parent)return f.wrapResult(M.children[0]._decode(f,F));var Q,K=M.default,j=!0,Z=null;if(null!==M.key&&(Z=f.enterKey(M.key)),M.optional){var ee=null;if(null!==M.explicit?ee=M.explicit:null!==M.implicit?ee=M.implicit:null!==M.tag&&(ee=M.tag),null!==ee||M.any){if(j=this._peekTag(f,ee,M.any),f.isError(j))return j}else{var V=f.save();try{null===M.choice?this._decodeGeneric(M.tag,f,F):this._decodeChoice(f,F),j=!0}catch{j=!1}f.restore(V)}}if(M.obj&&j&&(Q=f.enterObject()),j){if(null!==M.explicit){var $=this._decodeTag(f,M.explicit);if(f.isError($))return $;f=$}var ie=f.offset;if(null===M.use&&null===M.choice){M.any&&(V=f.save());var _e=this._decodeTag(f,null!==M.implicit?M.implicit:M.tag,M.any);if(f.isError(_e))return _e;M.any?K=f.raw(V):f=_e}if(F&&F.track&&null!==M.tag&&F.track(f.path(),ie,f.length,"tagged"),F&&F.track&&null!==M.tag&&F.track(f.path(),f.offset,f.length,"content"),M.any||(K=null===M.choice?this._decodeGeneric(M.tag,f,F):this._decodeChoice(f,F)),f.isError(K))return K;if(!M.any&&null===M.choice&&null!==M.children&&M.children.forEach(function(pe){pe._decode(f,F)}),M.contains&&("octstr"===M.tag||"bitstr"===M.tag)){var ye=new p(K);K=this._getUse(M.contains,f._reporterState.obj)._decode(ye,F)}}return M.obj&&j&&(K=f.leaveObject(Q)),null===M.key||null===K&&!0!==j?null!==Z&&f.exitKey(Z):f.leaveKey(Z,M.key,K),K},h.prototype._decodeGeneric=function(f,F,M){var K=this._baseState;return"seq"===f||"set"===f?null:"seqof"===f||"setof"===f?this._decodeList(F,f,K.args[0],M):/str$/.test(f)?this._decodeStr(F,f,M):"objid"===f&&K.args?this._decodeObjid(F,K.args[0],K.args[1],M):"objid"===f?this._decodeObjid(F,null,null,M):"gentime"===f||"utctime"===f?this._decodeTime(F,f,M):"null_"===f?this._decodeNull(F,M):"bool"===f?this._decodeBool(F,M):"objDesc"===f?this._decodeStr(F,f,M):"int"===f||"enum"===f?this._decodeInt(F,K.args&&K.args[0],M):null!==K.use?this._getUse(K.use,F._reporterState.obj)._decode(F,M):F.error("unknown tag: "+f)},h.prototype._getUse=function(f,F){var M=this._baseState;return M.useDecoder=this._use(f,F),D(null===M.useDecoder._baseState.parent),M.useDecoder=M.useDecoder._baseState.children[0],M.implicit!==M.useDecoder._baseState.implicit&&(M.useDecoder=M.useDecoder.clone(),M.useDecoder._baseState.implicit=M.implicit),M.useDecoder},h.prototype._decodeChoice=function(f,F){var M=this._baseState,K=null,j=!1;return Object.keys(M.choice).some(function(Z){var ee=f.save(),V=M.choice[Z];try{var Q=V._decode(f,F);if(f.isError(Q))return!1;K={type:Z,value:Q},j=!0}catch{return f.restore(ee),!1}return!0},this),j?K:f.error("Choice not matched")},h.prototype._createEncoderBuffer=function(f){return new g(f,this.reporter)},h.prototype._encode=function(f,F,M){var K=this._baseState;if(null===K.default||K.default!==f){var j=this._encodeValue(f,F,M);if(void 0!==j&&!this._skipDefault(j,F,M))return j}},h.prototype._encodeValue=function(f,F,M){var K=this._baseState;if(null===K.parent)return K.children[0]._encode(f,F||new i);var V=null;if(this.reporter=F,K.optional&&void 0===f){if(null===K.default)return;f=K.default}var j=null,Z=!1;if(K.any)V=this._createEncoderBuffer(f);else if(K.choice)V=this._encodeChoice(f,F);else if(K.contains)j=this._getUse(K.contains,M)._encode(f,F),Z=!0;else if(K.children)j=K.children.map(function(ie){if("null_"===ie._baseState.tag)return ie._encode(null,F,f);if(null===ie._baseState.key)return F.error("Child should have a key");var _e=F.enterKey(ie._baseState.key);if("object"!=typeof f)return F.error("Child expected, but input is not object");var ye=ie._encode(f[ie._baseState.key],F,f);return F.leaveKey(_e),ye},this).filter(function(ie){return ie}),j=this._createEncoderBuffer(j);else if("seqof"===K.tag||"setof"===K.tag){if(!K.args||1!==K.args.length)return F.error("Too many args for : "+K.tag);if(!Array.isArray(f))return F.error("seqof/setof, but data is not Array");var ee=this.clone();ee._baseState.implicit=null,j=this._createEncoderBuffer(f.map(function(ie){return this._getUse(this._baseState.args[0],f)._encode(ie,F)},ee))}else null!==K.use?V=this._getUse(K.use,M)._encode(f,F):(j=this._encodePrimitive(K.tag,f),Z=!0);if(!K.any&&null===K.choice){var Q=null!==K.implicit?K.implicit:K.tag,$=null===K.implicit?"universal":"context";null===Q?null===K.use&&F.error("Tag could be omitted only for .use()"):null===K.use&&(V=this._encodeComposite(Q,Z,$,j))}return null!==K.explicit&&(V=this._encodeComposite(K.explicit,!1,"context",V)),V},h.prototype._encodeChoice=function(f,F){var M=this._baseState,K=M.choice[f.type];return K||D(!1,f.type+" not found in "+JSON.stringify(Object.keys(M.choice))),K._encode(f.value,F)},h.prototype._encodePrimitive=function(f,F){var M=this._baseState;if(/str$/.test(f))return this._encodeStr(F,f);if("objid"===f&&M.args)return this._encodeObjid(F,M.reverseArgs[0],M.args[1]);if("objid"===f)return this._encodeObjid(F,null,null);if("gentime"===f||"utctime"===f)return this._encodeTime(F,f);if("null_"===f)return this._encodeNull();if("int"===f||"enum"===f)return this._encodeInt(F,M.args&&M.reverseArgs[0]);if("bool"===f)return this._encodeBool(F);if("objDesc"===f)return this._encodeStr(F,f);throw new Error("Unsupported tag: "+f)},h.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},h.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(f)}},85697(ke,q,l){var i=l(71993);function g(D){this._reporterState={obj:null,path:[],options:D||{},errors:[]}}function p(D,o){this.path=D,this.rethrow(o)}q.a=g,g.prototype.isError=function(o){return o instanceof p},g.prototype.save=function(){var o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},g.prototype.restore=function(o){var e=this._reporterState;e.obj=o.obj,e.path=e.path.slice(0,o.pathLen)},g.prototype.enterKey=function(o){return this._reporterState.path.push(o)},g.prototype.exitKey=function(o){var e=this._reporterState;e.path=e.path.slice(0,o-1)},g.prototype.leaveKey=function(o,e,A){var h=this._reporterState;this.exitKey(o),null!==h.obj&&(h.obj[e]=A)},g.prototype.path=function(){return this._reporterState.path.join("/")},g.prototype.enterObject=function(){var o=this._reporterState,e=o.obj;return o.obj={},e},g.prototype.leaveObject=function(o){var e=this._reporterState,A=e.obj;return e.obj=o,A},g.prototype.error=function(o){var e,A=this._reporterState,h=o instanceof p;if(e=h?o:new p(A.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),o.message||o,o.stack),!A.options.partial)throw e;return h||A.errors.push(e),e},g.prototype.wrapResult=function(o){var e=this._reporterState;return e.options.partial?{result:this.isError(o)?null:o,errors:e.errors}:o},i(p,Error),p.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,p),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},36283(ke,q,l){var i=l(47740);q.tagClass={0:"universal",1:"application",2:"context",3:"private"},q.tagClassByName=i._reverse(q.tagClass),q.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"},q.tagByName=i._reverse(q.tag)},47740(ke,q,l){var i=q;i._reverse=function(p){var D={};return Object.keys(p).forEach(function(o){(0|o)==o&&(o|=0),D[p[o]]=o}),D},i.der=l(36283)},55941(ke,q,l){var i=l(71993),g=l(49609),p=g.base,D=g.bignum,o=g.constants.der;function e(w){this.enc="der",this.name=w.name,this.entity=w,this.tree=new A,this.tree._init(w.body)}function A(w){p.Node.call(this,"der",w)}function h(w,f){var F=w.readUInt8(f);if(w.isError(F))return F;var M=o.tagClass[F>>6],K=!(32&F);if(31&~F)F&=31;else{var j=F;for(F=0;!(128&~j);){if(j=w.readUInt8(f),w.isError(j))return j;F<<=7,F|=127&j}}return{cls:M,primitive:K,tag:F,tagStr:o.tag[F]}}function d(w,f,F){var M=w.readUInt8(F);if(w.isError(M))return M;if(!f&&128===M)return null;if(!(128&M))return M;var K=127&M;if(K>4)return w.error("length octect is too long");M=0;for(var j=0;j=31?M.error("Multi-octet tag encoding unsupported"):(f||(K|=32),K|=o.tagClassByName[F||"universal"]<<6)}(f,F,M,this.reporter);if(K.length<128)return(V=new g(2))[0]=j,V[1]=K.length,this._createEncoderBuffer([V,K]);for(var Z=1,ee=K.length;ee>=256;ee>>=8)Z++;(V=new g(2+Z))[0]=j,V[1]=128|Z,ee=1+Z;for(var Q=K.length;Q>0;ee--,Q>>=8)V[ee]=255&Q;return this._createEncoderBuffer([V,K])},A.prototype._encodeStr=function(f,F){if("bitstr"===F)return this._createEncoderBuffer([0|f.unused,f.data]);if("bmpstr"===F){for(var M=new g(2*f.length),K=0;K=40)return this.reporter.error("Second objid identifier OOB");f.splice(0,2,40*f[0]+f[1])}var j=0;for(K=0;K=128;Z>>=7)j++}var ee=new g(j),V=ee.length-1;for(K=f.length-1;K>=0;K--)for(ee[V--]=127&(Z=f[K]);(Z>>=7)>0;)ee[V--]=128|127&Z;return this._createEncoderBuffer(ee)},A.prototype._encodeTime=function(f,F){var M,K=new Date(f);return"gentime"===F?M=[h(K.getFullYear()),h(K.getUTCMonth()+1),h(K.getUTCDate()),h(K.getUTCHours()),h(K.getUTCMinutes()),h(K.getUTCSeconds()),"Z"].join(""):"utctime"===F?M=[h(K.getFullYear()%100),h(K.getUTCMonth()+1),h(K.getUTCDate()),h(K.getUTCHours()),h(K.getUTCMinutes()),h(K.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+F+" time is not supported yet"),this._encodeStr(M,"octstr")},A.prototype._encodeNull=function(){return this._createEncoderBuffer("")},A.prototype._encodeInt=function(f,F){if("string"==typeof f){if(!F)return this.reporter.error("String int or enum given, but no values map");if(!F.hasOwnProperty(f))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(f));f=F[f]}if("number"!=typeof f&&!g.isBuffer(f)){var M=f.toArray();!f.sign&&128&M[0]&&M.unshift(0),f=new g(M)}if(g.isBuffer(f)){var K=f.length;0===f.length&&K++;var Z=new g(K);return f.copy(Z),0===f.length&&(Z[0]=0),this._createEncoderBuffer(Z)}if(f<128)return this._createEncoderBuffer(f);if(f<256)return this._createEncoderBuffer([0,f]);K=1;for(var j=f;j>=256;j>>=8)K++;for(j=(Z=new Array(K)).length-1;j>=0;j--)Z[j]=255&f,f>>=8;return 128&Z[0]&&Z.unshift(0),this._createEncoderBuffer(new g(Z))},A.prototype._encodeBool=function(f){return this._createEncoderBuffer(f?255:0)},A.prototype._use=function(f,F){return"function"==typeof f&&(f=f(F)),f._getEncoder("der").tree},A.prototype._skipDefault=function(f,F,M){var j,K=this._baseState;if(null===K.default)return!1;var Z=f.join();if(void 0===K.defaultBuffer&&(K.defaultBuffer=this._encodeValue(K.default,F,M).join()),Z.length!==K.defaultBuffer.length)return!1;for(j=0;j=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},13981(ke,q){"use strict";q.byteLength=function A(M){var K=e(M),Z=K[1];return 3*(K[0]+Z)/4-Z},q.toByteArray=function d(M){var K,ie,j=e(M),Z=j[0],ee=j[1],V=new g(function h(M,K,j){return 3*(K+j)/4-j}(0,Z,ee)),Q=0,$=ee>0?Z-4:Z;for(ie=0;ie<$;ie+=4)K=i[M.charCodeAt(ie)]<<18|i[M.charCodeAt(ie+1)]<<12|i[M.charCodeAt(ie+2)]<<6|i[M.charCodeAt(ie+3)],V[Q++]=K>>16&255,V[Q++]=K>>8&255,V[Q++]=255&K;return 2===ee&&(K=i[M.charCodeAt(ie)]<<2|i[M.charCodeAt(ie+1)]>>4,V[Q++]=255&K),1===ee&&(K=i[M.charCodeAt(ie)]<<10|i[M.charCodeAt(ie+1)]<<4|i[M.charCodeAt(ie+2)]>>2,V[Q++]=K>>8&255,V[Q++]=255&K),V},q.fromByteArray=function F(M){for(var K,j=M.length,Z=j%3,ee=[],V=16383,Q=0,$=j-Z;Q<$;Q+=V)ee.push(f(M,Q,Q+V>$?$:Q+V));return 1===Z?ee.push(l[(K=M[j-1])>>2]+l[K<<4&63]+"=="):2===Z&&ee.push(l[(K=(M[j-2]<<8)+M[j-1])>>10]+l[K>>4&63]+l[K<<2&63]+"="),ee.join("")};for(var l=[],i=[],g=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=0;D<64;++D)l[D]=p[D],i[p.charCodeAt(D)]=D;function e(M){var K=M.length;if(K%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var j=M.indexOf("=");return-1===j&&(j=K),[j,j===K?0:4-j%4]}function w(M){return l[M>>18&63]+l[M>>12&63]+l[M>>6&63]+l[63&M]}function f(M,K,j){for(var ee=[],V=K;V=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void p(!1,"Invalid character in "+m)}function h(m,u,_){var T=A(m,_);return _-1>=u&&(T|=A(m,_-1)<<4),T}function d(m,u,_,T){for(var P=0,C=0,a=Math.min(m.length,_),x=u;x=49?Y-49+10:Y>=17?Y-17+10:Y,p(Y>=0&&C0?u:_},o.min=function(u,_){return u.cmp(_)<0?u:_},o.prototype._init=function(u,_,T){if("number"==typeof u)return this._initNumber(u,_,T);if("object"==typeof u)return this._initArray(u,_,T);"hex"===_&&(_=16),p(_===(0|_)&&_>=2&&_<=36);var P=0;"-"===(u=u.toString().replace(/\s+/g,""))[0]&&(P++,this.negative=1),P=0;P-=3)this.words[C]|=(a=u[P]|u[P-1]<<8|u[P-2]<<16)<>>26-x&67108863,(x+=24)>=26&&(x-=26,C++);else if("le"===T)for(P=0,C=0;P>>26-x&67108863,(x+=24)>=26&&(x-=26,C++);return this._strip()},o.prototype._parseHex=function(u,_,T){this.length=Math.ceil((u.length-_)/6),this.words=new Array(this.length);for(var P=0;P=_;P-=2)x=h(u,_,P)<=18?(C-=18,this.words[a+=1]|=x>>>26):C+=8;else for(P=(u.length-_)%2==0?_+1:_;P=18?(C-=18,this.words[a+=1]|=x>>>26):C+=8;this._strip()},o.prototype._parseBase=function(u,_,T){this.words=[0],this.length=1;for(var P=0,C=1;C<=67108863;C*=_)P++;P--,C=C/_|0;for(var a=u.length-T,x=a%P,Y=Math.min(a,a-x)+T,R=0,U=T;U1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch{o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?""}var F=["","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"],M=[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 ee(m,u,_){_.negative=u.negative^m.negative;var T=m.length+u.length|0;_.length=T,T=T-1|0;var P=0|m.words[0],C=0|u.words[0],a=P*C,Y=a/67108864|0;_.words[0]=67108863&a;for(var R=1;R>>26,fe=67108863&Y,re=Math.min(R,u.length-1),he=Math.max(0,R-m.length+1);he<=re;he++)U+=(a=(P=0|m.words[R-he|0])*(C=0|u.words[he])+fe)/67108864|0,fe=67108863&a;_.words[R]=0|fe,Y=0|U}return 0!==Y?_.words[R]=0|Y:_.length--,_._strip()}o.prototype.toString=function(u,_){var T;if(_=0|_||1,16===(u=u||10)||"hex"===u){T="";for(var P=0,C=0,a=0;a>>24-P&16777215,(P+=2)>=26&&(P-=26,a--),T=0!==C||a!==this.length-1?F[6-Y.length]+Y+T:Y+T}for(0!==C&&(T=C.toString(16)+T);T.length%_!==0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}if(u===(0|u)&&u>=2&&u<=36){var R=M[u],U=K[u];T="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var re=fe.modrn(U).toString(u);T=(fe=fe.idivn(U)).isZero()?re+T:F[R-re.length]+re+T}for(this.isZero()&&(T="0"+T);T.length%_!==0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var u=this.words[0];return 2===this.length?u+=67108864*this.words[1]:3===this.length&&1===this.words[2]?u+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-u:u},o.prototype.toJSON=function(){return this.toString(16,2)},e&&(o.prototype.toBuffer=function(u,_){return this.toArrayLike(e,u,_)}),o.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},o.prototype.toArrayLike=function(u,_,T){this._strip();var P=this.byteLength(),C=T||Math.max(1,P);p(P<=C,"byte array longer than desired length"),p(C>0,"Requested array length <= 0");var a=function(u,_){return u.allocUnsafe?u.allocUnsafe(_):new u(_)}(u,C);return this["_toArrayLike"+("le"===_?"LE":"BE")](a,P),a},o.prototype._toArrayLikeLE=function(u,_){for(var T=0,P=0,C=0,a=0;C>8&255),T>16&255),6===a?(T>24&255),P=0,a=0):(P=x>>>24,a+=2)}if(T=0&&(u[T--]=x>>8&255),T>=0&&(u[T--]=x>>16&255),6===a?(T>=0&&(u[T--]=x>>24&255),P=0,a=0):(P=x>>>24,a+=2)}if(T>=0)for(u[T--]=P;T>=0;)u[T--]=0},o.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,T=0;return _>=4096&&(T+=13,_>>>=13),_>=64&&(T+=7,_>>>=7),_>=8&&(T+=4,_>>>=4),_>=2&&(T+=2,_>>>=2),T+_},o.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,T=0;return!(8191&_)&&(T+=13,_>>>=13),!(127&_)&&(T+=7,_>>>=7),!(15&_)&&(T+=4,_>>>=4),!(3&_)&&(T+=2,_>>>=2),!(1&_)&&T++,T},o.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,_=0;_u.length?this.clone().ior(u):u.clone().ior(this)},o.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},o.prototype.iuand=function(u){var _;_=this.length>u.length?u:this;for(var T=0;T<_.length;T++)this.words[T]=this.words[T]&u.words[T];return this.length=_.length,this._strip()},o.prototype.iand=function(u){return p(0===(this.negative|u.negative)),this.iuand(u)},o.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},o.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},o.prototype.iuxor=function(u){var _,T;this.length>u.length?(_=this,T=u):(_=u,T=this);for(var P=0;Pu.length?this.clone().ixor(u):u.clone().ixor(this)},o.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},o.prototype.inotn=function(u){p("number"==typeof u&&u>=0);var _=0|Math.ceil(u/26),T=u%26;this._expand(_),T>0&&_--;for(var P=0;P<_;P++)this.words[P]=67108863&~this.words[P];for(T>0&&(this.words[P]=~this.words[P]&67108863>>26-T,P++);P=0);var T=u/26|0,P=u%26;return this._expand(T+1),this.words[T]=_?this.words[T]|1<u.length?(T=this,P=u):(T=u,P=this);for(var C=0,a=0;a>>26;for(;0!==C&&a>>26;if(this.length=T.length,0!==C)this.words[this.length]=C,this.length++;else if(T!==this)for(;au.length?this.clone().iadd(u):u.clone().iadd(this)},o.prototype.isub=function(u){if(0!==u.negative){u.negative=0;var _=this.iadd(u);return u.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var P,C,T=this.cmp(u);if(0===T)return this.negative=0,this.length=1,this.words[0]=0,this;T>0?(P=this,C=u):(P=u,C=this);for(var a=0,x=0;x>26,this.words[x]=67108863&_;for(;0!==a&&x>26,this.words[x]=67108863&_;if(0===a&&x>>13,Oe=0|P[1],ge=8191&Oe,ce=Oe>>>13,Re=0|P[2],Me=8191&Re,ve=Re>>>13,oe=0|P[3],Se=8191&oe,be=oe>>>13,nt=0|P[4],$e=8191&nt,dt=nt>>>13,yt=0|P[5],Et=8191&yt,rt=yt>>>13,Mn=0|P[6],qt=8191&Mn,S=Mn>>>13,Xt=0|P[7],de=8191&Xt,ae=Xt>>>13,me=0|P[8],Le=8191&me,et=me>>>13,tn=0|P[9],Vt=8191&tn,hn=tn>>>13,En=0|C[0],_n=8191&En,tt=En>>>13,Fe=0|C[1],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|C[2],Ie=8191&Qe,le=Qe>>>13,Ne=0|C[3],ze=8191&Ne,Je=Ne>>>13,gt=0|C[4],zt=8191>,Ye=gt>>>13,st=0|C[5],it=8191&st,He=st>>>13,Wt=0|C[6],we=8191&Wt,We=Wt>>>13,Lt=0|C[7],St=8191&Lt,At=Lt>>>13,fn=0|C[8],mt=8191&fn,It=fn>>>13,wn=0|C[9],In=8191&wn,ei=wn>>>13;T.negative=u.negative^_.negative,T.length=19;var Li=(x+(Y=Math.imul(re,_n))|0)+((8191&(R=(R=Math.imul(re,tt))+Math.imul(he,_n)|0))<<13)|0;x=((U=Math.imul(he,tt))+(R>>>13)|0)+(Li>>>26)|0,Li&=67108863,Y=Math.imul(ge,_n),R=(R=Math.imul(ge,tt))+Math.imul(ce,_n)|0,U=Math.imul(ce,tt);var kt=(x+(Y=Y+Math.imul(re,Pe)|0)|0)+((8191&(R=(R=R+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0))<<13)|0;x=((U=U+Math.imul(he,Ue)|0)+(R>>>13)|0)+(kt>>>26)|0,kt&=67108863,Y=Math.imul(Me,_n),R=(R=Math.imul(Me,tt))+Math.imul(ve,_n)|0,U=Math.imul(ve,tt),Y=Y+Math.imul(ge,Pe)|0,R=(R=R+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,U=U+Math.imul(ce,Ue)|0;var Ot=(x+(Y=Y+Math.imul(re,Ie)|0)|0)+((8191&(R=(R=R+Math.imul(re,le)|0)+Math.imul(he,Ie)|0))<<13)|0;x=((U=U+Math.imul(he,le)|0)+(R>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,Y=Math.imul(Se,_n),R=(R=Math.imul(Se,tt))+Math.imul(be,_n)|0,U=Math.imul(be,tt),Y=Y+Math.imul(Me,Pe)|0,R=(R=R+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,U=U+Math.imul(ve,Ue)|0,Y=Y+Math.imul(ge,Ie)|0,R=(R=R+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,U=U+Math.imul(ce,le)|0;var Ze=(x+(Y=Y+Math.imul(re,ze)|0)|0)+((8191&(R=(R=R+Math.imul(re,Je)|0)+Math.imul(he,ze)|0))<<13)|0;x=((U=U+Math.imul(he,Je)|0)+(R>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,Y=Math.imul($e,_n),R=(R=Math.imul($e,tt))+Math.imul(dt,_n)|0,U=Math.imul(dt,tt),Y=Y+Math.imul(Se,Pe)|0,R=(R=R+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,U=U+Math.imul(be,Ue)|0,Y=Y+Math.imul(Me,Ie)|0,R=(R=R+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,U=U+Math.imul(ve,le)|0,Y=Y+Math.imul(ge,ze)|0,R=(R=R+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,U=U+Math.imul(ce,Je)|0;var Ge=(x+(Y=Y+Math.imul(re,zt)|0)|0)+((8191&(R=(R=R+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0))<<13)|0;x=((U=U+Math.imul(he,Ye)|0)+(R>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,Y=Math.imul(Et,_n),R=(R=Math.imul(Et,tt))+Math.imul(rt,_n)|0,U=Math.imul(rt,tt),Y=Y+Math.imul($e,Pe)|0,R=(R=R+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,U=U+Math.imul(dt,Ue)|0,Y=Y+Math.imul(Se,Ie)|0,R=(R=R+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,U=U+Math.imul(be,le)|0,Y=Y+Math.imul(Me,ze)|0,R=(R=R+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,U=U+Math.imul(ve,Je)|0,Y=Y+Math.imul(ge,zt)|0,R=(R=R+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,U=U+Math.imul(ce,Ye)|0;var Pt=(x+(Y=Y+Math.imul(re,it)|0)|0)+((8191&(R=(R=R+Math.imul(re,He)|0)+Math.imul(he,it)|0))<<13)|0;x=((U=U+Math.imul(he,He)|0)+(R>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,Y=Math.imul(qt,_n),R=(R=Math.imul(qt,tt))+Math.imul(S,_n)|0,U=Math.imul(S,tt),Y=Y+Math.imul(Et,Pe)|0,R=(R=R+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,U=U+Math.imul(rt,Ue)|0,Y=Y+Math.imul($e,Ie)|0,R=(R=R+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,U=U+Math.imul(dt,le)|0,Y=Y+Math.imul(Se,ze)|0,R=(R=R+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,U=U+Math.imul(be,Je)|0,Y=Y+Math.imul(Me,zt)|0,R=(R=R+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,U=U+Math.imul(ve,Ye)|0,Y=Y+Math.imul(ge,it)|0,R=(R=R+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,U=U+Math.imul(ce,He)|0;var Yt=(x+(Y=Y+Math.imul(re,we)|0)|0)+((8191&(R=(R=R+Math.imul(re,We)|0)+Math.imul(he,we)|0))<<13)|0;x=((U=U+Math.imul(he,We)|0)+(R>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,Y=Math.imul(de,_n),R=(R=Math.imul(de,tt))+Math.imul(ae,_n)|0,U=Math.imul(ae,tt),Y=Y+Math.imul(qt,Pe)|0,R=(R=R+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,U=U+Math.imul(S,Ue)|0,Y=Y+Math.imul(Et,Ie)|0,R=(R=R+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,U=U+Math.imul(rt,le)|0,Y=Y+Math.imul($e,ze)|0,R=(R=R+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,U=U+Math.imul(dt,Je)|0,Y=Y+Math.imul(Se,zt)|0,R=(R=R+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,U=U+Math.imul(be,Ye)|0,Y=Y+Math.imul(Me,it)|0,R=(R=R+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,U=U+Math.imul(ve,He)|0,Y=Y+Math.imul(ge,we)|0,R=(R=R+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,U=U+Math.imul(ce,We)|0;var bn=(x+(Y=Y+Math.imul(re,St)|0)|0)+((8191&(R=(R=R+Math.imul(re,At)|0)+Math.imul(he,St)|0))<<13)|0;x=((U=U+Math.imul(he,At)|0)+(R>>>13)|0)+(bn>>>26)|0,bn&=67108863,Y=Math.imul(Le,_n),R=(R=Math.imul(Le,tt))+Math.imul(et,_n)|0,U=Math.imul(et,tt),Y=Y+Math.imul(de,Pe)|0,R=(R=R+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,U=U+Math.imul(ae,Ue)|0,Y=Y+Math.imul(qt,Ie)|0,R=(R=R+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,U=U+Math.imul(S,le)|0,Y=Y+Math.imul(Et,ze)|0,R=(R=R+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,U=U+Math.imul(rt,Je)|0,Y=Y+Math.imul($e,zt)|0,R=(R=R+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,U=U+Math.imul(dt,Ye)|0,Y=Y+Math.imul(Se,it)|0,R=(R=R+Math.imul(Se,He)|0)+Math.imul(be,it)|0,U=U+Math.imul(be,He)|0,Y=Y+Math.imul(Me,we)|0,R=(R=R+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,U=U+Math.imul(ve,We)|0,Y=Y+Math.imul(ge,St)|0,R=(R=R+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,U=U+Math.imul(ce,At)|0;var $n=(x+(Y=Y+Math.imul(re,mt)|0)|0)+((8191&(R=(R=R+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;x=((U=U+Math.imul(he,It)|0)+(R>>>13)|0)+($n>>>26)|0,$n&=67108863,Y=Math.imul(Vt,_n),R=(R=Math.imul(Vt,tt))+Math.imul(hn,_n)|0,U=Math.imul(hn,tt),Y=Y+Math.imul(Le,Pe)|0,R=(R=R+Math.imul(Le,Ue)|0)+Math.imul(et,Pe)|0,U=U+Math.imul(et,Ue)|0,Y=Y+Math.imul(de,Ie)|0,R=(R=R+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,U=U+Math.imul(ae,le)|0,Y=Y+Math.imul(qt,ze)|0,R=(R=R+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,U=U+Math.imul(S,Je)|0,Y=Y+Math.imul(Et,zt)|0,R=(R=R+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,U=U+Math.imul(rt,Ye)|0,Y=Y+Math.imul($e,it)|0,R=(R=R+Math.imul($e,He)|0)+Math.imul(dt,it)|0,U=U+Math.imul(dt,He)|0,Y=Y+Math.imul(Se,we)|0,R=(R=R+Math.imul(Se,We)|0)+Math.imul(be,we)|0,U=U+Math.imul(be,We)|0,Y=Y+Math.imul(Me,St)|0,R=(R=R+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,U=U+Math.imul(ve,At)|0,Y=Y+Math.imul(ge,mt)|0,R=(R=R+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0,U=U+Math.imul(ce,It)|0;var oi=(x+(Y=Y+Math.imul(re,In)|0)|0)+((8191&(R=(R=R+Math.imul(re,ei)|0)+Math.imul(he,In)|0))<<13)|0;x=((U=U+Math.imul(he,ei)|0)+(R>>>13)|0)+(oi>>>26)|0,oi&=67108863,Y=Math.imul(Vt,Pe),R=(R=Math.imul(Vt,Ue))+Math.imul(hn,Pe)|0,U=Math.imul(hn,Ue),Y=Y+Math.imul(Le,Ie)|0,R=(R=R+Math.imul(Le,le)|0)+Math.imul(et,Ie)|0,U=U+Math.imul(et,le)|0,Y=Y+Math.imul(de,ze)|0,R=(R=R+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,U=U+Math.imul(ae,Je)|0,Y=Y+Math.imul(qt,zt)|0,R=(R=R+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,U=U+Math.imul(S,Ye)|0,Y=Y+Math.imul(Et,it)|0,R=(R=R+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,U=U+Math.imul(rt,He)|0,Y=Y+Math.imul($e,we)|0,R=(R=R+Math.imul($e,We)|0)+Math.imul(dt,we)|0,U=U+Math.imul(dt,We)|0,Y=Y+Math.imul(Se,St)|0,R=(R=R+Math.imul(Se,At)|0)+Math.imul(be,St)|0,U=U+Math.imul(be,At)|0,Y=Y+Math.imul(Me,mt)|0,R=(R=R+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0,U=U+Math.imul(ve,It)|0;var Ii=(x+(Y=Y+Math.imul(ge,In)|0)|0)+((8191&(R=(R=R+Math.imul(ge,ei)|0)+Math.imul(ce,In)|0))<<13)|0;x=((U=U+Math.imul(ce,ei)|0)+(R>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,Y=Math.imul(Vt,Ie),R=(R=Math.imul(Vt,le))+Math.imul(hn,Ie)|0,U=Math.imul(hn,le),Y=Y+Math.imul(Le,ze)|0,R=(R=R+Math.imul(Le,Je)|0)+Math.imul(et,ze)|0,U=U+Math.imul(et,Je)|0,Y=Y+Math.imul(de,zt)|0,R=(R=R+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,U=U+Math.imul(ae,Ye)|0,Y=Y+Math.imul(qt,it)|0,R=(R=R+Math.imul(qt,He)|0)+Math.imul(S,it)|0,U=U+Math.imul(S,He)|0,Y=Y+Math.imul(Et,we)|0,R=(R=R+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,U=U+Math.imul(rt,We)|0,Y=Y+Math.imul($e,St)|0,R=(R=R+Math.imul($e,At)|0)+Math.imul(dt,St)|0,U=U+Math.imul(dt,At)|0,Y=Y+Math.imul(Se,mt)|0,R=(R=R+Math.imul(Se,It)|0)+Math.imul(be,mt)|0,U=U+Math.imul(be,It)|0;var Ei=(x+(Y=Y+Math.imul(Me,In)|0)|0)+((8191&(R=(R=R+Math.imul(Me,ei)|0)+Math.imul(ve,In)|0))<<13)|0;x=((U=U+Math.imul(ve,ei)|0)+(R>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,Y=Math.imul(Vt,ze),R=(R=Math.imul(Vt,Je))+Math.imul(hn,ze)|0,U=Math.imul(hn,Je),Y=Y+Math.imul(Le,zt)|0,R=(R=R+Math.imul(Le,Ye)|0)+Math.imul(et,zt)|0,U=U+Math.imul(et,Ye)|0,Y=Y+Math.imul(de,it)|0,R=(R=R+Math.imul(de,He)|0)+Math.imul(ae,it)|0,U=U+Math.imul(ae,He)|0,Y=Y+Math.imul(qt,we)|0,R=(R=R+Math.imul(qt,We)|0)+Math.imul(S,we)|0,U=U+Math.imul(S,We)|0,Y=Y+Math.imul(Et,St)|0,R=(R=R+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,U=U+Math.imul(rt,At)|0,Y=Y+Math.imul($e,mt)|0,R=(R=R+Math.imul($e,It)|0)+Math.imul(dt,mt)|0,U=U+Math.imul(dt,It)|0;var Nt=(x+(Y=Y+Math.imul(Se,In)|0)|0)+((8191&(R=(R=R+Math.imul(Se,ei)|0)+Math.imul(be,In)|0))<<13)|0;x=((U=U+Math.imul(be,ei)|0)+(R>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,Y=Math.imul(Vt,zt),R=(R=Math.imul(Vt,Ye))+Math.imul(hn,zt)|0,U=Math.imul(hn,Ye),Y=Y+Math.imul(Le,it)|0,R=(R=R+Math.imul(Le,He)|0)+Math.imul(et,it)|0,U=U+Math.imul(et,He)|0,Y=Y+Math.imul(de,we)|0,R=(R=R+Math.imul(de,We)|0)+Math.imul(ae,we)|0,U=U+Math.imul(ae,We)|0,Y=Y+Math.imul(qt,St)|0,R=(R=R+Math.imul(qt,At)|0)+Math.imul(S,St)|0,U=U+Math.imul(S,At)|0,Y=Y+Math.imul(Et,mt)|0,R=(R=R+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0,U=U+Math.imul(rt,It)|0;var nn=(x+(Y=Y+Math.imul($e,In)|0)|0)+((8191&(R=(R=R+Math.imul($e,ei)|0)+Math.imul(dt,In)|0))<<13)|0;x=((U=U+Math.imul(dt,ei)|0)+(R>>>13)|0)+(nn>>>26)|0,nn&=67108863,Y=Math.imul(Vt,it),R=(R=Math.imul(Vt,He))+Math.imul(hn,it)|0,U=Math.imul(hn,He),Y=Y+Math.imul(Le,we)|0,R=(R=R+Math.imul(Le,We)|0)+Math.imul(et,we)|0,U=U+Math.imul(et,We)|0,Y=Y+Math.imul(de,St)|0,R=(R=R+Math.imul(de,At)|0)+Math.imul(ae,St)|0,U=U+Math.imul(ae,At)|0,Y=Y+Math.imul(qt,mt)|0,R=(R=R+Math.imul(qt,It)|0)+Math.imul(S,mt)|0,U=U+Math.imul(S,It)|0;var en=(x+(Y=Y+Math.imul(Et,In)|0)|0)+((8191&(R=(R=R+Math.imul(Et,ei)|0)+Math.imul(rt,In)|0))<<13)|0;x=((U=U+Math.imul(rt,ei)|0)+(R>>>13)|0)+(en>>>26)|0,en&=67108863,Y=Math.imul(Vt,we),R=(R=Math.imul(Vt,We))+Math.imul(hn,we)|0,U=Math.imul(hn,We),Y=Y+Math.imul(Le,St)|0,R=(R=R+Math.imul(Le,At)|0)+Math.imul(et,St)|0,U=U+Math.imul(et,At)|0,Y=Y+Math.imul(de,mt)|0,R=(R=R+Math.imul(de,It)|0)+Math.imul(ae,mt)|0,U=U+Math.imul(ae,It)|0;var Nn=(x+(Y=Y+Math.imul(qt,In)|0)|0)+((8191&(R=(R=R+Math.imul(qt,ei)|0)+Math.imul(S,In)|0))<<13)|0;x=((U=U+Math.imul(S,ei)|0)+(R>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,Y=Math.imul(Vt,St),R=(R=Math.imul(Vt,At))+Math.imul(hn,St)|0,U=Math.imul(hn,At),Y=Y+Math.imul(Le,mt)|0,R=(R=R+Math.imul(Le,It)|0)+Math.imul(et,mt)|0,U=U+Math.imul(et,It)|0;var jn=(x+(Y=Y+Math.imul(de,In)|0)|0)+((8191&(R=(R=R+Math.imul(de,ei)|0)+Math.imul(ae,In)|0))<<13)|0;x=((U=U+Math.imul(ae,ei)|0)+(R>>>13)|0)+(jn>>>26)|0,jn&=67108863,Y=Math.imul(Vt,mt),R=(R=Math.imul(Vt,It))+Math.imul(hn,mt)|0,U=Math.imul(hn,It);var Un=(x+(Y=Y+Math.imul(Le,In)|0)|0)+((8191&(R=(R=R+Math.imul(Le,ei)|0)+Math.imul(et,In)|0))<<13)|0;x=((U=U+Math.imul(et,ei)|0)+(R>>>13)|0)+(Un>>>26)|0,Un&=67108863;var ui=(x+(Y=Math.imul(Vt,In))|0)+((8191&(R=(R=Math.imul(Vt,ei))+Math.imul(hn,In)|0))<<13)|0;return x=((U=Math.imul(hn,ei))+(R>>>13)|0)+(ui>>>26)|0,ui&=67108863,a[0]=Li,a[1]=kt,a[2]=Ot,a[3]=Ze,a[4]=Ge,a[5]=Pt,a[6]=Yt,a[7]=bn,a[8]=$n,a[9]=oi,a[10]=Ii,a[11]=Ei,a[12]=Nt,a[13]=nn,a[14]=en,a[15]=Nn,a[16]=jn,a[17]=Un,a[18]=ui,0!==x&&(a[19]=x,T.length++),T};function Q(m,u,_){_.negative=u.negative^m.negative,_.length=m.length+u.length;for(var T=0,P=0,C=0;C<_.length-1;C++){var a=P;P=0;for(var x=67108863&T,Y=Math.min(C,u.length-1),R=Math.max(0,C-m.length+1);R<=Y;R++){var he=(0|m.words[C-R])*(0|u.words[R]),Oe=67108863&he;x=67108863&(Oe=Oe+x|0),P+=(a=(a=a+(he/67108864|0)|0)+(Oe>>>26)|0)>>>26,a&=67108863}_.words[C]=x,T=a,a=P}return 0!==T?_.words[C]=T:_.length--,_._strip()}function $(m,u,_){return Q(m,u,_)}function ie(m,u){this.x=m,this.y=u}Math.imul||(V=ee),o.prototype.mulTo=function(u,_){var P=this.length+u.length;return 10===this.length&&10===u.length?V(this,u,_):P<63?ee(this,u,_):P<1024?Q(this,u,_):$(this,u,_)},ie.prototype.makeRBT=function(u){for(var _=new Array(u),T=o.prototype._countBits(u)-1,P=0;P>=1;return P},ie.prototype.permute=function(u,_,T,P,C,a){for(var x=0;x>>=1)C++;return 1<>>=13),C>>>=13;for(a=2*_;a>=26,T+=C/67108864|0,T+=a>>>26,this.words[P]=67108863&a}return 0!==T&&(this.words[P]=T,this.length++),0===u&&(this.length=1,this._normSign()),_?this.ineg():this},o.prototype.muln=function(u){return this.clone().imuln(u)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(u){var _=function Z(m){for(var u=new Array(m.bitLength()),_=0;_>>_%26&1;return u}(u);if(0===_.length)return new o(1);for(var T=this,P=0;P<_.length&&0===_[P];P++,T=T.sqr());if(++P<_.length)for(var C=T.sqr();P<_.length;P++,C=C.sqr())0!==_[P]&&(T=T.mul(C));return T},o.prototype.iushln=function(u){p("number"==typeof u&&u>=0);var C,_=u%26,T=(u-_)/26,P=67108863>>>26-_<<26-_;if(0!==_){var a=0;for(C=0;C>>26-_}a&&(this.words[C]=a,this.length++)}if(0!==T){for(C=this.length-1;C>=0;C--)this.words[C+T]=this.words[C];for(C=0;C=0),P=_?(_-_%26)/26:0;var C=u%26,a=Math.min((u-C)/26,this.length),x=67108863^67108863>>>C<a)for(this.length-=a,R=0;R=0&&(0!==U||R>=P);R--){var fe=0|this.words[R];this.words[R]=U<<26-C|fe>>>C,U=fe&x}return Y&&0!==U&&(Y.words[Y.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(u,_,T){return p(0===this.negative),this.iushrn(u,_,T)},o.prototype.shln=function(u){return this.clone().ishln(u)},o.prototype.ushln=function(u){return this.clone().iushln(u)},o.prototype.shrn=function(u){return this.clone().ishrn(u)},o.prototype.ushrn=function(u){return this.clone().iushrn(u)},o.prototype.testn=function(u){p("number"==typeof u&&u>=0);var _=u%26,T=(u-_)/26;return!(this.length<=T||!(this.words[T]&1<<_))},o.prototype.imaskn=function(u){p("number"==typeof u&&u>=0);var _=u%26,T=(u-_)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=T?this:(0!==_&&T++,this.length=Math.min(T,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),0===this.length&&(this.words[0]=0,this.length=1),this._strip())},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return p("number"==typeof u),p(u<67108864),u<0?this.isubn(-u):0!==this.negative?1===this.length&&(0|this.words[0])<=u?(this.words[0]=u-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},o.prototype._iaddn=function(u){this.words[0]+=u;for(var _=0;_=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},o.prototype.isubn=function(u){if(p("number"==typeof u),p(u<67108864),u<0)return this.iaddn(-u);if(0!==this.negative)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_>26)-(Y/67108864|0),this.words[C+T]=67108863&a}for(;C>26,this.words[C+T]=67108863&a;if(0===x)return this._strip();for(p(-1===x),x=0,C=0;C>26,this.words[C]=67108863&a;return this.negative=1,this._strip()},o.prototype._wordDiv=function(u,_){var T,P=this.clone(),C=u,a=0|C.words[C.length-1];0!=(T=26-this._countBits(a))&&(C=C.ushln(T),P.iushln(T),a=0|C.words[C.length-1]);var R,Y=P.length-C.length;if("mod"!==_){(R=new o(null)).length=Y+1,R.words=new Array(R.length);for(var U=0;U=0;re--){var he=67108864*(0|P.words[C.length+re])+(0|P.words[C.length+re-1]);for(he=Math.min(he/a|0,67108863),P._ishlnsubmul(C,he,re);0!==P.negative;)he--,P.negative=0,P._ishlnsubmul(C,1,re),P.isZero()||(P.negative^=1);R&&(R.words[re]=he)}return R&&R._strip(),P._strip(),"div"!==_&&0!==T&&P.iushrn(T),{div:R||null,mod:P}},o.prototype.divmod=function(u,_,T){return p(!u.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===u.negative?(a=this.neg().divmod(u,_),"mod"!==_&&(P=a.div.neg()),"div"!==_&&(C=a.mod.neg(),T&&0!==C.negative&&C.iadd(u)),{div:P,mod:C}):0===this.negative&&0!==u.negative?(a=this.divmod(u.neg(),_),"mod"!==_&&(P=a.div.neg()),{div:P,mod:a.mod}):0!==(this.negative&u.negative)?(a=this.neg().divmod(u.neg(),_),"div"!==_&&(C=a.mod.neg(),T&&0!==C.negative&&C.isub(u)),{div:a.div,mod:C}):u.length>this.length||this.cmp(u)<0?{div:new o(0),mod:this}:1===u.length?"div"===_?{div:this.divn(u.words[0]),mod:null}:"mod"===_?{div:null,mod:new o(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new o(this.modrn(u.words[0]))}:this._wordDiv(u,_);var P,C,a},o.prototype.div=function(u){return this.divmod(u,"div",!1).div},o.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},o.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},o.prototype.divRound=function(u){var _=this.divmod(u);if(_.mod.isZero())return _.div;var T=_.mod.abs(),P=u.abs().iushrn(1),C=1&u.words[0],a=T.cmp(P);if(a<0||1===C&&0===a)return _.div;var x=new o(1);return x.negative=this.negative^u.negative,_.div.iadd(x)},o.prototype.modrn=function(u){var _=u<0;_&&(u=-u),p(u<=67108863);for(var T=(1<<26)%u,P=0,C=this.length-1;C>=0;C--)P=(T*P+(0|this.words[C]))%u;return _?-P:P},o.prototype.modn=function(u){return this.modrn(u)},o.prototype.idivn=function(u){var _=u<0;_&&(u=-u),p(u<=67108863);for(var T=0,P=this.length-1;P>=0;P--){var C=(0|this.words[P])+67108864*T;this.words[P]=C/u|0,T=C%u}return this._strip(),_?this.ineg():this},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){p(0===u.negative),p(!u.isZero());var _=this,T=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var P=new o(1),C=new o(0),a=new o(0),x=new o(1),Y=0;_.isEven()&&T.isEven();)_.iushrn(1),T.iushrn(1),++Y;for(var R=T.clone(),U=_.clone();!_.isZero();){for(var fe=0,re=1;0===(_.words[0]&re)&&fe<26;++fe,re<<=1);if(fe>0)for(_.iushrn(fe);fe-- >0;)(P.isOdd()||C.isOdd())&&(P.iadd(R),C.isub(U)),P.iushrn(1),C.iushrn(1);for(var he=0,Oe=1;0===(T.words[0]&Oe)&&he<26;++he,Oe<<=1);if(he>0)for(T.iushrn(he);he-- >0;)(a.isOdd()||x.isOdd())&&(a.iadd(R),x.isub(U)),a.iushrn(1),x.iushrn(1);_.cmp(T)>=0?(_.isub(T),P.isub(a),C.isub(x)):(T.isub(_),a.isub(P),x.isub(C))}return{a,b:x,gcd:T.iushln(Y)}},o.prototype._invmp=function(u){p(0===u.negative),p(!u.isZero());var fe,_=this,T=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var P=new o(1),C=new o(0),a=T.clone();_.cmpn(1)>0&&T.cmpn(1)>0;){for(var x=0,Y=1;0===(_.words[0]&Y)&&x<26;++x,Y<<=1);if(x>0)for(_.iushrn(x);x-- >0;)P.isOdd()&&P.iadd(a),P.iushrn(1);for(var R=0,U=1;0===(T.words[0]&U)&&R<26;++R,U<<=1);if(R>0)for(T.iushrn(R);R-- >0;)C.isOdd()&&C.iadd(a),C.iushrn(1);_.cmp(T)>=0?(_.isub(T),P.isub(C)):(T.isub(_),C.isub(P))}return(fe=0===_.cmpn(1)?P:C).cmpn(0)<0&&fe.iadd(u),fe},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),T=u.clone();_.negative=0,T.negative=0;for(var P=0;_.isEven()&&T.isEven();P++)_.iushrn(1),T.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;T.isEven();)T.iushrn(1);var C=_.cmp(T);if(C<0){var a=_;_=T,T=a}else if(0===C||0===T.cmpn(1))break;_.isub(T)}return T.iushln(P)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){p("number"==typeof u);var _=u%26,T=(u-_)/26,P=1<<_;if(this.length<=T)return this._expand(T+1),this.words[T]|=P,this;for(var C=P,a=T;0!==C&&a>>26,this.words[a]=x&=67108863}return 0!==C&&(this.words[a]=C,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(u){var T,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)T=1;else{_&&(u=-u),p(u<=67108863,"Number is too big");var P=0|this.words[0];T=P===u?0:Pu.length)return 1;if(this.length=0;T--){var P=0|this.words[T],C=0|u.words[T];if(P!==C){PC&&(_=1);break}}return _},o.prototype.gtn=function(u){return 1===this.cmpn(u)},o.prototype.gt=function(u){return 1===this.cmp(u)},o.prototype.gten=function(u){return this.cmpn(u)>=0},o.prototype.gte=function(u){return this.cmp(u)>=0},o.prototype.ltn=function(u){return-1===this.cmpn(u)},o.prototype.lt=function(u){return-1===this.cmp(u)},o.prototype.lten=function(u){return this.cmpn(u)<=0},o.prototype.lte=function(u){return this.cmp(u)<=0},o.prototype.eqn=function(u){return 0===this.cmpn(u)},o.prototype.eq=function(u){return 0===this.cmp(u)},o.red=function(u){return new t(u)},o.prototype.toRed=function(u){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(u){return this.red=u,this},o.prototype.forceRed=function(u){return p(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return p(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var _e={k256:null,p224:null,p192:null,p25519:null};function ye(m,u){this.name=m,this.p=new o(u,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function se(){ye.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function pe(){ye.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Ee(){ye.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function L(){ye.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(m){if("string"==typeof m){var u=o._prime(m);this.m=u.p,this.prime=u}else p(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}function s(m){t.call(this,m),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ye.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},ye.prototype.ireduce=function(u){var T,_=u;do{this.split(_,this.tmp),T=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(T>this.n);var P=T0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},ye.prototype.split=function(u,_){u.iushrn(this.n,0,_)},ye.prototype.imulK=function(u){return u.imul(this.k)},D(se,ye),se.prototype.split=function(u,_){for(var T=4194303,P=Math.min(u.length,9),C=0;C>>22,a=x}u.words[C-10]=a>>>=22,u.length-=0===a&&u.length>10?10:9},se.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,T=0;T>>=26,u.words[T]=C,_=P}return 0!==_&&(u.words[u.length++]=_),u},o._prime=function(u){if(_e[u])return _e[u];var _;if("k256"===u)_=new se;else if("p224"===u)_=new pe;else if("p192"===u)_=new Ee;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new L}return _e[u]=_,_},t.prototype._verify1=function(u){p(0===u.negative,"red works only with positives"),p(u.red,"red works only with red numbers")},t.prototype._verify2=function(u,_){p(0===(u.negative|_.negative),"red works only with positives"),p(u.red&&u.red===_.red,"red works only with red numbers")},t.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(w(u,u.umod(this.m)._forceRed(this)),u)},t.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},t.prototype.add=function(u,_){this._verify2(u,_);var T=u.add(_);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},t.prototype.iadd=function(u,_){this._verify2(u,_);var T=u.iadd(_);return T.cmp(this.m)>=0&&T.isub(this.m),T},t.prototype.sub=function(u,_){this._verify2(u,_);var T=u.sub(_);return T.cmpn(0)<0&&T.iadd(this.m),T._forceRed(this)},t.prototype.isub=function(u,_){this._verify2(u,_);var T=u.isub(_);return T.cmpn(0)<0&&T.iadd(this.m),T},t.prototype.shl=function(u,_){return this._verify1(u),this.imod(u.ushln(_))},t.prototype.imul=function(u,_){return this._verify2(u,_),this.imod(u.imul(_))},t.prototype.mul=function(u,_){return this._verify2(u,_),this.imod(u.mul(_))},t.prototype.isqr=function(u){return this.imul(u,u.clone())},t.prototype.sqr=function(u){return this.mul(u,u)},t.prototype.sqrt=function(u){if(u.isZero())return u.clone();var _=this.m.andln(3);if(p(_%2==1),3===_){var T=this.m.add(new o(1)).iushrn(2);return this.pow(u,T)}for(var P=this.m.subn(1),C=0;!P.isZero()&&0===P.andln(1);)C++,P.iushrn(1);p(!P.isZero());var a=new o(1).toRed(this),x=a.redNeg(),Y=this.m.subn(1).iushrn(1),R=this.m.bitLength();for(R=new o(2*R*R).toRed(this);0!==this.pow(R,Y).cmp(x);)R.redIAdd(x);for(var U=this.pow(R,P),fe=this.pow(u,P.addn(1).iushrn(1)),re=this.pow(u,P),he=C;0!==re.cmp(a);){for(var Oe=re,ge=0;0!==Oe.cmp(a);ge++)Oe=Oe.redSqr();p(ge=0;C--){for(var U=_.words[C],fe=R-1;fe>=0;fe--){var re=U>>fe&1;a!==P[0]&&(a=this.sqr(a)),0!==re||0!==x?(x<<=1,x|=re,(4===++Y||0===C&&0===fe)&&(a=this.mul(a,P[x]),Y=0,x=0)):Y=0}R=26}return a},t.prototype.convertTo=function(u){var _=u.umod(this.m);return _===u?_.clone():_},t.prototype.convertFrom=function(u){var _=u.clone();return _.red=null,_},o.mont=function(u){return new s(u)},D(s,t),s.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},s.prototype.convertFrom=function(u){var _=this.imod(u.mul(this.rinv));return _.red=null,_},s.prototype.imul=function(u,_){if(u.isZero()||_.isZero())return u.words[0]=0,u.length=1,u;var T=u.imul(_),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=T.isub(P).iushrn(this.shift),a=C;return C.cmp(this.m)>=0?a=C.isub(this.m):C.cmpn(0)<0&&(a=C.iadd(this.m)),a._forceRed(this)},s.prototype.mul=function(u,_){if(u.isZero()||_.isZero())return new o(0)._forceRed(this);var T=u.mul(_),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=T.isub(P).iushrn(this.shift),a=C;return C.cmp(this.m)>=0?a=C.isub(this.m):C.cmpn(0)<0&&(a=C.iadd(this.m)),a._forceRed(this)},s.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},35294(ke,q,l){var i;function g(D){this.rand=D}if(ke.exports=function(o){return i||(i=new g(null)),i.generate(o)},ke.exports.Rand=g,g.prototype.generate=function(o){return this._rand(o)},g.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var e=new Uint8Array(o),A=0;A>>24]^K[V>>>16&255]^j[Q>>>8&255]^Z[255&$]^d[pe++],_e=M[V>>>24]^K[Q>>>16&255]^j[$>>>8&255]^Z[255&ee]^d[pe++],ye=M[Q>>>24]^K[$>>>16&255]^j[ee>>>8&255]^Z[255&V]^d[pe++],se=M[$>>>24]^K[ee>>>16&255]^j[V>>>8&255]^Z[255&Q]^d[pe++],ee=ie,V=_e,Q=ye,$=se;return ie=(f[ee>>>24]<<24|f[V>>>16&255]<<16|f[Q>>>8&255]<<8|f[255&$])^d[pe++],_e=(f[V>>>24]<<24|f[Q>>>16&255]<<16|f[$>>>8&255]<<8|f[255&ee])^d[pe++],ye=(f[Q>>>24]<<24|f[$>>>16&255]<<16|f[ee>>>8&255]<<8|f[255&V])^d[pe++],se=(f[$>>>24]<<24|f[ee>>>16&255]<<16|f[V>>>8&255]<<8|f[255&Q])^d[pe++],[ie>>>=0,_e>>>=0,ye>>>=0,se>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],e=function(){for(var h=new Array(256),d=0;d<256;d++)h[d]=d<128?d<<1:d<<1^283;for(var w=[],f=[],F=[[],[],[],[]],M=[[],[],[],[]],K=0,j=0,Z=0;Z<256;++Z){var ee=j^j<<1^j<<2^j<<3^j<<4;w[K]=ee=ee>>>8^255&ee^99,f[ee]=K;var V=h[K],Q=h[V],$=h[Q],ie=257*h[ee]^16843008*ee;F[0][K]=ie<<24|ie>>>8,F[1][K]=ie<<16|ie>>>16,F[2][K]=ie<<8|ie>>>24,F[3][K]=ie,M[0][ee]=(ie=16843009*$^65537*Q^257*V^16843008*K)<<24|ie>>>8,M[1][ee]=ie<<16|ie>>>16,M[2][ee]=ie<<8|ie>>>24,M[3][ee]=ie,0===K?K=j=1:(K=V^h[h[h[$^V]]],j^=h[h[j]])}return{SBOX:w,INV_SBOX:f,SUB_MIX:F,INV_SUB_MIX:M}}();function A(h){this._key=g(h),this._reset()}A.blockSize=16,A.keySize=32,A.prototype.blockSize=A.blockSize,A.prototype.keySize=A.keySize,A.prototype._reset=function(){for(var h=this._key,d=h.length,w=d+6,f=4*(w+1),F=[],M=0;M>>24)>>>24]<<24|e.SBOX[K>>>16&255]<<16|e.SBOX[K>>>8&255]<<8|e.SBOX[255&K],K^=o[M/d|0]<<24):d>6&&M%d===4&&(K=e.SBOX[K>>>24]<<24|e.SBOX[K>>>16&255]<<16|e.SBOX[K>>>8&255]<<8|e.SBOX[255&K]),F[M]=F[M-d]^K}for(var j=[],Z=0;Z>>24]]^e.INV_SUB_MIX[1][e.SBOX[V>>>16&255]]^e.INV_SUB_MIX[2][e.SBOX[V>>>8&255]]^e.INV_SUB_MIX[3][e.SBOX[255&V]]}this._nRounds=w,this._keySchedule=F,this._invKeySchedule=j},A.prototype.encryptBlockRaw=function(h){return D(h=g(h),this._keySchedule,e.SUB_MIX,e.SBOX,this._nRounds)},A.prototype.encryptBlock=function(h){var d=this.encryptBlockRaw(h),w=i.allocUnsafe(16);return w.writeUInt32BE(d[0],0),w.writeUInt32BE(d[1],4),w.writeUInt32BE(d[2],8),w.writeUInt32BE(d[3],12),w},A.prototype.decryptBlock=function(h){var d=(h=g(h))[1];h[1]=h[3],h[3]=d;var w=D(h,this._invKeySchedule,e.INV_SUB_MIX,e.INV_SBOX,this._nRounds),f=i.allocUnsafe(16);return f.writeUInt32BE(w[0],0),f.writeUInt32BE(w[3],4),f.writeUInt32BE(w[2],8),f.writeUInt32BE(w[1],12),f},A.prototype.scrub=function(){p(this._keySchedule),p(this._invKeySchedule),p(this._key)},ke.exports.AES=A},19307(ke,q,l){var i=l(12375),g=l(27054).Buffer,p=l(3247),D=l(71993),o=l(85917),e=l(13546),A=l(95725);function w(f,F,M,K){p.call(this);var j=g.alloc(4,0);this._cipher=new i.AES(F);var Z=this._cipher.encryptBlock(j);this._ghash=new o(Z),M=function d(f,F,M){if(12===F.length)return f._finID=g.concat([F,g.from([0,0,0,1])]),g.concat([F,g.from([0,0,0,2])]);var K=new o(M),j=F.length,Z=j%16;K.update(F),Z&&K.update(g.alloc(Z=16-Z,0)),K.update(g.alloc(8,0));var ee=8*j,V=g.alloc(8);V.writeUIntBE(ee,0,8),K.update(V),f._finID=K.state;var Q=g.from(f._finID);return A(Q),Q}(this,M,Z),this._prev=g.from(M),this._cache=g.allocUnsafe(0),this._secCache=g.allocUnsafe(0),this._decrypt=K,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}D(w,p),w.prototype._update=function(f){if(!this._called&&this._alen){var F=16-this._alen%16;F<16&&(F=g.alloc(F,0),this._ghash.update(F))}this._called=!0;var M=this._mode.encrypt(this,f);return this._ghash.update(this._decrypt?f:M),this._len+=f.length,M},w.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=e(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function h(f,F){var M=0;f.length!==F.length&&M++;for(var K=Math.min(f.length,F.length),j=0;j16)throw new Error("unable to decrypt data");for(var Z=-1;++Z16)return j=this.cache.slice(0,16),this.cache=this.cache.slice(16),j}else if(this.cache.length>=16)return j=this.cache.slice(0,16),this.cache=this.cache.slice(16),j;return null},w.prototype.flush=function(){if(this.cache.length)return this.cache},q.createDecipher=function M(K,j){var Z=p[K.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");var ee=A(j,!1,Z.key,Z.iv);return F(K,ee.key,ee.iv)},q.createDecipheriv=F},350(ke,q,l){var i=l(60503),g=l(19307),p=l(27054).Buffer,D=l(91821),o=l(3247),e=l(12375),A=l(18211);function d(K,j,Z){o.call(this),this._cache=new f,this._cipher=new e.AES(j),this._prev=p.from(Z),this._mode=K,this._autopadding=!0}l(71993)(d,o),d.prototype._update=function(K){this._cache.add(K);for(var j,Z,ee=[];j=this._cache.get();)Z=this._mode.encrypt(this,j),ee.push(Z);return p.concat(ee)};var w=p.alloc(16,16);function f(){this.cache=p.allocUnsafe(0)}function F(K,j,Z){var ee=i[K.toLowerCase()];if(!ee)throw new TypeError("invalid suite type");if("string"==typeof j&&(j=p.from(j)),j.length!==ee.key/8)throw new TypeError("invalid key length "+j.length);if("string"==typeof Z&&(Z=p.from(Z)),"GCM"!==ee.mode&&Z.length!==ee.iv)throw new TypeError("invalid iv length "+Z.length);return"stream"===ee.type?new D(ee.module,j,Z):"auth"===ee.type?new g(ee.module,j,Z):new d(ee.module,j,Z)}d.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(w))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(K){return this._autopadding=!!K,this},f.prototype.add=function(K){this.cache=p.concat([this.cache,K])},f.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},f.prototype.flush=function(){for(var K=16-this.cache.length,j=p.allocUnsafe(K),Z=-1;++Z>>0,0),A.writeUInt32BE(e[1]>>>0,4),A.writeUInt32BE(e[2]>>>0,8),A.writeUInt32BE(e[3]>>>0,12),A}function o(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}o.prototype.ghash=function(e){for(var A=-1;++A0;h--)e[h]=e[h]>>>1|(1&e[h-1])<<31;e[0]=e[0]>>>1,w&&(e[0]=e[0]^225<<24)}this.state=D(A)},o.prototype.update=function(e){this.cache=i.concat([this.cache,e]);for(var A;this.cache.length>=16;)A=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(A)},o.prototype.final=function(e,A){return this.cache.length&&this.ghash(i.concat([this.cache,g],16)),this.ghash(D([0,e,0,A])),this.state},ke.exports=o},95725(ke){ke.exports=function q(l){for(var g,i=l.length;i--;){if(255!==(g=l.readUInt8(i))){g++,l.writeUInt8(g,i);break}l.writeUInt8(0,i)}}},34133(ke,q,l){var i=l(13546);q.encrypt=function(g,p){var D=i(p,g._prev);return g._prev=g._cipher.encryptBlock(D),g._prev},q.decrypt=function(g,p){var D=g._prev;g._prev=p;var o=g._cipher.decryptBlock(p);return i(o,D)}},17090(ke,q,l){var i=l(27054).Buffer,g=l(13546);function p(D,o,e){var A=o.length,h=g(o,D._cache);return D._cache=D._cache.slice(A),D._prev=i.concat([D._prev,e?o:h]),h}q.encrypt=function(D,o,e){for(var h,A=i.allocUnsafe(0);o.length;){if(0===D._cache.length&&(D._cache=D._cipher.encryptBlock(D._prev),D._prev=i.allocUnsafe(0)),!(D._cache.length<=o.length)){A=i.concat([A,p(D,o,e)]);break}A=i.concat([A,p(D,o.slice(0,h=D._cache.length),e)]),o=o.slice(h)}return A}},71039(ke,q,l){var i=l(27054).Buffer;function g(D,o,e){for(var f,F,h=-1,w=0;++h<8;)w+=(128&(F=D._cipher.encryptBlock(D._prev)[0]^(f=o&1<<7-h?128:0)))>>h%8,D._prev=p(D._prev,e?f:F);return w}function p(D,o){var e=D.length,A=-1,h=i.allocUnsafe(D.length);for(D=i.concat([D,i.from([o])]);++A>7;return h}q.encrypt=function(D,o,e){for(var A=o.length,h=i.allocUnsafe(A),d=-1;++d=0||!d.umod(A.prime1)||!d.umod(A.prime2));return d}function e(A,h){var d=function o(A){var h=D(A);return{blinder:h.toRed(i.mont(A.modulus)).redPow(new i(A.publicExponent)).fromRed(),unblinder:h.invm(A.modulus)}}(h),w=h.modulus.byteLength(),f=new i(A).mul(d.blinder).umod(h.modulus),F=f.toRed(i.mont(h.prime1)),M=f.toRed(i.mont(h.prime2)),K=h.coefficient,j=h.prime1,Z=h.prime2,ee=F.redPow(h.exponent1).fromRed(),V=M.redPow(h.exponent2).fromRed(),Q=ee.isub(V).imul(K).umod(j).imul(Z);return V.iadd(Q).imul(d.unblinder).umod(h.modulus).toArrayLike(p,"be",w)}e.getr=D,ke.exports=e},99560(ke,q,l){"use strict";ke.exports=l(62951)},79143(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(67211),p=l(5942),D=l(71993),o=l(43150),e=l(74754),A=l(62951);function h(F){p.Writable.call(this);var M=A[F];if(!M)throw new Error("Unknown message digest");this._hashType=M.hash,this._hash=g(M.hash),this._tag=M.id,this._signType=M.sign}function d(F){p.Writable.call(this);var M=A[F];if(!M)throw new Error("Unknown message digest");this._hash=g(M.hash),this._tag=M.id,this._signType=M.sign}function w(F){return new h(F)}function f(F){return new d(F)}Object.keys(A).forEach(function(F){A[F].id=i.from(A[F].id,"hex"),A[F.toLowerCase()]=A[F]}),D(h,p.Writable),h.prototype._write=function(M,K,j){this._hash.update(M),j()},h.prototype.update=function(M,K){return this._hash.update("string"==typeof M?i.from(M,K):M),this},h.prototype.sign=function(M,K){this.end();var j=this._hash.digest(),Z=o(j,M,this._hashType,this._signType,this._tag);return K?Z.toString(K):Z},D(d,p.Writable),d.prototype._write=function(M,K,j){this._hash.update(M),j()},d.prototype.update=function(M,K){return this._hash.update("string"==typeof M?i.from(M,K):M),this},d.prototype.verify=function(M,K,j){var Z="string"==typeof K?i.from(K,j):K;this.end();var ee=this._hash.digest();return e(Z,ee,M,this._signType,this._tag)},ke.exports={Sign:w,Verify:f,createSign:w,createVerify:f}},43150(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(56432),p=l(14105),D=l(90518).ec,o=l(917),e=l(65667),A=l(64589);function M(V,Q,$,ie){if((V=i.from(V.toArray())).length0&&$.ishrn(ie),$}function Z(V,Q,$){var ie,_e;do{for(ie=i.alloc(0);8*ie.length=0)throw new Error("invalid sig")}ke.exports=function e(w,f,F,M,K){var j=D(F);if("ec"===j.type){if("ecdsa"!==M&&"ecdsa/rsa"!==M)throw new Error("wrong public key type");return function A(w,f,F){var M=o[F.data.algorithm.curve.join(".")];if(!M)throw new Error("unknown curve "+F.data.algorithm.curve.join("."));return new p(M).verify(f,w,F.data.subjectPrivateKey.data)}(w,f,j)}if("dsa"===j.type){if("dsa"!==M)throw new Error("wrong public key type");return function h(w,f,F){var M=F.data.p,K=F.data.q,j=F.data.g,Z=F.data.pub_key,ee=D.signature.decode(w,"der"),V=ee.s,Q=ee.r;d(V,K),d(Q,K);var $=g.mont(M),ie=V.invm(K);return 0===j.toRed($).redPow(new g(f).mul(ie).mod(K)).fromRed().mul(Z.toRed($).redPow(Q.mul(ie).mod(K)).fromRed()).mod(M).mod(K).cmp(Q)}(w,f,j)}if("rsa"!==M&&"ecdsa/rsa"!==M)throw new Error("wrong public key type");f=i.concat([K,f]);for(var Z=j.modulus.byteLength(),ee=[1],V=0;f.length+ee.length+2D)throw new RangeError('The value "'+de+'" is invalid for option "size"');const ae=new Uint8Array(de);return Object.setPrototypeOf(ae,A.prototype),ae}function A(de,ae,me){if("number"==typeof de){if("string"==typeof ae)throw new TypeError('The "string" argument must be of type string. Received type number');return f(de)}return h(de,ae,me)}function h(de,ae,me){if("string"==typeof de)return function F(de,ae){if(("string"!=typeof ae||""===ae)&&(ae="utf8"),!A.isEncoding(ae))throw new TypeError("Unknown encoding: "+ae);const me=0|Q(de,ae);let Le=e(me);const et=Le.write(de,ae);return et!==me&&(Le=Le.slice(0,et)),Le}(de,ae);if(ArrayBuffer.isView(de))return function K(de){if(rt(de,Uint8Array)){const ae=new Uint8Array(de);return j(ae.buffer,ae.byteOffset,ae.byteLength)}return M(de)}(de);if(null==de)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de);if(rt(de,ArrayBuffer)||de&&rt(de.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(rt(de,SharedArrayBuffer)||de&&rt(de.buffer,SharedArrayBuffer)))return j(de,ae,me);if("number"==typeof de)throw new TypeError('The "value" argument must not be of type number. Received type number');const Le=de.valueOf&&de.valueOf();if(null!=Le&&Le!==de)return A.from(Le,ae,me);const et=function Z(de){if(A.isBuffer(de)){const ae=0|ee(de.length),me=e(ae);return 0===me.length||de.copy(me,0,0,ae),me}return void 0!==de.length?"number"!=typeof de.length||Mn(de.length)?e(0):M(de):"Buffer"===de.type&&Array.isArray(de.data)?M(de.data):void 0}(de);if(et)return et;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof de[Symbol.toPrimitive])return A.from(de[Symbol.toPrimitive]("string"),ae,me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de)}function d(de){if("number"!=typeof de)throw new TypeError('"size" argument must be of type number');if(de<0)throw new RangeError('The value "'+de+'" is invalid for option "size"')}function f(de){return d(de),e(de<0?0:0|ee(de))}function M(de){const ae=de.length<0?0:0|ee(de.length),me=e(ae);for(let Le=0;Le=D)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D.toString(16)+" bytes");return 0|de}function Q(de,ae){if(A.isBuffer(de))return de.length;if(ArrayBuffer.isView(de)||rt(de,ArrayBuffer))return de.byteLength;if("string"!=typeof de)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof de);const me=de.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===me)return 0;let et=!1;for(;;)switch(ae){case"ascii":case"latin1":case"binary":return me;case"utf8":case"utf-8":return nt(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*me;case"hex":return me>>>1;case"base64":return yt(de).length;default:if(et)return Le?-1:nt(de).length;ae=(""+ae).toLowerCase(),et=!0}}function $(de,ae,me){let Le=!1;if((void 0===ae||ae<0)&&(ae=0),ae>this.length||((void 0===me||me>this.length)&&(me=this.length),me<=0)||(me>>>=0)<=(ae>>>=0))return"";for(de||(de="utf8");;)switch(de){case"hex":return C(this,ae,me);case"utf8":case"utf-8":return m(this,ae,me);case"ascii":return T(this,ae,me);case"latin1":case"binary":return P(this,ae,me);case"base64":return s(this,ae,me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a(this,ae,me);default:if(Le)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),Le=!0}}function ie(de,ae,me){const Le=de[ae];de[ae]=de[me],de[me]=Le}function _e(de,ae,me,Le,et){if(0===de.length)return-1;if("string"==typeof me?(Le=me,me=0):me>2147483647?me=2147483647:me<-2147483648&&(me=-2147483648),Mn(me=+me)&&(me=et?0:de.length-1),me<0&&(me=de.length+me),me>=de.length){if(et)return-1;me=de.length-1}else if(me<0){if(!et)return-1;me=0}if("string"==typeof ae&&(ae=A.from(ae,Le)),A.isBuffer(ae))return 0===ae.length?-1:ye(de,ae,me,Le,et);if("number"==typeof ae)return ae&=255,"function"==typeof Uint8Array.prototype.indexOf?et?Uint8Array.prototype.indexOf.call(de,ae,me):Uint8Array.prototype.lastIndexOf.call(de,ae,me):ye(de,[ae],me,Le,et);throw new TypeError("val must be string, number or Buffer")}function ye(de,ae,me,Le,et){let _n,tn=1,Vt=de.length,hn=ae.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(de.length<2||ae.length<2)return-1;tn=2,Vt/=2,hn/=2,me/=2}function En(tt,Fe){return 1===tn?tt[Fe]:tt.readUInt16BE(Fe*tn)}if(et){let tt=-1;for(_n=me;_nVt&&(me=Vt-hn),_n=me;_n>=0;_n--){let tt=!0;for(let Fe=0;Feet&&(Le=et):Le=et;const tn=ae.length;let Vt;for(Le>tn/2&&(Le=tn/2),Vt=0;Vt>8,et=me%256,tn.push(et),tn.push(Le);return tn}(ae,de.length-me),de,me,Le)}function s(de,ae,me){return i.fromByteArray(0===ae&&me===de.length?de:de.slice(ae,me))}function m(de,ae,me){me=Math.min(de.length,me);const Le=[];let et=ae;for(;et239?4:tn>223?3:tn>191?2:1;if(et+hn<=me){let En,_n,tt,Fe;switch(hn){case 1:tn<128&&(Vt=tn);break;case 2:En=de[et+1],128==(192&En)&&(Fe=(31&tn)<<6|63&En,Fe>127&&(Vt=Fe));break;case 3:En=de[et+1],_n=de[et+2],128==(192&En)&&128==(192&_n)&&(Fe=(15&tn)<<12|(63&En)<<6|63&_n,Fe>2047&&(Fe<55296||Fe>57343)&&(Vt=Fe));break;case 4:En=de[et+1],_n=de[et+2],tt=de[et+3],128==(192&En)&&128==(192&_n)&&128==(192&tt)&&(Fe=(15&tn)<<18|(63&En)<<12|(63&_n)<<6|63&tt,Fe>65535&&Fe<1114112&&(Vt=Fe))}}null===Vt?(Vt=65533,hn=1):Vt>65535&&(Vt-=65536,Le.push(Vt>>>10&1023|55296),Vt=56320|1023&Vt),Le.push(Vt),et+=hn}return function _(de){const ae=de.length;if(ae<=u)return String.fromCharCode.apply(String,de);let me="",Le=0;for(;Leet.length?(A.isBuffer(Vt)||(Vt=A.from(Vt)),Vt.copy(et,tn)):Uint8Array.prototype.set.call(et,Vt,tn);else{if(!A.isBuffer(Vt))throw new TypeError('"list" argument must be an Array of Buffers');Vt.copy(et,tn)}tn+=Vt.length}return et},A.byteLength=Q,A.prototype._isBuffer=!0,A.prototype.swap16=function(){const ae=this.length;if(ae%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let me=0;meme&&(ae+=" ... "),""},p&&(A.prototype[p]=A.prototype.inspect),A.prototype.compare=function(ae,me,Le,et,tn){if(rt(ae,Uint8Array)&&(ae=A.from(ae,ae.offset,ae.byteLength)),!A.isBuffer(ae))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ae);if(void 0===me&&(me=0),void 0===Le&&(Le=ae?ae.length:0),void 0===et&&(et=0),void 0===tn&&(tn=this.length),me<0||Le>ae.length||et<0||tn>this.length)throw new RangeError("out of range index");if(et>=tn&&me>=Le)return 0;if(et>=tn)return-1;if(me>=Le)return 1;if(this===ae)return 0;let Vt=(tn>>>=0)-(et>>>=0),hn=(Le>>>=0)-(me>>>=0);const En=Math.min(Vt,hn),_n=this.slice(et,tn),tt=ae.slice(me,Le);for(let Fe=0;Fe>>=0,isFinite(Le)?(Le>>>=0,void 0===et&&(et="utf8")):(et=Le,Le=void 0)}const tn=this.length-me;if((void 0===Le||Le>tn)&&(Le=tn),ae.length>0&&(Le<0||me<0)||me>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");let Vt=!1;for(;;)switch(et){case"hex":return se(this,ae,me,Le);case"utf8":case"utf-8":return pe(this,ae,me,Le);case"ascii":case"latin1":case"binary":return Ee(this,ae,me,Le);case"base64":return L(this,ae,me,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,ae,me,Le);default:if(Vt)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),Vt=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const u=4096;function T(de,ae,me){let Le="";me=Math.min(de.length,me);for(let et=ae;etLe)&&(me=Le);let et="";for(let tn=ae;tnme)throw new RangeError("Trying to access beyond buffer length")}function Y(de,ae,me,Le,et,tn){if(!A.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if(ae>et||aede.length)throw new RangeError("Index out of range")}function R(de,ae,me,Le,et){Me(ae,Le,et,de,me,7);let tn=Number(ae&BigInt(4294967295));de[me++]=tn,tn>>=8,de[me++]=tn,tn>>=8,de[me++]=tn,tn>>=8,de[me++]=tn;let Vt=Number(ae>>BigInt(32)&BigInt(4294967295));return de[me++]=Vt,Vt>>=8,de[me++]=Vt,Vt>>=8,de[me++]=Vt,Vt>>=8,de[me++]=Vt,me}function U(de,ae,me,Le,et){Me(ae,Le,et,de,me,7);let tn=Number(ae&BigInt(4294967295));de[me+7]=tn,tn>>=8,de[me+6]=tn,tn>>=8,de[me+5]=tn,tn>>=8,de[me+4]=tn;let Vt=Number(ae>>BigInt(32)&BigInt(4294967295));return de[me+3]=Vt,Vt>>=8,de[me+2]=Vt,Vt>>=8,de[me+1]=Vt,Vt>>=8,de[me]=Vt,me+8}function fe(de,ae,me,Le,et,tn){if(me+Le>de.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("Index out of range")}function re(de,ae,me,Le,et){return ae=+ae,me>>>=0,et||fe(de,0,me,4),g.write(de,ae,me,Le,23,4),me+4}function he(de,ae,me,Le,et){return ae=+ae,me>>>=0,et||fe(de,0,me,8),g.write(de,ae,me,Le,52,8),me+8}A.prototype.slice=function(ae,me){const Le=this.length;(ae=~~ae)<0?(ae+=Le)<0&&(ae=0):ae>Le&&(ae=Le),(me=void 0===me?Le:~~me)<0?(me+=Le)<0&&(me=0):me>Le&&(me=Le),me>>=0,me>>>=0,Le||x(ae,me,this.length);let et=this[ae],tn=1,Vt=0;for(;++Vt>>=0,me>>>=0,Le||x(ae,me,this.length);let et=this[ae+--me],tn=1;for(;me>0&&(tn*=256);)et+=this[ae+--me]*tn;return et},A.prototype.readUint8=A.prototype.readUInt8=function(ae,me){return ae>>>=0,me||x(ae,1,this.length),this[ae]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(ae,me){return ae>>>=0,me||x(ae,2,this.length),this[ae]|this[ae+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(ae,me){return ae>>>=0,me||x(ae,2,this.length),this[ae]<<8|this[ae+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),(this[ae]|this[ae+1]<<8|this[ae+2]<<16)+16777216*this[ae+3]},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),16777216*this[ae]+(this[ae+1]<<16|this[ae+2]<<8|this[ae+3])},A.prototype.readBigUInt64LE=S(function(ae){ve(ae>>>=0,"offset");const me=this[ae],Le=this[ae+7];(void 0===me||void 0===Le)&&oe(ae,this.length-8);const et=me+256*this[++ae]+65536*this[++ae]+this[++ae]*2**24,tn=this[++ae]+256*this[++ae]+65536*this[++ae]+Le*2**24;return BigInt(et)+(BigInt(tn)<>>=0,"offset");const me=this[ae],Le=this[ae+7];(void 0===me||void 0===Le)&&oe(ae,this.length-8);const et=me*2**24+65536*this[++ae]+256*this[++ae]+this[++ae],tn=this[++ae]*2**24+65536*this[++ae]+256*this[++ae]+Le;return(BigInt(et)<>>=0,me>>>=0,Le||x(ae,me,this.length);let et=this[ae],tn=1,Vt=0;for(;++Vt=tn&&(et-=Math.pow(2,8*me)),et},A.prototype.readIntBE=function(ae,me,Le){ae>>>=0,me>>>=0,Le||x(ae,me,this.length);let et=me,tn=1,Vt=this[ae+--et];for(;et>0&&(tn*=256);)Vt+=this[ae+--et]*tn;return tn*=128,Vt>=tn&&(Vt-=Math.pow(2,8*me)),Vt},A.prototype.readInt8=function(ae,me){return ae>>>=0,me||x(ae,1,this.length),128&this[ae]?-1*(255-this[ae]+1):this[ae]},A.prototype.readInt16LE=function(ae,me){ae>>>=0,me||x(ae,2,this.length);const Le=this[ae]|this[ae+1]<<8;return 32768&Le?4294901760|Le:Le},A.prototype.readInt16BE=function(ae,me){ae>>>=0,me||x(ae,2,this.length);const Le=this[ae+1]|this[ae]<<8;return 32768&Le?4294901760|Le:Le},A.prototype.readInt32LE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),this[ae]|this[ae+1]<<8|this[ae+2]<<16|this[ae+3]<<24},A.prototype.readInt32BE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),this[ae]<<24|this[ae+1]<<16|this[ae+2]<<8|this[ae+3]},A.prototype.readBigInt64LE=S(function(ae){ve(ae>>>=0,"offset");const me=this[ae],Le=this[ae+7];return(void 0===me||void 0===Le)&&oe(ae,this.length-8),(BigInt(this[ae+4]+256*this[ae+5]+65536*this[ae+6]+(Le<<24))<>>=0,"offset");const me=this[ae],Le=this[ae+7];(void 0===me||void 0===Le)&&oe(ae,this.length-8);const et=(me<<24)+65536*this[++ae]+256*this[++ae]+this[++ae];return(BigInt(et)<>>=0,me||x(ae,4,this.length),g.read(this,ae,!0,23,4)},A.prototype.readFloatBE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),g.read(this,ae,!1,23,4)},A.prototype.readDoubleLE=function(ae,me){return ae>>>=0,me||x(ae,8,this.length),g.read(this,ae,!0,52,8)},A.prototype.readDoubleBE=function(ae,me){return ae>>>=0,me||x(ae,8,this.length),g.read(this,ae,!1,52,8)},A.prototype.writeUintLE=A.prototype.writeUIntLE=function(ae,me,Le,et){ae=+ae,me>>>=0,Le>>>=0,et||Y(this,ae,me,Le,Math.pow(2,8*Le)-1,0);let tn=1,Vt=0;for(this[me]=255&ae;++Vt>>=0,Le>>>=0,et||Y(this,ae,me,Le,Math.pow(2,8*Le)-1,0);let tn=Le-1,Vt=1;for(this[me+tn]=255&ae;--tn>=0&&(Vt*=256);)this[me+tn]=ae/Vt&255;return me+Le},A.prototype.writeUint8=A.prototype.writeUInt8=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,1,255,0),this[me]=255&ae,me+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,65535,0),this[me]=255&ae,this[me+1]=ae>>>8,me+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,65535,0),this[me]=ae>>>8,this[me+1]=255&ae,me+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,4294967295,0),this[me+3]=ae>>>24,this[me+2]=ae>>>16,this[me+1]=ae>>>8,this[me]=255&ae,me+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,4294967295,0),this[me]=ae>>>24,this[me+1]=ae>>>16,this[me+2]=ae>>>8,this[me+3]=255&ae,me+4},A.prototype.writeBigUInt64LE=S(function(ae,me=0){return R(this,ae,me,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=S(function(ae,me=0){return U(this,ae,me,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(ae,me,Le,et){if(ae=+ae,me>>>=0,!et){const En=Math.pow(2,8*Le-1);Y(this,ae,me,Le,En-1,-En)}let tn=0,Vt=1,hn=0;for(this[me]=255&ae;++tn>>=0,!et){const En=Math.pow(2,8*Le-1);Y(this,ae,me,Le,En-1,-En)}let tn=Le-1,Vt=1,hn=0;for(this[me+tn]=255&ae;--tn>=0&&(Vt*=256);)ae<0&&0===hn&&0!==this[me+tn+1]&&(hn=1),this[me+tn]=(ae/Vt|0)-hn&255;return me+Le},A.prototype.writeInt8=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,1,127,-128),ae<0&&(ae=255+ae+1),this[me]=255&ae,me+1},A.prototype.writeInt16LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,32767,-32768),this[me]=255&ae,this[me+1]=ae>>>8,me+2},A.prototype.writeInt16BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,32767,-32768),this[me]=ae>>>8,this[me+1]=255&ae,me+2},A.prototype.writeInt32LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,2147483647,-2147483648),this[me]=255&ae,this[me+1]=ae>>>8,this[me+2]=ae>>>16,this[me+3]=ae>>>24,me+4},A.prototype.writeInt32BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,2147483647,-2147483648),ae<0&&(ae=4294967295+ae+1),this[me]=ae>>>24,this[me+1]=ae>>>16,this[me+2]=ae>>>8,this[me+3]=255&ae,me+4},A.prototype.writeBigInt64LE=S(function(ae,me=0){return R(this,ae,me,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=S(function(ae,me=0){return U(this,ae,me,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeFloatLE=function(ae,me,Le){return re(this,ae,me,!0,Le)},A.prototype.writeFloatBE=function(ae,me,Le){return re(this,ae,me,!1,Le)},A.prototype.writeDoubleLE=function(ae,me,Le){return he(this,ae,me,!0,Le)},A.prototype.writeDoubleBE=function(ae,me,Le){return he(this,ae,me,!1,Le)},A.prototype.copy=function(ae,me,Le,et){if(!A.isBuffer(ae))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!et&&0!==et&&(et=this.length),me>=ae.length&&(me=ae.length),me||(me=0),et>0&&et=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),ae.length-me>>=0,Le=void 0===Le?this.length:Le>>>0,ae||(ae=0),"number"==typeof ae)for(tn=me;tn=Le+4;me-=3)ae=`_${de.slice(me-3,me)}${ae}`;return`${de.slice(0,me)}${ae}`}function Me(de,ae,me,Le,et,tn){if(de>me||de3?0===ae||ae===BigInt(0)?`>= 0${Vt} and < 2${Vt} ** ${8*(tn+1)}${Vt}`:`>= -(2${Vt} ** ${8*(tn+1)-1}${Vt}) and < 2 ** ${8*(tn+1)-1}${Vt}`:`>= ${ae}${Vt} and <= ${me}${Vt}`,new Oe.ERR_OUT_OF_RANGE("value",hn,de)}!function Re(de,ae,me){ve(ae,"offset"),(void 0===de[ae]||void 0===de[ae+me])&&oe(ae,de.length-(me+1))}(Le,et,tn)}function ve(de,ae){if("number"!=typeof de)throw new Oe.ERR_INVALID_ARG_TYPE(ae,"number",de)}function oe(de,ae,me){throw Math.floor(de)!==de?(ve(de,me),new Oe.ERR_OUT_OF_RANGE(me||"offset","an integer",de)):ae<0?new Oe.ERR_BUFFER_OUT_OF_BOUNDS:new Oe.ERR_OUT_OF_RANGE(me||"offset",`>= ${me?1:0} and <= ${ae}`,de)}ge("ERR_BUFFER_OUT_OF_BOUNDS",function(de){return de?`${de} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ge("ERR_INVALID_ARG_TYPE",function(de,ae){return`The "${de}" argument must be of type number. Received type ${typeof ae}`},TypeError),ge("ERR_OUT_OF_RANGE",function(de,ae,me){let Le=`The value of "${de}" is out of range.`,et=me;return Number.isInteger(me)&&Math.abs(me)>2**32?et=ce(String(me)):"bigint"==typeof me&&(et=String(me),(me>BigInt(2)**BigInt(32)||me<-(BigInt(2)**BigInt(32)))&&(et=ce(et)),et+="n"),Le+=` It must be ${ae}. Received ${et}`,Le},RangeError);const Se=/[^+/0-9A-Za-z-_]/g;function nt(de,ae){let me;ae=ae||1/0;const Le=de.length;let et=null;const tn=[];for(let Vt=0;Vt55295&&me<57344){if(!et){if(me>56319){(ae-=3)>-1&&tn.push(239,191,189);continue}if(Vt+1===Le){(ae-=3)>-1&&tn.push(239,191,189);continue}et=me;continue}if(me<56320){(ae-=3)>-1&&tn.push(239,191,189),et=me;continue}me=65536+(et-55296<<10|me-56320)}else et&&(ae-=3)>-1&&tn.push(239,191,189);if(et=null,me<128){if((ae-=1)<0)break;tn.push(me)}else if(me<2048){if((ae-=2)<0)break;tn.push(me>>6|192,63&me|128)}else if(me<65536){if((ae-=3)<0)break;tn.push(me>>12|224,me>>6&63|128,63&me|128)}else{if(!(me<1114112))throw new Error("Invalid code point");if((ae-=4)<0)break;tn.push(me>>18|240,me>>12&63|128,me>>6&63|128,63&me|128)}}return tn}function yt(de){return i.toByteArray(function be(de){if((de=(de=de.split("=")[0]).trim().replace(Se,"")).length<2)return"";for(;de.length%4!=0;)de+="=";return de}(de))}function Et(de,ae,me,Le){let et;for(et=0;et=ae.length||et>=de.length);++et)ae[et+me]=de[et];return et}function rt(de,ae){return de instanceof ae||null!=de&&null!=de.constructor&&null!=de.constructor.name&&de.constructor.name===ae.name}function Mn(de){return de!=de}const qt=function(){const de="0123456789abcdef",ae=new Array(256);for(let me=0;me<16;++me){const Le=16*me;for(let et=0;et<16;++et)ae[Le+et]=de[me]+de[et]}return ae}();function S(de){return typeof BigInt>"u"?Xt:de}function Xt(){throw new Error("BigInt not supported")}},95731(ke,q,l){"use strict";var i=l(65992),g=l(79477),p=l(59705),D=l(52910);ke.exports=D||i.call(p,g)},98910(ke,q,l){"use strict";var i=l(65992),g=l(79477),p=l(95731);ke.exports=function(){return p(i,g,arguments)}},79477(ke){"use strict";ke.exports=Function.prototype.apply},59705(ke){"use strict";ke.exports=Function.prototype.call},61885(ke,q,l){"use strict";var i=l(65992),g=l(46758),p=l(59705),D=l(95731);ke.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new g("a function is required");return D(i,p,e)}},52910(ke){"use strict";ke.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},48128(ke,q,l){"use strict";var i=l(31358),g=l(4570),p=l(61885),D=l(98910);ke.exports=function(e){var A=p(arguments),h=1+e.length-(arguments.length-1);return i(A,h>0?h:0,!0)},g?g(ke.exports,"apply",{value:D}):ke.exports.apply=D},12773(ke,q,l){"use strict";var i=l(90258),g=l(61885),p=g([i("%String.prototype.indexOf%")]);ke.exports=function(o,e){var A=i(o,!!e);return"function"==typeof A&&p(o,".prototype.")>-1?g([A]):A}},3247(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(7045).Transform,p=l(78454).I,D=l(71993),o=l(41090);function e(A){g.call(this),this.hashMode="string"==typeof A,this.hashMode?this[A]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}D(e,g),e.prototype.update=function(A,h,d){var w=o(A,h),f=this._update(w);return this.hashMode?this:(d&&(f=this._toString(f,d)),f)},e.prototype.setAutoPadding=function(){},e.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},e.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},e.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},e.prototype._transform=function(A,h,d){var w;try{this.hashMode?this._update(A):this.push(this._update(A))}catch(f){w=f}finally{d(w)}},e.prototype._flush=function(A){var h;try{this.push(this.__final())}catch(d){h=d}A(h)},e.prototype._finalOrDigest=function(A){var h=this.__final()||i.alloc(0);return A&&(h=this._toString(h,A,!0)),h},e.prototype._toString=function(A,h,d){if(this._decoder||(this._decoder=new p(h),this._encoding=h),this._encoding!==h)throw new Error("can\u2019t switch encodings");var w=this._decoder.write(A);return d&&(w+=this._decoder.end()),w},ke.exports=e},24740(ke){!function(q){"use strict";var l={bytesToHex:function(p){return function i(p){return p.map(function(D){return function g(p,D){return p.length>D?p:Array(D-p.length+1).join("0")+p}(D.toString(16),2)}).join("")}(p)},hexToBytes:function(p){if(p.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===p.indexOf("0x")&&(p=p.slice(2)),p.match(/../g).map(function(D){return parseInt(D,16)})}};ke.exports?ke.exports=l:q.convertHex=l}(this)},10820(ke){!function(q){"use strict";var l={bytesToString:function(i){return i.map(function(g){return String.fromCharCode(g)}).join("")},stringToBytes:function(i){return i.split("").map(function(g){return g.charCodeAt(0)})}};l.UTF8={bytesToString:function(i){return decodeURIComponent(escape(l.bytesToString(i)))},stringToBytes:function(i){return l.stringToBytes(unescape(encodeURIComponent(i)))}},ke.exports?ke.exports=l:q.convertString=l}(this)},27637(ke,q,l){function j(Z){return Object.prototype.toString.call(Z)}q.isArray=function i(Z){return Array.isArray?Array.isArray(Z):"[object Array]"===j(Z)},q.isBoolean=function g(Z){return"boolean"==typeof Z},q.isNull=function p(Z){return null===Z},q.isNullOrUndefined=function D(Z){return null==Z},q.isNumber=function o(Z){return"number"==typeof Z},q.isString=function e(Z){return"string"==typeof Z},q.isSymbol=function A(Z){return"symbol"==typeof Z},q.isUndefined=function h(Z){return void 0===Z},q.isRegExp=function d(Z){return"[object RegExp]"===j(Z)},q.isObject=function w(Z){return"object"==typeof Z&&null!==Z},q.isDate=function f(Z){return"[object Date]"===j(Z)},q.isError=function F(Z){return"[object Error]"===j(Z)||Z instanceof Error},q.isFunction=function M(Z){return"function"==typeof Z},q.isPrimitive=function K(Z){return null===Z||"boolean"==typeof Z||"number"==typeof Z||"string"==typeof Z||"symbol"==typeof Z||typeof Z>"u"},q.isBuffer=l(83838).Buffer.isBuffer},87303(ke,q,l){var i=l(90518),g=l(89606);ke.exports=function(A){return new D(A)};var p={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 D(e){this.curveType=p[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function o(e,A,h){Array.isArray(e)||(e=e.toArray());var d=new Buffer(e);if(h&&d.length=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},67211(ke,q,l){"use strict";var i=l(71993),g=l(34725),p=l(36636),D=l(25443),o=l(3247);function e(A){o.call(this,"digest"),this._hash=A}i(e,o),e.prototype._update=function(A){this._hash.update(A)},e.prototype._final=function(){return this._hash.digest()},ke.exports=function(h){return"md5"===(h=h.toLowerCase())?new g:"rmd160"===h||"ripemd160"===h?new p:new e(D(h))}},83407(ke,q,l){var i=l(34725);ke.exports=function(g){return(new i).update(g).digest()}},56432(ke,q,l){"use strict";var i=l(71993),g=l(90509),p=l(3247),D=l(27054).Buffer,o=l(83407),e=l(36636),A=l(25443),h=D.alloc(128);function d(w,f){p.call(this,"digest"),"string"==typeof f&&(f=D.from(f));var F="sha512"===w||"sha384"===w?128:64;this._alg=w,this._key=f,f.length>F?f=("rmd160"===w?new e:A(w)).update(f).digest():f.lengtho?h=A(h):h.length3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new p("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new p("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new p("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new p("`loose`, if provided, must be a boolean");var d=arguments.length>3?arguments[3]:null,w=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,F=arguments.length>6&&arguments[6],M=!!D&&D(e,A);if(i)i(e,A,{configurable:null===f&&M?M.configurable:!f,enumerable:null===d&&M?M.enumerable:!d,value:h,writable:null===w&&M?M.writable:!w});else{if(!F&&(d||w||f))throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[A]=h}}},71549(ke,q,l){"use strict";q.utils=l(85671),q.Cipher=l(10219),q.DES=l(64166),q.CBC=l(88800),q.EDE=l(62122)},88800(ke,q,l){"use strict";var i=l(39210),g=l(71993),p={};function D(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var A=0;A0;A--)o+=this._buffer(D,o),e+=this._flushBuffer(h,e);return o+=this._buffer(D,o),h},g.prototype.final=function(D){var o,e;return D&&(o=this.update(D)),e="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),o?o.concat(e):e},g.prototype._pad=function(D,o){if(0===o)return!1;for(;o>>1];f=p.r28shl(f,K),F=p.r28shl(F,K),p.pc2(f,F,d.keys,M)}},e.prototype._update=function(d,w,f,F){var M=this._desState,K=p.readUInt32BE(d,w),j=p.readUInt32BE(d,w+4);p.ip(K,j,M.tmp,0),K=M.tmp[0],j=M.tmp[1],"encrypt"===this.type?this._encrypt(M,K,j,M.tmp,0):this._decrypt(M,K,j,M.tmp,0),j=M.tmp[1],p.writeUInt32BE(f,K=M.tmp[0],F),p.writeUInt32BE(f,j,F+4)},e.prototype._pad=function(d,w){if(!1===this.padding)return!1;for(var f=d.length-w,F=w;F>>0,K=ie}p.rip(j,K,F,M)},e.prototype._decrypt=function(d,w,f,F,M){for(var K=f,j=w,Z=d.keys.length-2;Z>=0;Z-=2){var ee=d.keys[Z],V=d.keys[Z+1];p.expand(K,d.tmp,0);var Q=p.substitute(ee^=d.tmp[0],V^=d.tmp[1]),ie=K;K=(j^p.permute(Q))>>>0,j=ie}p.rip(K,j,F,M)}},62122(ke,q,l){"use strict";var i=l(39210),g=l(71993),p=l(10219),D=l(64166);function o(A,h){i.equal(h.length,24,"Invalid key length");var d=h.slice(0,8),w=h.slice(8,16),f=h.slice(16,24);this.ciphers="encrypt"===A?[D.create({type:"encrypt",key:d}),D.create({type:"decrypt",key:w}),D.create({type:"encrypt",key:f})]:[D.create({type:"decrypt",key:f}),D.create({type:"encrypt",key:w}),D.create({type:"decrypt",key:d})]}function e(A){p.call(this,A);var h=new o(this.type,this.options.key);this._edeState=h}g(e,p),ke.exports=e,e.create=function(h){return new e(h)},e.prototype._update=function(h,d,w,f){var F=this._edeState;F.ciphers[0]._update(h,d,w,f),F.ciphers[1]._update(w,f,w,f),F.ciphers[2]._update(w,f,w,f)},e.prototype._pad=D.prototype._pad,e.prototype._unpad=D.prototype._unpad},85671(ke,q){"use strict";q.readUInt32BE=function(D,o){return(D[0+o]<<24|D[1+o]<<16|D[2+o]<<8|D[3+o])>>>0},q.writeUInt32BE=function(D,o,e){D[0+e]=o>>>24,D[1+e]=o>>>16&255,D[2+e]=o>>>8&255,D[3+e]=255&o},q.ip=function(D,o,e,A){for(var h=0,d=0,w=6;w>=0;w-=2){for(var f=0;f<=24;f+=8)h<<=1,h|=o>>>f+w&1;for(f=0;f<=24;f+=8)h<<=1,h|=D>>>f+w&1}for(w=6;w>=0;w-=2){for(f=1;f<=25;f+=8)d<<=1,d|=o>>>f+w&1;for(f=1;f<=25;f+=8)d<<=1,d|=D>>>f+w&1}e[A+0]=h>>>0,e[A+1]=d>>>0},q.rip=function(D,o,e,A){for(var h=0,d=0,w=0;w<4;w++)for(var f=24;f>=0;f-=8)h<<=1,h|=o>>>f+w&1,h<<=1,h|=D>>>f+w&1;for(w=4;w<8;w++)for(f=24;f>=0;f-=8)d<<=1,d|=o>>>f+w&1,d<<=1,d|=D>>>f+w&1;e[A+0]=h>>>0,e[A+1]=d>>>0},q.pc1=function(D,o,e,A){for(var h=0,d=0,w=7;w>=5;w--){for(var f=0;f<=24;f+=8)h<<=1,h|=o>>f+w&1;for(f=0;f<=24;f+=8)h<<=1,h|=D>>f+w&1}for(f=0;f<=24;f+=8)h<<=1,h|=o>>f+w&1;for(w=1;w<=3;w++){for(f=0;f<=24;f+=8)d<<=1,d|=o>>f+w&1;for(f=0;f<=24;f+=8)d<<=1,d|=D>>f+w&1}for(f=0;f<=24;f+=8)d<<=1,d|=D>>f+w&1;e[A+0]=h>>>0,e[A+1]=d>>>0},q.r28shl=function(D,o){return D<>>28-o};var l=[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];q.pc2=function(D,o,e,A){for(var h=0,d=0,w=l.length>>>1,f=0;f>>l[f]&1;for(f=w;f>>l[f]&1;e[A+0]=h>>>0,e[A+1]=d>>>0},q.expand=function(D,o,e){var A=0,h=0;A=(1&D)<<5|D>>>27;for(var d=23;d>=15;d-=4)A<<=6,A|=D>>>d&63;for(d=11;d>=3;d-=4)h|=D>>>d&63,h<<=6;h|=(31&D)<<1|D>>>31,o[e+0]=A>>>0,o[e+1]=h>>>0};var i=[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];q.substitute=function(D,o){for(var e=0,A=0;A<4;A++)e<<=4,e|=i[64*A+(D>>>18-6*A&63)];for(A=0;A<4;A++)e<<=4,e|=i[256+64*A+(o>>>18-6*A&63)];return e>>>0};var g=[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];q.permute=function(D){for(var o=0,e=0;e>>g[e]&1;return o>>>0},q.padSplit=function(D,o,e){for(var A=D.toString(2);A.length_e;)se.ishrn(1);if(se.isEven()&&se.iadd(e),se.testn(1)||se.iadd(A),ye.cmp(A)){if(!ye.cmp(h))for(;se.mod(f).cmp(F);)se.iadd(j)}else for(;se.mod(p).cmp(K);)se.iadd(j);if(Q(pe=se.shrn(1))&&Q(se)&&$(pe)&&$(se)&&o.test(pe)&&o.test(se))return se}}},38280(ke,q,l){!function(i,g){"use strict";function p(L,t){if(!L)throw new Error(t||"Assertion failed")}function D(L,t){L.super_=t;var s=function(){};s.prototype=t.prototype,L.prototype=new s,L.prototype.constructor=L}function o(L,t,s){if(o.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,null!==L&&(("le"===t||"be"===t)&&(s=t,t=10),this._init(L||0,t||10,s||"be"))}var e;"object"==typeof i?i.exports=o:g.BN=o,o.BN=o,o.wordSize=26;try{e=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:l(66089).Buffer}catch{}function A(L,t){var s=L.charCodeAt(t);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},80243(ke){"use strict";var q={single_source_shortest_paths:function(l,i,g){var p={},D={};D[i]=0;var e,A,h,d,w,F,o=q.PriorityQueue.make();for(o.push(i,0);!o.empty();)for(h in d=(e=o.pop()).cost,w=l[A=e.value]||{})w.hasOwnProperty(h)&&(F=d+w[h],(typeof D[h]>"u"||D[h]>F)&&(D[h]=F,o.push(h,F),p[h]=A));if(typeof g<"u"&&typeof D[g]>"u"){var j=["Could not find a path from ",i," to ",g,"."].join("");throw new Error(j)}return p},extract_shortest_path_from_predecessor_list:function(l,i){for(var g=[],p=i;p;)g.push(p),p=l[p];return g.reverse(),g},find_path:function(l,i,g){var p=q.single_source_shortest_paths(l,i,g);return q.extract_shortest_path_from_predecessor_list(p,g)},PriorityQueue:{make:function(l){var p,i=q.PriorityQueue,g={};for(p in l=l||{},i)i.hasOwnProperty(p)&&(g[p]=i[p]);return g.queue=[],g.sorter=l.sorter||i.default_sorter,g},default_sorter:function(l,i){return l.cost-i.cost},push:function(l,i){this.queue.push({value:l,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};ke.exports=q},63361(ke,q,l){"use strict";var p,i=l(61885),g=l(83798);try{p=[].__proto__===Array.prototype}catch(A){if(!A||"object"!=typeof A||!("code"in A)||"ERR_PROTO_ACCESS"!==A.code)throw A}var D=!!p&&g&&g(Object.prototype,"__proto__"),o=Object,e=o.getPrototypeOf;ke.exports=D&&"function"==typeof D.get?i([D.get]):"function"==typeof e&&function(h){return e(null==h?h:o(h))}},90518(ke,q,l){"use strict";var i=q;i.version=l(1636).rE,i.utils=l(3136),i.rand=l(35294),i.curve=l(8729),i.curves=l(23401),i.ec=l(29042),i.eddsa=l(83045)},98828(ke,q,l){"use strict";var i=l(88723),g=l(3136),p=g.getNAF,D=g.getJSF,o=g.assert;function e(h,d){this.type=h,this.p=new i(d.p,16),this.red=d.prime?i.red(d.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=d.n&&new i(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.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 w=this.n&&this.p.div(this.n);!w||w.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function A(h,d){this.curve=h,this.type=d,this.precomputed=null}ke.exports=e,e.prototype.point=function(){throw new Error("Not implemented")},e.prototype.validate=function(){throw new Error("Not implemented")},e.prototype._fixedNafMul=function(d,w){o(d.precomputed);var f=d._getDoubles(),F=p(w,1,this._bitLength),M=(1<=j;ee--)Z=(Z<<1)+F[ee];K.push(Z)}for(var V=this.jpoint(null,null,null),Q=this.jpoint(null,null,null),$=M;$>0;$--){for(j=0;j=0;Z--){for(var ee=0;Z>=0&&0===K[Z];Z--)ee++;if(Z>=0&&ee++,j=j.dblp(ee),Z<0)break;var V=K[Z];o(0!==V),j="affine"===d.type?j.mixedAdd(V>0?M[V-1>>1]:M[-V-1>>1].neg()):j.add(V>0?M[V-1>>1]:M[-V-1>>1].neg())}return"affine"===d.type?j.toP():j},e.prototype._wnafMulAdd=function(d,w,f,F,M){var V,Q,$,K=this._wnafT1,j=this._wnafT2,Z=this._wnafT3,ee=0;for(V=0;V=1;V-=2){var _e=V-1,ye=V;if(1===K[_e]&&1===K[ye]){var se=[w[_e],null,null,w[ye]];0===w[_e].y.cmp(w[ye].y)?(se[1]=w[_e].add(w[ye]),se[2]=w[_e].toJ().mixedAdd(w[ye].neg())):0===w[_e].y.cmp(w[ye].y.redNeg())?(se[1]=w[_e].toJ().mixedAdd(w[ye]),se[2]=w[_e].add(w[ye].neg())):(se[1]=w[_e].toJ().mixedAdd(w[ye]),se[2]=w[_e].toJ().mixedAdd(w[ye].neg()));var pe=[-3,-1,-5,-7,0,7,5,1,3],Ee=D(f[_e],f[ye]);for(ee=Math.max(Ee[0].length,ee),Z[_e]=new Array(ee),Z[ye]=new Array(ee),Q=0;Q=0;V--){for(var u=0;V>=0;){var _=!0;for(Q=0;Q=0&&u++,s=s.dblp(u),V<0)break;for(Q=0;Q0?$=j[Q][T-1>>1]:T<0&&($=j[Q][-T-1>>1].neg()),s="affine"===$.type?s.mixedAdd($):s.add($))}}for(V=0;V=Math.ceil((d.bitLength()+1)/w.step)},A.prototype._getDoubles=function(d,w){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var f=[this],F=this,M=0;M":""},A.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},A.prototype._extDbl=function(){var d=this.x.redSqr(),w=this.y.redSqr(),f=this.z.redSqr();f=f.redIAdd(f);var F=this.curve._mulA(d),M=this.x.redAdd(this.y).redSqr().redISub(d).redISub(w),K=F.redAdd(w),j=K.redSub(f),Z=F.redSub(w),ee=M.redMul(j),V=K.redMul(Z),Q=M.redMul(Z),$=j.redMul(K);return this.curve.point(ee,V,$,Q)},A.prototype._projDbl=function(){var F,M,K,j,Z,ee,d=this.x.redAdd(this.y).redSqr(),w=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var V=(j=this.curve._mulA(w)).redAdd(f);this.zOne?(F=d.redSub(w).redSub(f).redMul(V.redSub(this.curve.two)),M=V.redMul(j.redSub(f)),K=V.redSqr().redSub(V).redSub(V)):(Z=this.z.redSqr(),ee=V.redSub(Z).redISub(Z),F=d.redSub(w).redISub(f).redMul(ee),M=V.redMul(j.redSub(f)),K=V.redMul(ee))}else j=w.redAdd(f),Z=this.curve._mulC(this.z).redSqr(),ee=j.redSub(Z).redSub(Z),F=this.curve._mulC(d.redISub(j)).redMul(ee),M=this.curve._mulC(j).redMul(w.redISub(f)),K=j.redMul(ee);return this.curve.point(F,M,K)},A.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},A.prototype._extAdd=function(d){var w=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),f=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),F=this.t.redMul(this.curve.dd).redMul(d.t),M=this.z.redMul(d.z.redAdd(d.z)),K=f.redSub(w),j=M.redSub(F),Z=M.redAdd(F),ee=f.redAdd(w),V=K.redMul(j),Q=Z.redMul(ee),$=K.redMul(ee),ie=j.redMul(Z);return this.curve.point(V,Q,ie,$)},A.prototype._projAdd=function(d){var Q,$,w=this.z.redMul(d.z),f=w.redSqr(),F=this.x.redMul(d.x),M=this.y.redMul(d.y),K=this.curve.d.redMul(F).redMul(M),j=f.redSub(K),Z=f.redAdd(K),ee=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(F).redISub(M),V=w.redMul(j).redMul(ee);return this.curve.twisted?(Q=w.redMul(Z).redMul(M.redSub(this.curve._mulA(F))),$=j.redMul(Z)):(Q=w.redMul(Z).redMul(M.redSub(F)),$=this.curve._mulC(j).redMul(Z)),this.curve.point(V,Q,$)},A.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},A.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},A.prototype.mulAdd=function(d,w,f){return this.curve._wnafMulAdd(1,[this,w],[d,f],2,!1)},A.prototype.jmulAdd=function(d,w,f){return this.curve._wnafMulAdd(1,[this,w],[d,f],2,!0)},A.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},A.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},A.prototype.getX=function(){return this.normalize(),this.x.fromRed()},A.prototype.getY=function(){return this.normalize(),this.y.fromRed()},A.prototype.eq=function(d){return this===d||0===this.getX().cmp(d.getX())&&0===this.getY().cmp(d.getY())},A.prototype.eqXToP=function(d){var w=d.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(w))return!0;for(var f=d.clone(),F=this.curve.redN.redMul(this.z);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(w.redIAdd(F),0===this.x.cmp(w))return!0}},A.prototype.toP=A.prototype.normalize,A.prototype.mixedAdd=A.prototype.add},8729(ke,q,l){"use strict";var i=q;i.base=l(98828),i.short=l(68075),i.mont=l(64947),i.edwards=l(55537)},64947(ke,q,l){"use strict";var i=l(88723),g=l(71993),p=l(98828),D=l(3136);function o(A){p.call(this,"mont",A),this.a=new i(A.a,16).toRed(this.red),this.b=new i(A.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function e(A,h,d){p.BasePoint.call(this,A,"projective"),null===h&&null===d?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(h,16),this.z=new i(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}g(o,p),ke.exports=o,o.prototype.validate=function(h){var d=h.normalize().x,w=d.redSqr(),f=w.redMul(d).redAdd(w.redMul(this.a)).redAdd(d);return 0===f.redSqrt().redSqr().cmp(f)},g(e,p.BasePoint),o.prototype.decodePoint=function(h,d){return this.point(D.toArray(h,d),1)},o.prototype.point=function(h,d){return new e(this,h,d)},o.prototype.pointFromJSON=function(h){return e.fromJSON(this,h)},e.prototype.precompute=function(){},e.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},e.fromJSON=function(h,d){return new e(h,d[0],d[1]||h.one)},e.prototype.inspect=function(){return this.isInfinity()?"":""},e.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},e.prototype.dbl=function(){var d=this.x.redAdd(this.z).redSqr(),f=this.x.redSub(this.z).redSqr(),F=d.redSub(f),M=d.redMul(f),K=F.redMul(f.redAdd(this.curve.a24.redMul(F)));return this.curve.point(M,K)},e.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.diffAdd=function(h,d){var w=this.x.redAdd(this.z),f=this.x.redSub(this.z),F=h.x.redAdd(h.z),K=h.x.redSub(h.z).redMul(w),j=F.redMul(f),Z=d.z.redMul(K.redAdd(j).redSqr()),ee=d.x.redMul(K.redISub(j).redSqr());return this.curve.point(Z,ee)},e.prototype.mul=function(h){for(var d=h.clone(),w=this,f=this.curve.point(null,null),M=[];0!==d.cmpn(0);d.iushrn(1))M.push(d.andln(1));for(var K=M.length-1;K>=0;K--)0===M[K]?(w=w.diffAdd(f,this),f=f.dbl()):(f=w.diffAdd(f,this),w=w.dbl());return f},e.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.eq=function(h){return 0===this.getX().cmp(h.getX())},e.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},e.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},68075(ke,q,l){"use strict";var i=l(3136),g=l(88723),p=l(71993),D=l(98828),o=i.assert;function e(d){D.call(this,"short",d),this.a=new g(d.a,16).toRed(this.red),this.b=new g(d.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(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function A(d,w,f,F){D.BasePoint.call(this,d,"affine"),null===w&&null===f?(this.x=null,this.y=null,this.inf=!0):(this.x=new g(w,16),this.y=new g(f,16),F&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(d,w,f,F){D.BasePoint.call(this,d,"jacobian"),null===w&&null===f&&null===F?(this.x=this.curve.one,this.y=this.curve.one,this.z=new g(0)):(this.x=new g(w,16),this.y=new g(f,16),this.z=new g(F,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}p(e,D),ke.exports=e,e.prototype._getEndomorphism=function(w){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var f,F;if(w.beta)f=new g(w.beta,16).toRed(this.red);else{var M=this._getEndoRoots(this.p);f=(f=M[0].cmp(M[1])<0?M[0]:M[1]).toRed(this.red)}if(w.lambda)F=new g(w.lambda,16);else{var K=this._getEndoRoots(this.n);0===this.g.mul(K[0]).x.cmp(this.g.x.redMul(f))?F=K[0]:o(0===this.g.mul(F=K[1]).x.cmp(this.g.x.redMul(f)))}return{beta:f,lambda:F,basis:w.basis?w.basis.map(function(Z){return{a:new g(Z.a,16),b:new g(Z.b,16)}}):this._getEndoBasis(F)}}},e.prototype._getEndoRoots=function(w){var f=w===this.p?this.red:g.mont(w),F=new g(2).toRed(f).redInvm(),M=F.redNeg(),K=new g(3).toRed(f).redNeg().redSqrt().redMul(F);return[M.redAdd(K).fromRed(),M.redSub(K).fromRed()]},e.prototype._getEndoBasis=function(w){for(var V,Q,$,ie,_e,ye,se,Ee,L,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),F=w,M=this.n.clone(),K=new g(1),j=new g(0),Z=new g(0),ee=new g(1),pe=0;0!==F.cmpn(0);){var t=M.div(F);Ee=M.sub(t.mul(F)),L=Z.sub(t.mul(K));var s=ee.sub(t.mul(j));if(!$&&Ee.cmp(f)<0)V=se.neg(),Q=K,$=Ee.neg(),ie=L;else if($&&2===++pe)break;se=Ee,M=F,F=Ee,Z=K,K=L,ee=j,j=s}_e=Ee.neg(),ye=L;var m=$.sqr().add(ie.sqr());return _e.sqr().add(ye.sqr()).cmp(m)>=0&&(_e=V,ye=Q),$.negative&&($=$.neg(),ie=ie.neg()),_e.negative&&(_e=_e.neg(),ye=ye.neg()),[{a:$,b:ie},{a:_e,b:ye}]},e.prototype._endoSplit=function(w){var f=this.endo.basis,F=f[0],M=f[1],K=M.b.mul(w).divRound(this.n),j=F.b.neg().mul(w).divRound(this.n),Z=K.mul(F.a),ee=j.mul(M.a),V=K.mul(F.b),Q=j.mul(M.b);return{k1:w.sub(Z).sub(ee),k2:V.add(Q).neg()}},e.prototype.pointFromX=function(w,f){(w=new g(w,16)).red||(w=w.toRed(this.red));var F=w.redSqr().redMul(w).redIAdd(w.redMul(this.a)).redIAdd(this.b),M=F.redSqrt();if(0!==M.redSqr().redSub(F).cmp(this.zero))throw new Error("invalid point");var K=M.fromRed().isOdd();return(f&&!K||!f&&K)&&(M=M.redNeg()),this.point(w,M)},e.prototype.validate=function(w){if(w.inf)return!0;var f=w.x,F=w.y,M=this.a.redMul(f),K=f.redSqr().redMul(f).redIAdd(M).redIAdd(this.b);return 0===F.redSqr().redISub(K).cmpn(0)},e.prototype._endoWnafMulAdd=function(w,f,F){for(var M=this._endoWnafT1,K=this._endoWnafT2,j=0;j":""},A.prototype.isInfinity=function(){return this.inf},A.prototype.add=function(w){if(this.inf)return w;if(w.inf)return this;if(this.eq(w))return this.dbl();if(this.neg().eq(w))return this.curve.point(null,null);if(0===this.x.cmp(w.x))return this.curve.point(null,null);var f=this.y.redSub(w.y);0!==f.cmpn(0)&&(f=f.redMul(this.x.redSub(w.x).redInvm()));var F=f.redSqr().redISub(this.x).redISub(w.x),M=f.redMul(this.x.redSub(F)).redISub(this.y);return this.curve.point(F,M)},A.prototype.dbl=function(){if(this.inf)return this;var w=this.y.redAdd(this.y);if(0===w.cmpn(0))return this.curve.point(null,null);var f=this.curve.a,F=this.x.redSqr(),M=w.redInvm(),K=F.redAdd(F).redIAdd(F).redIAdd(f).redMul(M),j=K.redSqr().redISub(this.x.redAdd(this.x)),Z=K.redMul(this.x.redSub(j)).redISub(this.y);return this.curve.point(j,Z)},A.prototype.getX=function(){return this.x.fromRed()},A.prototype.getY=function(){return this.y.fromRed()},A.prototype.mul=function(w){return w=new g(w,16),this.isInfinity()?this:this._hasDoubles(w)?this.curve._fixedNafMul(this,w):this.curve.endo?this.curve._endoWnafMulAdd([this],[w]):this.curve._wnafMul(this,w)},A.prototype.mulAdd=function(w,f,F){var M=[this,f],K=[w,F];return this.curve.endo?this.curve._endoWnafMulAdd(M,K):this.curve._wnafMulAdd(1,M,K,2)},A.prototype.jmulAdd=function(w,f,F){var M=[this,f],K=[w,F];return this.curve.endo?this.curve._endoWnafMulAdd(M,K,!0):this.curve._wnafMulAdd(1,M,K,2,!0)},A.prototype.eq=function(w){return this===w||this.inf===w.inf&&(this.inf||0===this.x.cmp(w.x)&&0===this.y.cmp(w.y))},A.prototype.neg=function(w){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(w&&this.precomputed){var F=this.precomputed,M=function(K){return K.neg()};f.precomputed={naf:F.naf&&{wnd:F.naf.wnd,points:F.naf.points.map(M)},doubles:F.doubles&&{step:F.doubles.step,points:F.doubles.points.map(M)}}}return f},A.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},p(h,D.BasePoint),e.prototype.jpoint=function(w,f,F){return new h(this,w,f,F)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var w=this.z.redInvm(),f=w.redSqr(),F=this.x.redMul(f),M=this.y.redMul(f).redMul(w);return this.curve.point(F,M)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(w){if(this.isInfinity())return w;if(w.isInfinity())return this;var f=w.z.redSqr(),F=this.z.redSqr(),M=this.x.redMul(f),K=w.x.redMul(F),j=this.y.redMul(f.redMul(w.z)),Z=w.y.redMul(F.redMul(this.z)),ee=M.redSub(K),V=j.redSub(Z);if(0===ee.cmpn(0))return 0!==V.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Q=ee.redSqr(),$=Q.redMul(ee),ie=M.redMul(Q),_e=V.redSqr().redIAdd($).redISub(ie).redISub(ie),ye=V.redMul(ie.redISub(_e)).redISub(j.redMul($)),se=this.z.redMul(w.z).redMul(ee);return this.curve.jpoint(_e,ye,se)},h.prototype.mixedAdd=function(w){if(this.isInfinity())return w.toJ();if(w.isInfinity())return this;var f=this.z.redSqr(),F=this.x,M=w.x.redMul(f),K=this.y,j=w.y.redMul(f).redMul(this.z),Z=F.redSub(M),ee=K.redSub(j);if(0===Z.cmpn(0))return 0!==ee.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var V=Z.redSqr(),Q=V.redMul(Z),$=F.redMul(V),ie=ee.redSqr().redIAdd(Q).redISub($).redISub($),_e=ee.redMul($.redISub(ie)).redISub(K.redMul(Q)),ye=this.z.redMul(Z);return this.curve.jpoint(ie,_e,ye)},h.prototype.dblp=function(w){if(0===w)return this;if(this.isInfinity())return this;if(!w)return this.dbl();var f;if(this.curve.zeroA||this.curve.threeA){var F=this;for(f=0;f=0)return!1;if(F.redIAdd(K),0===this.x.cmp(F))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},23401(ke,q,l){"use strict";var h,i=q,g=l(52529),p=l(8729),o=l(3136).assert;function e(d){this.curve="short"===d.type?new p.short(d):"edwards"===d.type?new p.edwards(d):new p.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function A(d,w){Object.defineProperty(i,d,{configurable:!0,enumerable:!0,get:function(){var f=new e(w);return Object.defineProperty(i,d,{configurable:!0,enumerable:!0,value:f}),f}})}i.PresetCurve=e,A("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:g.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),A("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:g.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),A("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:g.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),A("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:g.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"]}),A("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:g.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"]}),A("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:g.sha256,gRed:!1,g:["9"]}),A("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:g.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{h=l(51416)}catch{h=void 0}A("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:g.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",h]})},29042(ke,q,l){"use strict";var i=l(88723),g=l(33556),p=l(3136),D=l(23401),o=l(35294),e=p.assert,A=l(60541),h=l(40484);function d(w){if(!(this instanceof d))return new d(w);"string"==typeof w&&(e(Object.prototype.hasOwnProperty.call(D,w),"Unknown curve "+w),w=D[w]),w instanceof D.PresetCurve&&(w={curve:w}),this.curve=w.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=w.curve.g,this.g.precompute(w.curve.n.bitLength()+1),this.hash=w.hash||w.curve.hash}ke.exports=d,d.prototype.keyPair=function(f){return new A(this,f)},d.prototype.keyFromPrivate=function(f,F){return A.fromPrivate(this,f,F)},d.prototype.keyFromPublic=function(f,F){return A.fromPublic(this,f,F)},d.prototype.genKeyPair=function(f){f||(f={});for(var F=new g({hash:this.hash,pers:f.pers,persEnc:f.persEnc||"utf8",entropy:f.entropy||o(this.hash.hmacStrength),entropyEnc:f.entropy&&f.entropyEnc||"utf8",nonce:this.n.toArray()}),M=this.n.byteLength(),K=this.n.sub(new i(2));;){var j=new i(F.generate(M));if(!(j.cmp(K)>0))return j.iaddn(1),this.keyFromPrivate(j)}},d.prototype._truncateToN=function(f,F,M){var K;if(i.isBN(f)||"number"==typeof f)K=(f=new i(f,16)).byteLength();else if("object"==typeof f)K=f.length,f=new i(f,16);else{var j=f.toString();K=j.length+1>>>1,f=new i(j,16)}"number"!=typeof M&&(M=8*K);var Z=M-this.n.bitLength();return Z>0&&(f=f.ushrn(Z)),!F&&f.cmp(this.n)>=0?f.sub(this.n):f},d.prototype.sign=function(f,F,M,K){if("object"==typeof M&&(K=M,M=null),K||(K={}),"string"!=typeof f&&"number"!=typeof f&&!i.isBN(f)){e("object"==typeof f&&f&&"number"==typeof f.length,"Expected message to be an array-like, a hex string, or a BN instance"),e(f.length>>>0===f.length);for(var j=0;j=0)){var ye=this.g.mul(_e);if(!ye.isInfinity()){var se=ye.getX(),pe=se.umod(this.n);if(0!==pe.cmpn(0)){var Ee=_e.invm(this.n).mul(pe.mul(F.getPrivate()).iadd(f));if(0!==(Ee=Ee.umod(this.n)).cmpn(0)){var L=(ye.getY().isOdd()?1:0)|(0!==se.cmp(pe)?2:0);return K.canonical&&Ee.cmp(this.nh)>0&&(Ee=this.n.sub(Ee),L^=1),new h({r:pe,s:Ee,recoveryParam:L})}}}}}},d.prototype.verify=function(f,F,M,K,j){j||(j={}),f=this._truncateToN(f,!1,j.msgBitLength),M=this.keyFromPublic(M,K);var Z=(F=new h(F,"hex")).r,ee=F.s;if(Z.cmpn(1)<0||Z.cmp(this.n)>=0||ee.cmpn(1)<0||ee.cmp(this.n)>=0)return!1;var ie,V=ee.invm(this.n),Q=V.mul(f).umod(this.n),$=V.mul(Z).umod(this.n);return this.curve._maxwellTrick?!(ie=this.g.jmulAdd(Q,M.getPublic(),$)).isInfinity()&&ie.eqXToP(Z):!(ie=this.g.mulAdd(Q,M.getPublic(),$)).isInfinity()&&0===ie.getX().umod(this.n).cmp(Z)},d.prototype.recoverPubKey=function(w,f,F,M){e((3&F)===F,"The recovery param is more than two bits"),f=new h(f,M);var K=this.n,j=new i(w),Z=f.r,ee=f.s,V=1&F,Q=F>>1;if(Z.cmp(this.curve.p.umod(this.curve.n))>=0&&Q)throw new Error("Unable to find sencond key candinate");Z=this.curve.pointFromX(Q?Z.add(this.curve.n):Z,V);var $=f.r.invm(K),ie=K.sub(j).mul($).umod(K),_e=ee.mul($).umod(K);return this.g.mulAdd(ie,Z,_e)},d.prototype.getKeyRecoveryParam=function(w,f,F,M){if(null!==(f=new h(f,M)).recoveryParam)return f.recoveryParam;for(var K=0;K<4;K++){var j;try{j=this.recoverPubKey(w,f,K)}catch{continue}if(j.eq(F))return K}throw new Error("Unable to find valid recovery factor")}},60541(ke,q,l){"use strict";var i=l(88723),p=l(3136).assert;function D(o,e){this.ec=o,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}ke.exports=D,D.fromPublic=function(e,A,h){return A instanceof D?A:new D(e,{pub:A,pubEnc:h})},D.fromPrivate=function(e,A,h){return A instanceof D?A:new D(e,{priv:A,privEnc:h})},D.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}},D.prototype.getPublic=function(e,A){return"string"==typeof e&&(A=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),A?this.pub.encode(A,e):this.pub},D.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},D.prototype._importPrivate=function(e,A){this.priv=new i(e,A||16),this.priv=this.priv.umod(this.ec.curve.n)},D.prototype._importPublic=function(e,A){if(e.x||e.y)return"mont"===this.ec.curve.type?p(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&p(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,A)},D.prototype.derive=function(e){return e.validate()||p(e.validate(),"public point not validated"),e.mul(this.priv).getX()},D.prototype.sign=function(e,A,h){return this.ec.sign(e,this,A,h)},D.prototype.verify=function(e,A,h){return this.ec.verify(e,A,this,void 0,h)},D.prototype.inspect=function(){return""}},40484(ke,q,l){"use strict";var i=l(88723),g=l(3136),p=g.assert;function D(d,w){if(d instanceof D)return d;this._importDER(d,w)||(p(d.r&&d.s,"Signature without r or s"),this.r=new i(d.r,16),this.s=new i(d.s,16),this.recoveryParam=void 0===d.recoveryParam?null:d.recoveryParam)}function o(){this.place=0}function e(d,w){var f=d[w.place++];if(!(128&f))return f;var F=15&f;if(0===F||F>4||0===d[w.place])return!1;for(var M=0,K=0,j=w.place;K>>=0;return!(M<=127)&&(w.place=j,M)}function A(d){for(var w=0,f=d.length-1;!d[w]&&!(128&d[w+1])&&w>>3);for(d.push(128|f);--f;)d.push(w>>>(f<<3)&255);d.push(w)}}ke.exports=D,D.prototype._importDER=function(w,f){w=g.toArray(w,f);var F=new o;if(48!==w[F.place++])return!1;var M=e(w,F);if(!1===M||M+F.place!==w.length||2!==w[F.place++])return!1;var K=e(w,F);if(!1===K||128&w[F.place])return!1;var j=w.slice(F.place,K+F.place);if(F.place+=K,2!==w[F.place++])return!1;var Z=e(w,F);if(!1===Z||w.length!==Z+F.place||128&w[F.place])return!1;var ee=w.slice(F.place,Z+F.place);if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}if(0===ee[0]){if(!(128&ee[1]))return!1;ee=ee.slice(1)}return this.r=new i(j),this.s=new i(ee),this.recoveryParam=null,!0},D.prototype.toDER=function(w){var f=this.r.toArray(),F=this.s.toArray();for(128&f[0]&&(f=[0].concat(f)),128&F[0]&&(F=[0].concat(F)),f=A(f),F=A(F);!(F[0]||128&F[1]);)F=F.slice(1);var M=[2];h(M,f.length),(M=M.concat(f)).push(2),h(M,F.length);var K=M.concat(F),j=[48];return h(j,K.length),j=j.concat(K),g.encode(j,w)}},83045(ke,q,l){"use strict";var i=l(52529),g=l(23401),p=l(3136),D=p.assert,o=p.parseBytes,e=l(87222),A=l(5451);function h(d){if(D("ed25519"===d,"only tested with ed25519 so far"),!(this instanceof h))return new h(d);this.curve=d=g[d].curve,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=i.sha512}ke.exports=h,h.prototype.sign=function(w,f){w=o(w);var F=this.keyFromSecret(f),M=this.hashInt(F.messagePrefix(),w),K=this.g.mul(M),j=this.encodePoint(K),Z=this.hashInt(j,F.pubBytes(),w).mul(F.priv()),ee=M.add(Z).umod(this.curve.n);return this.makeSignature({R:K,S:ee,Rencoded:j})},h.prototype.verify=function(w,f,F){if(w=o(w),(f=this.makeSignature(f)).S().gte(f.eddsa.curve.n)||f.S().isNeg())return!1;var M=this.keyFromPublic(F),K=this.hashInt(f.Rencoded(),M.pubBytes(),w),j=this.g.mul(f.S());return f.R().add(M.pub().mul(K)).eq(j)},h.prototype.hashInt=function(){for(var w=this.hash(),f=0;f(j>>1)-1?(j>>1)-V:V):ee=0,M[K]=ee,Z.iushrn(1)}return M},i.getJSF=function e(w,f){var F=[[],[]];w=w.clone(),f=f.clone();for(var j,M=0,K=0;w.cmpn(-M)>0||f.cmpn(-K)>0;){var V,Q,Z=w.andln(3)+M&3,ee=f.andln(3)+K&3;3===Z&&(Z=-1),3===ee&&(ee=-1),V=1&Z?3!=(j=w.andln(7)+M&7)&&5!==j||2!==ee?Z:-Z:0,F[0].push(V),Q=1&ee?3!=(j=f.andln(7)+K&7)&&5!==j||2!==Z?ee:-ee:0,F[1].push(Q),2*M===V+1&&(M=1-M),2*K===Q+1&&(K=1-K),w.iushrn(1),f.iushrn(1)}return F},i.cachedProperty=function A(w,f,F){var M="_"+f;w.prototype[f]=function(){return void 0!==this[M]?this[M]:this[M]=F.call(this)}},i.parseBytes=function h(w){return"string"==typeof w?i.toArray(w,"hex"):w},i.intFromLE=function d(w){return new g(w,"hex","le")}},88723(ke,q,l){!function(i,g){"use strict";function p(L,t){if(!L)throw new Error(t||"Assertion failed")}function D(L,t){L.super_=t;var s=function(){};s.prototype=t.prototype,L.prototype=new s,L.prototype.constructor=L}function o(L,t,s){if(o.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,null!==L&&(("le"===t||"be"===t)&&(s=t,t=10),this._init(L||0,t||10,s||"be"))}var e;"object"==typeof i?i.exports=o:g.BN=o,o.BN=o,o.wordSize=26;try{e=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:l(79368).Buffer}catch{}function A(L,t){var s=L.charCodeAt(t);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},4570(ke){"use strict";var q=Object.defineProperty||!1;if(q)try{q({},"a",{value:1})}catch{q=!1}ke.exports=q},1756(ke){"use strict";ke.exports=EvalError},37640(ke){"use strict";ke.exports=Error},77933(ke){"use strict";ke.exports=RangeError},6613(ke){"use strict";ke.exports=ReferenceError},58413(ke){"use strict";ke.exports=SyntaxError},46758(ke){"use strict";ke.exports=TypeError},5286(ke){"use strict";ke.exports=URIError},65891(ke){"use strict";ke.exports=Object},44356(ke){"use strict";var i,q="object"==typeof Reflect?Reflect:null,l=q&&"function"==typeof q.apply?q.apply:function($,ie,_e){return Function.prototype.apply.call($,ie,_e)};i=q&&"function"==typeof q.ownKeys?q.ownKeys:Object.getOwnPropertySymbols?function($){return Object.getOwnPropertyNames($).concat(Object.getOwnPropertySymbols($))}:function($){return Object.getOwnPropertyNames($)};var p=Number.isNaN||function($){return $!=$};function D(){D.init.call(this)}ke.exports=D,ke.exports.once=function Z(Q,$){return new Promise(function(ie,_e){function ye(pe){Q.removeListener($,se),_e(pe)}function se(){"function"==typeof Q.removeListener&&Q.removeListener("error",ye),ie([].slice.call(arguments))}V(Q,$,se,{once:!0}),"error"!==$&&function ee(Q,$,ie){"function"==typeof Q.on&&V(Q,"error",$,ie)}(Q,ye,{once:!0})})},D.EventEmitter=D,D.prototype._events=void 0,D.prototype._eventsCount=0,D.prototype._maxListeners=void 0;var o=10;function e(Q){if("function"!=typeof Q)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Q)}function A(Q){return void 0===Q._maxListeners?D.defaultMaxListeners:Q._maxListeners}function h(Q,$,ie,_e){var ye,se,pe;if(e(ie),void 0===(se=Q._events)?(se=Q._events=Object.create(null),Q._eventsCount=0):(void 0!==se.newListener&&(Q.emit("newListener",$,ie.listener?ie.listener:ie),se=Q._events),pe=se[$]),void 0===pe)pe=se[$]=ie,++Q._eventsCount;else if("function"==typeof pe?pe=se[$]=_e?[ie,pe]:[pe,ie]:_e?pe.unshift(ie):pe.push(ie),(ye=A(Q))>0&&pe.length>ye&&!pe.warned){pe.warned=!0;var Ee=new Error("Possible EventEmitter memory leak detected. "+pe.length+" "+String($)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ee.name="MaxListenersExceededWarning",Ee.emitter=Q,Ee.type=$,Ee.count=pe.length,function g(Q){console&&console.warn&&console.warn(Q)}(Ee)}return Q}function d(){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 w(Q,$,ie){var _e={fired:!1,wrapFn:void 0,target:Q,type:$,listener:ie},ye=d.bind(_e);return ye.listener=ie,_e.wrapFn=ye,ye}function f(Q,$,ie){var _e=Q._events;if(void 0===_e)return[];var ye=_e[$];return void 0===ye?[]:"function"==typeof ye?ie?[ye.listener||ye]:[ye]:ie?function j(Q){for(var $=new Array(Q.length),ie=0;ie<$.length;++ie)$[ie]=Q[ie].listener||Q[ie];return $}(ye):M(ye,ye.length)}function F(Q){var $=this._events;if(void 0!==$){var ie=$[Q];if("function"==typeof ie)return 1;if(void 0!==ie)return ie.length}return 0}function M(Q,$){for(var ie=new Array($),_e=0;_e<$;++_e)ie[_e]=Q[_e];return ie}function V(Q,$,ie,_e){if("function"==typeof Q.on)_e.once?Q.once($,ie):Q.on($,ie);else{if("function"!=typeof Q.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Q);Q.addEventListener($,function ye(se){_e.once&&Q.removeEventListener($,ye),ie(se)})}}Object.defineProperty(D,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(Q){if("number"!=typeof Q||Q<0||p(Q))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Q+".");o=Q}}),D.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},D.prototype.setMaxListeners=function($){if("number"!=typeof $||$<0||p($))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+$+".");return this._maxListeners=$,this},D.prototype.getMaxListeners=function(){return A(this)},D.prototype.emit=function($){for(var ie=[],_e=1;_e0&&(pe=ie[0]),pe instanceof Error)throw pe;var Ee=new Error("Unhandled error."+(pe?" ("+pe.message+")":""));throw Ee.context=pe,Ee}var L=se[$];if(void 0===L)return!1;if("function"==typeof L)l(L,this,ie);else{var t=L.length,s=M(L,t);for(_e=0;_e=0;pe--)if(_e[pe]===ie||_e[pe].listener===ie){Ee=_e[pe].listener,se=pe;break}if(se<0)return this;0===se?_e.shift():function K(Q,$){for(;$+1=0;ye--)this.removeListener($,ie[ye]);return this},D.prototype.listeners=function($){return f(this,$,!0)},D.prototype.rawListeners=function($){return f(this,$,!1)},D.listenerCount=function(Q,$){return"function"==typeof Q.listenerCount?Q.listenerCount($):F.call(Q,$)},D.prototype.listenerCount=F,D.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},18211(ke,q,l){var i=l(27054).Buffer,g=l(34725);ke.exports=function p(D,o,e,A){if(i.isBuffer(D)||(D=i.from(D,"binary")),o&&(i.isBuffer(o)||(o=i.from(o,"binary")),8!==o.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var h=e/8,d=i.alloc(h),w=i.alloc(A||0),f=i.alloc(0);h>0||A>0;){var F=new g;F.update(f),F.update(D),o&&F.update(o),f=F.digest();var M=0;if(h>0){var K=d.length-h;M=Math.min(h,f.length),f.copy(d,K,0,M),h-=M}if(M0){var j=w.length-A,Z=Math.min(A,f.length-M);f.copy(w,j,M,M+Z),A-=Z}}return f.fill(0),{key:d,iv:w}}},89999(ke,q,l){"use strict";var i=l(58239),g=Object.prototype.toString,p=Object.prototype.hasOwnProperty;ke.exports=function(d,w,f){if(!i(w))throw new TypeError("iterator must be a function");var F;arguments.length>=3&&(F=f),function A(h){return"[object Array]"===g.call(h)}(d)?function(d,w,f){for(var F=0,M=d.length;F"u"||!se?i:se(Uint8Array),u={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?i:ArrayBuffer,"%ArrayIteratorPrototype%":ye&&se?se([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":s,"%AsyncGenerator%":s,"%AsyncGeneratorFunction%":s,"%AsyncIteratorPrototype%":s,"%Atomics%":typeof Atomics>"u"?i:Atomics,"%BigInt%":typeof BigInt>"u"?i:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?i:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":p,"%eval%":eval,"%EvalError%":D,"%Float16Array%":typeof Float16Array>"u"?i:Float16Array,"%Float32Array%":typeof Float32Array>"u"?i:Float32Array,"%Float64Array%":typeof Float64Array>"u"?i:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?i:FinalizationRegistry,"%Function%":ee,"%GeneratorFunction%":s,"%Int8Array%":typeof Int8Array>"u"?i:Int8Array,"%Int16Array%":typeof Int16Array>"u"?i:Int16Array,"%Int32Array%":typeof Int32Array>"u"?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ye&&se?se(se([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":typeof Map>"u"?i:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ye||!se?i:se((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":g,"%Object.getOwnPropertyDescriptor%":Q,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?i:Promise,"%Proxy%":typeof Proxy>"u"?i:Proxy,"%RangeError%":o,"%ReferenceError%":e,"%Reflect%":typeof Reflect>"u"?i:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?i:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ye||!se?i:se((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ye&&se?se(""[Symbol.iterator]()):i,"%Symbol%":ye?Symbol:i,"%SyntaxError%":A,"%ThrowTypeError%":_e,"%TypedArray%":m,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?i:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?i:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?i:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?i:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?i:WeakMap,"%WeakRef%":typeof WeakRef>"u"?i:WeakRef,"%WeakSet%":typeof WeakSet>"u"?i:WeakSet,"%Function.prototype.call%":t,"%Function.prototype.apply%":L,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":pe,"%Math.abs%":w,"%Math.floor%":f,"%Math.max%":F,"%Math.min%":M,"%Math.pow%":K,"%Math.round%":j,"%Math.sign%":Z,"%Reflect.getPrototypeOf%":Ee};if(se)try{null.error}catch(ce){var _=se(se(ce));u["%Error.prototype%"]=_}var T=function ce(Re){var Me;if("%AsyncFunction%"===Re)Me=V("async function () {}");else if("%GeneratorFunction%"===Re)Me=V("function* () {}");else if("%AsyncGeneratorFunction%"===Re)Me=V("async function* () {}");else if("%AsyncGenerator%"===Re){var ve=ce("%AsyncGeneratorFunction%");ve&&(Me=ve.prototype)}else if("%AsyncIteratorPrototype%"===Re){var oe=ce("%AsyncGenerator%");oe&&se&&(Me=se(oe.prototype))}return u[Re]=Me,Me},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=l(65992),a=l(78368),x=C.call(t,Array.prototype.concat),Y=C.call(L,Array.prototype.splice),R=C.call(t,String.prototype.replace),U=C.call(t,String.prototype.slice),fe=C.call(t,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,he=/\\(\\)?/g,ge=function(Re,Me){var oe,ve=Re;if(a(P,ve)&&(ve="%"+(oe=P[ve])[0]+"%"),a(u,ve)){var Se=u[ve];if(Se===s&&(Se=T(ve)),typeof Se>"u"&&!Me)throw new h("intrinsic "+Re+" exists, but is not available. Please file an issue!");return{alias:oe,name:ve,value:Se}}throw new A("intrinsic "+Re+" does not exist!")};ke.exports=function(Re,Me){if("string"!=typeof Re||0===Re.length)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof Me)throw new h('"allowMissing" argument must be a boolean');if(null===fe(/^%?[^%]*%?$/,Re))throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ve=function(Re){var Me=U(Re,0,1),ve=U(Re,-1);if("%"===Me&&"%"!==ve)throw new A("invalid intrinsic syntax, expected closing `%`");if("%"===ve&&"%"!==Me)throw new A("invalid intrinsic syntax, expected opening `%`");var oe=[];return R(Re,re,function(Se,be,nt,$e){oe[oe.length]=nt?R($e,he,"$1"):be||Se}),oe}(Re),oe=ve.length>0?ve[0]:"",Se=ge("%"+oe+"%",Me),be=Se.name,nt=Se.value,$e=!1,dt=Se.alias;dt&&(oe=dt[0],Y(ve,x([0,1],dt)));for(var yt=1,Et=!0;yt=ve.length){var S=Q(nt,rt);nt=(Et=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:nt[rt]}else Et=a(nt,rt),nt=nt[rt];Et&&!$e&&(u[be]=nt)}}return nt}},27203(ke,q,l){"use strict";var i=l(65891);ke.exports=i.getPrototypeOf||null},97669(ke){"use strict";ke.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},91627(ke,q,l){"use strict";var i=l(97669),g=l(27203),p=l(63361);ke.exports=i?function(o){return i(o)}:g?function(o){if(!o||"object"!=typeof o&&"function"!=typeof o)throw new TypeError("getProto: not an object");return g(o)}:p?function(o){return p(o)}:null},52786(ke){"use strict";ke.exports=Object.getOwnPropertyDescriptor},83798(ke,q,l){"use strict";var i=l(52786);if(i)try{i([],"length")}catch{i=null}ke.exports=i},35861(ke,q,l){"use strict";var i=l(4570),g=function(){return!!i};g.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch{return!0}},ke.exports=g},19900(ke,q,l){"use strict";var i=typeof Symbol<"u"&&Symbol,g=l(45310);ke.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&g()}},45310(ke){"use strict";ke.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var l={},i=Symbol("test"),g=Object(i);if("string"==typeof i||"[object Symbol]"!==Object.prototype.toString.call(i)||"[object Symbol]"!==Object.prototype.toString.call(g))return!1;for(var D in l[i]=42,l)return!1;if("function"==typeof Object.keys&&0!==Object.keys(l).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(l).length)return!1;var o=Object.getOwnPropertySymbols(l);if(1!==o.length||o[0]!==i||!Object.prototype.propertyIsEnumerable.call(l,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var e=Object.getOwnPropertyDescriptor(l,i);if(42!==e.value||!0!==e.enumerable)return!1}return!0}},88779(ke,q,l){"use strict";var i=l(45310);ke.exports=function(){return i()&&!!Symbol.toStringTag}},13686(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(7045).Transform;function D(h){g.call(this),this._block=i.allocUnsafe(h),this._blockSize=h,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}l(71993)(D,g),D.prototype._transform=function(h,d,w){var f=null;try{this.update(h,d)}catch(F){f=F}w(f)},D.prototype._flush=function(h){var d=null;try{this.push(this.digest())}catch(w){d=w}h(d)};var o=typeof Uint8Array<"u",e=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);D.prototype.update=function(h,d){if(this._finalized)throw new Error("Digest already called");h=function A(h,d){if(h instanceof i)return h;if("string"==typeof h)return i.from(h,d);if(e&&ArrayBuffer.isView(h)){if(0===h.byteLength)return i.alloc(0);var w=i.from(h.buffer,h.byteOffset,h.byteLength);if(w.byteLength===h.byteLength)return w}if(o&&h instanceof Uint8Array||i.isBuffer(h)&&h.constructor&&"function"==typeof h.constructor.isBuffer&&h.constructor.isBuffer(h))return i.from(h);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(h,d);for(var w=this._block,f=0;this._blockOffset+h.length-f>=this._blockSize;){for(var F=this._blockOffset;F0;++M)this._length[M]+=K,(K=this._length[M]/4294967296|0)>0&&(this._length[M]-=4294967296*K);return this},D.prototype._update=function(){throw new Error("_update is not implemented")},D.prototype.digest=function(h){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==h&&(d=d.toString(h)),this._block.fill(0),this._blockOffset=0;for(var w=0;w<4;++w)this._length[w]=0;return d},D.prototype._digest=function(){throw new Error("_digest is not implemented")},ke.exports=D},52529(ke,q,l){var i=q;i.utils=l(68283),i.common=l(12901),i.sha=l(78528),i.ripemd=l(15283),i.hmac=l(37163),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},12901(ke,q,l){"use strict";var i=l(68283),g=l(39210);function p(){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}q.BlockHash=p,p.prototype.update=function(o,e){if(o=i.toArray(o,e),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var A=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-A,o.length),0===this.pending.length&&(this.pending=null),o=i.join32(o,0,o.length-A,this.endian);for(var h=0;h>>24&255,h[d++]=o>>>16&255,h[d++]=o>>>8&255,h[d++]=255&o}else for(h[d++]=255&o,h[d++]=o>>>8&255,h[d++]=o>>>16&255,h[d++]=o>>>24&255,h[d++]=0,h[d++]=0,h[d++]=0,h[d++]=0,w=8;wthis.blockSize&&(o=(new this.Hash).update(o).digest()),g(o.length<=this.blockSize);for(var e=o.length;e>>3},q.g1_256=function w(f){return g(f,17)^g(f,19)^f>>>10}},68283(ke,q,l){"use strict";var i=l(39210),g=l(71993);function p(s,m){return!(55296!=(64512&s.charCodeAt(m))||m<0||m+1>=s.length)&&56320==(64512&s.charCodeAt(m+1))}function e(s){return(s>>>24|s>>>8&65280|s<<8&16711680|(255&s)<<24)>>>0}function h(s){return 1===s.length?"0"+s:s}function d(s){return 7===s.length?"0"+s:6===s.length?"00"+s:5===s.length?"000"+s:4===s.length?"0000"+s:3===s.length?"00000"+s:2===s.length?"000000"+s:1===s.length?"0000000"+s:s}q.inherits=g,q.toArray=function D(s,m){if(Array.isArray(s))return s.slice();if(!s)return[];var u=[];if("string"==typeof s)if(m){if("hex"===m)for((s=s.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(s="0"+s),T=0;T>6|192,u[_++]=63&P|128):p(s,T)?(P=65536+((1023&P)<<10)+(1023&s.charCodeAt(++T)),u[_++]=P>>18|240,u[_++]=P>>12&63|128,u[_++]=P>>6&63|128,u[_++]=63&P|128):(u[_++]=P>>12|224,u[_++]=P>>6&63|128,u[_++]=63&P|128)}else for(T=0;T>>0;return P},q.split32=function f(s,m){for(var u=new Array(4*s.length),_=0,T=0;_>>24,u[T+1]=P>>>16&255,u[T+2]=P>>>8&255,u[T+3]=255&P):(u[T+3]=P>>>24,u[T+2]=P>>>16&255,u[T+1]=P>>>8&255,u[T]=255&P)}return u},q.rotr32=function F(s,m){return s>>>m|s<<32-m},q.rotl32=function M(s,m){return s<>>32-m},q.sum32=function K(s,m){return s+m>>>0},q.sum32_3=function j(s,m,u){return s+m+u>>>0},q.sum32_4=function Z(s,m,u,_){return s+m+u+_>>>0},q.sum32_5=function ee(s,m,u,_,T){return s+m+u+_+T>>>0},q.sum64=function V(s,m,u,_){var C=_+s[m+1]>>>0;s[m]=(C<_?1:0)+u+s[m]>>>0,s[m+1]=C},q.sum64_hi=function Q(s,m,u,_){return(m+_>>>0>>0},q.sum64_lo=function $(s,m,u,_){return m+_>>>0},q.sum64_4_hi=function ie(s,m,u,_,T,P,C,a){var x=0,Y=m;return x+=(Y=Y+_>>>0)>>0)>>0)>>0},q.sum64_4_lo=function _e(s,m,u,_,T,P,C,a){return m+_+P+a>>>0},q.sum64_5_hi=function ye(s,m,u,_,T,P,C,a,x,Y){var R=0,U=m;return R+=(U=U+_>>>0)>>0)>>0)>>0)>>0},q.sum64_5_lo=function se(s,m,u,_,T,P,C,a,x,Y){return m+_+P+a+Y>>>0},q.rotr64_hi=function pe(s,m,u){return(m<<32-u|s>>>u)>>>0},q.rotr64_lo=function Ee(s,m,u){return(s<<32-u|m>>>u)>>>0},q.shr64_hi=function L(s,m,u){return s>>>u},q.shr64_lo=function t(s,m,u){return(s<<32-u|m>>>u)>>>0}},78368(ke,q,l){"use strict";var i=Function.prototype.call,g=Object.prototype.hasOwnProperty,p=l(65992);ke.exports=p.call(i,g)},33556(ke,q,l){"use strict";var i=l(52529),g=l(21832),p=l(39210);function D(o){if(!(this instanceof D))return new D(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=g.toArray(o.entropy,o.entropyEnc||"hex"),A=g.toArray(o.nonce,o.nonceEnc||"hex"),h=g.toArray(o.pers,o.persEnc||"hex");p(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,A,h)}ke.exports=D,D.prototype._init=function(e,A,h){var d=e.concat(A).concat(h);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var w=0;w=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(h||[])),this._reseed=1},D.prototype.generate=function(e,A,h,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof A&&(d=h,h=A,A=null),h&&(h=g.toArray(h,d||"hex"),this._update(h));for(var w=[];w.length>1,w=-7,f=g?D-1:0,F=g?-1:1,M=l[i+f];for(f+=F,o=M&(1<<-w)-1,M>>=-w,w+=A;w>0;o=256*o+l[i+f],f+=F,w-=8);for(e=o&(1<<-w)-1,o>>=-w,w+=p;w>0;e=256*e+l[i+f],f+=F,w-=8);if(0===o)o=1-d;else{if(o===h)return e?NaN:1/0*(M?-1:1);e+=Math.pow(2,p),o-=d}return(M?-1:1)*e*Math.pow(2,o-p)},q.write=function(l,i,g,p,D,o){var e,A,h,d=8*o-D-1,w=(1<>1,F=23===D?Math.pow(2,-24)-Math.pow(2,-77):0,M=p?0:o-1,K=p?1:-1,j=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(A=isNaN(i)?1:0,e=w):(e=Math.floor(Math.log(i)/Math.LN2),i*(h=Math.pow(2,-e))<1&&(e--,h*=2),(i+=e+f>=1?F/h:F*Math.pow(2,1-f))*h>=2&&(e++,h/=2),e+f>=w?(A=0,e=w):e+f>=1?(A=(i*h-1)*Math.pow(2,D),e+=f):(A=i*Math.pow(2,f-1)*Math.pow(2,D),e=0));D>=8;l[g+M]=255&A,M+=K,A/=256,D-=8);for(e=e<0;l[g+M]=255&e,M+=K,e/=256,d-=8);l[g+M-K]|=128*j}},71993(ke){ke.exports="function"==typeof Object.create?function(l,i){i&&(l.super_=i,l.prototype=Object.create(i.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}))}:function(l,i){if(i){l.super_=i;var g=function(){};g.prototype=i.prototype,l.prototype=new g,l.prototype.constructor=l}}},58239(ke){"use strict";var i,g,q=Function.prototype.toString,l="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof l&&"function"==typeof Object.defineProperty)try{i=Object.defineProperty({},"length",{get:function(){throw g}}),g={},l(function(){throw 42},null,i)}catch(ee){ee!==g&&(l=null)}else l=null;var p=/^\s*class\b/,D=function(V){try{var Q=q.call(V);return p.test(Q)}catch{return!1}},o=function(V){try{return!D(V)&&(q.call(V),!0)}catch{return!1}},e=Object.prototype.toString,M="function"==typeof Symbol&&!!Symbol.toStringTag,K=!(0 in[,]),j=function(){return!1};if("object"==typeof document){var Z=document.all;e.call(Z)===e.call(document.all)&&(j=function(V){if((K||!V)&&(typeof V>"u"||"object"==typeof V))try{var Q=e.call(V);return("[object HTMLAllCollection]"===Q||"[object HTML document.all class]"===Q||"[object HTMLCollection]"===Q||"[object Object]"===Q)&&null==V("")}catch{}return!1})}ke.exports=l?function(V){if(j(V))return!0;if(!V||"function"!=typeof V&&"object"!=typeof V)return!1;try{l(V,null,i)}catch(Q){if(Q!==g)return!1}return!D(V)&&o(V)}:function(V){if(j(V))return!0;if(!V||"function"!=typeof V&&"object"!=typeof V)return!1;if(M)return o(V);if(D(V))return!1;var Q=e.call(V);return!("[object Function]"!==Q&&"[object GeneratorFunction]"!==Q&&!/^\[object HTML/.test(Q))&&o(V)}},4729(ke,q,l){"use strict";var i=l(44068);ke.exports=function(p){return!!i(p)}},20053(ke){var q={}.toString;ke.exports=Array.isArray||function(l){return"[object Array]"==q.call(l)}},70837(ke){"use strict";ke.exports=Math.abs},3383(ke){"use strict";ke.exports=Math.floor},85488(ke){"use strict";ke.exports=Number.isNaN||function(l){return l!=l}},79039(ke){"use strict";ke.exports=Math.max},14981(ke){"use strict";ke.exports=Math.min},80975(ke){"use strict";ke.exports=Math.pow},5337(ke){"use strict";ke.exports=Math.round},4912(ke,q,l){"use strict";var i=l(85488);ke.exports=function(p){return i(p)||0===p?p:p<0?-1:1}},34725(ke,q,l){"use strict";var i=l(71993),g=l(13686),p=l(27054).Buffer,D=new Array(16);function o(){g.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function e(f,F){return f<>>32-F}function A(f,F,M,K,j,Z,ee){return e(f+(F&M|~F&K)+j+Z|0,ee)+F|0}function h(f,F,M,K,j,Z,ee){return e(f+(F&K|M&~K)+j+Z|0,ee)+F|0}function d(f,F,M,K,j,Z,ee){return e(f+(F^M^K)+j+Z|0,ee)+F|0}function w(f,F,M,K,j,Z,ee){return e(f+(M^(F|~K))+j+Z|0,ee)+F|0}i(o,g),o.prototype._update=function(){for(var f=D,F=0;F<16;++F)f[F]=this._block.readInt32LE(4*F);var M=this._a,K=this._b,j=this._c,Z=this._d;M=A(M,K,j,Z,f[0],3614090360,7),Z=A(Z,M,K,j,f[1],3905402710,12),j=A(j,Z,M,K,f[2],606105819,17),K=A(K,j,Z,M,f[3],3250441966,22),M=A(M,K,j,Z,f[4],4118548399,7),Z=A(Z,M,K,j,f[5],1200080426,12),j=A(j,Z,M,K,f[6],2821735955,17),K=A(K,j,Z,M,f[7],4249261313,22),M=A(M,K,j,Z,f[8],1770035416,7),Z=A(Z,M,K,j,f[9],2336552879,12),j=A(j,Z,M,K,f[10],4294925233,17),K=A(K,j,Z,M,f[11],2304563134,22),M=A(M,K,j,Z,f[12],1804603682,7),Z=A(Z,M,K,j,f[13],4254626195,12),j=A(j,Z,M,K,f[14],2792965006,17),M=h(M,K=A(K,j,Z,M,f[15],1236535329,22),j,Z,f[1],4129170786,5),Z=h(Z,M,K,j,f[6],3225465664,9),j=h(j,Z,M,K,f[11],643717713,14),K=h(K,j,Z,M,f[0],3921069994,20),M=h(M,K,j,Z,f[5],3593408605,5),Z=h(Z,M,K,j,f[10],38016083,9),j=h(j,Z,M,K,f[15],3634488961,14),K=h(K,j,Z,M,f[4],3889429448,20),M=h(M,K,j,Z,f[9],568446438,5),Z=h(Z,M,K,j,f[14],3275163606,9),j=h(j,Z,M,K,f[3],4107603335,14),K=h(K,j,Z,M,f[8],1163531501,20),M=h(M,K,j,Z,f[13],2850285829,5),Z=h(Z,M,K,j,f[2],4243563512,9),j=h(j,Z,M,K,f[7],1735328473,14),M=d(M,K=h(K,j,Z,M,f[12],2368359562,20),j,Z,f[5],4294588738,4),Z=d(Z,M,K,j,f[8],2272392833,11),j=d(j,Z,M,K,f[11],1839030562,16),K=d(K,j,Z,M,f[14],4259657740,23),M=d(M,K,j,Z,f[1],2763975236,4),Z=d(Z,M,K,j,f[4],1272893353,11),j=d(j,Z,M,K,f[7],4139469664,16),K=d(K,j,Z,M,f[10],3200236656,23),M=d(M,K,j,Z,f[13],681279174,4),Z=d(Z,M,K,j,f[0],3936430074,11),j=d(j,Z,M,K,f[3],3572445317,16),K=d(K,j,Z,M,f[6],76029189,23),M=d(M,K,j,Z,f[9],3654602809,4),Z=d(Z,M,K,j,f[12],3873151461,11),j=d(j,Z,M,K,f[15],530742520,16),M=w(M,K=d(K,j,Z,M,f[2],3299628645,23),j,Z,f[0],4096336452,6),Z=w(Z,M,K,j,f[7],1126891415,10),j=w(j,Z,M,K,f[14],2878612391,15),K=w(K,j,Z,M,f[5],4237533241,21),M=w(M,K,j,Z,f[12],1700485571,6),Z=w(Z,M,K,j,f[3],2399980690,10),j=w(j,Z,M,K,f[10],4293915773,15),K=w(K,j,Z,M,f[1],2240044497,21),M=w(M,K,j,Z,f[8],1873313359,6),Z=w(Z,M,K,j,f[15],4264355552,10),j=w(j,Z,M,K,f[6],2734768916,15),K=w(K,j,Z,M,f[13],1309151649,21),M=w(M,K,j,Z,f[4],4149444226,6),Z=w(Z,M,K,j,f[11],3174756917,10),j=w(j,Z,M,K,f[2],718787259,15),K=w(K,j,Z,M,f[9],3951481745,21),this._a=this._a+M|0,this._b=this._b+K|0,this._c=this._c+j|0,this._d=this._d+Z|0},o.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 f=p.allocUnsafe(16);return f.writeInt32LE(this._a,0),f.writeInt32LE(this._b,4),f.writeInt32LE(this._c,8),f.writeInt32LE(this._d,12),f},ke.exports=o},53459(ke,q,l){var i=l(57223),g=l(35294);function p(D){this.rand=D||new g.Rand}ke.exports=p,p.create=function(o){return new p(o)},p.prototype._randbelow=function(o){var e=o.bitLength(),A=Math.ceil(e/8);do{var h=new i(this.rand.generate(A))}while(h.cmp(o)>=0);return h},p.prototype._randrange=function(o,e){var A=e.sub(o);return o.add(this._randbelow(A))},p.prototype.test=function(o,e,A){var h=o.bitLength(),d=i.mont(o),w=new i(1).toRed(d);e||(e=Math.max(1,h/48|0));for(var f=o.subn(1),F=0;!f.testn(F);F++);for(var M=o.shrn(F),K=f.toRed(d);e>0;e--){var Z=this._randrange(new i(2),f);A&&A(Z);var ee=Z.toRed(d).redPow(M);if(0!==ee.cmp(w)&&0!==ee.cmp(K)){for(var V=1;V0;e--){var K=this._randrange(new i(2),w),j=o.gcd(K);if(0!==j.cmpn(1))return j;var Z=K.toRed(h).redPow(F);if(0!==Z.cmp(d)&&0!==Z.cmp(M)){for(var ee=1;ee=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},39210(ke){function q(l,i){if(!l)throw new Error(i||"Assertion failed")}ke.exports=q,q.equal=function(i,g,p){if(i!=g)throw new Error(p||"Assertion failed: "+i+" != "+g)}},21832(ke,q){"use strict";var l=q;function g(D){return 1===D.length?"0"+D:D}function p(D){for(var o="",e=0;e>8,w=255&h;d?e.push(d,w):e.push(w)}return e},l.zero2=g,l.toHex=p,l.encode=function(o,e){return"hex"===e?p(o):o}},31264(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var i=l(94478);Object.keys(i).forEach(function(g){"default"!==g&&Object.defineProperty(q,g,{enumerable:!0,get:function(){return i[g]}})})},83138(ke,q,l){"use strict";var i=l(49609);q.certificate=l(94772);var g=i.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())});q.RSAPrivateKey=g;var p=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});q.RSAPublicKey=p;var D=i.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())}),o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(D),this.key("subjectPublicKey").bitstr())});q.PublicKey=o;var e=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(D),this.key("subjectPrivateKey").octstr())});q.PrivateKey=e;var A=i.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())});q.EncryptedPrivateKey=A;var h=i.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())});q.DSAPrivateKey=h,q.DSAparam=i.define("DSAparam",function(){this.int()});var d=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),w=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});q.ECPrivateKey=w,q.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},94772(ke,q,l){"use strict";var i=l(49609),g=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),p=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),D=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(D),this.key("subjectPublicKey").bitstr())}),e=i.define("RelativeDistinguishedName",function(){this.setof(p)}),A=i.define("RDNSequence",function(){this.seqof(e)}),h=i.define("Name",function(){this.choice({rdnSequence:this.use(A)})}),d=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(g),this.key("notAfter").use(g))}),w=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(D),this.key("issuer").use(h),this.key("validity").use(d),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(w).optional())}),F=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(D),this.key("signatureValue").bitstr())});ke.exports=F},89472(ke,q,l){"use strict";var i=/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,g=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,p=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,D=l(18211),o=l(43388),e=l(27054).Buffer;ke.exports=function(A,h){var f,d=A.toString(),w=d.match(i);if(w){var M="aes"+w[1],K=e.from(w[2],"hex"),j=e.from(w[3].replace(/[\r\n]/g,""),"base64"),Z=D(h,K.slice(0,8),parseInt(w[1],10)).key,ee=[],V=o.createDecipheriv(M,Z,K);ee.push(V.update(j)),ee.push(V.final()),f=e.concat(ee)}else{var F=d.match(p);f=e.from(F[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(g)[1],data:f}}},65667(ke,q,l){"use strict";var i=l(83138),g=l(15579),p=l(89472),D=l(43388),o=l(93397).pbkdf2Sync,e=l(27054).Buffer;function h(d){var w;"object"==typeof d&&!e.isBuffer(d)&&(w=d.passphrase,d=d.key),"string"==typeof d&&(d=e.from(d));var K,j,f=p(d,w),F=f.tag,M=f.data;switch(F){case"CERTIFICATE":j=i.certificate.decode(M,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(j||(j=i.PublicKey.decode(M,"der")),K=j.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(j.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return j.subjectPrivateKey=j.subjectPublicKey,{type:"ec",data:j};case"1.2.840.10040.4.1":return j.algorithm.params.pub_key=i.DSAparam.decode(j.subjectPublicKey.data,"der"),{type:"dsa",data:j.algorithm.params};default:throw new Error("unknown key id "+K)}case"ENCRYPTED PRIVATE KEY":M=function A(d,w){var f=d.algorithm.decrypt.kde.kdeparams.salt,F=parseInt(d.algorithm.decrypt.kde.kdeparams.iters.toString(),10),M=g[d.algorithm.decrypt.cipher.algo.join(".")],K=d.algorithm.decrypt.cipher.iv,j=d.subjectPrivateKey,Z=parseInt(M.split("-")[1],10)/8,ee=o(w,f,F,Z,"sha1"),V=D.createDecipheriv(M,ee,K),Q=[];return Q.push(V.update(j)),Q.push(V.final()),e.concat(Q)}(M=i.EncryptedPrivateKey.decode(M,"der"),w);case"PRIVATE KEY":switch(K=(j=i.PrivateKey.decode(M,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(j.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:j.algorithm.curve,privateKey:i.ECPrivateKey.decode(j.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return j.algorithm.params.priv_key=i.DSAparam.decode(j.subjectPrivateKey,"der"),{type:"dsa",params:j.algorithm.params};default:throw new Error("unknown key id "+K)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(M,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(M,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(M,"der")};case"EC PRIVATE KEY":return{curve:(M=i.ECPrivateKey.decode(M,"der")).parameters.value,privateKey:M.privateKey};default:throw new Error("unknown key type "+F)}}h.signature=i.signature,ke.exports=h},93397(ke,q,l){"use strict";q.pbkdf2=l(82685),q.pbkdf2Sync=l(59111)},82685(ke,q,l){"use strict";var e,w,i=l(27054).Buffer,g=l(86111),p=l(45392),D=l(59111),o=l(76643),A=global.crypto&&global.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function f(){return w||(w=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function F(j,Z,ee,V,Q){return A.importKey("raw",j,{name:"PBKDF2"},!1,["deriveBits"]).then(function($){return A.deriveBits({name:"PBKDF2",salt:Z,iterations:ee,hash:{name:Q}},$,V<<3)}).then(function($){return i.from($)})}ke.exports=function(j,Z,ee,V,Q,$){if("function"==typeof Q&&($=Q,Q=void 0),V=g(ee,V),j=o(j,p,"Password"),Z=o(Z,p,"Salt"),"function"!=typeof $)throw new Error("No callback provided to pbkdf2");var ie=h[(Q=Q||"sha1").toLowerCase()];ie&&"function"==typeof global.Promise?function K(j,Z){j.then(function(ee){f()(function(){Z(null,ee)})},function(ee){f()(function(){Z(ee)})})}(function M(j){if(global.process&&!global.process.browser||!A||!A.importKey||!A.deriveBits)return Promise.resolve(!1);if(void 0!==d[j])return d[j];var Z=F(e=e||i.alloc(8),e,10,128,j).then(function(){return!0},function(){return!1});return d[j]=Z,Z}(ie).then(function(_e){return _e?F(j,Z,ee,V,ie):D(j,Z,ee,V,Q)}),$):f()(function(){var _e;try{_e=D(j,Z,ee,V,Q)}catch(ye){return void $(ye)}$(null,_e)})}},45392(ke){"use strict";var q;q=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",ke.exports=q},86111(ke){"use strict";var q=isFinite,l=Math.pow(2,30)-1;ke.exports=function(i,g){if("number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0||!q(i))throw new TypeError("Bad iterations");if("number"!=typeof g)throw new TypeError("Key length not a number");if(g<0||g>l||g!=g)throw new TypeError("Bad key length");return g+0}},59111(ke,q,l){"use strict";var i=l(83407),g=l(36636),p=l(25443),D=l(27054).Buffer,o=l(86111),e=l(45392),A=l(76643),h=D.alloc(128),d={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},w={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function f(j){return(new g).update(j).digest()}function M(j,Z,ee){var V=function F(j){return"rmd160"===j||"ripemd160"===j?f:"md5"===j?i:function Z(ee){return p(j).update(ee).digest()}}(j),Q="sha512"===j||"sha384"===j?128:64;Z.length>Q?Z=V(Z):Z.length"u"||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?{nextTick:function q(l,i,g,p){if("function"!=typeof l)throw new TypeError('"callback" argument must be a function');var o,e,D=arguments.length;switch(D){case 0:case 1:return process.nextTick(l);case 2:return process.nextTick(function(){l.call(null,i)});case 3:return process.nextTick(function(){l.call(null,i,g)});case 4:return process.nextTick(function(){l.call(null,i,g,p)});default:for(o=new Array(D-1),e=0;e=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},98613(ke,q,l){var i=l(65667),g=l(30715),p=l(37196),D=l(16508),o=l(14105),e=l(67211),A=l(10568),h=l(27054).Buffer;ke.exports=function(M,K,j){var Z;Z=M.padding?M.padding:j?1:4;var Q,ee=i(M),V=ee.modulus.byteLength();if(K.length>V||new D(K).cmp(ee.modulus)>=0)throw new Error("decryption error");Q=j?A(new D(K),ee):o(K,ee);var $=h.alloc(V-Q.length);if(Q=h.concat([$,Q],V),4===Z)return function d(F,M){var K=F.modulus.byteLength(),j=e("sha1").update(h.alloc(0)).digest(),Z=j.length;if(0!==M[0])throw new Error("decryption error");var ee=M.slice(1,Z+1),V=M.slice(Z+1),Q=p(ee,g(V,Z)),$=p(V,g(Q,K-Z-1));if(function f(F,M){F=h.from(F),M=h.from(M);var K=0,j=F.length;F.length!==M.length&&(K++,j=Math.min(F.length,M.length));for(var Z=-1;++Z=M.length){ee++;break}var V=M.slice(2,Z-1);if(("0002"!==j.toString("hex")&&!K||"0001"!==j.toString("hex")&&K)&&ee++,V.length<8&&ee++,ee)throw new Error("decryption error");return M.slice(Z)}(0,Q,j);if(3===Z)return Q;throw new Error("unknown padding")}},87267(ke,q,l){var i=l(65667),g=l(3342),p=l(67211),D=l(30715),o=l(37196),e=l(16508),A=l(10568),h=l(14105),d=l(27054).Buffer;ke.exports=function(K,j,Z){var ee;ee=K.padding?K.padding:Z?1:4;var Q,V=i(K);if(4===ee)Q=function w(M,K){var j=M.modulus.byteLength(),Z=K.length,ee=p("sha1").update(d.alloc(0)).digest(),V=ee.length,Q=2*V;if(Z>j-Q-2)throw new Error("message too long");var $=d.alloc(j-Z-Q-2),ie=j-V-1,_e=g(V),ye=o(d.concat([ee,$,d.alloc(1,1),K],ie),D(_e,ie)),se=o(_e,D(ye,V));return new e(d.concat([d.alloc(1),se,ye],j))}(V,j);else if(1===ee)Q=function f(M,K,j){var V,Z=K.length,ee=M.modulus.byteLength();if(Z>ee-11)throw new Error("message too long");return V=j?d.alloc(ee-Z-3,255):function F(M){for(var V,K=d.allocUnsafe(M),j=0,Z=g(2*M),ee=0;j=0)throw new Error("data too long for modulus")}return Z?h(Q,V):A(Q,V)}},10568(ke,q,l){var i=l(16508),g=l(27054).Buffer;ke.exports=function p(D,o){return g.from(D.toRed(i.mont(o.modulus)).redPow(new i(o.publicExponent)).fromRed().toArray())}},37196(ke){ke.exports=function(l,i){for(var g=l.length,p=-1;++p"u"?(w=d,d=void 0):(w=d,d=h,h=A,A=void 0));try{const K=g.create(h,d);w(null,e(K,A,d))}catch(K){w(K)}}q.create=g.create,q.toCanvas=o.bind(null,p.render),q.toDataURL=o.bind(null,p.renderToDataURL),q.toString=o.bind(null,function(e,A,h){return D.render(e,h)})},72836(ke){ke.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},96214(ke,q,l){const i=l(19089).getSymbolSize;q.getRowColCoords=function(p){if(1===p)return[];const D=Math.floor(p/7)+2,o=i(p),e=145===o?26:2*Math.ceil((o-13)/(2*D-2)),A=[o-7];for(let h=1;h>>7-l%8&1)},put:function(l,i){for(let g=0;g>>i-g-1&1))},getLengthInBits:function(){return this.length},putBit:function(l){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),l&&(this.buffer[i]|=128>>>this.length%8),this.length++}},ke.exports=q},35941(ke){function q(l){if(!l||l<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=l,this.data=new Uint8Array(l*l),this.reservedBit=new Uint8Array(l*l)}q.prototype.set=function(l,i,g,p){const D=l*this.size+i;this.data[D]=g,p&&(this.reservedBit[D]=!0)},q.prototype.get=function(l,i){return this.data[l*this.size+i]},q.prototype.xor=function(l,i,g){this.data[l*this.size+i]^=g},q.prototype.isReserved=function(l,i){return this.reservedBit[l*this.size+i]},ke.exports=q},54969(ke,q,l){const i=l(91677);function g(p){this.mode=i.BYTE,this.data="string"==typeof p?(new TextEncoder).encode(p):new Uint8Array(p)}g.getBitsLength=function(D){return 8*D},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(p){for(let D=0,o=this.data.length;D=0&&g.bit<4},q.from=function(g,p){if(q.isValid(g))return g;try{return function l(i){if("string"!=typeof i)throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return q.L;case"m":case"medium":return q.M;case"q":case"quartile":return q.Q;case"h":case"high":return q.H;default:throw new Error("Unknown EC Level: "+i)}}(g)}catch{return p}}},76269(ke,q,l){const i=l(19089).getSymbolSize;q.getPositions=function(D){const o=i(D);return[[0,0],[o-7,0],[0,o-7]]}},26254(ke,q,l){const i=l(19089),D=i.getBCHDigit(1335);q.getEncodedBits=function(e,A){const h=e.bit<<3|A;let d=h<<10;for(;i.getBCHDigit(d)-D>=0;)d^=1335<=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),D.put(e,13)}},ke.exports=p},3361(ke,q){q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function i(g,p,D){switch(g){case q.Patterns.PATTERN000:return(p+D)%2==0;case q.Patterns.PATTERN001:return p%2==0;case q.Patterns.PATTERN010:return D%3==0;case q.Patterns.PATTERN011:return(p+D)%3==0;case q.Patterns.PATTERN100:return(Math.floor(p/2)+Math.floor(D/3))%2==0;case q.Patterns.PATTERN101:return p*D%2+p*D%3==0;case q.Patterns.PATTERN110:return(p*D%2+p*D%3)%2==0;case q.Patterns.PATTERN111:return(p*D%3+(p+D)%2)%2==0;default:throw new Error("bad maskPattern:"+g)}}q.isValid=function(p){return null!=p&&""!==p&&!isNaN(p)&&p>=0&&p<=7},q.from=function(p){return q.isValid(p)?parseInt(p,10):void 0},q.getPenaltyN1=function(p){const D=p.size;let o=0,e=0,A=0,h=null,d=null;for(let w=0;w=5&&(o+=e-5+3),h=F,e=1),F=p.get(f,w),F===d?A++:(A>=5&&(o+=A-5+3),d=F,A=1)}e>=5&&(o+=e-5+3),A>=5&&(o+=A-5+3)}return o},q.getPenaltyN2=function(p){const D=p.size;let o=0;for(let e=0;e=10&&(1488===e||93===e)&&o++,A=A<<1&2047|p.get(d,h),d>=10&&(1488===A||93===A)&&o++}return 40*o},q.getPenaltyN4=function(p){let D=0;const o=p.data.length;for(let A=0;A=1&&e<10?o.ccBits[0]:e<27?o.ccBits[1]:o.ccBits[2]},q.getBestModeForData=function(o){return g.testNumeric(o)?q.NUMERIC:g.testAlphanumeric(o)?q.ALPHANUMERIC:g.testKanji(o)?q.KANJI:q.BYTE},q.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},q.isValid=function(o){return o&&o.bit&&o.ccBits},q.from=function(o,e){if(q.isValid(o))return o;try{return function p(D){if("string"!=typeof D)throw new Error("Param is not a string");switch(D.toLowerCase()){case"numeric":return q.NUMERIC;case"alphanumeric":return q.ALPHANUMERIC;case"kanji":return q.KANJI;case"byte":return q.BYTE;default:throw new Error("Unknown mode: "+D)}}(o)}catch{return e}}},96628(ke,q,l){const i=l(91677);function g(p){this.mode=i.NUMERIC,this.data=p.toString()}g.getBitsLength=function(D){return 10*Math.floor(D/3)+(D%3?D%3*3+1:0)},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(D){let o,e,A;for(o=0;o+3<=this.data.length;o+=3)e=this.data.substr(o,3),A=parseInt(e,10),D.put(A,10);const h=this.data.length-o;h>0&&(e=this.data.substr(o),A=parseInt(e,10),D.put(A,3*h+1))},ke.exports=g},81744(ke,q,l){const i=l(66686);q.mul=function(p,D){const o=new Uint8Array(p.length+D.length-1);for(let e=0;e=0;){const e=o[0];for(let h=0;h>t&1),ye.set(t<6?t:t<8?t+1:Ee-15+t,8,s,!0),ye.set(8,t<8?Ee-t-1:t<9?15-t-1+1:15-t-1,s,!0);ye.set(Ee-8,8,1,!0)}function _e(ye,se,pe,Ee){let L;if(Array.isArray(ye))L=M.fromArray(ye);else{if("string"!=typeof ye)throw new Error("Invalid data");{let _=se;if(!_){const T=M.rawSplit(ye);_=w.getBestVersionForData(T,pe)}L=M.fromString(ye,_||40)}}const t=w.getBestVersionForData(L,pe);if(!t)throw new Error("The amount of data is too big to be stored in a QR Code");if(se){if(se=0&&m<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===m||6===m)||m>=2&&m<=4&&u>=2&&u<=4,!0)}}(u,se),function j(ye){const se=ye.size;for(let pe=8;pe=7&&function ee(ye,se){const pe=ye.size,Ee=w.getEncodedBits(se);let L,t,s;for(let m=0;m<18;m++)L=Math.floor(m/3),t=m%3+pe-8-3,s=1==(Ee>>m&1),ye.set(L,t,s,!0),ye.set(t,L,s,!0)}(u,se),function Q(ye,se){const pe=ye.size;let Ee=-1,L=pe-1,t=7,s=0;for(let m=pe-1;m>0;m-=2)for(6===m&&m--;;){for(let u=0;u<2;u++)if(!ye.isReserved(L,m-u)){let _=!1;s>>t&1)),ye.set(L,m-u,_),t--,-1===t&&(s++,t=7)}if(L+=Ee,L<0||pe<=L){L-=Ee,Ee=-Ee;break}}}(u,s),isNaN(Ee)&&(Ee=A.getBestMask(u,V.bind(null,u,pe))),A.applyMask(Ee,u),V(u,pe,Ee),{modules:u,version:se,errorCorrectionLevel:pe,maskPattern:Ee,segments:L}}q.create=function(se,pe){if(typeof se>"u"||""===se)throw new Error("No input text");let L,t,Ee=g.M;return typeof pe<"u"&&(Ee=g.from(pe.errorCorrectionLevel,g.M),L=w.from(pe.version),t=A.from(pe.maskPattern),pe.toSJISFunc&&i.setToSJISFunction(pe.toSJISFunc)),_e(se,L,Ee,t)}},86289(ke,q,l){const i=l(81744);function g(p){this.genPoly=void 0,this.degree=p,this.degree&&this.initialize(this.degree)}g.prototype.initialize=function(D){this.degree=D,this.genPoly=i.generateECPolynomial(this.degree)},g.prototype.encode=function(D){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(D.length+this.degree);o.set(D);const e=i.mod(o,this.genPoly),A=this.degree-e.length;if(A>0){const h=new Uint8Array(this.degree);return h.set(e,A),h}return e},ke.exports=g},99359(ke,q){const l="[0-9]+";let g="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";g=g.replace(/u/g,"\\u");const p="(?:(?![A-Z0-9 $%*+\\-./:]|"+g+")(?:.|[\r\n]))+";q.KANJI=new RegExp(g,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(p,"g"),q.NUMERIC=new RegExp(l,"g"),q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const D=new RegExp("^"+g+"$"),o=new RegExp("^"+l+"$"),e=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(h){return D.test(h)},q.testNumeric=function(h){return o.test(h)},q.testAlphanumeric=function(h){return e.test(h)}},22868(ke,q,l){const i=l(91677),g=l(96628),p=l(1018),D=l(54969),o=l(83264),e=l(99359),A=l(19089),h=l(80243);function d(ee){return unescape(encodeURIComponent(ee)).length}function w(ee,V,Q){const $=[];let ie;for(;null!==(ie=ee.exec(Q));)$.push({data:ie[0],index:ie.index,mode:V,length:ie[0].length});return $}function f(ee){const V=w(e.NUMERIC,i.NUMERIC,ee),Q=w(e.ALPHANUMERIC,i.ALPHANUMERIC,ee);let $,ie;return A.isKanjiModeEnabled()?($=w(e.BYTE,i.BYTE,ee),ie=w(e.KANJI,i.KANJI,ee)):($=w(e.BYTE_KANJI,i.BYTE,ee),ie=[]),V.concat(Q,$,ie).sort(function(ye,se){return ye.index-se.index}).map(function(ye){return{data:ye.data,mode:ye.mode,length:ye.length}})}function F(ee,V){switch(V){case i.NUMERIC:return g.getBitsLength(ee);case i.ALPHANUMERIC:return p.getBitsLength(ee);case i.KANJI:return o.getBitsLength(ee);case i.BYTE:return D.getBitsLength(ee)}}function Z(ee,V){let Q;const $=i.getBestModeForData(ee);if(Q=i.from(V,$),Q!==i.BYTE&&Q.bit<$.bit)throw new Error('"'+ee+'" cannot be encoded with mode '+i.toString(Q)+".\n Suggested mode is: "+i.toString($));switch(Q===i.KANJI&&!A.isKanjiModeEnabled()&&(Q=i.BYTE),Q){case i.NUMERIC:return new g(ee);case i.ALPHANUMERIC:return new p(ee);case i.KANJI:return new o(ee);case i.BYTE:return new D(ee)}}q.fromArray=function(V){return V.reduce(function(Q,$){return"string"==typeof $?Q.push(Z($,null)):$.data&&Q.push(Z($.data,$.mode)),Q},[])},q.fromString=function(V,Q){const ie=function K(ee){const V=[];for(let Q=0;Q=0?V[V.length-1]:null;return $&&$.mode===Q.mode?(V[V.length-1].data+=Q.data,V):(V.push(Q),V)},[])}(se))},q.rawSplit=function(V){return q.fromArray(f(V,A.isKanjiModeEnabled()))}},19089(ke,q){let l;const i=[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];q.getSymbolSize=function(p){if(!p)throw new Error('"version" cannot be null or undefined');if(p<1||p>40)throw new Error('"version" should be in range from 1 to 40');return 4*p+17},q.getSymbolTotalCodewords=function(p){return i[p]},q.getBCHDigit=function(g){let p=0;for(;0!==g;)p++,g>>>=1;return p},q.setToSJISFunction=function(p){if("function"!=typeof p)throw new Error('"toSJISFunc" is not a valid function.');l=p},q.isKanjiModeEnabled=function(){return typeof l<"u"},q.toSJIS=function(p){return l(p)}},80377(ke,q){q.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40}},91252(ke,q,l){const i=l(19089),g=l(23677),p=l(47424),D=l(91677),o=l(80377),A=i.getBCHDigit(7973);function d(F,M){return D.getCharCountIndicator(F,M)+4}function w(F,M){let K=0;return F.forEach(function(j){const Z=d(j.mode,M);K+=Z+j.getBitsLength()}),K}q.from=function(M,K){return o.isValid(M)?parseInt(M,10):K},q.getCapacity=function(M,K,j){if(!o.isValid(M))throw new Error("Invalid QR Code version");typeof j>"u"&&(j=D.BYTE);const V=8*(i.getSymbolTotalCodewords(M)-g.getTotalCodewordsCount(M,K));if(j===D.MIXED)return V;const Q=V-d(j,M);switch(j){case D.NUMERIC:return Math.floor(Q/10*3);case D.ALPHANUMERIC:return Math.floor(Q/11*2);case D.KANJI:return Math.floor(Q/13);default:return Math.floor(Q/8)}},q.getBestVersionForData=function(M,K){let j;const Z=p.from(K,p.M);if(Array.isArray(M)){if(M.length>1)return function f(F,M){for(let K=1;K<=40;K++)if(w(F,K)<=q.getCapacity(K,M,D.MIXED))return K}(M,Z);if(0===M.length)return 1;j=M[0]}else j=M;return function h(F,M,K){for(let j=1;j<=40;j++)if(M<=q.getCapacity(j,K,F))return j}(j.mode,j.getLength(),Z)},q.getEncodedBits=function(M){if(!o.isValid(M)||M<7)throw new Error("Invalid QR Code version");let K=M<<12;for(;i.getBCHDigit(K)-A>=0;)K^=7973<"u"&&(!e||!e.getContext)&&(h=e,e=void 0),e||(d=function p(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),h=i.getOptions(h);const w=i.getImageWidth(o.modules.size,h),f=d.getContext("2d"),F=f.createImageData(w,w);return i.qrToImageData(F.data,o,h),function g(D,o,e){D.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=e,o.width=e,o.style.height=e+"px",o.style.width=e+"px"}(f,d,w),f.putImageData(F,0,0),d},q.renderToDataURL=function(o,e,A){let h=A;return typeof h>"u"&&(!e||!e.getContext)&&(h=e,e=void 0),h||(h={}),q.render(o,e,h).toDataURL(h.type||"image/png",(h.rendererOpts||{}).quality)}},56511(ke,q,l){const i=l(47077);function g(o,e){const A=o.a/255,h=e+'="'+o.hex+'"';return A<1?h+" "+e+'-opacity="'+A.toFixed(2).slice(1)+'"':h}function p(o,e,A){let h=o+e;return typeof A<"u"&&(h+=" "+A),h}q.render=function(e,A,h){const d=i.getOptions(A),w=e.modules.size,f=e.modules.data,F=w+2*d.margin,M=d.color.light.a?"':"",K="0&&M>0&&o[F-1]||(h+=w?p("M",M+A,.5+K+A):p("m",d,0),d=0,w=!1),M+1',ee=''+M+K+"\n";return"function"==typeof h&&h(null,ee),ee}},47077(ke,q){function l(i){if("number"==typeof i&&(i=i.toString()),"string"!=typeof i)throw new Error("Color should be defined as hex string");let g=i.slice().replace("#","").split("");if(g.length<3||5===g.length||g.length>8)throw new Error("Invalid hex color: "+i);(3===g.length||4===g.length)&&(g=Array.prototype.concat.apply([],g.map(function(D){return[D,D]}))),6===g.length&&g.push("F","F");const p=parseInt(g.join(""),16);return{r:p>>24&255,g:p>>16&255,b:p>>8&255,a:255&p,hex:"#"+g.slice(0,6).join("")}}q.getOptions=function(g){g||(g={}),g.color||(g.color={});const D=g.width&&g.width>=21?g.width:void 0;return{width:D,scale:D?4:g.scale||4,margin:typeof g.margin>"u"||null===g.margin||g.margin<0?4:g.margin,color:{dark:l(g.color.dark||"#000000ff"),light:l(g.color.light||"#ffffffff")},type:g.type,rendererOpts:g.rendererOpts||{}}},q.getScale=function(g,p){return p.width&&p.width>=g+2*p.margin?p.width/(g+2*p.margin):p.scale},q.getImageWidth=function(g,p){const D=q.getScale(g,p);return Math.floor((g+2*p.margin)*D)},q.qrToImageData=function(g,p,D){const o=p.modules.size,e=p.modules.data,A=q.getScale(o,D),h=Math.floor((o+2*D.margin)*A),d=D.margin*A,w=[D.color.light,D.color.dark];for(let f=0;f=d&&F>=d&&f4294967295)throw new RangeError("requested too many random bytes");var d=D.allocUnsafe(A);if(A>0)if(A>i)for(var w=0;wA||M<0)throw new TypeError("offset must be a uint32");if(M>o||M>K)throw new RangeError("offset out of range")}function d(M,K,j){if("number"!=typeof M||M!=M)throw new TypeError("size must be a number");if(M>A||M<0)throw new TypeError("size must be a uint32");if(M+K>j||M>o)throw new RangeError("buffer too small")}function f(M,K,j,Z){if(process.browser){var V=new Uint8Array(M.buffer,K,j);return e.getRandomValues(V),Z?void process.nextTick(function(){Z(null,M)}):M}if(!Z)return p(j).copy(M,K),M;p(j,function($,ie){if($)return Z($);ie.copy(M,K),Z(null,M)})}e&&e.getRandomValues||!process.browser?(q.randomFill=function w(M,K,j,Z){if(!(D.isBuffer(M)||M instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof K)Z=K,K=0,j=M.length;else if("function"==typeof j)Z=j,j=M.length-K;else if("function"!=typeof Z)throw new TypeError('"cb" argument must be a function');return h(K,M.length),d(j,K,M.length),f(M,K,j,Z)},q.randomFillSync=function F(M,K,j){if(typeof K>"u"&&(K=0),!(D.isBuffer(M)||M instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(K,M.length),void 0===j&&(j=M.length-K),d(j,K,M.length),f(M,K,j)}):(q.randomFill=i,q.randomFillSync=i)},74075(ke,q,l){"use strict";var i=l(9656),g=Object.keys||function(F){var M=[];for(var K in F)M.push(K);return M};ke.exports=d;var p=Object.create(l(27637));p.inherits=l(71993);var D=l(19609),o=l(47849);p.inherits(d,D);for(var e=g(o.prototype),A=0;A0?("string"!=typeof ce&&!oe.objectMode&&Object.getPrototypeOf(ce)!==A.prototype&&(ce=function d(ge){return A.from(ge)}(ce)),Me?oe.endEmitted?ge.emit("error",new Error("stream.unshift() after end event")):_e(ge,oe,ce,!0):oe.ended?ge.emit("error",new Error("stream.push() after EOF")):(oe.reading=!1,oe.decoder&&!Re?(ce=oe.decoder.write(ce),oe.objectMode||0!==ce.length?_e(ge,oe,ce,!1):u(ge,oe)):_e(ge,oe,ce,!1))):Me||(oe.reading=!1)),function se(ge){return!ge.ended&&(ge.needReadable||ge.lengthce.highWaterMark&&(ce.highWaterMark=function Ee(ge){return ge>=8388608?ge=8388608:(ge--,ge|=ge>>>1,ge|=ge>>>2,ge|=ge>>>4,ge|=ge>>>8,ge|=ge>>>16,ge++),ge}(ge)),ge<=ce.length?ge:ce.ended?ce.length:(ce.needReadable=!0,0))}function s(ge){var ce=ge._readableState;ce.needReadable=!1,ce.emittedReadable||(M("emitReadable",ce.flowing),ce.emittedReadable=!0,ce.sync?i.nextTick(m,ge):m(ge))}function m(ge){M("emit readable"),ge.emit("readable"),x(ge)}function u(ge,ce){ce.readingMore||(ce.readingMore=!0,i.nextTick(_,ge,ce))}function _(ge,ce){for(var Re=ce.length;!ce.reading&&!ce.flowing&&!ce.ended&&ce.length=ce.length?(Re=ce.decoder?ce.buffer.join(""):1===ce.buffer.length?ce.buffer.head.data:ce.buffer.concat(ce.length),ce.buffer.clear()):Re=function R(ge,ce,Re){var Me;return geoe.length?oe.length:ge;if(ve+=Se===oe.length?oe:oe.slice(0,ge),0===(ge-=Se)){Se===oe.length?(++Me,ce.head=Re.next?Re.next:ce.tail=null):(ce.head=Re,Re.data=oe.slice(Se));break}++Me}return ce.length-=Me,ve}(ge,ce):function fe(ge,ce){var Re=A.allocUnsafe(ge),Me=ce.head,ve=1;for(Me.data.copy(Re),ge-=Me.data.length;Me=Me.next;){var oe=Me.data,Se=ge>oe.length?oe.length:ge;if(oe.copy(Re,Re.length-ge,0,Se),0===(ge-=Se)){Se===oe.length?(++ve,ce.head=Me.next?Me.next:ce.tail=null):(ce.head=Me,Me.data=oe.slice(Se));break}++ve}return ce.length-=ve,Re}(ge,ce),Me}(ge,ce.buffer,ce.decoder),Re);var Re}function re(ge){var ce=ge._readableState;if(ce.length>0)throw new Error('"endReadable()" called on non-empty stream');ce.endEmitted||(ce.ended=!0,i.nextTick(he,ce,ge))}function he(ge,ce){!ge.endEmitted&&0===ge.length&&(ge.endEmitted=!0,ce.readable=!1,ce.emit("end"))}function Oe(ge,ce){for(var Re=0,Me=ge.length;Re=ce.highWaterMark||ce.ended))return M("read: emitReadable",ce.length,ce.ended),0===ce.length&&ce.ended?re(this):s(this),null;if(0===(ge=L(ge,ce))&&ce.ended)return 0===ce.length&&re(this),null;var ve,Me=ce.needReadable;return M("need readable",Me),(0===ce.length||ce.length-ge0?Y(ge,ce):null)?(ce.needReadable=!0,ge=0):ce.length-=ge,0===ce.length&&(ce.ended||(ce.needReadable=!0),Re!==ge&&ce.ended&&re(this)),null!==ve&&this.emit("data",ve),ve},$.prototype._read=function(ge){this.emit("error",new Error("_read() is not implemented"))},$.prototype.pipe=function(ge,ce){var Re=this,Me=this._readableState;switch(Me.pipesCount){case 0:Me.pipes=ge;break;case 1:Me.pipes=[Me.pipes,ge];break;default:Me.pipes.push(ge)}Me.pipesCount+=1,M("pipe count=%d opts=%j",Me.pipesCount,ce);var oe=ce&&!1===ce.end||ge===process.stdout||ge===process.stderr?S:be;function be(){M("onend"),ge.end()}Me.endEmitted?i.nextTick(oe):Re.once("end",oe),ge.on("unpipe",function Se(Xt,de){M("onunpipe"),Xt===Re&&de&&!1===de.hasUnpiped&&(de.hasUnpiped=!0,function dt(){M("cleanup"),ge.removeListener("close",Mn),ge.removeListener("finish",qt),ge.removeListener("drain",nt),ge.removeListener("error",rt),ge.removeListener("unpipe",Se),Re.removeListener("end",be),Re.removeListener("end",S),Re.removeListener("data",Et),$e=!0,Me.awaitDrain&&(!ge._writableState||ge._writableState.needDrain)&&nt()}())});var nt=function T(ge){return function(){var ce=ge._readableState;M("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,0===ce.awaitDrain&&o(ge,"data")&&(ce.flowing=!0,x(ge))}}(Re);ge.on("drain",nt);var $e=!1,yt=!1;function Et(Xt){M("ondata"),yt=!1,!1===ge.write(Xt)&&!yt&&((1===Me.pipesCount&&Me.pipes===ge||Me.pipesCount>1&&-1!==Oe(Me.pipes,ge))&&!$e&&(M("false write response, pause",Me.awaitDrain),Me.awaitDrain++,yt=!0),Re.pause())}function rt(Xt){M("onerror",Xt),S(),ge.removeListener("error",rt),0===o(ge,"error")&&ge.emit("error",Xt)}function Mn(){ge.removeListener("finish",qt),S()}function qt(){M("onfinish"),ge.removeListener("close",Mn),S()}function S(){M("unpipe"),Re.unpipe(ge)}return Re.on("data",Et),function V(ge,ce,Re){if("function"==typeof ge.prependListener)return ge.prependListener(ce,Re);ge._events&&ge._events[ce]?g(ge._events[ce])?ge._events[ce].unshift(Re):ge._events[ce]=[Re,ge._events[ce]]:ge.on(ce,Re)}(ge,"error",rt),ge.once("close",Mn),ge.once("finish",qt),ge.emit("pipe",Re),Me.flowing||(M("pipe resume"),Re.resume()),ge},$.prototype.unpipe=function(ge){var ce=this._readableState,Re={hasUnpiped:!1};if(0===ce.pipesCount)return this;if(1===ce.pipesCount)return ge&&ge!==ce.pipes||(ge||(ge=ce.pipes),ce.pipes=null,ce.pipesCount=0,ce.flowing=!1,ge&&ge.emit("unpipe",this,Re)),this;if(!ge){var Me=ce.pipes,ve=ce.pipesCount;ce.pipes=null,ce.pipesCount=0,ce.flowing=!1;for(var oe=0;oe-1?setImmediate:i.nextTick;ee.WritableState=j;var e=Object.create(l(27637));e.inherits=l(71993);var Z,A={deprecate:l(3398)},h=l(18342),d=l(2655).Buffer,w=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},M=l(21509);function K(){}function j(C,a){o=o||l(74075);var x=a instanceof o;this.objectMode=!!(C=C||{}).objectMode,x&&(this.objectMode=this.objectMode||!!C.writableObjectMode);var Y=C.highWaterMark,R=C.writableHighWaterMark;this.highWaterMark=Y||0===Y?Y:x&&(R||0===R)?R:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===C.decodeStrings),this.defaultEncoding=C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(re){!function pe(C,a){var x=C._writableState,Y=x.sync,R=x.writecb;if(function se(C){C.writing=!1,C.writecb=null,C.length-=C.writelen,C.writelen=0}(x),a)!function ye(C,a,x,Y,R){--a.pendingcb,x?(i.nextTick(R,Y),i.nextTick(_,C,a),C._writableState.errorEmitted=!0,C.emit("error",Y)):(R(Y),C._writableState.errorEmitted=!0,C.emit("error",Y),_(C,a))}(C,x,Y,a,R);else{var U=s(x);!U&&!x.corked&&!x.bufferProcessing&&x.bufferedRequest&&t(C,x),Y?D(Ee,C,x,U,R):Ee(C,x,U,R)}}(a,re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new p(this)}function ee(C){if(o=o||l(74075),!(Z.call(ee,this)||this instanceof o))return new ee(C);this._writableState=new j(C,this),this.writable=!0,C&&("function"==typeof C.write&&(this._write=C.write),"function"==typeof C.writev&&(this._writev=C.writev),"function"==typeof C.destroy&&(this._destroy=C.destroy),"function"==typeof C.final&&(this._final=C.final)),h.call(this)}function _e(C,a,x,Y,R,U,fe){a.writelen=Y,a.writecb=fe,a.writing=!0,a.sync=!0,x?C._writev(R,a.onwrite):C._write(R,U,a.onwrite),a.sync=!1}function Ee(C,a,x,Y){x||function L(C,a){0===a.length&&a.needDrain&&(a.needDrain=!1,C.emit("drain"))}(C,a),a.pendingcb--,Y(),_(C,a)}function t(C,a){a.bufferProcessing=!0;var x=a.bufferedRequest;if(C._writev&&x&&x.next){var R=new Array(a.bufferedRequestCount),U=a.corkedRequestsFree;U.entry=x;for(var fe=0,re=!0;x;)R[fe]=x,x.isBuf||(re=!1),x=x.next,fe+=1;R.allBuffers=re,_e(C,a,!0,a.length,R,"",U.finish),a.pendingcb++,a.lastBufferedRequest=null,U.next?(a.corkedRequestsFree=U.next,U.next=null):a.corkedRequestsFree=new p(a),a.bufferedRequestCount=0}else{for(;x;){var he=x.chunk;if(_e(C,a,!1,a.objectMode?1:he.length,he,x.encoding,x.callback),x=x.next,a.bufferedRequestCount--,a.writing)break}null===x&&(a.lastBufferedRequest=null)}a.bufferedRequest=x,a.bufferProcessing=!1}function s(C){return C.ending&&0===C.length&&null===C.bufferedRequest&&!C.finished&&!C.writing}function m(C,a){C._final(function(x){a.pendingcb--,x&&C.emit("error",x),a.prefinished=!0,C.emit("prefinish"),_(C,a)})}function _(C,a){var x=s(a);return x&&(function u(C,a){!a.prefinished&&!a.finalCalled&&("function"==typeof C._final?(a.pendingcb++,a.finalCalled=!0,i.nextTick(m,C,a)):(a.prefinished=!0,C.emit("prefinish")))}(C,a),0===a.pendingcb&&(a.finished=!0,C.emit("finish"))),x}e.inherits(ee,h),j.prototype.getBuffer=function(){for(var a=this.bufferedRequest,x=[];a;)x.push(a),a=a.next;return x},function(){try{Object.defineProperty(j.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(Z=Function.prototype[Symbol.hasInstance],Object.defineProperty(ee,Symbol.hasInstance,{value:function(C){return!!Z.call(this,C)||this===ee&&C&&C._writableState instanceof j}})):Z=function(C){return C instanceof this},ee.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ee.prototype.write=function(C,a,x){var Y=this._writableState,R=!1,U=!Y.objectMode&&function F(C){return d.isBuffer(C)||C instanceof w}(C);return U&&!d.isBuffer(C)&&(C=function f(C){return d.from(C)}(C)),"function"==typeof a&&(x=a,a=null),U?a="buffer":a||(a=Y.defaultEncoding),"function"!=typeof x&&(x=K),Y.ended?function V(C,a){var x=new Error("write after end");C.emit("error",x),i.nextTick(a,x)}(this,x):(U||function Q(C,a,x,Y){var R=!0,U=!1;return null===x?U=new TypeError("May not write null values to stream"):"string"!=typeof x&&void 0!==x&&!a.objectMode&&(U=new TypeError("Invalid non-string/buffer chunk")),U&&(C.emit("error",U),i.nextTick(Y,U),R=!1),R}(this,Y,C,x))&&(Y.pendingcb++,R=function ie(C,a,x,Y,R,U){if(!x){var fe=function $(C,a,x){return!C.objectMode&&!1!==C.decodeStrings&&"string"==typeof a&&(a=d.from(a,x)),a}(a,Y,R);Y!==fe&&(x=!0,R="buffer",Y=fe)}var re=a.objectMode?1:Y.length;a.length+=re;var he=a.length-1))throw new TypeError("Unknown encoding: "+a);return this._writableState.defaultEncoding=a,this},Object.defineProperty(ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ee.prototype._write=function(C,a,x){x(new Error("_write() is not implemented"))},ee.prototype._writev=null,ee.prototype.end=function(C,a,x){var Y=this._writableState;"function"==typeof C?(x=C,C=null,a=null):"function"==typeof a&&(x=a,a=null),null!=C&&this.write(C,a),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||function T(C,a,x){a.ending=!0,_(C,a),x&&(a.finished?i.nextTick(x):C.once("finish",x)),a.ended=!0,C.writable=!1}(this,Y,x)},Object.defineProperty(ee.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(C){this._writableState&&(this._writableState.destroyed=C)}}),ee.prototype.destroy=M.destroy,ee.prototype._undestroy=M.undestroy,ee.prototype._destroy=function(C,a){this.end(),a(C)}},27809(ke,q,l){"use strict";var g=l(2655).Buffer,p=l(15340);function D(o,e,A){o.copy(e,A)}ke.exports=function(){function o(){(function i(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(A){var h={data:A,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length},o.prototype.unshift=function(A){var h={data:A,next:this.head};0===this.length&&(this.tail=h),this.head=h,++this.length},o.prototype.shift=function(){if(0!==this.length){var A=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,A}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(A){if(0===this.length)return"";for(var h=this.head,d=""+h.data;h=h.next;)d+=A+h.data;return d},o.prototype.concat=function(A){if(0===this.length)return g.alloc(0);for(var h=g.allocUnsafe(A>>>0),d=this.head,w=0;d;)D(d.data,h,w),w+=d.data.length,d=d.next;return h},o}(),p&&p.inspect&&p.inspect.custom&&(ke.exports.prototype[p.inspect.custom]=function(){var o=p.inspect({length:this.length});return this.constructor.name+" "+o})},21509(ke,q,l){"use strict";var i=l(9656);function D(o,e){o.emit("error",e)}ke.exports={destroy:function g(o,e){var A=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(e?e(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(D,this,o)):i.nextTick(D,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(w){!e&&w?A._writableState?A._writableState.errorEmitted||(A._writableState.errorEmitted=!0,i.nextTick(D,A,w)):i.nextTick(D,A,w):e&&e(w)}),this)},undestroy:function p(){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)}}},18342(ke,q,l){ke.exports=l(44356).EventEmitter},2655(ke,q,l){var i=l(83838),g=i.Buffer;function p(o,e){for(var A in o)e[A]=o[A]}function D(o,e,A){return g(o,e,A)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?ke.exports=i:(p(i,q),q.Buffer=D),p(g,D),D.from=function(o,e,A){if("number"==typeof o)throw new TypeError("Argument must not be a number");return g(o,e,A)},D.alloc=function(o,e,A){if("number"!=typeof o)throw new TypeError("Argument must be a number");var h=g(o);return void 0!==e?"string"==typeof A?h.fill(e,A):h.fill(e):h.fill(0),h},D.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return g(o)},D.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return i.SlowBuffer(o)}},5942(ke,q,l){(q=ke.exports=l(19609)).Stream=q,q.Readable=q,q.Writable=l(47849),q.Duplex=l(74075),q.Transform=l(2909),q.PassThrough=l(18823)},36636(ke,q,l){"use strict";var i=l(83838).Buffer,g=l(71993),p=l(19846),D=new Array(16),o=[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],e=[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],A=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],w=[1352829926,1548603684,1836072691,2053994217,0];function f(V,Q){return V<>>32-Q}function F(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q^$^ie)+ye+se|0,pe)+_e|0}function M(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q&$|~Q&ie)+ye+se|0,pe)+_e|0}function K(V,Q,$,ie,_e,ye,se,pe){return f(V+((Q|~$)^ie)+ye+se|0,pe)+_e|0}function j(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q&ie|$&~ie)+ye+se|0,pe)+_e|0}function Z(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q^($|~ie))+ye+se|0,pe)+_e|0}function ee(){p.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}g(ee,p),ee.prototype._update=function(){for(var V=D,Q=0;Q<16;++Q)V[Q]=this._block.readInt32LE(4*Q);for(var $=0|this._a,ie=0|this._b,_e=0|this._c,ye=0|this._d,se=0|this._e,pe=0|this._a,Ee=0|this._b,L=0|this._c,t=0|this._d,s=0|this._e,m=0;m<80;m+=1){var u,_;m<16?(u=F($,ie,_e,ye,se,V[o[m]],d[0],A[m]),_=Z(pe,Ee,L,t,s,V[e[m]],w[0],h[m])):m<32?(u=M($,ie,_e,ye,se,V[o[m]],d[1],A[m]),_=j(pe,Ee,L,t,s,V[e[m]],w[1],h[m])):m<48?(u=K($,ie,_e,ye,se,V[o[m]],d[2],A[m]),_=K(pe,Ee,L,t,s,V[e[m]],w[2],h[m])):m<64?(u=j($,ie,_e,ye,se,V[o[m]],d[3],A[m]),_=M(pe,Ee,L,t,s,V[e[m]],w[3],h[m])):(u=Z($,ie,_e,ye,se,V[o[m]],d[4],A[m]),_=F(pe,Ee,L,t,s,V[e[m]],w[4],h[m])),$=se,se=ye,ye=f(_e,10),_e=ie,ie=u,pe=s,s=t,t=f(L,10),L=Ee,Ee=_}var T=this._b+_e+t|0;this._b=this._c+ye+s|0,this._c=this._d+se+pe|0,this._d=this._e+$+Ee|0,this._e=this._a+ie+L|0,this._a=T},ee.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,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 V=i.alloc?i.alloc(20):new i(20);return V.writeInt32LE(this._a,0),V.writeInt32LE(this._b,4),V.writeInt32LE(this._c,8),V.writeInt32LE(this._d,12),V.writeInt32LE(this._e,16),V},ke.exports=ee},19846(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(35696),p=l(5942).Transform;function o(e){p.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}l(71993)(o,p),o.prototype._transform=function(e,A,h){var d=null;try{this.update(e,A)}catch(w){d=w}h(d)},o.prototype._flush=function(e){var A=null;try{this.push(this.digest())}catch(h){A=h}e(A)},o.prototype.update=function(e,A){if(this._finalized)throw new Error("Digest already called");for(var h=g(e,A),d=this._block,w=0;this._blockOffset+h.length-w>=this._blockSize;){for(var f=this._blockOffset;f0;++F)this._length[F]+=M,(M=this._length[F]/4294967296|0)>0&&(this._length[F]-=4294967296*M);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var A=this._digest();void 0!==e&&(A=A.toString(e)),this._block.fill(0),this._blockOffset=0;for(var h=0;h<4;++h)this._length[h]=0;return A},o.prototype._digest=function(){throw new Error("_digest is not implemented")},ke.exports=o},35696(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(41090),p=typeof Uint8Array<"u",o=p&&typeof ArrayBuffer<"u"&&ArrayBuffer.isView;ke.exports=function(e,A){if("string"==typeof e||i.isBuffer(e)||p&&e instanceof Uint8Array||o&&o(e))return g(e,A);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},84412(ke,q,l){"use strict";l.d(q,{t:()=>g});var i=l(21413);class g extends i.B{constructor(D){super(),this._value=D}get value(){return this.getValue()}_subscribe(D){const o=super._subscribe(D);return!o.closed&&D.next(this._value),o}getValue(){const{hasError:D,thrownError:o,_value:e}=this;if(D)throw o;return this._throwIfClosed(),e}next(D){super.next(this._value=D)}}},71985(ke,q,l){"use strict";l.d(q,{c:()=>h});var i=l(47707),g=l(18359),p=l(3494),D=l(71203),o=l(41026),e=l(98071),A=l(49786);let h=(()=>{class F{constructor(K){K&&(this._subscribe=K)}lift(K){const j=new F;return j.source=this,j.operator=K,j}subscribe(K,j,Z){const ee=function f(F){return F&&F instanceof i.vU||function w(F){return F&&(0,e.T)(F.next)&&(0,e.T)(F.error)&&(0,e.T)(F.complete)}(F)&&(0,g.Uv)(F)}(K)?K:new i.Ms(K,j,Z);return(0,A.Y)(()=>{const{operator:V,source:Q}=this;ee.add(V?V.call(ee,Q):Q?this._subscribe(ee):this._trySubscribe(ee))}),ee}_trySubscribe(K){try{return this._subscribe(K)}catch(j){K.error(j)}}forEach(K,j){return new(j=d(j))((Z,ee)=>{const V=new i.Ms({next:Q=>{try{K(Q)}catch($){ee($),V.unsubscribe()}},error:ee,complete:Z});this.subscribe(V)})}_subscribe(K){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(K)}[p.s](){return this}pipe(...K){return(0,D.m)(K)(this)}toPromise(K){return new(K=d(K))((j,Z)=>{let ee;this.subscribe(V=>ee=V,V=>Z(V),()=>j(ee))})}}return F.create=M=>new F(M),F})();function d(F){var M;return null!==(M=F??o.$.Promise)&&void 0!==M?M:Promise}},92771(ke,q,l){"use strict";l.d(q,{m:()=>p});var i=l(21413),g=l(86129);class p extends i.B{constructor(o=1/0,e=1/0,A=g.U){super(),this._bufferSize=o,this._windowTime=e,this._timestampProvider=A,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,e)}next(o){const{isStopped:e,_buffer:A,_infiniteTimeWindow:h,_timestampProvider:d,_windowTime:w}=this;e||(A.push(o),!h&&A.push(d.now()+w)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(o),{_infiniteTimeWindow:A,_buffer:h}=this,d=h.slice();for(let w=0;wh,B:()=>A});var i=l(71985),g=l(18359);const D=(0,l(81853).L)(d=>function(){d(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var o=l(57908),e=l(49786);let A=(()=>{class d extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(f){const F=new h(this,this);return F.operator=f,F}_throwIfClosed(){if(this.closed)throw new D}next(f){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const F of this.currentObservers)F.next(f)}})}error(f){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=f;const{observers:F}=this;for(;F.length;)F.shift().error(f)}})}complete(){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:f}=this;for(;f.length;)f.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var f;return(null===(f=this.observers)||void 0===f?void 0:f.length)>0}_trySubscribe(f){return this._throwIfClosed(),super._trySubscribe(f)}_subscribe(f){return this._throwIfClosed(),this._checkFinalizedStatuses(f),this._innerSubscribe(f)}_innerSubscribe(f){const{hasError:F,isStopped:M,observers:K}=this;return F||M?g.Kn:(this.currentObservers=null,K.push(f),new g.yU(()=>{this.currentObservers=null,(0,o.o)(K,f)}))}_checkFinalizedStatuses(f){const{hasError:F,thrownError:M,isStopped:K}=this;F?f.error(M):K&&f.complete()}asObservable(){const f=new i.c;return f.source=this,f}}return d.create=(w,f)=>new h(w,f),d})();class h extends A{constructor(w,f){super(),this.destination=w,this.source=f}next(w){var f,F;null===(F=null===(f=this.destination)||void 0===f?void 0:f.next)||void 0===F||F.call(f,w)}error(w){var f,F;null===(F=null===(f=this.destination)||void 0===f?void 0:f.error)||void 0===F||F.call(f,w)}complete(){var w,f;null===(f=null===(w=this.destination)||void 0===w?void 0:w.complete)||void 0===f||f.call(w)}_subscribe(w){var f,F;return null!==(F=null===(f=this.source)||void 0===f?void 0:f.subscribe(w))&&void 0!==F?F:g.Kn}}},47707(ke,q,l){"use strict";l.d(q,{Ms:()=>Z,vU:()=>F});var i=l(98071),g=l(18359),p=l(41026),D=l(45334),o=l(85343);const e=d("C",void 0,void 0);function d(ie,_e,ye){return{kind:ie,value:_e,error:ye}}var w=l(19270),f=l(49786);class F extends g.yU{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,g.Uv)(_e)&&_e.add(this)):this.destination=$}static create(_e,ye,se){return new Z(_e,ye,se)}next(_e){this.isStopped?Q(function h(ie){return d("N",ie,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Q(function A(ie){return d("E",void 0,ie)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Q(e,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const M=Function.prototype.bind;function K(ie,_e){return M.call(ie,_e)}class j{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ye}=this;if(ye.next)try{ye.next(_e)}catch(se){ee(se)}}error(_e){const{partialObserver:ye}=this;if(ye.error)try{ye.error(_e)}catch(se){ee(se)}else ee(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ye){ee(ye)}}}class Z extends F{constructor(_e,ye,se){let pe;if(super(),(0,i.T)(_e)||!_e)pe={next:_e??void 0,error:ye??void 0,complete:se??void 0};else{let Ee;this&&p.$.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),pe={next:_e.next&&K(_e.next,Ee),error:_e.error&&K(_e.error,Ee),complete:_e.complete&&K(_e.complete,Ee)}):pe=_e}this.destination=new j(pe)}}function ee(ie){p.$.useDeprecatedSynchronousErrorHandling?(0,f.l)(ie):(0,D.m)(ie)}function Q(ie,_e){const{onStoppedNotification:ye}=p.$;ye&&w.f.setTimeout(()=>ye(ie,_e))}const $={closed:!0,next:o.l,error:function V(ie){throw ie},complete:o.l}},18359(ke,q,l){"use strict";l.d(q,{Kn:()=>e,yU:()=>o,Uv:()=>A});var i=l(98071);const p=(0,l(81853).L)(d=>function(f){d(this),this.message=f?`${f.length} errors occurred during unsubscription:\n${f.map((F,M)=>`${M+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=f});var D=l(57908);class o{constructor(w){this.initialTeardown=w,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let w;if(!this.closed){this.closed=!0;const{_parentage:f}=this;if(f)if(this._parentage=null,Array.isArray(f))for(const K of f)K.remove(this);else f.remove(this);const{initialTeardown:F}=this;if((0,i.T)(F))try{F()}catch(K){w=K instanceof p?K.errors:[K]}const{_finalizers:M}=this;if(M){this._finalizers=null;for(const K of M)try{h(K)}catch(j){w=w??[],j instanceof p?w=[...w,...j.errors]:w.push(j)}}if(w)throw new p(w)}}add(w){var f;if(w&&w!==this)if(this.closed)h(w);else{if(w instanceof o){if(w.closed||w._hasParent(this))return;w._addParent(this)}(this._finalizers=null!==(f=this._finalizers)&&void 0!==f?f:[]).push(w)}}_hasParent(w){const{_parentage:f}=this;return f===w||Array.isArray(f)&&f.includes(w)}_addParent(w){const{_parentage:f}=this;this._parentage=Array.isArray(f)?(f.push(w),f):f?[f,w]:w}_removeParent(w){const{_parentage:f}=this;f===w?this._parentage=null:Array.isArray(f)&&(0,D.o)(f,w)}remove(w){const{_finalizers:f}=this;f&&(0,D.o)(f,w),w instanceof o&&w._removeParent(this)}}o.EMPTY=(()=>{const d=new o;return d.closed=!0,d})();const e=o.EMPTY;function A(d){return d instanceof o||d&&"closed"in d&&(0,i.T)(d.remove)&&(0,i.T)(d.add)&&(0,i.T)(d.unsubscribe)}function h(d){(0,i.T)(d)?d():d.unsubscribe()}},41026(ke,q,l){"use strict";l.d(q,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},30017(ke,q,l){"use strict";l.d(q,{G:()=>e});var i=l(71985),g=l(18359),p=l(99898),D=l(54360),o=l(39974);class e extends i.c{constructor(h,d){super(),this.source=h,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,o.S)(h)&&(this.lift=h.lift)}_subscribe(h){return this.getSubject().subscribe(h)}getSubject(){const h=this._subject;return(!h||h.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:h}=this;this._subject=this._connection=null,h?.unsubscribe()}connect(){let h=this._connection;if(!h){h=this._connection=new g.yU;const d=this.getSubject();h.add(this.source.subscribe((0,D._)(d,void 0,()=>{this._teardown(),d.complete()},w=>{this._teardown(),d.error(w)},()=>this._teardown()))),h.closed&&(this._connection=null,h=g.yU.EMPTY)}return h}refCount(){return(0,p.B)()(this)}}},84572(ke,q,l){"use strict";l.d(q,{z:()=>w});var i=l(71985),g=l(93073),p=l(22806),D=l(33669),o=l(6450),e=l(9326),A=l(58496),h=l(54360),d=l(45225);function w(...M){const K=(0,e.lI)(M),j=(0,e.ms)(M),{args:Z,keys:ee}=(0,g.D)(M);if(0===Z.length)return(0,p.H)([],K);const V=new i.c(function f(M,K,j=D.D){return Z=>{F(K,()=>{const{length:ee}=M,V=new Array(ee);let Q=ee,$=ee;for(let ie=0;ie{const _e=(0,p.H)(M[ie],K);let ye=!1;_e.subscribe((0,h._)(Z,se=>{V[ie]=se,ye||(ye=!0,$--),$||Z.next(j(V.slice()))},()=>{--Q||Z.complete()}))},Z)},Z)}}(Z,K,ee?Q=>(0,A.e)(ee,Q):D.D));return j?V.pipe((0,o.I)(j)):V}function F(M,K,j){M?(0,d.N)(j,M,K):K()}},28793(ke,q,l){"use strict";l.d(q,{x:()=>o});var i=l(26365),p=l(9326),D=l(22806);function o(...e){return function g(){return(0,i.U)(1)}()((0,D.H)(e,(0,p.lI)(e)))}},59030(ke,q,l){"use strict";l.d(q,{v:()=>p});var i=l(71985),g=l(58750);function p(D){return new i.c(o=>{(0,g.Tg)(D()).subscribe(o)})}},983(ke,q,l){"use strict";l.d(q,{w:()=>p});const p=new(l(71985).c)(e=>e.complete())},27468(ke,q,l){"use strict";l.d(q,{p:()=>h});var i=l(71985),g=l(93073),p=l(58750),D=l(9326),o=l(54360),e=l(6450),A=l(58496);function h(...d){const w=(0,D.ms)(d),{args:f,keys:F}=(0,g.D)(d),M=new i.c(K=>{const{length:j}=f;if(!j)return void K.complete();const Z=new Array(j);let ee=j,V=j;for(let Q=0;Q{$||($=!0,V--),Z[Q]=ie},()=>ee--,void 0,()=>{(!ee||!$)&&(V||K.next(F?(0,A.e)(F,Z):Z),K.complete())}))}});return w?M.pipe((0,e.I)(w)):M}},22806(ke,q,l){"use strict";l.d(q,{H:()=>ye});var i=l(58750),g=l(40941),p=l(39974);function D(se,pe=0){return(0,p.N)((Ee,L)=>{L.add(se.schedule(()=>Ee.subscribe(L),pe))})}var A=l(71985),d=l(4761),w=l(98071),f=l(45225);function M(se,pe){if(!se)throw new Error("Iterable cannot be null");return new A.c(Ee=>{(0,f.N)(Ee,pe,()=>{const L=se[Symbol.asyncIterator]();(0,f.N)(Ee,pe,()=>{L.next().then(t=>{t.done?Ee.complete():Ee.next(t.value)})},0,!0)})})}var K=l(55055),j=l(59858),Z=l(47441),ee=l(85397),V=l(37953),Q=l(50591),$=l(15196);function ye(se,pe){return pe?function _e(se,pe){if(null!=se){if((0,K.l)(se))return function o(se,pe){return(0,i.Tg)(se).pipe(D(pe),(0,g.Q)(pe))}(se,pe);if((0,Z.X)(se))return function h(se,pe){return new A.c(Ee=>{let L=0;return pe.schedule(function(){L===se.length?Ee.complete():(Ee.next(se[L++]),Ee.closed||this.schedule())})})}(se,pe);if((0,j.y)(se))return function e(se,pe){return(0,i.Tg)(se).pipe(D(pe),(0,g.Q)(pe))}(se,pe);if((0,V.T)(se))return M(se,pe);if((0,ee.x)(se))return function F(se,pe){return new A.c(Ee=>{let L;return(0,f.N)(Ee,pe,()=>{L=se[d.l](),(0,f.N)(Ee,pe,()=>{let t,s;try{({value:t,done:s}=L.next())}catch(m){return void Ee.error(m)}s?Ee.complete():Ee.next(t)},0,!0)}),()=>(0,w.T)(L?.return)&&L.return()})}(se,pe);if((0,$.U)(se))return function ie(se,pe){return M((0,$.C)(se),pe)}(se,pe)}throw(0,Q.L)(se)}(se,pe):(0,i.Tg)(se)}},33726(ke,q,l){"use strict";l.d(q,{R:()=>w});var i=l(58750),g=l(71985),p=l(31397),D=l(47441),o=l(98071),e=l(6450);const A=["addListener","removeListener"],h=["addEventListener","removeEventListener"],d=["on","off"];function w(j,Z,ee,V){if((0,o.T)(ee)&&(V=ee,ee=void 0),V)return w(j,Z,ee).pipe((0,e.I)(V));const[Q,$]=function K(j){return(0,o.T)(j.addEventListener)&&(0,o.T)(j.removeEventListener)}(j)?h.map(ie=>_e=>j[ie](Z,_e,ee)):function F(j){return(0,o.T)(j.addListener)&&(0,o.T)(j.removeListener)}(j)?A.map(f(j,Z)):function M(j){return(0,o.T)(j.on)&&(0,o.T)(j.off)}(j)?d.map(f(j,Z)):[];if(!Q&&(0,D.X)(j))return(0,p.Z)(ie=>w(ie,Z,ee))((0,i.Tg)(j));if(!Q)throw new TypeError("Invalid event target");return new g.c(ie=>{const _e=(...ye)=>ie.next(1$(_e)})}function f(j,Z){return ee=>V=>j[ee](Z,V)}},58750(ke,q,l){"use strict";l.d(q,{Tg:()=>M});var i=l(31635),g=l(47441),p=l(59858),D=l(71985),o=l(55055),e=l(37953),A=l(50591),h=l(85397),d=l(15196),w=l(98071),f=l(45334),F=l(3494);function M(ie){if(ie instanceof D.c)return ie;if(null!=ie){if((0,o.l)(ie))return function K(ie){return new D.c(_e=>{const ye=ie[F.s]();if((0,w.T)(ye.subscribe))return ye.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ie);if((0,g.X)(ie))return function j(ie){return new D.c(_e=>{for(let ye=0;ye{ie.then(ye=>{_e.closed||(_e.next(ye),_e.complete())},ye=>_e.error(ye)).then(null,f.m)})}(ie);if((0,e.T)(ie))return V(ie);if((0,h.x)(ie))return function ee(ie){return new D.c(_e=>{for(const ye of ie)if(_e.next(ye),_e.closed)return;_e.complete()})}(ie);if((0,d.U)(ie))return function Q(ie){return V((0,d.C)(ie))}(ie)}throw(0,A.L)(ie)}function V(ie){return new D.c(_e=>{(function $(ie,_e){var ye,se,pe,Ee;return(0,i.sH)(this,void 0,void 0,function*(){try{for(ye=(0,i.xN)(ie);!(se=yield ye.next()).done;)if(_e.next(se.value),_e.closed)return}catch(L){pe={error:L}}finally{try{se&&!se.done&&(Ee=ye.return)&&(yield Ee.call(ye))}finally{if(pe)throw pe.error}}_e.complete()})})(ie,_e).catch(ye=>_e.error(ye))})}},57786(ke,q,l){"use strict";l.d(q,{h:()=>e});var i=l(26365),g=l(58750),p=l(983),D=l(9326),o=l(22806);function e(...A){const h=(0,D.lI)(A),d=(0,D.R0)(A,1/0),w=A;return w.length?1===w.length?(0,g.Tg)(w[0]):(0,i.U)(d)((0,o.H)(w,h)):p.w}},7673(ke,q,l){"use strict";l.d(q,{of:()=>p});var i=l(9326),g=l(22806);function p(...D){const o=(0,i.lI)(D);return(0,g.H)(D,o)}},18810(ke,q,l){"use strict";l.d(q,{$:()=>p});var i=l(71985),g=l(98071);function p(D,o){const e=(0,g.T)(D)?D:()=>D,A=h=>h.error(e());return new i.c(o?h=>o.schedule(A,0,h):A)}},1807(ke,q,l){"use strict";l.d(q,{O:()=>o});var i=l(71985),g=l(43236),p=l(79470),D=l(28211);function o(e=0,A,h=g.b){let d=-1;return null!=A&&((0,p.m)(A)?h=A:d=A),new i.c(w=>{let f=(0,D.v)(e)?+e-h.now():e;f<0&&(f=0);let F=0;return h.schedule(function(){w.closed||(w.next(F++),0<=d?this.schedule(void 0,d):w.complete())},f)})}},54360(ke,q,l){"use strict";l.d(q,{H:()=>p,_:()=>g});var i=l(47707);function g(D,o,e,A,h){return new p(D,o,e,A,h)}class p extends i.vU{constructor(o,e,A,h,d,w){super(o),this.onFinalize=d,this.shouldUnsubscribe=w,this._next=e?function(f){try{e(f)}catch(F){o.error(F)}}:super._next,this._error=h?function(f){try{h(f)}catch(F){o.error(F)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(f){o.error(f)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var o;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(o=this.onFinalize)||void 0===o||o.call(this))}}}},13798(ke,q,l){"use strict";l.d(q,{Z:()=>A});var i=l(43236),g=l(39974),p=l(58750),D=l(54360),e=l(1807);function A(h,d=i.E){return function o(h){return(0,g.N)((d,w)=>{let f=!1,F=null,M=null,K=!1;const j=()=>{if(M?.unsubscribe(),M=null,f){f=!1;const ee=F;F=null,w.next(ee)}K&&w.complete()},Z=()=>{M=null,K&&w.complete()};d.subscribe((0,D._)(w,ee=>{f=!0,F=ee,M||(0,p.Tg)(h(ee)).subscribe(M=(0,D._)(w,j,Z))},()=>{K=!0,(!f||!M||M.closed)&&w.complete()}))})}(()=>(0,e.O)(h,d))}},99437(ke,q,l){"use strict";l.d(q,{W:()=>D});var i=l(58750),g=l(54360),p=l(39974);function D(o){return(0,p.N)((e,A)=>{let w,h=null,d=!1;h=e.subscribe((0,g._)(A,void 0,void 0,f=>{w=(0,i.Tg)(o(f,D(o)(e))),h?(h.unsubscribe(),h=null,w.subscribe(A)):d=!0})),d&&(h.unsubscribe(),h=null,w.subscribe(A))})}},70274(ke,q,l){"use strict";l.d(q,{H:()=>p});var i=l(31397),g=l(98071);function p(D,o){return(0,g.T)(o)?(0,i.Z)(D,o,1):(0,i.Z)(D,1)}},70152(ke,q,l){"use strict";l.d(q,{B:()=>D});var i=l(43236),g=l(39974),p=l(54360);function D(o,e=i.E){return(0,g.N)((A,h)=>{let d=null,w=null,f=null;const F=()=>{if(d){d.unsubscribe(),d=null;const K=w;w=null,h.next(K)}};function M(){const K=f+o,j=e.now();if(j{w=K,f=e.now(),d||(d=e.schedule(M,o),h.add(d))},()=>{F(),h.complete()},void 0,()=>{w=d=null}))})}},39901(ke,q,l){"use strict";l.d(q,{U:()=>p});var i=l(39974),g=l(54360);function p(D){return(0,i.N)((o,e)=>{let A=!1;o.subscribe((0,g._)(e,h=>{A=!0,e.next(h)},()=>{A||e.next(D),e.complete()}))})}},23294(ke,q,l){"use strict";l.d(q,{F:()=>D});var i=l(33669),g=l(39974),p=l(54360);function D(e,A=i.D){return e=e??o,(0,g.N)((h,d)=>{let w,f=!0;h.subscribe((0,p._)(d,F=>{const M=A(F);(f||!e(w,M))&&(f=!1,w=M,d.next(F))}))})}function o(e,A){return e===A}},5964(ke,q,l){"use strict";l.d(q,{p:()=>p});var i=l(39974),g=l(54360);function p(D,o){return(0,i.N)((e,A)=>{let h=0;e.subscribe((0,g._)(A,d=>D.call(o,d,h++)&&A.next(d)))})}},70980(ke,q,l){"use strict";l.d(q,{j:()=>g});var i=l(39974);function g(p){return(0,i.N)((D,o)=>{try{D.subscribe(o)}finally{o.add(p)}})}},61594(ke,q,l){"use strict";l.d(q,{$:()=>A});var i=l(9350),g=l(5964),p=l(96697),D=l(39901),o=l(93774),e=l(33669);function A(h,d){const w=arguments.length>=2;return f=>f.pipe(h?(0,g.p)((F,M)=>h(F,M,f)):e.D,(0,p.s)(1),w?(0,D.U)(d):(0,o.v)(()=>new i.G))}},73557(ke,q,l){"use strict";l.d(q,{w:()=>D});var i=l(39974),g=l(54360),p=l(85343);function D(){return(0,i.N)((o,e)=>{o.subscribe((0,g._)(e,p.l))})}},96354(ke,q,l){"use strict";l.d(q,{T:()=>p});var i=l(39974),g=l(54360);function p(D,o){return(0,i.N)((e,A)=>{let h=0;e.subscribe((0,g._)(A,d=>{A.next(D.call(o,d,h++))}))})}},73703(ke,q,l){"use strict";l.d(q,{u:()=>g});var i=l(96354);function g(p){return(0,i.T)(()=>p)}},26365(ke,q,l){"use strict";l.d(q,{U:()=>p});var i=l(31397),g=l(33669);function p(D=1/0){return(0,i.Z)(g.D,D)}},31397(ke,q,l){"use strict";l.d(q,{Z:()=>h});var i=l(96354),g=l(58750),p=l(39974),D=l(45225),o=l(54360),A=l(98071);function h(d,w,f=1/0){return(0,A.T)(w)?h((F,M)=>(0,i.T)((K,j)=>w(F,K,M,j))((0,g.Tg)(d(F,M))),f):("number"==typeof w&&(f=w),(0,p.N)((F,M)=>function e(d,w,f,F,M,K,j,Z){const ee=[];let V=0,Q=0,$=!1;const ie=()=>{$&&!ee.length&&!V&&w.complete()},_e=se=>V{K&&w.next(se),V++;let pe=!1;(0,g.Tg)(f(se,Q++)).subscribe((0,o._)(w,Ee=>{M?.(Ee),K?_e(Ee):w.next(Ee)},()=>{pe=!0},void 0,()=>{if(pe)try{for(V--;ee.length&&Vye(Ee)):ye(Ee)}ie()}catch(Ee){w.error(Ee)}}))};return d.subscribe((0,o._)(w,_e,()=>{$=!0,ie()})),()=>{Z?.()}}(F,M,d,f)))}},40941(ke,q,l){"use strict";l.d(q,{Q:()=>D});var i=l(45225),g=l(39974),p=l(54360);function D(o,e=0){return(0,g.N)((A,h)=>{A.subscribe((0,p._)(h,d=>(0,i.N)(h,o,()=>h.next(d),e),()=>(0,i.N)(h,o,()=>h.complete(),e),d=>(0,i.N)(h,o,()=>h.error(d),e)))})}},99898(ke,q,l){"use strict";l.d(q,{B:()=>p});var i=l(39974),g=l(54360);function p(){return(0,i.N)((D,o)=>{let e=null;D._refCount++;const A=(0,g._)(o,void 0,void 0,void 0,()=>{if(!D||D._refCount<=0||0<--D._refCount)return void(e=null);const h=D._connection,d=e;e=null,h&&(!d||h===d)&&h.unsubscribe(),o.unsubscribe()});D.subscribe(A),A.closed||(e=D.connect())})}},31943(ke,q,l){"use strict";l.d(q,{S:()=>p});var i=l(39974),g=l(46649);function p(D,o){return(0,i.N)((0,g.S)(D,o,arguments.length>=2,!0))}},46649(ke,q,l){"use strict";l.d(q,{S:()=>g});var i=l(54360);function g(p,D,o,e,A){return(h,d)=>{let w=o,f=D,F=0;h.subscribe((0,i._)(d,M=>{const K=F++;f=w?p(f,M,K):(w=!0,M),e&&d.next(f)},A&&(()=>{w&&d.next(f),d.complete()})))}}},97647(ke,q,l){"use strict";l.d(q,{u:()=>o});var i=l(58750),g=l(21413),p=l(47707),D=l(39974);function o(A={}){const{connector:h=()=>new g.B,resetOnError:d=!0,resetOnComplete:w=!0,resetOnRefCountZero:f=!0}=A;return F=>{let M,K,j,Z=0,ee=!1,V=!1;const Q=()=>{K?.unsubscribe(),K=void 0},$=()=>{Q(),M=j=void 0,ee=V=!1},ie=()=>{const _e=M;$(),_e?.unsubscribe()};return(0,D.N)((_e,ye)=>{Z++,!V&&!ee&&Q();const se=j=j??h();ye.add(()=>{Z--,0===Z&&!V&&!ee&&(K=e(ie,f))}),se.subscribe(ye),!M&&Z>0&&(M=new p.Ms({next:pe=>se.next(pe),error:pe=>{V=!0,Q(),K=e($,d,pe),se.error(pe)},complete:()=>{ee=!0,Q(),K=e($,w),se.complete()}}),(0,i.Tg)(_e).subscribe(M))})(F)}}function e(A,h,...d){if(!0===h)return void A();if(!1===h)return;const w=new p.Ms({next:()=>{w.unsubscribe(),A()}});return(0,i.Tg)(h(...d)).subscribe(w)}},65245(ke,q,l){"use strict";l.d(q,{i:()=>g});var i=l(5964);function g(p){return(0,i.p)((D,o)=>p<=o)}},99172(ke,q,l){"use strict";l.d(q,{Z:()=>D});var i=l(28793),g=l(9326),p=l(39974);function D(...o){const e=(0,g.lI)(o);return(0,p.N)((A,h)=>{(e?(0,i.x)(o,A,e):(0,i.x)(o,A)).subscribe(h)})}},25558(ke,q,l){"use strict";l.d(q,{n:()=>D});var i=l(58750),g=l(39974),p=l(54360);function D(o,e){return(0,g.N)((A,h)=>{let d=null,w=0,f=!1;const F=()=>f&&!d&&h.complete();A.subscribe((0,p._)(h,M=>{d?.unsubscribe();let K=0;const j=w++;(0,i.Tg)(o(M,j)).subscribe(d=(0,p._)(h,Z=>h.next(e?e(M,Z,j,K++):Z),()=>{d=null,F()}))},()=>{f=!0,F()}))})}},96697(ke,q,l){"use strict";l.d(q,{s:()=>D});var i=l(983),g=l(39974),p=l(54360);function D(o){return o<=0?()=>i.w:(0,g.N)((e,A)=>{let h=0;e.subscribe((0,p._)(A,d=>{++h<=o&&(A.next(d),o<=h&&A.complete())}))})}},56977(ke,q,l){"use strict";l.d(q,{Q:()=>o});var i=l(39974),g=l(54360),p=l(58750),D=l(85343);function o(e){return(0,i.N)((A,h)=>{(0,p.Tg)(e).subscribe((0,g._)(h,()=>h.complete(),D.l)),!h.closed&&A.subscribe(h)})}},88141(ke,q,l){"use strict";l.d(q,{M:()=>o});var i=l(98071),g=l(39974),p=l(54360),D=l(33669);function o(e,A,h){const d=(0,i.T)(e)||A||h?{next:e,error:A,complete:h}:e;return d?(0,g.N)((w,f)=>{var F;null===(F=d.subscribe)||void 0===F||F.call(d);let M=!0;w.subscribe((0,p._)(f,K=>{var j;null===(j=d.next)||void 0===j||j.call(d,K),f.next(K)},()=>{var K;M=!1,null===(K=d.complete)||void 0===K||K.call(d),f.complete()},K=>{var j;M=!1,null===(j=d.error)||void 0===j||j.call(d,K),f.error(K)},()=>{var K,j;M&&(null===(K=d.unsubscribe)||void 0===K||K.call(d)),null===(j=d.finalize)||void 0===j||j.call(d)}))}):D.D}},93774(ke,q,l){"use strict";l.d(q,{v:()=>D});var i=l(9350),g=l(39974),p=l(54360);function D(e=o){return(0,g.N)((A,h)=>{let d=!1;A.subscribe((0,p._)(h,w=>{d=!0,h.next(w)},()=>d?h.complete():h.error(e())))})}function o(){return new i.G}},53993(ke,q,l){"use strict";l.d(q,{E:()=>A});var i=l(39974),g=l(54360),p=l(58750),D=l(33669),o=l(85343),e=l(9326);function A(...h){const d=(0,e.ms)(h);return(0,i.N)((w,f)=>{const F=h.length,M=new Array(F);let K=h.map(()=>!1),j=!1;for(let Z=0;Z{M[Z]=ee,!j&&!K[Z]&&(K[Z]=!0,(j=K.every(D.D))&&(K=null))},o.l));w.subscribe((0,g._)(f,Z=>{if(j){const ee=[Z,...M];f.next(d?d(...ee):ee)}}))})}},96780(ke,q,l){"use strict";l.d(q,{R:()=>o});var i=l(18359);class g extends i.yU{constructor(A,h){super()}schedule(A,h=0){return this}}const p={setInterval(e,A,...h){const{delegate:d}=p;return d?.setInterval?d.setInterval(e,A,...h):setInterval(e,A,...h)},clearInterval(e){const{delegate:A}=p;return(A?.clearInterval||clearInterval)(e)},delegate:void 0};var D=l(57908);class o extends g{constructor(A,h){super(A,h),this.scheduler=A,this.work=h,this.pending=!1}schedule(A,h=0){var d;if(this.closed)return this;this.state=A;const w=this.id,f=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(f,w,h)),this.pending=!0,this.delay=h,this.id=null!==(d=this.id)&&void 0!==d?d:this.requestAsyncId(f,this.id,h),this}requestAsyncId(A,h,d=0){return p.setInterval(A.flush.bind(A,this),d)}recycleAsyncId(A,h,d=0){if(null!=d&&this.delay===d&&!1===this.pending)return h;null!=h&&p.clearInterval(h)}execute(A,h){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const d=this._execute(A,h);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(A,h){let w,d=!1;try{this.work(A)}catch(f){d=!0,w=f||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),w}unsubscribe(){if(!this.closed){const{id:A,scheduler:h}=this,{actions:d}=h;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.o)(d,this),null!=A&&(this.id=this.recycleAsyncId(h,A,null)),this.delay=null,super.unsubscribe()}}}},39687(ke,q,l){"use strict";l.d(q,{q:()=>p});var i=l(86129);class g{constructor(o,e=g.now){this.schedulerActionCtor=o,this.now=e}schedule(o,e=0,A){return new this.schedulerActionCtor(this,o).schedule(A,e)}}g.now=i.U.now;class p extends g{constructor(o,e=g.now){super(o,e),this.actions=[],this._active=!1}flush(o){const{actions:e}=this;if(this._active)return void e.push(o);let A;this._active=!0;do{if(A=o.execute(o.state,o.delay))break}while(o=e.shift());if(this._active=!1,A){for(;o=e.shift();)o.unsubscribe();throw A}}}},43236(ke,q,l){"use strict";l.d(q,{E:()=>p,b:()=>D});var i=l(96780);const p=new(l(39687).q)(i.R),D=p},86129(ke,q,l){"use strict";l.d(q,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},47242(ke,q,l){"use strict";l.d(q,{T:()=>o});var i=l(96780),p=l(39687);const o=new class D extends p.q{}(class g extends i.R{constructor(h,d){super(h,d),this.scheduler=h,this.work=d}schedule(h,d=0){return d>0?super.schedule(h,d):(this.delay=d,this.state=h,this.scheduler.flush(this),this)}execute(h,d){return d>0||this.closed?super.execute(h,d):this._execute(h,d)}requestAsyncId(h,d,w=0){return null!=w&&w>0||null==w&&this.delay>0?super.requestAsyncId(h,d,w):(h.flush(this),0)}})},19270(ke,q,l){"use strict";l.d(q,{f:()=>i});const i={setTimeout(g,p,...D){const{delegate:o}=i;return o?.setTimeout?o.setTimeout(g,p,...D):setTimeout(g,p,...D)},clearTimeout(g){const{delegate:p}=i;return(p?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761(ke,q,l){"use strict";l.d(q,{l:()=>g});const g=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494(ke,q,l){"use strict";l.d(q,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350(ke,q,l){"use strict";l.d(q,{G:()=>g});const g=(0,l(81853).L)(p=>function(){p(this),this.name="EmptyError",this.message="no elements in sequence"})},9326(ke,q,l){"use strict";l.d(q,{R0:()=>e,lI:()=>o,ms:()=>D});var i=l(98071),g=l(79470);function p(A){return A[A.length-1]}function D(A){return(0,i.T)(p(A))?A.pop():void 0}function o(A){return(0,g.m)(p(A))?A.pop():void 0}function e(A,h){return"number"==typeof p(A)?A.pop():h}},93073(ke,q,l){"use strict";l.d(q,{D:()=>o});const{isArray:i}=Array,{getPrototypeOf:g,prototype:p,keys:D}=Object;function o(A){if(1===A.length){const h=A[0];if(i(h))return{args:h,keys:null};if(function e(A){return A&&"object"==typeof A&&g(A)===p}(h)){const d=D(h);return{args:d.map(w=>h[w]),keys:d}}}return{args:A,keys:null}}},57908(ke,q,l){"use strict";function i(g,p){if(g){const D=g.indexOf(p);0<=D&&g.splice(D,1)}}l.d(q,{o:()=>i})},81853(ke,q,l){"use strict";function i(g){const D=g(o=>{Error.call(o),o.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}l.d(q,{L:()=>i})},58496(ke,q,l){"use strict";function i(g,p){return g.reduce((D,o,e)=>(D[o]=p[e],D),{})}l.d(q,{e:()=>i})},49786(ke,q,l){"use strict";l.d(q,{Y:()=>p,l:()=>D});var i=l(41026);let g=null;function p(o){if(i.$.useDeprecatedSynchronousErrorHandling){const e=!g;if(e&&(g={errorThrown:!1,error:null}),o(),e){const{errorThrown:A,error:h}=g;if(g=null,A)throw h}}else o()}function D(o){i.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=o)}},45225(ke,q,l){"use strict";function i(g,p,D,o=0,e=!1){const A=p.schedule(function(){D(),e?g.add(this.schedule(null,o)):this.unsubscribe()},o);if(g.add(A),!e)return A}l.d(q,{N:()=>i})},33669(ke,q,l){"use strict";function i(g){return g}l.d(q,{D:()=>i})},47441(ke,q,l){"use strict";l.d(q,{X:()=>i});const i=g=>g&&"number"==typeof g.length&&"function"!=typeof g},37953(ke,q,l){"use strict";l.d(q,{T:()=>g});var i=l(98071);function g(p){return Symbol.asyncIterator&&(0,i.T)(p?.[Symbol.asyncIterator])}},28211(ke,q,l){"use strict";function i(g){return g instanceof Date&&!isNaN(g)}l.d(q,{v:()=>i})},98071(ke,q,l){"use strict";function i(g){return"function"==typeof g}l.d(q,{T:()=>i})},55055(ke,q,l){"use strict";l.d(q,{l:()=>p});var i=l(3494),g=l(98071);function p(D){return(0,g.T)(D[i.s])}},85397(ke,q,l){"use strict";l.d(q,{x:()=>p});var i=l(4761),g=l(98071);function p(D){return(0,g.T)(D?.[i.l])}},74402(ke,q,l){"use strict";l.d(q,{A:()=>p});var i=l(71985),g=l(98071);function p(D){return!!D&&(D instanceof i.c||(0,g.T)(D.lift)&&(0,g.T)(D.subscribe))}},59858(ke,q,l){"use strict";l.d(q,{y:()=>g});var i=l(98071);function g(p){return(0,i.T)(p?.then)}},15196(ke,q,l){"use strict";l.d(q,{C:()=>p,U:()=>D});var i=l(31635),g=l(98071);function p(o){return(0,i.AQ)(this,arguments,function*(){const A=o.getReader();try{for(;;){const{value:h,done:d}=yield(0,i.N3)(A.read());if(d)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(h)}}finally{A.releaseLock()}})}function D(o){return(0,g.T)(o?.getReader)}},79470(ke,q,l){"use strict";l.d(q,{m:()=>g});var i=l(98071);function g(p){return p&&(0,i.T)(p.schedule)}},39974(ke,q,l){"use strict";l.d(q,{N:()=>p,S:()=>g});var i=l(98071);function g(D){return(0,i.T)(D?.lift)}function p(D){return o=>{if(g(o))return o.lift(function(e){try{return D(e,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450(ke,q,l){"use strict";l.d(q,{I:()=>D});var i=l(96354);const{isArray:g}=Array;function D(o){return(0,i.T)(e=>function p(o,e){return g(e)?o(...e):o(e)}(o,e))}},85343(ke,q,l){"use strict";function i(){}l.d(q,{l:()=>i})},71203(ke,q,l){"use strict";l.d(q,{F:()=>g,m:()=>p});var i=l(33669);function g(...D){return p(D)}function p(D){return 0===D.length?i.D:1===D.length?D[0]:function(e){return D.reduce((A,h)=>h(A),e)}}},45334(ke,q,l){"use strict";l.d(q,{m:()=>p});var i=l(41026),g=l(19270);function p(D){g.f.setTimeout(()=>{const{onUnhandledError:o}=i.$;if(!o)throw D;o(D)})}},50591(ke,q,l){"use strict";function i(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(q,{L:()=>i})},27054(ke,q,l){var i=l(83838),g=i.Buffer;function p(o,e){for(var A in o)e[A]=o[A]}function D(o,e,A){return g(o,e,A)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?ke.exports=i:(p(i,q),q.Buffer=D),D.prototype=Object.create(g.prototype),p(g,D),D.from=function(o,e,A){if("number"==typeof o)throw new TypeError("Argument must not be a number");return g(o,e,A)},D.alloc=function(o,e,A){if("number"!=typeof o)throw new TypeError("Argument must be a number");var h=g(o);return void 0!==e?"string"==typeof A?h.fill(e,A):h.fill(e):h.fill(0),h},D.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return g(o)},D.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return i.SlowBuffer(o)}},31358(ke,q,l){"use strict";var i=l(90258),g=l(92736),p=l(35861)(),D=l(83798),o=l(46758),e=i("%Math.floor%");ke.exports=function(h,d){if("function"!=typeof h)throw new o("`fn` is not a function");if("number"!=typeof d||d<0||d>4294967295||e(d)!==d)throw new o("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],f=!0,F=!0;if("length"in h&&D){var M=D(h,"length");M&&!M.configurable&&(f=!1),M&&!M.writable&&(F=!1)}return(f||F||!w)&&(p?g(h,"length",d,!0,!0):g(h,"length",d)),h}},70463(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(41090);function p(D,o){this._block=i.alloc(D),this._finalSize=o,this._blockSize=D,this._len=0}p.prototype.update=function(D,o){D=g(D,o||"utf8");for(var e=this._block,A=this._blockSize,h=D.length,d=this._len,w=0;w=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=8*this._len;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var A=(4294967295&e)>>>0;this._block.writeUInt32BE((e-A)/4294967296,this._blockSize-8),this._block.writeUInt32BE(A,this._blockSize-4)}this._update(this._block);var d=this._hash();return D?d.toString(D):d},p.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ke.exports=p},25443(ke,q,l){"use strict";ke.exports=function(g){var p=g.toLowerCase(),D=ke.exports[p];if(!D)throw new Error(p+" is not supported (we accept pull requests)");return new D},ke.exports.sha=l(48585),ke.exports.sha1=l(21270),ke.exports.sha224=l(42709),ke.exports.sha256=l(32148),ke.exports.sha384=l(51856),ke.exports.sha512=l(3121)},48585(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function e(){this.init(),this._w=o,g.call(this,64,56)}function A(w){return w<<5|w>>>27}function h(w){return w<<30|w>>>2}function d(w,f,F,M){return 0===w?f&F|~f&M:2===w?f&F|f&M|F&M:f^F^M}i(e,g),e.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},e.prototype._update=function(w){for(var f=this._w,F=0|this._a,M=0|this._b,K=0|this._c,j=0|this._d,Z=0|this._e,ee=0;ee<16;++ee)f[ee]=w.readInt32BE(4*ee);for(;ee<80;++ee)f[ee]=f[ee-3]^f[ee-8]^f[ee-14]^f[ee-16];for(var V=0;V<80;++V){var Q=~~(V/20),$=A(F)+d(Q,M,K,j)+Z+f[V]+D[Q]|0;Z=j,j=K,K=h(M),M=F,F=$}this._a=F+this._a|0,this._b=M+this._b|0,this._c=K+this._c|0,this._d=j+this._d|0,this._e=Z+this._e|0},e.prototype._hash=function(){var w=p.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},ke.exports=e},21270(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function e(){this.init(),this._w=o,g.call(this,64,56)}function A(f){return f<<1|f>>>31}function h(f){return f<<5|f>>>27}function d(f){return f<<30|f>>>2}function w(f,F,M,K){return 0===f?F&M|~F&K:2===f?F&M|F&K|M&K:F^M^K}i(e,g),e.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},e.prototype._update=function(f){for(var F=this._w,M=0|this._a,K=0|this._b,j=0|this._c,Z=0|this._d,ee=0|this._e,V=0;V<16;++V)F[V]=f.readInt32BE(4*V);for(;V<80;++V)F[V]=A(F[V-3]^F[V-8]^F[V-14]^F[V-16]);for(var Q=0;Q<80;++Q){var $=~~(Q/20),ie=h(M)+w($,K,j,Z)+ee+F[Q]+D[$]|0;ee=Z,Z=j,j=d(K),K=M,M=ie}this._a=M+this._a|0,this._b=K+this._b|0,this._c=j+this._c|0,this._d=Z+this._d|0,this._e=ee+this._e|0},e.prototype._hash=function(){var f=p.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},ke.exports=e},42709(ke,q,l){"use strict";var i=l(71993),g=l(32148),p=l(70463),D=l(27054).Buffer,o=new Array(64);function e(){this.init(),this._w=o,p.call(this,64,56)}i(e,g),e.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},e.prototype._hash=function(){var A=D.allocUnsafe(28);return A.writeInt32BE(this._a,0),A.writeInt32BE(this._b,4),A.writeInt32BE(this._c,8),A.writeInt32BE(this._d,12),A.writeInt32BE(this._e,16),A.writeInt32BE(this._f,20),A.writeInt32BE(this._g,24),A},ke.exports=e},32148(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[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],o=new Array(64);function e(){this.init(),this._w=o,g.call(this,64,56)}function A(M,K,j){return j^M&(K^j)}function h(M,K,j){return M&K|j&(M|K)}function d(M){return(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10)}function w(M){return(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7)}function f(M){return(M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3}function F(M){return(M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10}i(e,g),e.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},e.prototype._update=function(M){for(var K=this._w,j=0|this._a,Z=0|this._b,ee=0|this._c,V=0|this._d,Q=0|this._e,$=0|this._f,ie=0|this._g,_e=0|this._h,ye=0;ye<16;++ye)K[ye]=M.readInt32BE(4*ye);for(;ye<64;++ye)K[ye]=F(K[ye-2])+K[ye-7]+f(K[ye-15])+K[ye-16]|0;for(var se=0;se<64;++se){var pe=_e+w(Q)+A(Q,$,ie)+D[se]+K[se]|0,Ee=d(j)+h(j,Z,ee)|0;_e=ie,ie=$,$=Q,Q=V+pe|0,V=ee,ee=Z,Z=j,j=pe+Ee|0}this._a=j+this._a|0,this._b=Z+this._b|0,this._c=ee+this._c|0,this._d=V+this._d|0,this._e=Q+this._e|0,this._f=$+this._f|0,this._g=ie+this._g|0,this._h=_e+this._h|0},e.prototype._hash=function(){var M=p.allocUnsafe(32);return M.writeInt32BE(this._a,0),M.writeInt32BE(this._b,4),M.writeInt32BE(this._c,8),M.writeInt32BE(this._d,12),M.writeInt32BE(this._e,16),M.writeInt32BE(this._f,20),M.writeInt32BE(this._g,24),M.writeInt32BE(this._h,28),M},ke.exports=e},51856(ke,q,l){"use strict";var i=l(71993),g=l(3121),p=l(70463),D=l(27054).Buffer,o=new Array(160);function e(){this.init(),this._w=o,p.call(this,128,112)}i(e,g),e.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},e.prototype._hash=function(){var A=D.allocUnsafe(48);function h(d,w,f){A.writeInt32BE(d,f),A.writeInt32BE(w,f+4)}return h(this._ah,this._al,0),h(this._bh,this._bl,8),h(this._ch,this._cl,16),h(this._dh,this._dl,24),h(this._eh,this._el,32),h(this._fh,this._fl,40),A},ke.exports=e},3121(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[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],o=new Array(160);function e(){this.init(),this._w=o,g.call(this,128,112)}function A(Z,ee,V){return V^Z&(ee^V)}function h(Z,ee,V){return Z&ee|V&(Z|ee)}function d(Z,ee){return(Z>>>28|ee<<4)^(ee>>>2|Z<<30)^(ee>>>7|Z<<25)}function w(Z,ee){return(Z>>>14|ee<<18)^(Z>>>18|ee<<14)^(ee>>>9|Z<<23)}function f(Z,ee){return(Z>>>1|ee<<31)^(Z>>>8|ee<<24)^Z>>>7}function F(Z,ee){return(Z>>>1|ee<<31)^(Z>>>8|ee<<24)^(Z>>>7|ee<<25)}function M(Z,ee){return(Z>>>19|ee<<13)^(ee>>>29|Z<<3)^Z>>>6}function K(Z,ee){return(Z>>>19|ee<<13)^(ee>>>29|Z<<3)^(Z>>>6|ee<<26)}function j(Z,ee){return Z>>>0>>0?1:0}i(e,g),e.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},e.prototype._update=function(Z){for(var ee=this._w,V=0|this._ah,Q=0|this._bh,$=0|this._ch,ie=0|this._dh,_e=0|this._eh,ye=0|this._fh,se=0|this._gh,pe=0|this._hh,Ee=0|this._al,L=0|this._bl,t=0|this._cl,s=0|this._dl,m=0|this._el,u=0|this._fl,_=0|this._gl,T=0|this._hl,P=0;P<32;P+=2)ee[P]=Z.readInt32BE(4*P),ee[P+1]=Z.readInt32BE(4*P+4);for(;P<160;P+=2){var C=ee[P-30],a=ee[P-30+1],x=f(C,a),Y=F(a,C),R=M(C=ee[P-4],a=ee[P-4+1]),U=K(a,C),he=ee[P-32],Oe=ee[P-32+1],ge=Y+ee[P-14+1]|0,ce=x+ee[P-14]+j(ge,Y)|0;ce=(ce=ce+R+j(ge=ge+U|0,U)|0)+he+j(ge=ge+Oe|0,Oe)|0,ee[P]=ce,ee[P+1]=ge}for(var Re=0;Re<160;Re+=2){ce=ee[Re],ge=ee[Re+1];var Me=h(V,Q,$),ve=h(Ee,L,t),oe=d(V,Ee),Se=d(Ee,V),be=w(_e,m),nt=w(m,_e),$e=D[Re],dt=D[Re+1],yt=A(_e,ye,se),Et=A(m,u,_),rt=T+nt|0,Mn=pe+be+j(rt,T)|0;Mn=(Mn=(Mn=Mn+yt+j(rt=rt+Et|0,Et)|0)+$e+j(rt=rt+dt|0,dt)|0)+ce+j(rt=rt+ge|0,ge)|0;var qt=Se+ve|0,S=oe+Me+j(qt,Se)|0;pe=se,T=_,se=ye,_=u,ye=_e,u=m,_e=ie+Mn+j(m=s+rt|0,s)|0,ie=$,s=t,$=Q,t=L,Q=V,L=Ee,V=Mn+S+j(Ee=rt+qt|0,rt)|0}this._al=this._al+Ee|0,this._bl=this._bl+L|0,this._cl=this._cl+t|0,this._dl=this._dl+s|0,this._el=this._el+m|0,this._fl=this._fl+u|0,this._gl=this._gl+_|0,this._hl=this._hl+T|0,this._ah=this._ah+V+j(this._al,Ee)|0,this._bh=this._bh+Q+j(this._bl,L)|0,this._ch=this._ch+$+j(this._cl,t)|0,this._dh=this._dh+ie+j(this._dl,s)|0,this._eh=this._eh+_e+j(this._el,m)|0,this._fh=this._fh+ye+j(this._fl,u)|0,this._gh=this._gh+se+j(this._gl,_)|0,this._hh=this._hh+pe+j(this._hl,T)|0},e.prototype._hash=function(){var Z=p.allocUnsafe(64);function ee(V,Q,$){Z.writeInt32BE(V,$),Z.writeInt32BE(Q,$+4)}return ee(this._ah,this._al,0),ee(this._bh,this._bl,8),ee(this._ch,this._cl,16),ee(this._dh,this._dl,24),ee(this._eh,this._el,32),ee(this._fh,this._fl,40),ee(this._gh,this._gl,48),ee(this._hh,this._hl,56),Z},ke.exports=e},82852(ke,q,l){!function(i){"use strict";var g={};ke.exports?(g.bytesToHex=l(24740).bytesToHex,g.convertString=l(10820),ke.exports=h):(g.bytesToHex=i.convertHex.bytesToHex,g.convertString=i.convertString,i.sha256=h);var p=[];!function(){function d(M){for(var K=Math.sqrt(M),j=2;j<=K;j++)if(!(M%j))return!1;return!0}function w(M){return 4294967296*(M-(0|M))|0}for(var f=2,F=0;F<64;)d(f)&&(p[F]=w(Math.pow(f,1/3)),F++),f++}();var D=function(d){for(var w=[],f=0,F=0;f>>5]|=d[f]<<24-F%32;return w},o=function(d){for(var w=[],f=0;f<32*d.length;f+=8)w.push(d[f>>>5]>>>24-f%32&255);return w},e=[],A=function(d,w,f){for(var F=d[0],M=d[1],K=d[2],j=d[3],Z=d[4],ee=d[5],V=d[6],Q=d[7],$=0;$<64;$++){if($<16)e[$]=0|w[f+$];else{var ie=e[$-15],ye=e[$-2];e[$]=((ie<<25|ie>>>7)^(ie<<14|ie>>>18)^ie>>>3)+e[$-7]+((ye<<15|ye>>>17)^(ye<<13|ye>>>19)^ye>>>10)+e[$-16]}var Ee=F&M^F&K^M&K,s=Q+((Z<<26|Z>>>6)^(Z<<21|Z>>>11)^(Z<<7|Z>>>25))+(Z&ee^~Z&V)+p[$]+e[$];Q=V,V=ee,ee=Z,Z=j+s|0,j=K,K=M,M=F,F=s+(((F<<30|F>>>2)^(F<<19|F>>>13)^(F<<10|F>>>22))+Ee)|0}d[0]=d[0]+F|0,d[1]=d[1]+M|0,d[2]=d[2]+K|0,d[3]=d[3]+j|0,d[4]=d[4]+Z|0,d[5]=d[5]+ee|0,d[6]=d[6]+V|0,d[7]=d[7]+Q|0};function h(d,w){d.constructor===String&&(d=g.convertString.UTF8.stringToBytes(d));var f=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],F=D(d),M=8*d.length;F[M>>5]|=128<<24-M%32,F[15+(M+64>>9<<4)]=M;for(var K=0;K2?"one of ".concat(A," ").concat(e.slice(0,h-1).join(", "),", or ")+e[h-1]:2===h?"one of ".concat(A," ").concat(e[0]," or ").concat(e[1]):"of ".concat(A," ").concat(e[0])}return"of ".concat(A," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,A){return'The value "'+A+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,A,h){var d,w;if("string"==typeof A&&function p(e,A,h){return e.substr(!h||h<0?0:+h,A.length)===A}(A,"not ")?(d="must not be",A=A.replace(/^not /,"")):d="must be",function D(e,A,h){return(void 0===h||h>e.length)&&(h=e.length),e.substring(h-A.length,h)===A}(e," argument"))w="The ".concat(e," ").concat(d," ").concat(g(A,"type"));else{var f=function o(e,A,h){return"number"!=typeof h&&(h=0),!(h+A.length>e.length)&&-1!==e.indexOf(A,h)}(e,".")?"property":"argument";w='The "'.concat(e,'" ').concat(f," ").concat(d," ").concat(g(A,"type"))}return w+". Received type ".concat(typeof h)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ke.exports.F=l},1030(ke,q,l){"use strict";var i=Object.keys||function(w){var f=[];for(var F in w)f.push(F);return f};ke.exports=A;var g=l(61092),p=l(15492);l(71993)(A,g);for(var D=i(p.prototype),o=0;o0)if("string"!=typeof oe&&!$e.objectMode&&Object.getPrototypeOf(oe)!==o.prototype&&(oe=function A(ve){return o.from(ve)}(oe)),be)$e.endEmitted?ye(ve,new Q):s(ve,$e,oe,!0);else if($e.ended)ye(ve,new ee);else{if($e.destroyed)return!1;$e.reading=!1,$e.decoder&&!Se?(oe=$e.decoder.write(oe),$e.objectMode||0!==oe.length?s(ve,$e,oe,!1):x(ve,$e)):s(ve,$e,oe,!1)}else be||($e.reading=!1,x(ve,$e));return!$e.ended&&($e.length<$e.highWaterMark||0===$e.length)}function s(ve,oe,Se,be){oe.flowing&&0===oe.length&&!oe.sync?(oe.awaitDrain=0,ve.emit("data",Se)):(oe.length+=oe.objectMode?1:Se.length,be?oe.buffer.unshift(Se):oe.buffer.push(Se),oe.needReadable&&C(ve)),x(ve,oe)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(oe){this._readableState&&(this._readableState.destroyed=oe)}}),L.prototype.destroy=F.destroy,L.prototype._undestroy=F.undestroy,L.prototype._destroy=function(ve,oe){oe(ve)},L.prototype.push=function(ve,oe){var be,Se=this._readableState;return Se.objectMode?be=!0:"string"==typeof ve&&((oe=oe||Se.defaultEncoding)!==Se.encoding&&(ve=o.from(ve,oe),oe=""),be=!0),t(this,ve,oe,!1,be)},L.prototype.unshift=function(ve){return t(this,ve,null,!0,!1)},L.prototype.isPaused=function(){return!1===this._readableState.flowing},L.prototype.setEncoding=function(ve){$||($=l(78454).I);var oe=new $(ve);this._readableState.decoder=oe,this._readableState.encoding=this._readableState.decoder.encoding;for(var Se=this._readableState.buffer.head,be="";null!==Se;)be+=oe.write(Se.data),Se=Se.next;return this._readableState.buffer.clear(),""!==be&&this._readableState.buffer.push(be),this._readableState.length=be.length,this};var u=1073741824;function T(ve,oe){return ve<=0||0===oe.length&&oe.ended?0:oe.objectMode?1:ve!=ve?oe.flowing&&oe.length?oe.buffer.head.data.length:oe.length:(ve>oe.highWaterMark&&(oe.highWaterMark=function _(ve){return ve>=u?ve=u:(ve--,ve|=ve>>>1,ve|=ve>>>2,ve|=ve>>>4,ve|=ve>>>8,ve|=ve>>>16,ve++),ve}(ve)),ve<=oe.length?ve:oe.ended?oe.length:(oe.needReadable=!0,0))}function C(ve){var oe=ve._readableState;w("emitReadable",oe.needReadable,oe.emittedReadable),oe.needReadable=!1,oe.emittedReadable||(w("emitReadable",oe.flowing),oe.emittedReadable=!0,process.nextTick(a,ve))}function a(ve){var oe=ve._readableState;w("emitReadable_",oe.destroyed,oe.length,oe.ended),!oe.destroyed&&(oe.length||oe.ended)&&(ve.emit("readable"),oe.emittedReadable=!1),oe.needReadable=!oe.flowing&&!oe.ended&&oe.length<=oe.highWaterMark,Oe(ve)}function x(ve,oe){oe.readingMore||(oe.readingMore=!0,process.nextTick(Y,ve,oe))}function Y(ve,oe){for(;!oe.reading&&!oe.ended&&(oe.length0,oe.resumeScheduled&&!oe.paused?oe.flowing=!0:ve.listenerCount("data")>0&&ve.resume()}function fe(ve){w("readable nexttick read 0"),ve.read(0)}function he(ve,oe){w("resume",oe.reading),oe.reading||ve.read(0),oe.resumeScheduled=!1,ve.emit("resume"),Oe(ve),oe.flowing&&!oe.reading&&ve.read(0)}function Oe(ve){var oe=ve._readableState;for(w("flow",oe.flowing);oe.flowing&&null!==ve.read(););}function ge(ve,oe){return 0===oe.length?null:(oe.objectMode?Se=oe.buffer.shift():!ve||ve>=oe.length?(Se=oe.decoder?oe.buffer.join(""):1===oe.buffer.length?oe.buffer.first():oe.buffer.concat(oe.length),oe.buffer.clear()):Se=oe.buffer.consume(ve,oe.decoder),Se);var Se}function ce(ve){var oe=ve._readableState;w("endReadable",oe.endEmitted),oe.endEmitted||(oe.ended=!0,process.nextTick(Re,oe,ve))}function Re(ve,oe){if(w("endReadableNT",ve.endEmitted,ve.length),!ve.endEmitted&&0===ve.length&&(ve.endEmitted=!0,oe.readable=!1,oe.emit("end"),ve.autoDestroy)){var Se=oe._writableState;(!Se||Se.autoDestroy&&Se.finished)&&oe.destroy()}}function Me(ve,oe){for(var Se=0,be=ve.length;Se=oe.highWaterMark:oe.length>0)||oe.ended))return w("read: emitReadable",oe.length,oe.ended),0===oe.length&&oe.ended?ce(this):C(this),null;if(0===(ve=T(ve,oe))&&oe.ended)return 0===oe.length&&ce(this),null;var nt,be=oe.needReadable;return w("need readable",be),(0===oe.length||oe.length-ve0?ge(ve,oe):null)?(oe.needReadable=oe.length<=oe.highWaterMark,ve=0):(oe.length-=ve,oe.awaitDrain=0),0===oe.length&&(oe.ended||(oe.needReadable=!0),Se!==ve&&oe.ended&&ce(this)),null!==nt&&this.emit("data",nt),nt},L.prototype._read=function(ve){ye(this,new V("_read()"))},L.prototype.pipe=function(ve,oe){var Se=this,be=this._readableState;switch(be.pipesCount){case 0:be.pipes=ve;break;case 1:be.pipes=[be.pipes,ve];break;default:be.pipes.push(ve)}be.pipesCount+=1,w("pipe count=%d opts=%j",be.pipesCount,oe);var $e=oe&&!1===oe.end||ve===process.stdout||ve===process.stderr?ae:yt;function yt(){w("onend"),ve.end()}be.endEmitted?process.nextTick($e):Se.once("end",$e),ve.on("unpipe",function dt(me,Le){w("onunpipe"),me===Se&&Le&&!1===Le.hasUnpiped&&(Le.hasUnpiped=!0,function Mn(){w("cleanup"),ve.removeListener("close",Xt),ve.removeListener("finish",de),ve.removeListener("drain",Et),ve.removeListener("error",S),ve.removeListener("unpipe",dt),Se.removeListener("end",yt),Se.removeListener("end",ae),Se.removeListener("data",qt),rt=!0,be.awaitDrain&&(!ve._writableState||ve._writableState.needDrain)&&Et()}())});var Et=function R(ve){return function(){var Se=ve._readableState;w("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,0===Se.awaitDrain&&p(ve,"data")&&(Se.flowing=!0,Oe(ve))}}(Se);ve.on("drain",Et);var rt=!1;function qt(me){w("ondata");var Le=ve.write(me);w("dest.write",Le),!1===Le&&((1===be.pipesCount&&be.pipes===ve||be.pipesCount>1&&-1!==Me(be.pipes,ve))&&!rt&&(w("false write response, pause",be.awaitDrain),be.awaitDrain++),Se.pause())}function S(me){w("onerror",me),ae(),ve.removeListener("error",S),0===p(ve,"error")&&ye(ve,me)}function Xt(){ve.removeListener("finish",de),ae()}function de(){w("onfinish"),ve.removeListener("close",Xt),ae()}function ae(){w("unpipe"),Se.unpipe(ve)}return Se.on("data",qt),function pe(ve,oe,Se){if("function"==typeof ve.prependListener)return ve.prependListener(oe,Se);ve._events&&ve._events[oe]?Array.isArray(ve._events[oe])?ve._events[oe].unshift(Se):ve._events[oe]=[Se,ve._events[oe]]:ve.on(oe,Se)}(ve,"error",S),ve.once("close",Xt),ve.once("finish",de),ve.emit("pipe",Se),be.flowing||(w("pipe resume"),Se.resume()),ve},L.prototype.unpipe=function(ve){var oe=this._readableState,Se={hasUnpiped:!1};if(0===oe.pipesCount)return this;if(1===oe.pipesCount)return ve&&ve!==oe.pipes||(ve||(ve=oe.pipes),oe.pipes=null,oe.pipesCount=0,oe.flowing=!1,ve&&ve.emit("unpipe",this,Se)),this;if(!ve){var be=oe.pipes,nt=oe.pipesCount;oe.pipes=null,oe.pipesCount=0,oe.flowing=!1;for(var $e=0;$e0,!1!==be.flowing&&this.resume()):"readable"===ve&&!be.endEmitted&&!be.readableListening&&(be.readableListening=be.needReadable=!0,be.flowing=!1,be.emittedReadable=!1,w("on readable",be.length,be.reading),be.length?C(this):be.reading||process.nextTick(fe,this)),Se},L.prototype.removeListener=function(ve,oe){var Se=D.prototype.removeListener.call(this,ve,oe);return"readable"===ve&&process.nextTick(U,this),Se},L.prototype.removeAllListeners=function(ve){var oe=D.prototype.removeAllListeners.apply(this,arguments);return("readable"===ve||void 0===ve)&&process.nextTick(U,this),oe},L.prototype.resume=function(){var ve=this._readableState;return ve.flowing||(w("resume"),ve.flowing=!ve.readableListening,function re(ve,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,process.nextTick(he,ve,oe))}(this,ve)),ve.paused=!1,this},L.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},L.prototype.wrap=function(ve){var oe=this,Se=this._readableState,be=!1;for(var nt in ve.on("end",function(){if(w("wrapped end"),Se.decoder&&!Se.ended){var dt=Se.decoder.end();dt&&dt.length&&oe.push(dt)}oe.push(null)}),ve.on("data",function(dt){w("wrapped data"),Se.decoder&&(dt=Se.decoder.write(dt)),Se.objectMode&&null==dt||!(Se.objectMode||dt&&dt.length)||oe.push(dt)||(be=!0,ve.pause())}),ve)void 0===this[nt]&&"function"==typeof ve[nt]&&(this[nt]=function(yt){return function(){return ve[yt].apply(ve,arguments)}}(nt));for(var $e=0;$e-1))throw new ie(ge);return this._writableState.defaultEncoding=ge,this},Object.defineProperty(Ee.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Ee.prototype._write=function(Oe,ge,ce){ce(new j("_write()"))},Ee.prototype._writev=null,Ee.prototype.end=function(Oe,ge,ce){var Re=this._writableState;return"function"==typeof Oe?(ce=Oe,Oe=null,ge=null):"function"==typeof ge&&(ce=ge,ge=null),null!=Oe&&this.write(Oe,ge),Re.corked&&(Re.corked=1,this.uncork()),Re.ending||function re(Oe,ge,ce){ge.ending=!0,fe(Oe,ge),ce&&(ge.finished?process.nextTick(ce):Oe.once("finish",ce)),ge.ended=!0,Oe.writable=!1}(this,Re,ce),this},Object.defineProperty(Ee.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Ee.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(ge){this._writableState&&(this._writableState.destroyed=ge)}}),Ee.prototype.destroy=w.destroy,Ee.prototype._undestroy=w.undestroy,Ee.prototype._destroy=function(Oe,ge){ge(Oe)}},12683(ke,q,l){"use strict";var i;function g($,ie,_e){return ie=function p($){var ie=function D($,ie){if("object"!=typeof $||null===$)return $;var _e=$[Symbol.toPrimitive];if(void 0!==_e){var ye=_e.call($,ie||"default");if("object"!=typeof ye)return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ie?String:Number)($)}($,"string");return"symbol"==typeof ie?ie:String(ie)}(ie),ie in $?Object.defineProperty($,ie,{value:_e,enumerable:!0,configurable:!0,writable:!0}):$[ie]=_e,$}var o=l(57854),e=Symbol("lastResolve"),A=Symbol("lastReject"),h=Symbol("error"),d=Symbol("ended"),w=Symbol("lastPromise"),f=Symbol("handlePromise"),F=Symbol("stream");function M($,ie){return{value:$,done:ie}}function K($){var ie=$[e];if(null!==ie){var _e=$[F].read();null!==_e&&($[w]=null,$[e]=null,$[A]=null,ie(M(_e,!1)))}}function j($){process.nextTick(K,$)}var ee=Object.getPrototypeOf(function(){}),V=Object.setPrototypeOf((g(i={get stream(){return this[F]},next:function(){var ie=this,_e=this[h];if(null!==_e)return Promise.reject(_e);if(this[d])return Promise.resolve(M(void 0,!0));if(this[F].destroyed)return new Promise(function(Ee,L){process.nextTick(function(){ie[h]?L(ie[h]):Ee(M(void 0,!0))})});var se,ye=this[w];if(ye)se=new Promise(function Z($,ie){return function(_e,ye){$.then(function(){ie[d]?_e(M(void 0,!0)):ie[f](_e,ye)},ye)}}(ye,this));else{var pe=this[F].read();if(null!==pe)return Promise.resolve(M(pe,!1));se=new Promise(this[f])}return this[w]=se,se}},Symbol.asyncIterator,function(){return this}),g(i,"return",function(){var ie=this;return new Promise(function(_e,ye){ie[F].destroy(null,function(se){se?ye(se):_e(M(void 0,!0))})})}),i),ee);ke.exports=function(ie){var _e,ye=Object.create(V,(g(_e={},F,{value:ie,writable:!0}),g(_e,e,{value:null,writable:!0}),g(_e,A,{value:null,writable:!0}),g(_e,h,{value:null,writable:!0}),g(_e,d,{value:ie._readableState.endEmitted,writable:!0}),g(_e,f,{value:function(pe,Ee){var L=ye[F].read();L?(ye[w]=null,ye[e]=null,ye[A]=null,pe(M(L,!1))):(ye[e]=pe,ye[A]=Ee)},writable:!0}),_e));return ye[w]=null,o(ie,function(se){if(se&&"ERR_STREAM_PREMATURE_CLOSE"!==se.code){var pe=ye[A];return null!==pe&&(ye[w]=null,ye[e]=null,ye[A]=null,pe(se)),void(ye[h]=se)}var Ee=ye[e];null!==Ee&&(ye[w]=null,ye[e]=null,ye[A]=null,Ee(M(void 0,!0))),ye[d]=!0}),ie.on("readable",j.bind(null,ye)),ye}},75225(ke,q,l){"use strict";function i(j,Z){var ee=Object.keys(j);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(j);Z&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(j,Q).enumerable})),ee.push.apply(ee,V)}return ee}function g(j){for(var Z=1;Z0?this.tail.next=V:this.head=V,this.tail=V,++this.length}},{key:"unshift",value:function(ee){var V={data:ee,next:this.head};0===this.length&&(this.tail=V),this.head=V,++this.length}},{key:"shift",value:function(){if(0!==this.length){var ee=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,ee}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(ee){if(0===this.length)return"";for(var V=this.head,Q=""+V.data;V=V.next;)Q+=ee+V.data;return Q}},{key:"concat",value:function(ee){if(0===this.length)return w.alloc(0);for(var V=w.allocUnsafe(ee>>>0),Q=this.head,$=0;Q;)K(Q.data,V,$),$+=Q.data.length,Q=Q.next;return V}},{key:"consume",value:function(ee,V){var Q;return eeie.length?ie.length:ee;if($+=_e===ie.length?ie:ie.slice(0,ee),0===(ee-=_e)){_e===ie.length?(++Q,this.head=V.next?V.next:this.tail=null):(this.head=V,V.data=ie.slice(_e));break}++Q}return this.length-=Q,$}},{key:"_getBuffer",value:function(ee){var V=w.allocUnsafe(ee),Q=this.head,$=1;for(Q.data.copy(V),ee-=Q.data.length;Q=Q.next;){var ie=Q.data,_e=ee>ie.length?ie.length:ee;if(ie.copy(V,V.length-ee,0,_e),0===(ee-=_e)){_e===ie.length?(++$,this.head=Q.next?Q.next:this.tail=null):(this.head=Q,Q.data=ie.slice(_e));break}++$}return this.length-=$,V}},{key:M,value:function(ee,V){return F(this,g(g({},V),{},{depth:0,customInspect:!1}))}}]),j}()},88152(ke){"use strict";function l(o,e){p(o,e),i(o)}function i(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function p(o,e){o.emit("error",e)}ke.exports={destroy:function q(o,e){var A=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(e?e(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(p,this,o)):process.nextTick(p,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(w){!e&&w?A._writableState?A._writableState.errorEmitted?process.nextTick(i,A):(A._writableState.errorEmitted=!0,process.nextTick(l,A,w)):process.nextTick(l,A,w):e?(process.nextTick(i,A),e(w)):process.nextTick(i,A)}),this)},undestroy:function g(){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 D(o,e){var A=o._readableState,h=o._writableState;A&&A.autoDestroy||h&&h.autoDestroy?o.destroy(e):o.emit("error",e)}}},57854(ke,q,l){"use strict";var i=l(30464).F.ERR_STREAM_PREMATURE_CLOSE;function p(){}ke.exports=function o(e,A,h){if("function"==typeof A)return o(e,null,A);A||(A={}),h=function g(e){var A=!1;return function(){if(!A){A=!0;for(var h=arguments.length,d=new Array(h),w=0;w0,function(ye){ee||(ee=ye),ye&&V.forEach(d),!ie&&(V.forEach(d),Z(ee))})});return K.reduce(w)}},22827(ke,q,l){"use strict";var i=l(30464).F.ERR_INVALID_OPT_VALUE;ke.exports={getHighWaterMark:function p(D,o,e,A){var h=function g(D,o,e){return null!=D.highWaterMark?D.highWaterMark:o?D[e]:null}(o,A,e);if(null!=h){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new i(A?e:"highWaterMark",h);return Math.floor(h)}return D.objectMode?16:16384}}},12601(ke,q,l){ke.exports=l(44356).EventEmitter},78454(ke,q,l){"use strict";var i=l(54272).Buffer,g=i.isEncoding||function(V){switch((V=""+V)&&V.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 o(V){var Q;switch(this.encoding=function D(V){var Q=function p(V){if(!V)return"utf8";for(var Q;;)switch(V){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 V;default:if(Q)return;V=(""+V).toLowerCase(),Q=!0}}(V);if("string"!=typeof Q&&(i.isEncoding===g||!g(V)))throw new Error("Unknown encoding: "+V);return Q||V}(V),this.encoding){case"utf16le":this.text=F,this.end=M,Q=4;break;case"utf8":this.fillLast=d,Q=4;break;case"base64":this.text=K,this.end=j,Q=3;break;default:return this.write=Z,void(this.end=ee)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(Q)}function e(V){return V<=127?0:V>>5==6?2:V>>4==14?3:V>>3==30?4:V>>6==2?-1:-2}function d(V){var Q=this.lastTotal-this.lastNeed,$=function h(V,Q){if(128!=(192&Q[0]))return V.lastNeed=0,"\ufffd";if(V.lastNeed>1&&Q.length>1){if(128!=(192&Q[1]))return V.lastNeed=1,"\ufffd";if(V.lastNeed>2&&Q.length>2&&128!=(192&Q[2]))return V.lastNeed=2,"\ufffd"}}(this,V);return void 0!==$?$:this.lastNeed<=V.length?(V.copy(this.lastChar,Q,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(V.copy(this.lastChar,Q,0,V.length),void(this.lastNeed-=V.length))}function F(V,Q){if((V.length-Q)%2==0){var $=V.toString("utf16le",Q);if($){var ie=$.charCodeAt($.length-1);if(ie>=55296&&ie<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1],$.slice(0,-1)}return $}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=V[V.length-1],V.toString("utf16le",Q,V.length-1)}function M(V){var Q=V&&V.length?this.write(V):"";return this.lastNeed?Q+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):Q}function K(V,Q){var $=(V.length-Q)%3;return 0===$?V.toString("base64",Q):(this.lastNeed=3-$,this.lastTotal=3,1===$?this.lastChar[0]=V[V.length-1]:(this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1]),V.toString("base64",Q,V.length-$))}function j(V){var Q=V&&V.length?this.write(V):"";return this.lastNeed?Q+this.lastChar.toString("base64",0,3-this.lastNeed):Q}function Z(V){return V.toString(this.encoding)}function ee(V){return V&&V.length?this.write(V):""}q.I=o,o.prototype.write=function(V){if(0===V.length)return"";var Q,$;if(this.lastNeed){if(void 0===(Q=this.fillLast(V)))return"";$=this.lastNeed,this.lastNeed=0}else $=0;return $=0?(_e>0&&(V.lastNeed=_e-1),_e):--ie<$||-2===_e?0:(_e=e(Q[ie]))>=0?(_e>0&&(V.lastNeed=_e-2),_e):--ie<$||-2===_e?0:(_e=e(Q[ie]))>=0?(_e>0&&(2===_e?_e=0:V.lastNeed=_e-3),_e):0}(this,V,Q);if(!this.lastNeed)return V.toString("utf8",Q);this.lastTotal=$;var ie=V.length-($-this.lastNeed);return V.copy(this.lastChar,0,ie),V.toString("utf8",Q,ie)},o.prototype.fillLast=function(V){if(this.lastNeed<=V.length)return V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,V.length),this.lastNeed-=V.length}},54272(ke,q,l){var i=l(83838),g=i.Buffer;function p(o,e){for(var A in o)e[A]=o[A]}function D(o,e,A){return g(o,e,A)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?ke.exports=i:(p(i,q),q.Buffer=D),p(g,D),D.from=function(o,e,A){if("number"==typeof o)throw new TypeError("Argument must not be a number");return g(o,e,A)},D.alloc=function(o,e,A){if("number"!=typeof o)throw new TypeError("Argument must be a number");var h=g(o);return void 0!==e?"string"==typeof A?h.fill(e,A):h.fill(e):h.fill(0),h},D.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return g(o)},D.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return i.SlowBuffer(o)}},47851(ke,q,l){var i=l(41876);q.encode=i.encode,q.decode=i.decode},41876(ke,q){"use strict";var i=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];q.encode=function(p){Buffer.isBuffer(p)||(p=new Buffer(p));for(var D=0,o=0,e=0,A=0,h=new Buffer(8*function g(p){var D=Math.floor(p.length/5);return p.length%5==0?D:D+1}(p));D3?(A=(A=d&255>>e)<<(e=(e+5)%8)|(D+1>8-e,D++):(A=d>>8-(e+5)&31,0==(e=(e+5)%8)&&D++),h[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(A),o++}for(D=o;D>>(D=(D+5)%8),A++,e=255&o<<8-D)}return h.slice(0,A)}},41090(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(56471),p=l(573),D=ArrayBuffer.isView||function(d){try{return p(d),!0}catch{return!1}},o=typeof Uint8Array<"u",e=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",A=e&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);ke.exports=function(d,w){if(i.isBuffer(d))return d.constructor&&!("isBuffer"in d)?i.from(d):d;if("string"==typeof d)return i.from(d,w);if(e&&D(d)){if(0===d.byteLength)return i.alloc(0);if(A){var f=i.from(d.buffer,d.byteOffset,d.byteLength);if(f.byteLength===d.byteLength)return f}var F=d instanceof Uint8Array?d:new Uint8Array(d.buffer,d.byteOffset,d.byteLength),M=i.from(F);if(M.length===d.byteLength)return M}if(o&&d instanceof Uint8Array)return i.from(d);var K=g(d);if(K)for(var j=0;j255||~~Z!==Z)throw new RangeError("Array items must be numbers in the range 0-255.")}if(K||i.isBuffer(d)&&d.constructor&&"function"==typeof d.constructor.isBuffer&&d.constructor.isBuffer(d))return i.from(d);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},56471(ke){var q={}.toString;ke.exports=Array.isArray||function(l){return"[object Array]"==q.call(l)}},573(ke,q,l){"use strict";var i=l(46758),p=l(12773)("TypedArray.prototype.buffer",!0),D=l(4729);ke.exports=p||function(e){if(!D(e))throw new i("Not a Typed Array");return e.buffer}},3398(ke){function l(i){try{if(!global.localStorage)return!1}catch{return!1}var g=global.localStorage[i];return null!=g&&"true"===String(g).toLowerCase()}ke.exports=function q(i,g){if(l("noDeprecation"))return i;var p=!1;return function D(){if(!p){if(l("throwDeprecation"))throw new Error(g);l("traceDeprecation")?console.trace(g):console.warn(g),p=!0}return i.apply(this,arguments)}}},68326(__unused_webpack_module,exports){var indexOf=function(ke,q){if(ke.indexOf)return ke.indexOf(q);for(var l=0;l"u"?global:globalThis,w=g(),f=D("String.prototype.slice"),F=D("Array.prototype.indexOf",!0)||function(V,Q){for(var $=0;$-1}(Q)?Q:"Object"===Q&&function j(ee){var V=!1;return i(M,function(Q,$){if(!V)try{Q(ee),V=f($,1)}catch{}}),V}(V)}return o?function K(ee){var V=!1;return i(M,function(Q,$){if(!V)try{"$"+Q(ee)===$&&(V=f($,1))}catch{}}),V}(V):null}},78982(){},47790(){},77965(){},66089(){},79368(){},64688(){},51069(){},15340(){},79838(){},63779(){},77199(){},97594(ke,q,l){"use strict";var i=l(5019),g=typeof globalThis>"u"?global:globalThis;ke.exports=function(){for(var D=[],o=0;oV,If:()=>i,K2:()=>e,Os:()=>o,P:()=>K,PZ:()=>ee,hZ:()=>p,i0:()=>D,i7:()=>d,iF:()=>A,kY:()=>w,kp:()=>g,sf:()=>Z,wk:()=>h});var i=function(Q){return Q[Q.State=0]="State",Q[Q.Transition=1]="Transition",Q[Q.Sequence=2]="Sequence",Q[Q.Group=3]="Group",Q[Q.Animate=4]="Animate",Q[Q.Keyframes=5]="Keyframes",Q[Q.Style=6]="Style",Q[Q.Trigger=7]="Trigger",Q[Q.Reference=8]="Reference",Q[Q.AnimateChild=9]="AnimateChild",Q[Q.AnimateRef=10]="AnimateRef",Q[Q.Query=11]="Query",Q[Q.Stagger=12]="Stagger",Q}(i||{});const g="*";function p(Q,$){return{type:i.Trigger,name:Q,definitions:$,options:{}}}function D(Q,$=null){return{type:i.Animate,styles:$,timings:Q}}function o(Q,$=null){return{type:i.Group,steps:Q,options:$}}function e(Q,$=null){return{type:i.Sequence,steps:Q,options:$}}function A(Q){return{type:i.Style,styles:Q,offset:null}}function h(Q,$,ie){return{type:i.State,name:Q,styles:$,options:ie}}function d(Q){return{type:i.Keyframes,steps:Q}}function w(Q,$,ie=null){return{type:i.Transition,expr:Q,animation:$,options:ie}}function K(Q,$,ie=null){return{type:i.Query,selector:Q,animation:$,options:ie}}class Z{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor($=0,ie=0){this.totalTime=$+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}onStart($){this._originalOnStartFns.push($),this._onStartFns.push($)}onDone($){this._originalOnDoneFns.push($),this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach($=>$()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition($){this._position=this.totalTime?$*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback($){const ie="start"==$?this._onStartFns:this._onDoneFns;ie.forEach(_e=>_e()),ie.length=0}}class ee{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor($){this.players=$;let ie=0,_e=0,ye=0;const se=this.players.length;0==se?queueMicrotask(()=>this._onFinish()):this.players.forEach(pe=>{pe.onDone(()=>{++ie==se&&this._onFinish()}),pe.onDestroy(()=>{++_e==se&&this._onDestroy()}),pe.onStart(()=>{++ye==se&&this._onStart()})}),this.totalTime=this.players.reduce((pe,Ee)=>Math.max(pe,Ee.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}init(){this.players.forEach($=>$.init())}onStart($){this._onStartFns.push($)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach($=>$()),this._onStartFns=[])}onDone($){this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach($=>$.play())}pause(){this.players.forEach($=>$.pause())}restart(){this.players.forEach($=>$.restart())}finish(){this._onFinish(),this.players.forEach($=>$.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach($=>$.destroy()),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this.players.forEach($=>$.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition($){const ie=$*this.totalTime;this.players.forEach(_e=>{const ye=_e.totalTime?Math.min(1,ie/_e.totalTime):1;_e.setPosition(ye)})}getPosition(){const $=this.players.reduce((ie,_e)=>null===ie||_e.totalTime>ie.totalTime?_e:ie,null);return null!=$?$.getPosition():0}beforeDestroy(){this.players.forEach($=>{$.beforeDestroy&&$.beforeDestroy()})}triggerCallback($){const ie="start"==$?this._onStartFns:this._onDoneFns;ie.forEach(_e=>_e()),ie.length=0}}const V="!"},17094(ke,q,l){"use strict";l.d(q,{Ai:()=>Y,GX:()=>_,Pd:()=>ge,Q_:()=>Oe,Z7:()=>V,kB:()=>T,sp:()=>u});var h=l(2615),d=l(73664),w=l(17705),f=l(39842),F=l(44522),M=l(88968),K=l(49046),j=l(34330),Z=l(72318);let V=(()=>{class ce{_platform=(0,h.WQX)(f.O);constructor(){}isDisabled(Me){return Me.hasAttribute("disabled")}isVisible(Me){return function $(ce){return!!(ce.offsetWidth||ce.offsetHeight||"function"==typeof ce.getClientRects&&ce.getClientRects().length)}(Me)&&"visible"===getComputedStyle(Me).visibility}isTabbable(Me){if(!this._platform.isBrowser)return!1;const ve=function Q(ce){try{return ce.frameElement}catch{return null}}(function m(ce){return ce.ownerDocument&&ce.ownerDocument.defaultView||window}(Me));if(ve&&(-1===L(ve)||!this.isVisible(ve)))return!1;let oe=Me.nodeName.toLowerCase(),Se=L(Me);return Me.hasAttribute("contenteditable")?-1!==Se:!("iframe"===oe||"object"===oe||this._platform.WEBKIT&&this._platform.IOS&&!function t(ce){let Re=ce.nodeName.toLowerCase(),Me="input"===Re&&ce.type;return"text"===Me||"password"===Me||"select"===Re||"textarea"===Re}(Me))&&("audio"===oe?!!Me.hasAttribute("controls")&&-1!==Se:"video"===oe?-1!==Se&&(null!==Se||this._platform.FIREFOX||Me.hasAttribute("controls")):Me.tabIndex>=0)}isFocusable(Me,ve){return function s(ce){return!function _e(ce){return function se(ce){return"input"==ce.nodeName.toLowerCase()}(ce)&&"hidden"==ce.type}(ce)&&(function ie(ce){let Re=ce.nodeName.toLowerCase();return"input"===Re||"select"===Re||"button"===Re||"textarea"===Re}(ce)||function ye(ce){return function pe(ce){return"a"==ce.nodeName.toLowerCase()}(ce)&&ce.hasAttribute("href")}(ce)||ce.hasAttribute("contenteditable")||Ee(ce))}(Me)&&!this.isDisabled(Me)&&(ve?.ignoreVisibility||this.isVisible(Me))}static \u0275fac=function(ve){return new(ve||ce)};static \u0275prov=h.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();function Ee(ce){if(!ce.hasAttribute("tabindex")||void 0===ce.tabIndex)return!1;let Re=ce.getAttribute("tabindex");return!(!Re||isNaN(parseInt(Re,10)))}function L(ce){if(!Ee(ce))return null;const Re=parseInt(ce.getAttribute("tabindex")||"",10);return isNaN(Re)?-1:Re}class u{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(Re){this._enabled=Re,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}_enabled=!0;constructor(Re,Me,ve,oe,Se=!1,be){this._element=Re,this._checker=Me,this._ngZone=ve,this._document=oe,this._injector=be,Se||this.attachAnchors()}destroy(){const Re=this._startAnchor,Me=this._endAnchor;Re&&(Re.removeEventListener("focus",this.startAnchorListener),Re.remove()),Me&&(Me.removeEventListener("focus",this.endAnchorListener),Me.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(Re){return new Promise(Me=>{this._executeOnStable(()=>Me(this.focusInitialElement(Re)))})}focusFirstTabbableElementWhenReady(Re){return new Promise(Me=>{this._executeOnStable(()=>Me(this.focusFirstTabbableElement(Re)))})}focusLastTabbableElementWhenReady(Re){return new Promise(Me=>{this._executeOnStable(()=>Me(this.focusLastTabbableElement(Re)))})}_getRegionBoundary(Re){const Me=this._element.querySelectorAll(`[cdk-focus-region-${Re}], [cdkFocusRegion${Re}], [cdk-focus-${Re}]`);return"start"==Re?Me.length?Me[0]:this._getFirstTabbableElement(this._element):Me.length?Me[Me.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Re){const Me=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Me){if(!this._checker.isFocusable(Me)){const ve=this._getFirstTabbableElement(Me);return ve?.focus(Re),!!ve}return Me.focus(Re),!0}return this.focusFirstTabbableElement(Re)}focusFirstTabbableElement(Re){const Me=this._getRegionBoundary("start");return Me&&Me.focus(Re),!!Me}focusLastTabbableElement(Re){const Me=this._getRegionBoundary("end");return Me&&Me.focus(Re),!!Me}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;const Me=Re.children;for(let ve=0;ve=0;ve--){const oe=Me[ve].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Me[ve]):null;if(oe)return oe}return null}_createAnchor(){const Re=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Re),Re.classList.add("cdk-visually-hidden"),Re.classList.add("cdk-focus-trap-anchor"),Re.setAttribute("aria-hidden","true"),Re}_toggleAnchorTabIndex(Re,Me){Re?Me.setAttribute("tabindex","0"):Me.removeAttribute("tabindex")}toggleAnchors(Re){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}_executeOnStable(Re){this._injector?(0,d.mal)(Re,{injector:this._injector}):setTimeout(Re)}}let _=(()=>{class ce{_checker=(0,h.WQX)(V);_ngZone=(0,h.WQX)(d.SKi);_document=(0,h.WQX)(h.qQL);_injector=(0,h.WQX)(h.zZn);constructor(){(0,h.WQX)(M.l).load(K.Y)}create(Me,ve=!1){return new u(Me,this._checker,this._ngZone,this._document,ve,this._injector)}static \u0275fac=function(ve){return new(ve||ce)};static \u0275prov=h.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),T=(()=>{class ce{_elementRef=(0,h.WQX)(d.aKT);_focusTrapFactory=(0,h.WQX)(_);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(Me){this.focusTrap&&(this.focusTrap.enabled=Me)}autoCapture;constructor(){(0,h.WQX)(f.O).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(Me){const ve=Me.autoCapture;ve&&!ve.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,F.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(ve){return new(ve||ce)};static \u0275dir=d.FsC({type:ce,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",w.L39],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",w.L39]},exportAs:["cdkTrapFocus"],features:[d.OA$]})}return ce})();const P=new h.nKC("liveAnnouncerElement",{providedIn:"root",factory:function C(){return null}}),a=new h.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let x=0,Y=(()=>{class ce{_ngZone=(0,h.WQX)(d.SKi);_defaultOptions=(0,h.WQX)(a,{optional:!0});_liveElement;_document=(0,h.WQX)(h.qQL);_previousTimeout;_currentPromise;_currentResolve;constructor(){const Me=(0,h.WQX)(P,{optional:!0});this._liveElement=Me||this._createLiveElement()}announce(Me,...ve){const oe=this._defaultOptions;let Se,be;return 1===ve.length&&"number"==typeof ve[0]?be=ve[0]:[Se,be]=ve,this.clear(),clearTimeout(this._previousTimeout),Se||(Se=oe&&oe.politeness?oe.politeness:"polite"),null==be&&oe&&(be=oe.duration),this._liveElement.setAttribute("aria-live",Se),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(nt=>this._currentResolve=nt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Me,"number"==typeof be&&(this._previousTimeout=setTimeout(()=>this.clear(),be)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Me="cdk-live-announcer-element",ve=this._document.getElementsByClassName(Me),oe=this._document.createElement("div");for(let Se=0;Se .cdk-overlay-container [aria-modal="true"]');for(let oe=0;oe{class ce{_platform=(0,h.WQX)(f.O);_hasCheckedHighContrastMode;_document=(0,h.WQX)(h.qQL);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,h.WQX)(j.Q).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return U.NONE;const Me=this._document.createElement("div");Me.style.backgroundColor="rgb(1,2,3)",Me.style.position="absolute",this._document.body.appendChild(Me);const ve=this._document.defaultView||window,oe=ve&&ve.getComputedStyle?ve.getComputedStyle(Me):null,Se=(oe&&oe.backgroundColor||"").replace(/ /g,"");switch(Me.remove(),Se){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return U.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return U.BLACK_ON_WHITE}return U.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Me=this._document.body.classList;Me.remove(he,fe,re),this._hasCheckedHighContrastMode=!0;const ve=this.getHighContrastMode();ve===U.BLACK_ON_WHITE?Me.add(he,fe):ve===U.WHITE_ON_BLACK&&Me.add(he,re)}}static \u0275fac=function(ve){return new(ve||ce)};static \u0275prov=h.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),ge=(()=>{class ce{constructor(){(0,h.WQX)(Oe)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(ve){return new(ve||ce)};static \u0275mod=d.$C({type:ce});static \u0275inj=h.G2t({imports:[Z.w5]})}return ce})()},18617(ke,q,l){"use strict";l.d(q,{Ae:()=>ee,px:()=>Z,vr:()=>ye}),l(17094);var h=l(2615),d=l(73664),w=l(39842),f=l(88968),F=l(49046);function Z(P,C,a){const x=V(P,C);a=a.trim(),!x.some(Y=>Y.trim()===a)&&(x.push(a),P.setAttribute(C,x.join(" ")))}function ee(P,C,a){const x=V(P,C);a=a.trim();const Y=x.filter(R=>R!==a);Y.length?P.setAttribute(C,Y.join(" ")):P.removeAttribute(C)}function V(P,C){return P.getAttribute(C)?.match(/\S+/g)??[]}l(21413),l(4125);const $="cdk-describedby-message",ie="cdk-describedby-host";let _e=0,ye=(()=>{class P{_platform=(0,h.WQX)(w.O);_document=(0,h.WQX)(h.qQL);_messageRegistry=new Map;_messagesContainer=null;_id=""+_e++;constructor(){(0,h.WQX)(f.l).load(F.Y),this._id=(0,h.WQX)(d.sZ2)+"-"+_e++}describe(a,x,Y){if(!this._canBeDescribed(a,x))return;const R=se(x,Y);"string"!=typeof x?(pe(x,this._id),this._messageRegistry.set(R,{messageElement:x,referenceCount:0})):this._messageRegistry.has(R)||this._createMessageElement(x,Y),this._isElementDescribedByMessage(a,R)||this._addMessageReference(a,R)}removeDescription(a,x,Y){if(!x||!this._isElementNode(a))return;const R=se(x,Y);if(this._isElementDescribedByMessage(a,R)&&this._removeMessageReference(a,R),"string"==typeof x){const U=this._messageRegistry.get(R);U&&0===U.referenceCount&&this._deleteMessageElement(R)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const a=this._document.querySelectorAll(`[${ie}="${this._id}"]`);for(let x=0;x0!=Y.indexOf($));a.setAttribute("aria-describedby",x.join(" "))}_addMessageReference(a,x){const Y=this._messageRegistry.get(x);Z(a,"aria-describedby",Y.messageElement.id),a.setAttribute(ie,this._id),Y.referenceCount++}_removeMessageReference(a,x){const Y=this._messageRegistry.get(x);Y.referenceCount--,ee(a,"aria-describedby",Y.messageElement.id),a.removeAttribute(ie)}_isElementDescribedByMessage(a,x){const Y=V(a,"aria-describedby"),R=this._messageRegistry.get(x),U=R&&R.messageElement.id;return!!U&&-1!=Y.indexOf(U)}_canBeDescribed(a,x){if(!this._isElementNode(a))return!1;if(x&&"object"==typeof x)return!0;const Y=null==x?"":`${x}`.trim(),R=a.getAttribute("aria-label");return!(!Y||R&&R.trim()===Y)}_isElementNode(a){return a.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(x){return new(x||P)};static \u0275prov=h.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function se(P,C){return"string"==typeof P?`${C||""}/${P}`:P}function pe(P,C){P.id||(P.id=`${$}-${C}-${_e++}`)}},99090(ke,q,l){"use strict";l.d(q,{A:()=>g});var i=l(12593);class g extends i.l{setActiveItem(D){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(D),this.activeItem&&this.activeItem.setActiveStyles()}}},80408(ke,q,l){"use strict";function i(g){return Array.isArray(g)?g:[g]}l.d(q,{F:()=>i})},28203(ke,q,l){"use strict";l.d(q,{jI:()=>d});var e=l(2615),A=l(73664);let d=(()=>{class w{static \u0275fac=function(M){return new(M||w)};static \u0275mod=A.$C({type:w});static \u0275inj=e.G2t({})}return w})()},34330(ke,q,l){"use strict";l.d(q,{D:()=>ee,Q:()=>$});var i=l(2615),g=l(73664),p=l(71985),D=l(21413),o=l(84572),e=l(28793),A=l(70152),h=l(96354),d=l(65245),w=l(99172),f=l(96697),F=l(56977),M=l(39842),K=l(80408);const j=new Set;let Z,ee=(()=>{class _e{_platform=(0,i.WQX)(M.O);_nonce=(0,i.WQX)(g.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Q}matchMedia(se){return(this._platform.WEBKIT||this._platform.BLINK)&&function V(_e,ye){if(!j.has(_e))try{Z||(Z=document.createElement("style"),ye&&Z.setAttribute("nonce",ye),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${_e} {body{ }}`,0),j.add(_e))}catch(se){console.error(se)}}(se,this._nonce),this._matchMedia(se)}static \u0275fac=function(pe){return new(pe||_e)};static \u0275prov=i.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();function Q(_e){return{matches:"all"===_e||""===_e,media:_e,addListener:()=>{},removeListener:()=>{}}}let $=(()=>{class _e{_mediaMatcher=(0,i.WQX)(ee);_zone=(0,i.WQX)(g.SKi);_queries=new Map;_destroySubject=new D.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(se){return ie((0,K.F)(se)).some(Ee=>this._registerQuery(Ee).mql.matches)}observe(se){const Ee=ie((0,K.F)(se)).map(t=>this._registerQuery(t).observable);let L=(0,o.z)(Ee);return L=(0,e.x)(L.pipe((0,f.s)(1)),L.pipe((0,d.i)(1),(0,A.B)(0))),L.pipe((0,h.T)(t=>{const s={matches:!1,breakpoints:{}};return t.forEach(({matches:m,query:u})=>{s.matches=s.matches||m,s.breakpoints[u]=m}),s}))}_registerQuery(se){if(this._queries.has(se))return this._queries.get(se);const pe=this._mediaMatcher.matchMedia(se),L={observable:new p.c(t=>{const s=m=>this._zone.run(()=>t.next(m));return pe.addListener(s),()=>{pe.removeListener(s)}}).pipe((0,w.Z)(pe),(0,h.T)(({matches:t})=>({query:se,matches:t})),(0,F.Q)(this._destroySubject)),mql:pe};return this._queries.set(se,L),L}static \u0275fac=function(pe){return new(pe||_e)};static \u0275prov=i.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();function ie(_e){return _e.map(ye=>ye.split(",")).reduce((ye,se)=>ye.concat(se)).map(ye=>ye.trim())}},14085(ke,q,l){"use strict";function i(p){return null!=p&&"false"!=`${p}`}function g(p,D=/\s+/){const o=[];if(null!=p){const e=Array.isArray(p)?p:`${p}`.split(D);for(const A of e){const h=`${A}`.trim();h&&o.push(h)}}return o}l.d(q,{cc:()=>g,he:()=>i})},8045(ke,q,l){"use strict";l.d(q,{x:()=>p});var i=l(74402),g=l(7673);function p(D){return(0,i.A)(D)?D:(0,g.of)(D)}},14117(ke,q,l){"use strict";l.d(q,{q:()=>g,y:()=>p});var i=l(30017);class g{}function p(D){return D&&"function"==typeof D.connect&&!(D instanceof i.G)}},61577(ke,q,l){"use strict";l.d(q,{dS:()=>A});var i=l(2615),g=l(73664);const p=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function D(){return(0,i.WQX)(i.qQL)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let A=(()=>{class h{get value(){return this.valueSignal()}valueSignal=(0,i.vPA)("ltr");change=new g.bkB;constructor(){const w=(0,i.WQX)(p,{optional:!0});w&&this.valueSignal.set(function e(h){const d=h?.toLowerCase()||"";return"auto"===d&&typeof navigator<"u"&&navigator?.language?o.test(navigator.language)?"rtl":"ltr":"rtl"===d?"rtl":"ltr"}((w.body?w.body.dir:null)||(w.documentElement?w.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(f){return new(f||h)};static \u0275prov=i.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},67847(ke,q,l){"use strict";l.d(q,{OE:()=>g,i8:()=>D,o1:()=>p});var i=l(73664);function g(o,e=0){return p(o)?Number(o):2===arguments.length?e:0}function p(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function D(o){return o instanceof i.aKT?o.nativeElement:o}},95735(ke,q,l){"use strict";function i(p){return 0===p.buttons||0===p.detail}function g(p){const D=p.touches&&p.touches[0]||p.changedTouches&&p.changedTouches[0];return!(!D||-1!==D.identifier||null!=D.radiusX&&1!==D.radiusX||null!=D.radiusY&&1!==D.radiusY)}l.d(q,{_:()=>i,w:()=>g})},64123(ke,q,l){"use strict";l.d(q,{B:()=>g});var i=l(12593);class g extends i.l{_origin="program";setFocusOrigin(D){return this._origin=D,this}setActiveItem(D){super.setActiveItem(D),this.activeItem&&this.activeItem.focus(this._origin)}}},76838(ke,q,l){"use strict";l.d(q,{FN:()=>ye,vR:()=>se});var i=l(2615),g=l(73664),p=l(21413),D=l(84412),o=l(7673),e=l(23294),A=l(65245),h=l(56977),d=l(95735),w=l(10438),f=l(44522),F=l(39842),M=l(83300),K=l(67847);const j=new i.nKC("cdk-input-modality-detector-options"),Z={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},V={passive:!0,capture:!0};let Q=(()=>{class pe{_platform=(0,i.WQX)(F.O);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new D.t(null);_options;_lastTouchMs=0;_onKeydown=L=>{this._options?.ignoreKeys?.some(t=>t===L.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,f.Fb)(L))};_onMousedown=L=>{Date.now()-this._lastTouchMs<650||(this._modality.next((0,d._)(L)?"keyboard":"mouse"),this._mostRecentTarget=(0,f.Fb)(L))};_onTouchstart=L=>{(0,d.w)(L)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,f.Fb)(L))};constructor(){const L=(0,i.WQX)(g.SKi),t=(0,i.WQX)(i.qQL),s=(0,i.WQX)(j,{optional:!0});if(this._options={...Z,...s},this.modalityDetected=this._modality.pipe((0,A.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,e.F)()),this._platform.isBrowser){const m=(0,i.WQX)(g._9s).createRenderer(null,null);this._listenerCleanups=L.runOutsideAngular(()=>[m.listen(t,"keydown",this._onKeydown,V),m.listen(t,"mousedown",this._onMousedown,V),m.listen(t,"touchstart",this._onTouchstart,V)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(L=>L())}static \u0275fac=function(t){return new(t||pe)};static \u0275prov=i.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})();var $=function(pe){return pe[pe.IMMEDIATE=0]="IMMEDIATE",pe[pe.EVENTUAL=1]="EVENTUAL",pe}($||{});const ie=new i.nKC("cdk-focus-monitor-default-options"),_e=(0,M.B)({passive:!0,capture:!0});let ye=(()=>{class pe{_ngZone=(0,i.WQX)(g.SKi);_platform=(0,i.WQX)(F.O);_inputModalityDetector=(0,i.WQX)(Q);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=(0,i.WQX)(i.qQL);_stopInputModalityDetector=new p.B;constructor(){const L=(0,i.WQX)(ie,{optional:!0});this._detectionMode=L?.detectionMode||$.IMMEDIATE}_rootNodeFocusAndBlurListener=L=>{for(let s=(0,f.Fb)(L);s;s=s.parentElement)"focus"===L.type?this._onFocus(L,s):this._onBlur(L,s)};monitor(L,t=!1){const s=(0,K.i8)(L);if(!this._platform.isBrowser||1!==s.nodeType)return(0,o.of)();const m=(0,f.KT)(s)||this._document,u=this._elementInfo.get(s);if(u)return t&&(u.checkChildren=!0),u.subject;const _={checkChildren:t,subject:new p.B,rootNode:m};return this._elementInfo.set(s,_),this._registerGlobalListeners(_),_.subject}stopMonitoring(L){const t=(0,K.i8)(L),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(L,t,s){const m=(0,K.i8)(L);m===this._document.activeElement?this._getClosestElementsInfo(m).forEach(([_,T])=>this._originChanged(_,t,T)):(this._setOrigin(t),"function"==typeof m.focus&&m.focus(s))}ngOnDestroy(){this._elementInfo.forEach((L,t)=>this.stopMonitoring(t))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(L){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(L)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:L&&this._isLastInteractionFromInputLabel(L)?"mouse":"program"}_shouldBeAttributedToTouch(L){return this._detectionMode===$.EVENTUAL||!!L?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(L,t){L.classList.toggle("cdk-focused",!!t),L.classList.toggle("cdk-touch-focused","touch"===t),L.classList.toggle("cdk-keyboard-focused","keyboard"===t),L.classList.toggle("cdk-mouse-focused","mouse"===t),L.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(L,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=L,this._originFromTouchInteraction="touch"===L&&t,this._detectionMode===$.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(L,t){const s=this._elementInfo.get(t),m=(0,f.Fb)(L);!s||!s.checkChildren&&t!==m||this._originChanged(t,this._getFocusOrigin(m),s)}_onBlur(L,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&L.relatedTarget instanceof Node&&t.contains(L.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(L,t){L.subject.observers.length&&this._ngZone.run(()=>L.subject.next(t))}_registerGlobalListeners(L){if(!this._platform.isBrowser)return;const t=L.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,_e),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,_e)}),this._rootNodeFocusListenerCount.set(t,s+1),1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,h.Q)(this._stopInputModalityDetector)).subscribe(m=>{this._setOrigin(m,!0)}))}_removeGlobalListeners(L){const t=L.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_e),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_e),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(L,t,s){this._setClasses(L,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(L){const t=[];return this._elementInfo.forEach((s,m)=>{(m===L||s.checkChildren&&m.contains(L))&&t.push([m,s])}),t}_isLastInteractionFromInputLabel(L){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===L||"INPUT"!==L.nodeName&&"TEXTAREA"!==L.nodeName||L.disabled)return!1;const m=L.labels;if(m)for(let u=0;u{class pe{_elementRef=(0,i.WQX)(g.aKT);_focusMonitor=(0,i.WQX)(ye);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new g.bkB;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const L=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(L,1===L.nodeType&&L.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||pe)};static \u0275dir=g.FsC({type:pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return pe})()},89726(ke,q,l){"use strict";l.d(q,{g:()=>D});var i=l(2615),g=l(73664);const p={};let D=(()=>{class o{_appId=(0,i.WQX)(g.sZ2);getId(A){return"ng"!==this._appId&&(A+=this._appId),p.hasOwnProperty(A)||(p[A]=0),`${A}${p[A]++}`}static \u0275fac=function(h){return new(h||o)};static \u0275prov=i.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},67336(ke,q,l){"use strict";function i(g,...p){return p.length?p.some(D=>g[D]):g.altKey||g.shiftKey||g.ctrlKey||g.metaKey}l.d(q,{rp:()=>i})},10438(ke,q,l){"use strict";l.d(q,{A:()=>R,A$:()=>h,FX:()=>e,Fm:()=>o,G_:()=>g,Ge:()=>me,Kp:()=>j,LE:()=>Q,SJ:()=>se,UQ:()=>ee,W3:()=>A,Z:()=>ae,_f:()=>f,bn:()=>P,dB:()=>K,eg:()=>ui,f2:()=>pe,i7:()=>V,n6:()=>$,t6:()=>F,w_:()=>M,wn:()=>p,yZ:()=>Z});const g=8,p=9,o=13,e=16,A=17,h=18,f=27,F=32,M=33,K=34,j=35,Z=36,ee=37,V=38,Q=39,$=40,se=46,pe=48,P=57,R=65,ae=90,me=91,ui=224},99327(ke,q,l){"use strict";l.d(q,{RH:()=>p,Rp:()=>D});var i=l(2615),g=l(73664);let p=(()=>{class o{static \u0275fac=function(h){return new(h||o)};static \u0275mod=g.$C({type:o});static \u0275inj=i.G2t({})}return o})();const D={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)"}},12593(ke,q,l){"use strict";l.d(q,{l:()=>d});var i=l(2615),g=l(73664),p=l(59295),D=l(21413),o=l(18359),e=l(59096),A=l(67336),h=l(10438);class d{_items;_activeItemIndex=(0,i.vPA)(-1);_activeItem=(0,i.vPA)(null);_wrap=!1;_typeaheadSubscription=o.yU.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=f=>f.disabled;constructor(f,F){this._items=f,f instanceof g.rOR?this._itemChangesSubscription=f.changes.subscribe(M=>this._itemsChanged(M.toArray())):(0,i.Hps)(f)&&(this._effectRef=(0,p.QZ)(()=>this._itemsChanged(f()),{injector:F}))}tabOut=new D.B;change=new D.B;skipPredicate(f){return this._skipPredicateFn=f,this}withWrap(f=!0){return this._wrap=f,this}withVerticalOrientation(f=!0){return this._vertical=f,this}withHorizontalOrientation(f){return this._horizontal=f,this}withAllowedModifierKeys(f){return this._allowedModifierKeys=f,this}withTypeAhead(f=200){this._typeaheadSubscription.unsubscribe();const F=this._getItemsArray();return this._typeahead=new e.i(F,{debounceInterval:"number"==typeof f?f:void 0,skipPredicate:M=>this._skipPredicateFn(M)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(M=>{this.setActiveItem(M)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(f=!0){return this._homeAndEnd=f,this}withPageUpDown(f=!0,F=10){return this._pageUpAndDown={enabled:f,delta:F},this}setActiveItem(f){const F=this._activeItem();this.updateActiveItem(f),this._activeItem()!==F&&this.change.next(this._activeItemIndex())}onKeydown(f){const F=f.keyCode,K=["altKey","ctrlKey","metaKey","shiftKey"].every(j=>!f[j]||this._allowedModifierKeys.indexOf(j)>-1);switch(F){case h.wn:return void this.tabOut.next();case h.n6:if(this._vertical&&K){this.setNextItemActive();break}return;case h.i7:if(this._vertical&&K){this.setPreviousItemActive();break}return;case h.LE:if(this._horizontal&&K){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case h.UQ:if(this._horizontal&&K){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case h.yZ:if(this._homeAndEnd&&K){this.setFirstItemActive();break}return;case h.Kp:if(this._homeAndEnd&&K){this.setLastItemActive();break}return;case h.w_:if(this._pageUpAndDown.enabled&&K){const j=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(j>0?j:0,1);break}return;case h.dB:if(this._pageUpAndDown.enabled&&K){const j=this._activeItemIndex()+this._pageUpAndDown.delta,Z=this._getItemsArray().length;this._setActiveItemByIndex(j-1&&M!==this._activeItemIndex()&&(this._activeItemIndex.set(M),this._typeahead?.setCurrentSelectedItemIndex(M))}}}},72318(ke,q,l){"use strict";l.d(q,{Wv:()=>M,w5:()=>K});var i=l(2615),g=l(73664),p=l(17705),D=l(71985),o=l(21413),e=l(70152),A=l(5964),h=l(96354),d=l(67847);let f=(()=>{class j{create(ee){return typeof MutationObserver>"u"?null:new MutationObserver(ee)}static \u0275fac=function(V){return new(V||j)};static \u0275prov=i.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})(),F=(()=>{class j{_mutationObserverFactory=(0,i.WQX)(f);_observedElements=new Map;_ngZone=(0,i.WQX)(g.SKi);constructor(){}ngOnDestroy(){this._observedElements.forEach((ee,V)=>this._cleanupObserver(V))}observe(ee){const V=(0,d.i8)(ee);return new D.c(Q=>{const ie=this._observeElement(V).pipe((0,h.T)(_e=>_e.filter(ye=>!function w(j){if("characterData"===j.type&&j.target instanceof Comment)return!0;if("childList"===j.type){for(let Z=0;Z!!_e.length)).subscribe(_e=>{this._ngZone.run(()=>{Q.next(_e)})});return()=>{ie.unsubscribe(),this._unobserveElement(V)}})}_observeElement(ee){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(ee))this._observedElements.get(ee).count++;else{const V=new o.B,Q=this._mutationObserverFactory.create($=>V.next($));Q&&Q.observe(ee,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(ee,{observer:Q,stream:V,count:1})}return this._observedElements.get(ee).stream})}_unobserveElement(ee){this._observedElements.has(ee)&&(this._observedElements.get(ee).count--,this._observedElements.get(ee).count||this._cleanupObserver(ee))}_cleanupObserver(ee){if(this._observedElements.has(ee)){const{observer:V,stream:Q}=this._observedElements.get(ee);V&&V.disconnect(),Q.complete(),this._observedElements.delete(ee)}}static \u0275fac=function(V){return new(V||j)};static \u0275prov=i.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})(),M=(()=>{class j{_contentObserver=(0,i.WQX)(F);_elementRef=(0,i.WQX)(g.aKT);event=new g.bkB;get disabled(){return this._disabled}set disabled(ee){this._disabled=ee,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(ee){this._debounce=(0,d.OE)(ee),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const ee=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?ee.pipe((0,e.B)(this.debounce)):ee).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(V){return new(V||j)};static \u0275dir=g.FsC({type:j,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",p.L39],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return j})(),K=(()=>{class j{static \u0275fac=function(V){return new(V||j)};static \u0275mod=g.$C({type:j});static \u0275inj=i.G2t({providers:[f]})}return j})()},63610(ke,q,l){"use strict";l.d(q,{a:()=>F});var i=l(2615),g=l(73664),p=l(21413),D=l(71985),o=l(5964),e=l(92771),A=l(97647),d=l(56977);class f{_box;_destroyed=new p.B;_resizeSubject=new p.B;_resizeObserver;_elementObservables=new Map;constructor(K){this._box=K,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(j=>this._resizeSubject.next(j)))}observe(K){return this._elementObservables.has(K)||this._elementObservables.set(K,new D.c(j=>{const Z=this._resizeSubject.subscribe(j);return this._resizeObserver?.observe(K,{box:this._box}),()=>{this._resizeObserver?.unobserve(K),Z.unsubscribe(),this._elementObservables.delete(K)}}).pipe((0,o.p)(j=>j.some(Z=>Z.target===K)),function h(M,K,j){let Z,ee=!1;return M&&"object"==typeof M?({bufferSize:Z=1/0,windowTime:K=1/0,refCount:ee=!1,scheduler:j}=M):Z=M??1/0,(0,A.u)({connector:()=>new e.m(Z,K,j),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ee})}({bufferSize:1,refCount:!0}),(0,d.Q)(this._destroyed))),this._elementObservables.get(K)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let F=(()=>{class M{_cleanupErrorListener;_observers=new Map;_ngZone=(0,i.WQX)(g.SKi);constructor(){}ngOnDestroy(){for(const[,j]of this._observers)j.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(j,Z){const ee=Z?.box||"content-box";return this._observers.has(ee)||this._observers.set(ee,new f(ee)),this._observers.get(ee).observe(j)}static \u0275fac=function(Z){return new(Z||M)};static \u0275prov=i.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})()},49338(ke,q,l){"use strict";l.d(q,{WB:()=>En,$Q:()=>hn,rW:()=>dt,rR:()=>Y,Sf:()=>ve,z_:()=>Fe,yY:()=>Se,gA:()=>Ee,$M:()=>$e,uA:()=>de,Y$:()=>Le,RH:()=>C});var i=l(2615),g=l(73664),p=l(17705),D=l(57303),o=l(39842),e=l(44522);function A(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var h=l(88968),d=l(21413),w=l(18359);function f(Pe){return null==Pe?"":"string"==typeof Pe?Pe:`${Pe}px`}var F=l(80408),M=l(5718),K=l(76939),j=l(47860),Z=l(5964),ee=l(39974),V=l(54360),$=l(89726),ie=l(61577),_e=l(10438),ye=l(67336),se=l(28203);const pe=(0,j.CZ)();function Ee(Pe){return new L(Pe.get(M.Xj),Pe.get(i.qQL))}class L{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(Ue,Qe){this._viewportRuler=Ue,this._document=Qe}attach(){}enable(){if(this._canBeEnabled()){const Ue=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Ue.style.left||"",this._previousHTMLStyles.top=Ue.style.top||"",Ue.style.left=f(-this._previousScrollPosition.left),Ue.style.top=f(-this._previousScrollPosition.top),Ue.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Ue=this._document.documentElement,Ie=Ue.style,le=this._document.body.style,Ne=Ie.scrollBehavior||"",ze=le.scrollBehavior||"";this._isEnabled=!1,Ie.left=this._previousHTMLStyles.left,Ie.top=this._previousHTMLStyles.top,Ue.classList.remove("cdk-global-scrollblock"),pe&&(Ie.scrollBehavior=le.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pe&&(Ie.scrollBehavior=Ne,le.scrollBehavior=ze)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Qe=this._document.documentElement,Ie=this._viewportRuler.getViewportSize();return Qe.scrollHeight>Ie.height||Qe.scrollWidth>Ie.width}}class m{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(Ue,Qe,Ie,le){this._scrollDispatcher=Ue,this._ngZone=Qe,this._viewportRuler=Ie,this._config=le}attach(Ue){this._overlayRef=Ue}enable(){if(this._scrollSubscription)return;const Ue=this._scrollDispatcher.scrolled(0).pipe((0,Z.p)(Qe=>!Qe||!this._overlayRef.overlayElement.contains(Qe.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Ue.subscribe(()=>{const Qe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Qe-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Ue.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class _{enable(){}disable(){}attach(){}}function T(Pe,Ue){return Ue.some(Qe=>Pe.bottomQe.bottom||Pe.rightQe.right)}function P(Pe,Ue){return Ue.some(Qe=>Pe.topQe.bottom||Pe.leftQe.right)}function C(Pe,Ue){return new a(Pe.get(M.R),Pe.get(M.Xj),Pe.get(g.SKi),Ue)}class a{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(Ue,Qe,Ie,le){this._scrollDispatcher=Ue,this._viewportRuler=Qe,this._ngZone=Ie,this._config=le}attach(Ue){this._overlayRef=Ue}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 Qe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ie,height:le}=this._viewportRuler.getViewportSize();T(Qe,[{width:Ie,height:le,bottom:le,right:Ie,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 x=(()=>{class Pe{_injector=(0,i.WQX)(i.zZn);constructor(){}noop=()=>new _;close=Qe=>function s(Pe,Ue){return new m(Pe.get(M.R),Pe.get(g.SKi),Pe.get(M.Xj),Ue)}(this._injector,Qe);block=()=>Ee(this._injector);reposition=Qe=>C(this._injector,Qe);static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();class Y{positionStrategy;scrollStrategy=new _;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(Ue){if(Ue){const Qe=Object.keys(Ue);for(const Ie of Qe)void 0!==Ue[Ie]&&(this[Ie]=Ue[Ie])}}}class fe{connectionPair;scrollableViewProperties;constructor(Ue,Qe){this.connectionPair=Ue,this.scrollableViewProperties=Qe}}let Oe=(()=>{class Pe{_attachedOverlays=[];_document=(0,i.WQX)(i.qQL);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(Qe){this.remove(Qe),this._attachedOverlays.push(Qe)}remove(Qe){const Ie=this._attachedOverlays.indexOf(Qe);Ie>-1&&this._attachedOverlays.splice(Ie,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})(),ge=(()=>{class Pe extends Oe{_ngZone=(0,i.WQX)(g.SKi);_renderer=(0,i.WQX)(g._9s).createRenderer(null,null);_cleanupKeydown;add(Qe){super.add(Qe),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=Qe=>{const Ie=this._attachedOverlays;for(let le=Ie.length-1;le>-1;le--)if(Ie[le]._keydownEvents.observers.length>0){this._ngZone.run(()=>Ie[le]._keydownEvents.next(Qe));break}};static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=g.xGo(Pe)))(le||Pe)}})();static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})(),ce=(()=>{class Pe extends Oe{_platform=(0,i.WQX)(o.O);_ngZone=(0,i.WQX)(g.SKi);_renderer=(0,i.WQX)(g._9s).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(Qe){if(super.add(Qe),!this._isAttached){const Ie=this._document.body,le={capture:!0},Ne=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[Ne.listen(Ie,"pointerdown",this._pointerDownListener,le),Ne.listen(Ie,"click",this._clickListener,le),Ne.listen(Ie,"auxclick",this._clickListener,le),Ne.listen(Ie,"contextmenu",this._clickListener,le)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ie.style.cursor,Ie.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(Qe=>Qe()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=Qe=>{this._pointerDownEventTarget=(0,e.Fb)(Qe)};_clickListener=Qe=>{const Ie=(0,e.Fb)(Qe),le="click"===Qe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ie;this._pointerDownEventTarget=null;const Ne=this._attachedOverlays.slice();for(let ze=Ne.length-1;ze>-1;ze--){const Je=Ne[ze];if(Je._outsidePointerEvents.observers.length<1||!Je.hasAttached())continue;if(Re(Je.overlayElement,Ie)||Re(Je.overlayElement,le))break;const gt=Je._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>gt.next(Qe)):gt.next(Qe)}};static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=g.xGo(Pe)))(le||Pe)}})();static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();function Re(Pe,Ue){const Qe=typeof ShadowRoot<"u"&&ShadowRoot;let Ie=Ue;for(;Ie;){if(Ie===Pe)return!0;Ie=Qe&&Ie instanceof ShadowRoot?Ie.host:Ie.parentNode}return!1}let Me=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275cmp=g.VBU({type:Pe,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(Ie,le){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}\n"],encapsulation:2,changeDetection:0})}return Pe})(),ve=(()=>{class Pe{_platform=(0,i.WQX)(o.O);_containerElement;_document=(0,i.WQX)(i.qQL);_styleLoader=(0,i.WQX)(h.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Qe="cdk-overlay-container";if(this._platform.isBrowser||A()){const le=this._document.querySelectorAll(`.${Qe}[platform="server"], .${Qe}[platform="test"]`);for(let Ne=0;Ne{const Ue=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(Ue,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),Ue.style.pointerEvents="none",Ue.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}}class Se{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new d.B;_attachments=new d.B;_detachments=new d.B;_positionStrategy;_scrollStrategy;_locationChanges=w.yU.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new d.B;_outsidePointerEvents=new d.B;_afterNextRenderRef;constructor(Ue,Qe,Ie,le,Ne,ze,Je,gt,zt,Ye=!1,st,it){this._portalOutlet=Ue,this._host=Qe,this._pane=Ie,this._config=le,this._ngZone=Ne,this._keyboardDispatcher=ze,this._document=Je,this._location=gt,this._outsideClickDispatcher=zt,this._animationsDisabled=Ye,this._injector=st,this._renderer=it,le.scrollStrategy&&(this._scrollStrategy=le.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=le.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(Ue){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Qe=this._portalOutlet.attach(Ue);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,g.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Qe?.onDestroy&&Qe.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Qe}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Ue=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Ue}dispose(){const Ue=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,Ue&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}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(Ue){Ue!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Ue,this.hasAttached()&&(Ue.attach(this),this.updatePosition()))}updateSize(Ue){this._config={...this._config,...Ue},this._updateElementSize()}setDirection(Ue){this._config={...this._config,direction:Ue},this._updateElementDirection()}addPanelClass(Ue){this._pane&&this._toggleClasses(this._pane,Ue,!0)}removePanelClass(Ue){this._pane&&this._toggleClasses(this._pane,Ue,!1)}getDirection(){const Ue=this._config.direction;return Ue?"string"==typeof Ue?Ue:Ue.value:"ltr"}updateScrollStrategy(Ue){Ue!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Ue,this.hasAttached()&&(Ue.attach(this),Ue.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Ue=this._pane.style;Ue.width=f(this._config.width),Ue.height=f(this._config.height),Ue.minWidth=f(this._config.minWidth),Ue.minHeight=f(this._config.minHeight),Ue.maxWidth=f(this._config.maxWidth),Ue.maxHeight=f(this._config.maxHeight)}_togglePointerEvents(Ue){this._pane.style.pointerEvents=Ue?"":"none"}_attachBackdrop(){const Ue="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new oe(this._document,this._renderer,this._ngZone,Qe=>{this._backdropClick.next(Qe)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(Ue))}):this._backdropRef.element.classList.add(Ue)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(Ue,Qe,Ie){const le=(0,F.F)(Qe||[]).filter(Ne=>!!Ne);le.length&&(Ie?Ue.classList.add(...le):Ue.classList.remove(...le))}_detachContentWhenEmpty(){let Ue=!1;try{this._detachContentAfterRenderRef=(0,g.mal)(()=>{Ue=!0,this._detachContent()},{injector:this._injector})}catch(Qe){if(Ue)throw Qe;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){const Ue=this._scrollStrategy;Ue?.disable(),Ue?.detach?.()}}const be="cdk-overlay-connected-position-bounding-box",nt=/([A-Za-z%]+)$/;function $e(Pe,Ue){return new dt(Ue,Pe.get(M.Xj),Pe.get(i.qQL),Pe.get(o.O),Pe.get(ve))}class dt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new d.B;_resizeSubscription=w.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(Ue,Qe,Ie,le,Ne){this._viewportRuler=Qe,this._document=Ie,this._platform=le,this._overlayContainer=Ne,this.setOrigin(Ue)}attach(Ue){this._validatePositions(),Ue.hostElement.classList.add(be),this._overlayRef=Ue,this._boundingBox=Ue.hostElement,this._pane=Ue.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ue=this._originRect,Qe=this._overlayRect,Ie=this._viewportRect,le=this._containerRect,Ne=[];let ze;for(let Je of this._preferredPositions){let gt=this._getOriginPoint(Ue,le,Je),zt=this._getOverlayPoint(gt,Qe,Je),Ye=this._getOverlayFit(zt,Qe,Ie,Je);if(Ye.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Je,gt);this._canFitWithFlexibleDimensions(Ye,zt,Ie)?Ne.push({position:Je,origin:gt,overlayRect:Qe,boundingBoxRect:this._calculateBoundingBoxRect(gt,Je)}):(!ze||ze.overlayFit.visibleAreagt&&(gt=Ye,Je=zt)}return this._isPushed=!1,void this._applyPosition(Je.position,Je.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ze.position,ze.originPoint);this._applyPosition(ze.position,ze.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&yt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Ue=this._lastPosition;if(Ue){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Qe=this._getOriginPoint(this._originRect,this._containerRect,Ue);this._applyPosition(Ue,Qe)}else this.apply()}withScrollableContainers(Ue){return this._scrollables=Ue,this}withPositions(Ue){return this._preferredPositions=Ue,-1===Ue.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Ue){return this._viewportMargin=Ue,this}withFlexibleDimensions(Ue=!0){return this._hasFlexibleDimensions=Ue,this}withGrowAfterOpen(Ue=!0){return this._growAfterOpen=Ue,this}withPush(Ue=!0){return this._canPush=Ue,this}withLockedPosition(Ue=!0){return this._positionLocked=Ue,this}setOrigin(Ue){return this._origin=Ue,this}withDefaultOffsetX(Ue){return this._offsetX=Ue,this}withDefaultOffsetY(Ue){return this._offsetY=Ue,this}withTransformOriginOn(Ue){return this._transformOriginSelector=Ue,this}_getOriginPoint(Ue,Qe,Ie){let le,Ne;if("center"==Ie.originX)le=Ue.left+Ue.width/2;else{const ze=this._isRtl()?Ue.right:Ue.left,Je=this._isRtl()?Ue.left:Ue.right;le="start"==Ie.originX?ze:Je}return Qe.left<0&&(le-=Qe.left),Ne="center"==Ie.originY?Ue.top+Ue.height/2:"top"==Ie.originY?Ue.top:Ue.bottom,Qe.top<0&&(Ne-=Qe.top),{x:le,y:Ne}}_getOverlayPoint(Ue,Qe,Ie){let le,Ne;return le="center"==Ie.overlayX?-Qe.width/2:"start"===Ie.overlayX?this._isRtl()?-Qe.width:0:this._isRtl()?0:-Qe.width,Ne="center"==Ie.overlayY?-Qe.height/2:"top"==Ie.overlayY?0:-Qe.height,{x:Ue.x+le,y:Ue.y+Ne}}_getOverlayFit(Ue,Qe,Ie,le){const Ne=rt(Qe);let{x:ze,y:Je}=Ue,gt=this._getOffset(le,"x"),zt=this._getOffset(le,"y");gt&&(ze+=gt),zt&&(Je+=zt);let it=0-Je,He=Je+Ne.height-Ie.height,Wt=this._subtractOverflows(Ne.width,0-ze,ze+Ne.width-Ie.width),we=this._subtractOverflows(Ne.height,it,He),We=Wt*we;return{visibleArea:We,isCompletelyWithinViewport:Ne.width*Ne.height===We,fitsInViewportVertically:we===Ne.height,fitsInViewportHorizontally:Wt==Ne.width}}_canFitWithFlexibleDimensions(Ue,Qe,Ie){if(this._hasFlexibleDimensions){const le=Ie.bottom-Qe.y,Ne=Ie.right-Qe.x,ze=Et(this._overlayRef.getConfig().minHeight),Je=Et(this._overlayRef.getConfig().minWidth);return(Ue.fitsInViewportVertically||null!=ze&&ze<=le)&&(Ue.fitsInViewportHorizontally||null!=Je&&Je<=Ne)}return!1}_pushOverlayOnScreen(Ue,Qe,Ie){if(this._previousPushAmount&&this._positionLocked)return{x:Ue.x+this._previousPushAmount.x,y:Ue.y+this._previousPushAmount.y};const le=rt(Qe),Ne=this._viewportRect,ze=Math.max(Ue.x+le.width-Ne.width,0),Je=Math.max(Ue.y+le.height-Ne.height,0),gt=Math.max(Ne.top-Ie.top-Ue.y,0),zt=Math.max(Ne.left-Ie.left-Ue.x,0);let Ye=0,st=0;return Ye=le.width<=Ne.width?zt||-ze:Ue.xWt&&!this._isInitialRender&&!this._growAfterOpen&&(ze=Ue.y-Wt/2)}if("end"===Qe.overlayX&&!le||"start"===Qe.overlayX&&le)it=Ie.width-Ue.x+2*this._viewportMargin,Ye=Ue.x-this._viewportMargin;else if("start"===Qe.overlayX&&!le||"end"===Qe.overlayX&&le)st=Ue.x,Ye=Ie.right-Ue.x;else{const He=Math.min(Ie.right-Ue.x+Ie.left,Ue.x),Wt=this._lastBoundingBoxSize.width;Ye=2*He,st=Ue.x-He,Ye>Wt&&!this._isInitialRender&&!this._growAfterOpen&&(st=Ue.x-Wt/2)}return{top:ze,left:st,bottom:Je,right:it,width:Ye,height:Ne}}_setBoundingBoxStyles(Ue,Qe){const Ie=this._calculateBoundingBoxRect(Ue,Qe);!this._isInitialRender&&!this._growAfterOpen&&(Ie.height=Math.min(Ie.height,this._lastBoundingBoxSize.height),Ie.width=Math.min(Ie.width,this._lastBoundingBoxSize.width));const le={};if(this._hasExactPosition())le.top=le.left="0",le.bottom=le.right=le.maxHeight=le.maxWidth="",le.width=le.height="100%";else{const Ne=this._overlayRef.getConfig().maxHeight,ze=this._overlayRef.getConfig().maxWidth;le.height=f(Ie.height),le.top=f(Ie.top),le.bottom=f(Ie.bottom),le.width=f(Ie.width),le.left=f(Ie.left),le.right=f(Ie.right),le.alignItems="center"===Qe.overlayX?"center":"end"===Qe.overlayX?"flex-end":"flex-start",le.justifyContent="center"===Qe.overlayY?"center":"bottom"===Qe.overlayY?"flex-end":"flex-start",Ne&&(le.maxHeight=f(Ne)),ze&&(le.maxWidth=f(ze))}this._lastBoundingBoxSize=Ie,yt(this._boundingBox.style,le)}_resetBoundingBoxStyles(){yt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){yt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Ue,Qe){const Ie={},le=this._hasExactPosition(),Ne=this._hasFlexibleDimensions,ze=this._overlayRef.getConfig();if(le){const Ye=this._viewportRuler.getViewportScrollPosition();yt(Ie,this._getExactOverlayY(Qe,Ue,Ye)),yt(Ie,this._getExactOverlayX(Qe,Ue,Ye))}else Ie.position="static";let Je="",gt=this._getOffset(Qe,"x"),zt=this._getOffset(Qe,"y");gt&&(Je+=`translateX(${gt}px) `),zt&&(Je+=`translateY(${zt}px)`),Ie.transform=Je.trim(),ze.maxHeight&&(le?Ie.maxHeight=f(ze.maxHeight):Ne&&(Ie.maxHeight="")),ze.maxWidth&&(le?Ie.maxWidth=f(ze.maxWidth):Ne&&(Ie.maxWidth="")),yt(this._pane.style,Ie)}_getExactOverlayY(Ue,Qe,Ie){let le={top:"",bottom:""},Ne=this._getOverlayPoint(Qe,this._overlayRect,Ue);return this._isPushed&&(Ne=this._pushOverlayOnScreen(Ne,this._overlayRect,Ie)),"bottom"===Ue.overlayY?le.bottom=this._document.documentElement.clientHeight-(Ne.y+this._overlayRect.height)+"px":le.top=f(Ne.y),le}_getExactOverlayX(Ue,Qe,Ie){let ze,le={left:"",right:""},Ne=this._getOverlayPoint(Qe,this._overlayRect,Ue);return this._isPushed&&(Ne=this._pushOverlayOnScreen(Ne,this._overlayRect,Ie)),ze=this._isRtl()?"end"===Ue.overlayX?"left":"right":"end"===Ue.overlayX?"right":"left","right"===ze?le.right=this._document.documentElement.clientWidth-(Ne.x+this._overlayRect.width)+"px":le.left=f(Ne.x),le}_getScrollVisibility(){const Ue=this._getOriginRect(),Qe=this._pane.getBoundingClientRect(),Ie=this._scrollables.map(le=>le.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:P(Ue,Ie),isOriginOutsideView:T(Ue,Ie),isOverlayClipped:P(Qe,Ie),isOverlayOutsideView:T(Qe,Ie)}}_subtractOverflows(Ue,...Qe){return Qe.reduce((Ie,le)=>Ie-Math.max(le,0),Ue)}_getNarrowedViewportRect(){const Ue=this._document.documentElement.clientWidth,Qe=this._document.documentElement.clientHeight,Ie=this._viewportRuler.getViewportScrollPosition();return{top:Ie.top+this._viewportMargin,left:Ie.left+this._viewportMargin,right:Ie.left+Ue-this._viewportMargin,bottom:Ie.top+Qe-this._viewportMargin,width:Ue-2*this._viewportMargin,height:Qe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Ue,Qe){return"x"===Qe?null==Ue.offsetX?this._offsetX:Ue.offsetX:null==Ue.offsetY?this._offsetY:Ue.offsetY}_validatePositions(){}_addPanelClasses(Ue){this._pane&&(0,F.F)(Ue).forEach(Qe=>{""!==Qe&&-1===this._appliedPanelClasses.indexOf(Qe)&&(this._appliedPanelClasses.push(Qe),this._pane.classList.add(Qe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Ue=>{this._pane.classList.remove(Ue)}),this._appliedPanelClasses=[])}_getOriginRect(){const Ue=this._origin;if(Ue instanceof g.aKT)return Ue.nativeElement.getBoundingClientRect();if(Ue instanceof Element)return Ue.getBoundingClientRect();const Qe=Ue.width||0,Ie=Ue.height||0;return{top:Ue.y,bottom:Ue.y+Ie,left:Ue.x,right:Ue.x+Qe,height:Ie,width:Qe}}}function yt(Pe,Ue){for(let Qe in Ue)Ue.hasOwnProperty(Qe)&&(Pe[Qe]=Ue[Qe]);return Pe}function Et(Pe){if("number"!=typeof Pe&&null!=Pe){const[Ue,Qe]=Pe.split(nt);return Qe&&"px"!==Qe?null:parseFloat(Ue)}return Pe||null}function rt(Pe){return{top:Math.floor(Pe.top),right:Math.floor(Pe.right),bottom:Math.floor(Pe.bottom),left:Math.floor(Pe.left),width:Math.floor(Pe.width),height:Math.floor(Pe.height)}}const Xt="cdk-global-overlay-wrapper";function de(Pe){return new ae}class ae{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(Ue){const Qe=Ue.getConfig();this._overlayRef=Ue,this._width&&!Qe.width&&Ue.updateSize({width:this._width}),this._height&&!Qe.height&&Ue.updateSize({height:this._height}),Ue.hostElement.classList.add(Xt),this._isDisposed=!1}top(Ue=""){return this._bottomOffset="",this._topOffset=Ue,this._alignItems="flex-start",this}left(Ue=""){return this._xOffset=Ue,this._xPosition="left",this}bottom(Ue=""){return this._topOffset="",this._bottomOffset=Ue,this._alignItems="flex-end",this}right(Ue=""){return this._xOffset=Ue,this._xPosition="right",this}start(Ue=""){return this._xOffset=Ue,this._xPosition="start",this}end(Ue=""){return this._xOffset=Ue,this._xPosition="end",this}width(Ue=""){return this._overlayRef?this._overlayRef.updateSize({width:Ue}):this._width=Ue,this}height(Ue=""){return this._overlayRef?this._overlayRef.updateSize({height:Ue}):this._height=Ue,this}centerHorizontally(Ue=""){return this.left(Ue),this._xPosition="center",this}centerVertically(Ue=""){return this.top(Ue),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Ue=this._overlayRef.overlayElement.style,Qe=this._overlayRef.hostElement.style,Ie=this._overlayRef.getConfig(),{width:le,height:Ne,maxWidth:ze,maxHeight:Je}=Ie,gt=!("100%"!==le&&"100vw"!==le||ze&&"100%"!==ze&&"100vw"!==ze),zt=!("100%"!==Ne&&"100vh"!==Ne||Je&&"100%"!==Je&&"100vh"!==Je),Ye=this._xPosition,st=this._xOffset,it="rtl"===this._overlayRef.getConfig().direction;let He="",Wt="",we="";gt?we="flex-start":"center"===Ye?(we="center",it?Wt=st:He=st):it?"left"===Ye||"end"===Ye?(we="flex-end",He=st):("right"===Ye||"start"===Ye)&&(we="flex-start",Wt=st):"left"===Ye||"start"===Ye?(we="flex-start",He=st):("right"===Ye||"end"===Ye)&&(we="flex-end",Wt=st),Ue.position=this._cssPosition,Ue.marginLeft=gt?"0":He,Ue.marginTop=zt?"0":this._topOffset,Ue.marginBottom=this._bottomOffset,Ue.marginRight=gt?"0":Wt,Qe.justifyContent=we,Qe.alignItems=zt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Ue=this._overlayRef.overlayElement.style,Qe=this._overlayRef.hostElement,Ie=Qe.style;Qe.classList.remove(Xt),Ie.justifyContent=Ie.alignItems=Ue.marginTop=Ue.marginBottom=Ue.marginLeft=Ue.marginRight=Ue.position="",this._overlayRef=null,this._isDisposed=!0}}let me=(()=>{class Pe{_injector=(0,i.WQX)(i.zZn);constructor(){}global(){return de()}flexibleConnectedTo(Qe){return $e(this._injector,Qe)}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();function Le(Pe,Ue){Pe.get(h.l).load(Me);const Qe=Pe.get(ve),Ie=Pe.get(i.qQL),le=Pe.get($.g),Ne=Pe.get(g.o8S),ze=Pe.get(ie.dS),Je=Ie.createElement("div"),gt=Ie.createElement("div");gt.id=le.getId("cdk-overlay-"),gt.classList.add("cdk-overlay-pane"),Je.appendChild(gt),Qe.getContainerElement().appendChild(Je);const zt=new K.aI(gt,Ne,Pe),Ye=new Y(Ue),st=Pe.get(g.sFG,null,{optional:!0})||Pe.get(g._9s).createRenderer(null,null);return Ye.direction=Ye.direction||ze.value,new Se(zt,Je,gt,Ye,Pe.get(g.SKi),Pe.get(ge),Ie,Pe.get(D.aZ),Pe.get(ce),Ue?.disableAnimations??"NoopAnimations"===Pe.get(g.bc$,null,{optional:!0}),Pe.get(i.uvJ),st)}let et=(()=>{class Pe{scrollStrategies=(0,i.WQX)(x);_positionBuilder=(0,i.WQX)(me);_injector=(0,i.WQX)(i.zZn);constructor(){}create(Qe){return Le(this._injector,Qe)}position(){return this._positionBuilder}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();const tn=[{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"}],Vt=new i.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const Pe=(0,i.WQX)(i.zZn);return()=>C(Pe)}});let hn=(()=>{class Pe{elementRef=(0,i.WQX)(g.aKT);constructor(){}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=g.FsC({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return Pe})(),En=(()=>{class Pe{_dir=(0,i.WQX)(ie.dS,{optional:!0});_injector=(0,i.WQX)(i.zZn);_overlayRef;_templatePortal;_backdropSubscription=w.yU.EMPTY;_attachSubscription=w.yU.EMPTY;_detachSubscription=w.yU.EMPTY;_positionSubscription=w.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,i.WQX)(Vt);_disposeOnNavigation=!1;_ngZone=(0,i.WQX)(g.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(Qe){this._offsetX=Qe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Qe){this._offsetY=Qe,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Qe){this._disposeOnNavigation=Qe}backdropClick=new g.bkB;positionChange=new g.bkB;attach=new g.bkB;detach=new g.bkB;overlayKeydown=new g.bkB;overlayOutsideClick=new g.bkB;constructor(){const Qe=(0,i.WQX)(g.C4Q),Ie=(0,i.WQX)(g.c1b);this._templatePortal=new K.VA(Qe,Ie),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(Qe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Qe.origin&&this.open&&this._position.apply()),Qe.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=tn);const Qe=this._overlayRef=Le(this._injector,this._buildConfig());this._attachSubscription=Qe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Qe.detachments().subscribe(()=>this.detach.emit()),Qe.keydownEvents().subscribe(Ie=>{this.overlayKeydown.next(Ie),Ie.keyCode===_e._f&&!this.disableClose&&!(0,ye.rp)(Ie)&&(Ie.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ie=>{const le=this._getOriginElement(),Ne=(0,e.Fb)(Ie);(!le||le!==Ne&&!le.contains(Ne))&&this.overlayOutsideClick.next(Ie)})}_buildConfig(){const Qe=this._position=this.positionStrategy||this._createPositionStrategy(),Ie=new Y({direction:this._dir||"ltr",positionStrategy:Qe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(Ie.width=this.width),(this.height||0===this.height)&&(Ie.height=this.height),(this.minWidth||0===this.minWidth)&&(Ie.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ie.minHeight=this.minHeight),this.backdropClass&&(Ie.backdropClass=this.backdropClass),this.panelClass&&(Ie.panelClass=this.panelClass),Ie}_updatePositionStrategy(Qe){const Ie=this.positions.map(le=>({originX:le.originX,originY:le.originY,overlayX:le.overlayX,overlayY:le.overlayY,offsetX:le.offsetX||this.offsetX,offsetY:le.offsetY||this.offsetY,panelClass:le.panelClass||void 0}));return Qe.setOrigin(this._getOrigin()).withPositions(Ie).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Qe=$e(this._injector,this._getOrigin());return this._updatePositionStrategy(Qe),Qe}_getOrigin(){return this.origin instanceof hn?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof hn?this.origin.elementRef.nativeElement:this.origin instanceof g.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(Qe=>{this.backdropClick.emit(Qe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Q(Pe,Ue=!1){return(0,ee.N)((Qe,Ie)=>{let le=0;Qe.subscribe((0,V._)(Ie,Ne=>{const ze=Pe(Ne,le++);(ze||Ue)&&Ie.next(Ne),!ze&&Ie.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(Qe=>{this._ngZone.run(()=>this.positionChange.emit(Qe)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=g.FsC({type:Pe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",p.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",p.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",p.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",p.L39],push:[2,"cdkConnectedOverlayPush","push",p.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",p.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[g.OA$]})}return Pe})();const tt={provide:Vt,useFactory:function _n(Pe){const Ue=(0,i.WQX)(i.zZn);return()=>C(Ue)}};let Fe=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275mod=g.$C({type:Pe});static \u0275inj=i.G2t({providers:[et,tt],imports:[se.jI,K.jc,M.E9,M.E9]})}return Pe})()},83300(ke,q,l){"use strict";let i;function p(D){return function g(){if(null==i&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>i=!0}))}finally{i=i||!1}return i}()?D:!!D.capture}l.d(q,{B:()=>p})},39842(ke,q,l){"use strict";l.d(q,{O:()=>o});var i=l(2615),g=l(73664),p=l(60177);let D;try{D=typeof Intl<"u"&&Intl.v8BreakIterator}catch{D=!1}let o=(()=>{class e{_platformId=(0,i.WQX)(g.Agw);isBrowser=this._platformId?(0,p.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!D)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(d){return new(d||e)};static \u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},76939(ke,q,l){"use strict";l.d(q,{A8:()=>F,I3:()=>Q,VA:()=>M,aI:()=>Z,bV:()=>ee,jc:()=>ie,lb:()=>j});var g=l(2615),p=l(73664),D=l(17705);class f{_attachedHost;attach(ye){return this._attachedHost=ye,ye.attach(this)}detach(){let ye=this._attachedHost;null!=ye&&(this._attachedHost=null,ye.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ye){this._attachedHost=ye}}class F extends f{component;viewContainerRef;injector;projectableNodes;constructor(ye,se,pe,Ee){super(),this.component=ye,this.viewContainerRef=se,this.injector=pe,this.projectableNodes=Ee}}class M extends f{templateRef;viewContainerRef;context;injector;constructor(ye,se,pe,Ee){super(),this.templateRef=ye,this.viewContainerRef=se,this.context=pe,this.injector=Ee}get origin(){return this.templateRef.elementRef}attach(ye,se=this.context){return this.context=se,super.attach(ye)}detach(){return this.context=void 0,super.detach()}}class K extends f{element;constructor(ye){super(),this.element=ye instanceof p.aKT?ye.nativeElement:ye}}class j{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(ye){return ye instanceof F?(this._attachedPortal=ye,this.attachComponentPortal(ye)):ye instanceof M?(this._attachedPortal=ye,this.attachTemplatePortal(ye)):this.attachDomPortal&&ye instanceof K?(this._attachedPortal=ye,this.attachDomPortal(ye)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ye){this._disposeFn=ye}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Z extends j{outletElement;_appRef;_defaultInjector;constructor(ye,se,pe){super(),this.outletElement=ye,this._appRef=se,this._defaultInjector=pe}attachComponentPortal(ye){let se;if(ye.viewContainerRef){const pe=ye.injector||ye.viewContainerRef.injector,Ee=pe.get(p.Ab1,null,{optional:!0})||void 0;se=ye.viewContainerRef.createComponent(ye.component,{index:ye.viewContainerRef.length,injector:pe,ngModuleRef:Ee,projectableNodes:ye.projectableNodes||void 0}),this.setDisposeFn(()=>se.destroy())}else{const pe=this._appRef,Ee=ye.injector||this._defaultInjector||g.zZn.NULL,L=Ee.get(g.uvJ,pe.injector);se=(0,D.a0P)(ye.component,{elementInjector:Ee,environmentInjector:L,projectableNodes:ye.projectableNodes||void 0}),pe.attachView(se.hostView),this.setDisposeFn(()=>{pe.viewCount>0&&pe.detachView(se.hostView),se.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(se)),this._attachedPortal=ye,se}attachTemplatePortal(ye){let se=ye.viewContainerRef,pe=se.createEmbeddedView(ye.templateRef,ye.context,{injector:ye.injector});return pe.rootNodes.forEach(Ee=>this.outletElement.appendChild(Ee)),pe.detectChanges(),this.setDisposeFn(()=>{let Ee=se.indexOf(pe);-1!==Ee&&se.remove(Ee)}),this._attachedPortal=ye,pe}attachDomPortal=ye=>{const se=ye.element,pe=this.outletElement.ownerDocument.createComment("dom-portal");se.parentNode.insertBefore(pe,se),this.outletElement.appendChild(se),this._attachedPortal=ye,super.setDisposeFn(()=>{pe.parentNode&&pe.parentNode.replaceChild(se,pe)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ye){return ye.hostView.rootNodes[0]}}let ee=(()=>{class _e extends M{constructor(){super((0,g.WQX)(p.C4Q),(0,g.WQX)(p.c1b))}static \u0275fac=function(pe){return new(pe||_e)};static \u0275dir=p.FsC({type:_e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[p.Vt3]})}return _e})(),Q=(()=>{class _e extends j{_moduleRef=(0,g.WQX)(p.Ab1,{optional:!0});_document=(0,g.WQX)(g.qQL);_viewContainerRef=(0,g.WQX)(p.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(se){this.hasAttached()&&!se&&!this._isInitialized||(this.hasAttached()&&super.detach(),se&&super.attach(se),this._attachedPortal=se||null)}attached=new p.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(se){se.setAttachedHost(this);const pe=null!=se.viewContainerRef?se.viewContainerRef:this._viewContainerRef,Ee=pe.createComponent(se.component,{index:pe.length,injector:se.injector||pe.injector,projectableNodes:se.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return pe!==this._viewContainerRef&&this._getRootNode().appendChild(Ee.hostView.rootNodes[0]),super.setDisposeFn(()=>Ee.destroy()),this._attachedPortal=se,this._attachedRef=Ee,this.attached.emit(Ee),Ee}attachTemplatePortal(se){se.setAttachedHost(this);const pe=this._viewContainerRef.createEmbeddedView(se.templateRef,se.context,{injector:se.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=se,this._attachedRef=pe,this.attached.emit(pe),pe}attachDomPortal=se=>{const pe=se.element,Ee=this._document.createComment("dom-portal");se.setAttachedHost(this),pe.parentNode.insertBefore(Ee,pe),this._getRootNode().appendChild(pe),this._attachedPortal=se,super.setDisposeFn(()=>{Ee.parentNode&&Ee.parentNode.replaceChild(pe,Ee)})};_getRootNode(){const se=this._viewContainerRef.element.nativeElement;return se.nodeType===se.ELEMENT_NODE?se:se.parentNode}static \u0275fac=function(pe){return new(pe||_e)};static \u0275dir=p.FsC({type:_e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.Vt3]})}return _e})(),ie=(()=>{class _e{static \u0275fac=function(pe){return new(pe||_e)};static \u0275mod=p.$C({type:_e});static \u0275inj=g.G2t({})}return _e})()},49046(ke,q,l){"use strict";l.d(q,{Y:()=>g});var i=l(73664);let g=(()=>{class p{static \u0275fac=function(e){return new(e||p)};static \u0275cmp=i.VBU({type:p,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(e,A){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\n"],encapsulation:2,changeDetection:0})}return p})()},5718(ke,q,l){"use strict";l.d(q,{uv:()=>Ne,Gj:()=>Lt,R:()=>le,E9:()=>St,Xj:()=>Je});var i=l(2615),g=l(73664),p=l(21413),D=l(7673),o=l(71985),e=l(96780),A=l(18359);const h={schedule(At){let fn=requestAnimationFrame,mt=cancelAnimationFrame;const{delegate:It}=h;It&&(fn=It.requestAnimationFrame,mt=It.cancelAnimationFrame);const wn=fn(In=>{mt=void 0,At(In)});return new A.yU(()=>mt?.(wn))},requestAnimationFrame(...At){const{delegate:fn}=h;return(fn?.requestAnimationFrame||requestAnimationFrame)(...At)},cancelAnimationFrame(...At){const{delegate:fn}=h;return(fn?.cancelAnimationFrame||cancelAnimationFrame)(...At)},delegate:void 0};var w=l(39687);new class f extends w.q{flush(fn){let mt;this._active=!0,fn?mt=fn.id:(mt=this._scheduled,this._scheduled=void 0);const{actions:It}=this;let wn;fn=fn||It.shift();do{if(wn=fn.execute(fn.state,fn.delay))break}while((fn=It[0])&&fn.id===mt&&It.shift());if(this._active=!1,wn){for(;(fn=It[0])&&fn.id===mt&&It.shift();)fn.unsubscribe();throw wn}}}(class d extends e.R{constructor(fn,mt){super(fn,mt),this.scheduler=fn,this.work=mt}requestAsyncId(fn,mt,It=0){return null!==It&&It>0?super.requestAsyncId(fn,mt,It):(fn.actions.push(this),fn._scheduled||(fn._scheduled=h.requestAnimationFrame(()=>fn.flush(void 0))))}recycleAsyncId(fn,mt,It=0){var wn;if(null!=It?It>0:this.delay>0)return super.recycleAsyncId(fn,mt,It);const{actions:In}=fn;null!=mt&&mt===fn._scheduled&&(null===(wn=In[In.length-1])||void 0===wn?void 0:wn.id)!==mt&&(h.cancelAnimationFrame(mt),fn._scheduled=void 0)}});let j,K=1;const Z={};function ee(At){return At in Z&&(delete Z[At],!0)}const V={setImmediate(At){const fn=K++;return Z[fn]=!0,j||(j=Promise.resolve()),j.then(()=>ee(fn)&&At()),fn},clearImmediate(At){ee(At)}},{setImmediate:$,clearImmediate:ie}=V,_e={setImmediate(...At){const{delegate:fn}=_e;return(fn?.setImmediate||$)(...At)},clearImmediate(At){const{delegate:fn}=_e;return(fn?.clearImmediate||ie)(At)},delegate:void 0};new class se extends w.q{flush(fn){this._active=!0;const mt=this._scheduled;this._scheduled=void 0;const{actions:It}=this;let wn;fn=fn||It.shift();do{if(wn=fn.execute(fn.state,fn.delay))break}while((fn=It[0])&&fn.id===mt&&It.shift());if(this._active=!1,wn){for(;(fn=It[0])&&fn.id===mt&&It.shift();)fn.unsubscribe();throw wn}}}(class ye extends e.R{constructor(fn,mt){super(fn,mt),this.scheduler=fn,this.work=mt}requestAsyncId(fn,mt,It=0){return null!==It&&It>0?super.requestAsyncId(fn,mt,It):(fn.actions.push(this),fn._scheduled||(fn._scheduled=_e.setImmediate(fn.flush.bind(fn,void 0))))}recycleAsyncId(fn,mt,It=0){var wn;if(null!=It?It>0:this.delay>0)return super.recycleAsyncId(fn,mt,It);const{actions:In}=fn;null!=mt&&(null===(wn=In[In.length-1])||void 0===wn?void 0:wn.id)!==mt&&(_e.clearImmediate(mt),fn._scheduled===mt&&(fn._scheduled=void 0))}});var L=l(13798),t=l(5964),s=l(67847),m=l(39842),u=l(61577),_=l(47860),T=l(28203);let le=(()=>{class At{_ngZone=(0,i.WQX)(g.SKi);_platform=(0,i.WQX)(m.O);_renderer=(0,i.WQX)(g._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new p.B;_scrolledCount=0;scrollContainers=new Map;register(mt){this.scrollContainers.has(mt)||this.scrollContainers.set(mt,mt.elementScrolled().subscribe(()=>this._scrolled.next(mt)))}deregister(mt){const It=this.scrollContainers.get(mt);It&&(It.unsubscribe(),this.scrollContainers.delete(mt))}scrolled(mt=20){return this._platform.isBrowser?new o.c(It=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const wn=mt>0?this._scrolled.pipe((0,L.Z)(mt)).subscribe(It):this._scrolled.subscribe(It);return this._scrolledCount++,()=>{wn.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,D.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((mt,It)=>this.deregister(It)),this._scrolled.complete()}ancestorScrolled(mt,It){const wn=this.getAncestorScrollContainers(mt);return this.scrolled(It).pipe((0,t.p)(In=>!In||wn.indexOf(In)>-1))}getAncestorScrollContainers(mt){const It=[];return this.scrollContainers.forEach((wn,In)=>{this._scrollableContainsElement(In,mt)&&It.push(In)}),It}_scrollableContainsElement(mt,It){let wn=(0,s.i8)(It),In=mt.getElementRef().nativeElement;do{if(wn==In)return!0}while(wn=wn.parentElement);return!1}static \u0275fac=function(It){return new(It||At)};static \u0275prov=i.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Ne=(()=>{class At{elementRef=(0,i.WQX)(g.aKT);scrollDispatcher=(0,i.WQX)(le);ngZone=(0,i.WQX)(g.SKi);dir=(0,i.WQX)(u.dS,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new p.B;_renderer=(0,i.WQX)(g.sFG);_cleanupScroll;_elementScrolled=new p.B;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",mt=>this._elementScrolled.next(mt))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(mt){const It=this.elementRef.nativeElement,wn=this.dir&&"rtl"==this.dir.value;null==mt.left&&(mt.left=wn?mt.end:mt.start),null==mt.right&&(mt.right=wn?mt.start:mt.end),null!=mt.bottom&&(mt.top=It.scrollHeight-It.clientHeight-mt.bottom),wn&&(0,_.BD)()!=_.r5.NORMAL?(null!=mt.left&&(mt.right=It.scrollWidth-It.clientWidth-mt.left),(0,_.BD)()==_.r5.INVERTED?mt.left=mt.right:(0,_.BD)()==_.r5.NEGATED&&(mt.left=mt.right?-mt.right:mt.right)):null!=mt.right&&(mt.left=It.scrollWidth-It.clientWidth-mt.right),this._applyScrollToOptions(mt)}_applyScrollToOptions(mt){const It=this.elementRef.nativeElement;(0,_.CZ)()?It.scrollTo(mt):(null!=mt.top&&(It.scrollTop=mt.top),null!=mt.left&&(It.scrollLeft=mt.left))}measureScrollOffset(mt){const It="left",In=this.elementRef.nativeElement;if("top"==mt)return In.scrollTop;if("bottom"==mt)return In.scrollHeight-In.clientHeight-In.scrollTop;const ei=this.dir&&"rtl"==this.dir.value;return"start"==mt?mt=ei?"right":It:"end"==mt&&(mt=ei?It:"right"),ei&&(0,_.BD)()==_.r5.INVERTED?mt==It?In.scrollWidth-In.clientWidth-In.scrollLeft:In.scrollLeft:ei&&(0,_.BD)()==_.r5.NEGATED?mt==It?In.scrollLeft+In.scrollWidth-In.clientWidth:-In.scrollLeft:mt==It?In.scrollLeft:In.scrollWidth-In.clientWidth-In.scrollLeft}static \u0275fac=function(It){return new(It||At)};static \u0275dir=g.FsC({type:At,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return At})(),Je=(()=>{class At{_platform=(0,i.WQX)(m.O);_listeners;_viewportSize;_change=new p.B;_document=(0,i.WQX)(i.qQL);constructor(){const mt=(0,i.WQX)(g.SKi),It=(0,i.WQX)(g._9s).createRenderer(null,null);mt.runOutsideAngular(()=>{if(this._platform.isBrowser){const wn=In=>this._change.next(In);this._listeners=[It.listen("window","resize",wn),It.listen("window","orientationchange",wn)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(mt=>mt()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const mt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),mt}getViewportRect(){const mt=this.getViewportScrollPosition(),{width:It,height:wn}=this.getViewportSize();return{top:mt.top,left:mt.left,bottom:mt.top+wn,right:mt.left+It,height:wn,width:It}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const mt=this._document,It=this._getWindow(),wn=mt.documentElement,In=wn.getBoundingClientRect();return{top:-In.top||mt.body.scrollTop||It.scrollY||wn.scrollTop||0,left:-In.left||mt.body.scrollLeft||It.scrollX||wn.scrollLeft||0}}change(mt=20){return mt>0?this._change.pipe((0,L.Z)(mt)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const mt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:mt.innerWidth,height:mt.innerHeight}:{width:0,height:0}}static \u0275fac=function(It){return new(It||At)};static \u0275prov=i.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Lt=(()=>{class At{static \u0275fac=function(It){return new(It||At)};static \u0275mod=g.$C({type:At});static \u0275inj=i.G2t({})}return At})(),St=(()=>{class At{static \u0275fac=function(It){return new(It||At)};static \u0275mod=g.$C({type:At});static \u0275inj=i.G2t({imports:[T.jI,Lt,T.jI,Lt]})}return At})()},47860(ke,q,l){"use strict";l.d(q,{BD:()=>o,CZ:()=>D,r5:()=>i});var i=function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e}(i||{});let g,p;function D(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)p=!0;else{const e=Element.prototype.scrollTo;p=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return p}function o(){if("object"!=typeof document||!document)return i.NORMAL;if(null==g){const e=document.createElement("div"),A=e.style;e.dir="rtl",A.width="1px",A.overflow="auto",A.visibility="hidden",A.pointerEvents="none",A.position="absolute";const h=document.createElement("div"),d=h.style;d.width="2px",d.height="1px",e.appendChild(h),document.body.appendChild(e),g=i.NORMAL,0===e.scrollLeft&&(e.scrollLeft=1,g=0===e.scrollLeft?i.NEGATED:i.INVERTED),e.remove()}return g}},83869(ke,q,l){"use strict";l.d(q,{C:()=>g});var i=l(21413);class g{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new i.B;constructor(o=!1,e,A=!0,h){this._multiple=o,this._emitChanges=A,this.compareWith=h,e&&e.length&&(o?e.forEach(d=>this._markSelected(d)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...o){this._verifyValueAssignment(o),o.forEach(A=>this._markSelected(A));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(A=>this._unmarkSelected(A));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);const e=this.selected,A=new Set(o.map(d=>this._getConcreteValue(d)));o.forEach(d=>this._markSelected(d)),e.filter(d=>!A.has(this._getConcreteValue(d,A))).forEach(d=>this._unmarkSelected(d));const h=this._hasQueuedChanges();return this._emitChangeEvent(),h}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();const e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){return this._selection.has(this._getConcreteValue(o))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}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(o){o=this._getConcreteValue(o),this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){o=this._getConcreteValue(o),this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(o,e){if(this.compareWith){e=e??this._selection;for(let A of e)if(this.compareWith(o,A))return A;return o}return o}}},44522(ke,q,l){"use strict";let i;function p(e){if(function g(){if(null==i){const e=typeof document<"u"?document.head:null;i=!(!e||!e.createShadowRoot&&!e.attachShadow)}return i}()){const A=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&A instanceof ShadowRoot)return A}return null}function D(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const A=e.shadowRoot.activeElement;if(A===e)break;e=A}return e}function o(e){return e.composedPath?e.composedPath()[0]:e.target}l.d(q,{Fb:()=>o,KT:()=>p,vc:()=>D})},97768(ke,q,l){"use strict";l.d(q,{FK:()=>L,Up:()=>pe,VI:()=>se,nb:()=>$,oX:()=>Q,uY:()=>t,v5:()=>Ee,x8:()=>ye});var i=l(2615),g=l(73664),p=l(17705),D=l(59295),o=l(89417),e=l(21413),A=l(7673),h=l(99172),d=l(56977),w=l(61577),f=l(89726),F=l(64123),M=l(67336),K=l(10438),j=l(44522),Z=l(28203);const ee=["*"];function V(s,m){1&s&&g.SdG(0)}let Q=(()=>{class s{_elementRef=(0,i.WQX)(g.aKT);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return s})(),$=(()=>{class s{template=(0,i.WQX)(g.C4Q);constructor(){}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["","cdkStepLabel",""]]})}return s})();const ye=new i.nKC("STEPPER_GLOBAL_OPTIONS");let se=(()=>{class s{_stepperOptions;_stepper=(0,i.WQX)(pe);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(u){this._interacted.set(u)}_interacted=(0,i.vPA)(!1);interactedStream=new g.bkB;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(u){this._state.set(u)}_state=(0,i.vPA)(void 0);get editable(){return this._editable()}set editable(u){this._editable.set(u)}_editable=(0,i.vPA)(!0);optional=!1;get completed(){const u=this._completedOverride(),_=this._interacted();return u??(_&&(!this.stepControl||this.stepControl.valid))}set completed(u){this._completedOverride.set(u)}_completedOverride=(0,i.vPA)(null);index=(0,i.vPA)(-1);isSelected=(0,D.EW)(()=>this._stepper.selectedIndex===this.index());indicatorType=(0,D.EW)(()=>{const u=this.isSelected(),_=this.completed,T=this._state()??"number",P=this._editable();return this._showError()&&this.hasError&&!u?"error":this._displayDefaultIndicatorType?!_||u?"number":P?"edit":"done":_&&!u?"done":_&&u?T:P&&u?"edit":T});isNavigable=(0,D.EW)(()=>{const u=this.isSelected();return this.completed||u||!this._stepper.linear});get hasError(){return this._customError()??this._getDefaultError()}set hasError(u){this._customError.set(u)}_customError=(0,i.vPA)(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){const u=(0,i.WQX)(ye,{optional:!0});this._stepperOptions=u||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),null!=this._completedOverride()&&this._completedOverride.set(!1),null!=this._customError()&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(u=>u.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError()}static \u0275fac=function(_){return new(_||s)};static \u0275cmp=g.VBU({type:s,selectors:[["cdk-step"]],contentQueries:function(_,T,P){if(1&_&&(g.wni(P,$,5),g.wni(P,o.ZU,5)),2&_){let C;g.mGM(C=g.lsd())&&(T.stepLabel=C.first),g.mGM(C=g.lsd())&&(T._childForms=C)}},viewQuery:function(_,T){if(1&_&&g.GBs(g.C4Q,7),2&_){let P;g.mGM(P=g.lsd())&&(T.content=P.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",p.L39],optional:[2,"optional","optional",p.L39],completed:[2,"completed","completed",p.L39],hasError:[2,"hasError","hasError",p.L39]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[g.OA$],ngContentSelectors:ee,decls:1,vars:0,template:function(_,T){1&_&&(g.NAR(),g.PeT(0,V,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return s})(),pe=(()=>{class s{_dir=(0,i.WQX)(w.dS,{optional:!0});_changeDetectorRef=(0,i.WQX)(p.gRc);_elementRef=(0,i.WQX)(g.aKT);_destroyed=new e.B;_keyManager;_steps;steps=new g.rOR;_stepHeader;_sortedHeaders=new g.rOR;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(u){this._steps?(this._isValidIndex(u),this.selectedIndex!==u&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(u)&&(u>=this.selectedIndex||this.steps.toArray()[u].editable)&&this._updateSelectedItemIndex(u))):this._selectedIndex.set(u)}_selectedIndex=(0,i.vPA)(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(u){this.selectedIndex=u&&this.steps?this.steps.toArray().indexOf(u):-1}selectionChange=new g.bkB;selectedIndexChange=new g.bkB;_groupId=(0,i.WQX)(f.g).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(u){this._orientation=u,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===u)}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe((0,h.Z)(this._steps),(0,d.Q)(this._destroyed)).subscribe(u=>{this.steps.reset(u.filter(_=>_._stepper===this)),this.steps.forEach((_,T)=>_.index.set(T)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe((0,h.Z)(this._stepHeader),(0,d.Q)(this._destroyed)).subscribe(u=>{this._sortedHeaders.reset(u.toArray().sort((_,T)=>_._elementRef.nativeElement.compareDocumentPosition(T._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new F.B(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:(0,A.of)()).pipe((0,h.Z)(this._layoutDirection()),(0,d.Q)(this._destroyed)).subscribe(u=>this._keyManager?.withHorizontalOrientation(u)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){const u=this.steps.toArray().slice(0,this._selectedIndex());for(const _ of u)_._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),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(u=>u.reset()),this._stateChanged()}_getStepLabelId(u){return`${this._groupId}-label-${u}`}_getStepContentId(u){return`${this._groupId}-content-${u}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(u){const _=u-this._selectedIndex();return _<0?"rtl"===this._layoutDirection()?"next":"previous":_>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(u){const _=this.steps.toArray(),T=this._selectedIndex();this.selectionChange.emit({selectedIndex:u,previouslySelectedIndex:T,selectedStep:_[u],previouslySelectedStep:_[T]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(u):this._keyManager.updateActiveItem(u)),this._selectedIndex.set(u),this.selectedIndexChange.emit(u),this._stateChanged()}_onKeydown(u){const _=(0,M.rp)(u),T=u.keyCode,P=this._keyManager;null==P?.activeItemIndex||_||T!==K.t6&&T!==K.Fm?P?.setFocusOrigin("keyboard").onKeydown(u):(this.selectedIndex=P.activeItemIndex,u.preventDefault())}_anyControlsInvalidOrPending(u){return!!(this.linear&&u>=0)&&this.steps.toArray().slice(0,u).some(_=>{const T=_.stepControl;return(T?T.invalid||T.pending||!_.interacted:!_.completed)&&!_.optional&&!_._completedOverride()})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const u=this._elementRef.nativeElement,_=(0,j.vc)();return u===_||u.contains(_)}_isValidIndex(u){return u>-1&&(!this.steps||u{class s{_stepper=(0,i.WQX)(pe);type="submit";constructor(){}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(_,T){1&_&&g.bIt("click",function(){return T._stepper.next()}),2&_&&g.Avn("type",T.type)},inputs:{type:"type"}})}return s})(),L=(()=>{class s{_stepper=(0,i.WQX)(pe);type="button";constructor(){}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(_,T){1&_&&g.bIt("click",function(){return T._stepper.previous()}),2&_&&g.Avn("type",T.type)},inputs:{type:"type"}})}return s})(),t=(()=>{class s{static \u0275fac=function(_){return new(_||s)};static \u0275mod=g.$C({type:s});static \u0275inj=i.G2t({imports:[Z.jI]})}return s})()},88968(ke,q,l){"use strict";l.d(q,{l:()=>o});var i=l(2615),g=l(17705),p=l(73664);const D=new WeakMap;let o=(()=>{class e{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(h){const d=this._appRef=this._appRef||this._injector.get(p.o8S);let w=D.get(d);w||(w={loaders:new Set,refs:[]},D.set(d,w),d.onDestroy(()=>{D.get(d)?.refs.forEach(f=>f.destroy()),D.delete(d)})),w.loaders.has(h)||(w.loaders.add(h),w.refs.push((0,g.a0P)(h,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(d){return new(d||e)};static \u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},4125(ke,q,l){"use strict";l.d(q,{Z2:()=>F});var i=l(2615),g=l(73664),p=l(21413),D=l(18359),o=l(74402),e=l(7673),A=l(96697),h=l(59096),d=l(8045);class w{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=j=>!1;_trackByFn=j=>j;_items=[];_typeahead;_typeaheadSubscription=D.yU.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||0===this._items.length)return;let j=0;for(let ee=0;ee{this._items=ee.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):(0,o.A)(j)?j.subscribe(ee=>{this._items=ee,this._typeahead?.setItems(ee),this._updateActiveItemIndex(ee),this._initializeFocus()}):(this._items=j,this._initializeFocus()),"boolean"==typeof Z.shouldActivationFollowFocus&&(this._shouldActivationFollowFocus=Z.shouldActivationFollowFocus),Z.horizontalOrientation&&(this._horizontalOrientation=Z.horizontalOrientation),Z.skipPredicate&&(this._skipPredicateFn=Z.skipPredicate),Z.trackBy&&(this._trackByFn=Z.trackBy),typeof Z.typeAheadDebounceInterval<"u"&&this._setTypeAhead(Z.typeAheadDebounceInterval)}change=new p.B;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(j){switch(j.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":"rtl"===this._horizontalOrientation?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":"rtl"===this._horizontalOrientation?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if("*"===j.key){this._expandAllItemsAtCurrentItemLevel();break}return void this._typeahead?.handleKey(j)}this._typeahead?.reset(),j.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(j,Z={}){Z.emitChangeEvent??=!0;let ee="number"==typeof j?j:this._items.findIndex($=>this._trackByFn($)===this._trackByFn(j));if(ee<0||ee>=this._items.length)return;const V=this._items[ee];if(null!==this._activeItem&&this._trackByFn(V)===this._trackByFn(this._activeItem))return;const Q=this._activeItem;this._activeItem=V??null,this._activeItemIndex=ee,this._typeahead?.setCurrentSelectedItemIndex(ee),this._activeItem?.focus(),Q?.unfocus(),Z.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(j){const Z=this._activeItem;if(!Z)return;const ee=j.findIndex(V=>this._trackByFn(V)===this._trackByFn(Z));ee>-1&&ee!==this._activeItemIndex&&(this._activeItemIndex=ee,this._typeahead?.setCurrentSelectedItemIndex(ee))}_setTypeAhead(j){this._typeahead=new h.i(this._items,{debounceInterval:"number"==typeof j?j:void 0,skipPredicate:Z=>this._skipPredicateFn(Z)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(Z=>{this.focusItem(Z)})}_findNextAvailableItemIndex(j){for(let Z=j+1;Z=0;Z--)if(!this._skipPredicateFn(this._items[Z]))return Z;return j}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{const j=this._activeItem.getParent();if(!j||this._skipPredicateFn(j))return;this.focusItem(j)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?(0,d.x)(this._activeItem.getChildren()).pipe((0,A.s)(1)).subscribe(j=>{const Z=j.find(ee=>!this._skipPredicateFn(ee));Z&&this.focusItem(Z)}):this._activeItem.expand())}_isCurrentItemExpanded(){return!!this._activeItem&&("boolean"==typeof this._activeItem.isExpanded?this._activeItem.isExpanded:this._activeItem.isExpanded())}_isItemDisabled(j){return"boolean"==typeof j.isDisabled?j.isDisabled:j.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;const j=this._activeItem.getParent();let Z;Z=j?(0,d.x)(j.getChildren()):(0,e.of)(this._items.filter(ee=>null===ee.getParent())),Z.pipe((0,A.s)(1)).subscribe(ee=>{for(const V of ee)V.expand()})}_activateCurrentItem(){this._activeItem?.activate()}}const F=new i.nKC("tree-key-manager",{providedIn:"root",factory:function f(){return(K,j)=>new w(K,j)}})},72279(ke,q,l){"use strict";l.d(q,{kZ:()=>u,s3:()=>Oe,NL:()=>U,Dc:()=>ve,xn:()=>fe,Sz:()=>P,a$:()=>_,aI:()=>ce,Hy:()=>Re,XO:()=>m});var i=l(83869),g=l(74402),p=l(21413),D=l(84412),o=l(7673),e=l(84572),A=l(983),h=l(28793),d=l(96697),w=l(5964),f=l(56977),F=l(99172),M=l(88141),K=l(25558),j=l(96354),Z=l(46649),ee=l(39974);function V(oe,Se){return(0,ee.N)((0,Z.S)(oe,Se,arguments.length>=2,!1,!0))}var Q=l(70274),$=l(23294),ie=l(73664),_e=l(2615),ye=l(17705),se=l(4125),pe=l(61577),Ee=l(14117),L=l(8045);class t{dataNodes;expansionModel=new i.C(!0);trackBy;getLevel;isExpandable;getChildren;toggle(Se){this.expansionModel.toggle(this._trackByValue(Se))}expand(Se){this.expansionModel.select(this._trackByValue(Se))}collapse(Se){this.expansionModel.deselect(this._trackByValue(Se))}isExpanded(Se){return this.expansionModel.isSelected(this._trackByValue(Se))}toggleDescendants(Se){this.expansionModel.isSelected(this._trackByValue(Se))?this.collapseDescendants(Se):this.expandDescendants(Se)}collapseAll(){this.expansionModel.clear()}expandDescendants(Se){let be=[Se];be.push(...this.getDescendants(Se)),this.expansionModel.select(...be.map(nt=>this._trackByValue(nt)))}collapseDescendants(Se){let be=[Se];be.push(...this.getDescendants(Se)),this.expansionModel.deselect(...be.map(nt=>this._trackByValue(nt)))}_trackByValue(Se){return this.trackBy?this.trackBy(Se):Se}}class m extends t{getChildren;options;constructor(Se,be){super(),this.getChildren=Se,this.options=be,this.options&&(this.trackBy=this.options.trackBy),this.options?.isExpandable&&(this.isExpandable=this.options.isExpandable)}expandAll(){this.expansionModel.clear();const Se=this.dataNodes.reduce((be,nt)=>[...be,...this.getDescendants(nt),nt],[]);this.expansionModel.select(...Se.map(be=>this._trackByValue(be)))}getDescendants(Se){const be=[];return this._getDescendants(be,Se),be.splice(1)}_getDescendants(Se,be){Se.push(be);const nt=this.getChildren(be);Array.isArray(nt)?nt.forEach($e=>this._getDescendants(Se,$e)):(0,g.A)(nt)&&nt.pipe((0,d.s)(1),(0,w.p)(Boolean)).subscribe($e=>{for(const dt of $e)this._getDescendants(Se,dt)})}}const u=new _e.nKC("CDK_TREE_NODE_OUTLET_NODE");let _=(()=>{class oe{viewContainer=(0,_e.WQX)(ie.c1b);_node=(0,_e.WQX)(u,{optional:!0});constructor(){}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodeOutlet",""]]})}return oe})();class T{$implicit;level;index;count;constructor(Se){this.$implicit=Se}}let P=(()=>{class oe{template=(0,_e.WQX)(ie.C4Q);when;constructor(){}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return oe})();function Y(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}let U=(()=>{class oe{_differs=(0,_e.WQX)(ye._q3);_changeDetectorRef=(0,_e.WQX)(ye.gRc);_elementRef=(0,_e.WQX)(ie.aKT);_dir=(0,_e.WQX)(pe.dS);_onDestroy=new p.B;_dataDiffer;_defaultNodeDef;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(be){this._dataSource!==be&&this._switchDataSource(be)}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new D.t({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new D.t([]);_nodeType=new D.t(null);_nodes=new D.t(new Map);_keyManagerNodes=new D.t([]);_keyManagerFactory=(0,_e.WQX)(se.Z2);_keyManager;_viewInit=!1;constructor(){}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this._nodes.complete(),this._keyManagerNodes.complete(),this._nodeType.complete(),this._flattenedNodes.complete(),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),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){const be=this._nodeDefs.filter(nt=>!nt.when);this._defaultNodeDef=be[0]}_setNodeTypeIfUnset(be){null===this._nodeType.value&&this._nodeType.next(be)}_switchDataSource(be){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),be||this._nodeOutlet.viewContainer.clear(),this._dataSource=be,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new i.C(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let be;(0,Ee.y)(this._dataSource)?be=this._dataSource.connect(this):(0,g.A)(this._dataSource)?be=this._dataSource:Array.isArray(this._dataSource)&&(be=(0,o.of)(this._dataSource)),be&&(this._dataSubscription=this._getRenderData(be).pipe((0,f.Q)(this._onDestroy)).subscribe(nt=>{this._renderDataChanges(nt)}))}_getRenderData(be){const nt=this._getExpansionModel();return(0,e.z)([be,this._nodeType,nt.changed.pipe((0,F.Z)(null),(0,M.M)($e=>{this._emitExpansionChanges($e)}))]).pipe((0,K.n)(([$e,dt])=>null===dt?(0,o.of)({renderNodes:$e,flattenedNodes:null,nodeType:dt}):this._computeRenderingData($e,dt).pipe((0,j.T)(yt=>({...yt,nodeType:dt})))))}_renderDataChanges(be){null!==be.nodeType?(this._updateCachedData(be.flattenedNodes),this.renderNodeChanges(be.renderNodes),this._updateKeyManagerItems(be.flattenedNodes)):this.renderNodeChanges(be.renderNodes)}_emitExpansionChanges(be){if(!be)return;const nt=this._nodes.value;for(const $e of be.added)nt.get($e)?._emitExpansionState(!0);for(const $e of be.removed)nt.get($e)?._emitExpansionState(!1)}_initializeKeyManager(){const be=(0,e.z)([this._keyManagerNodes,this._nodes]).pipe((0,j.T)(([$e,dt])=>$e.reduce((yt,Et)=>{const rt=dt.get(this._getExpansionKey(Et));return rt&&yt.push(rt),yt},[])));this._keyManager=this._keyManagerFactory(be,{trackBy:$e=>this._getExpansionKey($e.data),skipPredicate:$e=>!!$e.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value})}_initializeDataDiffer(){const be=this.trackBy??((nt,$e)=>this._getExpansionKey($e));this._dataDiffer=this._differs.find([]).create(be)}_checkTreeControlUsage(){}renderNodeChanges(be,nt=this._dataDiffer,$e=this._nodeOutlet.viewContainer,dt){const yt=nt.diff(be);!yt&&!this._viewInit||(yt?.forEachOperation((Et,rt,Mn)=>{if(null==Et.previousIndex)this.insertNode(be[Mn],Mn,$e,dt);else if(null==Mn)$e.remove(rt);else{const qt=$e.get(rt);$e.move(qt,Mn)}}),yt?.forEachIdentityChange(Et=>{const rt=Et.item;null!=Et.currentIndex&&($e.get(Et.currentIndex).context.$implicit=rt)}),dt?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(be,nt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(dt=>dt.when&&dt.when(nt,be))||this._defaultNodeDef}insertNode(be,nt,$e,dt){const yt=this._getLevelAccessor(),Et=this._getNodeDef(be,nt),rt=this._getExpansionKey(be),Mn=new T(be);Mn.index=nt,dt??=this._parents.get(rt)??void 0,Mn.level=yt?yt(be):void 0!==dt&&this._levels.has(this._getExpansionKey(dt))?this._levels.get(this._getExpansionKey(dt))+1:0,this._levels.set(rt,Mn.level),($e||this._nodeOutlet.viewContainer).createEmbeddedView(Et.template,Mn,nt),fe.mostRecentTreeNode&&(fe.mostRecentTreeNode.data=be)}isExpanded(be){return!(!this.treeControl?.isExpanded(be)&&!this._expansionModel?.isSelected(this._getExpansionKey(be)))}toggle(be){this.treeControl?this.treeControl.toggle(be):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(be))}expand(be){this.treeControl?this.treeControl.expand(be):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(be))}collapse(be){this.treeControl?this.treeControl.collapse(be):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(be))}toggleDescendants(be){this.treeControl?this.treeControl.toggleDescendants(be):this._expansionModel&&(this.isExpanded(be)?this.collapseDescendants(be):this.expandDescendants(be))}expandDescendants(be){if(this.treeControl)this.treeControl.expandDescendants(be);else if(this._expansionModel){const nt=this._expansionModel;nt.select(this._getExpansionKey(be)),this._getDescendants(be).pipe((0,d.s)(1),(0,f.Q)(this._onDestroy)).subscribe($e=>{nt.select(...$e.map(dt=>this._getExpansionKey(dt)))})}}collapseDescendants(be){if(this.treeControl)this.treeControl.collapseDescendants(be);else if(this._expansionModel){const nt=this._expansionModel;nt.deselect(this._getExpansionKey(be)),this._getDescendants(be).pipe((0,d.s)(1),(0,f.Q)(this._onDestroy)).subscribe($e=>{nt.deselect(...$e.map(dt=>this._getExpansionKey(dt)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(be=>this._expansionModel?.select(...be))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(be=>this._expansionModel?.deselect(...be))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(be){const nt=this._getLevelAccessor(),$e=this._expansionModel??this.treeControl?.expansionModel;if(!$e)return(0,o.of)([]);const dt=this._getExpansionKey(be),yt=$e.changed.pipe((0,K.n)(rt=>rt.added.includes(dt)?(0,o.of)(!0):rt.removed.includes(dt)?(0,o.of)(!1):A.w),(0,F.Z)(this.isExpanded(be)));if(nt)return(0,e.z)([yt,this._flattenedNodes]).pipe((0,j.T)(([rt,Mn])=>rt?this._findChildrenByLevel(nt,Mn,be,1):[]));const Et=this._getChildrenAccessor();if(Et)return(0,L.x)(Et(be)??[]);throw Y()}_findChildrenByLevel(be,nt,$e,dt){const yt=this._getExpansionKey($e),Et=nt.findIndex(S=>this._getExpansionKey(S)===yt),rt=be($e),Mn=rt+dt,qt=[];for(let S=Et+1;Sthis._getExpansionKey(dt)===$e)+1}_getNodeParent(be){const nt=this._parents.get(this._getExpansionKey(be.data));return nt&&this._nodes.value.get(this._getExpansionKey(nt))}_getNodeChildren(be){return this._getDirectChildren(be.data).pipe((0,j.T)(nt=>nt.reduce(($e,dt)=>{const yt=this._nodes.value.get(this._getExpansionKey(dt));return yt&&$e.push(yt),$e},[])))}_sendKeydownToKeyManager(be){if(be.target===this._elementRef.nativeElement)this._keyManager.onKeydown(be);else{const nt=this._nodes.getValue();for(const[,$e]of nt)if(be.target===$e._elementRef.nativeElement){this._keyManager.onKeydown(be);break}}}_getDescendants(be){if(this.treeControl)return(0,o.of)(this.treeControl.getDescendants(be));if(this.levelAccessor){const nt=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,be,1/0);return(0,o.of)(nt)}if(this.childrenAccessor)return this._getAllChildrenRecursively(be).pipe(V((nt,$e)=>(nt.push(...$e),nt),[]));throw Y()}_getAllChildrenRecursively(be){return this.childrenAccessor?(0,L.x)(this.childrenAccessor(be)).pipe((0,d.s)(1),(0,K.n)(nt=>{for(const $e of nt)this._parents.set(this._getExpansionKey($e),be);return(0,o.of)(...nt).pipe((0,Q.H)($e=>(0,h.x)((0,o.of)([$e]),this._getAllChildrenRecursively($e))))})):(0,o.of)([])}_getExpansionKey(be){return this.expansionKey?.(be)??be}_getAriaSet(be){const nt=this._getExpansionKey(be),$e=this._parents.get(nt),dt=$e?this._getExpansionKey($e):null;return this._ariaSets.get(dt)??[be]}_findParentForNode(be,nt,$e){if(!$e.length)return null;const dt=this._levels.get(this._getExpansionKey(be))??0;for(let yt=nt-1;yt>=0;yt--){const Et=$e[yt];if((this._levels.get(this._getExpansionKey(Et))??0){const yt=this._getExpansionKey(dt);this._parents.has(yt)||this._parents.set(yt,null),this._levels.set(yt,nt);const Et=(0,L.x)($e(dt));return(0,h.x)((0,o.of)([dt]),Et.pipe((0,d.s)(1),(0,M.M)(rt=>{this._ariaSets.set(yt,[...rt??[]]);for(const Mn of rt??[]){const qt=this._getExpansionKey(Mn);this._parents.set(qt,dt),this._levels.set(qt,nt+1)}}),(0,K.n)(rt=>rt?this._flattenNestedNodesWithExpansion(rt,nt+1).pipe((0,j.T)(Mn=>this.isExpanded(dt)?Mn:[])):(0,o.of)([]))))}),V((dt,yt)=>(dt.push(...yt),dt),[])):(0,o.of)([...be])}_computeRenderingData(be,nt){if(this.childrenAccessor&&"flat"===nt)return this._clearPreviousCache(),this._ariaSets.set(null,[...be]),this._flattenNestedNodesWithExpansion(be).pipe((0,j.T)($e=>({renderNodes:$e,flattenedNodes:$e})));if(this.levelAccessor&&"nested"===nt){const $e=this.levelAccessor;return(0,o.of)(be.filter(dt=>0===$e(dt))).pipe((0,j.T)(dt=>({renderNodes:dt,flattenedNodes:be})),(0,M.M)(({flattenedNodes:dt})=>{this._calculateParents(dt)}))}return"flat"===nt?(0,o.of)({renderNodes:be,flattenedNodes:be}).pipe((0,M.M)(({flattenedNodes:$e})=>{this._calculateParents($e)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...be]),this._flattenNestedNodesWithExpansion(be).pipe((0,j.T)($e=>({renderNodes:be,flattenedNodes:$e}))))}_updateCachedData(be){this._flattenedNodes.next(be)}_updateKeyManagerItems(be){this._keyManagerNodes.next(be)}_calculateParents(be){const nt=this._getLevelAccessor();if(nt){this._clearPreviousCache();for(let $e=0;$e{nt.push(this._getExpansionKey(dt.data)),$e.push(this._getDescendants(dt.data))}),$e.length>0?(0,e.z)($e).pipe((0,d.s)(1),(0,f.Q)(this._onDestroy)).subscribe(dt=>{dt.forEach(yt=>yt.forEach(Et=>nt.push(this._getExpansionKey(Et)))),be(nt)}):be(nt)}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear()}static \u0275fac=function(nt){return new(nt||oe)};static \u0275cmp=ie.VBU({type:oe,selectors:[["cdk-tree"]],contentQueries:function(nt,$e,dt){if(1&nt&&ie.wni(dt,P,5),2&nt){let yt;ie.mGM(yt=ie.lsd())&&($e._nodeDefs=yt)}},viewQuery:function(nt,$e){if(1&nt&&ie.GBs(_,7),2&nt){let dt;ie.mGM(dt=ie.lsd())&&($e._nodeOutlet=dt.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(nt,$e){1&nt&&ie.bIt("keydown",function(yt){return $e._sendKeydownToKeyManager(yt)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(nt,$e){1&nt&&ie.eu8(0,0)},dependencies:[_],encapsulation:2})}return oe})(),fe=(()=>{class oe{_elementRef=(0,_e.WQX)(ie.aKT);_tree=(0,_e.WQX)(U);_tabindex=-1;_type="flat";get role(){return"treeitem"}set role(be){}get isExpandable(){return this._isExpandable()}set isExpandable(be){this._inputIsExpandable=be,(!this.data||this._isExpandable)&&this._inputIsExpandable&&(this._inputIsExpanded?this.expand():!1===this._inputIsExpanded&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(be){this._inputIsExpanded=be,be?this.expand():this.collapse()}isDisabled;typeaheadLabel;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new ie.bkB;expandedChange=new ie.bkB;static mostRecentTreeNode=null;_destroyed=new p.B;_dataChanges=new p.B;_inputIsExpandable=!1;_inputIsExpanded=void 0;_shouldFocus=!0;_parentNodeAriaLevel;get data(){return this._data}set data(be){be!==this._data&&(this._data=be,this._dataChanges.next())}_data;get isLeafNode(){return void 0!==this._tree.treeControl?.isExpandable&&!this._tree.treeControl.isExpandable(this._data)||void 0===this._tree.treeControl?.isExpandable&&0===this._tree.treeControl?.getDescendants(this._data).length}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=(0,_e.WQX)(ye.gRc);constructor(){oe.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=function re(oe){let Se=oe.parentElement;for(;Se&&!he(Se);)Se=Se.parentElement;return Se?Se.classList.contains("cdk-nested-tree-node")?(0,ye.Udg)(Se.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe((0,j.T)(()=>this.isExpanded),(0,$.F)(),(0,f.Q)(this._destroyed)).pipe((0,f.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this)}ngOnDestroy(){oe.mostRecentTreeNode===this&&(oe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(be){this.expandedChange.emit(be)}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(nt,$e){1&nt&&ie.bIt("click",function(){return $e._setActiveItem()})("focus",function(){return $e._focusItem()}),2&nt&&(ie.Avn("tabIndex",$e._tabindex),ie.BMQ("aria-expanded",$e._getAriaExpanded())("aria-level",$e.level+1)("aria-posinset",$e._getPositionInSet())("aria-setsize",$e._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",ye.L39],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",ye.L39],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return oe})();function he(oe){const Se=oe.classList;return!(!Se?.contains("cdk-nested-tree-node")&&!Se?.contains("cdk-tree"))}let Oe=(()=>{class oe extends fe{_type="nested";_differs=(0,_e.WQX)(ye._q3);_dataDiffer;_children;nodeOutlet;constructor(){super()}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree._getDirectChildren(this.data).pipe((0,f.Q)(this._destroyed)).subscribe(be=>this.updateChildrenNodes(be)),this.nodeOutlet.changes.pipe((0,f.Q)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(be){const nt=this._getNodeOutlet();be&&(this._children=be),nt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,nt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const be=this._getNodeOutlet();be&&(be.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const be=this.nodeOutlet;return be&&be.find(nt=>!nt._node||nt._node===this)}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(nt,$e,dt){if(1&nt&&ie.wni(dt,_,5),2&nt){let yt;ie.mGM(yt=ie.lsd())&&($e.nodeOutlet=yt)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],features:[ie.Jv_([{provide:fe,useExisting:oe},{provide:u,useExisting:oe}]),ie.Vt3]})}return oe})();const ge=/([A-Za-z%]+)$/;let ce=(()=>{class oe{_treeNode=(0,_e.WQX)(fe);_tree=(0,_e.WQX)(U);_element=(0,_e.WQX)(ie.aKT);_dir=(0,_e.WQX)(pe.dS,{optional:!0});_currentPadding;_destroyed=new p.B;indentUnits="px";get level(){return this._level}set level(be){this._setLevelInput(be)}_level;get indent(){return this._indent}set indent(be){this._setIndentInput(be)}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe((0,f.Q)(this._destroyed)).subscribe(()=>this._setPadding(!0)),this._treeNode._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const be=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,nt=null==this._level?be:this._level;return"number"==typeof nt?`${nt*this._indent}${this.indentUnits}`:null}_setPadding(be=!1){const nt=this._paddingIndent();if(nt!==this._currentPadding||be){const $e=this._element.nativeElement,dt=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",yt="paddingLeft"===dt?"paddingRight":"paddingLeft";$e.style[dt]=nt||"",$e.style[yt]="",this._currentPadding=nt}}_setLevelInput(be){this._level=isNaN(be)?null:be,this._setPadding()}_setIndentInput(be){let nt=be,$e="px";if("string"==typeof be){const dt=be.split(ge);nt=dt[0],$e=dt[1]||$e}this.indentUnits=$e,this._indent=(0,ye.Udg)(nt),this._setPadding()}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",ye.Udg],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return oe})(),Re=(()=>{class oe{_tree=(0,_e.WQX)(U);_treeNode=(0,_e.WQX)(fe);recursive=!1;constructor(){}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(nt,$e){1&nt&&ie.bIt("click",function(yt){return $e._toggle(),yt.stopPropagation()})("keydown.Enter",function(yt){return $e._toggle(),yt.preventDefault()})("keydown.Space",function(yt){return $e._toggle(),yt.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",ye.L39]}})}return oe})(),ve=(()=>{class oe{static \u0275fac=function(nt){return new(nt||oe)};static \u0275mod=ie.$C({type:oe});static \u0275inj=_e.G2t({})}return oe})()},59096(ke,q,l){"use strict";l.d(q,{i:()=>h});var i=l(21413),g=l(70152),p=l(5964),D=l(96354),o=l(88141),e=l(10438);class h{_letterKeyStream=new i.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new i.B;selectedItem=this._selectedItem;constructor(w,f){const F="number"==typeof f?.debounceInterval?f.debounceInterval:200;f?.skipPredicate&&(this._skipPredicateFn=f.skipPredicate),this.setItems(w),this._setupKeyHandler(F)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(w){this._selectedItemIndex=w}setItems(w){this._items=w}handleKey(w){const f=w.keyCode;w.key&&1===w.key.length?this._letterKeyStream.next(w.key.toLocaleUpperCase()):(f>=e.A&&f<=e.Z||f>=e.f2&&f<=e.bn)&&this._letterKeyStream.next(String.fromCharCode(f))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(w){this._letterKeyStream.pipe((0,o.M)(f=>this._pressedLetters.push(f)),(0,g.B)(w),(0,p.p)(()=>this._pressedLetters.length>0),(0,D.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(f=>{for(let F=1;Fg});var i=l(2615);let g=(()=>{class p{_listeners=[];notify(o,e){for(let A of this._listeners)A(o,e)}listen(o){return this._listeners.push(o),()=>{this._listeners=this._listeners.filter(e=>o!==e)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(e){return new(e||p)};static \u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},60177(ke,q,l){"use strict";l.d(q,{AJ:()=>ye,UE:()=>pe,Vy:()=>Ee,Xr:()=>t});var ie=l(2615);const ye="browser";function pe(dn){return dn===ye}function Ee(dn){return"server"===dn}let t=(()=>{class dn{static \u0275prov=(0,ie.jDH)({token:dn,providedIn:"root",factory:()=>new s((0,ie.WQX)(ie.qQL),window)})}return dn})();class s{document;window;offset=()=>[0,0];constructor(Ln,Zn){this.document=Ln,this.window=Zn}setOffset(Ln){this.offset=Array.isArray(Ln)?()=>Ln:Ln}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Ln,Zn){this.window.scrollTo({...Zn,left:Ln[0],top:Ln[1]})}scrollToAnchor(Ln,Zn){const hi=function m(dn,Ln){const Zn=dn.getElementById(Ln)||dn.getElementsByName(Ln)[0];if(Zn)return Zn;if("function"==typeof dn.createTreeWalker&&dn.body&&"function"==typeof dn.body.attachShadow){const hi=dn.createTreeWalker(dn.body,NodeFilter.SHOW_ELEMENT);let Gn=hi.currentNode;for(;Gn;){const Jn=Gn.shadowRoot;if(Jn){const Bi=Jn.getElementById(Ln)||Jn.querySelector(`[name="${Ln}"]`);if(Bi)return Bi}Gn=hi.nextNode()}}return null}(this.document,Ln);hi&&(this.scrollToElement(hi,Zn),hi.focus())}setHistoryScrollRestoration(Ln){try{this.window.history.scrollRestoration=Ln}catch{console.warn((0,ie.OsK)(2400,!1))}}scrollToElement(Ln,Zn){const hi=Ln.getBoundingClientRect(),Gn=hi.left+this.window.pageXOffset,Jn=hi.top+this.window.pageYOffset,Bi=this.offset();this.window.scrollTo({...Zn,left:Gn-Bi[0],top:Jn-Bi[1]})}}},72200(ke,q,l){"use strict";l.d(q,{B3:()=>en,GH:()=>ci,Jj:()=>Kn,MD:()=>Ma,P9:()=>Ci,PV:()=>aa,Pc:()=>sa,QX:()=>un,Sq:()=>kt,T3:()=>Nn,TG:()=>Jn,YU:()=>wn,bT:()=>Ge,e1:()=>oi,fG:()=>Ii,fw:()=>d,lG:()=>_a,ux:()=>$n,vh:()=>Ln});var D=l(17705),o=l(2615),e=l(73664),A=l(59295),h=l(57303);let d=(()=>{class lt extends h.hb{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(ht,Gt){super(),this._platformLocation=ht,null!=Gt&&(this._baseHref=Gt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ht){this._removeListenerFns.push(this._platformLocation.onPopState(ht),this._platformLocation.onHashChange(ht))}getBaseHref(){return this._baseHref}path(ht=!1){const Gt=this._platformLocation.hash??"#";return Gt.length>0?Gt.substring(1):Gt}prepareExternalUrl(ht){const Gt=(0,h.om)(this._baseHref,ht);return Gt.length>0?"#"+Gt:Gt}pushState(ht,Gt,cn,si){const pi=this.prepareExternalUrl(cn+(0,h.Q)(si))||this._platformLocation.pathname;this._platformLocation.pushState(ht,Gt,pi)}replaceState(ht,Gt,cn,si){const pi=this.prepareExternalUrl(cn+(0,h.Q)(si))||this._platformLocation.pathname;this._platformLocation.replaceState(ht,Gt,pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ht=0){this._platformLocation.historyGo?.(ht)}static \u0275fac=function(Gt){return new(Gt||lt)(o.KVO(h.Vw),o.KVO(h.kB,8))};static \u0275prov=o.jDH({token:lt,factory:lt.\u0275fac})}return lt})();var f=function(lt){return lt[lt.Decimal=0]="Decimal",lt[lt.Percent=1]="Percent",lt[lt.Currency=2]="Currency",lt[lt.Scientific=3]="Scientific",lt}(f||{}),M=function(lt){return lt[lt.Format=0]="Format",lt[lt.Standalone=1]="Standalone",lt}(M||{}),K=function(lt){return lt[lt.Narrow=0]="Narrow",lt[lt.Abbreviated=1]="Abbreviated",lt[lt.Wide=2]="Wide",lt[lt.Short=3]="Short",lt}(K||{}),j=function(lt){return lt[lt.Short=0]="Short",lt[lt.Medium=1]="Medium",lt[lt.Long=2]="Long",lt[lt.Full=3]="Full",lt}(j||{});function pe(lt,an){return R((0,e.kBR)(lt)[e.NSC.DateFormat],an)}function Ee(lt,an){return R((0,e.kBR)(lt)[e.NSC.TimeFormat],an)}function L(lt,an){return R((0,e.kBR)(lt)[e.NSC.DateTimeFormat],an)}function t(lt,an){const ht=(0,e.kBR)(lt),Gt=ht[e.NSC.NumberSymbols][an];if(typeof Gt>"u"){if(12===an)return ht[e.NSC.NumberSymbols][0];if(13===an)return ht[e.NSC.NumberSymbols][1]}return Gt}function C(lt){if(!lt[e.NSC.ExtraData])throw new o.buA(2303,!1)}function R(lt,an){for(let ht=an;ht>-1;ht--)if(typeof lt[ht]<"u")return lt[ht];throw new o.buA(2304,!1)}function U(lt){const[an,ht]=lt.split(":");return{hours:+an,minutes:+ht}}const Oe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ge={},ce=/((?:[^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]*)/;function Me(lt,an,ht,Gt){let cn=function _n(lt){if(Fe(lt))return lt;if("number"==typeof lt&&!isNaN(lt))return new Date(lt);if("string"==typeof lt){if(lt=lt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(lt)){const[cn,si=1,pi=1]=lt.split("-").map(Oi=>+Oi);return Se(cn,si-1,pi)}const ht=parseFloat(lt);if(!isNaN(lt-ht))return new Date(ht);let Gt;if(Gt=lt.match(Oe))return function tt(lt){const an=new Date(0);let ht=0,Gt=0;const cn=lt[8]?an.setUTCFullYear:an.setFullYear,si=lt[8]?an.setUTCHours:an.setHours;lt[9]&&(ht=Number(lt[9]+lt[10]),Gt=Number(lt[9]+lt[11])),cn.call(an,Number(lt[1]),Number(lt[2])-1,Number(lt[3]));const pi=Number(lt[4]||0)-ht,Oi=Number(lt[5]||0)-Gt,la=Number(lt[6]||0),mn=Math.floor(1e3*parseFloat("0."+(lt[7]||0)));return si.call(an,pi,Oi,la,mn),an}(Gt)}const an=new Date(lt);if(!Fe(an))throw new o.buA(2311,!1);return an}(lt);(function ve(lt){if(lt.length>256)throw new o.buA(2300,!1)})(an),an=be(ht,an)||an;let Oi,pi=[];for(;an;){if(Oi=ce.exec(an),!Oi){pi.push(an);break}{pi=pi.concat(Oi.slice(1));const li=pi.pop();if(!li)break;an=li}}let la=cn.getTimezoneOffset();Gt&&(la=Vt(Gt,la),cn=function En(lt,an){const cn=lt.getTimezoneOffset();return function hn(lt,an){return(lt=new Date(lt.getTime())).setMinutes(lt.getMinutes()+an),lt}(lt,-1*(Vt(an,cn)-cn))}(cn,Gt));let mn="";return pi.forEach(li=>{const Ce=function tn(lt){if(et[lt])return et[lt];let an;switch(lt){case"G":case"GG":case"GGG":an=rt(3,K.Abbreviated);break;case"GGGG":an=rt(3,K.Wide);break;case"GGGGG":an=rt(3,K.Narrow);break;case"y":an=yt(0,1,0,!1,!0);break;case"yy":an=yt(0,2,0,!0,!0);break;case"yyy":an=yt(0,3,0,!1,!0);break;case"yyyy":an=yt(0,4,0,!1,!0);break;case"Y":an=Le(1);break;case"YY":an=Le(2,!0);break;case"YYY":an=Le(3);break;case"YYYY":an=Le(4);break;case"M":case"L":an=yt(1,1,1);break;case"MM":case"LL":an=yt(1,2,1);break;case"MMM":an=rt(2,K.Abbreviated);break;case"MMMM":an=rt(2,K.Wide);break;case"MMMMM":an=rt(2,K.Narrow);break;case"LLL":an=rt(2,K.Abbreviated,M.Standalone);break;case"LLLL":an=rt(2,K.Wide,M.Standalone);break;case"LLLLL":an=rt(2,K.Narrow,M.Standalone);break;case"w":an=me(1);break;case"ww":an=me(2);break;case"W":an=me(1,!0);break;case"d":an=yt(2,1);break;case"dd":an=yt(2,2);break;case"c":case"cc":an=yt(7,1);break;case"ccc":an=rt(1,K.Abbreviated,M.Standalone);break;case"cccc":an=rt(1,K.Wide,M.Standalone);break;case"ccccc":an=rt(1,K.Narrow,M.Standalone);break;case"cccccc":an=rt(1,K.Short,M.Standalone);break;case"E":case"EE":case"EEE":an=rt(1,K.Abbreviated);break;case"EEEE":an=rt(1,K.Wide);break;case"EEEEE":an=rt(1,K.Narrow);break;case"EEEEEE":an=rt(1,K.Short);break;case"a":case"aa":case"aaa":an=rt(0,K.Abbreviated);break;case"aaaa":an=rt(0,K.Wide);break;case"aaaaa":an=rt(0,K.Narrow);break;case"b":case"bb":case"bbb":an=rt(0,K.Abbreviated,M.Standalone,!0);break;case"bbbb":an=rt(0,K.Wide,M.Standalone,!0);break;case"bbbbb":an=rt(0,K.Narrow,M.Standalone,!0);break;case"B":case"BB":case"BBB":an=rt(0,K.Abbreviated,M.Format,!0);break;case"BBBB":an=rt(0,K.Wide,M.Format,!0);break;case"BBBBB":an=rt(0,K.Narrow,M.Format,!0);break;case"h":an=yt(3,1,-12);break;case"hh":an=yt(3,2,-12);break;case"H":an=yt(3,1);break;case"HH":an=yt(3,2);break;case"m":an=yt(4,1);break;case"mm":an=yt(4,2);break;case"s":an=yt(5,1);break;case"ss":an=yt(5,2);break;case"S":an=yt(6,1);break;case"SS":an=yt(6,2);break;case"SSS":an=yt(6,3);break;case"Z":case"ZZ":case"ZZZ":an=qt(0);break;case"ZZZZZ":an=qt(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":an=qt(1);break;case"OOOO":case"ZZZZ":case"zzzz":an=qt(2);break;default:return null}return et[lt]=an,an}(li);mn+=Ce?Ce(cn,ht,la):"''"===li?"'":li.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),mn}function Se(lt,an,ht){const Gt=new Date(0);return Gt.setFullYear(lt,an,ht),Gt.setHours(0,0,0),Gt}function be(lt,an){const ht=function V(lt){return(0,e.kBR)(lt)[e.NSC.LocaleId]}(lt);if(ge[ht]??={},ge[ht][an])return ge[ht][an];let Gt="";switch(an){case"shortDate":Gt=pe(lt,j.Short);break;case"mediumDate":Gt=pe(lt,j.Medium);break;case"longDate":Gt=pe(lt,j.Long);break;case"fullDate":Gt=pe(lt,j.Full);break;case"shortTime":Gt=Ee(lt,j.Short);break;case"mediumTime":Gt=Ee(lt,j.Medium);break;case"longTime":Gt=Ee(lt,j.Long);break;case"fullTime":Gt=Ee(lt,j.Full);break;case"short":const cn=be(lt,"shortTime"),si=be(lt,"shortDate");Gt=nt(L(lt,j.Short),[cn,si]);break;case"medium":const pi=be(lt,"mediumTime"),Oi=be(lt,"mediumDate");Gt=nt(L(lt,j.Medium),[pi,Oi]);break;case"long":const la=be(lt,"longTime"),mn=be(lt,"longDate");Gt=nt(L(lt,j.Long),[la,mn]);break;case"full":const li=be(lt,"fullTime"),Ce=be(lt,"fullDate");Gt=nt(L(lt,j.Full),[li,Ce])}return Gt&&(ge[ht][an]=Gt),Gt}function nt(lt,an){return an&&(lt=lt.replace(/\{([^}]+)}/g,function(ht,Gt){return null!=an&&Gt in an?an[Gt]:ht})),lt}function $e(lt,an,ht="-",Gt,cn){let si="";(lt<0||cn&<<=0)&&(cn?lt=1-lt:(lt=-lt,si=ht));let pi=String(lt);for(;pi.length0||Oi>-ht)&&(Oi+=ht),3===lt)0===Oi&&-12===ht&&(Oi=12);else if(6===lt)return function dt(lt,an){return $e(lt,3).substring(0,an)}(Oi,an);const la=t(pi,5);return $e(Oi,an,la,Gt,cn)}}function rt(lt,an,ht=M.Format,Gt=!1){return function(cn,si){return function Mn(lt,an,ht,Gt,cn,si){switch(ht){case 2:return function ie(lt,an,ht){const Gt=(0,e.kBR)(lt),si=R([Gt[e.NSC.MonthsFormat],Gt[e.NSC.MonthsStandalone]],an);return R(si,ht)}(an,cn,Gt)[lt.getMonth()];case 1:return function $(lt,an,ht){const Gt=(0,e.kBR)(lt),si=R([Gt[e.NSC.DaysFormat],Gt[e.NSC.DaysStandalone]],an);return R(si,ht)}(an,cn,Gt)[lt.getDay()];case 0:const pi=lt.getHours(),Oi=lt.getMinutes();if(si){const mn=function a(lt){const an=(0,e.kBR)(lt);return C(an),(an[e.NSC.ExtraData][2]||[]).map(Gt=>"string"==typeof Gt?U(Gt):[U(Gt[0]),U(Gt[1])])}(an),li=function x(lt,an,ht){const Gt=(0,e.kBR)(lt);C(Gt);const si=R([Gt[e.NSC.ExtraData][0],Gt[e.NSC.ExtraData][1]],an)||[];return R(si,ht)||[]}(an,cn,Gt),Ce=mn.findIndex(xt=>{if(Array.isArray(xt)){const[vt,rn]=xt,Wn=pi>=vt.hours&&Oi>=vt.minutes,Yi=pi0?Math.floor(cn/60):Math.ceil(cn/60);switch(lt){case 0:return(cn>=0?"+":"")+$e(pi,2,si)+$e(Math.abs(cn%60),2,si);case 1:return"GMT"+(cn>=0?"+":"")+$e(pi,1,si);case 2:return"GMT"+(cn>=0?"+":"")+$e(pi,2,si)+":"+$e(Math.abs(cn%60),2,si);case 3:return 0===Gt?"Z":(cn>=0?"+":"")+$e(pi,2,si)+":"+$e(Math.abs(cn%60),2,si);default:throw new o.buA(2310,!1)}}}function ae(lt){const an=lt.getDay(),ht=0===an?-3:4-an;return Se(lt.getFullYear(),lt.getMonth(),lt.getDate()+ht)}function me(lt,an=!1){return function(ht,Gt){let cn;if(an){const si=new Date(ht.getFullYear(),ht.getMonth(),1).getDay()-1,pi=ht.getDate();cn=1+Math.floor((pi+si)/7)}else{const si=ae(ht),pi=function de(lt){const an=Se(lt,0,1).getDay();return Se(lt,0,1+(an<=4?4:11)-an)}(si.getFullYear()),Oi=si.getTime()-pi.getTime();cn=1+Math.round(Oi/6048e5)}return $e(cn,lt,t(Gt,5))}}function Le(lt,an=!1){return function(ht,Gt){return $e(ae(ht).getFullYear(),lt,t(Gt,5),an)}}const et={};function Vt(lt,an){lt=lt.replace(/:/g,"");const ht=Date.parse("Jan 01, 1970 00:00:00 "+lt)/6e4;return isNaN(ht)?an:ht}function Fe(lt){return lt instanceof Date&&!isNaN(lt.valueOf())}const Pe=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Lt(lt){const an=parseInt(lt);if(isNaN(an))throw new o.buA(2305,!1);return an}const mt=/\s+/,It=[];let wn=(()=>{class lt{_ngEl;_renderer;initialClasses=It;rawClass;stateMap=new Map;constructor(ht,Gt){this._ngEl=ht,this._renderer=Gt}set klass(ht){this.initialClasses=null!=ht?ht.trim().split(mt):It}set ngClass(ht){this.rawClass="string"==typeof ht?ht.trim().split(mt):ht}ngDoCheck(){for(const Gt of this.initialClasses)this._updateState(Gt,!0);const ht=this.rawClass;if(Array.isArray(ht)||ht instanceof Set)for(const Gt of ht)this._updateState(Gt,!0);else if(null!=ht)for(const Gt of Object.keys(ht))this._updateState(Gt,!!ht[Gt]);this._applyStateDiff()}_updateState(ht,Gt){const cn=this.stateMap.get(ht);void 0!==cn?(cn.enabled!==Gt&&(cn.changed=!0,cn.enabled=Gt),cn.touched=!0):this.stateMap.set(ht,{enabled:Gt,changed:!0,touched:!0})}_applyStateDiff(){for(const ht of this.stateMap){const Gt=ht[0],cn=ht[1];cn.changed?(this._toggleClass(Gt,cn.enabled),cn.changed=!1):cn.touched||(cn.enabled&&this._toggleClass(Gt,!1),this.stateMap.delete(Gt)),cn.touched=!1}}_toggleClass(ht,Gt){(ht=ht.trim()).length>0&&ht.split(mt).forEach(cn=>{Gt?this._renderer.addClass(this._ngEl.nativeElement,cn):this._renderer.removeClass(this._ngEl.nativeElement,cn)})}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.aKT),e.rXU(e.sFG))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return lt})();class Li{$implicit;ngForOf;index;count;constructor(an,ht,Gt,cn){this.$implicit=an,this.ngForOf=ht,this.index=Gt,this.count=cn}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 kt=(()=>{class lt{_viewContainer;_template;_differs;set ngForOf(ht){this._ngForOf=ht,this._ngForOfDirty=!0}set ngForTrackBy(ht){this._trackByFn=ht}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(ht,Gt,cn){this._viewContainer=ht,this._template=Gt,this._differs=cn}set ngForTemplate(ht){ht&&(this._template=ht)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ht=this._ngForOf;!this._differ&&ht&&(this._differ=this._differs.find(ht).create(this.ngForTrackBy))}if(this._differ){const ht=this._differ.diff(this._ngForOf);ht&&this._applyChanges(ht)}}_applyChanges(ht){const Gt=this._viewContainer;ht.forEachOperation((cn,si,pi)=>{if(null==cn.previousIndex)Gt.createEmbeddedView(this._template,new Li(cn.item,this._ngForOf,-1,-1),null===pi?void 0:pi);else if(null==pi)Gt.remove(null===si?void 0:si);else if(null!==si){const Oi=Gt.get(si);Gt.move(Oi,pi),Ot(Oi,cn)}});for(let cn=0,si=Gt.length;cn{Ot(Gt.get(cn.currentIndex),cn)})}static ngTemplateContextGuard(ht,Gt){return!0}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(D._q3))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return lt})();function Ot(lt,an){lt.context.$implicit=an.item}let Ge=(()=>{class lt{_viewContainer;_context=new Pt;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(ht,Gt){this._viewContainer=ht,this._thenTemplateRef=Gt}set ngIf(ht){this._context.$implicit=this._context.ngIf=ht,this._updateView()}set ngIfThen(ht){Yt(ht),this._thenTemplateRef=ht,this._thenViewRef=null,this._updateView()}set ngIfElse(ht){Yt(ht),this._elseTemplateRef=ht,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(ht,Gt){return!0}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return lt})();class Pt{$implicit=null;ngIf=null}function Yt(lt,an){if(lt&&!lt.createEmbeddedView)throw new o.buA(2020,!1)}class bn{_viewContainerRef;_templateRef;_created=!1;constructor(an,ht){this._viewContainerRef=an,this._templateRef=ht}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(an){an&&!this._created?this.create():!an&&this._created&&this.destroy()}}let $n=(()=>{class lt{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(ht){this._ngSwitch=ht,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ht){this._defaultViews.push(ht)}_matchCase(ht){const Gt=ht===this._ngSwitch;return this._lastCasesMatched||=Gt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Gt}_updateDefaultCases(ht){if(this._defaultViews.length>0&&ht!==this._defaultUsed){this._defaultUsed=ht;for(const Gt of this._defaultViews)Gt.enforceState(ht)}}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275dir=e.FsC({type:lt,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return lt})(),oi=(()=>{class lt{ngSwitch;_view;ngSwitchCase;constructor(ht,Gt,cn){this.ngSwitch=cn,cn._addCase(),this._view=new bn(ht,Gt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU($n,9))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return lt})(),Ii=(()=>{class lt{constructor(ht,Gt,cn){cn._addDefault(new bn(ht,Gt))}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU($n,9))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngSwitchDefault",""]]})}return lt})(),en=(()=>{class lt{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(ht,Gt,cn){this._ngEl=ht,this._differs=Gt,this._renderer=cn}set ngStyle(ht){this._ngStyle=ht,!this._differ&&ht&&(this._differ=this._differs.find(ht).create())}ngDoCheck(){if(this._differ){const ht=this._differ.diff(this._ngStyle);ht&&this._applyChanges(ht)}}_setStyle(ht,Gt){const[cn,si]=ht.split("."),pi=-1===cn.indexOf("-")?void 0:e.czy.DashCase;null!=Gt?this._renderer.setStyle(this._ngEl.nativeElement,cn,si?`${Gt}${si}`:Gt,pi):this._renderer.removeStyle(this._ngEl.nativeElement,cn,pi)}_applyChanges(ht){ht.forEachRemovedItem(Gt=>this._setStyle(Gt.key,null)),ht.forEachAddedItem(Gt=>this._setStyle(Gt.key,Gt.currentValue)),ht.forEachChangedItem(Gt=>this._setStyle(Gt.key,Gt.currentValue))}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.aKT),e.rXU(D.MKu),e.rXU(e.sFG))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return lt})(),Nn=(()=>{class lt{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(ht){this._viewContainerRef=ht}ngOnChanges(ht){if(this._shouldRecreateView(ht)){const Gt=this._viewContainerRef;if(this._viewRef&&Gt.remove(Gt.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const cn=this._createContextForwardProxy();this._viewRef=Gt.createEmbeddedView(this.ngTemplateOutlet,cn,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(ht){return!!ht.ngTemplateOutlet||!!ht.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(ht,Gt,cn)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Gt,cn),get:(ht,Gt,cn)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Gt,cn)}})}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[e.OA$]})}return lt})();function Un(lt,an){return new o.buA(2100,!1)}class ui{createSubscription(an,ht,Gt){return(0,A.O8)(()=>an.subscribe({next:ht,error:Gt}))}dispose(an){(0,A.O8)(()=>an.unsubscribe())}}class gn{createSubscription(an,ht,Gt){return an.then(cn=>ht?.(cn),cn=>Gt?.(cn)),{unsubscribe:()=>{ht=null,Gt=null}}}dispose(an){an.unsubscribe()}}const zn=new gn,kn=new ui;let Kn=(()=>{class lt{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=(0,o.WQX)(o.ZTf);constructor(ht){this._ref=ht}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ht){if(!this._obj){if(ht)try{this.markForCheckOnValueUpdate=!1,this._subscribe(ht)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return ht!==this._obj?(this._dispose(),this.transform(ht)):this._latestValue}_subscribe(ht){this._obj=ht,this._strategy=this._selectStrategy(ht),this._subscription=this._strategy.createSubscription(ht,Gt=>this._updateLatestValue(ht,Gt),Gt=>this.applicationErrorHandler(Gt))}_selectStrategy(ht){if((0,e.yLl)(ht))return zn;if((0,e.cdK)(ht))return kn;throw Un()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ht,Gt){ht===this._obj&&(this._latestValue=Gt,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(D.gRc,16))};static \u0275pipe=e.EJ8({name:"async",type:lt,pure:!1})}return lt})(),ci=(()=>{class lt{transform(ht){if(null==ht)return null;if("string"!=typeof ht)throw Un();return ht.toLowerCase()}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"lowercase",type:lt,pure:!0})}return lt})();const Xn=/(?:[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 aa=(()=>{class lt{transform(ht){if(null==ht)return null;if("string"!=typeof ht)throw Un();return ht.replace(Xn,Gt=>Gt[0].toUpperCase()+Gt.slice(1).toLowerCase())}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"titlecase",type:lt,pure:!0})}return lt})(),sa=(()=>{class lt{transform(ht){if(null==ht)return null;if("string"!=typeof ht)throw Un();return ht.toUpperCase()}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"uppercase",type:lt,pure:!0})}return lt})();const ua=new o.nKC(""),dn=new o.nKC("");let Ln=(()=>{class lt{locale;defaultTimezone;defaultOptions;constructor(ht,Gt,cn){this.locale=ht,this.defaultTimezone=Gt,this.defaultOptions=cn}transform(ht,Gt,cn,si){if(null==ht||""===ht||ht!=ht)return null;try{return Me(ht,Gt??this.defaultOptions?.dateFormat??"mediumDate",si||this.locale,cn??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(pi){throw Un()}}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.xe9,16),e.rXU(ua,24),e.rXU(dn,24))};static \u0275pipe=e.EJ8({name:"date",type:lt,pure:!0})}return lt})(),Jn=(()=>{class lt{transform(ht){return JSON.stringify(ht,null,2)}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"json",type:lt,pure:!1})}return lt})(),_a=(()=>{class lt{differs;constructor(ht){this.differs=ht}differ;keyValues=[];compareFn=Sa;transform(ht,Gt=Sa){if(!ht||!(ht instanceof Map)&&"object"!=typeof ht)return null;this.differ??=this.differs.find(ht).create();const cn=this.differ.diff(ht),si=Gt!==this.compareFn;return cn&&(this.keyValues=[],cn.forEachItem(pi=>{this.keyValues.push(function Bi(lt,an){return{key:lt,value:an}}(pi.key,pi.currentValue))})),(cn||si)&&(Gt&&this.keyValues.sort(Gt),this.compareFn=Gt),this.keyValues}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(D.MKu,16))};static \u0275pipe=e.EJ8({name:"keyvalue",type:lt,pure:!1})}return lt})();function Sa(lt,an){const ht=lt.key,Gt=an.key;if(ht===Gt)return 0;if(null==ht)return 1;if(null==Gt)return-1;if("string"==typeof ht&&"string"==typeof Gt)return ht{class lt{_locale;constructor(ht){this._locale=ht}transform(ht,Gt,cn){if(!function Dn(lt){return!(null==lt||""===lt||lt!=lt)}(ht))return null;cn||=this._locale;try{return function it(lt,an,ht){return function zt(lt,an,ht,Gt,cn,si,pi=!1){let Oi="",la=!1;if(isFinite(lt)){let mn=function we(lt){let Gt,cn,si,pi,Oi,an=Math.abs(lt)+"",ht=0;for((cn=an.indexOf("."))>-1&&(an=an.replace(".","")),(si=an.search(/e/i))>0?(cn<0&&(cn=si),cn+=+an.slice(si+1),an=an.substring(0,si)):cn<0&&(cn=an.length),si=0;"0"===an.charAt(si);si++);if(si===(Oi=an.length))Gt=[0],cn=1;else{for(Oi--;"0"===an.charAt(Oi);)Oi--;for(cn-=si,Gt=[],pi=0;si<=Oi;si++,pi++)Gt[pi]=Number(an.charAt(si))}return cn>22&&(Gt=Gt.splice(0,21),ht=cn-1,cn=1),{digits:Gt,exponent:ht,integerLen:cn}}(lt);pi&&(mn=function Wt(lt){if(0===lt.digits[0])return lt;const an=lt.digits.length-lt.integerLen;return lt.exponent?lt.exponent+=2:(0===an?lt.digits.push(0,0):1===an&<.digits.push(0),lt.integerLen+=2),lt}(mn));let li=an.minInt,Ce=an.minFrac,xt=an.maxFrac;if(si){const Va=si.match(Pe);if(null===Va)throw new o.buA(2306,!1);const $a=Va[1],ir=Va[3],Ga=Va[5];null!=$a&&(li=Lt($a)),null!=ir&&(Ce=Lt(ir)),null!=Ga?xt=Lt(Ga):null!=ir&&Ce>xt&&(xt=Ce);const Ar=100;if(li>Ar||Ce>Ar||xt>Ar)throw new o.buA(2306,!1)}!function We(lt,an,ht){if(an>ht)throw new o.buA(2307,!1);let Gt=lt.digits,cn=Gt.length-lt.integerLen;const si=Math.min(Math.max(an,cn),ht);let pi=si+lt.integerLen,Oi=Gt[pi];if(pi>0){Gt.splice(Math.max(lt.integerLen,pi));for(let Ce=pi;Ce=5)if(pi-1<0){for(let Ce=0;Ce>pi;Ce--)Gt.unshift(0),lt.integerLen++;Gt.unshift(1),lt.integerLen++}else Gt[pi-1]++;for(;cn=mn?rn.pop():la=!1),xt>=10?1:0},0);li&&(Gt.unshift(li),lt.integerLen++)}(mn,Ce,xt);let vt=mn.digits,rn=mn.integerLen;const Wn=mn.exponent;let Yi=[];for(la=vt.every(Va=>!Va);rn0?Yi=vt.splice(rn,vt.length):(Yi=vt,vt=[0]);const va=[];for(vt.length>=an.lgSize&&va.unshift(vt.splice(-an.lgSize,vt.length).join(""));vt.length>an.gSize;)va.unshift(vt.splice(-an.gSize,vt.length).join(""));vt.length&&va.unshift(vt.join("")),Oi=va.join(t(ht,Gt)),Yi.length&&(Oi+=t(ht,cn)+Yi.join("")),Wn&&(Oi+=t(ht,6)+"+"+Wn)}else Oi=t(ht,9);return Oi=lt<0&&!la?an.negPre+Oi+an.negSuf:an.posPre+Oi+an.posSuf,Oi}(lt,function He(lt,an="-"){const ht={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Gt=lt.split(";"),cn=Gt[0],si=Gt[1],pi=-1!==cn.indexOf(".")?cn.split("."):[cn.substring(0,cn.lastIndexOf("0")+1),cn.substring(cn.lastIndexOf("0")+1)],Oi=pi[0],la=pi[1]||"";ht.posPre=Oi.substring(0,Oi.indexOf("#"));for(let li=0;li{class lt{transform(ht,Gt,cn){if(null==ht)return null;if("string"!=typeof ht&&!Array.isArray(ht))throw Un();return ht.slice(Gt,cn)}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"slice",type:lt,pure:!1})}return lt})(),Ma=(()=>{class lt{static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275mod=e.$C({type:lt});static \u0275inj=o.G2t({})}return lt})()},57303(ke,q,l){"use strict";l.d(q,{Q:()=>F,Sm:()=>j,Vw:()=>A,aZ:()=>Z,hb:()=>M,hj:()=>h,ig:()=>o,kB:()=>K,om:()=>w,qj:()=>e,rb:()=>D});var i=l(2615),g=l(21413);let p=null;function D(){return p}function o(ie){p??=ie}class e{}let A=(()=>{class ie{historyGo(ye){throw new Error("")}static \u0275fac=function(se){return new(se||ie)};static \u0275prov=i.jDH({token:ie,factory:()=>(0,i.WQX)(d),providedIn:"platform"})}return ie})();const h=new i.nKC("");let d=(()=>{class ie extends A{_location;_history;_doc=(0,i.WQX)(i.qQL);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(ye){const se=D().getGlobalEventTarget(this._doc,"window");return se.addEventListener("popstate",ye,!1),()=>se.removeEventListener("popstate",ye)}onHashChange(ye){const se=D().getGlobalEventTarget(this._doc,"window");return se.addEventListener("hashchange",ye,!1),()=>se.removeEventListener("hashchange",ye)}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(ye){this._location.pathname=ye}pushState(ye,se,pe){this._history.pushState(ye,se,pe)}replaceState(ye,se,pe){this._history.replaceState(ye,se,pe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ye=0){this._history.go(ye)}getState(){return this._history.state}static \u0275fac=function(se){return new(se||ie)};static \u0275prov=i.jDH({token:ie,factory:()=>new ie,providedIn:"platform"})}return ie})();function w(ie,_e){return ie?_e?ie.endsWith("/")?_e.startsWith("/")?ie+_e.slice(1):ie+_e:_e.startsWith("/")?ie+_e:`${ie}/${_e}`:ie:_e}function f(ie){const _e=ie.search(/#|\?|$/);return"/"===ie[_e-1]?ie.slice(0,_e-1)+ie.slice(_e):ie}function F(ie){return ie&&"?"!==ie[0]?`?${ie}`:ie}let M=(()=>{class ie{historyGo(ye){throw new Error("")}static \u0275fac=function(se){return new(se||ie)};static \u0275prov=i.jDH({token:ie,factory:()=>(0,i.WQX)(j),providedIn:"root"})}return ie})();const K=new i.nKC("");let j=(()=>{class ie extends M{_platformLocation;_baseHref;_removeListenerFns=[];constructor(ye,se){super(),this._platformLocation=ye,this._baseHref=se??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(i.qQL).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ye){this._removeListenerFns.push(this._platformLocation.onPopState(ye),this._platformLocation.onHashChange(ye))}getBaseHref(){return this._baseHref}prepareExternalUrl(ye){return w(this._baseHref,ye)}path(ye=!1){const se=this._platformLocation.pathname+F(this._platformLocation.search),pe=this._platformLocation.hash;return pe&&ye?`${se}${pe}`:se}pushState(ye,se,pe,Ee){const L=this.prepareExternalUrl(pe+F(Ee));this._platformLocation.pushState(ye,se,L)}replaceState(ye,se,pe,Ee){const L=this.prepareExternalUrl(pe+F(Ee));this._platformLocation.replaceState(ye,se,L)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ye=0){this._platformLocation.historyGo?.(ye)}static \u0275fac=function(se){return new(se||ie)(i.KVO(A),i.KVO(K,8))};static \u0275prov=i.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})(),Z=(()=>{class ie{_subject=new g.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(ye){this._locationStrategy=ye;const se=this._locationStrategy.getBaseHref();this._basePath=function $(ie){if(new RegExp("^(https?:)?//").test(ie)){const[,ye]=ie.split(/\/\/[^\/]+/);return ye}return ie}(f(Q(se))),this._locationStrategy.onPopState(pe=>{this._subject.next({url:this.path(!0),pop:!0,state:pe.state,type:pe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ye=!1){return this.normalize(this._locationStrategy.path(ye))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ye,se=""){return this.path()==this.normalize(ye+F(se))}normalize(ye){return ie.stripTrailingSlash(function V(ie,_e){if(!ie||!_e.startsWith(ie))return _e;const ye=_e.substring(ie.length);return""===ye||["/",";","?","#"].includes(ye[0])?ye:_e}(this._basePath,Q(ye)))}prepareExternalUrl(ye){return ye&&"/"!==ye[0]&&(ye="/"+ye),this._locationStrategy.prepareExternalUrl(ye)}go(ye,se="",pe=null){this._locationStrategy.pushState(pe,"",ye,se),this._notifyUrlChangeListeners(this.prepareExternalUrl(ye+F(se)),pe)}replaceState(ye,se="",pe=null){this._locationStrategy.replaceState(pe,"",ye,se),this._notifyUrlChangeListeners(this.prepareExternalUrl(ye+F(se)),pe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ye=0){this._locationStrategy.historyGo?.(ye)}onUrlChange(ye){return this._urlChangeListeners.push(ye),this._urlChangeSubscription??=this.subscribe(se=>{this._notifyUrlChangeListeners(se.url,se.state)}),()=>{const se=this._urlChangeListeners.indexOf(ye);this._urlChangeListeners.splice(se,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ye="",se){this._urlChangeListeners.forEach(pe=>pe(ye,se))}subscribe(ye,se,pe){return this._subject.subscribe({next:ye,error:se??void 0,complete:pe??void 0})}static normalizeQueryParams=F;static joinWithSlash=w;static stripTrailingSlash=f;static \u0275fac=function(se){return new(se||ie)(i.KVO(M))};static \u0275prov=i.jDH({token:ie,factory:()=>function ee(){return new Z((0,i.KVO)(M))}(),providedIn:"root"})}return ie})();function Q(ie){return ie.replace(/\/index.html$/,"")}},29330(ke,q,l){"use strict";l.d(q,{$R:()=>Li,Nl:()=>s,Qq:()=>nt,Sx:()=>Ze,ZZ:()=>$n,a7:()=>me,q1:()=>Ii});var A=l(10467),h=l(2615),d=l(73664),w=l(70274),f=l(5964),F=l(70980),M=l(96354),K=l(25558),j=l(71985),ee=(l(22806),l(7673)),V=l(52512);class Q{}class ${}class ie{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(nn){nn?"string"==typeof nn?this.lazyInit=()=>{this.headers=new Map,nn.split("\n").forEach(en=>{const Nn=en.indexOf(":");if(Nn>0){const jn=en.slice(0,Nn),Un=en.slice(Nn+1).trim();this.addHeaderEntry(jn,Un)}})}:typeof Headers<"u"&&nn instanceof Headers?(this.headers=new Map,nn.forEach((en,Nn)=>{this.addHeaderEntry(Nn,en)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(nn).forEach(([en,Nn])=>{this.setHeaderEntries(en,Nn)})}:this.headers=new Map}has(nn){return this.init(),this.headers.has(nn.toLowerCase())}get(nn){this.init();const en=this.headers.get(nn.toLowerCase());return en&&en.length>0?en[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(nn){return this.init(),this.headers.get(nn.toLowerCase())||null}append(nn,en){return this.clone({name:nn,value:en,op:"a"})}set(nn,en){return this.clone({name:nn,value:en,op:"s"})}delete(nn,en){return this.clone({name:nn,value:en,op:"d"})}maybeSetNormalizedName(nn,en){this.normalizedNames.has(en)||this.normalizedNames.set(en,nn)}init(){this.lazyInit&&(this.lazyInit instanceof ie?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(nn=>this.applyUpdate(nn)),this.lazyUpdate=null))}copyFrom(nn){nn.init(),Array.from(nn.headers.keys()).forEach(en=>{this.headers.set(en,nn.headers.get(en)),this.normalizedNames.set(en,nn.normalizedNames.get(en))})}clone(nn){const en=new ie;return en.lazyInit=this.lazyInit&&this.lazyInit instanceof ie?this.lazyInit:this,en.lazyUpdate=(this.lazyUpdate||[]).concat([nn]),en}applyUpdate(nn){const en=nn.name.toLowerCase();switch(nn.op){case"a":case"s":let Nn=nn.value;if("string"==typeof Nn&&(Nn=[Nn]),0===Nn.length)return;this.maybeSetNormalizedName(nn.name,en);const jn=("a"===nn.op?this.headers.get(en):void 0)||[];jn.push(...Nn),this.headers.set(en,jn);break;case"d":const Un=nn.value;if(Un){let ui=this.headers.get(en);if(!ui)return;ui=ui.filter(gn=>-1===Un.indexOf(gn)),0===ui.length?(this.headers.delete(en),this.normalizedNames.delete(en)):this.headers.set(en,ui)}else this.headers.delete(en),this.normalizedNames.delete(en)}}addHeaderEntry(nn,en){const Nn=nn.toLowerCase();this.maybeSetNormalizedName(nn,Nn),this.headers.has(Nn)?this.headers.get(Nn).push(en):this.headers.set(Nn,[en])}setHeaderEntries(nn,en){const Nn=(Array.isArray(en)?en:[en]).map(Un=>Un.toString()),jn=nn.toLowerCase();this.headers.set(jn,Nn),this.maybeSetNormalizedName(nn,jn)}forEach(nn){this.init(),Array.from(this.normalizedNames.keys()).forEach(en=>nn(this.normalizedNames.get(en),this.headers.get(en)))}}class ye{encodeKey(nn){return L(nn)}encodeValue(nn){return L(nn)}decodeKey(nn){return decodeURIComponent(nn)}decodeValue(nn){return decodeURIComponent(nn)}}const pe=/%(\d[a-f0-9])/gi,Ee={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function L(Nt){return encodeURIComponent(Nt).replace(pe,(nn,en)=>Ee[en]??nn)}function t(Nt){return`${Nt}`}class s{map;encoder;updates=null;cloneFrom=null;constructor(nn={}){if(this.encoder=nn.encoder||new ye,nn.fromString){if(nn.fromObject)throw new h.buA(2805,!1);this.map=function se(Nt,nn){const en=new Map;return Nt.length>0&&Nt.replace(/^\?/,"").split("&").forEach(jn=>{const Un=jn.indexOf("="),[ui,gn]=-1==Un?[nn.decodeKey(jn),""]:[nn.decodeKey(jn.slice(0,Un)),nn.decodeValue(jn.slice(Un+1))],zn=en.get(ui)||[];zn.push(gn),en.set(ui,zn)}),en}(nn.fromString,this.encoder)}else nn.fromObject?(this.map=new Map,Object.keys(nn.fromObject).forEach(en=>{const Nn=nn.fromObject[en],jn=Array.isArray(Nn)?Nn.map(t):[t(Nn)];this.map.set(en,jn)})):this.map=null}has(nn){return this.init(),this.map.has(nn)}get(nn){this.init();const en=this.map.get(nn);return en?en[0]:null}getAll(nn){return this.init(),this.map.get(nn)||null}keys(){return this.init(),Array.from(this.map.keys())}append(nn,en){return this.clone({param:nn,value:en,op:"a"})}appendAll(nn){const en=[];return Object.keys(nn).forEach(Nn=>{const jn=nn[Nn];Array.isArray(jn)?jn.forEach(Un=>{en.push({param:Nn,value:Un,op:"a"})}):en.push({param:Nn,value:jn,op:"a"})}),this.clone(en)}set(nn,en){return this.clone({param:nn,value:en,op:"s"})}delete(nn,en){return this.clone({param:nn,value:en,op:"d"})}toString(){return this.init(),this.keys().map(nn=>{const en=this.encoder.encodeKey(nn);return this.map.get(nn).map(Nn=>en+"="+this.encoder.encodeValue(Nn)).join("&")}).filter(nn=>""!==nn).join("&")}clone(nn){const en=new s({encoder:this.encoder});return en.cloneFrom=this.cloneFrom||this,en.updates=(this.updates||[]).concat(nn),en}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(nn=>this.map.set(nn,this.cloneFrom.map.get(nn))),this.updates.forEach(nn=>{switch(nn.op){case"a":case"s":const en=("a"===nn.op?this.map.get(nn.param):void 0)||[];en.push(t(nn.value)),this.map.set(nn.param,en);break;case"d":if(void 0===nn.value){this.map.delete(nn.param);break}{let Nn=this.map.get(nn.param)||[];const jn=Nn.indexOf(t(nn.value));-1!==jn&&Nn.splice(jn,1),Nn.length>0?this.map.set(nn.param,Nn):this.map.delete(nn.param)}}}),this.cloneFrom=this.updates=null)}}class u{map=new Map;set(nn,en){return this.map.set(nn,en),this}get(nn){return this.map.has(nn)||this.map.set(nn,nn.defaultValue()),this.map.get(nn)}delete(nn){return this.map.delete(nn),this}has(nn){return this.map.has(nn)}keys(){return this.map.keys()}}function T(Nt){return typeof ArrayBuffer<"u"&&Nt instanceof ArrayBuffer}function P(Nt){return typeof Blob<"u"&&Nt instanceof Blob}function C(Nt){return typeof FormData<"u"&&Nt instanceof FormData}const x="Content-Type",Y="Accept",R="X-Request-URL",U="text/plain",fe="application/json",re=`${fe}, ${U}, */*`;class he{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(nn,en,Nn,jn){let Un;if(this.url=en,this.method=nn.toUpperCase(),function _(Nt){switch(Nt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||jn?(this.body=void 0!==Nn?Nn:null,Un=jn):Un=Nn,Un){if(this.reportProgress=!!Un.reportProgress,this.withCredentials=!!Un.withCredentials,this.keepalive=!!Un.keepalive,Un.responseType&&(this.responseType=Un.responseType),Un.headers&&(this.headers=Un.headers),Un.context&&(this.context=Un.context),Un.params&&(this.params=Un.params),Un.priority&&(this.priority=Un.priority),Un.cache&&(this.cache=Un.cache),Un.credentials&&(this.credentials=Un.credentials),"number"==typeof Un.timeout){if(Un.timeout<1||!Number.isInteger(Un.timeout))throw new h.buA(2822,"");this.timeout=Un.timeout}Un.mode&&(this.mode=Un.mode),Un.redirect&&(this.redirect=Un.redirect),Un.integrity&&(this.integrity=Un.integrity),void 0!==Un.referrer&&(this.referrer=Un.referrer),this.transferCache=Un.transferCache}if(this.headers??=new ie,this.context??=new u,this.params){const ui=this.params.toString();if(0===ui.length)this.urlWithParams=en;else{const gn=en.indexOf("?");this.urlWithParams=en+(-1===gn?"?":gnGn.set(Jn,nn.setHeaders[Jn]),Ln)),nn.setParams&&(Zn=Object.keys(nn.setParams).reduce((Gn,Jn)=>Gn.set(Jn,nn.setParams[Jn]),Zn)),new he(en,Nn,ma,{params:Zn,headers:Ln,context:hi,reportProgress:dn,responseType:jn,withCredentials:ua,transferCache:aa,keepalive:Un,cache:gn,priority:ui,timeout:sa,mode:zn,redirect:kn,credentials:Kn,referrer:ci,integrity:Xn})}}var Oe=function(Nt){return Nt[Nt.Sent=0]="Sent",Nt[Nt.UploadProgress=1]="UploadProgress",Nt[Nt.ResponseHeader=2]="ResponseHeader",Nt[Nt.DownloadProgress=3]="DownloadProgress",Nt[Nt.Response=4]="Response",Nt[Nt.User=5]="User",Nt}(Oe||{});class ge{headers;status;statusText;url;ok;type;redirected;constructor(nn,en=200,Nn="OK"){this.headers=nn.headers||new ie,this.status=void 0!==nn.status?nn.status:en,this.statusText=nn.statusText||Nn,this.url=nn.url||null,this.redirected=nn.redirected,this.ok=this.status>=200&&this.status<300}}class ce extends ge{constructor(nn={}){super(nn)}type=Oe.ResponseHeader;clone(nn={}){return new ce({headers:nn.headers||this.headers,status:void 0!==nn.status?nn.status:this.status,statusText:nn.statusText||this.statusText,url:nn.url||this.url||void 0})}}class Re extends ge{body;constructor(nn={}){super(nn),this.body=void 0!==nn.body?nn.body:null}type=Oe.Response;clone(nn={}){return new Re({body:void 0!==nn.body?nn.body:this.body,headers:nn.headers||this.headers,status:void 0!==nn.status?nn.status:this.status,statusText:nn.statusText||this.statusText,url:nn.url||this.url||void 0,redirected:nn.redirected??this.redirected})}}class Me extends ge{name="HttpErrorResponse";message;error;ok=!1;constructor(nn){super(nn,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${nn.url||"(unknown url)"}`:`Http failure response for ${nn.url||"(unknown url)"}: ${nn.status} ${nn.statusText}`,this.error=nn.error||null}}function be(Nt,nn){return{body:nn,headers:Nt.headers,context:Nt.context,observe:Nt.observe,params:Nt.params,reportProgress:Nt.reportProgress,responseType:Nt.responseType,withCredentials:Nt.withCredentials,credentials:Nt.credentials,transferCache:Nt.transferCache,timeout:Nt.timeout,keepalive:Nt.keepalive,priority:Nt.priority,cache:Nt.cache,mode:Nt.mode,redirect:Nt.redirect,integrity:Nt.integrity,referrer:Nt.referrer}}let nt=(()=>{class Nt{handler;constructor(en){this.handler=en}request(en,Nn,jn={}){let Un;if(en instanceof he)Un=en;else{let zn,kn;zn=jn.headers instanceof ie?jn.headers:new ie(jn.headers),jn.params&&(kn=jn.params instanceof s?jn.params:new s({fromObject:jn.params})),Un=new he(en,Nn,void 0!==jn.body?jn.body:null,{headers:zn,context:jn.context,params:kn,reportProgress:jn.reportProgress,responseType:jn.responseType||"json",withCredentials:jn.withCredentials,transferCache:jn.transferCache,keepalive:jn.keepalive,priority:jn.priority,cache:jn.cache,mode:jn.mode,redirect:jn.redirect,credentials:jn.credentials,referrer:jn.referrer,integrity:jn.integrity,timeout:jn.timeout})}const ui=(0,ee.of)(Un).pipe((0,w.H)(zn=>this.handler.handle(zn)));if(en instanceof he||"events"===jn.observe)return ui;const gn=ui.pipe((0,f.p)(zn=>zn instanceof Re));switch(jn.observe||"body"){case"body":switch(Un.responseType){case"arraybuffer":return gn.pipe((0,M.T)(zn=>{if(null!==zn.body&&!(zn.body instanceof ArrayBuffer))throw new h.buA(2806,!1);return zn.body}));case"blob":return gn.pipe((0,M.T)(zn=>{if(null!==zn.body&&!(zn.body instanceof Blob))throw new h.buA(2807,!1);return zn.body}));case"text":return gn.pipe((0,M.T)(zn=>{if(null!==zn.body&&"string"!=typeof zn.body)throw new h.buA(2808,!1);return zn.body}));default:return gn.pipe((0,M.T)(zn=>zn.body))}case"response":return gn;default:throw new h.buA(2809,!1)}}delete(en,Nn={}){return this.request("DELETE",en,Nn)}get(en,Nn={}){return this.request("GET",en,Nn)}head(en,Nn={}){return this.request("HEAD",en,Nn)}jsonp(en,Nn){return this.request("JSONP",en,{params:(new s).append(Nn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(en,Nn={}){return this.request("OPTIONS",en,Nn)}patch(en,Nn,jn={}){return this.request("PATCH",en,be(jn,Nn))}post(en,Nn,jn={}){return this.request("POST",en,be(jn,Nn))}put(en,Nn,jn={}){return this.request("PUT",en,be(jn,Nn))}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO(Q))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const $e=/^\)\]\}',?\n/;function dt(Nt){if(Nt.url)return Nt.url;const nn=R.toLocaleLowerCase();return Nt.headers.get(nn)}const yt=new h.nKC("");let Et=(()=>{class Nt{fetchImpl=(0,h.WQX)(rt,{optional:!0})?.fetch??((...en)=>globalThis.fetch(...en));ngZone=(0,h.WQX)(d.SKi);destroyRef=(0,h.WQX)(h.abz);handle(en){return new j.c(Nn=>{const jn=new AbortController;let Un;return this.doRequest(en,jn.signal,Nn).then(Mn,ui=>Nn.error(new Me({error:ui}))),en.timeout&&(Un=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{jn.signal.aborted||jn.abort(new DOMException("signal timed out","TimeoutError"))},en.timeout))),()=>{void 0!==Un&&clearTimeout(Un),jn.abort()}})}doRequest(en,Nn,jn){var Un=this;return(0,A.A)(function*(){const ui=Un.createRequestInit(en);let gn;try{const ma=Un.ngZone.runOutsideAngular(()=>Un.fetchImpl(en.urlWithParams,{signal:Nn,...ui}));(function S(Nt){Nt.then(Mn,Mn)})(ma),jn.next({type:Oe.Sent}),gn=yield ma}catch(ma){return void jn.error(new Me({error:ma,status:ma.status??0,statusText:ma.statusText,url:en.urlWithParams,headers:ma.headers}))}const zn=new ie(gn.headers),kn=gn.statusText,Kn=dt(gn)??en.urlWithParams;let ci=gn.status,Xn=null;if(en.reportProgress&&jn.next(new ce({headers:zn,status:ci,statusText:kn,url:Kn})),gn.body){const ma=gn.headers.get("content-length"),ua=[],dn=gn.body.getReader();let Zn,hi,Ln=0;const Gn=typeof Zone<"u"&&Zone.current;let Jn=!1;if(yield Un.ngZone.runOutsideAngular((0,A.A)(function*(){for(;;){if(Un.destroyRef.destroyed){yield dn.cancel(),Jn=!0;break}const{done:_a,value:Sa}=yield dn.read();if(_a)break;if(ua.push(Sa),Ln+=Sa.length,en.reportProgress){hi="text"===en.responseType?(hi??"")+(Zn??=new TextDecoder).decode(Sa,{stream:!0}):void 0;const un=()=>jn.next({type:Oe.DownloadProgress,total:ma?+ma:void 0,loaded:Ln,partialText:hi});Gn?Gn.run(un):un()}}})),Jn)return void jn.complete();const Bi=Un.concatChunks(ua,Ln);try{const _a=gn.headers.get(x)??"";Xn=Un.parseBody(en,Bi,_a,ci)}catch(_a){return void jn.error(new Me({error:_a,headers:new ie(gn.headers),status:gn.status,statusText:gn.statusText,url:dt(gn)??en.urlWithParams}))}}0===ci&&(ci=Xn?200:0);const sa=gn.redirected;ci>=200&&ci<300?(jn.next(new Re({body:Xn,headers:zn,status:ci,statusText:kn,url:Kn,redirected:sa})),jn.complete()):jn.error(new Me({error:Xn,headers:zn,status:ci,statusText:kn,url:Kn,redirected:sa}))})()}parseBody(en,Nn,jn,Un){switch(en.responseType){case"json":const ui=(new TextDecoder).decode(Nn).replace($e,"");if(""===ui)return null;try{return JSON.parse(ui)}catch(gn){if(Un<200||Un>=300)return ui;throw gn}case"text":return(new TextDecoder).decode(Nn);case"blob":return new Blob([Nn],{type:jn});case"arraybuffer":return Nn.buffer}}createRequestInit(en){const Nn={};let jn;if(jn=en.credentials,en.withCredentials&&(jn="include"),en.headers.forEach((Un,ui)=>Nn[Un]=ui.join(",")),en.headers.has(Y)||(Nn[Y]=re),!en.headers.has(x)){const Un=en.detectContentTypeHeader();null!==Un&&(Nn[x]=Un)}return{body:en.serializeBody(),method:en.method,headers:Nn,credentials:jn,keepalive:en.keepalive,cache:en.cache,priority:en.priority,mode:en.mode,redirect:en.redirect,referrer:en.referrer,integrity:en.integrity}}concatChunks(en,Nn){const jn=new Uint8Array(Nn);let Un=0;for(const ui of en)jn.set(ui,Un),Un+=ui.length;return jn}static \u0275fac=function(Nn){return new(Nn||Nt)};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();class rt{}function Mn(){}function Xt(Nt,nn){return nn(Nt)}function de(Nt,nn){return(en,Nn)=>nn.intercept(en,{handle:jn=>Nt(jn,Nn)})}const me=new h.nKC(""),Le=new h.nKC(""),et=new h.nKC(""),tn=new h.nKC("",{providedIn:"root",factory:()=>!0});function Vt(){let Nt=null;return(nn,en)=>{null===Nt&&(Nt=((0,h.WQX)(me,{optional:!0})??[]).reduceRight(de,Xt));const Nn=(0,h.WQX)(h.u5s);if((0,h.WQX)(tn)){const Un=Nn.add();return Nt(nn,en).pipe((0,F.j)(Un))}return Nt(nn,en)}}let En=(()=>{class Nt extends Q{backend;injector;chain=null;pendingTasks=(0,h.WQX)(h.u5s);contributeToStability=(0,h.WQX)(tn);constructor(en,Nn){super(),this.backend=en,this.injector=Nn}handle(en){if(null===this.chain){const Nn=Array.from(new Set([...this.injector.get(Le),...this.injector.get(et,[])]));this.chain=Nn.reduceRight((jn,Un)=>function ae(Nt,nn,en){return(Nn,jn)=>(0,h.N4e)(en,()=>nn(Nn,Un=>Nt(Un,jn)))}(jn,Un,this.injector),Xt)}if(this.contributeToStability){const Nn=this.pendingTasks.add();return this.chain(en,jn=>this.backend.handle(jn)).pipe((0,F.j)(Nn))}return this.chain(en,Nn=>this.backend.handle(Nn))}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO($),h.KVO(h.uvJ))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const zt=/^\)\]\}',?\n/,Ye=RegExp(`^${R}:`,"m");let He=(()=>{class Nt{xhrFactory;constructor(en){this.xhrFactory=en}handle(en){if("JSONP"===en.method)throw new h.buA(-2800,!1);const Nn=this.xhrFactory;return(0,ee.of)(null).pipe((0,K.n)(()=>new j.c(Un=>{const ui=Nn.build();if(ui.open(en.method,en.urlWithParams),en.withCredentials&&(ui.withCredentials=!0),en.headers.forEach((ua,dn)=>ui.setRequestHeader(ua,dn.join(","))),en.headers.has(Y)||ui.setRequestHeader(Y,re),!en.headers.has(x)){const ua=en.detectContentTypeHeader();null!==ua&&ui.setRequestHeader(x,ua)}if(en.timeout&&(ui.timeout=en.timeout),en.responseType){const ua=en.responseType.toLowerCase();ui.responseType="json"!==ua?ua:"text"}const gn=en.serializeBody();let zn=null;const kn=()=>{if(null!==zn)return zn;const ua=ui.statusText||"OK",dn=new ie(ui.getAllResponseHeaders()),Ln=function st(Nt){return"responseURL"in Nt&&Nt.responseURL?Nt.responseURL:Ye.test(Nt.getAllResponseHeaders())?Nt.getResponseHeader(R):null}(ui)||en.url;return zn=new ce({headers:dn,status:ui.status,statusText:ua,url:Ln}),zn},Kn=()=>{let{headers:ua,status:dn,statusText:Ln,url:Zn}=kn(),hi=null;204!==dn&&(hi=typeof ui.response>"u"?ui.responseText:ui.response),0===dn&&(dn=hi?200:0);let Gn=dn>=200&&dn<300;if("json"===en.responseType&&"string"==typeof hi){const Jn=hi;hi=hi.replace(zt,"");try{hi=""!==hi?JSON.parse(hi):null}catch(Bi){hi=Jn,Gn&&(Gn=!1,hi={error:Bi,text:hi})}}Gn?(Un.next(new Re({body:hi,headers:ua,status:dn,statusText:Ln,url:Zn||void 0})),Un.complete()):Un.error(new Me({error:hi,headers:ua,status:dn,statusText:Ln,url:Zn||void 0}))},ci=ua=>{const{url:dn}=kn(),Ln=new Me({error:ua,status:ui.status||0,statusText:ui.statusText||"Unknown Error",url:dn||void 0});Un.error(Ln)};let Xn=ci;en.timeout&&(Xn=ua=>{const{url:dn}=kn(),Ln=new Me({error:new DOMException("Request timed out","TimeoutError"),status:ui.status||0,statusText:ui.statusText||"Request timeout",url:dn||void 0});Un.error(Ln)});let aa=!1;const sa=ua=>{aa||(Un.next(kn()),aa=!0);let dn={type:Oe.DownloadProgress,loaded:ua.loaded};ua.lengthComputable&&(dn.total=ua.total),"text"===en.responseType&&ui.responseText&&(dn.partialText=ui.responseText),Un.next(dn)},ma=ua=>{let dn={type:Oe.UploadProgress,loaded:ua.loaded};ua.lengthComputable&&(dn.total=ua.total),Un.next(dn)};return ui.addEventListener("load",Kn),ui.addEventListener("error",ci),ui.addEventListener("timeout",Xn),ui.addEventListener("abort",ci),en.reportProgress&&(ui.addEventListener("progress",sa),null!==gn&&ui.upload&&ui.upload.addEventListener("progress",ma)),ui.send(gn),Un.next({type:Oe.Sent}),()=>{ui.removeEventListener("error",ci),ui.removeEventListener("abort",ci),ui.removeEventListener("load",Kn),ui.removeEventListener("timeout",Xn),en.reportProgress&&(ui.removeEventListener("progress",sa),null!==gn&&ui.upload&&ui.upload.removeEventListener("progress",ma)),ui.readyState!==ui.DONE&&ui.abort()}})))}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO(V.N))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const Wt=new h.nKC(""),We=new h.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),St=new h.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class At{}let fn=(()=>{class Nt{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(en,Nn){this.doc=en,this.cookieName=Nn}getToken(){const en=this.doc.cookie||"";return en!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,V.b)(en,this.cookieName),this.lastCookieString=en),this.lastToken}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO(h.qQL),h.KVO(We))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const mt=/^(?:https?:)?\/\//i;function It(Nt,nn){if(!(0,h.WQX)(Wt)||"GET"===Nt.method||"HEAD"===Nt.method||mt.test(Nt.url))return nn(Nt);const en=(0,h.WQX)(At).getToken(),Nn=(0,h.WQX)(St);return null!=en&&!Nt.headers.has(Nn)&&(Nt=Nt.clone({headers:Nt.headers.set(Nn,en)})),nn(Nt)}var In=function(Nt){return Nt[Nt.Interceptors=0]="Interceptors",Nt[Nt.LegacyInterceptors=1]="LegacyInterceptors",Nt[Nt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Nt[Nt.NoXsrfProtection=3]="NoXsrfProtection",Nt[Nt.JsonpSupport=4]="JsonpSupport",Nt[Nt.RequestsMadeViaParent=5]="RequestsMadeViaParent",Nt[Nt.Fetch=6]="Fetch",Nt}(In||{});function ei(Nt,nn){return{\u0275kind:Nt,\u0275providers:nn}}function Li(...Nt){const nn=[nt,He,En,{provide:Q,useExisting:En},{provide:$,useFactory:()=>(0,h.WQX)(yt,{optional:!0})??(0,h.WQX)(He)},{provide:Le,useValue:It,multi:!0},{provide:Wt,useValue:!0},{provide:At,useClass:fn}];for(const en of Nt)nn.push(...en.\u0275providers);return(0,h.EmA)(nn)}const Ot=new h.nKC("");function Ze(){return ei(In.LegacyInterceptors,[{provide:Ot,useFactory:Vt},{provide:Le,useExisting:Ot,multi:!0}])}function $n(){return ei(In.Fetch,[Et,{provide:yt,useExisting:Et},{provide:$,useExisting:Et}])}let Ii=(()=>{class Nt{static \u0275fac=function(Nn){return new(Nn||Nt)};static \u0275mod=d.$C({type:Nt});static \u0275inj=h.G2t({providers:[Li(Ze())]})}return Nt})()},52512(ke,q,l){"use strict";function i(p,D){D=encodeURIComponent(D);for(const o of p.split(";")){const e=o.indexOf("="),[A,h]=-1==e?[o,""]:[o.slice(0,e),o.slice(e+1)];if(A.trim()===D)return decodeURIComponent(h)}return null}l.d(q,{N:()=>g,b:()=>i});class g{}},17705(ke,q,l){"use strict";l.d(q,{ES_:()=>vt,HJs:()=>Io,Hbi:()=>vi,L39:()=>di,MKu:()=>Eo,Udg:()=>ji,_q3:()=>Sr,a0P:()=>Al,cCO:()=>rn,ebz:()=>Ar,fpN:()=>ns,gRc:()=>Ni,geq:()=>Cs,hFB:()=>$a,naY:()=>ct,oH4:()=>Yr,sbv:()=>zo,uEv:()=>Vl});var ht=l(2615),Gt=l(48440),cn=l(73664),si=l(59295);const pi=Symbol("InputSignalNode#UNSET"),Oi={...Gt.s0,transformFn:void 0,applyValueToInputSignal(Bt,ft){(0,Gt.j2)(Bt,ft)}};function mn(Bt,ft){const Tt=Object.create(Oi);function on(){if((0,Gt.mK)(Tt),Tt.value===pi)throw new ht.buA(-950,null);return Tt.value}return Tt.value=Bt,Tt.transformFn=ft?.transform,on[Gt.bh]=Tt,on}class vt{attributeName;constructor(ft){this.attributeName=ft}__NG_ELEMENT_ID__=()=>(0,cn.kS0)(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}const rn=new ht.nKC("");function va(Bt,ft){return mn(Bt,ft)}rn.__NG_ELEMENT_ID__=Bt=>{const ft=(0,ht.Mx4)();if(null===ft)throw new ht.buA(204,!1);if(2&ft.type)return ft.value;if(8&Bt)return null;throw new ht.buA(204,!1)};const $a=(va.required=function Va(Bt){return mn(pi,Bt)},va);function ir(Bt,ft){return(0,cn.mU9)(ft)}const Ar=(ir.required=function Ga(Bt,ft){return(0,cn.hnC)(ft)},ir);function us(Bt,ft){return(0,cn.mU9)(ft)}const zo=(us.required=function hs(Bt,ft){return(0,cn.hnC)(ft)},us);function ms(Bt,ft){const Tt=Object.create(Oi),on=new si.Zf;function Hn(){return(0,Gt.mK)(Tt),bo(Tt.value),Tt.value}return Tt.value=Bt,Hn[Gt.bh]=Tt,Hn.asReadonly=ht.HO5.bind(Hn),Hn.set=ni=>{Tt.equal(Tt.value,ni)||((0,Gt.j2)(Tt,ni),on.emit(ni))},Hn.update=ni=>{bo(Tt.value),Hn.set(ni(Tt.value))},Hn.subscribe=on.subscribe.bind(on),Hn.destroyRef=on.destroyRef,Hn}function bo(Bt){if(Bt===pi)throw new ht.buA(952,!1)}function Zr(Bt,ft){return ms(Bt)}const Cs=(Zr.required=function js(Bt){return ms(pi)},Zr),ar=new ht.nKC(""),Xr=new ht.nKC("");function Kr(Bt){return!Bt.moduleRef}let Hi;function Mr(){Hi=gs}function gs(Bt,ft){const Tt=Bt.injector.get(cn.o8S);if(Bt._bootstrapComponents.length>0)Bt._bootstrapComponents.forEach(on=>Tt.bootstrap(on));else{if(!Bt.instance.ngDoBootstrap)throw new ht.buA(-403,!1);Bt.instance.ngDoBootstrap(Tt)}ft.push(Bt)}let Pa=(()=>{class Bt{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(Tt){this._injector=Tt}bootstrapModuleFactory(Tt,on){const Hn=on?.scheduleInRootZone,Mi=on?.ignoreChangesOutsideZone,ki=[(0,cn.SdI)({ngZoneFactory:()=>(0,cn.G5x)(on?.ngZone,{...(0,cn.cZr)({eventCoalescing:on?.ngZoneEventCoalescing,runCoalescing:on?.ngZoneRunCoalescing}),scheduleInRootZone:Hn}),ignoreChangesOutsideZone:Mi}),{provide:ht.hk6,useExisting:cn.Ts$},ht.gv8],$i=(0,cn.VzW)(Tt.moduleType,this.injector,ki);return Mr(),function Ms(Bt){const ft=Kr(Bt)?Bt.r3Injector:Bt.moduleRef.injector,Tt=ft.get(cn.SKi);return Tt.run(()=>{Kr(Bt)?Bt.r3Injector.resolveInjectorInitializers():Bt.moduleRef.resolveInjectorInitializers();const on=ft.get(ht.ZTf);let Hn;if(Tt.runOutsideAngular(()=>{Hn=Tt.onError.subscribe({next:on})}),Kr(Bt)){const ni=()=>ft.destroy(),Mi=Bt.platformInjector.get(ar);Mi.add(ni),ft.onDestroy(()=>{Hn.unsubscribe(),Mi.delete(ni)})}else{const ni=()=>Bt.moduleRef.destroy(),Mi=Bt.platformInjector.get(ar);Mi.add(ni),Bt.moduleRef.onDestroy(()=>{(0,cn.TFI)(Bt.allPlatformModules,Bt.moduleRef),Hn.unsubscribe(),Mi.delete(ni)})}return function qr(Bt,ft,Tt){try{const on=Tt();return(0,cn.yLl)(on)?on.catch(Hn=>{throw ft.runOutsideAngular(()=>Bt(Hn)),Hn}):on}catch(on){throw ft.runOutsideAngular(()=>Bt(on)),on}}(on,Tt,()=>{const ni=ft.get(ht.rev),Mi=ni.add(),ki=ft.get(cn.H1s);return ki.runInitializers(),ki.donePromise.then(()=>{const $i=ft.get(cn.xe9,cn.DkB);if((0,cn.e6s)($i||cn.DkB),!ft.get(Xr,!0))return Kr(Bt)?ft.get(cn.o8S):(Bt.allPlatformModules.push(Bt.moduleRef),Bt.moduleRef);if(Kr(Bt)){const ba=ft.get(cn.o8S);return void 0!==Bt.rootComponent&&ba.bootstrap(Bt.rootComponent),ba}return Hi?.(Bt.moduleRef,Bt.allPlatformModules),Bt.moduleRef}).finally(()=>{ni.remove(Mi)})})})}({moduleRef:$i,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(Tt,on=[]){const Hn=(0,cn.lJT)({},on);return Mr(),function Jo(Bt,ft,Tt){const on=new cn.Co$(Tt);return Promise.resolve(on)}(0,0,Tt).then(ni=>this.bootstrapModuleFactory(ni,Hn))}onDestroy(Tt){this._destroyListeners.push(Tt)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ht.buA(404,!1);this._modules.slice().forEach(on=>on.destroy()),this._destroyListeners.forEach(on=>on());const Tt=this._injector.get(ar,null);Tt&&(Tt.forEach(on=>on()),Tt.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(on){return new(on||Bt)((0,ht.KVO)(ht.zZn))};static \u0275prov=(0,ht.jDH)({token:Bt,factory:Bt.\u0275fac,providedIn:"platform"})}return Bt})(),_s=null;function Yr(Bt,ft,Tt=[]){const on=`Platform: ${ft}`,Hn=new ht.nKC(on);return(ni=[])=>{let Mi=Za();if(!Mi){const ki=[...Tt,...ni,{provide:Hn,useValue:!0}];Mi=Bt?.(ki)??function es(Bt){if(Za())throw new ht.buA(400,!1);(0,cn.pl0)(),(0,cn.ypd)(),_s=Bt;const ft=Bt.get(Pa);return function Ws(Bt){const ft=Bt.get(cn.PLl,null);(0,ht.N4e)(Bt,()=>{ft?.forEach(Tt=>Tt())})}(Bt),ft}(function Aa(Bt=[],ft){return ht.zZn.create({name:ft,providers:[{provide:ht.GBX,useValue:"platform"},{provide:ar,useValue:new Set([()=>_s=null])},...Bt]})}(ki,on))}return function Ha(){const ft=Za();if(!ft)throw new ht.buA(-401,!1);return ft}()}}function Za(){return _s?.get(Pa)??null}function ct(){return!1}let Ni=(()=>class Bt{static __NG_ELEMENT_ID__=ca})();function ca(Bt){return function Er(Bt,ft,Tt){if((0,ht.Qs1)(Bt)&&!Tt){const on=(0,ht.KdJ)(Bt.index,ft);return new cn.NCX(on,on)}return 175&Bt.type?new cn.NCX(ft[ht.b5C],ft):null}((0,ht.Mx4)(),(0,ht.OAn)(),!(16&~Bt))}class _t{constructor(){}supports(ft){return(0,cn.ozJ)(ft)}create(ft){return new Bn(ft)}}const xn=(Bt,ft)=>ft;class Bn{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(ft){this._trackByFn=ft||xn}forEachItem(ft){let Tt;for(Tt=this._itHead;null!==Tt;Tt=Tt._next)ft(Tt)}forEachOperation(ft){let Tt=this._itHead,on=this._removalsHead,Hn=0,ni=null;for(;Tt||on;){const Mi=!on||Tt&&Tt.currentIndex{Mi=this._trackByFn(Hn,ki),null!==Tt&&Object.is(Tt.trackById,Mi)?(on&&(Tt=this._verifyReinsertion(Tt,ki,Mi,Hn)),Object.is(Tt.item,ki)||this._addIdentityChange(Tt,ki)):(Tt=this._mismatch(Tt,ki,Mi,Hn),on=!0),Tt=Tt._next,Hn++}),this.length=Hn;return this._truncate(Tt),this.collection=ft,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let ft;for(ft=this._previousItHead=this._itHead;null!==ft;ft=ft._next)ft._nextPrevious=ft._next;for(ft=this._additionsHead;null!==ft;ft=ft._nextAdded)ft.previousIndex=ft.currentIndex;for(this._additionsHead=this._additionsTail=null,ft=this._movesHead;null!==ft;ft=ft._nextMoved)ft.previousIndex=ft.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(ft,Tt,on,Hn){let ni;return null===ft?ni=this._itTail:(ni=ft._prev,this._remove(ft)),null!==(ft=null===this._unlinkedRecords?null:this._unlinkedRecords.get(on,null))?(Object.is(ft.item,Tt)||this._addIdentityChange(ft,Tt),this._reinsertAfter(ft,ni,Hn)):null!==(ft=null===this._linkedRecords?null:this._linkedRecords.get(on,Hn))?(Object.is(ft.item,Tt)||this._addIdentityChange(ft,Tt),this._moveAfter(ft,ni,Hn)):ft=this._addAfter(new wi(Tt,on),ni,Hn),ft}_verifyReinsertion(ft,Tt,on,Hn){let ni=null===this._unlinkedRecords?null:this._unlinkedRecords.get(on,null);return null!==ni?ft=this._reinsertAfter(ni,ft._prev,Hn):ft.currentIndex!=Hn&&(ft.currentIndex=Hn,this._addToMoves(ft,Hn)),ft}_truncate(ft){for(;null!==ft;){const Tt=ft._next;this._addToRemovals(this._unlink(ft)),ft=Tt}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(ft,Tt,on){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(ft);const Hn=ft._prevRemoved,ni=ft._nextRemoved;return null===Hn?this._removalsHead=ni:Hn._nextRemoved=ni,null===ni?this._removalsTail=Hn:ni._prevRemoved=Hn,this._insertAfter(ft,Tt,on),this._addToMoves(ft,on),ft}_moveAfter(ft,Tt,on){return this._unlink(ft),this._insertAfter(ft,Tt,on),this._addToMoves(ft,on),ft}_addAfter(ft,Tt,on){return this._insertAfter(ft,Tt,on),this._additionsTail=null===this._additionsTail?this._additionsHead=ft:this._additionsTail._nextAdded=ft,ft}_insertAfter(ft,Tt,on){const Hn=null===Tt?this._itHead:Tt._next;return ft._next=Hn,ft._prev=Tt,null===Hn?this._itTail=ft:Hn._prev=ft,null===Tt?this._itHead=ft:Tt._next=ft,null===this._linkedRecords&&(this._linkedRecords=new ur),this._linkedRecords.put(ft),ft.currentIndex=on,ft}_remove(ft){return this._addToRemovals(this._unlink(ft))}_unlink(ft){null!==this._linkedRecords&&this._linkedRecords.remove(ft);const Tt=ft._prev,on=ft._next;return null===Tt?this._itHead=on:Tt._next=on,null===on?this._itTail=Tt:on._prev=Tt,ft}_addToMoves(ft,Tt){return ft.previousIndex===Tt||(this._movesTail=null===this._movesTail?this._movesHead=ft:this._movesTail._nextMoved=ft),ft}_addToRemovals(ft){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ur),this._unlinkedRecords.put(ft),ft.currentIndex=null,ft._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=ft,ft._prevRemoved=null):(ft._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=ft),ft}_addIdentityChange(ft,Tt){return ft.item=Tt,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=ft:this._identityChangesTail._nextIdentityChange=ft,ft}}class wi{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(ft,Tt){this.item=ft,this.trackById=Tt}}class Ea{_head=null;_tail=null;add(ft){null===this._head?(this._head=this._tail=ft,ft._nextDup=null,ft._prevDup=null):(this._tail._nextDup=ft,ft._prevDup=this._tail,ft._nextDup=null,this._tail=ft)}get(ft,Tt){let on;for(on=this._head;null!==on;on=on._nextDup)if((null===Tt||Tt<=on.currentIndex)&&Object.is(on.trackById,ft))return on;return null}remove(ft){const Tt=ft._prevDup,on=ft._nextDup;return null===Tt?this._head=on:Tt._nextDup=on,null===on?this._tail=Tt:on._prevDup=Tt,null===this._head}}class ur{map=new Map;put(ft){const Tt=ft.trackById;let on=this.map.get(Tt);on||(on=new Ea,this.map.set(Tt,on)),on.add(ft)}get(ft,Tt){const Hn=this.map.get(ft);return Hn?Hn.get(ft,Tt):null}remove(ft){const Tt=ft.trackById;return this.map.get(Tt).remove(ft)&&this.map.delete(Tt),ft}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eo(Bt,ft,Tt){const on=Bt.previousIndex;if(null===on)return on;let Hn=0;return Tt&&on{if(Tt&&Tt.key===Hn)this._maybeAddToChanges(Tt,on),this._appendAfter=Tt,Tt=Tt._next;else{const ni=this._getOrCreateRecordForKey(Hn,on);Tt=this._insertBeforeOrAppend(Tt,ni)}}),Tt){Tt._prev&&(Tt._prev._next=null),this._removalsHead=Tt;for(let on=Tt;null!==on;on=on._nextRemoved)on===this._mapHead&&(this._mapHead=null),this._records.delete(on.key),on._nextRemoved=on._next,on.previousValue=on.currentValue,on.currentValue=null,on._prev=null,on._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(ft,Tt){if(ft){const on=ft._prev;return Tt._next=ft,Tt._prev=on,ft._prev=Tt,on&&(on._next=Tt),ft===this._mapHead&&(this._mapHead=Tt),this._appendAfter=ft,ft}return this._appendAfter?(this._appendAfter._next=Tt,Tt._prev=this._appendAfter):this._mapHead=Tt,this._appendAfter=Tt,null}_getOrCreateRecordForKey(ft,Tt){if(this._records.has(ft)){const Hn=this._records.get(ft);this._maybeAddToChanges(Hn,Tt);const ni=Hn._prev,Mi=Hn._next;return ni&&(ni._next=Mi),Mi&&(Mi._prev=ni),Hn._next=null,Hn._prev=null,Hn}const on=new qo(ft);return this._records.set(ft,on),on.currentValue=Tt,this._addToAdditions(on),on}_reset(){if(this.isDirty){let ft;for(this._previousMapHead=this._mapHead,ft=this._previousMapHead;null!==ft;ft=ft._next)ft._nextPrevious=ft._next;for(ft=this._changesHead;null!==ft;ft=ft._nextChanged)ft.previousValue=ft.currentValue;for(ft=this._additionsHead;null!=ft;ft=ft._nextAdded)ft.previousValue=ft.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(ft,Tt){Object.is(Tt,ft.currentValue)||(ft.previousValue=ft.currentValue,ft.currentValue=Tt,this._addToChanges(ft))}_addToAdditions(ft){null===this._additionsHead?this._additionsHead=this._additionsTail=ft:(this._additionsTail._nextAdded=ft,this._additionsTail=ft)}_addToChanges(ft){null===this._changesHead?this._changesHead=this._changesTail=ft:(this._changesTail._nextChanged=ft,this._changesTail=ft)}_forEach(ft,Tt){ft instanceof Map?ft.forEach(Tt):Object.keys(ft).forEach(on=>Tt(ft[on],on))}}class qo{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(ft){this.key=ft}}function yl(){return new Sr([new _t])}let Sr=(()=>{class Bt{factories;static \u0275prov=(0,ht.jDH)({token:Bt,providedIn:"root",factory:yl});constructor(Tt){this.factories=Tt}static create(Tt,on){if(null!=on){const Hn=on.factories.slice();Tt=Tt.concat(Hn)}return new Bt(Tt)}static extend(Tt){return{provide:Bt,useFactory:()=>{const on=(0,ht.WQX)(Bt,{optional:!0,skipSelf:!0});return Bt.create(Tt,on||yl())}}}find(Tt){const on=this.factories.find(Hn=>Hn.supports(Tt));if(null!=on)return on;throw new ht.buA(901,!1)}}return Bt})();function Mo(){return new Eo([new Co])}let Eo=(()=>{class Bt{static \u0275prov=(0,ht.jDH)({token:Bt,providedIn:"root",factory:Mo});factories;constructor(Tt){this.factories=Tt}static create(Tt,on){if(on){const Hn=on.factories.slice();Tt=Tt.concat(Hn)}return new Bt(Tt)}static extend(Tt){return{provide:Bt,useFactory:()=>{const on=(0,ht.WQX)(Bt,{optional:!0,skipSelf:!0});return Bt.create(Tt,on||Mo())}}}find(Tt){const on=this.factories.find(Hn=>Hn.supports(Tt));if(on)return on;throw new ht.buA(901,!1)}}return Bt})();const ns=Yr(null,"core",[]);let vi=(()=>{class Bt{constructor(Tt){}static \u0275fac=function(on){return new(on||Bt)((0,ht.KVO)(cn.o8S))};static \u0275mod=(0,cn.$C)({type:Bt});static \u0275inj=(0,ht.G2t)({})}return Bt})();function di(Bt){return"boolean"==typeof Bt?Bt:null!=Bt&&"false"!==Bt}function ji(Bt,ft=NaN){return isNaN(parseFloat(Bt))||isNaN(Number(Bt))?ft:Number(Bt)}const pl=Symbol("NOT_SET"),il=new Set,Lo={...Gt.s0,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:pl,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(null===this.sequence.lastPhase||this.sequence.lastPhase((0,Gt.mK)(ra),ra.value),ra.signal[Gt.bh]=ra,ra.registerCleanupFn=ba=>(ra.cleanup??=new Set).add(ba),this.nodes[ki]=ra,this.hooks[ki]=ba=>ra.phaseFn(ba)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(const ft of this.nodes)if(ft)try{for(const Tt of ft.cleanup??il)Tt()}finally{(0,Gt.XR)(ft)}}}function Vl(Bt,ft){const Tt=ft?.injector??(0,ht.WQX)(ht.zZn),on=Tt.get(ht.hk6),Hn=Tt.get(cn.cf$),ni=Tt.get(cn.a8H,null,{optional:!0});Hn.impl??=Tt.get(cn.ziy);let Mi=Bt;"function"==typeof Mi&&(Mi={mixedReadWrite:Bt});const ki=Tt.get(ht.r4V,null,{optional:!0}),$i=new Dl(Hn.impl,[Mi.earlyRead,Mi.write,Mi.mixedReadWrite,Mi.read],ki?.view,on,Tt,ni?.snapshot(null));return Hn.impl.register($i),$i}function Al(Bt,ft){const Tt=(0,ht.xUg)(Bt),on=ft.elementInjector||(0,ht.WB9)();return new cn.eHC(Tt).create(on,ft.projectableNodes,ft.hostElement,ft.environmentInjector,ft.directives,ft.bindings)}function Io(Bt){const ft=(0,ht.xUg)(Bt);if(!ft)return null;const Tt=new cn.eHC(ft);return{get selector(){return Tt.selector},get type(){return Tt.componentType},get inputs(){return Tt.inputs},get outputs(){return Tt.outputs},get ngContentSelectors(){return Tt.ngContentSelectors},get isStandalone(){return ft.standalone},get isSignal(){return ft.signals}}}},73664(ke,q,l){"use strict";l.d(q,{$C:()=>_p,$Ln:()=>c8,AVh:()=>B4,Ab1:()=>G1,Agw:()=>Go,Avn:()=>mm,B1s:()=>Mt,BIS:()=>Ho,BMQ:()=>Yp,C4Q:()=>Bd,C5r:()=>Y6,C6U:()=>T_,C7A:()=>Rr,Co$:()=>fp,DH7:()=>s5,DNE:()=>v4,DUP:()=>Yo,DkB:()=>u6,Dyx:()=>W8,E5c:()=>B6,EFF:()=>U4,EJ8:()=>V3,FsC:()=>U3,FuF:()=>O3,G5x:()=>zc,GBs:()=>E_,H1s:()=>Bp,HbH:()=>B_,Hgh:()=>a6,JRh:()=>N6,Jt5:()=>d6,Jv_:()=>g5,KED:()=>z9,LHq:()=>Em,Lme:()=>F6,NAR:()=>M_,NCX:()=>Fd,NOj:()=>W2,NSC:()=>M2,NYb:()=>x7,NyB:()=>D_,OA$:()=>St,OR8:()=>Kc,Ocv:()=>dy,Ol2:()=>z3,PLl:()=>Vo,PYC:()=>An,PYt:()=>cl,PeT:()=>y4,QTQ:()=>Ac,Ql9:()=>ay,R50:()=>U6,R7$:()=>rd,RPW:()=>zi,RV6:()=>Q8,SKi:()=>pr,SdG:()=>M6,SdI:()=>Z5,SpI:()=>V4,TFI:()=>S4,Ts$:()=>ag,UQu:()=>iy,V5L:()=>Rm,VBU:()=>pp,VeQ:()=>xl,VkB:()=>u5,Vt3:()=>m4,VwU:()=>xm,VzW:()=>mp,WPN:()=>Ta,XpG:()=>x_,Xx1:()=>Pe,Y8G:()=>cm,YEm:()=>hr,Z7z:()=>H8,Zhj:()=>lp,_9s:()=>Xc,_9u:()=>Bl,_jY:()=>Qs,_qm:()=>js,_ys:()=>au,a8H:()=>Fc,aCM:()=>wt,aKT:()=>Pr,ai1:()=>h5,bIt:()=>bm,bMT:()=>I5,bVm:()=>yh,bc$:()=>ws,bkB:()=>lc,brH:()=>k5,c1b:()=>Qo,cDI:()=>kr,cZr:()=>tg,cdK:()=>u8,cf$:()=>b1,czy:()=>Ad,d80:()=>ry,dOL:()=>l8,e6s:()=>bv,eHC:()=>o2,eq3:()=>Tm,eu8:()=>s6,eux:()=>vh,fX1:()=>G8,gXe:()=>Ui,giA:()=>J3,gil:()=>_r,hnC:()=>$s,i5U:()=>K6,iLQ:()=>f8,iWE:()=>Ft,j41:()=>O4,jOp:()=>Kp,k0s:()=>dm,kBR:()=>c6,kS0:()=>va,kdw:()=>Qe,lJ4:()=>b5,lJT:()=>p8,l_i:()=>x5,lsd:()=>S_,mGM:()=>w_,mNQ:()=>d5,mU9:()=>f2,mal:()=>M0,mxI:()=>wm,n$t:()=>B2,nI1:()=>A5,nI4:()=>lu,nM4:()=>xp,nVh:()=>z8,npT:()=>l0,nrm:()=>i6,o8S:()=>q3,ozJ:()=>e4,p2i:()=>ai,phd:()=>M7,pl0:()=>m8,qex:()=>hm,rAh:()=>On,rOR:()=>Uo,rXU:()=>ys,rj2:()=>um,sFG:()=>$f,sMw:()=>C5,sZ2:()=>ns,sdS:()=>A_,sgu:()=>dp,tSv:()=>H2,tvf:()=>Wo,uiO:()=>le,utN:()=>Ym,vDg:()=>Qm,vxM:()=>U8,w6W:()=>B3,wEZ:()=>Cm,wni:()=>E6,wr$:()=>id,xGo:()=>vt,xc7:()=>I6,xe9:()=>q5,yLl:()=>d8,y_5:()=>Fe,ypd:()=>E7,ziy:()=>Uc,zoo:()=>C0});var qt=l(10467),S=l(2615),Xt=l(48440),de=l(21413),ae=l(18359),me=l(96354);function Le(n){return{toString:n}.toString()}const et="__annotations__",tn="__parameters__",Vt="__prop__metadata__";function hn(n,r,c,b,k){return Le(()=>{const W=En(r);function te(...xe){if(this instanceof te)return W.call(this,...xe),this;const Ae=new te(...xe);return function(Ct){return k&&k(Ct,...xe),(Ct.hasOwnProperty(et)?Ct[et]:Object.defineProperty(Ct,et,{value:[]})[et]).push(Ae),Ct}}return c&&(te.prototype=Object.create(c.prototype)),te.prototype.ngMetadataName=n,te.annotationCls=te,te})}function En(n){return function(...c){if(n){const b=n(...c);for(const k in b)this[k]=b[k]}}}function _n(n,r,c){return Le(()=>{const b=En(r);function k(...W){if(this instanceof k)return b.apply(this,W),this;const te=new k(...W);return xe.annotation=te,xe;function xe(Ae,ut,Ct){const Zt=Ae.hasOwnProperty(tn)?Ae[tn]:Object.defineProperty(Ae,tn,{value:[]})[tn];for(;Zt.length<=Ct;)Zt.push(null);return(Zt[Ct]=Zt[Ct]||[]).push(te),Ae}}return k.prototype.ngMetadataName=n,k.annotationCls=k,k})}const Fe=(0,S.z6V)(_n("Inject",n=>({token:n})),-1),Pe=(0,S.z6V)(_n("Optional"),8),Ue=(0,S.z6V)(_n("Self"),2),Qe=(0,S.z6V)(_n("SkipSelf"),4),Ie=(0,S.z6V)(_n("Host"),1);function le(n){const r=S.laP.ng;if(r&&r.\u0275compilerFacade)return r.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ne={\u0275\u0275defineInjectable:S.jDH,\u0275\u0275defineInjector:S.G2t,\u0275\u0275inject:S.KVO,\u0275\u0275invalidFactoryDep:S.dmw,resolveForwardRef:S.nl4},ze=Function;function Je(n){return"function"==typeof n}const gt=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,zt=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Ye=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,st=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class He{_reflect;constructor(r){this._reflect=r||S.laP.Reflect}factory(r){return(...c)=>new r(...c)}_zipTypesAndAnnotations(r,c){let b;b=(0,S.WfI)(typeof r>"u"?c.length:r.length);for(let k=0;k"u"?[]:r[k]&&r[k]!=Object?[r[k]]:[],c&&null!=c[k]&&(b[k]=b[k].concat(c[k]));return b}_ownParameters(r,c){if(function it(n){return gt.test(n)||st.test(n)||zt.test(n)&&!Ye.test(n)}(r.toString()))return null;if(r.parameters&&r.parameters!==c.parameters)return r.parameters;const k=r.ctorParameters;if(k&&k!==c.ctorParameters){const xe="function"==typeof k?k():k,Ae=xe.map(Ct=>Ct&&Ct.type),ut=xe.map(Ct=>Ct&&Wt(Ct.decorators));return this._zipTypesAndAnnotations(Ae,ut)}const W=r.hasOwnProperty(tn)&&r[tn],te=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",r);return te||W?this._zipTypesAndAnnotations(te,W):(0,S.WfI)(r.length)}parameters(r){if(!Je(r))return[];const c=we(r);let b=this._ownParameters(r,c);return!b&&c!==Object&&(b=this.parameters(c)),b||[]}_ownAnnotations(r,c){if(r.annotations&&r.annotations!==c.annotations){let b=r.annotations;return"function"==typeof b&&b.annotations&&(b=b.annotations),b}return r.decorators&&r.decorators!==c.decorators?Wt(r.decorators):r.hasOwnProperty(et)?r[et]:null}annotations(r){if(!Je(r))return[];const c=we(r),b=this._ownAnnotations(r,c)||[];return(c!==Object?this.annotations(c):[]).concat(b)}_ownPropMetadata(r,c){if(r.propMetadata&&r.propMetadata!==c.propMetadata){let b=r.propMetadata;return"function"==typeof b&&b.propMetadata&&(b=b.propMetadata),b}if(r.propDecorators&&r.propDecorators!==c.propDecorators){const b=r.propDecorators,k={};return Object.keys(b).forEach(W=>{k[W]=Wt(b[W])}),k}return r.hasOwnProperty(Vt)?r[Vt]:null}propMetadata(r){if(!Je(r))return{};const c=we(r),b={};if(c!==Object){const W=this.propMetadata(c);Object.keys(W).forEach(te=>{b[te]=W[te]})}const k=this._ownPropMetadata(r,c);return k&&Object.keys(k).forEach(W=>{const te=[];b.hasOwnProperty(W)&&te.push(...b[W]),te.push(...k[W]),b[W]=te}),b}ownPropMetadata(r){return Je(r)&&this._ownPropMetadata(r,we(r))||{}}hasLifecycleHook(r,c){return r instanceof ze&&c in r.prototype}}function Wt(n){return n?n.map(r=>new(0,r.type.annotationCls)(...r.args?r.args:[])):[]}function we(n){const r=n.prototype?Object.getPrototypeOf(n.prototype):null;return(r?r.constructor:null)||Object}class We{previousValue;currentValue;firstChange;constructor(r,c,b){this.previousValue=r,this.currentValue=c,this.firstChange=b}isFirstChange(){return this.firstChange}}function Lt(n,r,c,b){null!==r?r.applyValueToInputSignal(r,b):n[c]=b}const St=(()=>{const n=()=>At;return n.ngInherit=!0,n})();function At(n){return n.type.prototype.ngOnChanges&&(n.setInput=mt),fn}function fn(){const n=wn(this),r=n?.current;if(r){const c=n.previous;if(c===S.MZA)n.previous=r;else for(let b in r)c[b]=r[b];n.current=null,this.ngOnChanges(r)}}function mt(n,r,c,b,k){const W=this.declaredInputs[b],te=wn(n)||function In(n,r){return n[It]=r}(n,{previous:S.MZA,current:null}),xe=te.current||(te.current={}),Ae=te.previous,ut=Ae[W];xe[W]=new We(ut&&ut.currentValue,c,Ae===S.MZA),Lt(n,r,k,c)}const It="__ngSimpleChanges__";function wn(n){return n[It]||null}const ei=[],Ze=function(n,r=null,c){for(let b=0;b=b)break}else r[Ae]<0&&(n[S.wVl]+=65536),(xe>14>16&&(3&n[S.Wg1])===r&&(n[S.Wg1]+=16384,Ii(xe,W)):Ii(xe,W)}class nn{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(r,c,b,k){this.factory=r,this.name=k,this.canSeeViewProviders=c,this.injectImpl=b}}function Nn(n){return null!=n&&"object"==typeof n&&(null===n.insertBeforeIndex||"number"==typeof n.insertBeforeIndex||Array.isArray(n.insertBeforeIndex))}function Kn(n){return 3===n||4===n||6===n}function ci(n){return 64===n.charCodeAt(0)}function Xn(n,r){if(null!==r&&0!==r.length)if(null===n||0===n.length)n=r.slice();else{let c=-1;for(let b=0;br){te=W-1;break}}}for(;W>16}(n),b=r;for(;c>0;)b=b[S.X5O],c--;return b}let Ln=!0;function Zn(n){const r=Ln;return Ln=n,r}let Bi=0;const _a={};function un(n,r){const c=fi(n,r);if(-1!==c)return c;const b=r[S.eDl];b.firstCreatePass&&(n.injectorIndex=r.length,Sn(b.data,n),Sn(r,null),Sn(b.blueprint,null));const k=Dn(n,r),W=n.injectorIndex;if(sa(k)){const te=ma(k),xe=dn(k,r),Ae=xe[S.eDl].data;for(let ut=0;ut<8;ut++)r[W+ut]=xe[te+ut]|Ae[te+ut]}return r[W+8]=k,W}function Sn(n,r){n.push(0,0,0,0,0,0,0,0,r)}function fi(n,r){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===r[n.injectorIndex+8]?-1:n.injectorIndex}function Dn(n,r){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let c=0,b=null,k=r;for(;null!==k;){if(b=Yi(k),null===b)return-1;if(c++,k=k[S.X5O],-1!==b.injectorIndex)return b.injectorIndex|c<<16}return-1}function ti(n,r,c){!function Sa(n,r,c){let b;"string"==typeof c?b=c.charCodeAt(0)||0:c.hasOwnProperty(S.p9y)&&(b=c[S.p9y]),null==b&&(b=c[S.p9y]=Bi++);const k=255&b;r.data[n+(k>>5)]|=1<=0?255&r:xt:r}(c);if("function"==typeof W){if(!(0,S.ihb)(r,n,b))return 1&b?Xi(k,c,b):Ma(r,c,b,k);try{let te;if(te=W(b),null!=te||8&b)return te;(0,S.$Hz)(c)}finally{(0,S.niQ)()}}else if("number"==typeof W){let te=null,xe=fi(n,r),Ae=-1,ut=1&b?r[S.b5C][S.qlT]:null;for((-1===xe||4&b)&&(Ae=-1===xe?Dn(n,r):r[xe+8],-1!==Ae&&la(b,!1)?(te=r[S.eDl],xe=ma(Ae),r=dn(Ae,r)):xe=-1);-1!==xe;){const Ct=r[S.eDl];if(Oi(W,xe,Ct.data)){const Zt=ht(xe,r,c,te,b,ut);if(Zt!==_a)return Zt}Ae=r[xe+8],-1!==Ae&&la(b,r[S.eDl].data[xe+8]===ut)&&Oi(W,xe,r)?(te=Ct,xe=ma(Ae),r=dn(Ae,r)):xe=-1}}return k}function ht(n,r,c,b,k,W){const te=r[S.eDl],xe=te.data[n+8],Ct=Gt(xe,te,c,null==b?(0,S.Qs1)(xe)&&Ln:b!=te&&!!(3&xe.type),1&k&&W===xe);return null!==Ct?si(r,te,Ct,xe,k):_a}function Gt(n,r,c,b,k){const W=n.providerIndexes,te=r.data,xe=1048575&W,Ae=n.directiveStart,Ct=W>>20,yn=k?xe+Ct:n.directiveEnd;for(let Cn=b?xe:xe+Ct;Cn=Ae&&ri.type===c)return Cn}if(k){const Cn=te[Ae];if(Cn&&(0,S.JlV)(Cn)&&Cn.type===c)return Ae}return null}function si(n,r,c,b,k){let W=n[c];const te=r.data;if(W instanceof nn){const xe=W;if(xe.resolving){const Cn=(0,S.PP7)(te[c]);throw(0,S.PQT)(Cn)}const Ae=Zn(xe.canSeeViewProviders);xe.resolving=!0;const Zt=xe.injectImpl?(0,S.a2B)(xe.injectImpl):null;(0,S.ihb)(n,b,0);try{W=n[c]=xe.factory(void 0,k,te,n,b),r.firstCreatePass&&c>=b.directiveStart&&function Ge(n,r,c){const{ngOnChanges:b,ngOnInit:k,ngDoCheck:W}=r.type.prototype;if(b){const te=At(r);(c.preOrderHooks??=[]).push(n,te),(c.preOrderCheckHooks??=[]).push(n,te)}k&&(c.preOrderHooks??=[]).push(0-n,k),W&&((c.preOrderHooks??=[]).push(n,W),(c.preOrderCheckHooks??=[]).push(n,W))}(c,te[c],r)}finally{null!==Zt&&(0,S.a2B)(Zt),Zn(Ae),xe.resolving=!1,(0,S.niQ)()}}return W}function Oi(n,r,c){return!!(c[r+(n>>5)]&1<{const r=n.prototype.constructor,c=r[S.zSs]||rn(r),b=Object.prototype;let k=Object.getPrototypeOf(n.prototype).constructor;for(;k&&k!==b;){const W=k[S.zSs]||rn(k);if(W&&W!==c)return W;k=Object.getPrototypeOf(k)}return W=>new W})}function rn(n){return(0,S.Jzi)(n)?()=>{const r=rn((0,S.nl4)(n));return r&&r()}:(0,S.wGu)(n)}function Yi(n){const r=n[S.eDl],c=r.type;return 2===c?r.declTNode:1===c?n[S.qlT]:null}function va(n){return function Ci(n,r){if("class"===r)return n.classes;if("style"===r)return n.styles;const c=n.attrs;if(c){const b=c.length;let k=0;for(;k({attributeName:n,__NG_ELEMENT_ID__:()=>va(n)}));let $a=null;function Ga(n){return Ar(function ir(){return $a=$a||new He}().parameters(n))}function Ar(n){return n.map(r=>function ds(n){const r={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(n)&&n.length>0)for(let c=0;cfunction us(n,r){let c=null,b=null;n.hasOwnProperty(S.yAH)||Object.defineProperty(n,S.yAH,{get:()=>(null===c&&(c=le().compileInjectable(Ne,`ng:///${n.name}/\u0275prov.js`,function Zr(n,r){const c=r||{providedIn:null},b={name:n.name,type:n,typeArgumentCount:0,providedIn:c.providedIn};return(zo(c)||ms(c))&&void 0!==c.deps&&(b.deps=Ar(c.deps)),zo(c)?b.useClass=c.useClass:function fs(n){return hs in n}(c)?b.useValue=c.useValue:ms(c)?b.useFactory=c.useFactory:function bo(n){return void 0!==n.useExisting}(c)&&(b.useExisting=c.useExisting),b}(n,r))),c)}),n.hasOwnProperty(S.zSs)||Object.defineProperty(n,S.zSs,{get:()=>{if(null===b){const k=le();b=k.compileFactory(Ne,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,typeArgumentCount:0,deps:Ga(n),target:k.FactoryTarget.Injectable})}return b},configurable:!0})}(n,r));function Cs(){return Ka((0,S.Mx4)(),(0,S.OAn)())}function Ka(n,r){return new Pr((0,S.d31)(n,r))}let Pr=(()=>class n{nativeElement;constructor(c){this.nativeElement=c}static __NG_ELEMENT_ID__=Cs})();function Is(n){return n instanceof Pr?n.nativeElement:n}function Wr(){return this._results[Symbol.iterator]()}class Uo{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new de.B}constructor(r=!1){this._emitDistinctChangesOnly=r}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,c){return this._results.reduce(r,c)}forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,c){this.dirty=!1;const b=(0,S.Bqz)(r);(this._changesDetected=!(0,S.ng7)(this._results,b,c))&&(this._results=b,this.length=b.length,this.last=b[this.length-1],this.first=b[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(r){this._onDirty=r}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Wr}function Jr(n){return!(128&~n.flags)}var dr=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(dr||{});const ar=new Map;let Xr=0;function Mr(n){ar.delete(n[S.ID])}const Yr="__ngContext__";function Aa(n,r){(0,S.q$2)(r)?(n[Yr]=r[S.ID],function Ms(n){ar.set(n[S.ID],n)}(r)):n[Yr]=r}function Ni(n){return Er(n[S.EJG])}function ca(n){return Er(n[S.K29])}function Er(n){for(;null!==n&&!(0,S.A0l)(n);)n=n[S.K29];return n}let hl;function Bl(n){hl=n}function hr(){if(void 0!==hl)return hl;if(typeof document<"u")return document;throw new S.buA(210,!1)}const ns=new S.nKC("",{providedIn:"root",factory:()=>vi}),vi="ng",Vo=new S.nKC(""),Go=new S.nKC("",{providedIn:"platform",factory:()=>"unknown"}),ws=new S.nKC(""),Ho=new S.nKC("",{providedIn:"root",factory:()=>hr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),fo={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},xl=new S.nKC("",{providedIn:"root",factory:()=>fo});function za(){const n=new fr;return n.store=function Cl(n,r){const c=n.getElementById(r+"-state");if("SCRIPT"===c?.tagName&&c.textContent)try{return JSON.parse(c.textContent)}catch(b){console.warn("Exception while restoring TransferState for app "+r,b)}return{}}(hr(),(0,S.WQX)(ns)),n}let fr=(()=>{class n{static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:za});store={};onSerializeCallbacks={};get(c,b){return void 0!==this.store[c]?this.store[c]:b}set(c,b){this.store[c]=b}remove(c){delete this.store[c]}hasKey(c){return this.store.hasOwnProperty(c)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(c,b){this.onSerializeCallbacks[c]=b}toJson(){for(const c in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(c))try{this.store[c]=this.onSerializeCallbacks[c]()}catch(b){console.warn("Exception in onSerialize callback: ",b)}return JSON.stringify(this.store).replace(/!1}),is=new S.nKC(""),Wo=new S.nKC(""),tl={passive:!0,capture:!0},Te=new WeakMap,je=new WeakMap,Be=new WeakMap,Ke=["click","keydown"],bt=["mouseenter","mouseover","focusin"];let Ht=null,sn=0;class Rn{callbacks=new Set;listener=()=>{for(const r of this.callbacks)r()}}function di(n,r){let c=je.get(n);if(!c){c=new Rn,je.set(n,c);for(const b of Ke)n.addEventListener(b,c.listener,tl)}return c.callbacks.add(r),()=>{const{callbacks:b,listener:k}=c;if(b.delete(r),0===b.size){je.delete(n);for(const W of Ke)n.removeEventListener(W,k,tl)}}}function ji(n,r){let c=Te.get(n);if(!c){c=new Rn,Te.set(n,c);for(const b of bt)n.addEventListener(b,c.listener,tl)}return c.callbacks.add(r),()=>{const{callbacks:b,listener:k}=c;if(b.delete(r),0===b.size){for(const W of bt)n.removeEventListener(W,k,tl);Te.delete(n)}}}const Do=new S.nKC("");function Ao(n){return!(32&~n.flags)}function jl(n){let r=n._lView;return 2===r[S.eDl].type?null:((0,S.EFk)(r)&&(r=r[S.Yw1]),r)}function oa(n){return n.get(is,!1,{optional:!0})}function gi(n,r){const c=n.contentQueries;if(null!==c){const b=(0,Xt.Ht)(null);try{for(let k=0;kn,createScript:n=>n,createScriptURL:n=>n})}catch{}return uo}function ac(n){return bc()?.createHTML(n)||n}function yd(){if(void 0===Il&&(Il=null,S.laP.trustedTypes))try{Il=S.laP.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Il}function t1(n){return yd()?.createHTML(n)||n}function e0(n){return yd()?.createScript(n)||n}function T2(n){return yd()?.createScriptURL(n)||n}class Rc{changingThisBreaksApplicationSecurity;constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${S.ok8})`}}class wh extends Rc{getTypeName(){return"HTML"}}class D2 extends Rc{getTypeName(){return"Style"}}class A2 extends Rc{getTypeName(){return"Script"}}class qe extends Rc{getTypeName(){return"URL"}}class Dt extends Rc{getTypeName(){return"ResourceURL"}}function wt(n){return n instanceof Rc?n.changingThisBreaksApplicationSecurity:n}function Ft(n,r){const c=function ln(n){return n instanceof Rc&&n.getTypeName()||null}(n);if(null!=c&&c!==r){if("ResourceURL"===c&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${c} (see ${S.ok8})`)}return c===r}function An(n){return new wh(n)}function On(n){return new D2(n)}function ai(n){return new A2(n)}function Mt(n){return new qe(n)}function zi(n){return new Dt(n)}function Wi(n){const r=new Ja(n);return function Fa(){try{return!!(new window.DOMParser).parseFromString(ac(""),"text/html")}catch{return!1}}()?new Zi(r):r}class Zi{inertDocumentHelper;constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r=""+r;try{const c=(new window.DOMParser).parseFromString(ac(r),"text/html").body;return null===c?this.inertDocumentHelper.getInertBodyElement(r):(c.firstChild?.remove(),c)}catch{return null}}}class Ja{defaultDoc;inertDocument;constructor(r){this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(r){const c=this.inertDocument.createElement("template");return c.innerHTML=ac(r),c}}const Ts=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function _r(n){return(n=String(n)).match(Ts)?n:"unsafe:"+n}function vr(n){const r={};for(const c of n.split(","))r[c]=!0;return r}function yr(...n){const r={};for(const c of n)for(const b in c)c.hasOwnProperty(b)&&(r[b]=!0);return r}const Bs=vr("area,br,col,hr,img,wbr"),rl=vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ys=vr("rp,rt"),xc=yr(Bs,yr(rl,vr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),yr(Ys,vr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),yr(Ys,rl)),t0=vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),n0=yr(t0,vr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),vr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),i0=vr("script,style,template");class n1{sanitizedSomething=!1;buf=[];sanitizeChildren(r){let c=r.firstChild,b=!0,k=[];for(;c;)if(c.nodeType===Node.ELEMENT_NODE?b=this.startElement(c):c.nodeType===Node.TEXT_NODE?this.chars(c.nodeValue):this.sanitizedSomething=!0,b&&c.firstChild)k.push(c),c=L2(c);else for(;c;){c.nodeType===Node.ELEMENT_NODE&&this.endElement(c);let W=Th(c);if(W){c=W;break}c=k.pop()}return this.buf.join("")}startElement(r){const c=zs(r).toLowerCase();if(!xc.hasOwnProperty(c))return this.sanitizedSomething=!0,!i0.hasOwnProperty(c);this.buf.push("<"),this.buf.push(c);const b=r.attributes;for(let k=0;k"),!0}endElement(r){const c=zs(r).toLowerCase();xc.hasOwnProperty(c)&&!Bs.hasOwnProperty(c)&&(this.buf.push(""))}chars(r){this.buf.push(k2(r))}}function Th(n){const r=n.nextSibling;if(r&&n!==r.previousSibling)throw I2(r);return r}function L2(n){const r=n.firstChild;if(r&&function bd(n,r){return(n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,r))throw I2(r);return r}function zs(n){const r=n.nodeName;return"string"==typeof r?r:"FORM"}function I2(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const Dh=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xa=/([^\#-~ |!])/g;function k2(n){return n.replace(/&/g,"&").replace(Dh,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(Xa,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}let Cc;function id(n,r){let c=null;try{Cc=Cc||Wi(n);let b=r?String(r):"";c=Cc.getInertBodyElement(b);let k=5,W=b;do{if(0===k)throw new Error("Failed to sanitize html because the input is unstable");k--,b=W,W=c.innerHTML,c=Cc.getInertBodyElement(b)}while(b!==W);return ac((new n1).sanitizeChildren(_o(c)||c))}finally{if(c){const b=_o(c)||c;for(;b.firstChild;)b.firstChild.remove()}}}function _o(n){return"content"in n&&function ss(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}const i1=/^>|^->||--!>|)/g;function r1(n,r){return n.createText(r)}function R2(n,r,c){n.setValue(r,c)}function a0(n,r){return n.createComment(function a1(n){return n.replace(i1,r=>r.replace(ol,"\u200b$1\u200b"))}(r))}function s1(n,r,c){return n.createElement(r,c)}function Mc(n,r,c,b,k){n.insertBefore(r,c,b,k)}function O2(n,r,c){n.appendChild(r,c)}function r0(n,r,c,b,k){null!==b?Mc(n,r,c,b,k):O2(n,r,c)}function Cd(n,r,c,b){n.removeChild(null,r,c,b)}function Ur(n,r,c){const{mergedAttrs:b,classes:k,styles:W}=c;null!==b&&function kn(n,r,c){let b=0;for(;b-1){let W;for(;++kW?"":k[Ct+1].toLowerCase(),2&b&&ut!==Zt){if(Rl(b))return!1;te=!0}}}}else{if(!te&&!Rl(b)&&!Rl(Ae))return!1;if(te&&Rl(Ae))continue;te=!1,b=Ae|1&b}}return Rl(b)||te}function Rl(n){return!(1&n)}function K2(n,r,c,b){if(null===r)return-1;let k=0;if(b||!c){let W=!1;for(;k-1)for(c++;c0?'="'+xe+'"':"")+"]"}else 8&b?k+="."+te:4&b&&(k+=" "+te);else""!==k&&!Rl(te)&&(r+=p0(W,k),k=""),b=te,W=W||!Rl(b);c++}return""!==k&&(r+=p0(W,k)),r}const qa={};function wc(n,r,c,b,k,W,te,xe,Ae,ut,Ct){const Zt=S.Yw1+b,yn=Zt+k,Cn=function g0(n,r){const c=[];for(let b=0;b-1?1:1e3;return parseFloat(n)*r}function Sc(n,r){return n.getPropertyValue(r).split(",").map(b=>b.trim())}function Tc(n,r){return void 0!==n&&n.duration>r.duration}function Z2(n){return(null!=n.animationName||null!=n.propertyName)&&n.duration>0}function v0(n,r,c){if(!c)return;const b=n.getAnimations();return 0===b.length?function J2(n,r){const c=getComputedStyle(n),b=function p1(n){const r=Sc(n,"animation-name"),c=Sc(n,"animation-delay"),b=Sc(n,"animation-duration"),k={animationName:"",propertyName:void 0,duration:0};for(let W=0;Wk.duration&&(k.animationName=r[W],k.duration=te)}return k}(c),k=function $2(n){const r=Sc(n,"transition-property"),c=Sc(n,"transition-duration"),b=Sc(n,"transition-delay"),k={propertyName:"",duration:0,animationName:void 0};for(let W=0;Wk.duration&&(k.propertyName=r[W],k.duration=te)}return k}(c),W=b.duration>k.duration?b:k;Tc(r.get(n),W)||Z2(W)&&r.set(n,W)}(n,r):function Qh(n,r,c){let b={animationName:void 0,propertyName:void 0,duration:0};for(const k of c){const W=k.effect?.getTiming(),te="number"==typeof W?.duration?W.duration:0;let Ae,ut,xe=(W?.delay??0)+te;k.animationName?ut=k.animationName:Ae=k.transitionProperty,xe>=b.duration&&(b={animationName:ut,propertyName:Ae,duration:xe})}Tc(r.get(n),b)||Z2(b)&&r.set(n,b)}(n,r,b)}const Yo=new Set;var sd=function(n){return n[n.CHANGE_DETECTION=0]="CHANGE_DETECTION",n[n.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",n}(sd||{});const Fc=new S.nKC(""),g1=new Set;function Qs(n){g1.has(n)||(g1.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}const od=!1,lc=class q2 extends de.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(r=!1){super(),this.__isAsync=r,(0,S.M6u)()&&(this.destroyRef=(0,S.WQX)(S.abz,{optional:!0})??void 0,this.pendingTasks=(0,S.WQX)(S.rev,{optional:!0})??void 0)}emit(r){const c=(0,Xt.Ht)(null);try{super.next(r)}finally{(0,Xt.Ht)(c)}}subscribe(r,c,b){let k=r,W=c||(()=>null),te=b;if(r&&"object"==typeof r){const Ae=r;k=Ae.next?.bind(Ae),W=Ae.error?.bind(Ae),te=Ae.complete?.bind(Ae)}this.__isAsync&&(W=this.wrapInTimeout(W),k&&(k=this.wrapInTimeout(k)),te&&(te=this.wrapInTimeout(te)));const xe=super.subscribe({next:k,error:W,complete:te});return r instanceof ae.yU&&r.add(xe),xe}wrapInTimeout(r){return c=>{const b=this.pendingTasks?.add();setTimeout(()=>{try{r(c)}finally{void 0!==b&&this.pendingTasks?.remove(b)}})}}};function Ld(n){let r,c;function b(){n=S.lQ1;try{void 0!==c&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(c),void 0!==r&&clearTimeout(r)}catch{}}return r=setTimeout(()=>{n(),b()}),"function"==typeof requestAnimationFrame&&(c=requestAnimationFrame(()=>{n(),b()})),()=>b()}function y0(n){return queueMicrotask(()=>n()),()=>{n=S.lQ1}}const b0="isAngularZone",_1=b0+"_ID";let Zh=0;class pr{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new lc(!1);onMicrotaskEmpty=new lc(!1);onStable=new lc(!1);onError=new lc(!1);constructor(r){const{enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:b=!1,shouldCoalesceRunChangeDetection:k=!1,scheduleInRootZone:W=od}=r;if(typeof Zone>"u")throw new S.buA(908,!1);Zone.assertZonePatched();const te=this;te._nesting=0,te._outer=te._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(te._inner=te._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(te._inner=te._inner.fork(Zone.longStackTraceZoneSpec)),te.shouldCoalesceEventChangeDetection=!k&&b,te.shouldCoalesceRunChangeDetection=k,te.callbackScheduled=!1,te.scheduleInRootZone=W,function tu(n){const r=()=>{!function eu(n){function r(){Ld(()=>{n.callbackScheduled=!1,nu(n),n.isCheckStableRunning=!0,cc(n),n.isCheckStableRunning=!1})}n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,n.scheduleInRootZone?Zone.root.run(()=>{r()}):n._outer.run(()=>{r()}),nu(n))}(n)},c=Zh++;n._inner=n._inner.fork({name:"angular",properties:{[b0]:!0,[_1]:c,[_1+c]:!0},onInvokeTask:(b,k,W,te,xe,Ae)=>{if(function iu(n){return y1(n,"__ignore_ng_zone__")}(Ae))return b.invokeTask(W,te,xe,Ae);try{return ld(n),b.invokeTask(W,te,xe,Ae)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===te.type||n.shouldCoalesceRunChangeDetection)&&r(),Bc(n)}},onInvoke:(b,k,W,te,xe,Ae,ut)=>{try{return ld(n),b.invoke(W,te,xe,Ae,ut)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function x0(n){return y1(n,"__scheduler_tick__")}(Ae)&&r(),Bc(n)}},onHasTask:(b,k,W,te)=>{b.hasTask(W,te),k===W&&("microTask"==te.change?(n._hasPendingMicrotasks=te.microTask,nu(n),cc(n)):"macroTask"==te.change&&(n.hasPendingMacrotasks=te.macroTask))},onHandleError:(b,k,W,te)=>(b.handleError(W,te),n.runOutsideAngular(()=>n.onError.emit(te)),!1)})}(te)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(b0)}static assertInAngularZone(){if(!pr.isInAngularZone())throw new S.buA(909,!1)}static assertNotInAngularZone(){if(pr.isInAngularZone())throw new S.buA(909,!1)}run(r,c,b){return this._inner.run(r,c,b)}runTask(r,c,b,k){const W=this._inner,te=W.scheduleEventTask("NgZoneEvent: "+k,r,Jh,S.lQ1,S.lQ1);try{return W.runTask(te,c,b)}finally{W.cancelTask(te)}}runGuarded(r,c,b){return this._inner.runGuarded(r,c,b)}runOutsideAngular(r){return this._outer.run(r)}}const Jh={};function cc(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function nu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function ld(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Bc(n){n._nesting--,cc(n)}class v1{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new lc;onMicrotaskEmpty=new lc;onStable=new lc;onError=new lc;run(r,c,b){return r.apply(c,b)}runGuarded(r,c,b){return r.apply(c,b)}runOutsideAngular(r){return r()}runTask(r,c,b,k){return r.apply(c,b)}}function y1(n,r){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[r]}function zc(n="zone.js",r){return"noop"===n?new v1:"zone.js"===n?new pr(r):n}let b1=(()=>{class n{impl=null;execute(){this.impl?.execute()}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})();const C0=[0,1,2,3];let Uc=(()=>{class n{ngZone=(0,S.WQX)(pr);scheduler=(0,S.WQX)(S.hk6);errorHandler=(0,S.WQX)(S.zcH,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){(0,S.WQX)(Fc,{optional:!0})}execute(){const c=this.sequences.size>0;c&&Ze(16),this.executing=!0;for(const b of C0)for(const k of this.sequences)if(!k.erroredOrDestroyed&&k.hooks[b])try{k.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>(0,k.hooks[b])(k.pipelinedValue),k.snapshot))}catch(W){k.erroredOrDestroyed=!0,this.errorHandler?.handleError(W)}this.executing=!1;for(const b of this.sequences)b.afterRun(),b.once&&(this.sequences.delete(b),b.destroy());for(const b of this.deferredRegistrations)this.sequences.add(b);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),c&&Ze(17)}register(c){const{view:b}=c;void 0!==b?((b[S.JEi]??=[]).push(c),(0,S.blu)(b),b[S.Wg1]|=8192):this.executing?this.deferredRegistrations.add(c):this.addSequence(c)}addSequence(c){this.sequences.add(c),this.scheduler.notify(7)}unregister(c){this.executing&&this.sequences.has(c)?(c.erroredOrDestroyed=!0,c.pipelinedValue=void 0,c.once=!0):(this.sequences.delete(c),this.deferredRegistrations.delete(c))}maybeTrace(c,b){return b?b.run(sd.AFTER_NEXT_RENDER,c):c()}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})();class au{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(r,c,b,k,W,te=null){this.impl=r,this.hooks=c,this.view=b,this.once=k,this.snapshot=te,this.unregisterOnDestroy=W?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();const r=this.view?.[S.JEi];r&&(this.view[S.JEi]=r.filter(c=>c!==this))}}function M0(n,r){const c=r?.injector??(0,S.WQX)(S.zZn);return Qs("NgAfterNextRender"),ou(n,c,r,!0)}function ou(n,r,c,b){const k=r.get(b1);k.impl??=r.get(Uc);const W=r.get(Fc,null,{optional:!0}),te=!0!==c?.manualCleanup?r.get(S.abz):null,xe=r.get(S.r4V,null,{optional:!0}),Ae=new au(k.impl,function su(n){return n instanceof Function?[void 0,void 0,n,void 0]:[n.earlyRead,n.write,n.mixedReadWrite,n.read]}(n),xe?.view,b,te,W?.snapshot(null));return k.impl.register(Ae),Ae}const lu={destroy(){}},Id=new S.nKC("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function cu(n,r,c){const b=n.get(Id);if(Array.isArray(r))for(const k of r)b.queue.add(k),c?.detachedLeaveAnimationFns?.push(k);else b.queue.add(r),c?.detachedLeaveAnimationFns?.push(r);b.scheduler&&b.scheduler(n)}function qh(n){const r=n.get(Id);r.isScheduled||(M0(()=>{r.isScheduled=!1;for(let c of r.queue)c();r.queue.clear()},{injector:n}),r.isScheduled=!0)}function E0(n){const r=n.get(Id);r.scheduler=qh,r.scheduler(n)}function kd(n,r){for(const[c,b]of r)cu(n,b.animateFns)}function X(n,r,c,b){const k=n?.[S.Isx]?.enter;null!==r&&k&&k.has(c.index)&&kd(b,k)}function Rd(n,r,c,b,k,W,te,xe){if(null!=k){let Ae,ut=!1;(0,S.A0l)(k)?Ae=k:(0,S.q$2)(k)&&(ut=!0,k=k[S.jgP]);const Ct=(0,S.IvY)(k);0===n&&null!==b?(X(xe,b,W,c),null==te?O2(r,b,Ct):Mc(r,b,Ct,te||null,!0)):1===n&&null!==b?(X(xe,b,W,c),Mc(r,b,Ct,te||null,!0)):2===n?du(xe,W,c,Zt=>{Cd(r,Ct,ut,Zt)}):3===n&&du(xe,W,c,()=>{r.destroyNode(Ct)}),null!=Ae&&function L0(n,r,c,b,k,W,te){const xe=b[S.s6P];xe!==(0,S.IvY)(b)&&Rd(r,n,c,W,xe,k,te);for(let ut=S.Y20;ut=0?b[xe]():b[-xe].unsubscribe(),te+=2}else c[te].call(b[c[te+1]]);null!==b&&(r[S.VVG]=null);const k=r[S.Czx];if(null!==k){r[S.Czx]=null;for(let te=0;te{if(k.leave&&k.leave.has(r.index)){const te=k.leave.get(r.index),xe=[];if(te){for(let Ae=0;Ae{n[S.Isx].running=void 0,Yo.delete(n),r(!0)}):r(!1)}(n,b)}else n&&Yo.delete(n),b(!1)},k)}function D0(n,r,c){return uu(n,r.parent,c)}function uu(n,r,c){let b=r;for(;null!==b&&168&b.type;)b=(r=b).parent;if(null===b)return c[S.jgP];if((0,S.Qs1)(b)){const{encapsulation:k}=n.data[b.directiveStart+b.componentOffset];if(k===Ui.None||k===Ui.Emulated)return null}return(0,S.d31)(b,c)}function af(n,r,c){return hu(n,r,c)}function rf(n,r,c){return 40&n.type?(0,S.d31)(n,c):null}let fu,hu=rf;function sf(n,r){hu=n,fu=r}function mu(n,r,c,b){const k=D0(n,b,r),W=r[S.GpT],xe=af(b.parent||r[S.qlT],b,r);if(null!=k)if(Array.isArray(c))for(let Ae=0;AeS.Yw1&&Kh(n,r,S.Yw1,!1),Ze(te?2:0,k,c),c(b,k)}finally{(0,S.ypq)(W),Ze(te?3:1,k,c)}}function I0(n,r,c){(function hf(n,r,c){const b=c.directiveStart,k=c.directiveEnd;(0,S.Qs1)(c)&&function Xh(n,r,c){const b=(0,S.d31)(r,n),k=Q2(c),W=n[S.M0L].rendererFactory,te=f1(n,Ed(n,k,null,wd(c),b,r,null,W.createRenderer(b,c),null,null,null));n[r.index]=te}(r,c,n.data[b+c.componentOffset]),n.firstCreatePass||un(c,r);const W=c.initialInputs;for(let te=b;tenull;function k0(n,r,c,b,k,W){S1(n,r[S.eDl],r,c,b)?(0,S.Qs1)(n)&&O0(r,n.index):(3&n.type&&(c=function yu(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(c)),R0(n,r,c,b,k,W))}function R0(n,r,c,b,k,W){if(3&n.type){const te=(0,S.d31)(n,r);b=null!=W?W(b,n.value||"",c):b,k.setProperty(te,c,b)}}function O0(n,r){const c=(0,S.KdJ)(r,n);16&c[S.Wg1]||(c[S.Wg1]|=64)}function bu(n,r){null!==n.hostBindings&&n.hostBindings(1,r)}function N0(n,r){const c=n.directiveRegistry;let b=null;if(c)for(let k=0;k{(0,S.blu)(n.lView)},consumerOnSignalRead(){this.lView[S.Iaj]=this}},Cf={...Xt.pL,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:n=>{let r=(0,S._0$)(n.lView);for(;r&&!B0(r[S.eDl]);)r=(0,S._0$)(r);r&&(0,S.HAh)(r)},consumerOnSignalRead(){this.lView[S.Iaj]=this}};function B0(n){return 2!==n.type}function Tu(n){if(null===n[S.tQN])return;let r=!0;for(;r;){let c=!1;for(const b of n[S.tQN])b.dirty&&(c=!0,null===b.zone||Zone.current===b.zone?b.run():b.zone.run(()=>b.run()));r=c&&!!(8192&n[S.Wg1])}}function z0(n,r=0){const b=n[S.M0L].rendererFactory;b.begin?.();try{!function U0(n,r){const c=(0,S.yP_)();try{(0,S.cBl)(!0),V0(n,r);let b=0;for(;(0,S.dMS)(n);){if(100===b)throw new S.buA(103,!1);b++,V0(n,1)}}finally{(0,S.cBl)(c)}}(n,r)}finally{b.end?.()}}function Du(n,r,c,b){if((0,S.EPY)(r))return;const k=r[S.Wg1];(0,S.ID8)(r);let xe=!0,Ae=null,ut=null;B0(n)?(ut=function Eu(n){return n[S.Iaj]??function bf(n){const r=Mu.pop()??Object.create(xf);return r.lView=n,r}(n)}(r),Ae=(0,Xt.Bg)(ut)):null===(0,Xt.nR)()?(xe=!1,ut=function Su(n){const r=n[S.Iaj]??Object.create(Cf);return r.lView=n,r}(r),Ae=(0,Xt.Bg)(ut)):r[S.Iaj]&&((0,Xt.XR)(r[S.Iaj]),r[S.Iaj]=null);try{(0,S.HUe)(r),(0,S.Kw3)(n.bindingStartIndex),null!==c&&df(n,r,c,2,b);const Ct=!(3&~k);if(Ct){const Cn=n.preOrderCheckHooks;null!==Cn&&Yt(r,Cn,null)}else{const Cn=n.preOrderHooks;null!==Cn&&bn(r,Cn,0,null),$n(r,0)}if(function Mf(n){for(let r=Ni(n);null!==r;r=ca(r)){if(!(2&r[S.Wg1]))continue;const c=r[S.nfM];for(let b=0;b0&&(c[k-1][S.K29]=r),b0&&(n[c-1][S.K29]=b[S.K29]);const W=(0,S.E6O)(n,S.Y20+r);ef(b[S.eDl],b);const te=W[S.Ds7];null!==te&&te.detachView(W[S.eDl]),b[S.f7T]=null,b[S.K29]=null,b[S.Wg1]&=-129}return b}function H0(n,r){const c=n[S.nfM],b=r[S.f7T];((0,S.q$2)(b)||r[S.b5C]!==b[S.f7T][S.b5C])&&(n[S.Wg1]|=2),null===c?n[S.nfM]=[r]:c.push(r)}class Fd{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){const r=this._lView,c=r[S.eDl];return Pd(c,r,c.firstChild,[])}constructor(r,c){this._lView=r,this._cdRefInjectingView=c}get context(){return this._lView[S.SKP]}set context(r){this._lView[S.SKP]=r}get destroyed(){return(0,S.EPY)(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const r=this._lView[S.f7T];if((0,S.A0l)(r)){const c=r[S.bm_],b=c?c.indexOf(this):-1;b>-1&&(Nd(r,b),(0,S.E6O)(c,b))}this._attachedToViewContainer=!1}x1(this._lView[S.eDl],this._lView)}onDestroy(r){(0,S.ik5)(this._lView,r)}markForCheck(){dd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S.Wg1]&=-129}reattach(){(0,S._gW)(this._lView),this._lView[S.Wg1]|=128}detectChanges(){this._lView[S.Wg1]|=1024,z0(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S.buA(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const r=(0,S.EFk)(this._lView),c=this._lView[S.rQE];null!==c&&!r&&w0(c,this._lView),tf(this._lView[S.eDl],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new S.buA(902,!1);this._appRef=r;const c=(0,S.EFk)(this._lView),b=this._lView[S.rQE];null!==b&&!c&&H0(b,this._lView),(0,S._gW)(this._lView)}}let Bd=(()=>class n{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=wf;constructor(c,b,k){this._declarationLView=c,this._declarationTContainer=b,this.elementRef=k}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(c,b){return this.createEmbeddedViewImpl(c,b)}createEmbeddedViewImpl(c,b,k){const W=dc(this._declarationLView,this._declarationTContainer,c,{embeddedViewInjector:b,dehydratedView:k});return new Fd(W)}})();function wf(){return D1((0,S.Mx4)(),(0,S.OAn)())}function D1(n,r){return 4&n.type?new Bd(r,n,Ka(n,r)):null}function k1(n,r,c){const b=r.insertBeforeIndex,k=Array.isArray(b)?b[0]:b;return null===k?rf(n,0,c):(0,S.IvY)(c[k])}function Pu(n,r,c,b,k){const W=r.insertBeforeIndex;if(Array.isArray(W)){let te=b,xe=null;if(3&r.type||(xe=te,te=k),null!==te&&-1===r.componentOffset)for(let Ae=1;Ae1)for(let c=n.length-2;c>=0;c--){const b=n[c];kf(b)||Rf(b,r)&&null===Of(b)&&Pf(b,r.index)}}function kf(n){return!(64&n.type)}function Rf(n,r){return kf(r)||n.index>r.index}function Of(n){const r=n.insertBeforeIndex;return Array.isArray(r)?r[0]:r}function Pf(n,r){const c=n.insertBeforeIndex;Array.isArray(c)?c[0]=r:(sf(k1,Pu),n.insertBeforeIndex=r)}function R1(n,r){const c=n.data[r];return null===c||"string"==typeof c?null:c.hasOwnProperty("currentCaseLViewIndex")?c:c.value}function Bf(n,r,c){const b=Pl(n,c,64,null,null);return Dc(r,b),b}function Q0(n,r){const c=r[n.currentCaseLViewIndex];return null===c?c:c<0?~c:c}function Fu(n){return n>>>17}function Bu(n){return(131070&n)>>>1}function $0(n,r,c){n.index=0;const b=Q0(r,c);n.removes=null!==b?r.remove[b]:S.Mlv}function O1(n){if(n.index0?n.lView[r]:(n.stack.push(n.index,n.removes),$0(n,n.lView[S.eDl].data[~r],n.lView),O1(n))}return 0===n.stack.length?(n.lView=void 0,null):(n.removes=n.stack.pop(),n.index=n.stack.pop(),O1(n))}function Gf(){const n={stack:[],index:-1};return function r(c,b){for(n.lView=b;n.stack.length;)n.stack.pop();return $0(n,c.value,b),O1.bind(null,n)}}function H(n,r,c){for(const b of c.node.cases[c.case]){const k=r.get(b.index-S.Yw1);k&&Cd(n,k,!1)}}function J(n){const r=n[S.qFA]??[],b=n[S.f7T][S.GpT],k=[];for(const W of r)void 0!==W.data.di?k.push(W):ot(W,b);n[S.qFA]=k}function ne(n){const{lContainer:r}=n,c=r[S.qFA];if(null===c)return;const k=r[S.f7T][S.GpT];for(const W of c)ot(W,k)}function ot(n,r){let c=0,b=n.firstChild;if(b){const k=n.data.r;for(;cclass n{destroyNode=null;static __NG_ELEMENT_ID__=()=>function hd(){const n=(0,S.OAn)(),r=(0,S.Mx4)(),c=(0,S.KdJ)(r.index,n);return((0,S.q$2)(c)?c:n)[S.GpT]}()})(),Zu=(()=>{class n{static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>null})}return n})();function B1(n){return void 0!==n.ngModule}function Kc(n){return!!(0,S.phH)(n)}function ea(n){return!!(0,S.oyA)(n)}function ha(n){return!!(0,S.HaV)(n)}function da(n){return!!(0,S.xUg)(n)}function Us(n,r){if((0,S.Jzi)(n)&&!(n=(0,S.nl4)(n)))throw new Error(`Expected forwardRef function, imported from "${(0,S.PP7)(r)}", to return a standalone entity or NgModule but got "${(0,S.PP7)(n)||n}".`);if(null==(0,S.phH)(n)){const c=(0,S.xUg)(n)||(0,S.HaV)(n)||(0,S.oyA)(n);if(null==c)throw B1(n)?new Error(`A module with providers was imported from "${(0,S.PP7)(r)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${(0,S.PP7)(n)}" type, imported from "${(0,S.PP7)(r)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!c.standalone)throw new Error(`The "${(0,S.PP7)(n)}" ${function er(n){return(0,S.xUg)(n)?"component":(0,S.HaV)(n)?"directive":(0,S.oyA)(n)?"pipe":"type"}(n)}, imported from "${(0,S.PP7)(r)}", is not standalone. Did you forget to add the standalone: true flag?`)}}class uc{ownerNgModule=new Map;ngModulesWithSomeUnresolvedDecls=new Set;ngModulesScopeCache=new Map;standaloneComponentsScopeCache=new Map;resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const r of this.ngModulesWithSomeUnresolvedDecls){const c=(0,S.phH)(r);if(c?.declarations)for(const b of Kl(c.declarations))da(b)&&this.ownerNgModule.set(b,r)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(r,c){this.resolveNgModulesDecls();const b=(0,S.xUg)(r);if(null===b)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${r}`);if(b.standalone){const k=this.getStandaloneComponentScope(r,c);return k.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...k.compilation.directives,...k.compilation.pipes,...k.compilation.ngModules]}}{if(!this.ownerNgModule.has(r))return{dependencies:[]};const k=this.getNgModuleScope(this.ownerNgModule.get(r));return k.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...k.compilation.directives,...k.compilation.pipes]}}}registerNgModule(r,c){if(!Kc(r))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${r}`);this.ngModulesWithSomeUnresolvedDecls.add(r)}clearScopeCacheFor(r){this.ngModulesScopeCache.delete(r),this.standaloneComponentsScopeCache.delete(r)}getNgModuleScope(r){if(this.ngModulesScopeCache.has(r))return this.ngModulesScopeCache.get(r);const c=this.computeNgModuleScope(r);return this.ngModulesScopeCache.set(r,c),c}computeNgModuleScope(r){const c=(0,S.WbQ)(r),b={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const k of Kl(c.imports))if(Kc(k)){const W=this.getNgModuleScope(k);Vs(W.exported.directives,b.compilation.directives),Vs(W.exported.pipes,b.compilation.pipes)}else{if(!(0,S.QuC)(k)){b.compilation.isPoisoned=!0;break}if(ha(k)||da(k))b.compilation.directives.add(k);else{if(!ea(k))throw new S.buA(980,"The standalone imported type is neither a component nor a directive nor a pipe");b.compilation.pipes.add(k)}}if(!b.compilation.isPoisoned)for(const k of Kl(c.declarations)){if(Kc(k)||(0,S.QuC)(k)){b.compilation.isPoisoned=!0;break}ea(k)?b.compilation.pipes.add(k):b.compilation.directives.add(k)}for(const k of Kl(c.exports))if(Kc(k)){const W=this.getNgModuleScope(k);Vs(W.exported.directives,b.exported.directives),Vs(W.exported.pipes,b.exported.pipes),Vs(W.exported.directives,b.compilation.directives),Vs(W.exported.pipes,b.compilation.pipes)}else ea(k)?b.exported.pipes.add(k):b.exported.directives.add(k);return b}getStandaloneComponentScope(r,c){if(this.standaloneComponentsScopeCache.has(r))return this.standaloneComponentsScopeCache.get(r);const b=this.computeStandaloneComponentScope(r,c);return this.standaloneComponentsScopeCache.set(r,b),b}computeStandaloneComponentScope(r,c){const b={compilation:{directives:new Set([r]),pipes:new Set,ngModules:new Set}};for(const k of(0,S.Bqz)(c??[])){const W=(0,S.nl4)(k);try{Us(W,r)}catch{return b.compilation.isPoisoned=!0,b}if(Kc(W)){b.compilation.ngModules.add(W);const te=this.getNgModuleScope(W);if(te.exported.isPoisoned)return b.compilation.isPoisoned=!0,b;Vs(te.exported.directives,b.compilation.directives),Vs(te.exported.pipes,b.compilation.pipes)}else if(ea(W))b.compilation.pipes.add(W);else{if(!ha(W)&&!da(W))return b.compilation.isPoisoned=!0,b;b.compilation.directives.add(W)}}return b}isOrphanComponent(r){const c=(0,S.xUg)(r);return!(!c||c.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(r)))}}function Vs(n,r){for(const c of n)r.add(c)}const Nl=new uc,Gr={};class fd{injector;parentInjector;constructor(r,c){this.injector=r,this.parentInjector=c}get(r,c,b){const k=this.injector.get(r,Gr,b);return k!==Gr||c===Gr?k:this.parentInjector.get(r,c,b)}}function z1(n,r,c){let b=c?n.styles:null,k=c?n.classes:null,W=0;if(null!==r)for(let te=0;te0&&(c.directiveToIndex=new Map);for(let yn=0;yn0;){const c=n[--r];if("number"==typeof c&&c<0)return c}return 0})(te)!=xe&&te.push(xe),te.push(c,b,W)}}(n,r,b,Sd(n,c,k.hostVars,qa),k)}function gg(n,r,c){if(c){if(r.exportAs)for(let b=0;bAe?xe[Ae]:null}"string"==typeof te&&(W+=2)}return null}(r,c,W,n.index)),null!==Ct)(Ct.__ngLastListenerFn__||Ct).__ngNextListenerFn__=te,Ct.__ngLastListenerFn__=te,ut=!0;else{const Zt=(0,S.d31)(n,c),yn=b?b(Zt):Zt,Cn=k.listen(yn,W,xe);(function _g(n){return n.startsWith("animation")||n.startsWith("transition")})(W)||Jm(b?Si=>b((0,S.IvY)(Si[n.index])):n.index,r,c,W,xe,Cn,!1)}return ut}function Jm(n,r,c,b,k,W,te){const xe=r.firstCreatePass?(0,S.vNG)(r):null,Ae=(0,S.d_l)(c),ut=Ae.length;Ae.push(k,W),xe&&xe.push(b,n,ut,(ut+1)*(te?-1:1))}function n4(n,r,c,b,k,W){const xe=r[S.eDl],Zt=r[c][xe.data[c].outputs[b]].subscribe(W);Jm(n.index,xe,r,k,W,Zt,!0)}const Hd=Symbol("BINDING");class tp extends ll{ngModule;constructor(r){super(),this.ngModule=r}resolveComponentFactory(r){const c=(0,S.xUg)(r);return new o2(c,this.ngModule)}}class o2 extends Vr{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function Sg(n){return Object.keys(n).map(r=>{const[c,b,k]=n[r],W={propName:c,templateName:r,isSignal:0!==(b&Td.SignalBased)};return k&&(W.transform=k),W})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function Tg(n){return Object.keys(n).map(r=>({propName:n[r],templateName:r}))}(this.componentDef.outputs),this.cachedOutputs}constructor(r,c){super(),this.componentDef=r,this.ngModule=c,this.componentType=r.type,this.selector=function jh(n){return n.map(Hh).join(",")}(r.selectors),this.ngContentSelectors=r.ngContentSelectors??[],this.isBoundToModule=!!c}create(r,c,b,k,W,te){Ze(22);const xe=(0,Xt.Ht)(null);try{const Ae=this.componentDef,ut=function rp(n,r,c,b){const k=n?["ng-version","20.3.26"]:function Wh(n){const r=[],c=[];let b=1,k=2;for(;b{if(1&c&&n)for(const b of n)b.create();if(2&c&&r)for(const b of r)b.update()}:null}(W,te),1,xe,Ae,null,null,null,[k],null)}(b,Ae,te,W),Ct=function Ag(n,r,c){let b=r instanceof S.uvJ?r:r?.injector;return b&&null!==n.getStandaloneInjector&&(b=n.getStandaloneInjector(b)||b),b?new fd(c,b):c}(Ae,k||this.ngModule,r),Zt=function Lg(n){const r=n.get(Xc,null);if(null===r)throw new S.buA(407,!1);return{rendererFactory:r,sanitizer:n.get(Zu,null),changeDetectionScheduler:n.get(S.hk6,null),ngReflect:!1}}(Ct),yn=Zt.rendererFactory.createRenderer(null,Ae),Cn=b?function i3(n,r,c,b){const W=b.get(Ul,!1)||c===Ui.ShadowDom,te=n.selectRootElement(r,W);return function gu(n){_u(n)}(te),te}(yn,b,Ae.encapsulation,Ct):function np(n,r){const c=function ap(n){return(n.selectors[0][0]||"div").toLowerCase()}(n);return s1(r,c,"svg"===c?S.jNX:"math"===c?S.rJ1:null)}(Ae,yn);!function ip(n){if("script"===n?.toLowerCase())throw new S.buA(905,!1)}(Cn?.tagName);const ri=te?.some(Lc)||W?.some(ia=>"function"!=typeof ia&&ia.bindings.some(Lc)),Si=Ed(null,ut,null,512|wd(Ae),null,null,Zt,yn,Ct,null,null);Si[S.Yw1]=Cn,(0,S.ID8)(Si);let Ki=null;try{const ia=a2(S.Yw1,Si,2,"#host",()=>ut.directiveRegistry,!0,0);Ur(yn,Cn,ia),Aa(Cn,Si),I0(ut,Si,ia),Wa(ut,ia,Si),Jf(ut,ia),void 0!==c&&function i4(n,r,c){const b=n.projection=[];for(let k=0;kclass n{static __NG_ELEMENT_ID__=sp})();function sp(){return Ic((0,S.Mx4)(),(0,S.OAn)())}const D3=Qo,A3=class extends D3{_lContainer;_hostTNode;_hostLView;constructor(r,c,b){super(),this._lContainer=r,this._hostTNode=c,this._hostLView=b}get element(){return Ka(this._hostTNode,this._hostLView)}get injector(){return new Ce(this._hostTNode,this._hostLView)}get parentInjector(){const r=Dn(this._hostTNode,this._hostLView);if(sa(r)){const c=dn(r,this._hostLView),b=ma(r);return new Ce(c[S.eDl].data[b+8],c)}return new Ce(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const c=Ju(this._lContainer);return null!==c&&c[r]||null}get length(){return this._lContainer.length-S.Y20}createEmbeddedView(r,c,b){let k,W;"number"==typeof b?k=b:null!=b&&(k=b.index,W=b.injector);const xe=r.createEmbeddedViewImpl(c||{},W,null);return this.insertImpl(xe,k,Gc(this._hostTNode,null)),xe}createComponent(r,c,b,k,W,te,xe){const Ae=r&&!Je(r);let ut;if(Ae)ut=c;else{const Ki=c||{};ut=Ki.index,b=Ki.injector,k=Ki.projectableNodes,W=Ki.environmentInjector||Ki.ngModuleRef,te=Ki.directives,xe=Ki.bindings}const Ct=Ae?r:new o2((0,S.xUg)(r)),Zt=b||this.parentInjector;if(!W&&null==Ct.ngModule){const ia=(Ae?Zt:this.parentInjector).get(S.uvJ,null);ia&&(W=ia)}(0,S.xUg)(Ct.componentType??{});const Si=Ct.create(Zt,k,null,W,te,xe);return this.insertImpl(Si.hostView,ut,Gc(this._hostTNode,null)),Si}insert(r,c){return this.insertImpl(r,c,!0)}insertImpl(r,c,b){const k=r._lView;if((0,S.ITl)(k)){const xe=this.indexOf(r);if(-1!==xe)this.detach(xe);else{const Ae=k[S.f7T],ut=new A3(Ae,Ae[S.qlT],Ae[S.f7T]);ut.detach(ut.indexOf(r))}}const W=this._adjustIndex(c),te=this._lContainer;return Hc(te,k,W,b),r.attachToViewContainerRef(),(0,S.EYC)(l2(te),W,r),r}move(r,c){return this.insert(r,c)}indexOf(r){const c=Ju(this._lContainer);return null!==c?c.indexOf(r):-1}remove(r){const c=this._adjustIndex(r,-1),b=Nd(this._lContainer,c);b&&((0,S.E6O)(l2(this._lContainer),c),x1(b[S.eDl],b))}detach(r){const c=this._adjustIndex(r,-1),b=Nd(this._lContainer,c);return b&&null!=(0,S.E6O)(l2(this._lContainer),c)?new Fd(b):null}_adjustIndex(r,c=0){return r??this.length+c}};function Ju(n){return n[S.bm_]}function l2(n){return n[S.bm_]||(n[S.bm_]=[])}function Ic(n,r){let c;const b=r[n.index];return(0,S.A0l)(b)?c=b:(c=ku(b,r,null,n),r[n.index]=c,f1(r,c)),fa(c,r,n,b),new A3(c,n,r)}let fa=function a4(n,r,c,b){if(n[S.s6P])return;let k;k=8&c.type?(0,S.IvY)(b):function c2(n,r){const c=n[S.GpT],b=c.createComment(""),k=(0,S.d31)(r,n),W=c.parentNode(k);return Mc(c,W,b,c.nextSibling(k),!1),b}(r,c),n[S.s6P]=k};class o4{queryList;matches=null;constructor(r){this.queryList=r}clone(){return new o4(this.queryList)}setDirty(){this.queryList.setDirty()}}class eh{queries;constructor(r=[]){this.queries=r}createEmbeddedView(r){const c=r.queries;if(null!==c){const b=null!==r.contentQueries?r.contentQueries[0]:c.length,k=[];for(let W=0;Wr.trim())}(r):r}}class d2{queries;constructor(r=[]){this.queries=r}elementStart(r,c){for(let b=0;b0)b.push(te[xe/2]);else{const ut=W[xe+1],Ct=r[-Ae];for(let Zt=S.Y20;Zt{b._dirtyCounter();const W=function ih(n,r){const c=n._lView,b=n._queryIndex;if(void 0===c||void 0===b||4&c[S.Wg1])return r?void 0:S.Mlv;const k=th(c,b),W=h4(c,b);return k.reset(W,Is),r?k.first:k._changesDetected||void 0===n._flatValue?n._flatValue=k.toArray():n._flatValue}(b,n);if(r&&void 0===W)throw new S.buA(-951,!1);return W});return b=k[Xt.bh],b._dirtyCounter=(0,S.vPA)(0),b._flatValue=void 0,k}function f2(n){return h2(!0,!1)}function $s(n){return h2(!0,!0)}function O3(n){return h2(!1,!1)}function V1(n,r){const c=n[Xt.bh];c._lView=(0,S.OAn)(),c._queryIndex=r,c._queryList=th(c._lView,r),c._queryList.onDirty(()=>c._dirtyCounter.update(b=>b+1))}function lp(n){const r=[],c=new Map;function b(k){let W=c.get(k);if(!W){const te=n(k);c.set(k,W=te.then(xe=>function F3(n,r){return"string"==typeof r?r:void 0!==r.status&&200!==r.status?Promise.reject(new S.buA(918,!1)):r.text()}(0,xe)))}return W}return Xd.forEach((k,W)=>{const te=[];k.templateUrl&&te.push(b(k.templateUrl).then(ut=>{k.template=ut}));const xe="string"==typeof k.styles?[k.styles]:k.styles||[];if(k.styles=xe,k.styleUrl&&k.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(k.styleUrls?.length){const ut=k.styles.length,Ct=k.styleUrls;k.styleUrls.forEach((Zt,yn)=>{xe.push(""),te.push(b(Zt).then(Cn=>{xe[ut+yn]=Cn,Ct.splice(Ct.indexOf(Zt),1),0==Ct.length&&(k.styleUrls=void 0)}))})}else k.styleUrl&&te.push(b(k.styleUrl).then(ut=>{xe.push(ut),k.styleUrl=void 0}));const Ae=Promise.all(te).then(()=>function rh(n){Qc.delete(n)}(W));r.push(Ae)}),function ah(){const n=Xd;Xd=new Map}(),Promise.all(r).then(()=>{})}let Xd=new Map;const Qc=new Set;function dp(){return 0===Xd.size}const sh=new Map;function f4(n,r){(function up(n,r,c){if(r&&r!==c)throw new Error(`Duplicate module registered for ${n} - ${(0,S.AsM)(r)} vs ${(0,S.AsM)(r.name)}`)})(r,sh.get(r)||null,n),sh.set(r,n)}let G1=class{},cl=class{};function B3(n,r){return new lh(n,r??null,[])}class lh extends G1{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new tp(this);constructor(r,c,b,k=!0){super(),this.ngModuleType=r,this._parent=c;const W=(0,S.phH)(r);this._bootstrapComponents=Kl(W.bootstrap),this._r3Injector=(0,S.Pz9)(r,c,[{provide:G1,useValue:this},{provide:ll,useValue:this.componentFactoryResolver},...b],(0,S.AsM)(r),new Set(["environment"])),k&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(c=>c()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class fp extends cl{moduleType;constructor(r){super(),this.moduleType=r}create(r){return new lh(this.moduleType,r,[])}}function mp(n,r,c){return new lh(n,r,c,!1)}class Rg extends G1{injector;componentFactoryResolver=new tp(this);instance=null;constructor(r){super();const c=new S.e5P([...r.providers,{provide:G1,useValue:this},{provide:ll,useValue:this.componentFactoryResolver}],r.parent||(0,S.WB9)(),r.debugName,new Set(["environment"]));this.injector=c,r.runEnvironmentInitializers&&c.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(r){this.injector.onDestroy(r)}}function z3(n,r,c=null){return new Rg({providers:n,parent:r,debugName:c,runEnvironmentInitializers:!0}).injector}let Og=(()=>{class n{_injector;cachedInjectors=new Map;constructor(c){this._injector=c}getOrCreateStandaloneInjector(c){if(!c.standalone)return null;if(!this.cachedInjectors.has(c)){const b=(0,S.jXY)(!1,c.type),k=b.length>0?z3([b],this._injector,`Standalone[${c.type.name}]`):null;this.cachedInjectors.set(c,k)}return this.cachedInjectors.get(c)}ngOnDestroy(){try{for(const c of this.cachedInjectors.values())null!==c&&c.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,S.jDH)({token:n,providedIn:"environment",factory:()=>new n((0,S.KVO)(S.uvJ))})}return n})();function pp(n){return Le(()=>{const r=$c(n),c={...r,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===dr.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&n.dependencies||null,getStandaloneInjector:r.standalone?k=>k.get(Og).getOrCreateStandaloneInjector(c):null,getExternalStyles:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||Ui.Emulated,styles:n.styles||S.Mlv,_:null,schemas:n.schemas||null,tView:null,id:""};r.standalone&&Qs("NgStandalone"),md(c);const b=n.dependencies;return c.directiveDefs=ch(b,gp),c.pipeDefs=ch(b,S.oyA),c.id=function Fg(n){let r=0;const b=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,"function"==typeof n.consts?"":n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery];for(const W of b.join("|"))r=Math.imul(31,r)+W.charCodeAt(0)|0;return r+=2147483648,"c"+r}(c),c})}function gp(n){return(0,S.xUg)(n)||(0,S.HaV)(n)}function _p(n){return Le(()=>({type:n.type,bootstrap:n.bootstrap||S.Mlv,declarations:n.declarations||S.Mlv,imports:n.imports||S.Mlv,exports:n.exports||S.Mlv,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Pg(n,r){if(null==n)return S.MZA;const c={};for(const b in n)if(n.hasOwnProperty(b)){const k=n[b];let W,te,xe,Ae;Array.isArray(k)?(xe=k[0],W=k[1],te=k[2]??W,Ae=k[3]||null):(W=k,te=k,xe=Td.None,Ae=null),c[W]=[b,xe,Ae],r[W]=te}return c}function vp(n){if(null==n)return S.MZA;const r={};for(const c in n)n.hasOwnProperty(c)&&(r[n[c]]=c);return r}function U3(n){return Le(()=>{const r=$c(n);return md(r),r})}function V3(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:n.standalone??!0,onDestroy:n.type.prototype.ngOnDestroy||null}}function $c(n){const r={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:r,inputConfig:n.inputs||S.MZA,exportAs:n.exportAs||null,standalone:n.standalone??!0,signals:!0===n.signals,selectors:n.selectors||S.Mlv,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:Pg(n.inputs,r),outputs:vp(n.outputs),debugInfo:null}}function md(n){n.features?.forEach(r=>r(n))}function ch(n,r){return n?()=>{const c="function"==typeof n?n():n,b=[];for(const k of c){const W=r(k);null!==W&&b.push(W)}return b}:null}function yp(n){return Object.getPrototypeOf(n.prototype).constructor}function m4(n){let r=yp(n.type),c=!0;const b=[n];for(;r;){let k;if((0,S.JlV)(n))k=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new S.buA(903,!1);k=r.\u0275dir}if(k){if(c){b.push(k);const te=n;te.inputs=p4(n.inputs),te.declaredInputs=p4(n.declaredInputs),te.outputs=p4(n.outputs);const xe=k.hostBindings;xe&&Ug(n,xe);const Ae=k.viewQuery,ut=k.contentQueries;if(Ae&&bp(n,Ae),ut&&zg(n,ut),Bg(n,k),(0,S.dwj)(n.outputs,k.outputs),(0,S.JlV)(k)&&k.data.animation){const Ct=n.data;Ct.animation=(Ct.animation||[]).concat(k.data.animation)}}const W=k.features;if(W)for(let te=0;te=0;b--){const k=n[b];k.hostVars=r+=k.hostVars,k.hostAttrs=Xn(k.hostAttrs,c=Xn(c,k.hostAttrs))}}(b)}function Bg(n,r){for(const c in r.inputs){if(!r.inputs.hasOwnProperty(c)||n.inputs.hasOwnProperty(c))continue;const b=r.inputs[c];void 0!==b&&(n.inputs[c]=b,n.declaredInputs[c]=r.declaredInputs[c])}}function p4(n){return n===S.MZA?{}:n===S.Mlv?[]:n}function bp(n,r){const c=n.viewQuery;n.viewQuery=c?(b,k)=>{r(b,k),c(b,k)}:r}function zg(n,r){const c=n.contentQueries;n.contentQueries=c?(b,k,W)=>{r(b,k,W),c(b,k,W)}:r}function Ug(n,r){const c=n.hostBindings;n.hostBindings=c?(b,k)=>{r(b,k),c(b,k)}:r}const H3=["providersResolver"],m2=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function xp(n){const r=c=>{const b=Array.isArray(n);null===c.hostDirectives?(c.resolveHostDirectives=Vg,c.hostDirectives=b?n.map(g4):[n]):b?c.hostDirectives.unshift(...n.map(g4)):c.hostDirectives.unshift(n)};return r.ngInherit=!0,r}function Vg(n){const r=[];let c=!1,b=null,k=null;for(let W=0;W{Be.has(n)&&(b.callbacks.delete(r),0===b.callbacks.size&&(Ht?.unobserve(n),Be.delete(n),sn--),0===sn&&(Ht?.disconnect(),Ht=null))}}(n,()=>b.run(r),()=>b.runOutsideAngular(()=>function Ia(){return new IntersectionObserver(n=>{for(const r of n)r.isIntersecting&&Be.has(r.target)&&Be.get(r.target).listener()})}()))}function Yd(n,r,c,b,k,W,te){const xe=n[S.YEL],Ae=xe.get(pr);let ut;ut=function ru(n,r){const c=r?.injector??(0,S.WQX)(S.zZn);return Qs("NgAfterRender"),ou(n,c,r,!1)}({read:function Ct(){if((0,S.EPY)(n))return void ut.destroy();const Zt=Fl(n,r),yn=Zt[1];if(yn!==p2.Initial&&yn!==Ir.Placeholder)return void ut.destroy();const Cn=function E4(n,r,c){return null==c?n:c>=0?(0,S.jRZ)(c,n):n[r.index][S.Y20]??null}(n,r,b);if(!Cn||(ut.destroy(),(0,S.EPY)(Cn)))return;const ri=function $g(n,r){return(0,S.vaC)(S.Yw1+r,n)}(Cn,c),Si=k(ri,()=>{Ae.run(()=>{n!==Cn&&(0,S.DyX)(Cn,Si),W()})},xe);n!==Cn&&(0,S.ik5)(Cn,Si),fh(te,Zt,Si)}},{injector:xe})}function mh(n,r){const c=r.get(O);return c.add(n),()=>c.remove(n)}let O=(()=>{class n{executingCallbacks=!1;idleId=null;current=new Set;deferred=new Set;ngZone=(0,S.WQX)(pr);requestIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout)().bind(globalThis);cancelIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout)().bind(globalThis);add(c){(this.executingCallbacks?this.deferred:this.current).add(c),null===this.idleId&&this.scheduleIdleCallback()}remove(c){const{current:b,deferred:k}=this;b.delete(c),k.delete(c),0===b.size&&0===k.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const c=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const b of this.current)b();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const b of this.deferred)this.current.add(b);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(c))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})();function E(n){return(r,c)=>y(n,r,c)}function y(n,r,c){const b=c.get(B),k=c.get(pr);return b.add(n,r,k),()=>b.remove(r)}let B=(()=>{class n{executingCallbacks=!1;timeoutId=null;invokeTimerAt=null;current=[];deferred=[];add(c,b,k){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+c,b),this.scheduleTimer(k)}remove(c){const{current:b,deferred:k}=this;-1===this.removeFromQueue(b,c)&&this.removeFromQueue(k,c),0===b.length&&0===k.length&&this.clearTimeout()}addToQueue(c,b,k){let W=c.length;for(let te=0;teb){W=te;break}(0,S.llW)(c,W,b,k)}removeFromQueue(c,b){let k=-1;for(let W=0;W-1&&(0,S.gsJ)(c,k,2),k}scheduleTimer(c){const b=()=>{this.clearTimeout(),this.executingCallbacks=!0;const W=[...this.current],te=Date.now();for(let Ae=0;Ae=0&&(0,S.gsJ)(this.current,0,xe+1),this.executingCallbacks=!1,this.deferred.length>0){for(let Ae=0;Ae0){const W=Date.now(),te=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-te>16){this.clearTimeout();const xe=Math.max(te-W,16);this.invokeTimerAt=te,this.timeoutId=c.runOutsideAngular(()=>setTimeout(()=>c.run(b),xe))}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})(),G=(()=>{class n{cachedInjectors=new Map;getOrCreateInjector(c,b,k,W){if(!this.cachedInjectors.has(c)){const te=k.length>0?z3(k,b,W):null;this.cachedInjectors.set(c,te)}return this.cachedInjectors.get(c)}ngOnDestroy(){try{for(const c of this.cachedInjectors.values())null!==c&&c.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,S.jDH)({token:n,providedIn:"environment",factory:()=>new n})}return n})();const Xe=new S.nKC("");function Ut(n,r,c){return n.get(G).getOrCreateInjector(r,n,c,"")}function pn(n,r,c,b=!1){const k=c[S.f7T],W=k[S.eDl];if((0,S.EPY)(k))return;const te=Fl(k,r),Ae=te[7];if(!(null!==Ae&&n0&&(Ct=function Qt(n,r,c){if(n instanceof fd){const k=n.injector,te=Ut(n.parentInjector,r,c);return new fd(k,te)}const b=n.get(S.uvJ);if(b!==n){const k=Ut(b,r,c);return new fd(n,k)}return Ut(n,r,c)}(k[S.YEL],ri,Si))}const{dehydratedView:Zt,dehydratedViewIx:yn}=function Pn(n,r){const c=n[S.qFA]?.findIndex(k=>k.data.s===r[1])??-1;return{dehydratedView:c>-1?n[S.qFA][c]:null,dehydratedViewIx:c}}(c,r),Cn=dc(k,Ae,null,{injector:Ct,dehydratedView:Zt});if(Hc(c,Cn,ut,Gc(Ae,Zt)),dd(Cn,2),yn>-1&&c[S.qFA]?.splice(yn,1),(n===Ir.Complete||n===Ir.Error)&&Array.isArray(r[8])){for(const ri of r[8])ri();r[8]=null}}Ze(21)}function xi(n,r,c,b,k){const W=Date.now(),xe=yo(k[S.eDl],b);if(null===r[2]||r[2]<=W){r[2]=null;const Ae=C4(xe),ut=null!==r[3];if(n!==Ir.Loading||null===Ae||ut){n>Ir.Loading&&ut&&(r[3](),r[3]=null,r[0]=null),Fn(n,r,c,b,k);const Ct=Q3(xe,n);null!==Ct&&(r[2]=W+Ct,yi(Ct,r,b,c,k))}else{r[0]=n;const Ct=yi(Ae,r,b,c,k);r[3]=Ct}}else r[0]=n}function yi(n,r,c,b,k){return y(n,()=>{const te=r[0];r[2]=null,r[0]=null,null!==te&&pn(te,c,b)},k[S.YEL])}function Ji(n,r){return n{n.loadingState===Gs.COMPLETE?pn(Ir.Complete,r,c):n.loadingState===Gs.FAILED&&pn(Ir.Error,r,c)})}let pa=null;function kr(n,r,c,b){return Le(()=>{const k=n;null!==r&&(k.hasOwnProperty("decorators")&&void 0!==k.decorators?k.decorators.push(...r):k.decorators=r),null!==c&&(k.ctorParameters=c),null!==b&&(k.propDecorators=k.hasOwnProperty("propDecorators")&&void 0!==k.propDecorators?{...k.propDecorators,...b}:b)})}let Rr=(()=>{class n{log(c){console.log(c)}warn(c){console.warn(c)}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const l8=new S.nKC(""),c8=new S.nKC("");let Fp,x7=(()=>{class n{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(c,b,k){this._ngZone=c,this.registry=b,(0,S.M6u)()&&(this._destroyRef=(0,S.WQX)(S.abz,{optional:!0})??void 0),Fp||(function C7(n){Fp=n}(k),k.addToWindow(b)),this._watchAngularEvents(),c.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){const c=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),b=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{pr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{c.unsubscribe(),b.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let c=this._callbacks.pop();clearTimeout(c.timeoutId),c.doneCb()}});else{let c=this.getPendingTasks();this._callbacks=this._callbacks.filter(b=>!b.updateCb||!b.updateCb(c)||(clearTimeout(b.timeoutId),!1))}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(c=>({source:c.source,creationLocation:c.creationLocation,data:c.data})):[]}addCallback(c,b,k){let W=-1;b&&b>0&&(W=setTimeout(()=>{this._callbacks=this._callbacks.filter(te=>te.timeoutId!==W),c()},b)),this._callbacks.push({doneCb:c,timeoutId:W,updateCb:k})}whenStable(c,b,k){if(k&&!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(c,b,k),this._runCallbacksIfReady()}registerApplication(c){this.registry.registerApplication(c,this)}unregisterApplication(c){this.registry.unregisterApplication(c)}findProviders(c,b,k){return[]}static \u0275fac=function(b){return new(b||n)((0,S.KVO)(pr),(0,S.KVO)(J3),(0,S.KVO)(c8))};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac})}return n})(),J3=(()=>{class n{_applications=new Map;registerApplication(c,b){this._applications.set(c,b)}unregisterApplication(c){this._applications.delete(c)}unregisterAllApplications(){this._applications.clear()}getTestability(c){return this._applications.get(c)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(c,b=!0){return Fp?.findTestabilityInTree(this,c,b)??null}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function d8(n){return!!n&&"function"==typeof n.then}function u8(n){return!!n&&"function"==typeof n.subscribe}const h8=new S.nKC("");function M7(n){return(0,S.EmA)([{provide:h8,multi:!0,useValue:n}])}let Bp=(()=>{class n{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((c,b)=>{this.resolve=c,this.reject=b});appInits=(0,S.WQX)(h8,{optional:!0})??[];injector=(0,S.WQX)(S.zZn);constructor(){}runInitializers(){if(this.initialized)return;const c=[];for(const k of this.appInits){const W=(0,S.N4e)(this.injector,k);if(d8(W))c.push(W);else if(u8(W)){const te=new Promise((xe,Ae)=>{W.subscribe({complete:xe,error:Ae})});c.push(te)}}const b=()=>{this.done=!0,this.resolve()};Promise.all(c).then(()=>{b()}).catch(k=>{this.reject(k)}),0===c.length&&b(),this.initialized=!0}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const f8=new S.nKC("");function m8(){}function E7(){(0,Xt.KO)(()=>{throw new S.buA(600,"")})}function p8(n,r){return Array.isArray(r)?r.reduce(p8,n):{...n,...r}}let q3=(()=>{class n{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=(0,S.WQX)(S.ZTf);afterRenderManager=(0,S.WQX)(b1);zonelessEnabled=(0,S.WQX)(S.Evm);rootEffectScheduler=(0,S.WQX)(S.VML);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new de.B;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=(0,S.WQX)(S.rev);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe((0,me.T)(c=>!c))}constructor(){(0,S.WQX)(Fc,{optional:!0})}whenStable(){let c;return new Promise(b=>{c=this.isStable.subscribe({next:k=>{k&&b()}})}).finally(()=>{c.unsubscribe()})}_injector=(0,S.WQX)(S.uvJ);_rendererFactory=null;get injector(){return this._injector}bootstrap(c,b){return this.bootstrapImpl(c,b)}bootstrapImpl(c,b,k=S.zZn.NULL){return this._injector.get(pr).run(()=>{Ze(10);const te=c instanceof Vr;if(!this._injector.get(Bp).done)throw new S.buA(405,"");let Ae;Ae=te?c:this._injector.get(ll).resolveComponentFactory(c),this.componentTypes.push(Ae.componentType);const ut=function w7(n){return n.isBoundToModule}(Ae)?void 0:this._injector.get(G1),Zt=Ae.create(k,[],b||Ae.selector,ut),yn=Zt.location.nativeElement,Cn=Zt.injector.get(l8,null);return Cn?.registerApplication(yn),Zt.onDestroy(()=>{this.detachView(Zt.hostView),S4(this.components,Zt),Cn?.unregisterApplication(yn)}),this._loadComponent(Zt),Ze(11,Zt),Zt})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Ze(12),null!==this.tracingSnapshot?this.tracingSnapshot.run(sd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new S.buA(101,!1);const c=(0,Xt.Ht)(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,(0,Xt.Ht)(c),this.afterTick.next(),Ze(13)}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Xc,null,{optional:!0}));let c=0;for(;0!==this.dirtyFlags&&c++<10;)Ze(14),this.synchronizeOnce(),Ze(15)}synchronizeOnce(){16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let c=!1;if(7&this.dirtyFlags){const b=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:k}of this.allViews)(b||(0,S.dMS)(k))&&(z0(k,b&&!this.zonelessEnabled?0:1),c=!0);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}c||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:c})=>(0,S.dMS)(c))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(c){const b=c;this._views.push(b),b.attachToAppRef(this)}detachView(c){const b=c;S4(this._views,b),b.detachFromAppRef()}_loadComponent(c){this.attachView(c.hostView);try{this.tick()}catch(k){this.internalErrorHandler(k)}this.components.push(c),this._injector.get(f8,[]).forEach(k=>k(c))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(c=>c()),this._views.slice().forEach(c=>c.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(c){return this._destroyListeners.push(c),()=>S4(this._destroyListeners,c)}destroy(){if(this._destroyed)throw new S.buA(406,!1);const c=this._injector;c.destroy&&!c.destroyed&&c.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function S4(n,r){const c=n.indexOf(r);c>-1&&n.splice(c,1)}function Up(){let n,r;return{promise:new Promise((b,k)=>{n=b,r=k}),resolve:n,reject:r}}function em(n){const r=(0,S.OAn)(),c=(0,S.Mx4)();if(qn(r,c),!_8(0,r))return;const b=r[S.YEL];fh(0,Fl(r,c),n(()=>Jd(0,r,c),b))}function Vp(n){const r=(0,S.OAn)(),c=r[S.YEL],b=(0,S.Mx4)(),W=yo(r[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&fh(1,Fl(r,b),n(()=>T4(W,r,b),c))}function g8(n,r,c){const b=r[S.YEL],k=Fl(r,c),W=k[6];fh(2,k,n(()=>b2(b,W),b))}function T4(n,r,c){Gp(n,r,c)}function Gp(n,r,c){const b=r[S.YEL],k=r[S.eDl];if(n.loadingState!==Gs.NOT_STARTED)return n.loadingPromise??Promise.resolve();const W=Fl(r,c),te=function Ip(n,r){return(0,S.XRZ)(n,r.primaryTmplIndex+S.Yw1)}(k,n);n.loadingState=Gs.IN_PROGRESS,x4(1,W);let xe=n.dependencyResolverFn;const Ae=b.get(S.u5s).add();return xe?(n.loadingPromise=Promise.allSettled(xe()).then(ut=>{let Ct=!1;const Zt=[],yn=[];for(const Cn of ut){if("fulfilled"!==Cn.status){Ct=!0;break}{const ri=Cn.value,Si=(0,S.xUg)(ri)||(0,S.HaV)(ri);if(Si)Zt.push(Si);else{const Ki=(0,S.oyA)(ri);Ki&&yn.push(Ki)}}}if(Ct){if(n.loadingState=Gs.FAILED,null===n.errorTmplIndex){const ri=new S.buA(-750,!1);Od(r,ri)}}else{n.loadingState=Gs.COMPLETE;const Cn=te.tView;if(Zt.length>0){Cn.directiveRegistry=$3(Cn.directiveRegistry,Zt);const ri=Zt.map(Ki=>Ki.type),Si=(0,S.jXY)(!1,...ri);n.providers=Si}yn.length>0&&(Cn.pipeRegistry=$3(Cn.pipeRegistry,yn))}}),n.loadingPromise.finally(()=>{n.loadingPromise=null,Ae()})):(n.loadingPromise=Promise.resolve().then(()=>{n.loadingPromise=null,n.loadingState=Gs.COMPLETE,Ae()}),n.loadingPromise)}function _8(n,r){return r[S.YEL].get(Xe,null,{optional:!0})?.behavior!==Dp.Manual}function Jd(n,r,c){const b=r[S.eDl],k=r[c.index];if(!_8(0,r))return;const W=Fl(r,c),te=yo(b,c);switch(Y3(W),te.loadingState){case Gs.NOT_STARTED:pn(Ir.Loading,c,k),Gp(te,r,c),te.loadingState===Gs.IN_PROGRESS&&Gi(te,c,k);break;case Gs.IN_PROGRESS:pn(Ir.Loading,c,k),Gi(te,c,k);break;case Gs.COMPLETE:pn(Ir.Complete,c,k);break;case Gs.FAILED:pn(Ir.Error,c,k)}}function b2(n,r,c){return Hp.apply(this,arguments)}function Hp(){return(Hp=(0,qt.A)(function*(n,r,c){const b=n.get(Do);if(b.hydrating.has(r))return;const{parentBlockPromise:W,hydrationQueue:te}=function _d(n,r){const c=r.get(Do),k=r.get(fr).get("__nghDeferData__",{});let W=!1,te=n,xe=null;const Ae=[];for(;!W&&te;){W=c.has(te);const ut=c.hydrating.get(te);if(null===xe&&null!=ut){xe=ut.promise;break}Ae.unshift(te),te=k[te].p}return{parentBlockPromise:xe,hydrationQueue:Ae}}(r,n);if(0===te.length)return;null!==W&&te.shift(),function y8(n,r){for(let c of r)n.hydrating.set(c,Up())}(b,te),null!==W&&(yield W);const xe=te[0];b.has(xe)?yield jp(n,te,c):b.awaitParentBlock(xe,(0,qt.A)(function*(){return yield jp(n,te,c)}))})).apply(this,arguments)}function jp(n,r,c){return Wp.apply(this,arguments)}function Wp(){return(Wp=(0,qt.A)(function*(n,r,c){const b=n.get(Do),k=b.hydrating,W=n.get(S.rev),te=W.add();for(let Ae=0;Ae-1?c.get(r[b]):null;k&&jt(k.lContainer)}function v8(n,r){const c=r.hydrating;for(const b in n)c.get(b)?.reject();r.cleanup(n)}function D7(n){return new Promise(r=>M0(r,{injector:n}))}function A7(n){return tm.apply(this,arguments)}function tm(){return(tm=(0,qt.A)(function*(n){const{tNode:r,lView:c}=n,b=Fl(c,r);return new Promise(k=>{(function L7(n,r){Array.isArray(n[8])||(n[8]=[]),n[8].push(r)})(b,k),Jd(0,c,r)})})).apply(this,arguments)}function Zs(n,r,c){return 0===n?x8(r,c):2!==n||!x8(r,c)}function x8(n,r){const c=n[S.YEL],b=yo(n[S.eDl],r),k=oa(c),W=function b8(n){return null!=n&&!(1&~n)}(b.flags),xe=null!==Fl(n,r)[6];return!(W&&xe&&k)}function W1(n,r){const c=yo(n,r);return c.hydrateTriggers??=new Map}function Kp(n,r){const c=(0,S.OAn)();if(os(c,(0,S.xbp)(),r)){const k=(0,S.klJ)(),W=(0,S.CpD)();if(S1(W,k,c,n,r))(0,S.Qs1)(W)&&O0(c,W.index);else{const xe=(0,S.d31)(W,c);M1(c[S.GpT],xe,null,W.value,n,r,null)}}return Kp}function Yp(n,r,c,b){const k=(0,S.OAn)();return os(k,(0,S.xbp)(),r)&&((0,S.klJ)(),function mf(n,r,c,b,k,W){const te=(0,S.d31)(n,r);M1(r[S.GpT],te,W,n.value,c,b,k)}((0,S.CpD)(),k,n,r,c,b)),Yp}const Y7=new S.nKC("",{providedIn:"root",factory:()=>!1}),Q7=new S.nKC("",{providedIn:"root",factory:()=>I8}),I8=4e3,X1=typeof document<"u"&&"function"==typeof document?.documentElement?.getAnimations;function nm(n){return n[S.YEL].get(Y7,!1)}function Qp(n){const r=ph.get(n);if(r){for(const c of r.cleanupFns)c();ph.delete(n)}x2.delete(n)}const R8=()=>{},ph=new WeakMap,x2=new WeakMap,gh=new WeakMap;function $p(n,r){const c=gh.get(n);if(c&&c.length>0){const b=c.findIndex(k=>k===r);b>-1&&c.splice(b,1)}0===c?.length&&gh.delete(n)}function A4(n,r){const c=gh.get(n)?.shift(),b=r[S.rQE];if(b){const W=C1(n.index,b)?.previousSibling;c&&W&&c===W&&c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))}}function O8(n,r){gh.has(n)?gh.get(n)?.push(r):gh.set(n,[r])}function _h(n){const r=n[S.Isx]??={};return r.enter??=new Map}function C2(n){const r=n[S.Isx]??={};return r.leave??=new Map}function P8(n){const r="function"==typeof n?n():n;let c=Array.isArray(r)?r:null;return"string"==typeof r&&(c=r.trim().split(/\s+/).filter(b=>b)),c}function N8(n,r){const c=x2.get(r);return void 0===c||r===n.target&&(void 0!==c.animationName&&n.animationName===c.animationName||void 0!==c.propertyName&&n.propertyName===c.propertyName)}function im(n,r,c){const b=n.get(r.index)??{animateFns:[]};b.animateFns.push(c),n.set(r.index,b)}function am(n,r){if(n)for(const c of n)c();for(const c of r)c()}function Zp(n,r){const c=C2(n).get(r.index);c&&(c.resolvers=void 0)}function L4(n,r,c,b,k){$p(r,c),am(b,k),Zp(n,r)}class sv{destroy(r){}updateValue(r,c){}swap(r,c){const b=Math.min(r,c),k=Math.max(r,c),W=this.detach(k);if(k-b>1){const te=this.detach(b);this.attach(b,W),this.attach(k,te)}else this.attach(b,W)}move(r,c){this.attach(c,this.detach(r))}}function qp(n,r,c,b,k){return n===c&&Object.is(r,b)?1:Object.is(k(n,r),k(c,b))?-1:0}function sm(n,r,c,b){return!(void 0===r||!r.has(b)||(n.attach(c,r.get(b)),r.delete(b),0))}function F8(n,r,c,b,k){if(sm(n,r,b,c(b,k)))n.updateValue(b,k);else{const W=n.create(b,k);n.attach(b,W)}}function B8(n,r,c,b){const k=new Set;for(let W=r;W<=c;W++)k.add(b(W,n.at(W)));return k}class e6{kvMap=new Map;_vMap=void 0;has(r){return this.kvMap.has(r)}delete(r){if(!this.has(r))return!1;const c=this.kvMap.get(r);return void 0!==this._vMap&&this._vMap.has(c)?(this.kvMap.set(r,this._vMap.get(c)),this._vMap.delete(c)):this.kvMap.delete(r),!0}get(r){return this.kvMap.get(r)}set(r,c){if(this.kvMap.has(r)){let b=this.kvMap.get(r);void 0===this._vMap&&(this._vMap=new Map);const k=this._vMap;for(;k.has(b);)b=k.get(b);k.set(b,c)}else this.kvMap.set(r,c)}forEach(r){for(let[c,b]of this.kvMap)if(r(b,c),void 0!==this._vMap){const k=this._vMap;for(;k.has(b);)b=k.get(b),r(b,c)}}}function z8(n,r,c,b,k,W,te,xe){Qs("NgControlFlow");const Ae=(0,S.OAn)(),ut=(0,S.klJ)();return H1(Ae,ut,n,r,c,b,k,(0,S.db4)(ut.consts,W),256,te,xe),om}function om(n,r,c,b,k,W,te,xe){Qs("NgControlFlow");const Ae=(0,S.OAn)(),ut=(0,S.klJ)();return H1(Ae,ut,n,r,c,b,k,(0,S.db4)(ut.consts,W),512,te,xe),om}function U8(n,r){Qs("NgControlFlow");const c=(0,S.OAn)(),b=(0,S.xbp)(),k=c[b]!==qa?c[b]:-1,W=-1!==k?lm(c,S.Yw1+k):void 0;if(os(c,b,n)){const xe=(0,Xt.Ht)(null);try{if(void 0!==W&&G0(W,0),-1!==n){const Ae=S.Yw1+n,ut=lm(c,Ae),Ct=t6(c[S.eDl],Ae),Zt=null;Hc(ut,dc(c,Ct,r,{dehydratedView:Zt}),0,Gc(Ct,Zt))}}finally{(0,Xt.Ht)(xe)}}else if(void 0!==W){const xe=Ru(W,0);void 0!==xe&&(xe[S.SKP]=r)}}class V8{lContainer;$implicit;$index;constructor(r,c,b){this.lContainer=r,this.$implicit=c,this.$index=b}get $count(){return this.lContainer.length-S.Y20}}function G8(n,r){return r}class cv{hasEmptyBlock;trackByFn;liveCollection;constructor(r,c,b){this.hasEmptyBlock=r,this.trackByFn=c,this.liveCollection=b}}function H8(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn){Qs("NgControlFlow");const Cn=(0,S.OAn)(),ri=(0,S.klJ)(),Si=void 0!==Ae,Ki=(0,S.OAn)(),ia=xe?te.bind(Ki[S.b5C][S.SKP]):te,Ai=new cv(Si,ia);Ki[S.Yw1+n]=Ai,H1(Cn,ri,n+1,r,c,b,k,(0,S.db4)(ri.consts,W),256),Si&&H1(Cn,ri,n+2,Ae,ut,Ct,Zt,(0,S.db4)(ri.consts,yn),512)}class j8 extends sv{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(r,c,b){super(),this.lContainer=r,this.hostLView=c,this.templateTNode=b}get length(){return this.lContainer.length-S.Y20}at(r){return this.getLView(r)[S.SKP].$implicit}attach(r,c){const b=c[S.tcA];this.needsIndexUpdate||=r!==this.length,Hc(this.lContainer,c,r,Gc(this.templateTNode,b)),function dv(n,r){if(n.length<=S.Y20)return;const b=n[S.Y20+r],k=b?b[S.Isx]:void 0;b&&k&&k.detachedLeaveAnimationFns&&k.detachedLeaveAnimationFns.length>0&&(function J4(n,r){const c=n.get(Id);if(r.detachedLeaveAnimationFns){for(const b of r.detachedLeaveAnimationFns)c.queue.delete(b);r.detachedLeaveAnimationFns=void 0}}(b[S.YEL],k),Yo.delete(b),k.detachedLeaveAnimationFns=void 0)}(this.lContainer,r)}detach(r){return this.needsIndexUpdate||=r!==this.length-1,function uv(n,r){if(n.length<=S.Y20)return;const b=n[S.Y20+r],k=b?b[S.Isx]:void 0;k&&k.leave&&k.leave.size>0&&(k.detachedLeaveAnimationFns=[])}(this.lContainer,r),function hv(n,r){return Nd(n,r)}(this.lContainer,r)}create(r,c){const k=dc(this.hostLView,this.templateTNode,new V8(this.lContainer,c,r),{dehydratedView:null});return this.operationsCounter?.recordCreate(),k}destroy(r){x1(r[S.eDl],r),this.operationsCounter?.recordDestroy()}updateValue(r,c){this.getLView(r)[S.SKP].$implicit=c}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let r=0;r{n.destroy(Ae)})}(Ae,n,W.trackByFn),Ae.updateIndexes(),W.hasEmptyBlock){const ut=(0,S.xbp)(),Ct=0===Ae.length;if(os(b,ut,Ct)){const Zt=c+2,yn=lm(b,Zt);if(Ct){const Cn=t6(k,Zt),ri=null;Hc(yn,dc(b,Cn,void 0,{dehydratedView:ri}),0,Gc(Cn,ri))}else k.firstUpdatePass&&J(yn),G0(yn,0)}}}finally{(0,Xt.Ht)(r)}}function lm(n,r){return n[r]}function t6(n,r){return(0,S.XRZ)(n,r)}function cm(n,r,c){const b=(0,S.OAn)();return os(b,(0,S.xbp)(),r)&&((0,S.klJ)(),k0((0,S.CpD)(),b,n,r,b[S.GpT],c)),cm}function n6(n,r,c,b,k){S1(r,n,c,k?"class":"style",b)}function O4(n,r,c,b){const k=(0,S.OAn)(),W=k[S.eDl],te=n+S.Yw1,xe=W.firstCreatePass?a2(te,k,2,r,N0,(0,S.ckz)(),c,b):W.data[te];if(E1(xe,k,n,r,r6),(0,S.yoD)(xe)){const Ae=k[S.eDl];I0(Ae,k,xe),Wa(Ae,xe,k)}return null!=b&&Ol(k,xe),O4}function dm(){const n=(0,S.klJ)(),c=w1((0,S.Mx4)());return n.firstCreatePass&&Jf(n,c),(0,S.UhH)(c)&&(0,S.krE)(),(0,S.N79)(),null!=c.classesWithoutHost&&function Un(n){return!!(8&n.flags)}(c)&&n6(n,c,(0,S.OAn)(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function ui(n){return!!(16&n.flags)}(c)&&n6(n,c,(0,S.OAn)(),c.stylesWithoutHost,!1),dm}function i6(n,r,c,b){return O4(n,r,c,b),dm(),i6}function um(n,r,c,b){const k=(0,S.OAn)(),W=k[S.eDl],te=n+S.Yw1,xe=W.firstCreatePass?qf(te,W,2,r,c,b):W.data[te];return E1(xe,k,n,r,r6),null!=b&&Ol(k,xe),um}function vh(){const r=w1((0,S.Mx4)());return(0,S.UhH)(r)&&(0,S.krE)(),(0,S.N79)(),vh}function a6(n,r,c,b){return um(n,r,c,b),vh(),a6}let r6=(n,r,c,b,k)=>((0,S.m7n)(!0),s1(r[S.GpT],b,(0,S.UaU)()));function hm(n,r,c){const b=(0,S.OAn)(),k=b[S.eDl],W=n+S.Yw1,te=k.firstCreatePass?a2(W,b,8,"ng-container",N0,(0,S.ckz)(),r,c):k.data[W];if(E1(te,b,n,"ng-container",o6),(0,S.yoD)(te)){const xe=b[S.eDl];I0(xe,b,te),Wa(xe,te,b)}return null!=c&&Ol(b,te),hm}function yh(){const n=(0,S.klJ)(),c=w1((0,S.Mx4)());return n.firstCreatePass&&Jf(n,c),yh}function s6(n,r,c){return hm(n,r,c),yh(),s6}function fm(n,r,c){const b=(0,S.OAn)(),k=b[S.eDl],W=n+S.Yw1,te=k.firstCreatePass?qf(W,k,8,"ng-container",r,c):k.data[W];return E1(te,b,n,"ng-container",o6),null!=c&&Ol(b,te),fm}function K8(){return w1((0,S.Mx4)()),yh}let o6=(n,r,c,b,k)=>((0,S.m7n)(!0),a0(r[S.GpT],""));function Q8(){return(0,S.OAn)()}function mm(n,r,c){const b=(0,S.OAn)();return os(b,(0,S.xbp)(),r)&&((0,S.klJ)(),R0((0,S.CpD)(),b,n,r,b[S.GpT],c)),mm}const pm=void 0;var gv=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],pm,[["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"]],pm,[["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}",pm,"{1} 'at' {0}",pm],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function l6(n){const r=Math.floor(Math.abs(n)),c=n.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===c?1:5}];let bh={};function c6(n){const r=function _v(n){return n.toLowerCase().replace(/_/g,"-")}(n);let c=Z8(r);if(c)return c;const b=r.split("-")[0];if(c=Z8(b),c)return c;if("en"===b)return gv;throw new S.buA(701,!1)}function d6(n){return c6(n)[M2.PluralCase]}function Z8(n){if(!(n in bh)){const r=S.laP.ng&&S.laP.ng.common&&S.laP.ng.common.locales&&S.laP.ng.common.locales[n];return void 0!==r&&(bh[n]=r),r}return bh[n]}var M2=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(M2||{});const J8=["zero","one","two","few","many"],u6="en-US",gm={marker:"element"},_m={marker:"ICU"};var $l=function(n){return n[n.SHIFT=2]="SHIFT",n[n.APPEND_EAGERLY=1]="APPEND_EAGERLY",n[n.COMMENT=2]="COMMENT",n}($l||{});let q8=u6;function bv(n){"string"==typeof n&&(q8=n.toLowerCase().replace(/_/g,"-"))}let P4=0,xh=0;let E2=(n,r,c,b)=>((0,S.m7n)(!0),function e_(n,r,c){const b=n[S.GpT];switch(c){case Node.COMMENT_NODE:return a0(b,r);case Node.TEXT_NODE:return r1(b,r);case Node.ELEMENT_NODE:return s1(b,r,null)}}(n,c,b));function t_(n,r,c,b){const k=c[S.GpT];let te,W=null;for(let xe=0;xe>>1,c),null,null,Cn,ri,null)}else switch(Ae){case _m:const ut=r[++xe],Ct=r[++xe];null===c[Ct]&&Aa(c[Ct]=E2(c,0,ut,Node.COMMENT_NODE),c);break;case gm:const Zt=r[++xe],yn=r[++xe];null===c[yn]&&Aa(c[yn]=E2(c,0,Zt,Node.ELEMENT_NODE),c)}}}function h6(n,r,c,b,k){for(let W=0;W>>2;switch(3&Ct){case 1:const yn=c[++ut],Cn=c[++ut],ri=n.data[Zt];if("string"==typeof ri)M1(r[S.GpT],r[Zt],null,ri,yn,Ae,Cn);else{const Ki=(0,S._px)();(0,S.ypq)(Zt);try{k0(ri,r,yn,Ae,r[S.GpT],Cn)}finally{(0,S.ypq)(Ki)}}break;case 0:const Si=r[Zt];null!==Si&&R2(r[S.GpT],Si,Ae);break;case 2:Sv(n,R1(n,Zt),r,Ae);break;case 3:n_(n,R1(n,Zt),b,r)}}}}else{const Ae=c[W+1];if(Ae>0&&!(3&~Ae)){const Ct=R1(n,Ae>>>2);r[Ct.currentCaseLViewIndex]<0&&n_(n,Ct,b,r)}}W+=xe}}function n_(n,r,c,b){let k=b[r.currentCaseLViewIndex];if(null!==k){let W=P4;k<0&&(k=b[r.currentCaseLViewIndex]=~k,W=-1),h6(n,b,r.update[k],c,W)}}function Sv(n,r,c,b){const k=function Tv(n,r){let c=n.cases.indexOf(r);if(-1===c)switch(n.type){case 1:{const b=function vv(n,r){const c=d6(r)(parseInt(n,10)),b=J8[c];return void 0!==b?b:"other"}(r,function xv(){return q8}());c=n.cases.indexOf(b),-1===c&&"other"!==b&&(c=n.cases.indexOf("other"));break}case 0:c=n.cases.indexOf("other")}return-1===c?null:c}(r,b);if(Q0(r,c)!==k&&(f6(n,r,c),c[r.currentCaseLViewIndex]=null===k?null:~k,null!==k)){const te=c[r.anchorIdx];te&&t_(n,r.create[k],c,te)}}function f6(n,r,c){let b=Q0(r,c);if(null!==b){const k=r.remove[b];for(let W=0;W0){const xe=(0,S.vaC)(te,c);null!==xe&&Cd(c[S.GpT],xe)}else f6(n,R1(n,~te),c)}}}const vm=/\ufffd(\d+):?\d*\ufffd/gi,Av=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,a_=/\ufffd(\d+)\ufffd/,m6=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,p6=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Lv=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Iv=/\uE500/g;function s_(n,r,c,b,k,W,te){const xe=Sd(n,b,1,null);let Ae=xe<<$l.SHIFT,ut=(0,S.Ab)();r===ut&&(ut=null),null===ut&&(Ae|=$l.APPEND_EAGERLY),te&&(Ae|=$l.COMMENT,function Yh(n){void 0===m1&&(m1=n())}(Gf)),k.push(Ae,null===W?"":W);const Ct=Pl(n,xe,te?32:1,null===W?"":W,null);Dc(c,Ct);const Zt=Ct.index;return(0,S.iMd)(Ct,!1),null!==ut&&r!==ut&&function Ff(n,r){let c=n.insertBeforeIndex;null===c?(sf(k1,Pu),c=n.insertBeforeIndex=[null,r]):((0,S.Xln)(Array.isArray(c),!0,"Expecting array here"),c.push(r))}(ut,Zt),Ct}function Rv(n,r,c,b,k,W,te,xe){const Ae=xe.match(vm),Ct=s_(r,c,b,te,k,Ae?null:xe,!1).index;Ae&&F4(W,xe,Ct,null,0,null),n.push({kind:0,index:Ct})}function F4(n,r,c,b,k,W){const te=n.length,xe=te+1;n.push(null,null);const Ae=te+2,ut=r.split(vm);let Ct=0;for(let Zt=0;Ztc.length&&c.push(Ae)}return{type:b,mainBinding:k,cases:r,values:c}}function v6(n){if(!n)return[];let r=0;const c=[],b=[],k=/[{}]/g;let W;for(k.lastIndex=0;W=k.exec(n);){const xe=W.index;if("}"==W[0]){if(c.pop(),0==c.length){const Ae=n.substring(r,xe);m6.test(Ae)?b.push(Fv(Ae)):b.push(Ae),r=xe+1}}else{if(0==c.length){const Ae=n.substring(r,xe);b.push(Ae),r=xe+1}c.push("{")}}const te=n.substring(r);return b.push(te),b}function Bv(n,r,c,b,k,W,te,xe,Ae){const ut=[],Ct=[],Zt=[];c.cases.push(te),c.create.push(ut),c.remove.push(Ct),c.update.push(Zt);const Cn=Wi(hr()).getInertBodyElement(xe),ri=_o(Cn)||Cn;return ri?l_(n,r,c,b,k,ut,Ct,Zt,ri,W,Ae,0):0}function l_(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt){let yn=0,Cn=Ae.firstChild;for(;Cn;){const ri=Sd(r,b,1,null);switch(Cn.nodeType){case Node.ELEMENT_NODE:const Si=Cn,Ki=Si.tagName.toLowerCase();if(xc.hasOwnProperty(Ki)){y6(W,gm,Ki,ut,ri),r.data[ri]=Ki;const Zo=Si.attributes;for(let qd=0;qd>>$l.SHIFT;let Zt=n[Ct],yn=!1;null===Zt&&(Zt=n[Ct]=E2(n,0,r[W],(te&$l.COMMENT)===$l.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),yn=(0,S.SX7)()),ut&&null!==c&&yn&&Mc(k,c,Zt,b,!1)}})(k,Ae.create,Ct,xe&&8&xe.type?k[xe.index]:null),(0,S.xyx)(!0)}function __(){(0,S.xyx)(!1)}function bm(n,r,c){const b=(0,S.OAn)(),k=(0,S.klJ)(),W=(0,S.Mx4)();return C6(k,b,b[S.GpT],W,n,r,c),bm}function xm(n,r,c){const b=(0,S.OAn)(),k=(0,S.klJ)(),W=(0,S.Mx4)();return(3&W.type||c)&&Zm(W,k,b,c,b[S.GpT],n,r,s2(W,b,r)),xm}function C6(n,r,c,b,k,W,te){let xe=!0,Ae=null;if((3&b.type||te)&&(Ae??=s2(b,r,W),Zm(b,n,r,te,c,k,W,Ae)&&(xe=!1)),xe){const ut=b.outputs?.[k],Ct=b.hostDirectiveOutputs?.[k];if(Ct&&Ct.length)for(let Zt=0;Zt>17&32767}function w6(n){return 2|n}function Y1(n){return(131068&n)>>2}function S6(n,r){return-131069&n|r<<2}function T6(n){return 1|n}function L_(n,r,c,b){const k=n[c+1],W=null===r;let te=b?K1(k):Y1(k),xe=!1;for(;0!==te&&(!1===xe||W);){const ut=n[te+1];e9(n[te],r)&&(xe=!0,n[te+1]=b?T6(ut):w6(ut)),te=b?K1(ut):Y1(ut)}xe&&(n[c+1]=b?w6(k):T6(k))}function e9(n,r){return null===n||null==r||(Array.isArray(n)?n[1]:n)===r||!(!Array.isArray(n)||"string"!=typeof r)&&(0,S.FRF)(n,r)>=0}const Bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I_(n){return n.substring(Bo.key,Bo.keyEnd)}function k_(n){return n.substring(Bo.value,Bo.valueEnd)}function A6(n,r){const c=Bo.textEnd;return c===r?-1:(r=Bo.keyEnd=function L6(n,r,c){for(;r32;)r++;return r}(n,Bo.key=r,c),Ch(n,r,c))}function R_(n,r){const c=Bo.textEnd;let b=Bo.key=Ch(n,r,c);return c===b?-1:(b=Bo.keyEnd=function i9(n,r,c){let b;for(;r=65&&(-33&b)<=90||b>=48&&b<=57);)r++;return r}(n,b,c),b=P_(n,b,c),b=Bo.value=Ch(n,b,c),b=Bo.valueEnd=function a9(n,r,c){let b=-1,k=-1,W=-1,te=r,xe=te;for(;te32&&(xe=te),W=k,k=b,b=-33&Ae}return xe}(n,b,c),P_(n,b,c))}function O_(n){Bo.key=0,Bo.keyEnd=0,Bo.value=0,Bo.valueEnd=0,Bo.textEnd=n.length}function Ch(n,r,c){for(;r=0;c=R_(r,c))R6(n,I_(r),k_(r))}function B_(n){V_(d9,z_,n,!0)}function z_(n,r){for(let c=function t9(n){return O_(n),A6(n,Ch(n,0,Bo.textEnd))}(r);c>=0;c=A6(r,c))(0,S.ezK)(n,I_(r),!0)}function U_(n,r,c,b){const k=(0,S.OAn)(),W=(0,S.klJ)(),te=(0,S.b$O)(2);W.firstUpdatePass&&H_(W,n,te,b),r!==qa&&os(k,te,r)&&W_(W,W.data[(0,S._px)()],k,k[S.GpT],n,k[te+1]=function h9(n,r){return null==n||""===n||("string"==typeof r?n+=r:"object"==typeof n&&(n=(0,S.AsM)(wt(n)))),n}(r,c),b,te)}function V_(n,r,c,b){const k=(0,S.klJ)(),W=(0,S.b$O)(2);k.firstUpdatePass&&H_(k,null,W,b);const te=(0,S.OAn)();if(c!==qa&&os(te,W,c)){const xe=k.data[(0,S._px)()];if(K_(xe,b)&&!G_(k,W)){let Ae=b?xe.classesWithoutHost:xe.stylesWithoutHost;null!==Ae&&(c=(0,S.n$e)(Ae,c||"")),n6(k,xe,te,c,b)}else!function u9(n,r,c,b,k,W,te,xe){k===qa&&(k=S.Mlv);let Ae=0,ut=0,Ct=0=n.expandoStartIndex}function H_(n,r,c,b){const k=n.data;if(null===k[c+1]){const W=k[(0,S._px)()],te=G_(n,c);K_(W,b)&&null===r&&!te&&(r=!1),r=function j_(n,r,c,b){const k=(0,S.MT)(n);let W=b?r.residualClasses:r.residualStyles;if(null===k)0===(b?r.classBindings:r.styleBindings)&&(c=Mh(c=k6(null,n,r,c,b),r.attrs,b),W=null);else{const te=r.directiveStylingLast;if(-1===te||n[te]!==k)if(c=k6(k,n,r,c,b),null===W){let Ae=function s9(n,r,c){const b=c?r.classBindings:r.styleBindings;if(0!==Y1(b))return n[K1(b)]}(n,r,b);void 0!==Ae&&Array.isArray(Ae)&&(Ae=k6(null,n,r,Ae[1],b),Ae=Mh(Ae,r.attrs,b),function o9(n,r,c,b){n[K1(c?r.classBindings:r.styleBindings)]=b}(n,r,b,Ae))}else W=function l9(n,r,c){let b;const k=r.directiveEnd;for(let W=1+r.directiveStylingLast;W0)&&(ut=!0)):Ct=c,k)if(0!==Ae){const yn=K1(n[xe+1]);n[b+1]=Mm(yn,xe),0!==yn&&(n[yn+1]=S6(n[yn+1],b)),n[xe+1]=function Zv(n,r){return 131071&n|r<<17}(n[xe+1],b)}else n[b+1]=Mm(xe,0),0!==xe&&(n[xe+1]=S6(n[xe+1],b)),xe=b;else n[b+1]=Mm(Ae,0),0===xe?xe=b:n[Ae+1]=S6(n[Ae+1],b),Ae=b;ut&&(n[b+1]=w6(n[b+1])),L_(n,Ct,b,!0),L_(n,Ct,b,!1),function D6(n,r,c,b,k){const W=k?n.residualClasses:n.residualStyles;null!=W&&"string"==typeof r&&(0,S.FRF)(W,r)>=0&&(c[b+1]=T6(c[b+1]))}(r,Ct,n,b,W),te=Mm(xe,Ae),W?r.classBindings=te:r.styleBindings=te}(k,W,r,c,te,b)}}function k6(n,r,c,b,k){let W=null;const te=c.directiveEnd;let xe=c.directiveStylingLast;for(-1===xe?xe=c.directiveStart:xe++;xe0;){const Ae=n[k],ut=Array.isArray(Ae),Ct=ut?Ae[1]:Ae,Zt=null===Ct;let yn=c[k+1];yn===qa&&(yn=Zt?S.Mlv:void 0);let Cn=Zt?(0,S.K7h)(yn,b):Ct===b?yn:void 0;if(ut&&!z4(Cn)&&(Cn=(0,S.K7h)(Ae,b)),z4(Cn)&&(xe=Cn,te))return xe;const ri=n[k+1];k=te?K1(ri):Y1(ri)}if(null!==r){let Ae=W?r.residualClasses:r.residualStyles;null!=Ae&&(xe=(0,S.K7h)(Ae,b))}return xe}function z4(n){return void 0!==n}function K_(n,r){return!!(n.flags&(r?8:16))}function U4(n,r=""){const c=(0,S.OAn)(),b=(0,S.klJ)(),k=n+S.Yw1,W=b.firstCreatePass?Yl(b,k,1,r,null):b.data[k],te=Y_(b,c,W,r,n);c[k]=te,(0,S.SX7)()&&mu(b,c,te,W),(0,S.iMd)(W,!1)}let Y_=(n,r,c,b,k)=>((0,S.m7n)(!0),r1(r[S.GpT],b));function O6(n,r){let c=!1,b=(0,S.c$7)();for(let W=1;W>20;if((0,S.Y3W)(n)||!n.multi){const Cn=new nn(ut,k,ys,null),ri=H6(Ae,r,k?Ct:Ct+yn,Zt);-1===ri?(ti(un(xe,te),W,Ae),G6(W,n,r.length),r.push(Ae),xe.directiveStart++,xe.directiveEnd++,k&&(xe.providerIndexes+=1048576),c.push(Cn),te.push(Cn)):(c[ri]=Cn,te[ri]=Cn)}else{const Cn=H6(Ae,r,Ct+yn,Zt),ri=H6(Ae,r,Ct,Ct+yn),Ki=ri>=0&&c[ri];if(k&&!Ki||!k&&!(Cn>=0&&c[Cn])){ti(un(xe,te),W,Ae);const ia=function M9(n,r,c,b,k){const te=new nn(n,c,ys,null);return te.multi=[],te.index=r,te.componentProviders=0,p5(te,k,b&&!c),te}(k?C9:j6,c.length,k,b,ut);!k&&Ki&&(c[ri].providerFactory=ia),G6(W,n,r.length,0),r.push(Ae),xe.directiveStart++,xe.directiveEnd++,k&&(xe.providerIndexes+=1048576),c.push(ia),te.push(ia)}else G6(W,n,Cn>-1?Cn:ri,p5(c[k?ri:Cn],ut,!k&&b));!k&&b&&Ki&&c[ri].componentProviders++}}}function G6(n,r,c,b){const k=(0,S.Y3W)(r),W=(0,S.MME)(r);if(k||W){const Ae=(W?(0,S.nl4)(r.useClass):r).prototype.ngOnDestroy;if(Ae){const ut=n.destroyHooks||(n.destroyHooks=[]);if(!k&&r.multi){const Ct=ut.indexOf(c);-1===Ct?ut.push(c,[b,Ae]):ut[Ct+1].push(b,Ae)}else ut.push(c,Ae)}}}function p5(n,r,c){return c&&n.componentProviders++,n.multi.push(r)-1}function H6(n,r,c,b){for(let k=c;k{c.providersResolver=(b,k)=>function x9(n,r,c){const b=(0,S.klJ)();if(b.firstCreatePass){const k=(0,S.JlV)(n);V6(c,b.data,b.blueprint,k,!0),V6(r,b.data,b.blueprint,k,!1)}}(b,k?k(n):n,r)}}function Sm(n){if("function"==typeof n)return n;const r=(0,S.Bqz)(n);return r.some(S.Jzi)?()=>r.map(S.nl4).map(y5):r.map(y5)}function y5(n){return B1(n)?n.ngModule:n}function b5(n,r,c){const b=(0,S.gxQ)()+n,k=(0,S.OAn)();return k[b]===qa?Yc(k,b,c?r.call(c):r()):r2(k,b)}function Tm(n,r,c,b){return w5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b)}function x5(n,r,c,b,k){return S5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b,k)}function C5(n,r,c,b,k,W){return T5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b,k,W)}function G4(n,r){const c=n[r];return c===qa?void 0:c}function w5(n,r,c,b,k,W){const te=r+c;return os(n,te,k)?Yc(n,te+1,W?b.call(W,k):b(k)):G4(n,te+1)}function S5(n,r,c,b,k,W,te){const xe=r+c;return Gd(n,xe,k,W)?Yc(n,xe+2,te?b.call(te,k,W):b(k,W)):G4(n,xe+2)}function T5(n,r,c,b,k,W,te,xe){const Ae=r+c;return t4(n,Ae,k,W,te)?Yc(n,Ae+3,xe?b.call(xe,k,W,te):b(k,W,te)):G4(n,Ae+3)}function X6(n,r,c,b,k,W,te,xe,Ae){const ut=r+c;return hc(n,ut,k,W,te,xe)?Yc(n,ut+4,Ae?b.call(Ae,k,W,te,xe):b(k,W,te,xe)):G4(n,ut+4)}function D5(n,r,c,b,k,W){let te=r+c,xe=!1;for(let Ae=0;Ae=0;c--){const b=r[c];if(n===b.name)return b}}(r,c.pipeRegistry),c.data[k]=b,b.onDestroy&&(c.destroyHooks??=[]).push(k,b.onDestroy)):b=c.data[k];const W=b.factory||(b.factory=(0,S.wGu)(b.type,!0)),xe=(0,S.a2B)(ys);try{const Ae=Zn(!1),ut=W();return Zn(Ae),(0,S.M_e)(c,(0,S.OAn)(),k,ut),ut}finally{(0,S.a2B)(xe)}}function I5(n,r,c){const b=n+S.Yw1,k=(0,S.OAn)(),W=(0,S.Hh6)(k,b);return H4(k,b)?w5(k,(0,S.gxQ)(),r,W.transform,c,W):W.transform(c)}function K6(n,r,c,b){const k=n+S.Yw1,W=(0,S.OAn)(),te=(0,S.Hh6)(W,k);return H4(W,k)?S5(W,(0,S.gxQ)(),r,te.transform,c,b,te):te.transform(c,b)}function k5(n,r,c,b,k){const W=n+S.Yw1,te=(0,S.OAn)(),xe=(0,S.Hh6)(te,W);return H4(te,W)?T5(te,(0,S.gxQ)(),r,xe.transform,c,b,k,xe):xe.transform(c,b,k)}function H4(n,r){return n[S.eDl].data[r].pure}function Y6(n,r){return D1(n,r)}function Dm(n,r,c,b,k){const W=k[S.eDl];if(W!==b.tView)for(let te=S.Yw1;te{if(b.encapsulation===Ui.ShadowDom){const ri=te.cloneNode(!1);te.replaceWith(ri),te=ri}const Zt=Q2(c),yn=Ed(xe,Zt,W,wd(c),te,Ae,null,null,null,null,null);(function P5(n,r,c,b){for(let k=S.Yw1;kO5(n,r,Ct))}(n,r,c,b,k)}function O5(n,r,c){try{c()}catch(b){if(null!==r&&b.message){const W=b.message+(b.stack?"\n"+b.stack:"");n?.hot?.send?.("angular:invalidate",{id:r,message:W,error:!0})}throw b}}const Q1={\u0275\u0275animateEnter:function rm(n){if(Qs("NgAnimateEnter"),!X1)return rm;const r=(0,S.OAn)();if(nm(r))return rm;const c=(0,S.Mx4)();return A4(c,r),im(_h(r),c,()=>function ev(n,r,c){const b=(0,S.d31)(r,n),k=n[S.GpT],W=n[S.YEL].get(pr),te=P8(c),xe=[],Ae=Ct=>{if(Ct.target!==b)return;const Zt=Ct instanceof AnimationEvent?"animationend":"transitionend";W.runOutsideAngular(()=>{k.listen(b,Zt,ut)})},ut=Ct=>{Ct.target===b&&function tv(n,r,c){const b=ph.get(r);if(n.target===r&&b&&N8(n,r)){n.stopImmediatePropagation();for(const k of b.classList)c.removeClass(r,k);Qp(r)}}(Ct,b,k)};if(te&&te.length>0){W.runOutsideAngular(()=>{xe.push(k.listen(b,"animationstart",Ae)),xe.push(k.listen(b,"transitionstart",Ae))}),function Z7(n,r,c){const b=ph.get(n);if(b){for(const k of r)b.classList.push(k);for(const k of c)b.cleanupFns.push(k)}else ph.set(n,{classList:r,cleanupFns:c})}(b,te,xe);for(const Ct of te)k.addClass(b,Ct);W.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(v0(b,x2,X1),!x2.has(b)){for(const Ct of te)k.removeClass(b,Ct);Qp(b)}})})}}(r,c,n)),E0(r[S.YEL]),kd(r[S.YEL],_h(r)),rm},\u0275\u0275animateEnterListener:function I4(n){if(Qs("NgAnimateEnter"),!X1)return I4;const r=(0,S.OAn)();if(nm(r))return I4;const c=(0,S.Mx4)();return A4(c,r),im(_h(r),c,()=>function nv(n,r,c){const b=(0,S.d31)(r,n);c.call(n[S.SKP],{target:b,animationComplete:R8})}(r,c,n)),E0(r[S.YEL]),kd(r[S.YEL],_h(r)),I4},\u0275\u0275animateLeave:function k4(n){if(Qs("NgAnimateLeave"),!X1)return k4;const r=(0,S.OAn)();if(nm(r))return k4;const b=(0,S.Mx4)();return A4(b,r),im(C2(r),b,()=>function iv(n,r,c){const{promise:b,resolve:k}=Up(),W=(0,S.d31)(r,n),te=n[S.GpT],xe=n[S.YEL].get(pr);Yo.add(n),(C2(n).get(r.index).resolvers??=[]).push(k);const Ae=P8(c);return Ae&&Ae.length>0?function R4(n,r,c,b,k,W){!function J7(n,r){if(!X1)return;const c=ph.get(n);if(c&&c.classList.length>0&&function q7(n,r){for(const c of r)if(n.classList.contains(c))return!0;return!1}(n,c.classList))for(const b of c.classList)r.removeClass(n,b);Qp(n)}(n,k);const te=[],xe=C2(c).get(r.index)?.resolvers,Ae=ut=>{if(ut.target===n&&(ut instanceof CustomEvent||N8(ut,n))){if(ut.stopImmediatePropagation(),x2.delete(n),$p(r,n),Array.isArray(r.projection))for(const Ct of b)k.removeClass(n,Ct);am(xe,te),Zp(c,r)}};W.runOutsideAngular(()=>{te.push(k.listen(n,"animationend",Ae)),te.push(k.listen(n,"transitionend",Ae))}),O8(r,n);for(const ut of b)k.addClass(n,ut);W.runOutsideAngular(()=>{requestAnimationFrame(()=>{v0(n,x2,X1),x2.has(n)||($p(r,n),am(xe,te),Zp(c,r))})})}(W,r,n,Ae,te,xe):k(),{promise:b,resolve:k}}(r,b,n)),E0(r[S.YEL]),k4},\u0275\u0275animateLeaveListener:function Jp(n){if(Qs("NgAnimateLeave"),!X1)return Jp;const r=(0,S.OAn)(),c=(0,S.Mx4)();return A4(c,r),Yo.add(r),im(C2(r),c,()=>function av(n,r,c){const{promise:b,resolve:k}=Up(),W=(0,S.d31)(r,n),te=[],xe=n[S.GpT],Ae=nm(n),ut=n[S.YEL].get(pr),Ct=n[S.YEL].get(Q7);(C2(n).get(r.index).resolvers??=[]).push(k);const Zt=C2(n).get(r.index)?.resolvers;if(Ae)L4(n,r,W,Zt,te);else{const yn=setTimeout(()=>L4(n,r,W,Zt,te),Ct),Cn={target:W,animationComplete:()=>{L4(n,r,W,Zt,te),clearTimeout(yn)}};O8(r,W),ut.runOutsideAngular(()=>{te.push(xe.listen(W,"animationend",()=>{L4(n,r,W,Zt,te),clearTimeout(yn)},{once:!0}))}),c.call(n[S.SKP],Cn)}return{promise:b,resolve:k}}(r,c,n)),E0(r[S.YEL]),Jp},\u0275\u0275attribute:Yp,\u0275\u0275defineComponent:pp,\u0275\u0275defineDirective:U3,\u0275\u0275defineInjectable:S.jDH,\u0275\u0275defineInjector:S.G2t,\u0275\u0275defineNgModule:_p,\u0275\u0275definePipe:V3,\u0275\u0275directiveInject:ys,\u0275\u0275getInheritedFactory:vt,\u0275\u0275inject:S.KVO,\u0275\u0275injectAttribute:va,\u0275\u0275invalidFactory:Ac,\u0275\u0275invalidFactoryDep:S.dmw,\u0275\u0275templateRefExtractor:Y6,\u0275\u0275resetView:S.Njj,\u0275\u0275HostDirectivesFeature:xp,\u0275\u0275NgOnChangesFeature:St,\u0275\u0275ProvidersFeature:g5,\u0275\u0275CopyDefinitionFeature:function dh(n){let c,r=yp(n.type);c=(0,S.JlV)(n)?r.\u0275cmp:r.\u0275dir;const b=n;for(const k of H3)b[k]=c[k];if((0,S.JlV)(c))for(const k of m2)b[k]=c[k]},\u0275\u0275InheritDefinitionFeature:m4,\u0275\u0275ExternalStylesFeature:function _5(n){return r=>{n.length<1||(r.getExternalStyles=c=>n.map(k=>k+"?ngcomp"+(c?"="+encodeURIComponent(c):"")+"&e="+r.encapsulation))}},\u0275\u0275nextContext:x_,\u0275\u0275namespaceHTML:S.joV,\u0275\u0275namespaceMathML:S.By9,\u0275\u0275namespaceSVG:S.qSk,\u0275\u0275enableBindings:S.cSN,\u0275\u0275disableBindings:S.fuf,\u0275\u0275elementStart:O4,\u0275\u0275elementEnd:dm,\u0275\u0275element:i6,\u0275\u0275elementContainerStart:hm,\u0275\u0275elementContainerEnd:yh,\u0275\u0275domElement:a6,\u0275\u0275domElementStart:um,\u0275\u0275domElementEnd:vh,\u0275\u0275domElementContainer:function Y8(n,r,c){return fm(n,r,c),K8(),Y8},\u0275\u0275domElementContainerStart:fm,\u0275\u0275domElementContainerEnd:K8,\u0275\u0275domTemplate:y4,\u0275\u0275domListener:xm,\u0275\u0275elementContainer:s6,\u0275\u0275pureFunction0:b5,\u0275\u0275pureFunction1:Tm,\u0275\u0275pureFunction2:x5,\u0275\u0275pureFunction3:C5,\u0275\u0275pureFunction4:function w9(n,r,c,b,k,W,te){return X6((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b,k,W,te)},\u0275\u0275pureFunction5:function M5(n,r,c,b,k,W,te,xe){const Ae=(0,S.gxQ)()+n,ut=(0,S.OAn)(),Ct=hc(ut,Ae,c,b,k,W);return os(ut,Ae+4,te)||Ct?Yc(ut,Ae+5,xe?r.call(xe,c,b,k,W,te):r(c,b,k,W,te)):r2(ut,Ae+5)},\u0275\u0275pureFunction6:function S9(n,r,c,b,k,W,te,xe,Ae){const ut=(0,S.gxQ)()+n,Ct=(0,S.OAn)(),Zt=hc(Ct,ut,c,b,k,W);return Gd(Ct,ut+4,te,xe)||Zt?Yc(Ct,ut+6,Ae?r.call(Ae,c,b,k,W,te,xe):r(c,b,k,W,te,xe)):r2(Ct,ut+6)},\u0275\u0275pureFunction7:function E5(n,r,c,b,k,W,te,xe,Ae,ut){const Ct=(0,S.gxQ)()+n,Zt=(0,S.OAn)();let yn=hc(Zt,Ct,c,b,k,W);return t4(Zt,Ct+4,te,xe,Ae)||yn?Yc(Zt,Ct+7,ut?r.call(ut,c,b,k,W,te,xe,Ae):r(c,b,k,W,te,xe,Ae)):r2(Zt,Ct+7)},\u0275\u0275pureFunction8:function T9(n,r,c,b,k,W,te,xe,Ae,ut,Ct){const Zt=(0,S.gxQ)()+n,yn=(0,S.OAn)(),Cn=hc(yn,Zt,c,b,k,W);return hc(yn,Zt+4,te,xe,Ae,ut)||Cn?Yc(yn,Zt+8,Ct?r.call(Ct,c,b,k,W,te,xe,Ae,ut):r(c,b,k,W,te,xe,Ae,ut)):r2(yn,Zt+8)},\u0275\u0275pureFunctionV:function D9(n,r,c,b){return D5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b)},\u0275\u0275getCurrentView:Q8,\u0275\u0275restoreView:S.eBV,\u0275\u0275listener:bm,\u0275\u0275projection:M6,\u0275\u0275syntheticHostProperty:function $8(n,r,c){const b=(0,S.OAn)();if(os(b,(0,S.xbp)(),r)){const W=(0,S.klJ)(),te=(0,S.CpD)();R0(te,b,n,r,xu((0,S.MT)(W.data),te,b),c)}return $8},\u0275\u0275syntheticHostListener:function b_(n,r){const c=(0,S.Mx4)(),b=(0,S.OAn)(),k=(0,S.klJ)();return C6(k,b,xu((0,S.MT)(k.data),c,b),c,n,r),b_},\u0275\u0275pipeBind1:I5,\u0275\u0275pipeBind2:K6,\u0275\u0275pipeBind3:k5,\u0275\u0275pipeBind4:function L9(n,r,c,b,k,W){const te=n+S.Yw1,xe=(0,S.OAn)(),Ae=(0,S.Hh6)(xe,te);return H4(xe,te)?X6(xe,(0,S.gxQ)(),r,Ae.transform,c,b,k,W,Ae):Ae.transform(c,b,k,W)},\u0275\u0275pipeBindV:function R5(n,r,c){const b=n+S.Yw1,k=(0,S.OAn)(),W=(0,S.Hh6)(k,b);return H4(k,b)?D5(k,(0,S.gxQ)(),r,W.transform,c,W):W.transform.apply(W,c)},\u0275\u0275projectionDef:M_,\u0275\u0275domProperty:mm,\u0275\u0275ariaProperty:Kp,\u0275\u0275property:cm,\u0275\u0275pipe:A5,\u0275\u0275queryRefresh:w_,\u0275\u0275queryAdvance:D_,\u0275\u0275viewQuery:E_,\u0275\u0275viewQuerySignal:Cm,\u0275\u0275loadQuery:S_,\u0275\u0275contentQuery:E6,\u0275\u0275contentQuerySignal:T_,\u0275\u0275reference:A_,\u0275\u0275classMap:B_,\u0275\u0275styleMap:function F_(n){V_(R6,r9,n,!1)},\u0275\u0275styleProp:I6,\u0275\u0275classProp:B4,\u0275\u0275advance:rd,\u0275\u0275template:v4,\u0275\u0275conditional:U8,\u0275\u0275conditionalCreate:z8,\u0275\u0275conditionalBranchCreate:om,\u0275\u0275defer:function M8(n,r,c,b,k,W,te,xe,Ae,ut){const Ct=(0,S.OAn)(),Zt=(0,S.klJ)(),yn=n+S.Yw1,Cn=H1(Ct,Zt,n,null,0,0),ri=Ct[S.YEL],Si=oa(ri);if(Zt.firstCreatePass){Qs("NgDefer");const qd={primaryTmplIndex:r,loadingTmplIndex:b??null,placeholderTmplIndex:k??null,errorTmplIndex:W??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:c??null,loadingState:Gs.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:ut??0};Ae?.(Zt,qd,xe,te),function Lp(n,r,c){const b=_2(r);n.data[b]=c}(Zt,yn,qd)}const Ki=Ct[yn];let ia=null,Ai=null;if(Ki[S.qFA]?.length>0){const qd=Ki[S.qFA][0].data;Ai=qd.di??null,ia=qd.s}const gr=[null,p2.Initial,null,null,null,null,Ai,ia,null,null];!function Kg(n,r,c){n[_2(r)]=c}(Ct,yn,gr);let Zo=null;null!==Ai&&Si&&(Zo=ri.get(Do),Zo.add(Ai,{lView:Ct,tNode:Cn,lContainer:Ki}));const xs=()=>{Y3(gr),null!==Ai&&Zo?.cleanup([Ai])};fh(0,gr,()=>(0,S.DyX)(Ct,xs)),(0,S.ik5)(Ct,xs)},\u0275\u0275deferWhen:function E8(n){const r=(0,S.OAn)(),c=(0,S.CpD)();if(Zs(0,r,c)&&os(r,(0,S.xbp)(),n)){const k=(0,Xt.Ht)(null);try{const W=!!n,xe=Fl(r,c)[1];!1===W&&xe===p2.Initial?qn(r,c):!0===W&&(xe===p2.Initial||xe===Ir.Placeholder)&&Jd(0,r,c)}finally{(0,Xt.Ht)(k)}}},\u0275\u0275deferOnIdle:function F7(){Zs(0,(0,S.OAn)(),(0,S.Mx4)())&&em(mh)},\u0275\u0275deferOnImmediate:function w8(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(0,n,r)&&(null===yo(n[S.eDl],r).loadingTmplIndex&&qn(n,r),Jd(0,n,r))},\u0275\u0275deferOnTimer:function V7(n){Zs(0,(0,S.OAn)(),(0,S.Mx4)())&&em(E(n))},\u0275\u0275deferOnHover:function D8(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();Zs(0,c,b)&&(qn(c,b),Yd(c,b,n,r,ji,()=>Jd(0,c,b),0))},\u0275\u0275deferOnInteraction:function D4(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();Zs(0,c,b)&&(qn(c,b),Yd(c,b,n,r,di,()=>Jd(0,c,b),0))},\u0275\u0275deferOnViewport:function K7(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();Zs(0,c,b)&&(qn(c,b),Yd(c,b,n,r,M4,()=>Jd(0,c,b),0))},\u0275\u0275deferPrefetchWhen:function O7(n){const r=(0,S.OAn)(),c=(0,S.CpD)();if(Zs(1,r,c)&&os(r,(0,S.xbp)(),n)){const k=(0,Xt.Ht)(null);try{const W=!!n,xe=yo(r[S.eDl],c);!0===W&&xe.loadingState===Gs.NOT_STARTED&&T4(xe,r,c)}finally{(0,Xt.Ht)(k)}}},\u0275\u0275deferPrefetchOnIdle:function B7(){Zs(1,(0,S.OAn)(),(0,S.Mx4)())&&Vp(mh)},\u0275\u0275deferPrefetchOnImmediate:function S8(){const n=(0,S.OAn)(),r=(0,S.Mx4)();if(!Zs(1,n,r))return;const b=yo(n[S.eDl],r);b.loadingState===Gs.NOT_STARTED&&Gp(b,n,r)},\u0275\u0275deferPrefetchOnTimer:function T8(n){Zs(1,(0,S.OAn)(),(0,S.Mx4)())&&Vp(E(n))},\u0275\u0275deferPrefetchOnHover:function H7(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();if(!Zs(1,c,b))return;const W=yo(c[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&Yd(c,b,n,r,ji,()=>T4(W,c,b),1)},\u0275\u0275deferPrefetchOnInteraction:function W7(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();if(!Zs(1,c,b))return;const W=yo(c[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&Yd(c,b,n,r,di,()=>T4(W,c,b),1)},\u0275\u0275deferPrefetchOnViewport:function A8(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();if(!Zs(1,c,b))return;const W=yo(c[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&Yd(c,b,n,r,M4,()=>T4(W,c,b),1)},\u0275\u0275deferHydrateWhen:function P7(n){const r=(0,S.OAn)(),c=(0,S.CpD)();if(!Zs(2,r,c))return;const b=(0,S.xbp)();if(W1((0,S.klJ)(),c).set(6,null),os(r,b,n)){const te=r[S.YEL],xe=(0,Xt.Ht)(null);try{1==!!n&&b2(te,Fl(r,c)[6])}finally{(0,Xt.Ht)(xe)}}},\u0275\u0275deferHydrateNever:function N7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(7,null)},\u0275\u0275deferHydrateOnIdle:function z7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&(W1((0,S.klJ)(),r).set(0,null),g8(mh,n,r))},\u0275\u0275deferHydrateOnImmediate:function U7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&(W1((0,S.klJ)(),r).set(1,null),b2(n[S.YEL],Fl(n,r)[6]))},\u0275\u0275deferHydrateOnTimer:function G7(n){const r=(0,S.OAn)(),c=(0,S.Mx4)();Zs(2,r,c)&&(W1((0,S.klJ)(),c).set(5,{delay:n}),g8(E(n),r,c))},\u0275\u0275deferHydrateOnHover:function j7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(4,null)},\u0275\u0275deferHydrateOnInteraction:function X7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(3,null)},\u0275\u0275deferHydrateOnViewport:function L8(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(2,null)},\u0275\u0275deferEnableTimerScheduling:function ta(n,r,c,b){const k=n.consts;null!=c&&(r.placeholderBlockConfig=(0,S.db4)(k,c)),null!=b&&(r.loadingBlockConfig=(0,S.db4)(k,b)),null===pa&&(pa=xi)},\u0275\u0275repeater:W8,\u0275\u0275repeaterCreate:H8,\u0275\u0275repeaterTrackByIndex:function lv(n){return n},\u0275\u0275repeaterTrackByIdentity:G8,\u0275\u0275componentInstance:function rv(){return(0,S.OAn)()[S.b5C][S.SKP]},\u0275\u0275text:U4,\u0275\u0275textInterpolate:N6,\u0275\u0275textInterpolate1:V4,\u0275\u0275textInterpolate2:F6,\u0275\u0275textInterpolate3:B6,\u0275\u0275textInterpolate4:Em,\u0275\u0275textInterpolate5:function n5(n,r,c,b,k,W,te,xe,Ae,ut,Ct){const Zt=(0,S.OAn)(),yn=J_(Zt,n,r,c,b,k,W,te,xe,Ae,ut,Ct);return yn!==qa&&gd(Zt,(0,S._px)(),yn),n5},\u0275\u0275textInterpolate6:function i5(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn){const Cn=(0,S.OAn)(),ri=q_(Cn,n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn);return ri!==qa&&gd(Cn,(0,S._px)(),ri),i5},\u0275\u0275textInterpolate7:function a5(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri){const Si=(0,S.OAn)(),Ki=e5(Si,n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri);return Ki!==qa&&gd(Si,(0,S._px)(),Ki),a5},\u0275\u0275textInterpolate8:function z6(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki){const ia=(0,S.OAn)(),Ai=t5(ia,n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki);return Ai!==qa&&gd(ia,(0,S._px)(),Ai),z6},\u0275\u0275textInterpolateV:function r5(n){const r=(0,S.OAn)(),c=O6(r,n);return c!==qa&&gd(r,(0,S._px)(),c),r5},\u0275\u0275i18n:function x6(n,r,c){g_(n,r,c),__()},\u0275\u0275i18nAttributes:function Kv(n,r){const c=(0,S.klJ)(),b=(0,S.db4)(c.consts,r);!function Ov(n,r,c){const b=(0,S.Mx4)(),k=b.index,W=[];if(n.firstCreatePass&&null===n.data[r]){for(let te=0;te0){const b=n.data[c];h6(n,r,Array.isArray(b)?b:b.update,(0,S.c$7)()-xh-1,P4)}P4=0,xh=0}((0,S.klJ)(),(0,S.OAn)(),n+S.Yw1)},\u0275\u0275i18nPostprocess:function Yv(n,r={}){return function p_(n,r={}){let c=n;if(f_.test(n)){const b={},k=[0];c=c.replace(Gv,(W,te,xe)=>{const Ae=te||xe,ut=b[Ae]||[];if(ut.length||(Ae.split("|").forEach(Si=>{const Ki=Si.match(Xv),ia=Ki?parseInt(Ki[1],10):0,Ai=Wv.test(Si);ut.push([ia,Ai,Si])}),b[Ae]=ut),!ut.length)throw new Error(`i18n postprocess: unmatched placeholder - ${Ae}`);const Ct=k[k.length-1];let Zt=0;for(let Si=0;Sir.hasOwnProperty(W)?`${k}${r[W]}${Ae}`:b),c=c.replace(m_,(b,k)=>r.hasOwnProperty(k)?r[k]:b),c=c.replace(jv,(b,k)=>{if(r.hasOwnProperty(k)){const W=r[k];if(!W.length)throw new Error(`i18n postprocess: unmatched ICU - ${b} with key: ${k}`);return W.shift()}return b})),c}(n,r)},\u0275\u0275resolveWindow:H2,\u0275\u0275resolveDocument:function Fh(n){return n.ownerDocument},\u0275\u0275resolveBody:function d1(n){return n.ownerDocument.body},\u0275\u0275setComponentScope:function E9(n,r,c){const b=n.\u0275cmp;b.directiveDefs=ch(r,gp),b.pipeDefs=ch(c,S.oyA)},\u0275\u0275setNgModuleScope:function v5(n,r){return Le(()=>{const c=(0,S.WbQ)(n);c.declarations=Sm(r.declarations||S.Mlv),c.imports=Sm(r.imports||S.Mlv),c.exports=Sm(r.exports||S.Mlv),r.bootstrap&&(c.bootstrap=Sm(r.bootstrap)),Nl.registerNgModule(n,r)})},\u0275\u0275registerNgModuleType:f4,\u0275\u0275getComponentDepsFactory:function I9(n,r){return()=>{try{return Nl.getComponentDependencies(n,r).dependencies}catch(c){throw console.error(`Computing dependencies in local compilation mode for the component "${n.name}" failed with the exception:`,c),c}}},\u0275setClassDebugInfo:function k9(n,r){const c=(0,S.xUg)(n);null!==c&&(c.debugInfo=r)},\u0275\u0275declareLet:function l5(n){const r=(0,S.klJ)(),c=(0,S.OAn)(),b=n+S.Yw1,k=Yl(r,b,128,null,null);return(0,S.iMd)(k,!1),(0,S.M_e)(r,c,b,o5),l5},\u0275\u0275storeLet:function c5(n){Qs("NgLet");const r=(0,S.klJ)(),c=(0,S.OAn)(),b=(0,S._px)();return(0,S.M_e)(r,c,b,n),n},\u0275\u0275readContextLet:function m9(n){const r=(0,S.VPL)(),c=(0,S.Hh6)(r,S.Yw1+n);if(c===o5)throw new S.buA(314,!1);return c},\u0275\u0275attachSourceLocations:function p9(n,r){const c=(0,S.klJ)(),b=(0,S.OAn)(),k=b[S.GpT],W="data-ng-source-location";for(const[te,xe,Ae,ut]of r){(0,S.XRZ)(c,te+S.Yw1);const Zt=(0,S.vaC)(te+S.Yw1,b);Zt.hasAttribute(W)||k.setAttribute(Zt,W,`${n}@o:${xe},l:${Ae},c:${ut}`)}},\u0275\u0275interpolate:d5,\u0275\u0275interpolate1:u5,\u0275\u0275interpolate2:h5,\u0275\u0275interpolate3:function f5(n,r,c,b,k,W,te=""){return Z_((0,S.OAn)(),n,r,c,b,k,W,te)},\u0275\u0275interpolate4:function g9(n,r,c,b,k,W,te,xe,Ae=""){return P6((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae)},\u0275\u0275interpolate5:function _9(n,r,c,b,k,W,te,xe,Ae,ut,Ct=""){return J_((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct)},\u0275\u0275interpolate6:function v9(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn=""){return q_((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn)},\u0275\u0275interpolate7:function y9(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri=""){return e5((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri)},\u0275\u0275interpolate8:function b9(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki=""){return t5((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki)},\u0275\u0275interpolateV:function m5(n){return O6((0,S.OAn)(),n)},\u0275\u0275sanitizeHtml:l0,\u0275\u0275sanitizeStyle:c0,\u0275\u0275sanitizeResourceUrl:d0,\u0275\u0275sanitizeScript:u0,\u0275\u0275validateAttribute:h0,\u0275\u0275sanitizeUrl:P2,\u0275\u0275sanitizeUrlOrResourceUrl:B2,\u0275\u0275trustConstantHtml:function Lh(n){return ac(n[0])},\u0275\u0275trustConstantResourceUrl:function N2(n){return function q1(n){return bc()?.createScriptURL(n)||n}(n[0])},forwardRef:S.Rfq,resolveForwardRef:S.nl4,\u0275\u0275twoWayProperty:U6,\u0275\u0275twoWayBindingSet:s5,\u0275\u0275twoWayListener:wm,\u0275\u0275replaceMetadata:function O9(n,r,c,b,k=null,W=null){const te=(0,S.xUg)(n);r.apply(null,[n,c,...b]);const{newDef:xe,oldDef:Ae}=function P9(n,r){const c={...n};return{newDef:Object.assign(n,r,{directiveDefs:c.directiveDefs,pipeDefs:c.pipeDefs,setInput:c.setInput,type:c.type}),oldDef:c}}(te,(0,S.xUg)(n));if(n[S.CQl]=xe,Ae.tView){const ut=function gs(){return ar}().values();for(const Ct of ut)(0,S.EFk)(Ct)&&null===Ct[S.f7T]&&Dm(k,W,xe,Ae,Ct)}},\u0275\u0275getReplaceMetadataURL:function R9(n,r,c){const b=`./@ng/component?c=${n}&t=${encodeURIComponent(r)}`;return new URL(b,c).href}};let $1=null;function z9(n){null!==$1&&(n.defaultEncapsulation!==$1.defaultEncapsulation||n.preserveWhitespaces!==$1.preserveWhitespaces)||($1=n)}const j4=[];function Im(n){return B1(n)?n.ngModule:n}const iy=hn("NgModule",n=>n,void 0,0,(n,r)=>function H9(n,r={}){(function j9(n,r){const b=(0,S.Bqz)(r.declarations||S.Mlv);let k=null;Object.defineProperty(n,S.hmW,{configurable:!0,get:()=>(null===k&&(k=le().compileNgModule(Q1,`ng:///${n.name}/\u0275mod.js`,{type:n,bootstrap:(0,S.Bqz)(r.bootstrap||S.Mlv).map(S.nl4),declarations:b.map(S.nl4),imports:(0,S.Bqz)(r.imports||S.Mlv).map(S.nl4).map(Im),exports:(0,S.Bqz)(r.exports||S.Mlv).map(S.nl4).map(Im),schemas:r.schemas?(0,S.Bqz)(r.schemas):null,id:r.id||null}),k.schemas||(k.schemas=[])),k)});let W=null;Object.defineProperty(n,S.zSs,{get:()=>{if(null===W){const xe=le();W=xe.compileFactory(Q1,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,deps:Ga(n),target:xe.FactoryTarget.NgModule,typeArgumentCount:0})}return W},configurable:!1});let te=null;Object.defineProperty(n,S.ONQ,{get:()=>{if(null===te){const xe={name:n.name,type:n,providers:r.providers||S.Mlv,imports:[(r.imports||S.Mlv).map(S.nl4),(r.exports||S.Mlv).map(S.nl4)]};te=le().compileInjector(Q1,`ng:///${n.name}/\u0275inj.js`,xe)}return te},configurable:!1})})(n,r),void 0!==r.id&&f4(n,r.id),function G9(n,r){j4.push({moduleType:n,ngModule:r})}(n,r)}(n,r));class $5{ngModuleFactory;componentFactories;constructor(r,c){this.ngModuleFactory=r,this.componentFactories=c}}let ay=(()=>{class n{compileModuleSync(c){return new fp(c)}compileModuleAsync(c){return Promise.resolve(this.compileModuleSync(c))}compileModuleAndAllComponentsSync(c){const b=this.compileModuleSync(c),W=Kl((0,S.phH)(c).declarations).reduce((te,xe)=>{const Ae=(0,S.xUg)(xe);return Ae&&te.push(new o2(Ae)),te},[]);return new $5(b,W)}compileModuleAndAllComponentsAsync(c){return Promise.resolve(this.compileModuleAndAllComponentsSync(c))}clearCache(){}clearCacheFor(c){}getModuleId(c){}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const ry=new S.nKC("");let sy=(()=>{class n{zone=(0,S.WQX)(pr);changeDetectionScheduler=(0,S.WQX)(S.hk6);applicationRef=(0,S.WQX)(q3);applicationErrorHandler=(0,S.WQX)(S.ZTf);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(c){this.applicationErrorHandler(c)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Rm=new S.nKC("",{factory:()=>!1});function Z5({ngZoneFactory:n,ignoreChangesOutsideZone:r,scheduleInRootZone:c}){return n??=()=>new pr({...tg(),scheduleInRootZone:c}),[{provide:pr,useFactory:n},{provide:S.Z63,multi:!0,useFactory:()=>{const b=(0,S.WQX)(sy,{optional:!0});return()=>b.initialize()}},{provide:S.Z63,multi:!0,useFactory:()=>{const b=(0,S.WQX)(ly);return()=>{b.initialize()}}},!0===r?{provide:S.Jy$,useValue:!0}:[],{provide:S.AQb,useValue:c??od},{provide:S.ZTf,useFactory:()=>{const b=(0,S.WQX)(pr),k=(0,S.WQX)(S.uvJ);let W;return te=>{b.runOutsideAngular(()=>{k.destroyed&&!W?setTimeout(()=>{throw te}):(W??=k.get(S.zcH),W.handleError(te))})}}}]}function tg(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}let ly=(()=>{class n{subscription=new ae.yU;initialized=!1;zone=(0,S.WQX)(pr);pendingTasks=(0,S.WQX)(S.rev);initialize(){if(this.initialized)return;this.initialized=!0;let c=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(c=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pr.assertNotInAngularZone(),queueMicrotask(()=>{null!==c&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(c),c=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pr.assertInAngularZone(),c??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ag=(()=>{class n{applicationErrorHandler=(0,S.WQX)(S.ZTf);appRef=(0,S.WQX)(q3);taskService=(0,S.WQX)(S.rev);ngZone=(0,S.WQX)(pr);zonelessEnabled=(0,S.WQX)(S.Evm);tracing=(0,S.WQX)(Fc,{optional:!0});disableScheduling=(0,S.WQX)(S.Jy$,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ae.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(_1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&((0,S.WQX)(S.AQb,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof v1||!this.zoneIsDefined)}notify(c){if(!this.zonelessEnabled&&5===c)return;let b=!1;switch(c){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:case 13:this.appRef.dirtyFlags|=2,b=!0;break;case 12:this.appRef.dirtyFlags|=16,b=!0;break;case 11:b=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(b))return;const k=this.useMicrotaskScheduler?y0:Ld;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>k(()=>this.tick())):this.ngZone.runOutsideAngular(()=>k(()=>this.tick()))}shouldScheduleTick(c){return!(this.disableScheduling&&!c||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(_1+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const c=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(b){this.taskService.remove(c),this.applicationErrorHandler(b)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,y0(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(c)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const c=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(c)}}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const q5=new S.nKC("",{providedIn:"root",factory:()=>(0,S.WQX)(q5,{optional:!0,skipSelf:!0})||function cy(){return typeof $localize<"u"&&$localize.locale||u6}()}),dy=new S.nKC("",{providedIn:"root",factory:()=>"USD"})},59295(ke,q,l){"use strict";l.d(q,{Zf:()=>Z,EW:()=>Q,QZ:()=>ie,O8:()=>V}),l(10467);var g=l(2615),p=l(48440);const d={...p.pL,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};class Z{destroyed=!1;listeners=null;errorHandler=(0,g.WQX)(g.zcH,{optional:!0});destroyRef=(0,g.WQX)(g.abz);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(he){if(this.destroyed)throw new g.buA(953,!1);return(this.listeners??=[]).push(he),{unsubscribe:()=>{const Oe=this.listeners?.indexOf(he);void 0!==Oe&&-1!==Oe&&this.listeners?.splice(Oe,1)}}}emit(he){if(this.destroyed)return void console.warn((0,g.OsK)(953,!1));if(null===this.listeners)return;const Oe=(0,p.Ht)(null);try{for(const ge of this.listeners)try{ge(he)}catch(ce){this.errorHandler?.handleError(ce)}}finally{(0,p.Ht)(Oe)}}}function V(re){return function h(re){const he=(0,p.Ht)(null);try{return re()}finally{(0,p.Ht)(he)}}(re)}function Q(re,he){return(0,p.KZ)(re,he?.equal)}class ${[p.bh];constructor(he){this[p.bh]=he}destroy(){this[p.bh].destroy()}}function ie(re,he){const Oe=he?.injector??(0,g.WQX)(g.zZn);let ce,ge=!0!==he?.manualCleanup?Oe.get(g.abz):null;const Re=Oe.get(g.r4V,null,{optional:!0}),Me=Oe.get(g.hk6);return null!==Re?(ce=function pe(re,he,Oe){const ge=Object.create(se);return ge.view=re,ge.zone=typeof Zone<"u"?Zone.current:null,ge.notifier=he,ge.fn=L(ge,Oe),re[g.tQN]??=new Set,re[g.tQN].add(ge),ge.consumerMarkedDirty(ge),ge}(Re.view,Me,re),ge instanceof g.KXn&&ge._lView===Re.view&&(ge=null)):ce=function Ee(re,he,Oe){const ge=Object.create(ye);return ge.fn=L(ge,re),ge.scheduler=he,ge.notifier=Oe,ge.zone=typeof Zone<"u"?Zone.current:null,ge.scheduler.add(ge),ge.notifier.notify(12),ge}(re,Oe.get(g.VML),Me),ce.injector=Oe,null!==ge&&(ce.onDestroyFn=ge.onDestroy(()=>ce.destroy())),new $(ce)}const _e={...d,cleanupFns:void 0,zone:null,onDestroyFn:g.lQ1,run(){const re=(0,g.cBl)(!1);try{!function w(re){if(re.dirty=!1,re.version>0&&!(0,p.si)(re))return;re.version++;const he=(0,p.Bg)(re);try{re.cleanup(),re.fn()}finally{(0,p.Wu)(re,he)}}(this)}finally{(0,g.cBl)(re)}},cleanup(){if(!this.cleanupFns?.length)return;const re=(0,p.Ht)(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],(0,p.Ht)(re)}}},ye={..._e,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){(0,p.XR)(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}},se={..._e,consumerMarkedDirty(){this.view[g.Wg1]|=8192,(0,g.blu)(this.view),this.notifier.notify(13)},destroy(){(0,p.XR)(this),this.onDestroyFn(),this.cleanup(),this.view[g.tQN]?.delete(this)}};function L(re,he){return()=>{he(Oe=>(re.cleanupFns??=[]).push(Oe))}}Error,Error},2615(ke,q,l){"use strict";let i;function g(){return i}function p(De){const at=i;return i=De,at}l.d(q,{JEi:()=>es,Isx:()=>Yr,EJG:()=>ps,Yrj:()=>lr,VVG:()=>Js,Y20:()=>Ws,SKP:()=>Jo,hk6:()=>_c,eVN:()=>Xs,b5C:()=>ar,rQE:()=>Xr,X5O:()=>dr,qFA:()=>Za,qQL:()=>ra,abz:()=>ba,tQN:()=>Pa,pcR:()=>qr,oMQ:()=>Mr,Mlv:()=>Zn,MZA:()=>Ln,M0L:()=>xo,Z63:()=>hi,VML:()=>Ra,uvJ:()=>Yi,zcH:()=>Lr,Wg1:()=>Ka,Yw1:()=>Aa,jgP:()=>js,tcA:()=>Uo,ID:()=>Hi,YEL:()=>qs,B9r:()=>Jn,GBX:()=>Ce,ZTf:()=>bi,nKC:()=>qt,zZn:()=>$i,rJ1:()=>ns,nfM:()=>Nr,s6P:()=>ks,K29:()=>Is,CQl:()=>Ue,p9y:()=>ze,zSs:()=>Ne,ONQ:()=>Mn,hmW:()=>le,yAH:()=>rt,KXn:()=>oa,oTH:()=>Bi,Czx:()=>gs,f7T:()=>Pr,wVl:()=>Kr,GYQ:()=>tc,u5s:()=>ja,rev:()=>co,Ds7:()=>Ms,e5P:()=>va,Iaj:()=>_s,GpT:()=>Jr,buA:()=>j,AQb:()=>nc,jNX:()=>hr,eDl:()=>Cs,qlT:()=>Wr,bm_:()=>Rs,RxE:()=>f,r4V:()=>ed,ok8:()=>K,Evm:()=>td,Jy$:()=>vd,laP:()=>V,EYC:()=>kn,ng7:()=>ui,llW:()=>aa,gsJ:()=>Xn,GZS:()=>wi,iYM:()=>he,PEr:()=>Sr,z7f:()=>ge,LZP:()=>ce,Xln:()=>P,yzR:()=>qo,TWe:()=>yl,LIA:()=>T,GWr:()=>U,pbo:()=>fe,bBq:()=>ur,Af3:()=>Zr,zQk:()=>ts,oZy:()=>Mo,tF7:()=>Re,ZFY:()=>Ze,cP4:()=>eo,MdC:()=>wr,XvL:()=>Y,KET:()=>Ea,Tkx:()=>Bl,iw4:()=>C,tdH:()=>Wl,pr_:()=>ve,IAh:()=>x,U45:()=>m,WrV:()=>u,kNT:()=>Me,MI:()=>hl,biv:()=>bl,ZQF:()=>a,Cv0:()=>_,W0r:()=>Bn,R2n:()=>xn,O8q:()=>Vn,VKj:()=>Kt,Rom:()=>_t,z6V:()=>Nn,n$e:()=>se,hjC:()=>Nt,Pz9:()=>ki,PQT:()=>we,VX4:()=>We,_Z$:()=>Ye,N79:()=>Ul,xLP:()=>zn,zuh:()=>tt,BI7:()=>_n,U7d:()=>hn,uXy:()=>En,nZS:()=>Vt,ihb:()=>pl,ID8:()=>il,gv8:()=>Ns,dwj:()=>_e,Bqz:()=>gn,OsK:()=>ee,Rfq:()=>L,c$7:()=>Sl,gxQ:()=>lo,ckz:()=>To,kLh:()=>ie,xUg:()=>un,KdJ:()=>zl,db4:()=>to,VPL:()=>Ia,MT:()=>Do,Z9v:()=>gc,Ab:()=>sn,w7Z:()=>e1,Mx4:()=>bt,veI:()=>Ht,HaV:()=>fi,Agf:()=>Sn,znI:()=>so,wGu:()=>Un,ebl:()=>Et,OAn:()=>Te,_0$:()=>El,UaU:()=>Tt,vaC:()=>Go,d31:()=>fl,ZRn:()=>ws,phH:()=>_a,WbQ:()=>Sa,WB9:()=>Wn,d_l:()=>ao,vNG:()=>$r,oyA:()=>Dn,_px:()=>Io,CpD:()=>jl,XRZ:()=>Ho,klJ:()=>je,Fje:()=>el,b$O:()=>Tl,SMZ:()=>$,WQX:()=>Ei,MzJ:()=>Ot,jXY:()=>lt,MME:()=>li,JlV:()=>Rt,Qs1:()=>pt,srX:()=>ct,vOT:()=>za,YWB:()=>di,EPY:()=>Er,yoD:()=>Ve,P3H:()=>Fr,Jzi:()=>s,rFz:()=>rr,JjR:()=>qc,M6u:()=>bo,KtD:()=>Zl,muV:()=>$e,A0l:()=>Es,q$2:()=>Qr,yP_:()=>as,EFk:()=>vn,Hps:()=>Ro,UhH:()=>wl,QuC:()=>ti,Y3W:()=>mn,n$r:()=>ec,K7h:()=>ma,FRF:()=>ua,ezK:()=>sa,m7n:()=>ni,niQ:()=>Gl,krE:()=>tl,bll:()=>Hl,Hh6:()=>fo,EmA:()=>Ci,blu:()=>no,HAh:()=>mo,WfI:()=>ci,xbp:()=>ql,jvu:()=>Al,lQ1:()=>Ti,BCV:()=>Xi,Rc9:()=>Ga,E6O:()=>Kn,DyX:()=>io,eFE:()=>gt,dMS:()=>jo,HUe:()=>wo,nl4:()=>t,N4e:()=>ms,XaM:()=>Fe,Kw3:()=>mc,vQI:()=>pc,RZ9:()=>Ps,GA0:()=>Ao,iMd:()=>Rn,Pfq:()=>ji,xyx:()=>po,a2B:()=>kt,kcM:()=>et,DFp:()=>de,P2g:()=>nl,cBl:()=>oo,ypq:()=>ko,vPA:()=>gl,HO5:()=>Ks,M_e:()=>xl,B22:()=>Ss,ik5:()=>Ml,AsM:()=>ye,PP7:()=>zt,$8:()=>Oe,$Hz:()=>At,zAe:()=>Vo,IvY:()=>vi,_gW:()=>ml,F1c:()=>fr,ITl:()=>Cl,brz:()=>ht,jRZ:()=>So,SX7:()=>Hn,jDH:()=>oe,G2t:()=>be,fuf:()=>Wo,cSN:()=>is,KVO:()=>oi,dmw:()=>Ii,joV:()=>Bt,By9:()=>Tr,qSk:()=>rs,Njj:()=>Ke,eBV:()=>Be});const o=Symbol("NotFound");function A(De){return De===o||"\u0275NotFound"===De?.name}Error;var h=l(48440),d=l(84412),w=l(71985);class f{full;major;minor;patch;constructor(at){this.full=at;const Jt=at.split(".");this.major=Jt[0],this.minor=Jt[1],this.patch=Jt.slice(2).join(".")}}const K="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss";class j extends Error{code;constructor(at,Jt){super(ee(at,Jt)),this.code=at}}function ee(De,at){return`${function Z(De){return`NG0${Math.abs(De)}`}(De)}${at?": "+at:""}`}const V=globalThis;function $(){return!1}function ie(De){for(let at in De)if(De[at]===ie)return at;throw Error("")}function _e(De,at){for(const Jt in at)at.hasOwnProperty(Jt)&&!De.hasOwnProperty(Jt)&&(De[Jt]=at[Jt])}function ye(De){if("string"==typeof De)return De;if(Array.isArray(De))return`[${De.map(ye).join(", ")}]`;if(null==De)return""+De;const at=De.overriddenName||De.name;if(at)return`${at}`;const Jt=De.toString();if(null==Jt)return""+Jt;const Yn=Jt.indexOf("\n");return Yn>=0?Jt.slice(0,Yn):Jt}function se(De,at){return De?at?`${De} ${at}`:De:at||""}const Ee=ie({__forward_ref__:ie});function L(De){return De.__forward_ref__=L,De.toString=function(){return ye(this())},De}function t(De){return s(De)?De():De}function s(De){return"function"==typeof De&&De.hasOwnProperty(Ee)&&De.__forward_ref__===L}function m(De,at){"number"!=typeof De&&Oe(at,typeof De,"number","===")}function u(De,at,Jt){m(De,"Expected a number"),function R(De,at,Jt){De<=at||Oe(Jt,De,at,"<=")}(De,Jt,"Expected number to be less than or equal to"),fe(De,at,"Expected number to be greater than or equal to")}function _(De,at){"string"!=typeof De&&Oe(at,null===De?"null":typeof De,"string","===")}function T(De,at){"function"!=typeof De&&Oe(at,null===De?"null":typeof De,"function","===")}function P(De,at,Jt){De!=at&&Oe(Jt,De,at,"==")}function C(De,at,Jt){De==at&&Oe(Jt,De,at,"!=")}function a(De,at,Jt){De!==at&&Oe(Jt,De,at,"===")}function x(De,at,Jt){De===at&&Oe(Jt,De,at,"!==")}function Y(De,at,Jt){Deat||Oe(Jt,De,at,">")}function fe(De,at,Jt){De>=at||Oe(Jt,De,at,">=")}function he(De,at){null==De&&Oe(at,De,null,"!=")}function Oe(De,at,Jt,Yn){throw new Error(`ASSERTION ERROR: ${De}`+(null==Yn?"":` [Expected=> ${Jt} ${Yn} ${at} <=Actual]`))}function ge(De){De instanceof Node||Oe(`The provided value must be an instance of a DOM Node but got ${ye(De)}`)}function ce(De){De instanceof Element||Oe(`The provided value must be an element but got ${ye(De)}`)}function Re(De,at){he(De,"Array must be defined.");const Jt=De.length;(at<0||at>=Jt)&&Oe(`Index expected to be less than ${Jt} but got ${at}`)}function Me(De,...at){if(-1!==at.indexOf(De))return!0;Oe(`Expected value to be one of ${JSON.stringify(at)} but was ${JSON.stringify(De)}.`)}function ve(De){null!==(0,h.nR)()&&Oe(`${De}() should never be called in a reactive context.`)}function oe(De){return{token:De.token,providedIn:De.providedIn||null,factory:De.factory,value:void 0}}function be(De){return{providers:De.providers||[],imports:De.imports||[]}}function nt(De){return function dt(De,at){return De.hasOwnProperty(at)&&De[at]||null}(De,rt)}function $e(De){return null!==nt(De)}function Et(De){return De&&De.hasOwnProperty(Mn)?De[Mn]:null}const rt=ie({\u0275prov:ie}),Mn=ie({\u0275inj:ie});class qt{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(at,Jt){this._desc=at,this.\u0275prov=void 0,"number"==typeof Jt?this.__NG_ELEMENT_ID__=Jt:void 0!==Jt&&(this.\u0275prov=oe({token:this,providedIn:Jt.providedIn||"root",factory:Jt.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}let S;function Xt(){return Oe("getInjectorProfilerContext should never be called in production mode"),S}function de(De){Oe("setInjectorProfilerContext should never be called in production mode");const at=S;return S=De,at}const ae=[],me=()=>{};function et(De){return Oe("setInjectorProfiler should never be called in production mode"),null!==De?(ae.includes(De)||ae.push(De),()=>function Le(De){const at=ae.indexOf(De);-1!==at&&ae.splice(at,1)}(De)):(ae.length=0,me)}function tn(De){Oe("Injector profiler should never be called in production mode");for(let at=0;at1&&(gi=` Path: ${Jt.join(" -> ")}.`);return ee(at,`${De}${Yn?` Source: ${Yn}.`:""}${gi}`)}(De[He]||De.message,De[it],De[Wt],at),De}(we(0,at),null)}function At(De,at){throw new j(-201,!1)}function It(De,at,Jt){const Yn=new j(at,De);return Yn[it]=at,Yn[He]=De,Jt&&(Yn[Wt]=Jt),Yn}let ei;function Li(){return ei}function kt(De){const at=ei;return ei=De,at}function Ot(De,at,Jt){const Yn=nt(De);return Yn&&"root"==Yn.providedIn?void 0===Yn.value?Yn.value=Yn.factory():Yn.value:8&Jt?null:void 0!==at?at:void At()}function Ze(De){}const Pt={},Yt="__NG_DI_FLAG__";class bn{injector;constructor(at){this.injector=at}retrieve(at,Jt){const Yn=Nt(Jt)||0;try{return this.injector.get(at,8&Yn?null:Pt,Yn)}catch(gi){if(A(gi))return gi;throw gi}}}function $n(De,at=0){const Jt=g();if(void 0===Jt)throw new j(-203,!1);if(null===Jt)return Ot(De,void 0,at);{const Yn=function nn(De){return{optional:!!(8&De),host:!!(1&De),self:!!(2&De),skipSelf:!!(4&De)}}(at),gi=Jt.retrieve(De,Yn);if(A(gi)){if(Yn.optional)return null;throw gi}return gi}}function oi(De,at=0){return(Li()||$n)(t(De),at)}function Ii(De){throw new j(202,!1)}function Ei(De,at){return oi(De,Nt(at))}function Nt(De){return typeof De>"u"||"number"==typeof De?De:0|(De.optional&&8)|(De.host&&1)|(De.self&&2)|(De.skipSelf&&4)}function en(De){const at=[];for(let Jt=0;JtArray.isArray(Jt)?zn(Jt,at):at(Jt))}function kn(De,at,Jt){at>=De.length?De.push(Jt):De.splice(at,0,Jt)}function Kn(De,at){return at>=De.length-1?De.pop():De.splice(at,1)[0]}function ci(De,at){const Jt=[];for(let Yn=0;Ynat;)De[gi]=De[gi-2],gi--;De[at]=Jt,De[at+1]=Yn}}function sa(De,at,Jt){let Yn=ua(De,at);return Yn>=0?De[1|Yn]=Jt:(Yn=~Yn,aa(De,Yn,at,Jt)),Yn}function ma(De,at){const Jt=ua(De,at);if(Jt>=0)return De[1|Jt]}function ua(De,at){return function dn(De,at,Jt){let Yn=0,gi=De.length>>Jt;for(;gi!==Yn;){const Pi=Yn+(gi-Yn>>1),Wa=De[Pi<at?gi=Pi:Yn=Pi+1}return~(gi<{Jt.push(Wa)};return zn(at,Wa=>{const Ui=Wa;ht(Ui,Pi,[],Yn)&&(gi||=[],gi.push(Ui))}),void 0!==gi&&an(gi,Pi),Jt}function an(De,at){for(let Jt=0;Jt{at(Pi,Yn)})}}function ht(De,at,Jt,Yn){if(!(De=t(De)))return!1;let gi=null,Pi=Et(De);const Wa=!Pi&&un(De);if(Pi||Wa){if(Wa&&!Wa.standalone)return!1;gi=De}else{const La=De.ngModule;if(Pi=Et(La),!Pi)return!1;gi=La}const Ui=Yn.has(gi);if(Wa){if(Ui)return!1;if(Yn.add(gi),Wa.dependencies){const La="function"==typeof Wa.dependencies?Wa.dependencies():Wa.dependencies;for(const _i of La)ht(_i,at,Jt,Yn)}}else{if(!Pi)return!1;{if(null!=Pi.imports&&!Ui){let _i;Yn.add(gi),zn(Pi.imports,tr=>{ht(tr,at,Jt,Yn)&&(_i||=[],_i.push(tr))}),void 0!==_i&&an(_i,at)}if(!Ui){const _i=Un(gi)||(()=>new gi);at({provide:gi,useFactory:_i,deps:Zn},gi),at({provide:Jn,useValue:gi,multi:!0},gi),at({provide:hi,useValue:()=>oi(gi),multi:!0},gi)}const La=Pi.providers;if(null!=La&&!Ui){const _i=De;cn(La,tr=>{at(tr,_i)})}}}return gi!==De&&void 0!==De.providers}function cn(De,at){for(let Jt of De)Pe(Jt)&&(Jt=Jt.\u0275providers),Array.isArray(Jt)?cn(Jt,at):at(Jt)}const si=ie({provide:String,useValue:ie});function pi(De){return null!==De&&"object"==typeof De&&si in De}function mn(De){return"function"==typeof De}function li(De){return!!De.useClass}const Ce=new qt(""),xt={},vt={};let rn;function Wn(){return void 0===rn&&(rn=new Bi),rn}class Yi{}class va extends Yi{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(at,Jt,Yn,gi){super(),this.parent=Jt,this.source=Yn,this.scopes=gi,fs(at,Wa=>this.processProvider(Wa)),this.records.set(Gn,ds(void 0,this)),gi.has("environment")&&this.records.set(Yi,ds(void 0,this));const Pi=this.records.get(Ce);null!=Pi&&"string"==typeof Pi.value&&this.scopes.add(Pi.value),this.injectorDefTypes=new Set(this.get(Jn,Zn,{self:!0}))}retrieve(at,Jt){const Yn=Nt(Jt)||0;try{return this.get(at,Pt,Yn)}catch(gi){if(A(gi))return gi;throw gi}}destroy(){Ar(this),this._destroyed=!0;const at=(0,h.Ht)(null);try{for(const Yn of this._ngOnDestroyHooks)Yn.ngOnDestroy();const Jt=this._onDestroyHooks;this._onDestroyHooks=[];for(const Yn of Jt)Yn()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),(0,h.Ht)(at)}}onDestroy(at){return Ar(this),this._onDestroyHooks.push(at),()=>this.removeOnDestroy(at)}runInContext(at){Ar(this);const Jt=p(this),Yn=kt(void 0);try{return at()}finally{p(Jt),kt(Yn)}}get(at,Jt=Pt,Yn){if(Ar(this),at.hasOwnProperty(Je))return at[Je](this);const gi=Nt(Yn),Wa=p(this),Ui=kt(void 0);try{if(!(4&gi)){let _i=this.records.get(at);if(void 0===_i){const tr=function zo(De){return"function"==typeof De||"object"==typeof De&&"InjectionToken"===De.ngMetadataName}(at)&&nt(at);_i=tr&&this.injectableDefInScope(tr)?ds(Va(at),xt):null,this.records.set(at,_i)}if(null!=_i)return this.hydrate(at,_i,gi)}return(2&gi?Wn():this.parent).get(at,Jt=8&gi&&Jt===Pt?null:Jt)}catch(La){const _i=function wn(De){return De[it]}(La);throw-200===_i||-201===_i?new j(_i,null):La}finally{kt(Ui),p(Wa)}}resolveInjectorInitializers(){const at=(0,h.Ht)(null),Jt=p(this),Yn=kt(void 0);try{const Pi=this.get(hi,Zn,{self:!0});for(const Wa of Pi)Wa()}finally{p(Jt),kt(Yn),(0,h.Ht)(at)}}toString(){const at=[],Jt=this.records;for(const Yn of Jt.keys())at.push(ye(Yn));return`R3Injector[${at.join(", ")}]`}processProvider(at){let Jt=mn(at=t(at))?at:t(at&&at.provide);const Yn=function ir(De){return pi(De)?ds(void 0,De.useValue):ds(Ga(De),xt)}(at);if(!mn(at)&&!0===at.multi){let gi=this.records.get(Jt);gi||(gi=ds(void 0,xt,!0),gi.factory=()=>en(gi.multi),this.records.set(Jt,gi)),Jt=at,gi.multi.push(at)}this.records.set(Jt,Yn)}hydrate(at,Jt,Yn){const gi=(0,h.Ht)(null);try{if(Jt.value===vt)throw we(ye(at));return Jt.value===xt&&(Jt.value=vt,Jt.value=Jt.factory(void 0,Yn)),"object"==typeof Jt.value&&Jt.value&&function hs(De){return null!==De&&"object"==typeof De&&"function"==typeof De.ngOnDestroy}(Jt.value)&&this._ngOnDestroyHooks.add(Jt.value),Jt.value}finally{(0,h.Ht)(gi)}}injectableDefInScope(at){if(!at.providedIn)return!1;const Jt=t(at.providedIn);return"string"==typeof Jt?"any"===Jt||this.scopes.has(Jt):this.injectorDefTypes.has(Jt)}removeOnDestroy(at){const Jt=this._onDestroyHooks.indexOf(at);-1!==Jt&&this._onDestroyHooks.splice(Jt,1)}}function Va(De){const at=nt(De),Jt=null!==at?at.factory:Un(De);if(null!==Jt)return Jt;if(De instanceof qt)throw new j(204,!1);if(De instanceof Function)return function $a(De){if(De.length>0)throw new j(204,!1);const Jt=function yt(De){return(De?.[rt]??null)||null}(De);return null!==Jt?()=>Jt.factory(De):()=>new De}(De);throw new j(204,!1)}function Ga(De,at,Jt){let Yn;if(mn(De)){const gi=t(De);return Un(gi)||Va(gi)}if(pi(De))Yn=()=>t(De.useValue);else if(function la(De){return!(!De||!De.useFactory)}(De))Yn=()=>De.useFactory(...en(De.deps||[]));else if(function Oi(De){return!(!De||!De.useExisting)}(De))Yn=(gi,Pi)=>oi(t(De.useExisting),void 0!==Pi&&8&Pi?8:void 0);else{const gi=t(De&&(De.useClass||De.provide));if(!function us(De){return!!De.deps}(De))return Un(gi)||Va(gi);Yn=()=>new gi(...en(De.deps))}return Yn}function Ar(De){if(De.destroyed)throw new j(205,!1)}function ds(De,at,Jt=!1){return{factory:De,value:at,multi:Jt?[]:void 0}}function fs(De,at){for(const Jt of De)Array.isArray(Jt)?fs(Jt,at):Jt&&Pe(Jt)?fs(Jt.\u0275providers,at):at(Jt)}function ms(De,at){let Jt;De instanceof va?(Ar(De),Jt=De):Jt=new bn(De);const gi=p(Jt),Pi=kt(void 0);try{return at()}finally{p(gi),kt(Pi)}}function bo(){return void 0!==Li()||null!=g()}function Zr(De){if(!bo())throw new j(-203,!1)}const js=0,Cs=1,Ka=2,Pr=3,Is=4,Wr=5,Uo=6,Js=7,Jo=8,qs=9,xo=10,Jr=11,ps=12,lr=13,dr=14,ar=15,Xr=16,Kr=17,Ms=18,Hi=19,Mr=20,gs=21,qr=22,Pa=23,_s=24,es=25,Yr=26,Aa=27,Za=6,ks=7,Rs=8,Nr=9,Ws=10;function Qr(De){return Array.isArray(De)&&"object"==typeof De[1]}function Es(De){return Array.isArray(De)&&!0===De[1]}function ct(De){return!!(4&De.flags)}function pt(De){return De.componentOffset>-1}function Ve(De){return!(1&~De.flags)}function Rt(De){return!!De.template}function vn(De){return!!(512&De[Ka])}function Er(De){return!(256&~De[Ka])}function Kt(De,at){_t(De,at[Cs])}function Vn(De,at){const Jt=at+Aa;Re(De,Jt),Y(Jt,De[Cs].bindingStartIndex,"TNodes should be created before any bindings")}function _t(De,at){xn(De);const Jt=at.data;for(let Yn=Aa;Yn) must have projection slots defined.")}function hl(De,at){he(De,"Component views should always have a parent view (component's host view)")}function Bl(De,at){Mo(De,at),Mo(De,at+8),m(De[at+0],"injectorIndex should point to a bloom filter"),m(De[at+1],"injectorIndex should point to a bloom filter"),m(De[at+2],"injectorIndex should point to a bloom filter"),m(De[at+3],"injectorIndex should point to a bloom filter"),m(De[at+4],"injectorIndex should point to a bloom filter"),m(De[at+5],"injectorIndex should point to a bloom filter"),m(De[at+6],"injectorIndex should point to a bloom filter"),m(De[at+7],"injectorIndex should point to a bloom filter"),m(De[at+8],"injectorIndex should point to parent injector")}const hr="svg",ns="math";function vi(De){for(;Array.isArray(De);)De=De[js];return De}function Vo(De){for(;Array.isArray(De);){if("object"==typeof De[1])return De;De=De[js]}return null}function Go(De,at){return vi(at[De])}function fl(De,at){return vi(at[De.index])}function ws(De,at){const Jt=null===De?-1:De.index;return-1!==Jt?vi(at[Jt]):null}function Ho(De,at){return De.data[at]}function fo(De,at){return De[at]}function xl(De,at,Jt,Yn){Jt>=De.data.length&&(De.data[Jt]=null,De.blueprint[Jt]=null),at[Jt]=Yn}function zl(De,at){const Jt=at[De];return Qr(Jt)?Jt:Jt[js]}function za(De){return!(4&~De[Ka])}function fr(De){return!(128&~De[Ka])}function Cl(De){return Es(De[Pr])}function to(De,at){return null==at?null:De[at]}function wo(De){De[Kr]=0}function mo(De){1024&De[Ka]||(De[Ka]|=1024,fr(De)&&no(De))}function So(De,at){for(;De>0;)at=at[dr],De--;return at}function jo(De){return!!(9216&De[Ka]||De[_s]?.dirty)}function ml(De){De[xo].changeDetectionScheduler?.notify(8),64&De[Ka]&&(De[Ka]|=1024),jo(De)&&no(De)}function no(De){De[xo].changeDetectionScheduler?.notify(0);let at=El(De);for(;null!==at&&!(8192&at[Ka])&&(at[Ka]|=8192,fr(at));)at=El(at)}function Ml(De,at){if(Er(De))throw new j(911,!1);null===De[gs]&&(De[gs]=[]),De[gs].push(at)}function io(De,at){if(null===De[gs])return;const Jt=De[gs].indexOf(at);-1!==Jt&&De[gs].splice(Jt,1)}function El(De){const at=De[Pr];return Es(at)?at[Pr]:at}function ao(De){return De[Js]??=[]}function $r(De){return De.cleanup??=[]}function Ss(De,at,Jt,Yn){const gi=ao(at);gi.push(Jt),De.firstCreatePass&&$r(De).push(Yn,gi.length-1)}const mi={lFrame:Dl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Xs=function(De){return De[De.Off=0]="Off",De[De.Exhaustive=1]="Exhaustive",De[De.OnlyDirtyViews=2]="OnlyDirtyViews",De}(Xs||{});let ro=0,Os=!1;function so(){return mi.lFrame.elementDepthCount}function el(){mi.lFrame.elementDepthCount++}function Ul(){mi.lFrame.elementDepthCount--}function To(){return mi.bindingsEnabled}function Zl(){return null!==mi.skipHydrationRootTNode}function wl(De){return mi.skipHydrationRootTNode===De}function is(){mi.bindingsEnabled=!0}function Wo(){mi.bindingsEnabled=!1}function tl(){mi.skipHydrationRootTNode=null}function Te(){return mi.lFrame.lView}function je(){return mi.lFrame.tView}function Be(De){return mi.lFrame.contextLView=De,De[Jo]}function Ke(De){return mi.lFrame.contextLView=null,De}function bt(){let De=Ht();for(;null!==De&&64===De.type;)De=De.parent;return De}function Ht(){return mi.lFrame.currentTNode}function sn(){const De=mi.lFrame,at=De.currentTNode;return De.isParent?at:at.parent}function Rn(De,at){const Jt=mi.lFrame;Jt.currentTNode=De,Jt.isParent=at}function di(){return mi.lFrame.isParent}function ji(){mi.lFrame.isParent=!1}function Ia(){return mi.lFrame.contextLView}function rr(){return Oe("Must never be called in production mode"),ro!==Xs.Off}function Fr(){return Oe("Must never be called in production mode"),ro===Xs.Exhaustive}function nl(De){Oe("Must never be called in production mode"),ro=De}function as(){return Os}function oo(De){const at=Os;return Os=De,at}function lo(){const De=mi.lFrame;let at=De.bindingRootIndex;return-1===at&&(at=De.bindingRootIndex=De.tView.bindingStartIndex),at}function Sl(){return mi.lFrame.bindingIndex}function mc(De){return mi.lFrame.bindingIndex=De}function ql(){return mi.lFrame.bindingIndex++}function Tl(De){const at=mi.lFrame,Jt=at.bindingIndex;return at.bindingIndex=at.bindingIndex+De,Jt}function qc(){return mi.lFrame.inI18n}function po(De){mi.lFrame.inI18n=De}function pc(De,at){const Jt=mi.lFrame;Jt.bindingIndex=Jt.bindingRootIndex=De,Ps(at)}function gc(){return mi.lFrame.currentDirectiveIndex}function Ps(De){mi.lFrame.currentDirectiveIndex=De}function Do(De){const at=mi.lFrame.currentDirectiveIndex;return-1===at?null:De[at]}function e1(){return mi.lFrame.currentQueryIndex}function Ao(De){mi.lFrame.currentQueryIndex=De}function kc(De){const at=De[Cs];return 2===at.type?at.declTNode:1===at.type?De[Wr]:null}function pl(De,at,Jt){if(4&Jt){let gi=at,Pi=De;for(;!(gi=gi.parent,null!==gi||1&Jt||(gi=kc(Pi),null===gi||(Pi=Pi[dr],10&gi.type))););if(null===gi)return!1;at=gi,De=Pi}const Yn=mi.lFrame=Lo();return Yn.currentTNode=at,Yn.lView=De,!0}function il(De){const at=Lo(),Jt=De[Cs];mi.lFrame=at,at.currentTNode=Jt.firstChild,at.lView=De,at.tView=Jt,at.contextLView=De,at.bindingIndex=Jt.bindingStartIndex,at.inI18n=!1}function Lo(){const De=mi.lFrame,at=null===De?null:De.child;return null===at?Dl(De):at}function Dl(De){const at={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:De,child:null,inI18n:!1};return null!==De&&(De.child=at),at}function Vl(){const De=mi.lFrame;return mi.lFrame=De.parent,De.currentTNode=null,De.lView=null,De}const Gl=Vl;function Hl(){const De=Vl();De.isParent=!0,De.tView=null,De.selectedIndex=-1,De.contextLView=null,De.elementDepthCount=0,De.currentDirectiveIndex=-1,De.currentNamespace=null,De.bindingRootIndex=-1,De.bindingIndex=-1,De.currentQueryIndex=0}function Al(De){return(mi.lFrame.contextLView=So(De,mi.lFrame.contextLView))[Jo]}function Io(){return mi.lFrame.selectedIndex}function ko(De){mi.lFrame.selectedIndex=De}function jl(){const De=mi.lFrame;return Ho(De.tView,De.selectedIndex)}function rs(){mi.lFrame.currentNamespace=hr}function Tr(){mi.lFrame.currentNamespace=ns}function Bt(){!function ft(){mi.lFrame.currentNamespace=null}()}function Tt(){return mi.lFrame.currentNamespace}let on=!0;function Hn(){return on}function ni(De){on=De}function Mi(De,at=null,Jt=null,Yn){const gi=ki(De,at,Jt,Yn);return gi.resolveInjectorInitializers(),gi}function ki(De,at=null,Jt=null,Yn,gi=new Set){const Pi=[Jt||Zn,Ma(De)];return Yn=Yn||("object"==typeof De?void 0:ye(De)),new va(Pi,at||Wn(),Yn||null,gi)}class $i{static THROW_IF_NOT_FOUND=Pt;static NULL=new Bi;static create(at,Jt){if(Array.isArray(at))return Mi({name:""},Jt,at,"");{const Yn=at.name??"";return Mi({name:Yn},at.parent,at.providers,Yn)}}static \u0275prov=oe({token:$i,providedIn:"any",factory:()=>oi(Gn)});static __NG_ELEMENT_ID__=-1}const ra=new qt("");let ba=(()=>class De{static __NG_ELEMENT_ID__=mr;static __NG_ENV_ID__=Jt=>Jt})();class oa extends ba{_lView;constructor(at){super(),this._lView=at}get destroyed(){return Er(this._lView)}onDestroy(at){const Jt=this._lView;return Ml(Jt,at),()=>io(Jt,at)}}function mr(){return new oa(Te())}class Lr{_console=console;handleError(at){this._console.error("ERROR",at)}}const bi=new qt("",{providedIn:"root",factory:()=>{const De=Ei(Yi);let at;return Jt=>{De.destroyed&&!at?setTimeout(()=>{throw Jt}):(at??=De.get(Lr),at.handleError(Jt))}}}),Ns={provide:hi,useValue:()=>{Ei(Lr)},multi:!0};function Ro(De){return"function"==typeof De&&void 0!==De[h.bh]}function gl(De,at){const[Jt,Yn,gi]=(0,h.n5)(De,at?.equal),Pi=Jt;return Pi.set=Yn,Pi.update=gi,Pi.asReadonly=Ks.bind(Pi),Pi}function Ks(){const De=this[h.bh];if(void 0===De.readonlyFn){const at=()=>this();at[h.bh]=De,De.readonlyFn=at}return De.readonlyFn}function ec(De){return Ro(De)&&"function"==typeof De.set}function Wl(De,at){if(null!==(0,h.nR)())throw new j(-602,!1)}let ed=(()=>class De{view;node;constructor(Jt,Yn){this.view=Jt,this.node=Yn}static __NG_ELEMENT_ID__=_d})();function _d(){return new ed(Te(),bt())}class _c{}const td=new qt("",{providedIn:"root",factory:()=>!1}),tc=new qt("",{providedIn:"root",factory:()=>!1}),vd=new qt(""),nc=new qt("");let co=(()=>{class De{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new d.t(!1);get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new w.c(Jt=>{Jt.next(!1),Jt.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);const Jt=this.taskId++;return this.pendingTasks.add(Jt),Jt}has(Jt){return this.pendingTasks.has(Jt)}remove(Jt){this.pendingTasks.delete(Jt),0===this.pendingTasks.size&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=oe({token:De,providedIn:"root",factory:()=>new De})}return De})(),ja=(()=>{class De{internalPendingTasks=Ei(co);scheduler=Ei(_c);errorHandler=Ei(bi);add(){const Jt=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(Jt)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(Jt))}}run(Jt){const Yn=this.add();Jt().catch(this.errorHandler).finally(Yn)}static \u0275prov=oe({token:De,providedIn:"root",factory:()=>new De})}return De})();function Ti(...De){}let Ra=(()=>{class De{static \u0275prov=oe({token:De,providedIn:"root",factory:()=>new cr})}return De})();class cr{dirtyEffectCount=0;queues=new Map;add(at){this.enqueue(at),this.schedule(at)}schedule(at){at.dirty&&this.dirtyEffectCount++}remove(at){const Yn=this.queues.get(at.zone);Yn.has(at)&&(Yn.delete(at),at.dirty&&this.dirtyEffectCount--)}enqueue(at){const Jt=at.zone;this.queues.has(Jt)||this.queues.set(Jt,new Set);const Yn=this.queues.get(Jt);Yn.has(at)||Yn.add(at)}flush(){for(;this.dirtyEffectCount>0;){let at=!1;for(const[Jt,Yn]of this.queues)at||=null===Jt?this.flushQueue(Yn):Jt.run(()=>this.flushQueue(Yn));at||(this.dirtyEffectCount=0)}}flushQueue(at){let Jt=!1;for(const Yn of at)Yn.dirty&&(this.dirtyEffectCount--,Jt=!0,Yn.run());return Jt}}},89079(ke,q,l){"use strict";l.d(q,{ot:()=>ye});var Z=l(2615),ee=l(59295);function ye(L,t){const m=t?.manualCleanup?null:t?.injector?.get(Z.abz)??(0,Z.WQX)(Z.abz),u=function se(L=Object.is){return(t,s)=>1===t.kind&&1===s.kind&&L(t.value,s.value)}(t?.equal);let _,T;_=(0,Z.vPA)(t?.requireSync?{kind:0}:{kind:1,value:t?.initialValue},{equal:u});const P=L.subscribe({next:C=>_.set({kind:1,value:C}),error:C=>{_.set({kind:2,error:C}),T?.()},complete:()=>{T?.()}});if(t?.requireSync&&0===_().kind)throw new Z.buA(601,!1);return T=m?.onDestroy(P.unsubscribe.bind(P)),(0,ee.EW)(()=>{const C=_();switch(C.kind){case 1:return C.value;case 2:throw C.error;case 0:throw new Z.buA(601,!1)}},{equal:t?.equal})}},48440(ke,q,l){"use strict";l.d(q,{Ag:()=>_,Bg:()=>V,EF:()=>P,H8:()=>m,Ht:()=>e,JC:()=>M,KE:()=>h,KO:()=>R,KZ:()=>u,Ny:()=>T,TO:()=>ee,Wu:()=>$,XR:()=>ye,a7:()=>L,bh:()=>o,j2:()=>Oe,mC:()=>ge,mK:()=>f,n5:()=>fe,nR:()=>A,pL:()=>w,s0:()=>Re,si:()=>_e});let i=null,g=!1,p=1;const o=Symbol("SIGNAL");function e(ve){const oe=i;return i=ve,oe}function A(){return i}function h(){return g}const w={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function f(ve){if(g)throw new Error("");if(null===i)return;i.consumerOnSignalRead(ve);const oe=i.producersTail;if(void 0!==oe&&oe.producer===ve)return;let Se;const be=i.recomputing;if(be&&(Se=void 0!==oe?oe.nextProducer:i.producers,void 0!==Se&&Se.producer===ve))return i.producersTail=Se,void(Se.lastReadVersion=ve.version);const nt=ve.consumersTail;if(void 0!==nt&&nt.consumer===i&&(!be||function s(ve,oe){const Se=oe.producersTail;if(void 0!==Se){let be=oe.producers;do{if(be===ve)return!0;if(be===Se)break;be=be.nextProducer}while(void 0!==be)}return!1}(nt,i)))return;const $e=Ee(i),dt={producer:ve,consumer:i,nextProducer:Se,prevConsumer:nt,lastReadVersion:ve.version,nextConsumer:void 0};i.producersTail=dt,void 0!==oe?oe.nextProducer=dt:i.producers=dt,$e&&se(ve,dt)}function M(ve){if((!Ee(ve)||ve.dirty)&&(ve.dirty||ve.lastCleanEpoch!==p)){if(!ve.producerMustRecompute(ve)&&!_e(ve))return void ee(ve);ve.producerRecomputeValue(ve),ee(ve)}}function K(ve){if(void 0===ve.consumers)return;const oe=g;g=!0;try{for(let Se=ve.consumers;void 0!==Se;Se=Se.nextConsumer){const be=Se.consumer;be.dirty||Z(be)}}finally{g=oe}}function j(){return!1!==i?.consumerAllowSignalWrites}function Z(ve){ve.dirty=!0,K(ve),ve.consumerMarkedDirty?.(ve)}function ee(ve){ve.dirty=!1,ve.lastCleanEpoch=p}function V(ve){return ve&&function Q(ve){ve.producersTail=void 0,ve.recomputing=!0}(ve),e(ve)}function $(ve,oe){e(oe),ve&&function ie(ve){ve.recomputing=!1;const oe=ve.producersTail;let Se=void 0!==oe?oe.nextProducer:ve.producers;if(void 0!==Se){if(Ee(ve))do{Se=pe(Se)}while(void 0!==Se);void 0!==oe?oe.nextProducer=void 0:ve.producers=void 0}}(ve)}function _e(ve){for(let oe=ve.producers;void 0!==oe;oe=oe.nextProducer){const Se=oe.producer,be=oe.lastReadVersion;if(be!==Se.version||(M(Se),be!==Se.version))return!0}return!1}function ye(ve){if(Ee(ve)){let oe=ve.producers;for(;void 0!==oe;)oe=pe(oe)}ve.producers=void 0,ve.producersTail=void 0,ve.consumers=void 0,ve.consumersTail=void 0}function se(ve,oe){const Se=ve.consumersTail,be=Ee(ve);if(void 0!==Se?(oe.nextConsumer=Se.nextConsumer,Se.nextConsumer=oe):(oe.nextConsumer=void 0,ve.consumers=oe),oe.prevConsumer=Se,ve.consumersTail=oe,!be)for(let nt=ve.producers;void 0!==nt;nt=nt.nextProducer)se(nt.producer,nt)}function pe(ve){const oe=ve.producer,Se=ve.nextProducer,be=ve.nextConsumer,nt=ve.prevConsumer;if(ve.nextConsumer=void 0,ve.prevConsumer=void 0,void 0!==be?be.prevConsumer=nt:oe.consumersTail=nt,void 0!==nt)nt.nextConsumer=be;else if(oe.consumers=be,!Ee(oe)){let $e=oe.producers;for(;void 0!==$e;)$e=pe($e)}return Se}function Ee(ve){return ve.consumerIsAlwaysLive||void 0!==ve.consumers}function L(ve){}function m(ve,oe){return Object.is(ve,oe)}function u(ve,oe){const Se=Object.create(C);Se.computation=ve,void 0!==oe&&(Se.equal=oe);const be=()=>{if(M(Se),f(Se),Se.value===P)throw Se.error;return Se.value};return be[o]=Se,be}const _=Symbol("UNSET"),T=Symbol("COMPUTING"),P=Symbol("ERRORED"),C={...w,value:_,dirty:!0,error:null,equal:m,kind:"computed",producerMustRecompute:ve=>ve.value===_||ve.value===T,producerRecomputeValue(ve){if(ve.value===T)throw new Error("");const oe=ve.value;ve.value=T;const Se=V(ve);let be,nt=!1;try{be=ve.computation(),e(null),nt=oe!==_&&oe!==P&&be!==P&&ve.equal(oe,be)}catch($e){be=P,ve.error=$e}finally{$(ve,Se)}nt?ve.value=oe:(ve.value=be,ve.version++)}};let x=function a(){throw new Error};function Y(ve){x(ve)}function R(ve){x=ve}function fe(ve,oe){const Se=Object.create(Re);Se.value=ve,void 0!==oe&&(Se.equal=oe);const be=()=>function he(ve){return f(ve),ve.value}(Se);return be[o]=Se,[be,dt=>Oe(Se,dt),dt=>ge(Se,dt)]}function Oe(ve,oe){j()||Y(ve),ve.equal(ve.value,oe)||(ve.value=oe,function Me(ve){ve.version++,function F(){p++}(),K(ve)}(ve))}function ge(ve,oe){j()||Y(ve),Oe(ve,oe(ve.value))}const Re={...w,equal:m,value:void 0,kind:"signal"}},24545(ke,q,l){"use strict";function i(w){for(let f in w){let F=w[f]??"";switch(f){case"display":w.display="flex"===F?["-webkit-flex","flex"]:"inline-flex"===F?["-webkit-inline-flex","inline-flex"]:F;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":w["-webkit-"+f]=F;break;case"flex-direction":w["-webkit-flex-direction"]=F,w["flex-direction"]=F;break;case"order":w.order=w["-webkit-"+f]=isNaN(+F)?"0":F}}return w}l.d(q,{C5:()=>d,O5:()=>i,Uo:()=>p,Vc:()=>e,uG:()=>D});const g="inline",p=["row","column","row-reverse","column-reverse"];function D(w){let[f,F,M]=o(w);return function h(w,f=null,F=!1){return{display:F?"inline-flex":"flex","box-sizing":"border-box","flex-direction":w,"flex-wrap":f||null}}(f,F,M)}function o(w){w=w?.toLowerCase()??"";let[f,F,M]=w.split(" ");return p.find(K=>K===f)||(f=p[0]),F===g&&(F=M!==g?M:"",M=g),[f,A(F),!!M]}function e(w){let[f]=o(w);return f.indexOf("row")>-1}function A(w){if(w)switch(w.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":w="wrap-reverse";break;case"no":case"none":case"nowrap":w="nowrap";break;default:w="wrap"}return w}function d(w,...f){if(null==w)throw TypeError("Cannot convert undefined or null to object");for(let F of f)if(null!=F)for(let M in F)F.hasOwnProperty(M)&&(w[M]=F[M]);return w}},29340(ke,q,l){"use strict";l.d(q,{Ce:()=>P,DJ:()=>tt,EA:()=>T,PV:()=>_,SL:()=>C,Ui:()=>s,ZH:()=>Y,cL:()=>Ye,hN:()=>Je,qH:()=>En,r3:()=>x});var Z=l(2615),ee=l(73664),V=l(60177),Q=l(71985),$=l(21413),ie=l(84412),_e=l(57786),ye=l(24545),se=l(5964),pe=l(88141);const L={provide:ee.iLQ,useFactory:function Ee(st,it){return()=>{if((0,V.UE)(it)){const He=Array.from(st.querySelectorAll(`[class*=${t}]`)),Wt=/\bflex-layout-.+?\b/g;He.forEach(we=>{we.classList.contains(`${t}ssr`)&&we.parentNode?we.parentNode.removeChild(we):we.className.replace(Wt,"")})}}},deps:[Z.qQL,ee.Agw],multi:!0},t="flex-layout-";let s=(()=>{class st{}return st.\u0275fac=function(He){return new(He||st)},st.\u0275mod=ee.$C({type:st}),st.\u0275inj=Z.G2t({providers:[L]}),st})();class m{constructor(it=!1,He="all",Wt="",we="",We=0){this.matches=it,this.mediaQuery=He,this.mqAlias=Wt,this.suffix=we,this.priority=We,this.property=""}clone(){return new m(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let u=(()=>{class st{constructor(){this.stylesheet=new Map}addStyleToElement(He,Wt,we){const We=this.stylesheet.get(He);We?We.set(Wt,we):this.stylesheet.set(He,new Map([[Wt,we]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(He,Wt){const we=this.stylesheet.get(He);let We="";if(we){const Lt=we.get(Wt);("number"==typeof Lt||"string"==typeof Lt)&&(We=Lt+"")}return We}}return st.\u0275fac=function(He){return new(He||st)},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();const _={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},T=new Z.nKC("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>_}),P=new Z.nKC("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),C=new Z.nKC("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function a(st,it){return st=st?.clone()??new m,it&&(st.mqAlias=it.alias,st.mediaQuery=it.mediaQuery,st.suffix=it.suffix,st.priority=it.priority),st}class x{constructor(){this.shouldCache=!0}sideEffect(it,He,Wt){}}let Y=(()=>{class st{constructor(He,Wt,we,We){this._serverStylesheet=He,this._serverModuleLoaded=Wt,this._platformId=we,this.layoutConfig=We}applyStyleToElement(He,Wt,we=null){let We={};"string"==typeof Wt&&(We[Wt]=we,Wt=We),We=this.layoutConfig.disableVendorPrefixes?Wt:(0,ye.O5)(Wt),this._applyMultiValueStyleToElement(We,He)}applyStyleToElements(He,Wt=[]){const we=this.layoutConfig.disableVendorPrefixes?He:(0,ye.O5)(He);Wt.forEach(We=>{this._applyMultiValueStyleToElement(we,We)})}getFlowDirection(He){const Wt="flex-direction";let we=this.lookupStyle(He,Wt);return[we||"row",this.lookupInlineStyle(He,Wt)||(0,V.Vy)(this._platformId)&&this._serverModuleLoaded?we:""]}hasWrap(He){return"wrap"===this.lookupStyle(He,"flex-wrap")}lookupAttributeValue(He,Wt){return He.getAttribute(Wt)??""}lookupInlineStyle(He,Wt){return(0,V.UE)(this._platformId)?He.style.getPropertyValue(Wt):function R(st,it){return re(st)[it]??""}(He,Wt)}lookupStyle(He,Wt,we=!1){let We="";return He&&((We=this.lookupInlineStyle(He,Wt))||((0,V.UE)(this._platformId)?we||(We=getComputedStyle(He).getPropertyValue(Wt)):this._serverModuleLoaded&&(We=this._serverStylesheet.getStyleForElement(He,Wt)))),We?We.trim():""}_applyMultiValueStyleToElement(He,Wt){Object.keys(He).sort().forEach(we=>{const We=He[we],Lt=Array.isArray(We)?We:[We];Lt.sort();for(let St of Lt)St=St?St+"":"",(0,V.UE)(this._platformId)||!this._serverModuleLoaded?(0,V.UE)(this._platformId)?Wt.style.setProperty(we,St):U(Wt,we,St):this._serverStylesheet.addStyleToElement(Wt,we,St)})}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(u),Z.KVO(P),Z.KVO(ee.Agw),Z.KVO(T))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();function U(st,it,He){it=it.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Wt=re(st);Wt[it]=He??"",function fe(st,it){let He="";for(const Wt in it)it[Wt]&&(He+=`${Wt}:${it[Wt]};`);st.setAttribute("style",He)}(st,Wt)}function re(st){const it={},He=st.getAttribute("style");if(He){const Wt=He.split(/;+/g);for(let we=0;we0){const Lt=We.indexOf(":");if(-1===Lt)throw new Error(`Invalid CSS style: ${We}`);it[We.substr(0,Lt).trim()]=We.substr(Lt+1).trim()}}}return it}function he(st,it){return(it&&it.priority||0)-(st&&st.priority||0)}function Oe(st,it){return(st.priority||0)-(it.priority||0)}let ge=(()=>{class st{constructor(He,Wt,we){this._zone=He,this._platformId=Wt,this._document=we,this.source=new ie.t(new m(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const He=[];return this.registry.forEach((Wt,we)=>{Wt.matches&&He.push(we)}),He}isActive(He){return this.registry.get(He)?.matches??this.registerQuery(He).some(we=>we.matches)}observe(He,Wt=!1){if(He&&He.length){const we=this._observable$.pipe((0,se.p)(Lt=>!Wt||He.indexOf(Lt.mediaQuery)>-1)),We=new Q.c(Lt=>{const St=this.registerQuery(He);if(St.length){const At=St.pop();St.forEach(fn=>{Lt.next(fn)}),this.source.next(At)}Lt.complete()});return(0,_e.h)(We,we)}return this._observable$}registerQuery(He){const Wt=Array.isArray(He)?He:[He],we=[];return function Re(st,it){const He=st.filter(Wt=>!ce[Wt]);if(He.length>0){const Wt=He.join(", ");try{const we=it.createElement("style");we.setAttribute("type","text/css"),we.styleSheet||we.appendChild(it.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${Wt} {.fx-query-test{ }}\n`)),it.head.appendChild(we),He.forEach(We=>ce[We]=we)}catch(we){console.error(we)}}}(Wt,this._document),Wt.forEach(We=>{const Lt=At=>{this._zone.run(()=>this.source.next(new m(At.matches,We)))};let St=this.registry.get(We);St||(St=this.buildMQL(We),St.addListener(Lt),this.pendingRemoveListenerFns.push(()=>St.removeListener(Lt)),this.registry.set(We,St)),St.matches&&we.push(new m(!0,We))}),we}ngOnDestroy(){let He;for(;He=this.pendingRemoveListenerFns.pop();)He()}buildMQL(He){return function ve(st,it){return it&&window.matchMedia("all").addListener?window.matchMedia(st):function Me(st){const it=new EventTarget;return it.matches="all"===st||""===st,it.media=st,it.addListener=()=>{},it.removeListener=()=>{},it.addEventListener=()=>{},it.dispatchEvent=()=>!1,it.onchange=null,it}(st)}(He,(0,V.UE)(this._platformId))}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(ee.SKi),Z.KVO(ee.Agw),Z.KVO(Z.qQL))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();const ce={},oe=[{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}],Se="(orientation: portrait) and (max-width: 599.98px)",be="(orientation: landscape) and (max-width: 959.98px)",nt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",$e="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",dt="(orientation: portrait) and (min-width: 840px)",yt="(orientation: landscape) and (min-width: 1280px)",Et={HANDSET:`${Se}, ${be}`,TABLET:`${nt} , ${$e}`,WEB:`${dt}, ${yt} `,HANDSET_PORTRAIT:`${Se}`,TABLET_PORTRAIT:`${nt} `,WEB_PORTRAIT:`${dt}`,HANDSET_LANDSCAPE:`${be}`,TABLET_LANDSCAPE:`${$e}`,WEB_LANDSCAPE:`${yt}`},rt=[{alias:"handset",priority:2e3,mediaQuery:Et.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Et.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Et.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Et.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Et.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Et.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Et.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Et.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Et.WEB_PORTRAIT,overlapping:!0}],Mn=/(\.|-|_)/g;function qt(st){let it=st.length>0?st.charAt(0):"",He=st.length>1?st.slice(1):"";return it.toUpperCase()+He}const ae=new Z.nKC("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const st=(0,Z.WQX)(C),it=(0,Z.WQX)(T),He=[].concat.apply([],(st||[]).map(we=>Array.isArray(we)?we:[we]));return function de(st,it=[]){const He={};return st.forEach(Wt=>{He[Wt.alias]=Wt}),it.forEach(Wt=>{He[Wt.alias]?(0,ye.C5)(He[Wt.alias],Wt):He[Wt.alias]=Wt}),function Xt(st){return st.forEach(it=>{it.suffix||(it.suffix=function S(st){return st.replace(Mn,"|").split("|").map(qt).join("")}(it.alias),it.overlapping=!!it.overlapping)}),st}(Object.keys(He).map(Wt=>He[Wt]))}((it.disableDefaultBps?[]:oe).concat(it.addOrientationBps?rt:[]),He)}});let me=(()=>{class st{constructor(He){this.findByMap=new Map,this.items=[...He].sort(Oe)}findByAlias(He){return He?this.findWithPredicate(He,Wt=>Wt.alias===He):null}findByQuery(He){return this.findWithPredicate(He,Wt=>Wt.mediaQuery===He)}get overlappings(){return this.items.filter(He=>He.overlapping)}get aliases(){return this.items.map(He=>He.alias)}get suffixes(){return this.items.map(He=>He?.suffix??"")}findWithPredicate(He,Wt){let we=this.findByMap.get(He);return we||(we=this.items.find(Wt)??null,this.findByMap.set(He,we)),we??null}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(ae))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();const Le="print",et={alias:Le,mediaQuery:Le,priority:1e3};let tn=(()=>{class st{constructor(He,Wt,we){this.breakpoints=He,this.layoutConfig=Wt,this._document=we,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Vt,this.deactivations=[]}withPrintQuery(He){return[...He,Le]}isPrintEvent(He){return He.mediaQuery.startsWith(Le)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(He=>this.breakpoints.findByAlias(He)).filter(He=>null!==He)}getEventBreakpoints({mediaQuery:He}){const Wt=this.breakpoints.findByQuery(He);return(Wt?[...this.printBreakPoints,Wt]:this.printBreakPoints).sort(he)}updateEvent(He){let Wt=this.breakpoints.findByQuery(He.mediaQuery);return this.isPrintEvent(He)&&(Wt=this.getEventBreakpoints(He)[0],He.mediaQuery=Wt?.mediaQuery??""),a(He,Wt)}registerBeforeAfterPrintHooks(He){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Wt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(He,this.getEventBreakpoints(new m(!0,Le))),He.updateStyles())},we=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(He),He.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Wt),this._document.defaultView.addEventListener("afterprint",we),this.beforePrintEventListeners.push(Wt),this.afterPrintEventListeners.push(we)}interceptEvents(He){return Wt=>{this.isPrintEvent(Wt)?Wt.matches&&!this.isPrinting?(this.startPrinting(He,this.getEventBreakpoints(Wt)),He.updateStyles()):!Wt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(He),He.updateStyles()):this.collectActivations(He,Wt)}}blockPropagation(){return He=>!(this.isPrinting||this.isPrintEvent(He))}startPrinting(He,Wt){this.isPrinting=!0,this.formerActivations=He.activatedBreakpoints,He.activatedBreakpoints=this.queue.addPrintBreakpoints(Wt)}stopPrinting(He){He.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(He,Wt){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Wt.matches){const we=this.breakpoints.findByQuery(Wt.mediaQuery);if(we){const We=this.formerActivations&&this.formerActivations.includes(we),Lt=!this.formerActivations&&He.activatedBreakpoints.includes(we);(We||Lt)&&(this.deactivations.push(we),this.deactivations.sort(he))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(He=>this._document.defaultView.removeEventListener("beforeprint",He)),this.afterPrintEventListeners.forEach(He=>this._document.defaultView.removeEventListener("afterprint",He)))}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(me),Z.KVO(T),Z.KVO(Z.qQL))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();class Vt{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(it){return it.push(et),it.sort(he),it.forEach(He=>this.addBreakpoint(He)),this.printBreakpoints}addBreakpoint(it){it&&void 0===this.printBreakpoints.find(Wt=>Wt.mediaQuery===it.mediaQuery)&&(this.printBreakpoints=function hn(st){return st?.mediaQuery.startsWith(Le)??!1}(it)?[it,...this.printBreakpoints]:[...this.printBreakpoints,it])}clear(){this.printBreakpoints=[]}}let En=(()=>{class st{constructor(He,Wt,we){this.matchMedia=He,this.breakpoints=Wt,this.hook=we,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 $.B,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(He){this._activatedBreakpoints=[...He]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(He){this._useFallbacks=He}onMediaChange(He){const Wt=this.findByQuery(He.mediaQuery);if(Wt){He=a(He,Wt);const we=this.activatedBreakpoints.indexOf(Wt);He.matches&&-1===we?(this._activatedBreakpoints.push(Wt),this._activatedBreakpoints.sort(he),this.updateStyles()):!He.matches&&-1!==we&&(this._activatedBreakpoints.splice(we,1),this._activatedBreakpoints.sort(he),this.updateStyles())}}init(He,Wt,we,We,Lt=[]){_n(this.updateMap,He,Wt,we),_n(this.clearMap,He,Wt,We),this.buildElementKeyMap(He,Wt),this.watchExtraTriggers(He,Wt,Lt)}getValue(He,Wt,we){const We=this.elementMap.get(He);if(We){const Lt=void 0!==we?We.get(we):this.getActivatedValues(We,Wt);if(Lt)return Lt.get(Wt)}}hasValue(He,Wt){const we=this.elementMap.get(He);if(we){const We=this.getActivatedValues(we,Wt);if(We)return void 0!==We.get(Wt)||!1}return!1}setValue(He,Wt,we,We){let Lt=this.elementMap.get(He);if(Lt){const At=(Lt.get(We)??new Map).set(Wt,we);Lt.set(We,At),this.elementMap.set(He,Lt)}else Lt=(new Map).set(We,(new Map).set(Wt,we)),this.elementMap.set(He,Lt);const St=this.getValue(He,Wt);void 0!==St&&this.updateElement(He,Wt,St)}trackValue(He,Wt){return this.subject.asObservable().pipe((0,se.p)(we=>we.element===He&&we.key===Wt))}updateStyles(){this.elementMap.forEach((He,Wt)=>{const we=new Set(this.elementKeyMap.get(Wt));let We=this.getActivatedValues(He);We&&We.forEach((Lt,St)=>{this.updateElement(Wt,St,Lt),we.delete(St)}),we.forEach(Lt=>{if(We=this.getActivatedValues(He,Lt),We){const St=We.get(Lt);this.updateElement(Wt,Lt,St)}else this.clearElement(Wt,Lt)})})}clearElement(He,Wt){const we=this.clearMap.get(He);if(we){const We=we.get(Wt);We&&(We(),this.subject.next({element:He,key:Wt,value:""}))}}updateElement(He,Wt,we){const We=this.updateMap.get(He);if(We){const Lt=We.get(Wt);Lt&&(Lt(we),this.subject.next({element:He,key:Wt,value:we}))}}releaseElement(He){const Wt=this.watcherMap.get(He);Wt&&(Wt.forEach(We=>We.unsubscribe()),this.watcherMap.delete(He));const we=this.elementMap.get(He);we&&(we.forEach((We,Lt)=>we.delete(Lt)),this.elementMap.delete(He))}triggerUpdate(He,Wt){const we=this.elementMap.get(He);if(we){const We=this.getActivatedValues(we,Wt);We&&(Wt?this.updateElement(He,Wt,We.get(Wt)):We.forEach((Lt,St)=>this.updateElement(He,St,Lt)))}}buildElementKeyMap(He,Wt){let we=this.elementKeyMap.get(He);we||(we=new Set,this.elementKeyMap.set(He,we)),we.add(Wt)}watchExtraTriggers(He,Wt,we){if(we&&we.length){let We=this.watcherMap.get(He);if(We||(We=new Map,this.watcherMap.set(He,We)),!We.get(Wt)){const St=(0,_e.h)(...we).subscribe(()=>{const At=this.getValue(He,Wt);this.updateElement(He,Wt,At)});We.set(Wt,St)}}}findByQuery(He){return this.breakpoints.findByQuery(He)}getActivatedValues(He,Wt){for(let We=0;WeWt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(He)).pipe((0,pe.M)(this.hook.interceptEvents(this)),(0,se.p)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(ge),Z.KVO(me),Z.KVO(tn))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();function _n(st,it,He,Wt){if(void 0!==Wt){const we=st.get(it)??new Map;we.set(He,Wt),st.set(it,we)}}let tt=(()=>{class st{constructor(He,Wt,we,We){this.elementRef=He,this.styleBuilder=Wt,this.styler=we,this.marshal=We,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new $.B,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(He){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,He,this.marshal.activatedAlias)}ngOnChanges(He){Object.keys(He).forEach(Wt=>{if(-1!==this.inputs.indexOf(Wt)){const we=Wt.split(".").slice(1).join(".");this.setValue(He[Wt].currentValue,we)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(He=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),He)}addStyles(He,Wt){const we=this.styleBuilder,We=we.shouldCache;let Lt=this.styleCache.get(He);(!Lt||!We)&&(Lt=we.buildStyles(He,Wt),We&&this.styleCache.set(He,Lt)),this.mru={...Lt},this.applyStyleToElement(Lt),we.sideEffect(He,Lt,Wt)}clearStyles(){Object.keys(this.mru).forEach(He=>{this.mru[He]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(He,Wt=!1){if(He){const[we,We]=this.styler.getFlowDirection(He);if(!We&&Wt){const Lt=(0,ye.uG)(we);this.styler.applyStyleToElements(Lt,[He])}return we.trim()}return"row"}hasWrap(He){return this.styler.hasWrap(He)}applyStyleToElement(He,Wt,we=this.nativeElement){this.styler.applyStyleToElement(we,He,Wt)}setValue(He,Wt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,He,Wt)}updateWithValue(He){this.currentValue!==He&&(this.addStyles(He),this.currentValue=He)}}return st.\u0275fac=function(He){return new(He||st)(ee.rXU(ee.aKT),ee.rXU(x),ee.rXU(Y),ee.rXU(En))},st.\u0275dir=ee.FsC({type:st,standalone:!1,features:[ee.OA$]}),st})();function Je(st,it="1",He="1"){let Wt=[it,He,st],we=st.indexOf("calc");if(we>0){Wt[2]=gt(st.substring(we).trim());let We=st.substr(0,we).trim().split(" ");2==We.length&&(Wt[0]=We[0],Wt[1]=We[1])}else if(0==we)Wt[2]=gt(st.trim());else{let We=st.split(" ");Wt=3===We.length?We:[it,He,st]}return Wt}function gt(st){return st.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ye(st,it){if(void 0===it)return st;const He=Wt=>{const we=+Wt.slice(0,-1);return st.endsWith("x")&&!isNaN(we)?`${we*it.value}${it.unit}`:st};return st.includes(" ")?st.split(" ").map(He).join(" "):He(st)}EventTarget},16038(ke,q,l){"use strict";l.d(q,{Cc:()=>R,PW:()=>Q,eI:()=>a});var i=l(17705),g=l(2615),p=l(73664),D=l(29340),o=l(72200),e=l(60177),d=(l(14085),l(56977),l(345));let Z=(()=>{class U extends D.DJ{constructor(re,he,Oe,ge,ce,Re,Me){super(re,null,he,Oe),this.ngClassInstance=Me,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new o.YU(ge,ce,re,Re)),this.init(),this.setValue("","")}set klass(re){this.ngClassInstance.klass=re,this.setValue(re,"")}updateWithValue(re){this.ngClassInstance.ngClass=re,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return U.\u0275fac=function(re){return new(re||U)(p.rXU(p.aKT),p.rXU(D.ZH),p.rXU(D.qH),p.rXU(i._q3),p.rXU(i.MKu),p.rXU(p.sFG),p.rXU(o.YU,10))},U.\u0275dir=p.FsC({type:U,inputs:{klass:[0,"class","klass"]},standalone:!1,features:[p.Vt3]}),U})();const ee=["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 Q=(()=>{class U extends Z{constructor(){super(...arguments),this.inputs=ee}}return U.\u0275fac=(()=>{let fe;return function(he){return(fe||(fe=p.xGo(U)))(he||U)}})(),U.\u0275dir=p.FsC({type:U,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"},standalone:!1,features:[p.Vt3]}),U})();class Ee{constructor(fe,re,he=!0){this.key=fe,this.value=re,this.key=he?fe.replace(/['"]/g,"").trim():fe.trim(),this.value=he?re.replace(/['"]/g,"").trim():re.trim(),this.value=this.value.replace(/;/,"")}}function L(U){let fe=typeof U;return"object"===fe?U.constructor===Array?"array":U.constructor===Set?"set":"object":fe}function u(U){const[fe,...re]=U.split(":");return new Ee(fe,re.join(":"))}function _(U,fe){return fe.key&&(U[fe.key]=fe.value),U}let T=(()=>{class U extends D.DJ{constructor(re,he,Oe,ge,ce,Re,Me,ve,oe){super(re,null,he,Oe),this.sanitizer=ge,this.ngStyleInstance=Me,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new o.B3(re,ce,Re)),this.init();const Se=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Se),this.isServer=ve&&(0,e.Vy)(oe)}updateWithValue(re){const he=this.buildStyleMap(re);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...he},this.isServer&&this.applyStyleToElement(he),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(re){const he=Oe=>this.sanitizer.sanitize(p.WPN.STYLE,Oe)??"";if(re)switch(L(re)){case"string":return x(function t(U,fe=";"){return String(U).trim().split(fe).map(re=>re.trim()).filter(re=>""!==re)}(re),he);case"array":return x(re,he);default:return function m(U,fe){let re=[];return"set"===L(U)?U.forEach(he=>re.push(he)):Object.keys(U).forEach(he=>{re.push(`${he}:${U[he]}`)}),function s(U,fe){return U.map(u).filter(he=>!!he).map(he=>(fe&&(he.value=fe(he.value)),he)).reduce(_,{})}(re,fe)}(re,he)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return U.\u0275fac=function(re){return new(re||U)(p.rXU(p.aKT),p.rXU(D.ZH),p.rXU(D.qH),p.rXU(d.up),p.rXU(i.MKu),p.rXU(p.sFG),p.rXU(o.B3,10),p.rXU(D.Ce),p.rXU(p.Agw))},U.\u0275dir=p.FsC({type:U,standalone:!1,features:[p.Vt3]}),U})();const P=["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 a=(()=>{class U extends T{constructor(){super(...arguments),this.inputs=P}}return U.\u0275fac=(()=>{let fe;return function(he){return(fe||(fe=p.xGo(U)))(he||U)}})(),U.\u0275dir=p.FsC({type:U,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"},standalone:!1,features:[p.Vt3]}),U})();function x(U,fe){return U.map(u).filter(he=>!!he).map(he=>(fe&&(he.value=fe(he.value)),he)).reduce(_,{})}let R=(()=>{class U{}return U.\u0275fac=function(re){return new(re||U)},U.\u0275mod=p.$C({type:U}),U.\u0275inj=g.G2t({imports:[D.Ui]}),U})()},52920(ke,q,l){"use strict";l.d(q,{DJ:()=>M,UI:()=>P,sA:()=>tn,w2:()=>Ie});var i=l(2615),g=l(73664),D=(l(61577),l(28203)),o=l(29340),e=l(24545),h=(l(21413),l(56977));let d=(()=>{class le extends o.r3{buildStyles(ze,{display:Je}){const gt=(0,e.uG)(ze);return{...gt,display:"none"===Je?Je:gt.display}}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const w=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let F=(()=>{class le extends o.DJ{constructor(ze,Je,gt,zt,Ye){super(ze,gt,Je,zt),this._config=Ye,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(ze){const gt=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=K.get(gt)??new Map,K.set(gt,this.styleCache),this.currentValue!==ze&&(this.addStyles(ze,{display:gt}),this.currentValue=ze)}}return le.\u0275fac=function(ze){return new(ze||le)(g.rXU(g.aKT),g.rXU(o.ZH),g.rXU(d),g.rXU(o.qH),g.rXU(o.EA))},le.\u0275dir=g.FsC({type:le,standalone:!1,features:[g.Vt3]}),le})(),M=(()=>{class le extends F{constructor(){super(...arguments),this.inputs=w}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275dir=g.FsC({type:le,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"},standalone:!1,features:[g.Vt3]}),le})();const K=new Map;let m=(()=>{class le extends o.r3{constructor(ze){super(),this.layoutConfig=ze}buildStyles(ze,Je){let[gt,zt,...Ye]=ze.split(" "),st=Ye.join(" ");const it=Je.direction.indexOf("column")>-1?"column":"row",He=(0,e.Vc)(it)?"max-width":"max-height",Wt=(0,e.Vc)(it)?"min-width":"min-height",we=String(st).indexOf("calc")>-1,We=we||"auto"===st,Lt=String(st).indexOf("%")>-1&&!we,St=String(st).indexOf("px")>-1||String(st).indexOf("rem")>-1||String(st).indexOf("em")>-1||String(st).indexOf("vw")>-1||String(st).indexOf("vh")>-1;let At=we||St;gt="0"==gt?0:gt,zt="0"==zt?0:zt;const fn=!gt&&!zt;let mt={};const It={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(st||""){case"":st="row"===it?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":gt=0,st="auto";break;case"grow":st="100%";break;case"noshrink":zt=0,st="auto";break;case"auto":break;case"none":gt=0,zt=0,st="auto";break;default:!At&&!Lt&&!isNaN(st)&&(st+="%"),"0%"===st&&(At=!0),"0px"===st&&(st="0%"),mt=(0,e.C5)(It,we?{"flex-grow":gt,"flex-shrink":zt,"flex-basis":At?st:"100%"}:{flex:`${gt} ${zt} ${At?st:"100%"}`})}return mt.flex||mt["flex-grow"]||(mt=(0,e.C5)(It,we?{"flex-grow":gt,"flex-shrink":zt,"flex-basis":st}:{flex:`${gt} ${zt} ${st}`})),"0%"!==st&&"0px"!==st&&"0.000000001px"!==st&&"auto"!==st&&(mt[Wt]=fn||At&>?st:null,mt[He]=fn||!We&&zt?st:null),mt[Wt]||mt[He]?Je.hasWrap&&(mt[we?"flex-basis":"flex"]=mt[He]?we?mt[He]:`${gt} ${zt} ${mt[He]}`:we?mt[Wt]:`${gt} ${zt} ${mt[Wt]}`):mt=(0,e.C5)(It,we?{"flex-grow":gt,"flex-shrink":zt,"flex-basis":st}:{flex:`${gt} ${zt} ${st}`}),(0,e.C5)(mt,{"box-sizing":"border-box"})}}return le.\u0275fac=function(ze){return new(ze||le)(i.KVO(o.EA))},le.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const u=["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 T=(()=>{class le extends o.DJ{constructor(ze,Je,gt,zt,Ye){super(ze,zt,Je,Ye),this.layoutConfig=gt,this.marshal=Ye,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(ze){this.flexShrink=ze||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(ze){this.flexGrow=ze||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,h.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,h.Q)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(ze){const gt=ze.value.split(" ");this.direction=gt[0],this.wrap=void 0!==gt[1]&&"wrap"===gt[1],this.triggerUpdate()}updateWithValue(ze){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 gt=this.direction,zt=gt.startsWith("row"),Ye=this.wrap;zt&&Ye?this.styleCache=x:zt&&!Ye?this.styleCache=C:!zt&&Ye?this.styleCache=Y:!zt&&!Ye&&(this.styleCache=a);const st=String(ze).replace(";",""),it=(0,o.hN)(st,this.flexGrow,this.flexShrink);this.addStyles(it.join(" "),{direction:gt,hasWrap:Ye})}triggerReflow(){const ze=this.activatedValue;if(void 0!==ze){const Je=(0,o.hN)(ze+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,Je.join(" "))}}}return le.\u0275fac=function(ze){return new(ze||le)(g.rXU(g.aKT),g.rXU(o.ZH),g.rXU(o.EA),g.rXU(m),g.rXU(o.qH))},le.\u0275dir=g.FsC({type:le,inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},standalone:!1,features:[g.Vt3]}),le})(),P=(()=>{class le extends T{constructor(){super(...arguments),this.inputs=u}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275dir=g.FsC({type:le,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"},standalone:!1,features:[g.Vt3]}),le})();const C=new Map,a=new Map,x=new Map,Y=new Map;let ae=(()=>{class le extends o.r3{buildStyles(ze,Je){const gt={},[zt,Ye]=ze.split(" ");switch(zt){case"center":gt["justify-content"]="center";break;case"space-around":gt["justify-content"]="space-around";break;case"space-between":gt["justify-content"]="space-between";break;case"space-evenly":gt["justify-content"]="space-evenly";break;case"end":case"flex-end":gt["justify-content"]="flex-end";break;default:gt["justify-content"]="flex-start"}switch(Ye){case"start":case"flex-start":gt["align-items"]=gt["align-content"]="flex-start";break;case"center":gt["align-items"]=gt["align-content"]="center";break;case"end":case"flex-end":gt["align-items"]=gt["align-content"]="flex-end";break;case"space-between":gt["align-content"]="space-between",gt["align-items"]="stretch";break;case"space-around":gt["align-content"]="space-around",gt["align-items"]="stretch";break;case"baseline":gt["align-content"]="stretch",gt["align-items"]="baseline";break;default:gt["align-items"]=gt["align-content"]="stretch"}return(0,e.C5)(gt,{display:Je.inline?"inline-flex":"flex","flex-direction":Je.layout,"box-sizing":"border-box","max-width":"stretch"===Ye?(0,e.Vc)(Je.layout)?null:"100%":null,"max-height":"stretch"===Ye&&(0,e.Vc)(Je.layout)?"100%":null})}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const me=["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 et=(()=>{class le extends o.DJ{constructor(ze,Je,gt,zt){super(ze,gt,Je,zt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,h.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(ze){const Je=this.layout||"row",gt=this.inline;"row"===Je&>?this.styleCache=tt:"row"!==Je||gt?"row-reverse"===Je&>?this.styleCache=Pe:"row-reverse"!==Je||gt?"column"===Je&>?this.styleCache=Fe:"column"!==Je||gt?"column-reverse"===Je&>?this.styleCache=Ue:"column-reverse"===Je&&!gt&&(this.styleCache=_n):this.styleCache=hn:this.styleCache=En:this.styleCache=Vt,this.addStyles(ze,{layout:Je,inline:gt})}onLayoutChange(ze){const Je=ze.value.split(" ");this.layout=Je[0],this.inline=ze.value.includes("inline"),e.Uo.find(gt=>gt===this.layout)||(this.layout="row"),this.triggerUpdate()}}return le.\u0275fac=function(ze){return new(ze||le)(g.rXU(g.aKT),g.rXU(o.ZH),g.rXU(ae),g.rXU(o.qH))},le.\u0275dir=g.FsC({type:le,standalone:!1,features:[g.Vt3]}),le})(),tn=(()=>{class le extends et{constructor(){super(...arguments),this.inputs=me}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275dir=g.FsC({type:le,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"},standalone:!1,features:[g.Vt3]}),le})();const Vt=new Map,hn=new Map,En=new Map,_n=new Map,tt=new Map,Fe=new Map,Pe=new Map,Ue=new Map;let Ie=(()=>{class le{}return le.\u0275fac=function(ze){return new(ze||le)},le.\u0275mod=g.$C({type:le}),le.\u0275inj=i.G2t({imports:[o.Ui,D.jI]}),le})()},89417(ke,q,l){"use strict";l.d(q,{BC:()=>Mn,JD:()=>Ar,Q0:()=>cn,VZ:()=>qs,X1:()=>Es,YN:()=>Qr,YS:()=>ps,ZU:()=>$e,cV:()=>Zn,cb:()=>qt,cz:()=>ye,hs:()=>Bi,j4:()=>Wn,k0:()=>Ee,kq:()=>K,l_:()=>vt,me:()=>$,ok:()=>ks,qT:()=>ht,vO:()=>dt,vS:()=>lt,zX:()=>Js,ze:()=>Nr});var p=l(2615),D=l(73664),o=l(17705),e=l(59295),A=l(57303),h=l(21413),d=l(27468),w=l(22806),f=l(96354);let F=(()=>{class ct{_renderer;_elementRef;onChange=Ve=>{};onTouched=()=>{};constructor(Ve,Rt){this._renderer=Ve,this._elementRef=Rt}setProperty(Ve,Rt){this._renderer.setProperty(this._elementRef.nativeElement,Ve,Rt)}registerOnTouched(Ve){this.onTouched=Ve}registerOnChange(Ve){this.onChange=Ve}setDisabledState(Ve){this.setProperty("disabled",Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(D.sFG),D.rXU(D.aKT))};static \u0275dir=D.FsC({type:ct})}return ct})(),M=(()=>{class ct extends F{static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,features:[D.Vt3]})}return ct})();const K=new p.nKC(""),ee={provide:K,useExisting:(0,p.Rfq)(()=>$),multi:!0},Q=new p.nKC("");let $=(()=>{class ct extends F{_compositionMode;_composing=!1;constructor(Ve,Rt,vn){super(Ve,Rt),this._compositionMode=vn,null==this._compositionMode&&(this._compositionMode=!function V(){const ct=(0,A.rb)()?(0,A.rb)().getUserAgent():"";return/android (\d+)/.test(ct.toLowerCase())}())}writeValue(Ve){this.setProperty("value",Ve??"")}_handleInput(Ve){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ve)}_compositionStart(){this._composing=!0}_compositionEnd(Ve){this._composing=!1,this._compositionMode&&this.onChange(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(D.sFG),D.rXU(D.aKT),D.rXU(Q,8))};static \u0275dir=D.FsC({type:ct,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(Rt,vn){1&Rt&&D.bIt("input",function(ca){return vn._handleInput(ca.target.value)})("blur",function(){return vn.onTouched()})("compositionstart",function(){return vn._compositionStart()})("compositionend",function(ca){return vn._compositionEnd(ca.target.value)})},standalone:!1,features:[D.Jv_([ee]),D.Vt3]})}return ct})();function ie(ct){return null==ct||0===_e(ct)}function _e(ct){return null==ct?null:Array.isArray(ct)||"string"==typeof ct?ct.length:ct instanceof Set?ct.size:null}const ye=new p.nKC(""),se=new p.nKC(""),pe=/^(?=.{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(pt){return L(pt)}static max(pt){return t(pt)}static required(pt){return s(pt)}static requiredTrue(pt){return function m(ct){return!0===ct.value?null:{required:!0}}(pt)}static email(pt){return function u(ct){return ie(ct.value)||pe.test(ct.value)?null:{email:!0}}(pt)}static minLength(pt){return function _(ct){return pt=>{const Ve=pt.value?.length??_e(pt.value);return null===Ve||0===Ve?null:Ve{const Ve=pt.value?.length??_e(pt.value);return null!==Ve&&Ve>ct?{maxlength:{requiredLength:ct,actualLength:Ve}}:null}}(pt)}static pattern(pt){return function P(ct){if(!ct)return C;let pt,Ve;return"string"==typeof ct?(Ve="","^"!==ct.charAt(0)&&(Ve+="^"),Ve+=ct,"$"!==ct.charAt(ct.length-1)&&(Ve+="$"),pt=new RegExp(Ve)):(Ve=ct.toString(),pt=ct),Rt=>{if(ie(Rt.value))return null;const vn=Rt.value;return pt.test(vn)?null:{pattern:{requiredPattern:Ve,actualValue:vn}}}}(pt)}static nullValidator(pt){return null}static compose(pt){return re(pt)}static composeAsync(pt){return Oe(pt)}}function L(ct){return pt=>{if(null==pt.value||null==ct)return null;const Ve=parseFloat(pt.value);return!isNaN(Ve)&&Ve{if(null==pt.value||null==ct)return null;const Ve=parseFloat(pt.value);return!isNaN(Ve)&&Ve>ct?{max:{max:ct,actual:pt.value}}:null}}function s(ct){return ie(ct.value)?{required:!0}:null}function C(ct){return null}function a(ct){return null!=ct}function x(ct){return(0,D.yLl)(ct)?(0,w.H)(ct):ct}function Y(ct){let pt={};return ct.forEach(Ve=>{pt=null!=Ve?{...pt,...Ve}:pt}),0===Object.keys(pt).length?null:pt}function R(ct,pt){return pt.map(Ve=>Ve(ct))}function fe(ct){return ct.map(pt=>function U(ct){return!ct.validate}(pt)?pt:Ve=>pt.validate(Ve))}function re(ct){if(!ct)return null;const pt=ct.filter(a);return 0==pt.length?null:function(Ve){return Y(R(Ve,pt))}}function he(ct){return null!=ct?re(fe(ct)):null}function Oe(ct){if(!ct)return null;const pt=ct.filter(a);return 0==pt.length?null:function(Ve){const Rt=R(Ve,pt).map(x);return(0,d.p)(Rt).pipe((0,f.T)(Y))}}function ge(ct){return null!=ct?Oe(fe(ct)):null}function ce(ct,pt){return null===ct?[pt]:Array.isArray(ct)?[...ct,pt]:[ct,pt]}function Re(ct){return ct._rawValidators}function Me(ct){return ct._rawAsyncValidators}function ve(ct){return ct?Array.isArray(ct)?ct:[ct]:[]}function oe(ct,pt){return Array.isArray(ct)?ct.includes(pt):ct===pt}function Se(ct,pt){const Ve=ve(pt);return ve(ct).forEach(vn=>{oe(Ve,vn)||Ve.push(vn)}),Ve}function be(ct,pt){return ve(pt).filter(Ve=>!oe(ct,Ve))}class nt{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(pt){this._rawValidators=pt||[],this._composedValidatorFn=he(this._rawValidators)}_setAsyncValidators(pt){this._rawAsyncValidators=pt||[],this._composedAsyncValidatorFn=ge(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(pt){this._onDestroyCallbacks.push(pt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(pt=>pt()),this._onDestroyCallbacks=[]}reset(pt=void 0){this.control&&this.control.reset(pt)}hasError(pt,Ve){return!!this.control&&this.control.hasError(pt,Ve)}getError(pt,Ve){return this.control?this.control.getError(pt,Ve):null}}class $e extends nt{name;get formDirective(){return null}get path(){return null}}class dt extends nt{_parent=null;name=null;valueAccessor=null}class yt{_cd;constructor(pt){this._cd=pt}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Mn=(()=>{class ct extends yt{constructor(Ve){super(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(dt,2))};static \u0275dir=D.FsC({type:ct,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Rt,vn){2&Rt&&D.AVh("ng-untouched",vn.isUntouched)("ng-touched",vn.isTouched)("ng-pristine",vn.isPristine)("ng-dirty",vn.isDirty)("ng-valid",vn.isValid)("ng-invalid",vn.isInvalid)("ng-pending",vn.isPending)},standalone:!1,features:[D.Vt3]})}return ct})(),qt=(()=>{class ct extends yt{constructor(Ve){super(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU($e,10))};static \u0275dir=D.FsC({type:ct,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Rt,vn){2&Rt&&D.AVh("ng-untouched",vn.isUntouched)("ng-touched",vn.isTouched)("ng-pristine",vn.isPristine)("ng-dirty",vn.isDirty)("ng-valid",vn.isValid)("ng-invalid",vn.isInvalid)("ng-pending",vn.isPending)("ng-submitted",vn.isSubmitted)},standalone:!1,features:[D.Vt3]})}return ct})();const le="VALID",Ne="INVALID",ze="PENDING",Je="DISABLED";class gt{}class zt extends gt{value;source;constructor(pt,Ve){super(),this.value=pt,this.source=Ve}}class Ye extends gt{pristine;source;constructor(pt,Ve){super(),this.pristine=pt,this.source=Ve}}class st extends gt{touched;source;constructor(pt,Ve){super(),this.touched=pt,this.source=Ve}}class it extends gt{status;source;constructor(pt,Ve){super(),this.status=pt,this.source=Ve}}class He extends gt{source;constructor(pt){super(),this.source=pt}}class Wt extends gt{source;constructor(pt){super(),this.source=pt}}function we(ct){return(At(ct)?ct.validators:ct)||null}function Lt(ct,pt){return(At(pt)?pt.asyncValidators:ct)||null}function At(ct){return null!=ct&&!Array.isArray(ct)&&"object"==typeof ct}function fn(ct,pt,Ve){const Rt=ct.controls;if(!(pt?Object.keys(Rt):Rt).length)throw new p.buA(1e3,"");if(!Rt[Ve])throw new p.buA(1001,"")}function mt(ct,pt,Ve){ct._forEachChild((Rt,vn)=>{if(void 0===Ve[vn])throw new p.buA(1002,"")})}class It{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(pt,Ve){this._assignValidators(pt),this._assignAsyncValidators(Ve)}get validator(){return this._composedValidatorFn}set validator(pt){this._rawValidators=this._composedValidatorFn=pt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(pt){this._rawAsyncValidators=this._composedAsyncValidatorFn=pt}get parent(){return this._parent}get status(){return(0,e.O8)(this.statusReactive)}set status(pt){(0,e.O8)(()=>this.statusReactive.set(pt))}_status=(0,e.EW)(()=>this.statusReactive());statusReactive=(0,p.vPA)(void 0);get valid(){return this.status===le}get invalid(){return this.status===Ne}get pending(){return this.status==ze}get disabled(){return this.status===Je}get enabled(){return this.status!==Je}errors;get pristine(){return(0,e.O8)(this.pristineReactive)}set pristine(pt){(0,e.O8)(()=>this.pristineReactive.set(pt))}_pristine=(0,e.EW)(()=>this.pristineReactive());pristineReactive=(0,p.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,e.O8)(this.touchedReactive)}set touched(pt){(0,e.O8)(()=>this.touchedReactive.set(pt))}_touched=(0,e.EW)(()=>this.touchedReactive());touchedReactive=(0,p.vPA)(!1);get untouched(){return!this.touched}_events=new h.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(pt){this._assignValidators(pt)}setAsyncValidators(pt){this._assignAsyncValidators(pt)}addValidators(pt){this.setValidators(Se(pt,this._rawValidators))}addAsyncValidators(pt){this.setAsyncValidators(Se(pt,this._rawAsyncValidators))}removeValidators(pt){this.setValidators(be(pt,this._rawValidators))}removeAsyncValidators(pt){this.setAsyncValidators(be(pt,this._rawAsyncValidators))}hasValidator(pt){return oe(this._rawValidators,pt)}hasAsyncValidator(pt){return oe(this._rawAsyncValidators,pt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(pt={}){const Ve=!1===this.touched;this.touched=!0;const Rt=pt.sourceControl??this;this._parent&&!pt.onlySelf&&this._parent.markAsTouched({...pt,sourceControl:Rt}),Ve&&!1!==pt.emitEvent&&this._events.next(new st(!0,Rt))}markAllAsDirty(pt={}){this.markAsDirty({onlySelf:!0,emitEvent:pt.emitEvent,sourceControl:this}),this._forEachChild(Ve=>Ve.markAllAsDirty(pt))}markAllAsTouched(pt={}){this.markAsTouched({onlySelf:!0,emitEvent:pt.emitEvent,sourceControl:this}),this._forEachChild(Ve=>Ve.markAllAsTouched(pt))}markAsUntouched(pt={}){const Ve=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Rt=pt.sourceControl??this;this._forEachChild(vn=>{vn.markAsUntouched({onlySelf:!0,emitEvent:pt.emitEvent,sourceControl:Rt})}),this._parent&&!pt.onlySelf&&this._parent._updateTouched(pt,Rt),Ve&&!1!==pt.emitEvent&&this._events.next(new st(!1,Rt))}markAsDirty(pt={}){const Ve=!0===this.pristine;this.pristine=!1;const Rt=pt.sourceControl??this;this._parent&&!pt.onlySelf&&this._parent.markAsDirty({...pt,sourceControl:Rt}),Ve&&!1!==pt.emitEvent&&this._events.next(new Ye(!1,Rt))}markAsPristine(pt={}){const Ve=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Rt=pt.sourceControl??this;this._forEachChild(vn=>{vn.markAsPristine({onlySelf:!0,emitEvent:pt.emitEvent})}),this._parent&&!pt.onlySelf&&this._parent._updatePristine(pt,Rt),Ve&&!1!==pt.emitEvent&&this._events.next(new Ye(!0,Rt))}markAsPending(pt={}){this.status=ze;const Ve=pt.sourceControl??this;!1!==pt.emitEvent&&(this._events.next(new it(this.status,Ve)),this.statusChanges.emit(this.status)),this._parent&&!pt.onlySelf&&this._parent.markAsPending({...pt,sourceControl:Ve})}disable(pt={}){const Ve=this._parentMarkedDirty(pt.onlySelf);this.status=Je,this.errors=null,this._forEachChild(vn=>{vn.disable({...pt,onlySelf:!0})}),this._updateValue();const Rt=pt.sourceControl??this;!1!==pt.emitEvent&&(this._events.next(new zt(this.value,Rt)),this._events.next(new it(this.status,Rt)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...pt,skipPristineCheck:Ve},this),this._onDisabledChange.forEach(vn=>vn(!0))}enable(pt={}){const Ve=this._parentMarkedDirty(pt.onlySelf);this.status=le,this._forEachChild(Rt=>{Rt.enable({...pt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:pt.emitEvent}),this._updateAncestors({...pt,skipPristineCheck:Ve},this),this._onDisabledChange.forEach(Rt=>Rt(!1))}_updateAncestors(pt,Ve){this._parent&&!pt.onlySelf&&(this._parent.updateValueAndValidity(pt),pt.skipPristineCheck||this._parent._updatePristine({},Ve),this._parent._updateTouched({},Ve))}setParent(pt){this._parent=pt}getRawValue(){return this.value}updateValueAndValidity(pt={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Rt=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===le||this.status===ze)&&this._runAsyncValidator(Rt,pt.emitEvent)}const Ve=pt.sourceControl??this;!1!==pt.emitEvent&&(this._events.next(new zt(this.value,Ve)),this._events.next(new it(this.status,Ve)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!pt.onlySelf&&this._parent.updateValueAndValidity({...pt,sourceControl:Ve})}_updateTreeValidity(pt={emitEvent:!0}){this._forEachChild(Ve=>Ve._updateTreeValidity(pt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:pt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Je:le}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(pt,Ve){if(this.asyncValidator){this.status=ze,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Ve,shouldHaveEmitted:!1!==pt};const Rt=x(this.asyncValidator(this));this._asyncValidationSubscription=Rt.subscribe(vn=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(vn,{emitEvent:Ve,shouldHaveEmitted:pt})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const pt=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,pt}return!1}setErrors(pt,Ve={}){this.errors=pt,this._updateControlsErrors(!1!==Ve.emitEvent,this,Ve.shouldHaveEmitted)}get(pt){let Ve=pt;return null==Ve||(Array.isArray(Ve)||(Ve=Ve.split(".")),0===Ve.length)?null:Ve.reduce((Rt,vn)=>Rt&&Rt._find(vn),this)}getError(pt,Ve){const Rt=Ve?this.get(Ve):this;return Rt&&Rt.errors?Rt.errors[pt]:null}hasError(pt,Ve){return!!this.getError(pt,Ve)}get root(){let pt=this;for(;pt._parent;)pt=pt._parent;return pt}_updateControlsErrors(pt,Ve,Rt){this.status=this._calculateStatus(),pt&&this.statusChanges.emit(this.status),(pt||Rt)&&this._events.next(new it(this.status,Ve)),this._parent&&this._parent._updateControlsErrors(pt,Ve,Rt)}_initObservables(){this.valueChanges=new D.bkB,this.statusChanges=new D.bkB}_calculateStatus(){return this._allControlsDisabled()?Je:this.errors?Ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ze)?ze:this._anyControlsHaveStatus(Ne)?Ne:le}_anyControlsHaveStatus(pt){return this._anyControls(Ve=>Ve.status===pt)}_anyControlsDirty(){return this._anyControls(pt=>pt.dirty)}_anyControlsTouched(){return this._anyControls(pt=>pt.touched)}_updatePristine(pt,Ve){const Rt=!this._anyControlsDirty(),vn=this.pristine!==Rt;this.pristine=Rt,this._parent&&!pt.onlySelf&&this._parent._updatePristine(pt,Ve),vn&&this._events.next(new Ye(this.pristine,Ve))}_updateTouched(pt={},Ve){this.touched=this._anyControlsTouched(),this._events.next(new st(this.touched,Ve)),this._parent&&!pt.onlySelf&&this._parent._updateTouched(pt,Ve)}_onDisabledChange=[];_registerOnCollectionChange(pt){this._onCollectionChange=pt}_setUpdateStrategy(pt){At(pt)&&null!=pt.updateOn&&(this._updateOn=pt.updateOn)}_parentMarkedDirty(pt){return!pt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(pt){return null}_assignValidators(pt){this._rawValidators=Array.isArray(pt)?pt.slice():pt,this._composedValidatorFn=function We(ct){return Array.isArray(ct)?he(ct):ct||null}(this._rawValidators)}_assignAsyncValidators(pt){this._rawAsyncValidators=Array.isArray(pt)?pt.slice():pt,this._composedAsyncValidatorFn=function St(ct){return Array.isArray(ct)?ge(ct):ct||null}(this._rawAsyncValidators)}}class wn extends It{constructor(pt,Ve,Rt){super(we(Ve),Lt(Rt,Ve)),this.controls=pt,this._initObservables(),this._setUpdateStrategy(Ve),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(pt,Ve){return this.controls[pt]?this.controls[pt]:(this.controls[pt]=Ve,Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange),Ve)}addControl(pt,Ve,Rt={}){this.registerControl(pt,Ve),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}removeControl(pt,Ve={}){this.controls[pt]&&this.controls[pt]._registerOnCollectionChange(()=>{}),delete this.controls[pt],this.updateValueAndValidity({emitEvent:Ve.emitEvent}),this._onCollectionChange()}setControl(pt,Ve,Rt={}){this.controls[pt]&&this.controls[pt]._registerOnCollectionChange(()=>{}),delete this.controls[pt],Ve&&this.registerControl(pt,Ve),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}contains(pt){return this.controls.hasOwnProperty(pt)&&this.controls[pt].enabled}setValue(pt,Ve={}){mt(this,0,pt),Object.keys(pt).forEach(Rt=>{fn(this,!0,Rt),this.controls[Rt].setValue(pt[Rt],{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve)}patchValue(pt,Ve={}){null!=pt&&(Object.keys(pt).forEach(Rt=>{const vn=this.controls[Rt];vn&&vn.patchValue(pt[Rt],{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve))}reset(pt={},Ve={}){this._forEachChild((Rt,vn)=>{Rt.reset(pt?pt[vn]:null,{onlySelf:!0,emitEvent:Ve.emitEvent})}),this._updatePristine(Ve,this),this._updateTouched(Ve,this),this.updateValueAndValidity(Ve),!1!==Ve?.emitEvent&&this._events.next(new Wt(this))}getRawValue(){return this._reduceChildren({},(pt,Ve,Rt)=>(pt[Rt]=Ve.getRawValue(),pt))}_syncPendingControls(){let pt=this._reduceChildren(!1,(Ve,Rt)=>!!Rt._syncPendingControls()||Ve);return pt&&this.updateValueAndValidity({onlySelf:!0}),pt}_forEachChild(pt){Object.keys(this.controls).forEach(Ve=>{const Rt=this.controls[Ve];Rt&&pt(Rt,Ve)})}_setUpControls(){this._forEachChild(pt=>{pt.setParent(this),pt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(pt){for(const[Ve,Rt]of Object.entries(this.controls))if(this.contains(Ve)&&pt(Rt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ve,Rt,vn)=>((Rt.enabled||this.disabled)&&(Ve[vn]=Rt.value),Ve))}_reduceChildren(pt,Ve){let Rt=pt;return this._forEachChild((vn,Ni)=>{Rt=Ve(Rt,vn,Ni)}),Rt}_allControlsDisabled(){for(const pt of Object.keys(this.controls))if(this.controls[pt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(pt){return this.controls.hasOwnProperty(pt)?this.controls[pt]:null}}class kt extends wn{}const Ze=new p.nKC("",{providedIn:"root",factory:()=>Ge}),Ge="always";function Pt(ct,pt){return[...pt.path,ct]}function Yt(ct,pt,Ve=Ge){Ii(ct,pt),pt.valueAccessor.writeValue(ct.value),(ct.disabled||"always"===Ve)&&pt.valueAccessor.setDisabledState?.(ct.disabled),function Nt(ct,pt){pt.valueAccessor.registerOnChange(Ve=>{ct._pendingValue=Ve,ct._pendingChange=!0,ct._pendingDirty=!0,"change"===ct.updateOn&&en(ct,pt)})}(ct,pt),function Nn(ct,pt){const Ve=(Rt,vn)=>{pt.valueAccessor.writeValue(Rt),vn&&pt.viewToModelUpdate(Rt)};ct.registerOnChange(Ve),pt._registerOnDestroy(()=>{ct._unregisterOnChange(Ve)})}(ct,pt),function nn(ct,pt){pt.valueAccessor.registerOnTouched(()=>{ct._pendingTouched=!0,"blur"===ct.updateOn&&ct._pendingChange&&en(ct,pt),"submit"!==ct.updateOn&&ct.markAsTouched()})}(ct,pt),function oi(ct,pt){if(pt.valueAccessor.setDisabledState){const Ve=Rt=>{pt.valueAccessor.setDisabledState(Rt)};ct.registerOnDisabledChange(Ve),pt._registerOnDestroy(()=>{ct._unregisterOnDisabledChange(Ve)})}}(ct,pt)}function bn(ct,pt,Ve=!0){const Rt=()=>{};pt.valueAccessor&&(pt.valueAccessor.registerOnChange(Rt),pt.valueAccessor.registerOnTouched(Rt)),Ei(ct,pt),ct&&(pt._invokeOnDestroyCallbacks(),ct._registerOnCollectionChange(()=>{}))}function $n(ct,pt){ct.forEach(Ve=>{Ve.registerOnValidatorChange&&Ve.registerOnValidatorChange(pt)})}function Ii(ct,pt){const Ve=Re(ct);null!==pt.validator?ct.setValidators(ce(Ve,pt.validator)):"function"==typeof Ve&&ct.setValidators([Ve]);const Rt=Me(ct);null!==pt.asyncValidator?ct.setAsyncValidators(ce(Rt,pt.asyncValidator)):"function"==typeof Rt&&ct.setAsyncValidators([Rt]);const vn=()=>ct.updateValueAndValidity();$n(pt._rawValidators,vn),$n(pt._rawAsyncValidators,vn)}function Ei(ct,pt){let Ve=!1;if(null!==ct){if(null!==pt.validator){const vn=Re(ct);if(Array.isArray(vn)&&vn.length>0){const Ni=vn.filter(ca=>ca!==pt.validator);Ni.length!==vn.length&&(Ve=!0,ct.setValidators(Ni))}}if(null!==pt.asyncValidator){const vn=Me(ct);if(Array.isArray(vn)&&vn.length>0){const Ni=vn.filter(ca=>ca!==pt.asyncValidator);Ni.length!==vn.length&&(Ve=!0,ct.setAsyncValidators(Ni))}}}const Rt=()=>{};return $n(pt._rawValidators,Rt),$n(pt._rawAsyncValidators,Rt),Ve}function en(ct,pt){ct._pendingDirty&&ct.markAsDirty(),ct.setValue(ct._pendingValue,{emitModelToViewChange:!1}),pt.viewToModelUpdate(ct._pendingValue),ct._pendingChange=!1}function jn(ct,pt){Ii(ct,pt)}function ci(ct,pt){if(!ct.hasOwnProperty("model"))return!1;const Ve=ct.model;return!!Ve.isFirstChange()||!Object.is(pt,Ve.currentValue)}function aa(ct,pt){ct._syncPendingControls(),pt.forEach(Ve=>{const Rt=Ve.control;"submit"===Rt.updateOn&&Rt._pendingChange&&(Ve.viewToModelUpdate(Rt._pendingValue),Rt._pendingChange=!1)})}function sa(ct,pt){if(!pt)return null;let Ve,Rt,vn;return Array.isArray(pt),pt.forEach(Ni=>{Ni.constructor===$?Ve=Ni:function Xn(ct){return Object.getPrototypeOf(ct.constructor)===M}(Ni)?Rt=Ni:vn=Ni}),vn||Rt||Ve||null}const dn={provide:$e,useExisting:(0,p.Rfq)(()=>Zn)},Ln=Promise.resolve();let Zn=(()=>{class ct extends $e{callSetDisabledState;get submitted(){return(0,e.O8)(this.submittedReactive)}_submitted=(0,e.EW)(()=>this.submittedReactive());submittedReactive=(0,p.vPA)(!1);_directives=new Set;form;ngSubmit=new D.bkB;options;constructor(Ve,Rt,vn){super(),this.callSetDisabledState=vn,this.form=new wn({},he(Ve),ge(Rt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path);Ve.control=Rt.registerControl(Ve.name,Ve.control),Yt(Ve.control,Ve,this.callSetDisabledState),Ve.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ve)})}getControl(Ve){return this.form.get(Ve.path)}removeControl(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path);Rt&&Rt.removeControl(Ve.name),this._directives.delete(Ve)})}addFormGroup(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path),vn=new wn({});jn(vn,Ve),Rt.registerControl(Ve.name,vn),vn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path);Rt&&Rt.removeControl(Ve.name)})}getFormGroup(Ve){return this.form.get(Ve.path)}updateModel(Ve,Rt){Ln.then(()=>{this.form.get(Ve.path).setValue(Rt)})}setValue(Ve){this.control.setValue(Ve)}onSubmit(Ve){return this.submittedReactive.set(!0),aa(this.form,this._directives),this.ngSubmit.emit(Ve),this.form._events.next(new He(this.control)),"dialog"===Ve?.target?.method}onReset(){this.resetForm()}resetForm(Ve=void 0){this.form.reset(Ve),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ve){return Ve.pop(),Ve.length?this.form.get(Ve):this.form}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(ye,10),D.rXU(se,10),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Rt,vn){1&Rt&&D.bIt("submit",function(ca){return vn.onSubmit(ca)})("reset",function(){return vn.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[D.Jv_([dn]),D.Vt3]})}return ct})();function hi(ct,pt){const Ve=ct.indexOf(pt);Ve>-1&&ct.splice(Ve,1)}function Gn(ct){return"object"==typeof ct&&null!==ct&&2===Object.keys(ct).length&&"value"in ct&&"disabled"in ct}const Jn=class extends It{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(pt=null,Ve,Rt){super(we(Ve),Lt(Rt,Ve)),this._applyFormState(pt),this._setUpdateStrategy(Ve),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),At(Ve)&&(Ve.nonNullable||Ve.initialValueIsDefault)&&(this.defaultValue=Gn(pt)?pt.value:pt)}setValue(pt,Ve={}){this.value=this._pendingValue=pt,this._onChange.length&&!1!==Ve.emitModelToViewChange&&this._onChange.forEach(Rt=>Rt(this.value,!1!==Ve.emitViewToModelChange)),this.updateValueAndValidity(Ve)}patchValue(pt,Ve={}){this.setValue(pt,Ve)}reset(pt=this.defaultValue,Ve={}){this._applyFormState(pt),this.markAsPristine(Ve),this.markAsUntouched(Ve),this.setValue(this.value,Ve),this._pendingChange=!1,!1!==Ve?.emitEvent&&this._events.next(new Wt(this))}_updateValue(){}_anyControls(pt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(pt){this._onChange.push(pt)}_unregisterOnChange(pt){hi(this._onChange,pt)}registerOnDisabledChange(pt){this._onDisabledChange.push(pt)}_unregisterOnDisabledChange(pt){hi(this._onDisabledChange,pt)}_forEachChild(pt){}_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(pt){Gn(pt)?(this.value=this._pendingValue=pt.value,pt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=pt}},Bi=Jn,Xi={provide:dt,useExisting:(0,p.Rfq)(()=>lt)},Ma=Promise.resolve();let lt=(()=>{class ct extends dt{_changeDetectorRef;callSetDisabledState;control=new Jn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new D.bkB;constructor(Ve,Rt,vn,Ni,ca,Er){super(),this._changeDetectorRef=ca,this.callSetDisabledState=Er,this._parent=Ve,this._setValidators(Rt),this._setAsyncValidators(vn),this.valueAccessor=sa(0,Ni)}ngOnChanges(Ve){if(this._checkForErrors(),!this._registered||"name"in Ve){if(this._registered&&(this._checkName(),this.formDirective)){const Rt=Ve.name.previousValue;this.formDirective.removeControl({name:Rt,path:this._getPath(Rt)})}this._setUpControl()}"isDisabled"in Ve&&this._updateDisabled(Ve),ci(Ve,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(Ve){this.viewModel=Ve,this.update.emit(Ve)}_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(){Yt(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Ve){Ma.then(()=>{this.control.setValue(Ve,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ve){const Rt=Ve.isDisabled.currentValue,vn=0!==Rt&&(0,o.L39)(Rt);Ma.then(()=>{vn&&!this.control.disabled?this.control.disable():!vn&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ve){return this._parent?Pt(Ve,this._parent):[Ve]}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU($e,9),D.rXU(ye,10),D.rXU(se,10),D.rXU(K,10),D.rXU(o.gRc,8),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[D.Jv_([Xi]),D.Vt3,D.OA$]})}return ct})(),ht=(()=>{class ct{static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275dir=D.FsC({type:ct,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ct})();const Gt={provide:K,useExisting:(0,p.Rfq)(()=>cn),multi:!0};let cn=(()=>{class ct extends M{writeValue(Ve){this.setProperty("value",Ve??"")}registerOnChange(Ve){this.onChange=Rt=>{Ve(""==Rt?null:parseFloat(Rt))}}static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Rt,vn){1&Rt&&D.bIt("input",function(ca){return vn.onChange(ca.target.value)})("blur",function(){return vn.onTouched()})},standalone:!1,features:[D.Jv_([Gt]),D.Vt3]})}return ct})();const Ce=new p.nKC(""),xt={provide:dt,useExisting:(0,p.Rfq)(()=>vt)};let vt=(()=>{class ct extends dt{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Ve){}model;update=new D.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Ve,Rt,vn,Ni,ca){super(),this._ngModelWarningConfig=Ni,this.callSetDisabledState=ca,this._setValidators(Ve),this._setAsyncValidators(Rt),this.valueAccessor=sa(0,vn)}ngOnChanges(Ve){if(this._isControlChanged(Ve)){const Rt=Ve.form.previousValue;Rt&&bn(Rt,this,!1),Yt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ci(Ve,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ve){this.viewModel=Ve,this.update.emit(Ve)}_isControlChanged(Ve){return Ve.hasOwnProperty("form")}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(ye,10),D.rXU(se,10),D.rXU(K,10),D.rXU(Ce,8),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[D.Jv_([xt]),D.Vt3,D.OA$]})}return ct})();const rn={provide:$e,useExisting:(0,p.Rfq)(()=>Wn)};let Wn=(()=>{class ct extends $e{callSetDisabledState;get submitted(){return(0,e.O8)(this._submittedReactive)}set submitted(Ve){this._submittedReactive.set(Ve)}_submitted=(0,e.EW)(()=>this._submittedReactive());_submittedReactive=(0,p.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new D.bkB;constructor(Ve,Rt,vn){super(),this.callSetDisabledState=vn,this._setValidators(Ve),this._setAsyncValidators(Rt)}ngOnChanges(Ve){Ve.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ei(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ve){const Rt=this.form.get(Ve.path);return Yt(Rt,Ve,this.callSetDisabledState),Rt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ve),Rt}getControl(Ve){return this.form.get(Ve.path)}removeControl(Ve){bn(Ve.control||null,Ve,!1),function ma(ct,pt){const Ve=ct.indexOf(pt);Ve>-1&&ct.splice(Ve,1)}(this.directives,Ve)}addFormGroup(Ve){this._setUpFormContainer(Ve)}removeFormGroup(Ve){this._cleanUpFormContainer(Ve)}getFormGroup(Ve){return this.form.get(Ve.path)}addFormArray(Ve){this._setUpFormContainer(Ve)}removeFormArray(Ve){this._cleanUpFormContainer(Ve)}getFormArray(Ve){return this.form.get(Ve.path)}updateModel(Ve,Rt){this.form.get(Ve.path).setValue(Rt)}onSubmit(Ve){return this._submittedReactive.set(!0),aa(this.form,this.directives),this.ngSubmit.emit(Ve),this.form._events.next(new He(this.control)),"dialog"===Ve?.target?.method}onReset(){this.resetForm()}resetForm(Ve=void 0,Rt={}){this.form.reset(Ve,Rt),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(Ve=>{const Rt=Ve.control,vn=this.form.get(Ve.path);Rt!==vn&&(bn(Rt||null,Ve),(ct=>ct instanceof Jn)(vn)&&(Yt(vn,Ve,this.callSetDisabledState),Ve.control=vn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ve){const Rt=this.form.get(Ve.path);jn(Rt,Ve),Rt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ve){if(this.form){const Rt=this.form.get(Ve.path);Rt&&function Un(ct,pt){return Ei(ct,pt)}(Rt,Ve)&&Rt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ii(this.form,this),this._oldForm&&Ei(this._oldForm,this)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(ye,10),D.rXU(se,10),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","formGroup",""]],hostBindings:function(Rt,vn){1&Rt&&D.bIt("submit",function(ca){return vn.onSubmit(ca)})("reset",function(){return vn.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[D.Jv_([rn]),D.Vt3,D.OA$]})}return ct})();const Ga={provide:dt,useExisting:(0,p.Rfq)(()=>Ar)};let Ar=(()=>{class ct extends dt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Ve){}model;update=new D.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Ve,Rt,vn,Ni,ca){super(),this._ngModelWarningConfig=ca,this._parent=Ve,this._setValidators(Rt),this._setAsyncValidators(vn),this.valueAccessor=sa(0,Ni)}ngOnChanges(Ve){this._added||this._setUpControl(),ci(Ve,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ve){this.viewModel=Ve,this.update.emit(Ve)}get path(){return Pt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU($e,13),D.rXU(ye,10),D.rXU(se,10),D.rXU(K,10),D.rXU(Ce,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[D.Jv_([Ga]),D.Vt3,D.OA$]})}return ct})();function Is(ct){return"number"==typeof ct?ct:parseFloat(ct)}let Wr=(()=>{class ct{_validator=C;_onChange;_enabled;ngOnChanges(Ve){if(this.inputName in Ve){const Rt=this.normalizeInput(Ve[this.inputName].currentValue);this._enabled=this.enabled(Rt),this._validator=this._enabled?this.createValidator(Rt):C,this._onChange&&this._onChange()}}validate(Ve){return this._validator(Ve)}registerOnValidatorChange(Ve){this._onChange=Ve}enabled(Ve){return null!=Ve}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275dir=D.FsC({type:ct,features:[D.OA$]})}return ct})();const Uo={provide:ye,useExisting:(0,p.Rfq)(()=>Js),multi:!0};let Js=(()=>{class ct extends Wr{max;inputName="max";normalizeInput=Ve=>Is(Ve);createValidator=Ve=>t(Ve);static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Rt,vn){2&Rt&&D.BMQ("max",vn._enabled?vn.max:null)},inputs:{max:"max"},standalone:!1,features:[D.Jv_([Uo]),D.Vt3]})}return ct})();const Jo={provide:ye,useExisting:(0,p.Rfq)(()=>qs),multi:!0};let qs=(()=>{class ct extends Wr{min;inputName="min";normalizeInput=Ve=>Is(Ve);createValidator=Ve=>L(Ve);static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Rt,vn){2&Rt&&D.BMQ("min",vn._enabled?vn.min:null)},inputs:{min:"min"},standalone:!1,features:[D.Jv_([Jo]),D.Vt3]})}return ct})();const xo={provide:ye,useExisting:(0,p.Rfq)(()=>ps),multi:!0};let ps=(()=>{class ct extends Wr{required;inputName="required";normalizeInput=o.L39;createValidator=Ve=>s;enabled(Ve){return Ve}static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Rt,vn){2&Rt&&D.BMQ("required",vn._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[D.Jv_([xo]),D.Vt3]})}return ct})(),es=(()=>{class ct{static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275mod=D.$C({type:ct});static \u0275inj=p.G2t({})}return ct})();class Yr extends It{constructor(pt,Ve,Rt){super(we(Ve),Lt(Rt,Ve)),this.controls=pt,this._initObservables(),this._setUpdateStrategy(Ve),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(pt){return this.controls[this._adjustIndex(pt)]}push(pt,Ve={}){Array.isArray(pt)?pt.forEach(Rt=>{this.controls.push(Rt),this._registerControl(Rt)}):(this.controls.push(pt),this._registerControl(pt)),this.updateValueAndValidity({emitEvent:Ve.emitEvent}),this._onCollectionChange()}insert(pt,Ve,Rt={}){this.controls.splice(pt,0,Ve),this._registerControl(Ve),this.updateValueAndValidity({emitEvent:Rt.emitEvent})}removeAt(pt,Ve={}){let Rt=this._adjustIndex(pt);Rt<0&&(Rt=0),this.controls[Rt]&&this.controls[Rt]._registerOnCollectionChange(()=>{}),this.controls.splice(Rt,1),this.updateValueAndValidity({emitEvent:Ve.emitEvent})}setControl(pt,Ve,Rt={}){let vn=this._adjustIndex(pt);vn<0&&(vn=0),this.controls[vn]&&this.controls[vn]._registerOnCollectionChange(()=>{}),this.controls.splice(vn,1),Ve&&(this.controls.splice(vn,0,Ve),this._registerControl(Ve)),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(pt,Ve={}){mt(this,0,pt),pt.forEach((Rt,vn)=>{fn(this,!1,vn),this.at(vn).setValue(Rt,{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve)}patchValue(pt,Ve={}){null!=pt&&(pt.forEach((Rt,vn)=>{this.at(vn)&&this.at(vn).patchValue(Rt,{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve))}reset(pt=[],Ve={}){this._forEachChild((Rt,vn)=>{Rt.reset(pt[vn],{onlySelf:!0,emitEvent:Ve.emitEvent})}),this._updatePristine(Ve,this),this._updateTouched(Ve,this),this.updateValueAndValidity(Ve),!1!==Ve?.emitEvent&&this._events.next(new Wt(this))}getRawValue(){return this.controls.map(pt=>pt.getRawValue())}clear(pt={}){this.controls.length<1||(this._forEachChild(Ve=>Ve._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:pt.emitEvent}))}_adjustIndex(pt){return pt<0?pt+this.length:pt}_syncPendingControls(){let pt=this.controls.reduce((Ve,Rt)=>!!Rt._syncPendingControls()||Ve,!1);return pt&&this.updateValueAndValidity({onlySelf:!0}),pt}_forEachChild(pt){this.controls.forEach((Ve,Rt)=>{pt(Ve,Rt)})}_updateValue(){this.value=this.controls.filter(pt=>pt.enabled||this.disabled).map(pt=>pt.value)}_anyControls(pt){return this.controls.some(Ve=>Ve.enabled&&pt(Ve))}_setUpControls(){this._forEachChild(pt=>this._registerControl(pt))}_allControlsDisabled(){for(const pt of this.controls)if(pt.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(pt){pt.setParent(this),pt._registerOnCollectionChange(this._onCollectionChange)}_find(pt){return this.at(pt)??null}}function Za(ct){return!!ct&&(void 0!==ct.asyncValidators||void 0!==ct.validators||void 0!==ct.updateOn)}let ks=(()=>{class ct{useNonNullable=!1;get nonNullable(){const Ve=new ct;return Ve.useNonNullable=!0,Ve}group(Ve,Rt=null){const vn=this._reduceControls(Ve);let Ni={};return Za(Rt)?Ni=Rt:null!==Rt&&(Ni.validators=Rt.validator,Ni.asyncValidators=Rt.asyncValidator),new wn(vn,Ni)}record(Ve,Rt=null){const vn=this._reduceControls(Ve);return new kt(vn,Rt)}control(Ve,Rt,vn){let Ni={};return this.useNonNullable?(Za(Rt)?Ni=Rt:(Ni.validators=Rt,Ni.asyncValidators=vn),new Jn(Ve,{...Ni,nonNullable:!0})):new Jn(Ve,Rt,vn)}array(Ve,Rt,vn){const Ni=Ve.map(ca=>this._createControl(ca));return new Yr(Ni,Rt,vn)}_reduceControls(Ve){const Rt={};return Object.keys(Ve).forEach(vn=>{Rt[vn]=this._createControl(Ve[vn])}),Rt}_createControl(Ve){return Ve instanceof Jn||Ve instanceof It?Ve:Array.isArray(Ve)?this.control(Ve[0],Ve.length>1?Ve[1]:null,Ve.length>2?Ve[2]:null):this.control(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275prov=p.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}return ct})(),Nr=(()=>{class ct extends ks{group(Ve,Rt=null){return super.group(Ve,Rt)}control(Ve,Rt,vn){return super.control(Ve,Rt,vn)}array(Ve,Rt,vn){return super.array(Ve,Rt,vn)}static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275prov=p.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}return ct})(),Qr=(()=>{class ct{static withConfig(Ve){return{ngModule:ct,providers:[{provide:Ze,useValue:Ve.callSetDisabledState??Ge}]}}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275mod=D.$C({type:ct});static \u0275inj=p.G2t({imports:[es]})}return ct})(),Es=(()=>{class ct{static withConfig(Ve){return{ngModule:ct,providers:[{provide:Ce,useValue:Ve.warnOnNgModelWithFormControl??"always"},{provide:Ze,useValue:Ve.callSetDisabledState??Ge}]}}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275mod=D.$C({type:ct});static \u0275inj=p.G2t({imports:[es]})}return ct})()},31804(ke,q,l){"use strict";l.d(q,{Rc:()=>d,_J:()=>h});var i=l(34330),g=l(2615),p=l(73664);const D=new g.nKC("MATERIAL_ANIMATIONS");let A=null;function h(){return(0,g.WQX)(D,{optional:!0})?.animationsDisabled||"NoopAnimations"===(0,g.WQX)(p.bc$,{optional:!0})?"di-disabled":(A??=(0,g.WQX)(i.D).matchMedia("(prefers-reduced-motion)").matches,A?"reduced-motion":"enabled")}function d(){return"enabled"!==h()}},22628(ke,q,l){"use strict";l.d(q,{$3:()=>$e,jL:()=>Xt,pN:()=>S});var i=l(23029),g=l(73664),p=l(2615),D=l(17705),o=l(5718),e=l(49338),A=l(89726),h=l(99090),d=l(18617),w=l(39842),f=l(44522),F=l(18359),M=l(21413),K=l(57786),j=l(7673),Z=l(59030),ee=l(71985),V=l(31804),Q=l(61577),$=l(67336),ie=l(10438),_e=l(34330),ye=l(99327),se=l(76939),pe=l(80408),Ee=l(89417),L=l(5964),t=l(96354),s=l(99172),m=l(25558),u=l(88141),_=l(43236),T=l(28793),P=l(96697),C=l(73557),a=l(73703),x=l(31397),Y=l(58750);function R(de,ae){return ae?me=>(0,T.x)(ae.pipe((0,P.s)(1),(0,C.w)()),me.pipe(R(de))):(0,x.Z)((me,Le)=>(0,Y.Tg)(de(me,Le)).pipe((0,P.s)(1),(0,a.u)(me)))}var U=l(1807);function fe(de,ae=_.E){const me=(0,U.O)(de,ae);return R(()=>me)}var re=l(69588),he=l(40146),Oe=l(22466);const Me=["panel"],ve=["*"];function oe(de,ae){if(1&de&&(g.rj2(0,"div",1,0),g.SdG(2),g.eux()),2&de){const me=ae.id,Le=g.XpG();g.HbH(Le._classList),g.AVh("mat-mdc-autocomplete-visible",Le.showPanel)("mat-mdc-autocomplete-hidden",!Le.showPanel)("mat-autocomplete-panel-animations-enabled",!Le._animationsDisabled)("mat-primary","primary"===Le._color)("mat-accent","accent"===Le._color)("mat-warn","warn"===Le._color),g.Avn("id",Le.id),g.BMQ("aria-label",Le.ariaLabel||null)("aria-labelledby",Le._getPanelAriaLabelledby(me))}}class Se{source;option;constructor(ae,me){this.source=ae,this.option=me}}const be=new p.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function nt(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}});let $e=(()=>{class de{_changeDetectorRef=(0,p.WQX)(D.gRc);_elementRef=(0,p.WQX)(g.aKT);_defaults=(0,p.WQX)(be);_animationsDisabled=(0,V.Rc)();_activeOptionChanges=F.yU.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(me){this._color=me,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new g.bkB;opened=new g.bkB;closed=new g.bkB;optionActivated=new g.bkB;set classList(me){this._classList=me,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(me){this._hideSingleSelectionIndicator=me,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(const me of this.options)me._changeDetectorRef.markForCheck()}id=(0,p.WQX)(A.g).getId("mat-autocomplete-");inertGroups;constructor(){const me=(0,p.WQX)(w.O);this.inertGroups=me?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new h.A(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(me=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[me]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(me){this.panel&&(this.panel.nativeElement.scrollTop=me)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(me){const Le=new Se(this,me);this.optionSelected.emit(Le)}_getPanelAriaLabelledby(me){return this.ariaLabel?null:this.ariaLabelledby?(me?me+" ":"")+this.ariaLabelledby:me}_skipPredicate(){return!1}static \u0275fac=function(Le){return new(Le||de)};static \u0275cmp=g.VBU({type:de,selectors:[["mat-autocomplete"]],contentQueries:function(Le,et,tn){if(1&Le&&(g.wni(tn,i.wT,5),g.wni(tn,i.QC,5)),2&Le){let Vt;g.mGM(Vt=g.lsd())&&(et.options=Vt),g.mGM(Vt=g.lsd())&&(et.optionGroups=Vt)}},viewQuery:function(Le,et){if(1&Le&&(g.GBs(g.C4Q,7),g.GBs(Me,5)),2&Le){let tn;g.mGM(tn=g.lsd())&&(et.template=tn.first),g.mGM(tn=g.lsd())&&(et.panel=tn.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",D.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",D.L39],requireSelection:[2,"requireSelection","requireSelection",D.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",D.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",D.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[g.Jv_([{provide:i.is,useExisting:de}])],ngContentSelectors:ve,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(Le,et){1&Le&&(g.NAR(),g.PeT(0,oe,3,17,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0})}return de})();const yt={provide:Ee.kq,useExisting:(0,p.Rfq)(()=>S),multi:!0},rt=new p.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const de=(0,p.WQX)(p.zZn);return()=>(0,e.RH)(de)}}),qt={provide:rt,deps:[],useFactory:function Mn(de){const ae=(0,p.WQX)(p.zZn);return()=>(0,e.RH)(ae)}};let S=(()=>{class de{_environmentInjector=(0,p.WQX)(p.uvJ);_element=(0,p.WQX)(g.aKT);_injector=(0,p.WQX)(p.zZn);_viewContainerRef=(0,p.WQX)(g.c1b);_zone=(0,p.WQX)(g.SKi);_changeDetectorRef=(0,p.WQX)(D.gRc);_dir=(0,p.WQX)(Q.dS,{optional:!0});_formField=(0,p.WQX)(re.xb,{optional:!0,host:!0});_viewportRuler=(0,p.WQX)(o.Xj);_scrollStrategy=(0,p.WQX)(rt);_renderer=(0,p.WQX)(g.sFG);_animationsDisabled=(0,V.Rc)();_defaults=(0,p.WQX)(be,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new M.B;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=F.yU.EMPTY;_breakpointObserver=(0,p.WQX)(_e.Q);_handsetLandscapeSubscription=F.yU.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new M.B;_overlayPanelClass=(0,pe.F)(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(me){me.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&(0,d.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,K.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,L.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,L.p)(()=>this._overlayAttached)):(0,j.of)()).pipe((0,t.T)(me=>me instanceof i.MI?me:null))}optionSelections=(0,Z.v)(()=>{const me=this.autocomplete?this.autocomplete.options:null;return me?me.changes.pipe((0,s.Z)(me),(0,m.n)(()=>(0,K.h)(...me.map(Le=>Le.onSelectionChange)))):this._initialized.pipe((0,m.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new ee.c(me=>{const Le=tn=>{const Vt=(0,f.Fb)(tn),hn=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,En=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&Vt!==this._element.nativeElement&&!this._hasFocus()&&(!hn||!hn.contains(Vt))&&(!En||!En.contains(Vt))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(Vt)&&me.next(tn)},et=[this._renderer.listen("document","click",Le),this._renderer.listen("document","auxclick",Le),this._renderer.listen("document","touchend",Le)];return()=>{et.forEach(tn=>tn())}})}writeValue(me){Promise.resolve(null).then(()=>this._assignOptionValue(me))}registerOnChange(me){this._onChange=me}registerOnTouched(me){this._onTouched=me}setDisabledState(me){this._element.nativeElement.disabled=me}_handleKeydown(me){const Le=me,et=Le.keyCode,tn=(0,$.rp)(Le);if(et===ie._f&&!tn&&Le.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&et===ie.Fm&&this.panelOpen&&!tn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Le.preventDefault();else if(this.autocomplete){const Vt=this.autocomplete._keyManager.activeItem,hn=et===ie.i7||et===ie.n6;et===ie.wn||hn&&!tn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Le):hn&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(hn||this.autocomplete._keyManager.activeItem!==Vt)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(me){let Le=me.target,et=Le.value;if("number"===Le.type&&(et=""==et?null:parseFloat(et)),this._previousValue!==et){if(this._previousValue=et,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(et),et){if(this.panelOpen&&!this.autocomplete.requireSelection){const tn=this.autocomplete.options?.find(Vt=>Vt.selected);tn&&et!==this._getDisplayValue(tn.value)&&tn.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._hasFocus()){const tn=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(tn)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return(0,f.vc)()===this._element.nativeElement}_floatLabel(me=!1){this._formField&&"auto"===this._formField.floatLabel&&(me?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const me=new ee.c(et=>{(0,g.mal)(()=>{et.next()},{injector:this._environmentInjector})}),Le=this.autocomplete.options?.changes.pipe((0,u.M)(()=>this._positionStrategy.reapplyLastPosition()),fe(0))??(0,j.of)();return(0,K.h)(me,Le).pipe((0,m.n)(()=>this._zone.run(()=>{const et=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),et!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,P.s)(1)).subscribe(et=>this._setValueAndClose(et))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(me){const Le=this.autocomplete;return Le&&Le.displayWith?Le.displayWith(me):me}_assignOptionValue(me){const Le=this._getDisplayValue(me);null==me&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(Le??"")}_updateNativeInputValue(me){this._formField?this._formField._control.value=me:this._element.nativeElement.value=me,this._previousValue=me}_setValueAndClose(me){const Le=this.autocomplete,et=me?me.source:this._pendingAutoselectedOption;et?(this._clearPreviousSelectedOption(et),this._assignOptionValue(et.value),this._onChange(et.value),Le._emitSelectEvent(et),this._element.nativeElement.focus()):Le.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(me,Le){this.autocomplete?.options?.forEach(et=>{et!==me&&et.selected&&et.deselect(Le)})}_openPanelInternal(me=this._element.nativeElement.value){this._attachOverlay(me),this._floatLabel(),this._trackedModal&&(0,d.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(me){let Le=this._overlayRef;Le?(this._positionStrategy.setOrigin(this._getConnectedElement()),Le.updateSize({width:this._getPanelWidth()})):(this._portal=new se.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Le=(0,e.Y$)(this._injector,this._getOverlayConfig()),this._overlayRef=Le,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Le&&Le.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(ye.Rp.HandsetLandscape).subscribe(tn=>{tn.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),Le&&!Le.hasAttached()&&(Le.attach(this._portal),this._valueOnAttach=me,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const et=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&et!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=me=>{(me.keyCode===ie._f&&!(0,$.rp)(me)||me.keyCode===ie.i7&&(0,$.rp)(me,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),me.stopPropagation(),me.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const me=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=me.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=me.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new e.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){const me=(0,e.$M)(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(me),this._positionStrategy=me,me}_setStrategyPositions(me){const Le=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],et=this._aboveClass,tn=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:et},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:et}];let Vt;Vt="above"===this.position?tn:"below"===this.position?Le:[...Le,...tn],me.withPositions(Vt)}_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 me=this.autocomplete;if(me.autoActiveFirstOption){let Le=-1;for(let et=0;et .cdk-overlay-container [aria-modal="true"]');if(!me)return;const Le=this.autocomplete.id;this._trackedModal&&(0,d.Ae)(this._trackedModal,"aria-owns",Le),(0,d.px)(me,"aria-owns",Le),this._trackedModal=me}_clearFromModal(){this._trackedModal&&((0,d.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(Le){return new(Le||de)};static \u0275dir=g.FsC({type:de,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Le,et){1&Le&&g.bIt("focusin",function(){return et._handleFocus()})("blur",function(){return et._onTouched()})("input",function(Vt){return et._handleInput(Vt)})("keydown",function(Vt){return et._handleKeydown(Vt)})("click",function(){return et._handleClick()}),2&Le&&g.BMQ("autocomplete",et.autocompleteAttribute)("role",et.autocompleteDisabled?null:"combobox")("aria-autocomplete",et.autocompleteDisabled?null:"list")("aria-activedescendant",et.panelOpen&&et.activeOption?et.activeOption.id:null)("aria-expanded",et.autocompleteDisabled?null:et.panelOpen.toString())("aria-controls",et.autocompleteDisabled||!et.panelOpen||null==et.autocomplete?null:et.autocomplete.id)("aria-haspopup",et.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",D.L39]},exportAs:["matAutocompleteTrigger"],features:[g.Jv_([yt]),g.OA$]})}return de})(),Xt=(()=>{class de{static \u0275fac=function(Le){return new(Le||de)};static \u0275mod=g.$C({type:de});static \u0275inj=p.G2t({providers:[qt],imports:[e.z_,he.S,Oe.y,o.Gj,he.S,Oe.y]})}return de})()},1975(ke,q,l){"use strict";l.d(q,{Y:()=>K,k:()=>M});var i=l(18617),g=l(17094),p=l(89726),D=l(2615),o=l(73664),e=l(17705),A=l(49046),h=l(88968),d=l(31804),w=l(22466);const f="mat-badge-content";let F=(()=>{class j{static \u0275fac=function(V){return new(V||j)};static \u0275cmp=o.VBU({type:j,selectors:[["ng-component"]],decls:0,vars:0,template:function(V,Q){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}\n"],encapsulation:2,changeDetection:0})}return j})(),M=(()=>{class j{_ngZone=(0,D.WQX)(o.SKi);_elementRef=(0,D.WQX)(o.aKT);_ariaDescriber=(0,D.WQX)(i.vr);_renderer=(0,D.WQX)(o.sFG);_animationsDisabled=(0,d.Rc)();_idGenerator=(0,D.WQX)(p.g);get color(){return this._color}set color(ee){this._setColor(ee),this._color=ee}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(ee){this._updateRenderedContent(ee)}_content;get description(){return this._description}set description(ee){this._updateDescription(ee)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=(0,D.WQX)(g.Z7);_document=(0,D.WQX)(D.qQL);constructor(){const ee=(0,D.WQX)(h.l);ee.load(F),ee.load(A.Y)}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._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){const ee=this._renderer.createElement("span"),V="mat-badge-active";return ee.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),ee.setAttribute("aria-hidden","true"),ee.classList.add(f),this._animationsDisabled&&ee.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(ee),"function"!=typeof requestAnimationFrame||this._animationsDisabled?ee.classList.add(V):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{ee.classList.add(V)})}),ee}_updateRenderedContent(ee){const V=`${ee??""}`.trim();this._isInitialized&&V&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=V),this._content=V}_updateDescription(ee){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!ee||this._isHostInteractive())&&this._removeInlineDescription(),this._description=ee,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,ee):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(ee){const V=this._elementRef.nativeElement.classList;V.remove(`mat-badge-${this._color}`),ee&&V.add(`mat-badge-${ee}`)}_clearExistingBadges(){const ee=this._elementRef.nativeElement.querySelectorAll(`:scope > .${f}`);for(const V of Array.from(ee))V!==this._badgeElement&&V.remove()}static \u0275fac=function(V){return new(V||j)};static \u0275dir=o.FsC({type:j,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(V,Q){2&V&&o.AVh("mat-badge-overlap",Q.overlap)("mat-badge-above",Q.isAbove())("mat-badge-below",!Q.isAbove())("mat-badge-before",!Q.isAfter())("mat-badge-after",Q.isAfter())("mat-badge-small","small"===Q.size)("mat-badge-medium","medium"===Q.size)("mat-badge-large","large"===Q.size)("mat-badge-hidden",Q.hidden||!Q.content)("mat-badge-disabled",Q.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",e.L39],disabled:[2,"matBadgeDisabled","disabled",e.L39],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",e.L39]}})}return j})(),K=(()=>{class j{static \u0275fac=function(V){return new(V||j)};static \u0275mod=o.$C({type:j});static \u0275inj=D.G2t({imports:[g.Pd,w.y,w.y]})}return j})()},88834(ke,q,l){"use strict";l.d(q,{$0:()=>se,$z:()=>ee,Hl:()=>L});var o=l(22598),e=l(2615),A=l(73664),h=l(26881),d=l(22466);const w=["matButton",""],f=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],F=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],K=["mat-mini-fab",""],Z=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]);let ee=(()=>{class t extends o.iM{get appearance(){return this._appearance}set appearance(m){this.setAppearance(m||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();const m=function V(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}(this._elementRef.nativeElement);m&&this.setAppearance(m)}setAppearance(m){if(m===this._appearance)return;const u=this._elementRef.nativeElement.classList,_=this._appearance?Z.get(this._appearance):null,T=Z.get(m);_&&u.remove(..._),u.add(...T),this._appearance=m}static \u0275fac=function(u){return new(u||t)};static \u0275cmp=A.VBU({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[A.Vt3],attrs:w,ngContentSelectors:F,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(u,_){1&u&&(A.NAR(f),A.Hgh(0,"span",0),A.SdG(1),A.rj2(2,"span",1),A.SdG(3,1),A.eux(),A.SdG(4,2),A.Hgh(5,"span",2)(6,"span",3)),2&u&&A.AVh("mdc-button__ripple",!_._isFab)("mdc-fab__ripple",_._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}\n',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0})}return t})();const $=new e.nKC("mat-mdc-fab-default-options",{providedIn:"root",factory:ie});function ie(){return{color:"accent"}}const _e=ie();let se=(()=>{class t extends o.iM{_options=(0,e.WQX)($,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||_e,this.color=this._options.color||_e.color}static \u0275fac=function(u){return new(u||t)};static \u0275cmp=A.VBU({type:t,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[A.Vt3],attrs:K,ngContentSelectors:F,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(u,_){1&u&&(A.NAR(f),A.Hgh(0,"span",0),A.SdG(1),A.rj2(2,"span",1),A.SdG(3,1),A.eux(),A.SdG(4,2),A.Hgh(5,"span",2)(6,"span",3)),2&u&&A.AVh("mdc-button__ripple",!_._isFab)("mdc-fab__ripple",_._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}\n'],encapsulation:2,changeDetection:0})}return t})(),L=(()=>{class t{static \u0275fac=function(u){return new(u||t)};static \u0275mod=A.$C({type:t});static \u0275inj=e.G2t({imports:[d.y,h.p,d.y]})}return t})()},25596(ke,q,l){"use strict";l.d(q,{Hu:()=>pe,Lc:()=>K,MM:()=>Z,RN:()=>w,dh:()=>f,m2:()=>M});var i=l(2615),g=l(73664),p=l(22466);const D=["*"],A=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],h=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],d=new i.nKC("MAT_CARD_CONFIG");let w=(()=>{class Ee{appearance;constructor(){const t=(0,i.WQX)(d,{optional:!0});this.appearance=t?.appearance||"raised"}static \u0275fac=function(s){return new(s||Ee)};static \u0275cmp=g.VBU({type:Ee,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(s,m){2&s&&g.AVh("mat-mdc-card-outlined","outlined"===m.appearance)("mdc-card--outlined","outlined"===m.appearance)("mat-mdc-card-filled","filled"===m.appearance)("mdc-card--filled","filled"===m.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:D,decls:1,vars:0,template:function(s,m){1&s&&(g.NAR(),g.SdG(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}\n'],encapsulation:2,changeDetection:0})}return Ee})(),f=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=g.FsC({type:Ee,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return Ee})(),M=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=g.FsC({type:Ee,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return Ee})(),K=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=g.FsC({type:Ee,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return Ee})(),Z=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275cmp=g.VBU({type:Ee,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:h,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(s,m){1&s&&(g.NAR(A),g.SdG(0),g.rj2(1,"div",0),g.SdG(2,1),g.eux(),g.SdG(3,2))},encapsulation:2,changeDetection:0})}return Ee})(),pe=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275mod=g.$C({type:Ee});static \u0275inj=i.G2t({imports:[p.y,p.y]})}return Ee})()},82765(ke,q,l){"use strict";l.d(q,{So:()=>$,g7:()=>ie});var i=l(89726),g=l(2615),p=l(73664),D=l(17705),o=l(89417),e=l(88968),A=l(53155),h=l(31804),d=l(32046),w=l(12496),f=l(22466);const F=["input"],M=["label"],K=["*"],j=new g.nKC("mat-checkbox-default-options",{providedIn:"root",factory:Z});function Z(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var ee=function(_e){return _e[_e.Init=0]="Init",_e[_e.Checked=1]="Checked",_e[_e.Unchecked=2]="Unchecked",_e[_e.Indeterminate=3]="Indeterminate",_e}(ee||{});class V{source;checked}const Q=Z();let $=(()=>{class _e{_elementRef=(0,g.WQX)(p.aKT);_changeDetectorRef=(0,g.WQX)(D.gRc);_ngZone=(0,g.WQX)(p.SKi);_animationsDisabled=(0,h.Rc)();_options=(0,g.WQX)(j,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(se){const pe=new V;return pe.source=this,pe.checked=se,pe}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new p.bkB;indeterminateChange=new p.bkB;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=ee.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){(0,g.WQX)(e.l).load(d.A);const se=(0,g.WQX)(new D.ES_("tabindex"),{optional:!0});this._options=this._options||Q,this.color=this._options.color||Q.color,this.tabIndex=null==se?0:parseInt(se)||0,this.id=this._uniqueId=(0,g.WQX)(i.g).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(se){se.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(se){se!=this.checked&&(this._checked=se,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(se){se!==this.disabled&&(this._disabled=se,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(se){const pe=se!=this._indeterminate();this._indeterminate.set(se),pe&&(this._transitionCheckState(se?ee.Indeterminate:this.checked?ee.Checked:ee.Unchecked),this.indeterminateChange.emit(se)),this._syncIndeterminate(se)}_indeterminate=(0,g.vPA)(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(se){this.checked=!!se}registerOnChange(se){this._controlValueAccessorChangeFn=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se}validate(se){return this.required&&!0!==se.value?{required:!0}:null}registerOnValidatorChange(se){this._validatorChangeFn=se}_transitionCheckState(se){let pe=this._currentCheckState,Ee=this._getAnimationTargetElement();if(pe!==se&&Ee&&(this._currentAnimationClass&&Ee.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(pe,se),this._currentCheckState=se,this._currentAnimationClass.length>0)){Ee.classList.add(this._currentAnimationClass);const L=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Ee.classList.remove(L)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const se=this._options?.clickAction;this.disabled||"noop"===se?(this.disabled&&this.disabledInteractive||!this.disabled&&"noop"===se)&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==se&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?ee.Checked:ee.Unchecked),this._emitChangeEvent())}_onInteractionEvent(se){se.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(se,pe){if(this._animationsDisabled)return"";switch(se){case ee.Init:if(pe===ee.Checked)return this._animationClasses.uncheckedToChecked;if(pe==ee.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case ee.Unchecked:return pe===ee.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case ee.Checked:return pe===ee.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case ee.Indeterminate:return pe===ee.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(se){const pe=this._inputElement;pe&&(pe.nativeElement.indeterminate=se)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(se){se.target&&this._labelElement.nativeElement.contains(se.target)&&se.stopPropagation()}static \u0275fac=function(pe){return new(pe||_e)};static \u0275cmp=p.VBU({type:_e,selectors:[["mat-checkbox"]],viewQuery:function(pe,Ee){if(1&pe&&(p.GBs(F,5),p.GBs(M,5)),2&pe){let L;p.mGM(L=p.lsd())&&(Ee._inputElement=L.first),p.mGM(L=p.lsd())&&(Ee._labelElement=L.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(pe,Ee){2&pe&&(p.Avn("id",Ee.id),p.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),p.HbH(Ee.color?"mat-"+Ee.color:"mat-accent"),p.AVh("_mat-animation-noopable",Ee._animationsDisabled)("mdc-checkbox--disabled",Ee.disabled)("mat-mdc-checkbox-disabled",Ee.disabled)("mat-mdc-checkbox-checked",Ee.checked)("mat-mdc-checkbox-disabled-interactive",Ee.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",D.L39],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",D.L39],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",D.L39],tabIndex:[2,"tabIndex","tabIndex",se=>null==se?void 0:(0,D.Udg)(se)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",D.L39],checked:[2,"checked","checked",D.L39],disabled:[2,"disabled","disabled",D.L39],indeterminate:[2,"indeterminate","indeterminate",D.L39]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[p.Jv_([{provide:o.kq,useExisting:(0,g.Rfq)(()=>_e),multi:!0},{provide:o.cz,useExisting:_e,multi:!0}]),p.OA$],ngContentSelectors:K,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(pe,Ee){if(1&pe){const L=p.RV6();p.NAR(),p.j41(0,"div",3),p.bIt("click",function(s){return g.eBV(L),g.Njj(Ee._preventBubblingFromLabel(s))}),p.j41(1,"div",4,0)(3,"div",5),p.bIt("click",function(){return g.eBV(L),g.Njj(Ee._onTouchTargetClick())}),p.k0s(),p.j41(4,"input",6,1),p.bIt("blur",function(){return g.eBV(L),g.Njj(Ee._onBlur())})("click",function(){return g.eBV(L),g.Njj(Ee._onInputClick())})("change",function(s){return g.eBV(L),g.Njj(Ee._onInteractionEvent(s))}),p.k0s(),p.nrm(6,"div",7),p.j41(7,"div",8),g.qSk(),p.j41(8,"svg",9),p.nrm(9,"path",10),p.k0s(),g.joV(),p.nrm(10,"div",11),p.k0s(),p.nrm(11,"div",12),p.k0s(),p.j41(12,"label",13,2),p.SdG(14),p.k0s()()}if(2&pe){const L=p.sdS(2);p.Y8G("labelPosition",Ee.labelPosition),p.R7$(4),p.AVh("mdc-checkbox--selected",Ee.checked),p.Y8G("checked",Ee.checked)("indeterminate",Ee.indeterminate)("disabled",Ee.disabled&&!Ee.disabledInteractive)("id",Ee.inputId)("required",Ee.required)("tabIndex",Ee.disabled&&!Ee.disabledInteractive?-1:Ee.tabIndex),p.BMQ("aria-label",Ee.ariaLabel||null)("aria-labelledby",Ee.ariaLabelledby)("aria-describedby",Ee.ariaDescribedby)("aria-checked",Ee.indeterminate?"mixed":null)("aria-controls",Ee.ariaControls)("aria-disabled",!(!Ee.disabled||!Ee.disabledInteractive)||null)("aria-expanded",Ee.ariaExpanded)("aria-owns",Ee.ariaOwns)("name",Ee.name)("value",Ee.value),p.R7$(7),p.Y8G("matRippleTrigger",L)("matRippleDisabled",Ee.disableRipple||Ee.disabled)("matRippleCentered",!0),p.R7$(),p.Y8G("for",Ee.inputId)}},dependencies:[w.r6,A.t],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-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 mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return _e})(),ie=(()=>{class _e{static \u0275fac=function(pe){return new(pe||_e)};static \u0275mod=p.$C({type:_e});static \u0275inj=g.G2t({imports:[$,f.y,f.y]})}return _e})()},36471(ke,q,l){"use strict";l.d(q,{Jl:()=>Et,YN:()=>hn});var i=l(76838),g=l(89726),o=(l(64123),l(67336),l(10438)),e=l(49046),A=l(88968),h=l(2615),d=l(73664),w=l(17705),f=l(21413),F=l(57786),M=l(32046),K=l(12496),j=l(31804),Z=l(11048),_e=(l(99172),l(25558),l(56977),l(61577),l(89417),l(2709)),pe=(l(39336),l(69588),l(22466)),Ee=l(26881);const L=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],t=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function s(En,_n){1&En&&(d.j41(0,"span",3),d.SdG(1,1),d.k0s())}function m(En,_n){1&En&&(d.j41(0,"span",6),d.SdG(1,2),d.k0s())}const ce=new h.nKC("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[o.Fm]})}),Re=new h.nKC("MatChipAvatar"),Me=new h.nKC("MatChipTrailingIcon"),ve=new h.nKC("MatChipEdit"),oe=new h.nKC("MatChipRemove"),Se=new h.nKC("MatChip");let be=(()=>{class En{_elementRef=(0,h.WQX)(d.aKT);_parentChip=(0,h.WQX)(Se);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(tt){this._disabled=tt}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){(0,h.WQX)(A.l).load(M.A),"BUTTON"===this._elementRef.nativeElement.nodeName&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(tt){!this.disabled&&this.isInteractive&&this._isPrimary&&(tt.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(tt){(tt.keyCode===o.Fm||tt.keyCode===o.t6)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(tt.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(Fe){return new(Fe||En)};static \u0275dir=d.FsC({type:En,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(Fe,Pe){1&Fe&&d.bIt("click",function(Qe){return Pe._handleClick(Qe)})("keydown",function(Qe){return Pe._handleKeydown(Qe)}),2&Fe&&(d.BMQ("tabindex",Pe._getTabindex())("disabled",Pe._getDisabledAttribute())("aria-disabled",Pe.disabled),d.AVh("mdc-evolution-chip__action--primary",Pe._isPrimary)("mdc-evolution-chip__action--presentational",!Pe.isInteractive)("mdc-evolution-chip__action--secondary",!Pe._isPrimary)("mdc-evolution-chip__action--trailing",!Pe._isPrimary&&!Pe._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",w.L39],tabIndex:[2,"tabIndex","tabIndex",tt=>null==tt?-1:(0,w.Udg)(tt)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return En})(),Et=(()=>{class En{_changeDetectorRef=(0,h.WQX)(w.gRc);_elementRef=(0,h.WQX)(d.aKT);_tagName=(0,h.WQX)(w.cCO);_ngZone=(0,h.WQX)(d.SKi);_focusMonitor=(0,h.WQX)(i.FN);_globalRippleOptions=(0,h.WQX)(K.$E,{optional:!0});_document=(0,h.WQX)(h.qQL);_onFocus=new f.B;_onBlur=new f.B;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=(0,j.Rc)();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=(0,h.WQX)(g.g).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(tt){this._value=tt}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(tt){this._disabled=tt}_disabled=!1;removed=new d.bkB;destroyed=new d.bkB;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=(0,h.WQX)(Z.E);_injector=(0,h.WQX)(h.zZn);constructor(){const tt=(0,h.WQX)(A.l);tt.load(M.A),tt.load(e.Y),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,F.h)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(tt){(tt.keyCode===o.G_&&!tt.repeat||tt.keyCode===o.SJ)&&(tt.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(tt){return this._getActions().find(Fe=>{const Pe=Fe._elementRef.nativeElement;return Pe===tt||Pe.contains(tt)})}_getActions(){const tt=[];return this.editIcon&&tt.push(this.editIcon),this.primaryAction&&tt.push(this.primaryAction),this.removeIcon&&tt.push(this.removeIcon),this.trailingIcon&&tt.push(this.trailingIcon),tt}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(tt=>tt.isInteractive)}_edit(tt){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(tt=>{const Fe=null!==tt;Fe!==this._hasFocusInternal&&(this._hasFocusInternal=Fe,Fe?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(Fe){return new(Fe||En)};static \u0275cmp=d.VBU({type:En,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Fe,Pe,Ue){if(1&Fe&&(d.wni(Ue,Re,5),d.wni(Ue,ve,5),d.wni(Ue,Me,5),d.wni(Ue,oe,5),d.wni(Ue,Re,5),d.wni(Ue,Me,5),d.wni(Ue,ve,5),d.wni(Ue,oe,5)),2&Fe){let Qe;d.mGM(Qe=d.lsd())&&(Pe.leadingIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe.editIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe.trailingIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe.removeIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe._allLeadingIcons=Qe),d.mGM(Qe=d.lsd())&&(Pe._allTrailingIcons=Qe),d.mGM(Qe=d.lsd())&&(Pe._allEditIcons=Qe),d.mGM(Qe=d.lsd())&&(Pe._allRemoveIcons=Qe)}},viewQuery:function(Fe,Pe){if(1&Fe&&d.GBs(be,5),2&Fe){let Ue;d.mGM(Ue=d.lsd())&&(Pe.primaryAction=Ue.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(Fe,Pe){1&Fe&&d.bIt("keydown",function(Qe){return Pe._handleKeydown(Qe)}),2&Fe&&(d.Avn("id",Pe.id),d.BMQ("role",Pe.role)("aria-label",Pe.ariaLabel),d.HbH("mat-"+(Pe.color||"primary")),d.AVh("mdc-evolution-chip",!Pe._isBasicChip)("mdc-evolution-chip--disabled",Pe.disabled)("mdc-evolution-chip--with-trailing-action",Pe._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",Pe.leadingIcon)("mdc-evolution-chip--with-primary-icon",Pe.leadingIcon)("mdc-evolution-chip--with-avatar",Pe.leadingIcon)("mat-mdc-chip-with-avatar",Pe.leadingIcon)("mat-mdc-chip-highlighted",Pe.highlighted)("mat-mdc-chip-disabled",Pe.disabled)("mat-mdc-basic-chip",Pe._isBasicChip)("mat-mdc-standard-chip",!Pe._isBasicChip)("mat-mdc-chip-with-trailing-icon",Pe._hasTrailingIcon())("_mat-animation-noopable",Pe._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",w.L39],highlighted:[2,"highlighted","highlighted",w.L39],disableRipple:[2,"disableRipple","disableRipple",w.L39],disabled:[2,"disabled","disabled",w.L39]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[d.Jv_([{provide:Se,useExisting:En}])],ngContentSelectors:t,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(Fe,Pe){1&Fe&&(d.NAR(L),d.nrm(0,"span",0),d.j41(1,"span",1)(2,"span",2),d.nVh(3,s,2,0,"span",3),d.j41(4,"span",4),d.SdG(5),d.nrm(6,"span",5),d.k0s()()(),d.nVh(7,m,2,0,"span",6)),2&Fe&&(d.R7$(2),d.Y8G("isInteractive",!1),d.R7$(),d.vxM(Pe.leadingIcon?3:-1),d.R7$(4),d.vxM(Pe._hasTrailingIcon()?7:-1))},dependencies:[be],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0}\n'],encapsulation:2,changeDetection:0})}return En})(),hn=(()=>{class En{static \u0275fac=function(Fe){return new(Fe||En)};static \u0275mod=d.$C({type:En});static \u0275inj=h.G2t({providers:[_e.e,{provide:ce,useValue:{separatorKeyCodes:[o.Fm]}}],imports:[pe.y,Ee.p,pe.y]})}return En})()},22466(ke,q,l){"use strict";l.d(q,{y:()=>e});var i=l(17094),g=l(28203),p=l(2615),D=l(73664);let e=(()=>{class A{constructor(){(0,p.WQX)(i.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(w){return new(w||A)};static \u0275mod=D.$C({type:A});static \u0275inj=p.G2t({imports:[g.jI,g.jI]})}return A})()},3(ke,q,l){"use strict";l.d(q,{WX:()=>K,xW:()=>w});var p=l(2615),D=l(73664),o=l(19945);const A=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,h=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function d(Z,ee){const V=Array(Z);for(let Q=0;Q{class Z extends o.MJ{useUtcForDisplay=!1;_matDateLocale=(0,p.WQX)(o.Ju,{optional:!0});constructor(){super();const V=(0,p.WQX)(o.Ju,{optional:!0});void 0!==V&&(this._matDateLocale=V),super.setLocale(this._matDateLocale)}getYear(V){return V.getFullYear()}getMonth(V){return V.getMonth()}getDate(V){return V.getDate()}getDayOfWeek(V){return V.getDay()}getMonthNames(V){const Q=new Intl.DateTimeFormat(this.locale,{month:V,timeZone:"utc"});return d(12,$=>this._format(Q,new Date(2017,$,1)))}getDateNames(){const V=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return d(31,Q=>this._format(V,new Date(2017,0,Q+1)))}getDayOfWeekNames(V){const Q=new Intl.DateTimeFormat(this.locale,{weekday:V,timeZone:"utc"});return d(7,$=>this._format(Q,new Date(2017,0,$+1)))}getYearName(V){const Q=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Q,V)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){const V=new Intl.Locale(this.locale),Q=(V.getWeekInfo?.()||V.weekInfo)?.firstDay??0;return 7===Q?0:Q}return 0}getNumDaysInMonth(V){return this.getDate(this._createDateWithOverflow(this.getYear(V),this.getMonth(V)+1,0))}clone(V){return new Date(V.getTime())}createDate(V,Q,$){let ie=this._createDateWithOverflow(V,Q,$);return ie.getMonth(),ie}today(){return new Date}parse(V,Q){return"number"==typeof V?new Date(V):V?new Date(Date.parse(V)):null}format(V,Q){if(!this.isValid(V))throw Error("NativeDateAdapter: Cannot format invalid date.");const $=new Intl.DateTimeFormat(this.locale,{...Q,timeZone:"utc"});return this._format($,V)}addCalendarYears(V,Q){return this.addCalendarMonths(V,12*Q)}addCalendarMonths(V,Q){let $=this._createDateWithOverflow(this.getYear(V),this.getMonth(V)+Q,this.getDate(V));return this.getMonth($)!=((this.getMonth(V)+Q)%12+12)%12&&($=this._createDateWithOverflow(this.getYear($),this.getMonth($),0)),$}addCalendarDays(V,Q){return this._createDateWithOverflow(this.getYear(V),this.getMonth(V),this.getDate(V)+Q)}toIso8601(V){return[V.getUTCFullYear(),this._2digit(V.getUTCMonth()+1),this._2digit(V.getUTCDate())].join("-")}deserialize(V){if("string"==typeof V){if(!V)return null;if(A.test(V)){let Q=new Date(V);if(this.isValid(Q))return Q}}return super.deserialize(V)}isDateInstance(V){return V instanceof Date}isValid(V){return!isNaN(V.getTime())}invalid(){return new Date(NaN)}setTime(V,Q,$,ie){const _e=this.clone(V);return _e.setHours(Q,$,ie,0),_e}getHours(V){return V.getHours()}getMinutes(V){return V.getMinutes()}getSeconds(V){return V.getSeconds()}parseTime(V,Q){if("string"!=typeof V)return V instanceof Date?new Date(V.getTime()):null;const $=V.trim();if(0===$.length)return null;let ie=this._parseTimeString($);if(null===ie){const _e=$.replace(/[^0-9:(AM|PM)]/gi,"").trim();_e.length>0&&(ie=this._parseTimeString(_e))}return ie||this.invalid()}addSeconds(V,Q){return new Date(V.getTime()+1e3*Q)}_createDateWithOverflow(V,Q,$){const ie=new Date;return ie.setFullYear(V,Q,$),ie.setHours(0,0,0,0),ie}_2digit(V){return("00"+V).slice(-2)}_format(V,Q){const $=new Date;return $.setUTCFullYear(Q.getFullYear(),Q.getMonth(),Q.getDate()),$.setUTCHours(Q.getHours(),Q.getMinutes(),Q.getSeconds(),Q.getMilliseconds()),V.format($)}_parseTimeString(V){const Q=V.toUpperCase().match(h);if(Q){let $=parseInt(Q[1]);const ie=parseInt(Q[2]);let _e=null==Q[3]?void 0:parseInt(Q[3]);const ye=Q[4];if(12===$?$="AM"===ye?0:$:"PM"===ye&&($+=12),f($,0,23)&&f(ie,0,59)&&(null==_e||f(_e,0,59)))return this.setTime(this.today(),$,ie,_e||0)}return null}static \u0275fac=function(Q){return new(Q||Z)};static \u0275prov=p.jDH({token:Z,factory:Z.\u0275fac})}return Z})();function f(Z,ee,V){return!isNaN(Z)&&Z>=ee&&Z<=V}const F={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};let K=(()=>{class Z{static \u0275fac=function(Q){return new(Q||Z)};static \u0275mod=D.$C({type:Z});static \u0275inj=p.G2t({providers:[j()]})}return Z})();function j(Z=F){return[{provide:o.MJ,useClass:w},{provide:o.de,useValue:Z}]}},19945(ke,q,l){"use strict";l.d(q,{Ju:()=>D,MJ:()=>A,de:()=>h});var i=l(2615),g=l(73664),p=l(21413);const D=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function o(){return(0,i.WQX)(g.xe9)}}),e="Method not implemented";class A{locale;_localeChanges=new p.B;localeChanges=this._localeChanges;setTime(w,f,F,M){throw new Error(e)}getHours(w){throw new Error(e)}getMinutes(w){throw new Error(e)}getSeconds(w){throw new Error(e)}parseTime(w,f){throw new Error(e)}addSeconds(w,f){throw new Error(e)}getValidDateOrNull(w){return this.isDateInstance(w)&&this.isValid(w)?w:null}deserialize(w){return null==w||this.isDateInstance(w)&&this.isValid(w)?w:this.invalid()}setLocale(w){this.locale=w,this._localeChanges.next()}compareDate(w,f){return this.getYear(w)-this.getYear(f)||this.getMonth(w)-this.getMonth(f)||this.getDate(w)-this.getDate(f)}compareTime(w,f){return this.getHours(w)-this.getHours(f)||this.getMinutes(w)-this.getMinutes(f)||this.getSeconds(w)-this.getSeconds(f)}sameDate(w,f){if(w&&f){let F=this.isValid(w),M=this.isValid(f);return F&&M?!this.compareDate(w,f):F==M}return w==f}sameTime(w,f){if(w&&f){const F=this.isValid(w),M=this.isValid(f);return F&&M?!this.compareTime(w,f):F==M}return w==f}clampDate(w,f,F){return f&&this.compareDate(w,f)<0?f:F&&this.compareDate(w,F)>0?F:w}}const h=new i.nKC("mat-date-formats")},25084(ke,q,l){"use strict";l.d(q,{Vh:()=>Zn,X6:()=>Oi,bU:()=>Sn,bZ:()=>Sa});var _=l(2615),T=l(73664),P=l(17705),C=l(21413),a=l(18359),x=l(57786),Y=l(7673),R=l(19945),U=l(76838),fe=l(17094),re=l(89726),he=l(61577),Oe=l(14085),ge=l(67336),ce=l(10438),Re=l(49338),Me=l(39842),ve=l(44522),oe=l(76939),Se=l(5964),be=l(99172),nt=l(96697),$e=l(72200),dt=l(49046),yt=l(88968),Et=l(32046),rt=l(88834),Mn=l(22598),qt=l(40455),S=l(31804),Xt=l(89417),de=l(68010),ae=l(69588),me=l(5718),Le=l(22466);const et=["mat-calendar-body",""];function tn(mn,li){return this._trackRow(li)}const Vt=(mn,li)=>li.id;function hn(mn,li){if(1&mn&&(T.j41(0,"tr",0)(1,"td",3),T.EFF(2),T.k0s()()),2&mn){const Ce=T.XpG();T.R7$(),T.xc7("padding-top",Ce._cellPadding)("padding-bottom",Ce._cellPadding),T.BMQ("colspan",Ce.numCols),T.R7$(),T.SpI(" ",Ce.label," ")}}function En(mn,li){if(1&mn&&(T.j41(0,"td",3),T.EFF(1),T.k0s()),2&mn){const Ce=T.XpG(2);T.xc7("padding-top",Ce._cellPadding)("padding-bottom",Ce._cellPadding),T.BMQ("colspan",Ce._firstRowOffset),T.R7$(),T.SpI(" ",Ce._firstRowOffset>=Ce.labelMinRequiredCells?Ce.label:""," ")}}function _n(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"td",6)(1,"button",7),T.bIt("click",function(vt){const rn=_.eBV(Ce).$implicit,Wn=T.XpG(2);return _.Njj(Wn._cellClicked(rn,vt))})("focus",function(vt){const rn=_.eBV(Ce).$implicit,Wn=T.XpG(2);return _.Njj(Wn._emitActiveDateChange(rn,vt))}),T.j41(2,"span",8),T.EFF(3),T.k0s(),T.nrm(4,"span",9),T.k0s()()}if(2&mn){const Ce=li.$implicit,xt=li.$index,vt=T.XpG().$index,rn=T.XpG();T.xc7("width",rn._cellWidth)("padding-top",rn._cellPadding)("padding-bottom",rn._cellPadding),T.BMQ("data-mat-row",vt)("data-mat-col",xt),T.R7$(),T.AVh("mat-calendar-body-disabled",!Ce.enabled)("mat-calendar-body-active",rn._isActiveCell(vt,xt))("mat-calendar-body-range-start",rn._isRangeStart(Ce.compareValue))("mat-calendar-body-range-end",rn._isRangeEnd(Ce.compareValue))("mat-calendar-body-in-range",rn._isInRange(Ce.compareValue))("mat-calendar-body-comparison-bridge-start",rn._isComparisonBridgeStart(Ce.compareValue,vt,xt))("mat-calendar-body-comparison-bridge-end",rn._isComparisonBridgeEnd(Ce.compareValue,vt,xt))("mat-calendar-body-comparison-start",rn._isComparisonStart(Ce.compareValue))("mat-calendar-body-comparison-end",rn._isComparisonEnd(Ce.compareValue))("mat-calendar-body-in-comparison-range",rn._isInComparisonRange(Ce.compareValue))("mat-calendar-body-preview-start",rn._isPreviewStart(Ce.compareValue))("mat-calendar-body-preview-end",rn._isPreviewEnd(Ce.compareValue))("mat-calendar-body-in-preview",rn._isInPreview(Ce.compareValue)),T.Y8G("ngClass",Ce.cssClasses)("tabindex",rn._isActiveCell(vt,xt)?0:-1),T.BMQ("aria-label",Ce.ariaLabel)("aria-disabled",!Ce.enabled||null)("aria-pressed",rn._isSelected(Ce.compareValue))("aria-current",rn.todayValue===Ce.compareValue?"date":null)("aria-describedby",rn._getDescribedby(Ce.compareValue)),T.R7$(),T.AVh("mat-calendar-body-selected",rn._isSelected(Ce.compareValue))("mat-calendar-body-comparison-identical",rn._isComparisonIdentical(Ce.compareValue))("mat-calendar-body-today",rn.todayValue===Ce.compareValue),T.R7$(),T.SpI(" ",Ce.displayValue," ")}}function tt(mn,li){if(1&mn&&(T.j41(0,"tr",1),T.nVh(1,En,2,6,"td",4),T.Z7z(2,_n,5,48,"td",5,Vt),T.k0s()),2&mn){const Ce=li.$implicit,xt=li.$index,vt=T.XpG();T.R7$(),T.vxM(0===xt&&vt._firstRowOffset?1:-1),T.R7$(),T.Dyx(Ce)}}function Fe(mn,li){if(1&mn&&(T.j41(0,"th",2)(1,"span",6),T.EFF(2),T.k0s(),T.j41(3,"span",3),T.EFF(4),T.k0s()()),2&mn){const Ce=li.$implicit;T.R7$(2),T.JRh(Ce.long),T.R7$(2),T.JRh(Ce.narrow)}}const Pe=["*"];function Ue(mn,li){}function Qe(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"mat-month-view",4),T.mxI("activeDateChange",function(vt){_.eBV(Ce);const rn=T.XpG();return T.DH7(rn.activeDate,vt)||(rn.activeDate=vt),_.Njj(vt)}),T.bIt("_userSelection",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._dateSelected(vt))})("dragStarted",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._dragStarted(vt))})("dragEnded",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._dragEnded(vt))}),T.k0s()}if(2&mn){const Ce=T.XpG();T.R50("activeDate",Ce.activeDate),T.Y8G("selected",Ce.selected)("dateFilter",Ce.dateFilter)("maxDate",Ce.maxDate)("minDate",Ce.minDate)("dateClass",Ce.dateClass)("comparisonStart",Ce.comparisonStart)("comparisonEnd",Ce.comparisonEnd)("startDateAccessibleName",Ce.startDateAccessibleName)("endDateAccessibleName",Ce.endDateAccessibleName)("activeDrag",Ce._activeDrag)}}function Ie(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"mat-year-view",5),T.mxI("activeDateChange",function(vt){_.eBV(Ce);const rn=T.XpG();return T.DH7(rn.activeDate,vt)||(rn.activeDate=vt),_.Njj(vt)}),T.bIt("monthSelected",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._monthSelectedInYearView(vt))})("selectedChange",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._goToDateInView(vt,"month"))}),T.k0s()}if(2&mn){const Ce=T.XpG();T.R50("activeDate",Ce.activeDate),T.Y8G("selected",Ce.selected)("dateFilter",Ce.dateFilter)("maxDate",Ce.maxDate)("minDate",Ce.minDate)("dateClass",Ce.dateClass)}}function le(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"mat-multi-year-view",6),T.mxI("activeDateChange",function(vt){_.eBV(Ce);const rn=T.XpG();return T.DH7(rn.activeDate,vt)||(rn.activeDate=vt),_.Njj(vt)}),T.bIt("yearSelected",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._yearSelectedInMultiYearView(vt))})("selectedChange",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._goToDateInView(vt,"year"))}),T.k0s()}if(2&mn){const Ce=T.XpG();T.R50("activeDate",Ce.activeDate),T.Y8G("selected",Ce.selected)("dateFilter",Ce.dateFilter)("maxDate",Ce.maxDate)("minDate",Ce.minDate)("dateClass",Ce.dateClass)}}function Ne(mn,li){}const ze=["button"],Je=[[["","matDatepickerToggleIcon",""]]],gt=["[matDatepickerToggleIcon]"];function zt(mn,li){1&mn&&(_.qSk(),T.j41(0,"svg",2),T.nrm(1,"path",3),T.k0s())}let Wt=(()=>{class mn{changes=new C.B;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(Ce,xt){return`${Ce} \u2013 ${xt}`}formatYearRangeLabel(Ce,xt){return`${Ce} to ${xt}`}static \u0275fac=function(xt){return new(xt||mn)};static \u0275prov=_.jDH({token:mn,factory:mn.\u0275fac,providedIn:"root"})}return mn})(),we=0;class We{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=we++;constructor(li,Ce,xt,vt,rn={},Wn=li,Yi){this.value=li,this.displayValue=Ce,this.ariaLabel=xt,this.enabled=vt,this.cssClasses=rn,this.compareValue=Wn,this.rawValue=Yi}}const Lt={passive:!1,capture:!0},St={passive:!0,capture:!0},At={passive:!0};let fn=(()=>{class mn{_elementRef=(0,_.WQX)(T.aKT);_ngZone=(0,_.WQX)(T.SKi);_platform=(0,_.WQX)(Me.O);_intl=(0,_.WQX)(Wt);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new T.bkB;previewChange=new T.bkB;activeDateChange=new T.bkB;dragStarted=new T.bkB;dragEnded=new T.bkB;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=(0,_.WQX)(_.zZn);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=Ce=>Ce;constructor(){const Ce=(0,_.WQX)(T.sFG),xt=(0,_.WQX)(re.g);this._startDateLabelId=xt.getId("mat-calendar-body-start-"),this._endDateLabelId=xt.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=xt.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=xt.getId("mat-calendar-body-comparison-end-"),(0,_.WQX)(yt.l).load(Et.A),this._ngZone.runOutsideAngular(()=>{const vt=this._elementRef.nativeElement,rn=[Ce.listen(vt,"touchmove",this._touchmoveHandler,Lt),Ce.listen(vt,"mouseenter",this._enterHandler,St),Ce.listen(vt,"focus",this._enterHandler,St),Ce.listen(vt,"mouseleave",this._leaveHandler,St),Ce.listen(vt,"blur",this._leaveHandler,St),Ce.listen(vt,"mousedown",this._mousedownHandler,At),Ce.listen(vt,"touchstart",this._mousedownHandler,At)];this._platform.isBrowser&&rn.push(Ce.listen("window","mouseup",this._mouseupHandler),Ce.listen("window","touchend",this._touchendHandler)),this._eventCleanups=rn})}_cellClicked(Ce,xt){this._didDragSinceMouseDown||Ce.enabled&&this.selectedValueChange.emit({value:Ce.value,event:xt})}_emitActiveDateChange(Ce,xt){Ce.enabled&&this.activeDateChange.emit({value:Ce.value,event:xt})}_isSelected(Ce){return this.startValue===Ce||this.endValue===Ce}ngOnChanges(Ce){const xt=Ce.numCols,{rows:vt,numCols:rn}=this;(Ce.rows||xt)&&(this._firstRowOffset=vt&&vt.length&&vt[0].length?rn-vt[0].length:0),(Ce.cellAspectRatio||xt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/rn+"%"),(xt||!this._cellWidth)&&(this._cellWidth=100/rn+"%")}ngOnDestroy(){this._eventCleanups.forEach(Ce=>Ce())}_isActiveCell(Ce,xt){let vt=Ce*this.numCols+xt;return Ce&&(vt-=this._firstRowOffset),vt==this.activeCell}_focusActiveCell(Ce=!0){(0,T.mal)(()=>{setTimeout(()=>{const xt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");xt&&(Ce||(this._skipNextFocus=!0),xt.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Ce){return wn(Ce,this.startValue,this.endValue)}_isRangeEnd(Ce){return In(Ce,this.startValue,this.endValue)}_isInRange(Ce){return ei(Ce,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Ce){return wn(Ce,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Ce,xt,vt){if(!this._isComparisonStart(Ce)||this._isRangeStart(Ce)||!this._isInRange(Ce))return!1;let rn=this.rows[xt][vt-1];if(!rn){const Wn=this.rows[xt-1];rn=Wn&&Wn[Wn.length-1]}return rn&&!this._isRangeEnd(rn.compareValue)}_isComparisonBridgeEnd(Ce,xt,vt){if(!this._isComparisonEnd(Ce)||this._isRangeEnd(Ce)||!this._isInRange(Ce))return!1;let rn=this.rows[xt][vt+1];if(!rn){const Wn=this.rows[xt+1];rn=Wn&&Wn[0]}return rn&&!this._isRangeStart(rn.compareValue)}_isComparisonEnd(Ce){return In(Ce,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Ce){return ei(Ce,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Ce){return this.comparisonStart===this.comparisonEnd&&Ce===this.comparisonStart}_isPreviewStart(Ce){return wn(Ce,this.previewStart,this.previewEnd)}_isPreviewEnd(Ce){return In(Ce,this.previewStart,this.previewEnd)}_isInPreview(Ce){return ei(Ce,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(Ce){if(!this.isRange)return null;if(this.startValue===Ce&&this.endValue===Ce)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===Ce)return this._startDateLabelId;if(this.endValue===Ce)return this._endDateLabelId;if(null!==this.comparisonStart&&null!==this.comparisonEnd){if(Ce===this.comparisonStart&&Ce===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(Ce===this.comparisonStart)return this._comparisonStartDateLabelId;if(Ce===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=Ce=>{if(this._skipNextFocus&&"focus"===Ce.type)this._skipNextFocus=!1;else if(Ce.target&&this.isRange){const xt=this._getCellFromElement(Ce.target);xt&&this._ngZone.run(()=>this.previewChange.emit({value:xt.enabled?xt:null,event:Ce}))}};_touchmoveHandler=Ce=>{if(!this.isRange)return;const xt=Li(Ce),vt=xt?this._getCellFromElement(xt):null;xt!==Ce.target&&(this._didDragSinceMouseDown=!0),It(Ce.target)&&Ce.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:vt?.enabled?vt:null,event:Ce}))};_leaveHandler=Ce=>{null!==this.previewEnd&&this.isRange&&("blur"!==Ce.type&&(this._didDragSinceMouseDown=!0),Ce.target&&this._getCellFromElement(Ce.target)&&(!Ce.relatedTarget||!this._getCellFromElement(Ce.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Ce})))};_mousedownHandler=Ce=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const xt=Ce.target&&this._getCellFromElement(Ce.target);!xt||!this._isInRange(xt.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:xt.rawValue,event:Ce})})};_mouseupHandler=Ce=>{if(!this.isRange)return;const xt=It(Ce.target);xt?xt.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const vt=this._getCellFromElement(xt);this.dragEnded.emit({value:vt?.rawValue??null,event:Ce})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:Ce})})};_touchendHandler=Ce=>{const xt=Li(Ce);xt&&this._mouseupHandler({target:xt})};_getCellFromElement(Ce){const xt=It(Ce);if(xt){const vt=xt.getAttribute("data-mat-row"),rn=xt.getAttribute("data-mat-col");if(vt&&rn)return this.rows[parseInt(vt)]?.[parseInt(rn)]||null}return null}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[T.OA$],attrs:et,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(xt,vt){1&xt&&(T.nVh(0,hn,3,6,"tr",0),T.Z7z(1,tt,4,1,"tr",1,tn,!0),T.j41(3,"span",2),T.EFF(4),T.k0s(),T.j41(5,"span",2),T.EFF(6),T.k0s(),T.j41(7,"span",2),T.EFF(8),T.k0s(),T.j41(9,"span",2),T.EFF(10),T.k0s()),2&xt&&(T.vxM(vt._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}\n'],encapsulation:2,changeDetection:0})}return mn})();function mt(mn){return"TD"===mn?.nodeName}function It(mn){let li;return mt(mn)?li=mn:mt(mn.parentNode)?li=mn.parentNode:mt(mn.parentNode?.parentNode)&&(li=mn.parentNode.parentNode),null!=li?.getAttribute("data-mat-row")?li:null}function wn(mn,li,Ce){return null!==Ce&&li!==Ce&&mn=li&&mn===Ce}function ei(mn,li,Ce,xt){return xt&&null!==li&&null!==Ce&&li!==Ce&&mn>=li&&mn<=Ce}function Li(mn){const li=mn.changedTouches[0];return document.elementFromPoint(li.clientX,li.clientY)}class kt{start;end;_disableStructuralEquivalency;constructor(li,Ce){this.start=li,this.end=Ce}}let Ot=(()=>{class mn{selection;_adapter;_selectionChanged=new C.B;selectionChanged=this._selectionChanged;constructor(Ce,xt){this.selection=Ce,this._adapter=xt,this.selection=Ce}updateSelection(Ce,xt){const vt=this.selection;this.selection=Ce,this._selectionChanged.next({selection:Ce,source:xt,oldValue:vt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Ce){return this._adapter.isDateInstance(Ce)&&this._adapter.isValid(Ce)}static \u0275fac=function(xt){T.QTQ()};static \u0275prov=_.jDH({token:mn,factory:mn.\u0275fac})}return mn})(),Ze=(()=>{class mn extends Ot{constructor(Ce){super(null,Ce)}add(Ce){super.updateSelection(Ce,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Ce=new mn(this._adapter);return Ce.updateSelection(this.selection,this),Ce}static \u0275fac=function(xt){return new(xt||mn)(_.KVO(R.MJ))};static \u0275prov=_.jDH({token:mn,factory:mn.\u0275fac})}return mn})();const Yt={provide:Ot,deps:[[new T.Xx1,new T.kdw,Ot],R.MJ],useFactory:function Pt(mn,li){return mn||new Ze(li)}},oi=new _.nKC("MAT_DATE_RANGE_SELECTION_STRATEGY");let en=0,Nn=(()=>{class mn{_changeDetectorRef=(0,_.WQX)(P.gRc);_dateFormats=(0,_.WQX)(R.de,{optional:!0});_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_rangeStrategy=(0,_.WQX)(oi,{optional:!0});_rerenderSubscription=a.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(Ce){const xt=this._activeDate,vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),this._hasSameMonthAndYear(xt,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new T.bkB;_userSelection=new T.bkB;dragStarted=new T.bkB;dragEnded=new T.bkB;activeDateChange=new T.bkB;_matCalendarBody;_monthLabel=(0,_.vPA)("");_weeks=(0,_.vPA)([]);_firstWeekOffset=(0,_.vPA)(0);_rangeStart=(0,_.vPA)(null);_rangeEnd=(0,_.vPA)(null);_comparisonRangeStart=(0,_.vPA)(null);_comparisonRangeEnd=(0,_.vPA)(null);_previewStart=(0,_.vPA)(null);_previewEnd=(0,_.vPA)(null);_isRange=(0,_.vPA)(!1);_todayDate=(0,_.vPA)(null);_weekdays=(0,_.vPA)([]);constructor(){(0,_.WQX)(yt.l).load(dt.Y),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,be.Z)(null)).subscribe(()=>this._init())}ngOnChanges(Ce){const xt=Ce.comparisonStart||Ce.comparisonEnd;xt&&!xt.firstChange&&this._setRanges(this.selected),Ce.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Ce){const xt=Ce.value,vt=this._getDateFromDayOfMonth(xt);let rn,Wn;this._selected instanceof kt?(rn=this._getDateInCurrentMonth(this._selected.start),Wn=this._getDateInCurrentMonth(this._selected.end)):rn=Wn=this._getDateInCurrentMonth(this._selected),(rn!==xt||Wn!==xt)&&this.selectedChange.emit(vt),this._userSelection.emit({value:vt,event:Ce.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(Ce){const vt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Ce.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Ce){const xt=this._activeDate,vt=this._isRtl();switch(Ce.keyCode){case ce.UQ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,vt?1:-1);break;case ce.LE:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,vt?-1:1);break;case ce.i7:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case ce.n6:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case ce.yZ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case ce.Kp:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case ce.w_:this.activeDate=Ce.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case ce.dB:this.activeDate=Ce.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case ce.Fm:case ce.t6:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Ce.preventDefault());case ce._f:return void(null!=this._previewEnd()&&!(0,ge.rp)(Ce)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:Ce}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Ce})),Ce.preventDefault(),Ce.stopPropagation()));default:return}this._dateAdapter.compareDate(xt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Ce.preventDefault()}_handleCalendarBodyKeyup(Ce){(Ce.keyCode===ce.t6||Ce.keyCode===ce.Fm)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Ce}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let Ce=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((7+this._dateAdapter.getDayOfWeek(Ce)-this._dateAdapter.getFirstDayOfWeek())%7),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Ce){this._matCalendarBody._focusActiveCell(Ce)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Ce,value:xt}){if(this._rangeStrategy){const vt=xt?xt.rawValue:null,rn=this._rangeStrategy.createPreview(vt,this.selected,Ce);if(this._previewStart.set(this._getCellCompareValue(rn.start)),this._previewEnd.set(this._getCellCompareValue(rn.end)),this.activeDrag&&vt){const Wn=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,vt,Ce);Wn&&(this._previewStart.set(this._getCellCompareValue(Wn.start)),this._previewEnd.set(this._getCellCompareValue(Wn.end)))}}}_dragEnded(Ce){if(this.activeDrag)if(Ce.value){const xt=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,Ce.value,Ce.event);this.dragEnded.emit({value:xt??null,event:Ce.event})}else this.dragEnded.emit({value:null,event:Ce.event})}_getDateFromDayOfMonth(Ce){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Ce)}_initWeekdays(){const Ce=this._dateAdapter.getFirstDayOfWeek(),xt=this._dateAdapter.getDayOfWeekNames("narrow"),rn=this._dateAdapter.getDayOfWeekNames("long").map((Wn,Yi)=>({long:Wn,narrow:xt[Yi],id:en++}));this._weekdays.set(rn.slice(Ce).concat(rn.slice(0,Ce)))}_createWeekCells(){const Ce=this._dateAdapter.getNumDaysInMonth(this.activeDate),xt=this._dateAdapter.getDateNames(),vt=[[]];for(let rn=0,Wn=this._firstWeekOffset();rn=0)&&(!this.maxDate||this._dateAdapter.compareDate(Ce,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Ce))}_getDateInCurrentMonth(Ce){return Ce&&this._hasSameMonthAndYear(Ce,this.activeDate)?this._dateAdapter.getDate(Ce):null}_hasSameMonthAndYear(Ce,xt){return!(!Ce||!xt||this._dateAdapter.getMonth(Ce)!=this._dateAdapter.getMonth(xt)||this._dateAdapter.getYear(Ce)!=this._dateAdapter.getYear(xt))}_getCellCompareValue(Ce){if(Ce){const xt=this._dateAdapter.getYear(Ce),vt=this._dateAdapter.getMonth(Ce),rn=this._dateAdapter.getDate(Ce);return new Date(xt,vt,rn).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Ce){Ce instanceof kt?(this._rangeStart.set(this._getCellCompareValue(Ce.start)),this._rangeEnd.set(this._getCellCompareValue(Ce.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(Ce)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(Ce){return!this.dateFilter||this.dateFilter(Ce)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-month-view"]],viewQuery:function(xt,vt){if(1&xt&&T.GBs(fn,5),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt._matCalendarBody=rn.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[T.OA$],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(xt,vt){1&xt&&(T.j41(0,"table",0)(1,"thead",1)(2,"tr"),T.Z7z(3,Fe,5,2,"th",2,Vt),T.k0s(),T.j41(5,"tr",3),T.nrm(6,"th",4),T.k0s()(),T.j41(7,"tbody",5),T.bIt("selectedValueChange",function(Wn){return vt._dateSelected(Wn)})("activeDateChange",function(Wn){return vt._updateActiveDate(Wn)})("previewChange",function(Wn){return vt._previewChanged(Wn)})("dragStarted",function(Wn){return vt.dragStarted.emit(Wn)})("dragEnded",function(Wn){return vt._dragEnded(Wn)})("keyup",function(Wn){return vt._handleCalendarBodyKeyup(Wn)})("keydown",function(Wn){return vt._handleCalendarBodyKeydown(Wn)}),T.k0s()()),2&xt&&(T.R7$(3),T.Dyx(vt._weekdays()),T.R7$(4),T.Y8G("label",vt._monthLabel())("rows",vt._weeks())("todayValue",vt._todayDate())("startValue",vt._rangeStart())("endValue",vt._rangeEnd())("comparisonStart",vt._comparisonRangeStart())("comparisonEnd",vt._comparisonRangeEnd())("previewStart",vt._previewStart())("previewEnd",vt._previewEnd())("isRange",vt._isRange())("labelMinRequiredCells",3)("activeCell",vt._dateAdapter.getDate(vt.activeDate)-1)("startDateAccessibleName",vt.startDateAccessibleName)("endDateAccessibleName",vt.endDateAccessibleName))},dependencies:[fn],encapsulation:2,changeDetection:0})}return mn})(),ui=(()=>{class mn{_changeDetectorRef=(0,_.WQX)(P.gRc);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_rerenderSubscription=a.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(Ce){let xt=this._activeDate;const vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),gn(this._dateAdapter,xt,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce)),this._setSelectedYear(Ce)}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;selectedChange=new T.bkB;yearSelected=new T.bkB;activeDateChange=new T.bkB;_matCalendarBody;_years=(0,_.vPA)([]);_todayYear=(0,_.vPA)(0);_selectedYear=(0,_.vPA)(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,be.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));const xt=this._dateAdapter.getYear(this._activeDate)-zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),vt=[];for(let rn=0,Wn=[];rn<24;rn++)Wn.push(xt+rn),4==Wn.length&&(vt.push(Wn.map(Yi=>this._createCellForYear(Yi))),Wn=[]);this._years.set(vt),this._changeDetectorRef.markForCheck()}_yearSelected(Ce){const xt=Ce.value,vt=this._dateAdapter.createDate(xt,0,1),rn=this._getDateFromYear(xt);this.yearSelected.emit(vt),this.selectedChange.emit(rn)}_updateActiveDate(Ce){const vt=this._activeDate;this.activeDate=this._getDateFromYear(Ce.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Ce){const xt=this._activeDate,vt=this._isRtl();switch(Ce.keyCode){case ce.UQ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vt?1:-1);break;case ce.LE:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vt?-1:1);break;case ce.i7:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case ce.n6:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case ce.yZ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case ce.Kp:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case ce.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?-240:-24);break;case ce.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?240:24);break;case ce.Fm:case ce.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Ce.preventDefault()}_handleCalendarBodyKeyup(Ce){(Ce.keyCode===ce.t6||Ce.keyCode===ce.Fm)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Ce}),this._selectionKeyPressed=!1)}_getActiveCell(){return zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Ce){const xt=this._dateAdapter.getMonth(this.activeDate),vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Ce,xt,1));return this._dateAdapter.createDate(Ce,xt,Math.min(this._dateAdapter.getDate(this.activeDate),vt))}_createCellForYear(Ce){const xt=this._dateAdapter.createDate(Ce,0,1),vt=this._dateAdapter.getYearName(xt),rn=this.dateClass?this.dateClass(xt,"multi-year"):void 0;return new We(Ce,vt,vt,this._shouldEnableYear(Ce),rn)}_shouldEnableYear(Ce){if(null==Ce||this.maxDate&&Ce>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Ce{class mn{_changeDetectorRef=(0,_.WQX)(P.gRc);_dateFormats=(0,_.WQX)(R.de,{optional:!0});_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_rerenderSubscription=a.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(Ce){let xt=this._activeDate;const vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),this._dateAdapter.getYear(xt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce)),this._setSelectedMonth(Ce)}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;selectedChange=new T.bkB;monthSelected=new T.bkB;activeDateChange=new T.bkB;_matCalendarBody;_months=(0,_.vPA)([]);_yearLabel=(0,_.vPA)("");_todayMonth=(0,_.vPA)(null);_selectedMonth=(0,_.vPA)(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,be.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Ce){const xt=Ce.value,vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),xt,1);this.monthSelected.emit(vt);const rn=this._getDateFromMonth(xt);this.selectedChange.emit(rn)}_updateActiveDate(Ce){const vt=this._activeDate;this.activeDate=this._getDateFromMonth(Ce.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Ce){const xt=this._activeDate,vt=this._isRtl();switch(Ce.keyCode){case ce.UQ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,vt?1:-1);break;case ce.LE:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,vt?-1:1);break;case ce.i7:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case ce.n6:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case ce.yZ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case ce.Kp:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case ce.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?-10:-1);break;case ce.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?10:1);break;case ce.Fm:case ce.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Ce.preventDefault()}_handleCalendarBodyKeyup(Ce){(Ce.keyCode===ce.t6||Ce.keyCode===ce.Fm)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Ce}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let Ce=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(xt=>xt.map(vt=>this._createCellForMonth(vt,Ce[vt])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Ce){return Ce&&this._dateAdapter.getYear(Ce)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Ce):null}_getDateFromMonth(Ce){const xt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ce,1),vt=this._dateAdapter.getNumDaysInMonth(xt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ce,Math.min(this._dateAdapter.getDate(this.activeDate),vt))}_createCellForMonth(Ce,xt){const vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ce,1),rn=this._dateAdapter.format(vt,this._dateFormats.display.monthYearA11yLabel),Wn=this.dateClass?this.dateClass(vt,"year"):void 0;return new We(Ce,xt.toLocaleUpperCase(),rn,this._shouldEnableMonth(Ce),Wn)}_shouldEnableMonth(Ce){const xt=this._dateAdapter.getYear(this.activeDate);if(null==Ce||this._isYearAndMonthAfterMaxDate(xt,Ce)||this._isYearAndMonthBeforeMinDate(xt,Ce))return!1;if(!this.dateFilter)return!0;for(let rn=this._dateAdapter.createDate(xt,Ce,1);this._dateAdapter.getMonth(rn)==Ce;rn=this._dateAdapter.addCalendarDays(rn,1))if(this.dateFilter(rn))return!0;return!1}_isYearAndMonthAfterMaxDate(Ce,xt){if(this.maxDate){const vt=this._dateAdapter.getYear(this.maxDate),rn=this._dateAdapter.getMonth(this.maxDate);return Ce>vt||Ce===vt&&xt>rn}return!1}_isYearAndMonthBeforeMinDate(Ce,xt){if(this.minDate){const vt=this._dateAdapter.getYear(this.minDate),rn=this._dateAdapter.getMonth(this.minDate);return Ce{class mn{_intl=(0,_.WQX)(Wt);calendar=(0,_.WQX)(aa);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dateFormats=(0,_.WQX)(R.de,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){(0,_.WQX)(yt.l).load(dt.Y);const Ce=(0,_.WQX)(P.gRc);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),Ce.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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.nextEnabled()&&(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)}_updateLabels(){const Ce=this.calendar,xt=this._intl,vt=this._dateAdapter;"month"===Ce.currentView?(this._periodButtonText=vt.format(Ce.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=vt.format(Ce.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=xt.switchToMultiYearViewLabel,this._prevButtonLabel=xt.prevMonthLabel,this._nextButtonLabel=xt.nextMonthLabel):"year"===Ce.currentView?(this._periodButtonText=vt.getYearName(Ce.activeDate),this._periodButtonDescription=vt.getYearName(Ce.activeDate),this._periodButtonLabel=xt.switchToMonthViewLabel,this._prevButtonLabel=xt.prevYearLabel,this._nextButtonLabel=xt.nextYearLabel):(this._periodButtonText=xt.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=xt.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=xt.switchToMonthViewLabel,this._prevButtonLabel=xt.prevMultiYearLabel,this._nextButtonLabel=xt.nextMultiYearLabel)}_isSameView(Ce,xt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Ce)==this._dateAdapter.getYear(xt)&&this._dateAdapter.getMonth(Ce)==this._dateAdapter.getMonth(xt):"year"==this.calendar.currentView?this._dateAdapter.getYear(Ce)==this._dateAdapter.getYear(xt):gn(this._dateAdapter,Ce,xt,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const xt=this._dateAdapter.getYear(this.calendar.activeDate)-zn(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),vt=xt+24-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(xt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(vt,0,1))]}_periodButtonLabelId=(0,_.WQX)(re.g).getId("mat-calendar-period-label-");static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Pe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(xt,vt){1&xt&&(T.NAR(),T.j41(0,"div",0)(1,"div",1)(2,"span",2),T.EFF(3),T.k0s(),T.j41(4,"button",3),T.bIt("click",function(){return vt.currentPeriodClicked()}),T.j41(5,"span",4),T.EFF(6),T.k0s(),_.qSk(),T.j41(7,"svg",5),T.nrm(8,"polygon",6),T.k0s()(),_.joV(),T.nrm(9,"div",7),T.SdG(10),T.j41(11,"button",8),T.bIt("click",function(){return vt.previousClicked()}),_.qSk(),T.j41(12,"svg",9),T.nrm(13,"path",10),T.k0s()(),_.joV(),T.j41(14,"button",11),T.bIt("click",function(){return vt.nextClicked()}),_.qSk(),T.j41(15,"svg",9),T.nrm(16,"path",12),T.k0s()()()()),2&xt&&(T.R7$(2),T.Y8G("id",vt._periodButtonLabelId),T.R7$(),T.JRh(vt.periodButtonDescription),T.R7$(),T.BMQ("aria-label",vt.periodButtonLabel)("aria-describedby",vt._periodButtonLabelId),T.R7$(2),T.JRh(vt.periodButtonText),T.R7$(),T.AVh("mat-calendar-invert","month"!==vt.calendar.currentView),T.R7$(4),T.Y8G("disabled",!vt.previousEnabled())("matTooltip",vt.prevButtonLabel),T.BMQ("aria-label",vt.prevButtonLabel),T.R7$(3),T.Y8G("disabled",!vt.nextEnabled())("matTooltip",vt.nextButtonLabel),T.BMQ("aria-label",vt.nextButtonLabel))},dependencies:[rt.$z,Mn.iY,qt.oV],encapsulation:2,changeDetection:0})}return mn})(),aa=(()=>{class mn{_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dateFormats=(0,_.WQX)(R.de,{optional:!0});_changeDetectorRef=(0,_.WQX)(P.gRc);_elementRef=(0,_.WQX)(T.aKT);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(Ce){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_startAt;startView="month";get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new T.bkB;yearSelected=new T.bkB;monthSelected=new T.bkB;viewChanged=new T.bkB(!0);_userSelection=new T.bkB;_userDragDrop=new T.bkB;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(Ce){this._clampedActiveDate=this._dateAdapter.clampDate(Ce,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(Ce){const xt=this._currentView!==Ce?Ce:null;this._currentView=Ce,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),xt&&(this.stateChanges.next(),this.viewChanged.emit(xt))}_currentView;_activeDrag=null;stateChanges=new C.B;constructor(){this._intlChanges=(0,_.WQX)(Wt).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new oe.A8(this.headerComponent||Xn),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(Ce){const xt=Ce.minDate&&!this._dateAdapter.sameDate(Ce.minDate.previousValue,Ce.minDate.currentValue)?Ce.minDate:void 0,vt=Ce.maxDate&&!this._dateAdapter.sameDate(Ce.maxDate.previousValue,Ce.maxDate.currentValue)?Ce.maxDate:void 0,rn=xt||vt||Ce.dateFilter;if(rn&&!rn.firstChange){const Wn=this._getCurrentViewComponent();Wn&&(this._elementRef.nativeElement.contains((0,ve.vc)())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),Wn._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Ce){const xt=Ce.value;(this.selected instanceof kt||xt&&!this._dateAdapter.sameDate(xt,this.selected))&&this.selectedChange.emit(xt),this._userSelection.emit(Ce)}_yearSelectedInMultiYearView(Ce){this.yearSelected.emit(Ce)}_monthSelectedInYearView(Ce){this.monthSelected.emit(Ce)}_goToDateInView(Ce,xt){this.activeDate=Ce,this.currentView=xt}_dragStarted(Ce){this._activeDrag=Ce}_dragEnded(Ce){this._activeDrag&&(Ce.value&&this._userDragDrop.emit(Ce),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-calendar"]],viewQuery:function(xt,vt){if(1&xt&&(T.GBs(Nn,5),T.GBs(ci,5),T.GBs(ui,5)),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt.monthView=rn.first),T.mGM(rn=T.lsd())&&(vt.yearView=rn.first),T.mGM(rn=T.lsd())&&(vt.multiYearView=rn.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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[T.Jv_([Yt]),T.OA$],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(xt,vt){if(1&xt&&(T.DNE(0,Ue,0,0,"ng-template",0),T.j41(1,"div",1),T.nVh(2,Qe,1,11,"mat-month-view",2)(3,Ie,1,6,"mat-year-view",3)(4,le,1,6,"mat-multi-year-view",3),T.k0s()),2&xt){let rn;T.Y8G("cdkPortalOutlet",vt._calendarHeaderPortal),T.R7$(2),T.vxM("month"===(rn=vt.currentView)?2:"year"===rn?3:"multi-year"===rn?4:-1)}},dependencies:[oe.I3,U.vR,Nn,ci,ui],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.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;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return mn})();const sa=new _.nKC("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const mn=(0,_.WQX)(_.zZn);return()=>(0,Re.RH)(mn)}}),ua={provide:sa,deps:[],useFactory:function ma(mn){const li=(0,_.WQX)(_.zZn);return()=>(0,Re.RH)(li)}};let dn=(()=>{class mn{_elementRef=(0,_.WQX)(T.aKT);_animationsDisabled=(0,S.Rc)();_changeDetectorRef=(0,_.WQX)(P.gRc);_globalModel=(0,_.WQX)(Ot);_dateAdapter=(0,_.WQX)(R.MJ);_ngZone=(0,_.WQX)(T.SKi);_rangeSelectionStrategy=(0,_.WQX)(oi,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new C.B;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if((0,_.WQX)(yt.l).load(dt.Y),this._closeButtonText=(0,_.WQX)(Wt).closeCalendarLabel,!this._animationsDisabled){const Ce=this._elementRef.nativeElement,xt=(0,_.WQX)(T.sFG);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[xt.listen(Ce,"animationstart",this._handleAnimationEvent),xt.listen(Ce,"animationend",this._handleAnimationEvent),xt.listen(Ce,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(Ce=>Ce()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(Ce){const xt=this._model.selection,vt=Ce.value,rn=xt instanceof kt;if(rn&&this._rangeSelectionStrategy){const Wn=this._rangeSelectionStrategy.selectionFinished(vt,xt,Ce.event);this._model.updateSelection(Wn,this)}else vt&&(rn||!this._dateAdapter.sameDate(vt,xt))&&this._model.add(vt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(Ce){this._model.updateSelection(Ce.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=Ce=>{const xt=this._elementRef.nativeElement;Ce.target!==xt||!Ce.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating="animationstart"===Ce.type,xt.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(Ce,xt){this._model=Ce?this._globalModel.clone():this._globalModel,this._actionsPortal=Ce,xt&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-datepicker-content"]],viewQuery:function(xt,vt){if(1&xt&&T.GBs(aa,5),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt._calendar=rn.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(xt,vt){2&xt&&(T.HbH(vt.color?"mat-"+vt.color:""),T.AVh("mat-datepicker-content-touch",vt.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!vt._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(xt,vt){1&xt&&(T.j41(0,"div",0)(1,"mat-calendar",1),T.bIt("yearSelected",function(Wn){return vt.datepicker._selectYear(Wn)})("monthSelected",function(Wn){return vt.datepicker._selectMonth(Wn)})("viewChanged",function(Wn){return vt.datepicker._viewChanged(Wn)})("_userSelection",function(Wn){return vt._handleUserSelection(Wn)})("_userDragDrop",function(Wn){return vt._handleUserDragDrop(Wn)}),T.k0s(),T.DNE(2,Ne,0,0,"ng-template",2),T.j41(3,"button",3),T.bIt("focus",function(){return vt._closeButtonFocused=!0})("blur",function(){return vt._closeButtonFocused=!1})("click",function(){return vt.datepicker.close()}),T.EFF(4),T.k0s()()),2&xt&&(T.AVh("mat-datepicker-content-container-with-custom-header",vt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",vt._actionsPortal),T.BMQ("aria-modal",!0)("aria-labelledby",vt._dialogLabelId??void 0),T.R7$(),T.HbH(vt.datepicker.panelClass),T.Y8G("id",vt.datepicker.id)("startAt",vt.datepicker.startAt)("startView",vt.datepicker.startView)("minDate",vt.datepicker._getMinDate())("maxDate",vt.datepicker._getMaxDate())("dateFilter",vt.datepicker._getDateFilter())("headerComponent",vt.datepicker.calendarHeaderComponent)("selected",vt._getSelected())("dateClass",vt.datepicker.dateClass)("comparisonStart",vt.comparisonStart)("comparisonEnd",vt.comparisonEnd)("startDateAccessibleName",vt.startDateAccessibleName)("endDateAccessibleName",vt.endDateAccessibleName),T.R7$(),T.Y8G("cdkPortalOutlet",vt._actionsPortal),T.R7$(),T.AVh("cdk-visually-hidden",!vt._closeButtonFocused),T.Y8G("color",vt.color||"primary"),T.R7$(),T.JRh(vt._closeButtonText))},dependencies:[fe.kB,aa,oe.I3,rt.$z],styles:["@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.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}.mat-datepicker-content-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;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.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}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@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,changeDetection:0})}return mn})(),Ln=(()=>{class mn{_injector=(0,_.WQX)(_.zZn);_viewContainerRef=(0,_.WQX)(T.c1b);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_model=(0,_.WQX)(Ot);_animationsDisabled=(0,S.Rc)();_scrollStrategy=(0,_.WQX)(sa);_inputStateChanges=a.yU.EMPTY;_document=(0,_.WQX)(_.qQL);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Ce){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Ce){this._color=Ce}_color;touchUi=!1;get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Ce){Ce!==this._disabled&&(this._disabled=Ce,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new T.bkB;monthSelected=new T.bkB;viewChanged=new T.bkB(!0);dateClass;openedStream=new T.bkB;closedStream=new T.bkB;get panelClass(){return this._panelClass}set panelClass(Ce){this._panelClass=(0,Oe.cc)(Ce)}_panelClass;get opened(){return this._opened}set opened(Ce){Ce?this.open():this.close()}_opened=!1;id=(0,_.WQX)(re.g).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new C.B;_changeDetectorRef=(0,_.WQX)(P.gRc);constructor(){this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(Ce){const xt=Ce.xPosition||Ce.yPosition;if(xt&&!xt.firstChange&&this._overlayRef){const vt=this._overlayRef.getConfig().positionStrategy;vt instanceof Re.rW&&(this._setConnectedPositions(vt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(Ce){this._model.add(Ce)}_selectYear(Ce){this.yearSelected.emit(Ce)}_selectMonth(Ce){this.monthSelected.emit(Ce)}_viewChanged(Ce){this.viewChanged.emit(Ce)}registerInput(Ce){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Ce,this._inputStateChanges=Ce.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Ce){this._actionsPortal=Ce,this._componentRef?.instance._assignActions(Ce,!0)}removeActions(Ce){Ce===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,ve.vc)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const Ce=this.restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,xt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:vt,location:rn}=this._componentRef;vt._animationDone.pipe((0,nt.s)(1)).subscribe(()=>{const Wn=this._document.activeElement;Ce&&(!Wn||Wn===this._document.activeElement||rn.nativeElement.contains(Wn))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),vt._startExitAnimation()}Ce?setTimeout(xt):xt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(Ce){Ce.datepicker=this,Ce.color=this.color,Ce._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Ce._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Ce=this.touchUi,xt=new oe.A8(dn,this._viewContainerRef),vt=this._overlayRef=(0,Re.Y$)(this._injector,new Re.rR({positionStrategy:Ce?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Ce?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:Ce?(0,Re.gA)(this._injector):this._scrollStrategy(),panelClass:"mat-datepicker-"+(Ce?"dialog":"popup"),disableAnimations:this._animationsDisabled}));this._getCloseStream(vt).subscribe(rn=>{rn&&rn.preventDefault(),this.close()}),vt.keydownEvents().subscribe(rn=>{const Wn=rn.keyCode;(Wn===ce.i7||Wn===ce.n6||Wn===ce.UQ||Wn===ce.LE||Wn===ce.w_||Wn===ce.dB)&&rn.preventDefault()}),this._componentRef=vt.attach(xt),this._forwardContentValues(this._componentRef.instance),Ce||(0,T.mal)(()=>{vt.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return(0,Re.uA)(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){const Ce=(0,Re.$M)(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Ce)}_setConnectedPositions(Ce){const xt="end"===this.xPosition?"end":"start",vt="start"===xt?"end":"start",rn="above"===this.yPosition?"bottom":"top",Wn="top"===rn?"bottom":"top";return Ce.withPositions([{originX:xt,originY:Wn,overlayX:xt,overlayY:rn},{originX:xt,originY:rn,overlayX:xt,overlayY:Wn},{originX:vt,originY:Wn,overlayX:vt,overlayY:rn},{originX:vt,originY:rn,overlayX:vt,overlayY:Wn}])}_getCloseStream(Ce){const xt=["ctrlKey","shiftKey","metaKey"];return(0,x.h)(Ce.backdropClick(),Ce.detachments(),Ce.keydownEvents().pipe((0,Se.p)(vt=>vt.keyCode===ce._f&&!(0,ge.rp)(vt)||this.datepickerInput&&(0,ge.rp)(vt,"altKey")&&vt.keyCode===ce.i7&&xt.every(rn=>!(0,ge.rp)(vt,rn)))))}static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",P.L39],disabled:[2,"disabled","disabled",P.L39],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",P.L39],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",P.L39]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[T.OA$]})}return mn})(),Zn=(()=>{class mn extends Ln{static \u0275fac=(()=>{let Ce;return function(vt){return(Ce||(Ce=T.xGo(mn)))(vt||mn)}})();static \u0275cmp=T.VBU({type:mn,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[T.Jv_([Yt,{provide:Ln,useExisting:mn}]),T.Vt3],decls:0,vars:0,template:function(xt,vt){},encapsulation:2,changeDetection:0})}return mn})();class hi{target;targetElement;value;constructor(li,Ce){this.target=li,this.targetElement=Ce,this.value=this.target.value}}let Gn=(()=>{class mn{_elementRef=(0,_.WQX)(T.aKT);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dateFormats=(0,_.WQX)(R.de,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Ce){this._assignValueProgrammatically(Ce)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Ce){const xt=Ce,vt=this._elementRef.nativeElement;this._disabled!==xt&&(this._disabled=xt,this.stateChanges.next(void 0)),xt&&this._isInitialized&&vt.blur&&vt.blur()}_disabled;dateChange=new T.bkB;dateInput=new T.bkB;stateChanges=new C.B;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=a.yU.EMPTY;_localeSubscription=a.yU.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=Ce=>{const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce.value));return!xt||this._matchesFilter(xt)?null:{matDatepickerFilter:!0}};_minValidator=Ce=>{const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce.value)),vt=this._getMinDate();return!vt||!xt||this._dateAdapter.compareDate(vt,xt)<=0?null:{matDatepickerMin:{min:vt,actual:xt}}};_maxValidator=Ce=>{const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce.value)),vt=this._getMaxDate();return!vt||!xt||this._dateAdapter.compareDate(vt,xt)>=0?null:{matDatepickerMax:{max:vt,actual:xt}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Ce){this._model=Ce,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(xt=>{if(this._shouldHandleChangeEvent(xt)){const vt=this._getValueFromModel(xt.selection);this._lastValueValid=this._isValidValue(vt),this._cvaOnChange(vt),this._onTouched(),this._formatValue(vt),this.dateInput.emit(new hi(this,this._elementRef.nativeElement)),this.dateChange.emit(new hi(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Ce){(function Jn(mn,li){const Ce=Object.keys(mn);for(let xt of Ce){const{previousValue:vt,currentValue:rn}=mn[xt];if(!li.isDateInstance(vt)||!li.isDateInstance(rn))return!0;if(!li.sameDate(vt,rn))return!0}return!1})(Ce,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Ce){this._validatorOnChange=Ce}validate(Ce){return this._validator?this._validator(Ce):null}writeValue(Ce){this._assignValueProgrammatically(Ce)}registerOnChange(Ce){this._cvaOnChange=Ce}registerOnTouched(Ce){this._onTouched=Ce}setDisabledState(Ce){this.disabled=Ce}_onKeydown(Ce){(0,ge.rp)(Ce,"altKey")&&Ce.keyCode===ce.n6&&["ctrlKey","shiftKey","metaKey"].every(rn=>!(0,ge.rp)(Ce,rn))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Ce.preventDefault())}_onInput(Ce){const xt=Ce.target.value,vt=this._lastValueValid;let rn=this._dateAdapter.parse(xt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(rn),rn=this._dateAdapter.getValidDateOrNull(rn);const Wn=!this._dateAdapter.sameDate(rn,this.value);!rn||Wn?this._cvaOnChange(rn):(xt&&!this.value&&this._cvaOnChange(rn),vt!==this._lastValueValid&&this._validatorOnChange()),Wn&&(this._assignValue(rn),this.dateInput.emit(new hi(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new hi(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Ce){this._elementRef.nativeElement.value=null!=Ce?this._dateAdapter.format(Ce,this._dateFormats.display.dateInput):""}_assignValue(Ce){this._model?(this._assignValueToModel(Ce),this._pendingValue=null):this._pendingValue=Ce}_isValidValue(Ce){return!Ce||this._dateAdapter.isValid(Ce)}_parentDisabled(){return!1}_assignValueProgrammatically(Ce){Ce=this._dateAdapter.deserialize(Ce),this._lastValueValid=this._isValidValue(Ce),Ce=this._dateAdapter.getValidDateOrNull(Ce),this._assignValue(Ce),this._formatValue(Ce)}_matchesFilter(Ce){const xt=this._getDateFilter();return!xt||xt(Ce)}static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,inputs:{value:"value",disabled:[2,"disabled","disabled",P.L39]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[T.OA$]})}return mn})();const Bi={provide:Xt.kq,useExisting:(0,_.Rfq)(()=>Sa),multi:!0},_a={provide:Xt.cz,useExisting:(0,_.Rfq)(()=>Sa),multi:!0};let Sa=(()=>{class mn extends Gn{_formField=(0,_.WQX)(ae.xb,{optional:!0});_closedSubscription=a.yU.EMPTY;_openedSubscription=a.yU.EMPTY;set matDatepicker(Ce){Ce&&(this._datepicker=Ce,this._ariaOwns.set(Ce.opened?Ce.id:null),this._closedSubscription=Ce.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=Ce.openedStream.subscribe(()=>{this._ariaOwns.set(Ce.id)}),this._registerModel(Ce.registerInput(this)))}_datepicker;_ariaOwns=(0,_.vPA)(null);get min(){return this._min}set min(Ce){const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce));this._dateAdapter.sameDate(xt,this._min)||(this._min=xt,this._validatorOnChange())}_min;get max(){return this._max}set max(Ce){const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce));this._dateAdapter.sameDate(xt,this._max)||(this._max=xt,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(Ce){const xt=this._matchesFilter(this.value);this._dateFilter=Ce,this._matchesFilter(this.value)!==xt&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Xt.k0.compose(super._getValidators())}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(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(Ce){return Ce}_assignValueToModel(Ce){this._model&&this._model.updateSelection(Ce,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Ce){return Ce.source!==this}static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(xt,vt){1&xt&&T.bIt("input",function(Wn){return vt._onInput(Wn)})("change",function(){return vt._onChange()})("blur",function(){return vt._onBlur()})("keydown",function(Wn){return vt._onKeydown(Wn)}),2&xt&&(T.Avn("disabled",vt.disabled),T.BMQ("aria-haspopup",vt._datepicker?"dialog":null)("aria-owns",vt._ariaOwns())("min",vt.min?vt._dateAdapter.toIso8601(vt.min):null)("max",vt.max?vt._dateAdapter.toIso8601(vt.max):null)("data-mat-calendar",vt._datepicker?vt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[T.Jv_([Bi,_a,{provide:de.O,useExisting:mn}]),T.Vt3]})}return mn})(),un=(()=>{class mn{static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,selectors:[["","matDatepickerToggleIcon",""]]})}return mn})(),Sn=(()=>{class mn{_intl=(0,_.WQX)(Wt);_changeDetectorRef=(0,_.WQX)(P.gRc);_stateChanges=a.yU.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Ce){this._disabled=Ce}_disabled;disableRipple;_customIcon;_button;constructor(){const Ce=(0,_.WQX)(new P.ES_("tabindex"),{optional:!0}),xt=Number(Ce);this.tabIndex=xt||0===xt?xt:null}ngOnChanges(Ce){Ce.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Ce){this.datepicker&&!this.disabled&&(this.datepicker.open(),Ce.stopPropagation())}_watchStateChanges(){const Ce=this.datepicker?this.datepicker.stateChanges:(0,Y.of)(),xt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Y.of)(),vt=this.datepicker?(0,x.h)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Y.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,x.h)(this._intl.changes,Ce,xt,vt).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-datepicker-toggle"]],contentQueries:function(xt,vt,rn){if(1&xt&&T.wni(rn,un,5),2&xt){let Wn;T.mGM(Wn=T.lsd())&&(vt._customIcon=Wn.first)}},viewQuery:function(xt,vt){if(1&xt&&T.GBs(ze,5),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt._button=rn.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(xt,vt){1&xt&&T.bIt("click",function(Wn){return vt._open(Wn)}),2&xt&&(T.BMQ("tabindex",null)("data-mat-calendar",vt.datepicker?vt.datepicker.id:null),T.AVh("mat-datepicker-toggle-active",vt.datepicker&&vt.datepicker.opened)("mat-accent",vt.datepicker&&"accent"===vt.datepicker.color)("mat-warn",vt.datepicker&&"warn"===vt.datepicker.color))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",P.L39],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[T.OA$],ngContentSelectors:gt,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",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(xt,vt){1&xt&&(T.NAR(Je),T.j41(0,"button",1,0),T.nVh(2,zt,2,0,":svg:svg",2),T.SdG(3),T.k0s()),2&xt&&(T.Y8G("tabIndex",vt.disabled?-1:vt.tabIndex)("disabled",vt.disabled)("disableRipple",vt.disableRipple),T.BMQ("aria-haspopup",vt.datepicker?"dialog":null)("aria-label",vt.ariaLabel||vt._intl.openCalendarLabel)("aria-expanded",vt.datepicker?vt.datepicker.opened:null),T.R7$(2),T.vxM(vt._customIcon?-1:2))},dependencies:[Mn.iY],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}\n"],encapsulation:2,changeDetection:0})}return mn})(),Oi=(()=>{class mn{static \u0275fac=function(xt){return new(xt||mn)};static \u0275mod=T.$C({type:mn});static \u0275inj=_.G2t({providers:[Wt,ua],imports:[rt.Hl,Re.z_,fe.Pd,oe.jc,Le.y,dn,Sn,Xn,me.Gj]})}return mn})()},51585(ke,q,l){"use strict";l.d(q,{Vh:()=>ve,di:()=>oe,bZ:()=>be,tx:()=>nt,hM:()=>qt,CP:()=>Re});var i=l(73664),g=l(2615),p=l(17705),D=l(21413),o=l(59030),e=l(76939),A=l(17094),h=l(76838),d=l(39842),w=l(44522),f=l(10438),F=l(67336),M=l(99172),K=l(96697),j=l(49338),Z=l(89726),ee=l(61577);function V(S,Xt){}class Q{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext}let ie=(()=>{class S extends e.lb{_elementRef=(0,g.WQX)(i.aKT);_focusTrapFactory=(0,g.WQX)(A.GX);_config;_interactivityChecker=(0,g.WQX)(A.Z7);_ngZone=(0,g.WQX)(i.SKi);_focusMonitor=(0,g.WQX)(h.FN);_renderer=(0,g.WQX)(i.sFG);_changeDetectorRef=(0,g.WQX)(p.gRc);_injector=(0,g.WQX)(g.zZn);_platform=(0,g.WQX)(d.O);_document=(0,g.WQX)(g.qQL);_portalOutlet;_focusTrapped=new D.B;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=(0,g.WQX)(Q,{optional:!0})||new Q,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(de){this._ariaLabelledByQueue.push(de),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(de){const ae=this._ariaLabelledByQueue.indexOf(de);ae>-1&&(this._ariaLabelledByQueue.splice(ae,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(de){this._portalOutlet.hasAttached();const ae=this._portalOutlet.attachComponentPortal(de);return this._contentAttached(),ae}attachTemplatePortal(de){this._portalOutlet.hasAttached();const ae=this._portalOutlet.attachTemplatePortal(de);return this._contentAttached(),ae}attachDomPortal=de=>{this._portalOutlet.hasAttached();const ae=this._portalOutlet.attachDomPortal(de);return this._contentAttached(),ae};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(de,ae){this._interactivityChecker.isFocusable(de)||(de.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const me=()=>{Le(),et(),de.removeAttribute("tabindex")},Le=this._renderer.listen(de,"blur",me),et=this._renderer.listen(de,"mousedown",me)})),de.focus(ae)}_focusByCssSelector(de,ae){let me=this._elementRef.nativeElement.querySelector(de);me&&this._forceFocus(me,ae)}_trapFocus(de){this._isDestroyed||(0,i.mal)(()=>{const ae=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ae.focus(de);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(de)||this._focusDialogContainer(de);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',de);break;default:this._focusByCssSelector(this._config.autoFocus,de)}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){const de=this._config.restoreFocus;let ae=null;if("string"==typeof de?ae=this._document.querySelector(de):"boolean"==typeof de?ae=de?this._elementFocusedBeforeDialogWasOpened:null:de&&(ae=de),this._config.restoreFocus&&ae&&"function"==typeof ae.focus){const me=(0,w.vc)(),Le=this._elementRef.nativeElement;(!me||me===this._document.body||me===Le||Le.contains(me))&&(this._focusMonitor?(this._focusMonitor.focusVia(ae,this._closeInteractionType),this._closeInteractionType=null):ae.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(de){this._elementRef.nativeElement.focus?.(de)}_containsFocus(){const de=this._elementRef.nativeElement,ae=(0,w.vc)();return de===ae||de.contains(ae)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,w.vc)()))}static \u0275fac=function(ae){return new(ae||S)};static \u0275cmp=i.VBU({type:S,selectors:[["cdk-dialog-container"]],viewQuery:function(ae,me){if(1&ae&&i.GBs(e.I3,7),2&ae){let Le;i.mGM(Le=i.lsd())&&(me._portalOutlet=Le.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(ae,me){2&ae&&i.BMQ("id",me._config.id||null)("role",me._config.role)("aria-modal",me._config.ariaModal)("aria-labelledby",me._config.ariaLabel?null:me._ariaLabelledByQueue[0])("aria-label",me._config.ariaLabel)("aria-describedby",me._config.ariaDescribedBy||null)},features:[i.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ae,me){1&ae&&i.DNE(0,V,0,0,"ng-template",0)},dependencies:[e.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2})}return S})();class _e{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new D.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(Xt,de){this.overlayRef=Xt,this.config=de,this.disableClose=de.disableClose,this.backdropClick=Xt.backdropClick(),this.keydownEvents=Xt.keydownEvents(),this.outsidePointerEvents=Xt.outsidePointerEvents(),this.id=de.id,this.keydownEvents.subscribe(ae=>{ae.keyCode===f._f&&!this.disableClose&&!(0,F.rp)(ae)&&(ae.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=Xt.detachments().subscribe(()=>{!1!==de.closeOnOverlayDetachments&&this.close()})}close(Xt,de){if(this._canClose(Xt)){const ae=this.closed;this.containerInstance._closeInteractionType=de?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),ae.next(Xt),ae.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Xt="",de=""){return this.overlayRef.updateSize({width:Xt,height:de}),this}addPanelClass(Xt){return this.overlayRef.addPanelClass(Xt),this}removePanelClass(Xt){return this.overlayRef.removePanelClass(Xt),this}_canClose(Xt){const de=this.config;return!!this.containerInstance&&(!de.closePredicate||de.closePredicate(Xt,de,this.componentInstance))}}const ye=new g.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const S=(0,g.WQX)(g.zZn);return()=>(0,j.gA)(S)}}),se=new g.nKC("DialogData"),pe=new g.nKC("DefaultDialogConfig");function Ee(S){const Xt=(0,g.vPA)(S),de=new i.bkB;return{valueSignal:Xt,get value(){return Xt()},change:de,ngOnDestroy(){de.complete()}}}let L=(()=>{class S{_injector=(0,g.WQX)(g.zZn);_defaultOptions=(0,g.WQX)(pe,{optional:!0});_parentDialog=(0,g.WQX)(S,{optional:!0,skipSelf:!0});_overlayContainer=(0,g.WQX)(j.Sf);_idGenerator=(0,g.WQX)(Z.g);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new D.B;_afterOpenedAtThisLevel=new D.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,g.WQX)(ye);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,o.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.Z)(void 0)));constructor(){}open(de,ae){(ae={...this._defaultOptions||new Q,...ae}).id=ae.id||this._idGenerator.getId("cdk-dialog-"),ae.id&&this.getDialogById(ae.id);const Le=this._getOverlayConfig(ae),et=(0,j.Y$)(this._injector,Le),tn=new _e(et,ae),Vt=this._attachContainer(et,tn,ae);if(tn.containerInstance=Vt,!this.openDialogs.length){const hn=this._overlayContainer.getContainerElement();Vt._focusTrapped?Vt._focusTrapped.pipe((0,K.s)(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(hn)}):this._hideNonDialogContentFromAssistiveTechnology(hn)}return this._attachDialogContent(de,tn,Vt,ae),this.openDialogs.push(tn),tn.closed.subscribe(()=>this._removeOpenDialog(tn,!0)),this.afterOpened.next(tn),tn}closeAll(){t(this.openDialogs,de=>de.close())}getDialogById(de){return this.openDialogs.find(ae=>ae.id===de)}ngOnDestroy(){t(this._openDialogsAtThisLevel,de=>{!1===de.config.closeOnDestroy&&this._removeOpenDialog(de,!1)}),t(this._openDialogsAtThisLevel,de=>de.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(de){const ae=new j.rR({positionStrategy:de.positionStrategy||(0,j.uA)().centerHorizontally().centerVertically(),scrollStrategy:de.scrollStrategy||this._scrollStrategy(),panelClass:de.panelClass,hasBackdrop:de.hasBackdrop,direction:de.direction,minWidth:de.minWidth,minHeight:de.minHeight,maxWidth:de.maxWidth,maxHeight:de.maxHeight,width:de.width,height:de.height,disposeOnNavigation:de.closeOnNavigation,disableAnimations:de.disableAnimations});return de.backdropClass&&(ae.backdropClass=de.backdropClass),ae}_attachContainer(de,ae,me){const Le=me.injector||me.viewContainerRef?.injector,et=[{provide:Q,useValue:me},{provide:_e,useValue:ae},{provide:j.yY,useValue:de}];let tn;me.container?"function"==typeof me.container?tn=me.container:(tn=me.container.type,et.push(...me.container.providers(me))):tn=ie;const Vt=new e.A8(tn,me.viewContainerRef,g.zZn.create({parent:Le||this._injector,providers:et}));return de.attach(Vt).instance}_attachDialogContent(de,ae,me,Le){if(de instanceof i.C4Q){const et=this._createInjector(Le,ae,me,void 0);let tn={$implicit:Le.data,dialogRef:ae};Le.templateContext&&(tn={...tn,..."function"==typeof Le.templateContext?Le.templateContext():Le.templateContext}),me.attachTemplatePortal(new e.VA(de,null,tn,et))}else{const et=this._createInjector(Le,ae,me,this._injector),tn=me.attachComponentPortal(new e.A8(de,Le.viewContainerRef,et));ae.componentRef=tn,ae.componentInstance=tn.instance}}_createInjector(de,ae,me,Le){const et=de.injector||de.viewContainerRef?.injector,tn=[{provide:se,useValue:de.data},{provide:_e,useValue:ae}];return de.providers&&("function"==typeof de.providers?tn.push(...de.providers(ae,de,me)):tn.push(...de.providers)),de.direction&&(!et||!et.get(ee.dS,null,{optional:!0}))&&tn.push({provide:ee.dS,useValue:Ee(de.direction)}),g.zZn.create({parent:et||Le,providers:tn})}_removeOpenDialog(de,ae){const me=this.openDialogs.indexOf(de);me>-1&&(this.openDialogs.splice(me,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Le,et)=>{Le?et.setAttribute("aria-hidden",Le):et.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),ae&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(de){if(de.parentElement){const ae=de.parentElement.children;for(let me=ae.length-1;me>-1;me--){const Le=ae[me];Le!==de&&"SCRIPT"!==Le.nodeName&&"STYLE"!==Le.nodeName&&!Le.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Le,Le.getAttribute("aria-hidden")),Le.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const de=this._parentDialog;return de?de._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(ae){return new(ae||S)};static \u0275prov=g.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();function t(S,Xt){let de=S.length;for(;de--;)Xt(S[de])}let s=(()=>{class S{static \u0275fac=function(ae){return new(ae||S)};static \u0275mod=i.$C({type:S});static \u0275inj=g.G2t({providers:[L],imports:[j.z_,e.jc,A.Pd,e.jc]})}return S})();var m=l(67847),u=l(31804),_=l(57786),T=l(5964),C=(l(5718),l(22466));function a(S,Xt){}class x{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration}const Y="mdc-dialog--open",R="mdc-dialog--opening",U="mdc-dialog--closing";let he=(()=>{class S extends ie{_animationStateChanged=new i.bkB;_animationsEnabled=!(0,u.Rc)();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?ge(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?ge(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Oe,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(R,Y)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Y),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Y),this._animationsEnabled?(this._hostElement.style.setProperty(Oe,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(U)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(de){this._actionSectionCount+=de,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(R,U)}_waitForAnimationToComplete(de,ae){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(ae,de)}_requestAnimationFrame(de){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(de):de()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(de){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:de})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(de){const ae=super.attachComponentPortal(de);return ae.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),ae}static \u0275fac=(()=>{let de;return function(me){return(de||(de=i.xGo(S)))(me||S)}})();static \u0275cmp=i.VBU({type:S,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(ae,me){2&ae&&(i.Avn("id",me._config.id),i.BMQ("aria-modal",me._config.ariaModal)("role",me._config.role)("aria-labelledby",me._config.ariaLabel?null:me._ariaLabelledByQueue[0])("aria-label",me._config.ariaLabel)("aria-describedby",me._config.ariaDescribedBy||null),i.AVh("_mat-animation-noopable",!me._animationsEnabled)("mat-mdc-dialog-container-with-actions",me._actionSectionCount>0))},features:[i.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(ae,me){1&ae&&(i.j41(0,"div",0)(1,"div",1),i.DNE(2,a,0,0,"ng-template",2),i.k0s()())},dependencies:[e.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}\n'],encapsulation:2})}return S})();const Oe="--mat-dialog-transition-duration";function ge(S){return null==S?null:"number"==typeof S?S:S.endsWith("ms")?(0,m.OE)(S.substring(0,S.length-2)):S.endsWith("s")?1e3*(0,m.OE)(S.substring(0,S.length-1)):"0"===S?0:null}var ce=function(S){return S[S.OPEN=0]="OPEN",S[S.CLOSING=1]="CLOSING",S[S.CLOSED=2]="CLOSED",S}(ce||{});class Re{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new D.B;_beforeClosed=new D.B;_result;_closeFallbackTimeout;_state=ce.OPEN;_closeInteractionType;constructor(Xt,de,ae){this._ref=Xt,this._config=de,this._containerInstance=ae,this.disableClose=de.disableClose,this.id=Xt.id,Xt.addPanelClass("mat-mdc-dialog-panel"),ae._animationStateChanged.pipe((0,T.p)(me=>"opened"===me.state),(0,K.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ae._animationStateChanged.pipe((0,T.p)(me=>"closed"===me.state),(0,K.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Xt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,_.h)(this.backdropClick(),this.keydownEvents().pipe((0,T.p)(me=>me.keyCode===f._f&&!this.disableClose&&!(0,F.rp)(me)))).subscribe(me=>{this.disableClose||(me.preventDefault(),Me(this,"keydown"===me.type?"keyboard":"mouse"))})}close(Xt){const de=this._config.closePredicate;de&&!de(Xt,this._config,this.componentInstance)||(this._result=Xt,this._containerInstance._animationStateChanged.pipe((0,T.p)(ae=>"closing"===ae.state),(0,K.s)(1)).subscribe(ae=>{this._beforeClosed.next(Xt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ae.totalTime+100)}),this._state=ce.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Xt){let de=this._ref.config.positionStrategy;return Xt&&(Xt.left||Xt.right)?Xt.left?de.left(Xt.left):de.right(Xt.right):de.centerHorizontally(),Xt&&(Xt.top||Xt.bottom)?Xt.top?de.top(Xt.top):de.bottom(Xt.bottom):de.centerVertically(),this._ref.updatePosition(),this}updateSize(Xt="",de=""){return this._ref.updateSize(Xt,de),this}addPanelClass(Xt){return this._ref.addPanelClass(Xt),this}removePanelClass(Xt){return this._ref.removePanelClass(Xt),this}getState(){return this._state}_finishDialogClose(){this._state=ce.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Me(S,Xt,de){return S._closeInteractionType=Xt,S.close(de)}const ve=new g.nKC("MatMdcDialogData"),oe=new g.nKC("mat-mdc-dialog-default-options"),Se=new g.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const S=(0,g.WQX)(g.zZn);return()=>(0,j.gA)(S)}});let be=(()=>{class S{_defaultOptions=(0,g.WQX)(oe,{optional:!0});_scrollStrategy=(0,g.WQX)(Se);_parentDialog=(0,g.WQX)(S,{optional:!0,skipSelf:!0});_idGenerator=(0,g.WQX)(Z.g);_injector=(0,g.WQX)(g.zZn);_dialog=(0,g.WQX)(L);_animationsDisabled=(0,u.Rc)();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new D.B;_afterOpenedAtThisLevel=new D.B;dialogConfigClass=x;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const de=this._parentDialog;return de?de._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,o.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.Z)(void 0)));constructor(){this._dialogRefConstructor=Re,this._dialogContainerType=he,this._dialogDataToken=ve}open(de,ae){let me;(ae={...this._defaultOptions||new x,...ae}).id=ae.id||this._idGenerator.getId("mat-mdc-dialog-"),ae.scrollStrategy=ae.scrollStrategy||this._scrollStrategy();const Le=this._dialog.open(de,{...ae,positionStrategy:(0,j.uA)(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||"0"===ae.enterAnimationDuration?.toLocaleString()||"0"===ae.exitAnimationDuration?.toString(),container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:ae},{provide:Q,useValue:ae}]},templateContext:()=>({dialogRef:me}),providers:(et,tn,Vt)=>(me=new this._dialogRefConstructor(et,ae,Vt),me.updatePosition(ae?.position),[{provide:this._dialogContainerType,useValue:Vt},{provide:this._dialogDataToken,useValue:tn.data},{provide:this._dialogRefConstructor,useValue:me}])});return me.componentRef=Le.componentRef,me.componentInstance=Le.componentInstance,this.openDialogs.push(me),this.afterOpened.next(me),me.afterClosed().subscribe(()=>{const et=this.openDialogs.indexOf(me);et>-1&&(this.openDialogs.splice(et,1),this.openDialogs.length||this._getAfterAllClosed().next())}),me}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(de){return this.openDialogs.find(ae=>ae.id===de)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(de){let ae=de.length;for(;ae--;)de[ae].close()}static \u0275fac=function(ae){return new(ae||S)};static \u0275prov=g.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),nt=(()=>{class S{dialogRef=(0,g.WQX)(Re,{optional:!0});_elementRef=(0,g.WQX)(i.aKT);_dialog=(0,g.WQX)(be);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=function rt(S,Xt){let de=S.nativeElement.parentElement;for(;de&&!de.classList.contains("mat-mdc-dialog-container");)de=de.parentElement;return de?Xt.find(ae=>ae.id===de.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(de){const ae=de._matDialogClose||de._matDialogCloseResult;ae&&(this.dialogResult=ae.currentValue)}_onButtonClick(de){Me(this.dialogRef,0===de.screenX&&0===de.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(ae){return new(ae||S)};static \u0275dir=i.FsC({type:S,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ae,me){1&ae&&i.bIt("click",function(et){return me._onButtonClick(et)}),2&ae&&i.BMQ("aria-label",me.ariaLabel||null)("type",me.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[i.OA$]})}return S})();let qt=(()=>{class S{static \u0275fac=function(ae){return new(ae||S)};static \u0275mod=i.$C({type:S});static \u0275inj=g.G2t({providers:[be],imports:[s,j.z_,e.jc,C.y,C.y]})}return S})()},71997(ke,q,l){"use strict";l.d(q,{q:()=>o,w:()=>e});var i=l(2615),g=l(73664),p=l(14085),D=l(22466);let o=(()=>{class A{get vertical(){return this._vertical}set vertical(d){this._vertical=(0,p.he)(d)}_vertical=!1;get inset(){return this._inset}set inset(d){this._inset=(0,p.he)(d)}_inset=!1;static \u0275fac=function(w){return new(w||A)};static \u0275cmp=g.VBU({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(w,f){2&w&&(g.BMQ("aria-orientation",f.vertical?"vertical":"horizontal"),g.AVh("mat-divider-vertical",f.vertical)("mat-divider-horizontal",!f.vertical)("mat-divider-inset",f.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(w,f){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0})}return A})(),e=(()=>{class A{static \u0275fac=function(w){return new(w||A)};static \u0275mod=g.$C({type:A});static \u0275inj=i.G2t({imports:[D.y,D.y]})}return A})()},2709(ke,q,l){"use strict";l.d(q,{e:()=>D});var g=l(2615);let D=(()=>{class o{isErrorState(A,h){return!!(A&&A.invalid&&(A.touched||h&&h.submitted))}static \u0275fac=function(h){return new(h||o)};static \u0275prov=g.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},39336(ke,q,l){"use strict";l.d(q,{X:()=>i});class i{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(p,D,o,e,A){this._defaultMatcher=p,this.ngControl=D,this._parentFormGroup=o,this._parentForm=e,this._stateChanges=A}updateErrorState(){const p=this.errorState,D=this._parentFormGroup||this._parentForm,o=this.matcher||this._defaultMatcher,e=this.ngControl?this.ngControl.control:null,A=o?.isErrorState(e,D)??!1;A!==p&&(this.errorState=A,this._stateChanges.next())}}},9454(ke,q,l){"use strict";l.d(q,{BS:()=>Oe,MY:()=>ge,GK:()=>R,Q6:()=>re,Z2:()=>fe,WN:()=>he});var i=l(73664),g=l(2615),p=l(17705),D=l(21413),o=l(18359),e=l(89726),A=l(18689);const h=new g.nKC("CdkAccordion");let d=(()=>{class Me{_stateChanges=new D.B;_openCloseAllActions=new D.B;id=(0,g.WQX)(e.g).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(oe){this._stateChanges.next(oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",p.L39]},exportAs:["cdkAccordion"],features:[i.Jv_([{provide:h,useExisting:Me}]),i.OA$]})}return Me})(),w=(()=>{class Me{accordion=(0,g.WQX)(h,{optional:!0,skipSelf:!0});_changeDetectorRef=(0,g.WQX)(p.gRc);_expansionDispatcher=(0,g.WQX)(A.z);_openCloseAllSubscription=o.yU.EMPTY;closed=new i.bkB;opened=new i.bkB;destroyed=new i.bkB;expandedChange=new i.bkB;id=(0,g.WQX)(e.g).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(oe){this._expanded!==oe&&(this._expanded=oe,this.expandedChange.emit(oe),oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}_expanded=!1;get disabled(){return this._disabled()}set disabled(oe){this._disabled.set(oe)}_disabled=(0,g.vPA)(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((oe,Se)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Se&&this.id!==oe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}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(oe=>{this.disabled||(this.expanded=oe)})}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",p.L39],disabled:[2,"disabled","disabled",p.L39]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Jv_([{provide:h,useValue:void 0}])]})}return Me})(),f=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=i.$C({type:Me});static \u0275inj=g.G2t({})}return Me})();var F=l(76939),M=l(76838),K=l(64123),j=l(99172),Z=l(5964),ee=l(96697),V=l(10438),Q=l(67336),$=l(983),ie=l(57786),_e=l(31804),ye=l(88968),se=l(32046),pe=l(22466);const L=["body"],t=["bodyWrapper"],s=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],m=["mat-expansion-panel-header","*","mat-action-row"];function u(Me,ve){}const _=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],T=["mat-panel-title","mat-panel-description","*"];function P(Me,ve){1&Me&&(i.rj2(0,"span",1),g.qSk(),i.rj2(1,"svg",2),i.Hgh(2,"path",3),i.eux()())}const C=new g.nKC("MAT_ACCORDION"),a=new g.nKC("MAT_EXPANSION_PANEL");let x=(()=>{class Me{_template=(0,g.WQX)(i.C4Q);_expansionPanel=(0,g.WQX)(a,{optional:!0});constructor(){}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["ng-template","matExpansionPanelContent",""]]})}return Me})();const Y=new g.nKC("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let R=(()=>{class Me extends w{_viewContainerRef=(0,g.WQX)(i.c1b);_animationsDisabled=(0,_e.Rc)();_document=(0,g.WQX)(g.qQL);_ngZone=(0,g.WQX)(i.SKi);_elementRef=(0,g.WQX)(i.aKT);_renderer=(0,g.WQX)(i.sFG);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(oe){this._hideToggle=oe}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(oe){this._togglePosition=oe}_togglePosition;afterExpand=new i.bkB;afterCollapse=new i.bkB;_inputChanges=new D.B;accordion=(0,g.WQX)(C,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=(0,g.WQX)(e.g).getId("mat-expansion-panel-header-");constructor(){super();const oe=(0,g.WQX)(Y,{optional:!0});this._expansionDispatcher=(0,g.WQX)(A.z),oe&&(this.hideToggle=oe.hideToggle)}_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._lazyContent._expansionPanel===this&&this.opened.pipe((0,j.Z)(null),(0,Z.p)(()=>this.expanded&&!this._portal),(0,ee.s)(1)).subscribe(()=>{this._portal=new F.VA(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(oe){this._inputChanges.next(oe)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){const oe=this._document.activeElement,Se=this._body.nativeElement;return oe===Se||Se.contains(oe)}return!1}_transitionEndListener=({target:oe,propertyName:Se})=>{oe===this._bodyWrapper?.nativeElement&&"grid-template-rows"===Se&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{const oe=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(oe,"transitionend",this._transitionEndListener),oe.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=i.VBU({type:Me,selectors:[["mat-expansion-panel"]],contentQueries:function(Se,be,nt){if(1&Se&&i.wni(nt,x,5),2&Se){let $e;i.mGM($e=i.lsd())&&(be._lazyContent=$e.first)}},viewQuery:function(Se,be){if(1&Se&&(i.GBs(L,5),i.GBs(t,5)),2&Se){let nt;i.mGM(nt=i.lsd())&&(be._body=nt.first),i.mGM(nt=i.lsd())&&(be._bodyWrapper=nt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(Se,be){2&Se&&i.AVh("mat-expanded",be.expanded)("mat-expansion-panel-spacing",be._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",p.L39],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Jv_([{provide:C,useValue:void 0},{provide:a,useExisting:Me}]),i.Vt3,i.OA$],ngContentSelectors:m,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Se,be){1&Se&&(i.NAR(s),i.SdG(0),i.j41(1,"div",2,0)(3,"div",3,1)(5,"div",4),i.SdG(6,1),i.DNE(7,u,0,0,"ng-template",5),i.k0s(),i.SdG(8,2),i.k0s()()),2&Se&&(i.R7$(),i.BMQ("inert",be.expanded?null:""),i.R7$(2),i.Y8G("id",be.id),i.BMQ("aria-labelledby",be._headerId),i.R7$(4),i.Y8G("cdkPortalOutlet",be._portal))},dependencies:[F.I3],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-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:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.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,changeDetection:0})}return Me})(),fe=(()=>{class Me{panel=(0,g.WQX)(R,{host:!0});_element=(0,g.WQX)(i.aKT);_focusMonitor=(0,g.WQX)(M.FN);_changeDetectorRef=(0,g.WQX)(p.gRc);_parentChangeSubscription=o.yU.EMPTY;constructor(){(0,g.WQX)(ye.l).load(se.A);const oe=this.panel,Se=(0,g.WQX)(Y,{optional:!0}),be=(0,g.WQX)(new p.ES_("tabindex"),{optional:!0}),nt=oe.accordion?oe.accordion._stateChanges.pipe((0,Z.p)($e=>!(!$e.hideToggle&&!$e.togglePosition))):$.w;this.tabIndex=parseInt(be||"")||0,this._parentChangeSubscription=(0,ie.h)(oe.opened,oe.closed,nt,oe._inputChanges.pipe((0,Z.p)($e=>!!($e.hideToggle||$e.disabled||$e.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),oe.closed.pipe((0,Z.p)(()=>oe._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),Se&&(this.expandedHeight=Se.expandedHeight,this.collapsedHeight=Se.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;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 oe=this._isExpanded();return oe&&this.expandedHeight?this.expandedHeight:!oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(oe){switch(oe.keyCode){case V.t6:case V.Fm:(0,Q.rp)(oe)||(oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(oe))}}focus(oe,Se){oe?this._focusMonitor.focusVia(this._element,oe,Se):this._element.nativeElement.focus(Se)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(oe=>{oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=i.VBU({type:Me,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(Se,be){1&Se&&i.bIt("click",function(){return be._toggle()})("keydown",function($e){return be._keydown($e)}),2&Se&&(i.BMQ("id",be.panel._headerId)("tabindex",be.disabled?-1:be.tabIndex)("aria-controls",be._getPanelId())("aria-expanded",be._isExpanded())("aria-disabled",be.panel.disabled),i.xc7("height",be._getHeaderHeight()),i.AVh("mat-expanded",be._isExpanded())("mat-expansion-toggle-indicator-after","after"===be._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===be._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",oe=>null==oe?0:(0,p.Udg)(oe)]},ngContentSelectors:T,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(Se,be){1&Se&&(i.NAR(_),i.rj2(0,"span",0),i.SdG(1),i.SdG(2,1),i.SdG(3,2),i.eux(),i.nVh(4,P,3,0,"span",1)),2&Se&&(i.AVh("mat-content-hide-toggle",!be._showToggle()),i.R7$(4),i.vxM(be._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.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.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-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;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[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}\n'],encapsulation:2,changeDetection:0})}return Me})(),re=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return Me})(),he=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return Me})(),Oe=(()=>{class Me extends d{_keyManager;_ownHeaders=new i.rOR;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe((0,j.Z)(this._headers)).subscribe(oe=>{this._ownHeaders.reset(oe.filter(Se=>Se.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new K.B(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(oe){this._keyManager.onKeydown(oe)}_handleHeaderFocus(oe){this._keyManager.updateActiveItem(oe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=i.xGo(Me)))(be||Me)}})();static \u0275dir=i.FsC({type:Me,selectors:[["mat-accordion"]],contentQueries:function(Se,be,nt){if(1&Se&&i.wni(nt,fe,5),2&Se){let $e;i.mGM($e=i.lsd())&&(be._headers=$e)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Se,be){2&Se&&i.AVh("mat-accordion-multi",be.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",p.L39],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i.Jv_([{provide:C,useExisting:Me}]),i.Vt3]})}return Me})(),ge=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=i.$C({type:Me});static \u0275inj=g.G2t({imports:[pe.y,f,F.jc]})}return Me})()},71228(ke,q,l){"use strict";l.d(q,{R:()=>e});var i=l(72318),g=l(2615),p=l(73664),D=l(69588),o=l(22466);let e=(()=>{class A{static \u0275fac=function(w){return new(w||A)};static \u0275mod=p.$C({type:A});static \u0275inj=g.G2t({imports:[o.y,i.w5,D.rl,o.y]})}return A})()},69588(ke,q,l){"use strict";l.d(q,{xb:()=>Vt,TL:()=>be,rl:()=>Pe,qT:()=>me,MV:()=>nt,nJ:()=>oe,yw:()=>Et});var i=l(89726),g=l(61577),p=l(14085),D=l(39842),o=l(72200),e=l(73664),A=l(2615),h=l(17705),d=l(59295),w=l(18359),f=l(21413),F=l(57786),M=l(99172),K=l(96354),j=l(39974),Z=l(54360),V=l(5964),Q=l(56977),$=l(63610),ie=l(31804);const ye=["notch"],se=["matFormFieldNotchedOutline",""],pe=["*"],Ee=["iconPrefixContainer"],L=["textPrefixContainer"],t=["iconSuffixContainer"],s=["textSuffixContainer"],m=["textField"],u=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function T(Ue,Qe){1&Ue&&e.nrm(0,"span",21)}function P(Ue,Qe){if(1&Ue&&(e.j41(0,"label",20),e.SdG(1,1),e.nVh(2,T,1,0,"span",21),e.k0s()),2&Ue){const Ie=e.XpG(2);e.Y8G("floating",Ie._shouldLabelFloat())("monitorResize",Ie._hasOutline())("id",Ie._labelId),e.BMQ("for",Ie._control.disableAutomaticLabeling?null:Ie._control.id),e.R7$(2),e.vxM(!Ie.hideRequiredMarker&&Ie._control.required?2:-1)}}function C(Ue,Qe){if(1&Ue&&e.nVh(0,P,3,5,"label",20),2&Ue){const Ie=e.XpG();e.vxM(Ie._hasFloatingLabel()?0:-1)}}function a(Ue,Qe){1&Ue&&e.nrm(0,"div",7)}function x(Ue,Qe){}function Y(Ue,Qe){if(1&Ue&&e.DNE(0,x,0,0,"ng-template",13),2&Ue){e.XpG(2);const Ie=e.sdS(1);e.Y8G("ngTemplateOutlet",Ie)}}function R(Ue,Qe){if(1&Ue&&(e.j41(0,"div",9),e.nVh(1,Y,1,1,null,13),e.k0s()),2&Ue){const Ie=e.XpG();e.Y8G("matFormFieldNotchedOutlineOpen",Ie._shouldLabelFloat()),e.R7$(),e.vxM(Ie._forceDisplayInfixLabel()?-1:1)}}function U(Ue,Qe){1&Ue&&(e.j41(0,"div",10,2),e.SdG(2,2),e.k0s())}function fe(Ue,Qe){1&Ue&&(e.j41(0,"div",11,3),e.SdG(2,3),e.k0s())}function re(Ue,Qe){}function he(Ue,Qe){if(1&Ue&&e.DNE(0,re,0,0,"ng-template",13),2&Ue){e.XpG();const Ie=e.sdS(1);e.Y8G("ngTemplateOutlet",Ie)}}function Oe(Ue,Qe){1&Ue&&(e.j41(0,"div",14,4),e.SdG(2,4),e.k0s())}function ge(Ue,Qe){1&Ue&&(e.j41(0,"div",15,5),e.SdG(2,5),e.k0s())}function ce(Ue,Qe){1&Ue&&e.nrm(0,"div",16)}function Re(Ue,Qe){1&Ue&&(e.j41(0,"div",18),e.SdG(1,6),e.k0s())}function Me(Ue,Qe){if(1&Ue&&(e.j41(0,"mat-hint",22),e.EFF(1),e.k0s()),2&Ue){const Ie=e.XpG(2);e.Y8G("id",Ie._hintLabelId),e.R7$(),e.JRh(Ie.hintLabel)}}function ve(Ue,Qe){if(1&Ue&&(e.j41(0,"div",19),e.nVh(1,Me,2,2,"mat-hint",22),e.SdG(2,7),e.nrm(3,"div",23),e.SdG(4,8),e.k0s()),2&Ue){const Ie=e.XpG();e.R7$(),e.vxM(Ie.hintLabel?1:-1)}}let oe=(()=>{class Ue{static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["mat-label"]]})}return Ue})();const Se=new A.nKC("MatError");let be=(()=>{class Ue{id=(0,A.WQX)(i.g).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(le,Ne){2&le&&e.Avn("id",Ne.id)},inputs:{id:"id"},features:[e.Jv_([{provide:Se,useExisting:Ue}])]})}return Ue})(),nt=(()=>{class Ue{align="start";id=(0,A.WQX)(i.g).getId("mat-mdc-hint-");static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(le,Ne){2&le&&(e.Avn("id",Ne.id),e.BMQ("align",null),e.AVh("mat-mdc-form-field-hint-end","end"===Ne.align))},inputs:{align:"align",id:"id"}})}return Ue})();const $e=new A.nKC("MatPrefix"),yt=new A.nKC("MatSuffix");let Et=(()=>{class Ue{set _isTextSelector(Ie){this._isText=!0}_isText=!1;static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[e.Jv_([{provide:yt,useExisting:Ue}])]})}return Ue})();const rt=new A.nKC("FloatingLabelParent");let Mn=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);get floating(){return this._floating}set floating(Ie){this._floating=Ie,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(Ie){this._monitorResize=Ie,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,A.WQX)($.a);_ngZone=(0,A.WQX)(e.SKi);_parent=(0,A.WQX)(rt);_resizeSubscription=new w.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function qt(Ue){if(null!==Ue.offsetParent)return Ue.scrollWidth;const Ie=Ue.cloneNode(!0);Ie.style.setProperty("position","absolute"),Ie.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ie);const le=Ie.scrollWidth;return Ie.remove(),le}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(le,Ne){2&le&&e.AVh("mdc-floating-label--float-above",Ne.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return Ue})();const S="mdc-line-ripple--active",Xt="mdc-line-ripple--deactivating";let de=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);_cleanupTransitionEnd;constructor(){const Ie=(0,A.WQX)(e.SKi),le=(0,A.WQX)(e.sFG);Ie.runOutsideAngular(()=>{this._cleanupTransitionEnd=le.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){const Ie=this._elementRef.nativeElement.classList;Ie.remove(Xt),Ie.add(S)}deactivate(){this._elementRef.nativeElement.classList.add(Xt)}_handleTransitionEnd=Ie=>{const le=this._elementRef.nativeElement.classList,Ne=le.contains(Xt);"opacity"===Ie.propertyName&&Ne&&le.remove(S,Xt)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return Ue})(),ae=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);_ngZone=(0,A.WQX)(e.SKi);open=!1;_notch;ngAfterViewInit(){const Ie=this._elementRef.nativeElement,le=Ie.querySelector(".mdc-floating-label");le?(Ie.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(le.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>le.style.transitionDuration="")}))):Ie.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Ie){this._notch.nativeElement.style.width=this.open&&Ie?`calc(${Ie}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}_setMaxWidth(Ie){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Ie}px)`)}static \u0275fac=function(le){return new(le||Ue)};static \u0275cmp=e.VBU({type:Ue,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(le,Ne){if(1&le&&e.GBs(ye,5),2&le){let ze;e.mGM(ze=e.lsd())&&(Ne._notch=ze.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(le,Ne){2&le&&e.AVh("mdc-notched-outline--notched",Ne.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:se,ngContentSelectors:pe,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(le,Ne){1&le&&(e.NAR(),e.Hgh(0,"div",1),e.rj2(1,"div",2,0),e.SdG(3),e.eux(),e.Hgh(4,"div",3))},encapsulation:2,changeDetection:0})}return Ue})(),me=(()=>{class Ue{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue})}return Ue})();const Vt=new A.nKC("MatFormField"),hn=new A.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Pe=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);_changeDetectorRef=(0,A.WQX)(h.gRc);_platform=(0,A.WQX)(D.O);_idGenerator=(0,A.WQX)(i.g);_ngZone=(0,A.WQX)(e.SKi);_defaults=(0,A.WQX)(hn,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=(0,h.ebz)("iconPrefixContainer");_textPrefixContainerSignal=(0,h.ebz)("textPrefixContainer");_iconSuffixContainerSignal=(0,h.ebz)("iconSuffixContainer");_textSuffixContainerSignal=(0,h.ebz)("textSuffixContainer");_prefixSuffixContainers=(0,d.EW)(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(Ie=>Ie?.nativeElement).filter(Ie=>void 0!==Ie));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,h.sbv)(oe);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ie){this._hideRequiredMarker=(0,p.he)(Ie)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Ie){Ie!==this._floatLabel&&(this._floatLabel=Ie,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(Ie){this._appearanceSignal.set(Ie||this._defaults?.appearance||"fill")}_appearanceSignal=(0,A.vPA)("fill");get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Ie){this._subscriptSizing=Ie||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(Ie){this._hintLabel=Ie,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Ie){this._explicitFormFieldControl=Ie}_destroyed=new f.B;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=(0,ie.Rc)();constructor(){const Ie=this._defaults,le=(0,A.WQX)(g.dS);Ie&&(Ie.appearance&&(this.appearance=Ie.appearance),this._hideRequiredMarker=!!Ie?.hideRequiredMarker,Ie.color&&(this.color=Ie.color)),(0,d.QZ)(()=>this._currentDirection=le.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,d.EW)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(Ie){const le=this._control,Ne="mat-mdc-form-field-type-";Ie&&this._elementRef.nativeElement.classList.remove(Ne+Ie.controlType),le.controlType&&this._elementRef.nativeElement.classList.add(Ne+le.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=le.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=le.stateChanges.pipe((0,M.Z)([void 0,void 0]),(0,K.T)(()=>[le.errorState,le.userAriaDescribedBy]),function ee(){return(0,j.N)((Ue,Qe)=>{let Ie,le=!1;Ue.subscribe((0,Z._)(Qe,Ne=>{const ze=Ie;Ie=Ne,le&&Qe.next([ze,Ne]),le=!0}))})}(),(0,V.p)(([[ze,Je],[gt,zt]])=>ze!==gt||Je!==zt)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),le.ngControl&&le.ngControl.valueChanges&&(this._valueChanges=le.ngControl.valueChanges.pipe((0,Q.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Ie=>!Ie._isText),this._hasTextPrefix=!!this._prefixChildren.find(Ie=>Ie._isText),this._hasIconSuffix=!!this._suffixChildren.find(Ie=>!Ie._isText),this._hasTextSuffix=!!this._suffixChildren.find(Ie=>Ie._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,F.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){const Ie=this._control.focused;Ie&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!Ie&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",Ie),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",Ie)}_syncOutlineLabelOffset(){(0,h.uEv)({earlyRead:()=>{if("outline"!==this._appearanceSignal())return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(const Ie of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(Ie,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:Ie=>this._writeOutlinedLabelStyles(Ie())})}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=(0,d.EW)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(Ie){const le=this._control?this._control.ngControl:null;return le&&le[Ie]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Ie=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ie.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getSubscriptMessageType()){const ze=this._hintChildren?this._hintChildren.find(gt=>"start"===gt.align):null,Je=this._hintChildren?this._hintChildren.find(gt=>"end"===gt.align):null;ze?Ie.push(ze.id):this._hintLabel&&Ie.push(this._hintLabelId),Je&&Ie.push(Je.id)}else this._errorChildren&&Ie.push(...this._errorChildren.map(ze=>ze.id));const le=this._control.describedByIds;let Ne;if(le){const ze=this._describedByIds||Ie;Ne=Ie.concat(le.filter(Je=>Je&&!ze.includes(Je)))}else Ne=Ie;this._control.setDescribedByIds(Ne),this._describedByIds=Ie}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;const Ie=this._iconPrefixContainer?.nativeElement,le=this._textPrefixContainer?.nativeElement,Ne=this._iconSuffixContainer?.nativeElement,ze=this._textSuffixContainer?.nativeElement,Je=Ie?.getBoundingClientRect().width??0,gt=le?.getBoundingClientRect().width??0,zt=Ne?.getBoundingClientRect().width??0,Ye=ze?.getBoundingClientRect().width??0;return[`var(--mat-mdc-form-field-label-transform, translateY(-50%) translateX(calc(${"rtl"===this._currentDirection?"-1":"1"} * (${Je+gt}px + var(--mat-mdc-form-field-label-offset-x, 0px)))))`,Je+gt+zt+Ye]}_writeOutlinedLabelStyles(Ie){if(null!==Ie){const[le,Ne]=Ie;this._floatingLabel&&(this._floatingLabel.element.style.transform=le),null!==Ne&&this._notchedOutline?._setMaxWidth(Ne)}}_isAttachedToDom(){const Ie=this._elementRef.nativeElement;if(Ie.getRootNode){const le=Ie.getRootNode();return le&&le!==Ie}return document.documentElement.contains(Ie)}static \u0275fac=function(le){return new(le||Ue)};static \u0275cmp=e.VBU({type:Ue,selectors:[["mat-form-field"]],contentQueries:function(le,Ne,ze){if(1&le&&(e.C6U(ze,Ne._labelChild,oe,5),e.wni(ze,me,5),e.wni(ze,$e,5),e.wni(ze,yt,5),e.wni(ze,Se,5),e.wni(ze,nt,5)),2&le){let Je;e.NyB(),e.mGM(Je=e.lsd())&&(Ne._formFieldControl=Je.first),e.mGM(Je=e.lsd())&&(Ne._prefixChildren=Je),e.mGM(Je=e.lsd())&&(Ne._suffixChildren=Je),e.mGM(Je=e.lsd())&&(Ne._errorChildren=Je),e.mGM(Je=e.lsd())&&(Ne._hintChildren=Je)}},viewQuery:function(le,Ne){if(1&le&&(e.wEZ(Ne._iconPrefixContainerSignal,Ee,5),e.wEZ(Ne._textPrefixContainerSignal,L,5),e.wEZ(Ne._iconSuffixContainerSignal,t,5),e.wEZ(Ne._textSuffixContainerSignal,s,5),e.GBs(m,5),e.GBs(Ee,5),e.GBs(L,5),e.GBs(t,5),e.GBs(s,5),e.GBs(Mn,5),e.GBs(ae,5),e.GBs(de,5)),2&le){let ze;e.NyB(4),e.mGM(ze=e.lsd())&&(Ne._textField=ze.first),e.mGM(ze=e.lsd())&&(Ne._iconPrefixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._textPrefixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._iconSuffixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._textSuffixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._floatingLabel=ze.first),e.mGM(ze=e.lsd())&&(Ne._notchedOutline=ze.first),e.mGM(ze=e.lsd())&&(Ne._lineRipple=ze.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(le,Ne){2&le&&e.AVh("mat-mdc-form-field-label-always-float",Ne._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Ne._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Ne._hasIconSuffix)("mat-form-field-invalid",Ne._control.errorState)("mat-form-field-disabled",Ne._control.disabled)("mat-form-field-autofilled",Ne._control.autofilled)("mat-form-field-appearance-fill","fill"==Ne.appearance)("mat-form-field-appearance-outline","outline"==Ne.appearance)("mat-form-field-hide-placeholder",Ne._hasFloatingLabel()&&!Ne._shouldLabelFloat())("mat-primary","accent"!==Ne.color&&"warn"!==Ne.color)("mat-accent","accent"===Ne.color)("mat-warn","warn"===Ne.color)("ng-untouched",Ne._shouldForward("untouched"))("ng-touched",Ne._shouldForward("touched"))("ng-pristine",Ne._shouldForward("pristine"))("ng-dirty",Ne._shouldForward("dirty"))("ng-valid",Ne._shouldForward("valid"))("ng-invalid",Ne._shouldForward("invalid"))("ng-pending",Ne._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e.Jv_([{provide:Vt,useExisting:Ue},{provide:rt,useExisting:Ue}])],ngContentSelectors:_,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(le,Ne){if(1&le){const ze=e.RV6();e.NAR(u),e.DNE(0,C,1,1,"ng-template",null,0,e.C5r),e.j41(2,"div",6,1),e.bIt("click",function(gt){return A.eBV(ze),A.Njj(Ne._control.onContainerClick(gt))}),e.nVh(4,a,1,0,"div",7),e.j41(5,"div",8),e.nVh(6,R,2,2,"div",9),e.nVh(7,U,3,0,"div",10),e.nVh(8,fe,3,0,"div",11),e.j41(9,"div",12),e.nVh(10,he,1,1,null,13),e.SdG(11),e.k0s(),e.nVh(12,Oe,3,0,"div",14),e.nVh(13,ge,3,0,"div",15),e.k0s(),e.nVh(14,ce,1,0,"div",16),e.k0s(),e.j41(15,"div",17),e.nVh(16,Re,2,0,"div",18)(17,ve,5,1,"div",19),e.k0s()}if(2&le){let ze;e.R7$(2),e.AVh("mdc-text-field--filled",!Ne._hasOutline())("mdc-text-field--outlined",Ne._hasOutline())("mdc-text-field--no-label",!Ne._hasFloatingLabel())("mdc-text-field--disabled",Ne._control.disabled)("mdc-text-field--invalid",Ne._control.errorState),e.R7$(2),e.vxM(Ne._hasOutline()||Ne._control.disabled?-1:4),e.R7$(2),e.vxM(Ne._hasOutline()?6:-1),e.R7$(),e.vxM(Ne._hasIconPrefix?7:-1),e.R7$(),e.vxM(Ne._hasTextPrefix?8:-1),e.R7$(2),e.vxM(!Ne._hasOutline()||Ne._forceDisplayInfixLabel()?10:-1),e.R7$(2),e.vxM(Ne._hasTextSuffix?12:-1),e.R7$(),e.vxM(Ne._hasIconSuffix?13:-1),e.R7$(),e.vxM(Ne._hasOutline()?-1:14),e.R7$(),e.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Ne.subscriptSizing);const Je=Ne._getSubscriptMessageType();e.R7$(),e.vxM("error"===(ze=Je)?16:"hint"===ze?17:-1)}},dependencies:[Mn,ae,o.T3,de,nt],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}\n'],encapsulation:2,changeDetection:0})}return Ue})()},82885(ke,q,l){"use strict";l.d(q,{B_:()=>Y,Fe:()=>R,NS:()=>pe});class i{tracker;columnIndex=0;rowIndex=0;get rowCount(){return this.rowIndex+1}get rowspan(){const fe=Math.max(...this.tracker);return fe>1?this.rowCount+fe-1:this.rowCount}positions;update(fe,re){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(fe),this.tracker.fill(0,0,this.tracker.length),this.positions=re.map(he=>this._trackTile(he))}_trackTile(fe){const re=this._findMatchingGap(fe.colspan);return this._markTilePosition(re,fe),this.columnIndex=re+fe.colspan,new g(this.rowIndex,re)}_findMatchingGap(fe){let re=-1,he=-1;do{this.columnIndex+fe>this.tracker.length?(this._nextRow(),re=this.tracker.indexOf(0,this.columnIndex),he=this._findGapEndIndex(re)):(re=this.tracker.indexOf(0,this.columnIndex),-1!=re?(he=this._findGapEndIndex(re),this.columnIndex=re+1):(this._nextRow(),re=this.tracker.indexOf(0,this.columnIndex),he=this._findGapEndIndex(re)))}while(he-re{class U{static \u0275fac=function(he){return new(he||U)};static \u0275mod=D.$C({type:U});static \u0275inj=o.G2t({imports:[e.y,e.y]})}return U})();var M=l(67847),K=l(61577);const $=["*"],se=new o.nKC("MAT_GRID_LIST");let pe=(()=>{class U{_element=(0,o.WQX)(D.aKT);_gridList=(0,o.WQX)(se,{optional:!0});_rowspan=1;_colspan=1;constructor(){}get rowspan(){return this._rowspan}set rowspan(re){this._rowspan=Math.round((0,M.OE)(re))}get colspan(){return this._colspan}set colspan(re){this._colspan=Math.round((0,M.OE)(re))}_setStyle(re,he){this._element.nativeElement.style[re]=he}static \u0275fac=function(he){return new(he||U)};static \u0275cmp=D.VBU({type:U,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(he,Oe){2&he&&D.BMQ("rowspan",Oe.rowspan)("colspan",Oe.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:$,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(he,Oe){1&he&&(D.NAR(),D.rj2(0,"div",0),D.SdG(1),D.eux())},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-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.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})}return U})();const m=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class u{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(fe,re,he,Oe){this._gutterSize=a(fe),this._rows=re.rowCount,this._rowspan=re.rowspan,this._cols=he,this._direction=Oe}getBaseTileSize(fe,re){return`(${fe}% - (${this._gutterSize} * ${re}))`}getTilePosition(fe,re){return 0===re?"0":C(`(${fe} + ${this._gutterSize}) * ${re}`)}getTileSize(fe,re){return`(${fe} * ${re}) + (${re-1} * ${this._gutterSize})`}setStyle(fe,re,he){let Oe=100/this._cols,ge=(this._cols-1)/this._cols;this.setColStyles(fe,he,Oe,ge),this.setRowStyles(fe,re,Oe,ge)}setColStyles(fe,re,he,Oe){let ge=this.getBaseTileSize(he,Oe);fe._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(ge,re)),fe._setStyle("width",C(this.getTileSize(ge,fe.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(fe){return`${this._rowspan} * ${this.getTileSize(fe,1)}`}getComputedHeight(){return null}}class _ extends u{fixedRowHeight;constructor(fe){super(),this.fixedRowHeight=fe}init(fe,re,he,Oe){super.init(fe,re,he,Oe),this.fixedRowHeight=a(this.fixedRowHeight),m.test(this.fixedRowHeight)}setRowStyles(fe,re){fe._setStyle("top",this.getTilePosition(this.fixedRowHeight,re)),fe._setStyle("height",C(this.getTileSize(this.fixedRowHeight,fe.rowspan)))}getComputedHeight(){return["height",C(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(fe){fe._setListStyle(["height",null]),fe._tiles&&fe._tiles.forEach(re=>{re._setStyle("top",null),re._setStyle("height",null)})}}class T extends u{rowHeightRatio;baseTileHeight;constructor(fe){super(),this._parseRatio(fe)}setRowStyles(fe,re,he,Oe){this.baseTileHeight=this.getBaseTileSize(he/this.rowHeightRatio,Oe),fe._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,re)),fe._setStyle("paddingTop",C(this.getTileSize(this.baseTileHeight,fe.rowspan)))}getComputedHeight(){return["paddingBottom",C(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(fe){fe._setListStyle(["paddingBottom",null]),fe._tiles.forEach(re=>{re._setStyle("marginTop",null),re._setStyle("paddingTop",null)})}_parseRatio(fe){const re=fe.split(":");this.rowHeightRatio=parseFloat(re[0])/parseFloat(re[1])}}class P extends u{setRowStyles(fe,re){let ge=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);fe._setStyle("top",this.getTilePosition(ge,re)),fe._setStyle("height",C(this.getTileSize(ge,fe.rowspan)))}reset(fe){fe._tiles&&fe._tiles.forEach(re=>{re._setStyle("top",null),re._setStyle("height",null)})}}function C(U){return`calc(${U})`}function a(U){return U.match(/([A-Za-z%]+)$/)?U:`${U}px`}let Y=(()=>{class U{_element=(0,o.WQX)(D.aKT);_dir=(0,o.WQX)(K.dS,{optional:!0});_cols;_tileCoordinator;_rowHeight;_gutter="1px";_tileStyler;_tiles;constructor(){}get cols(){return this._cols}set cols(re){this._cols=Math.max(1,Math.round((0,M.OE)(re)))}get gutterSize(){return this._gutter}set gutterSize(re){this._gutter=`${re??""}`}get rowHeight(){return this._rowHeight}set rowHeight(re){const he=`${re??""}`;he!==this._rowHeight&&(this._rowHeight=he,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(re){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===re?new P:re&&re.indexOf(":")>-1?new T(re):new _(re)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new i);const re=this._tileCoordinator,he=this._tiles.filter(ge=>!ge._gridList||ge._gridList===this),Oe=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,he),this._tileStyler.init(this.gutterSize,re,this.cols,Oe),he.forEach((ge,ce)=>{const Re=re.positions[ce];this._tileStyler.setStyle(ge,Re.row,Re.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(re){re&&(this._element.nativeElement.style[re[0]]=re[1])}static \u0275fac=function(he){return new(he||U)};static \u0275cmp=D.VBU({type:U,selectors:[["mat-grid-list"]],contentQueries:function(he,Oe,ge){if(1&he&&D.wni(ge,pe,5),2&he){let ce;D.mGM(ce=D.lsd())&&(Oe._tiles=ce)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(he,Oe){2&he&&D.BMQ("cols",Oe.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[D.Jv_([{provide:se,useExisting:U}])],ngContentSelectors:$,decls:2,vars:0,template:function(he,Oe){1&he&&(D.NAR(),D.rj2(0,"div"),D.SdG(1),D.eux())},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-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.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})}return U})(),R=(()=>{class U{static \u0275fac=function(he){return new(he||U)};static \u0275mod=D.$C({type:U});static \u0275inj=o.G2t({imports:[F,e.y,F,e.y]})}return U})()},22598(ke,q,l){"use strict";l.d(q,{iM:()=>M,iY:()=>K});var i=l(73664),g=l(17705),p=l(2615),D=l(76838),o=l(88968),e=l(11048),A=l(32046),h=l(31804);const d=["mat-icon-button",""],w=["*"],f=new p.nKC("MAT_BUTTON_CONFIG");function F(Z){return null==Z?void 0:(0,g.Udg)(Z)}let M=(()=>{class Z{_elementRef=(0,p.WQX)(i.aKT);_ngZone=(0,p.WQX)(i.SKi);_animationsDisabled=(0,h.Rc)();_config=(0,p.WQX)(f,{optional:!0});_focusMonitor=(0,p.WQX)(D.FN);_cleanupClick;_renderer=(0,p.WQX)(i.sFG);_rippleLoader=(0,p.WQX)(e.E);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=V,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(V){this._disabled=V,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(V){this.tabIndex=V}constructor(){(0,p.WQX)(o.l).load(A.A);const V=this._elementRef.nativeElement;this._isAnchor="A"===V.tagName,this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(V,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(V="program",Q){V?this._focusMonitor.focusVia(this._elementRef.nativeElement,V,Q):this._elementRef.nativeElement.focus(Q)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this._isAnchor?this.disabled||null:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor&&this.disabled&&!this.disabledInteractive?-1:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",V=>{this.disabled&&(V.preventDefault(),V.stopImmediatePropagation())}))}static \u0275fac=function(Q){return new(Q||Z)};static \u0275dir=i.FsC({type:Z,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(Q,$){2&Q&&(i.BMQ("disabled",$._getDisabledAttribute())("aria-disabled",$._getAriaDisabled())("tabindex",$._getTabIndex()),i.HbH($.color?"mat-"+$.color:""),i.AVh("mat-mdc-button-disabled",$.disabled)("mat-mdc-button-disabled-interactive",$.disabledInteractive)("mat-unthemed",!$.color)("_mat-animation-noopable",$._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",g.L39],disabled:[2,"disabled","disabled",g.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",g.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",g.L39],tabIndex:[2,"tabIndex","tabIndex",F],_tabindex:[2,"tabindex","_tabindex",F]}})}return Z})(),K=(()=>{class Z extends M{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(Q){return new(Q||Z)};static \u0275cmp=i.VBU({type:Z,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:d,ngContentSelectors:w,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Q,$){1&Q&&(i.NAR(),i.Hgh(0,"span",0),i.SdG(1),i.Hgh(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\n',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0})}return Z})()},12629(ke,q,l){"use strict";l.d(q,{An:()=>Y,m_:()=>R});var i=l(73664),g=l(2615),p=l(17705),D=l(18359),o=l(96697),e=l(29330),A=l(345),h=l(7673),d=l(18810),w=l(27468),f=l(88141),F=l(96354),M=l(99437),K=l(70980),j=l(97647);let Z;function V(U){return function ee(){if(void 0===Z&&(Z=null,typeof window<"u")){const U=window;void 0!==U.trustedTypes&&(Z=U.trustedTypes.createPolicy("angular#components",{createHTML:fe=>fe}))}return Z}()?.createHTML(U)||U}function Q(U){return Error(`Unable to find icon with the name "${U}"`)}function ie(U){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${U}".`)}function _e(U){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${U}".`)}class ye{url;svgText;options;svgElement;constructor(fe,re,he){this.url=fe,this.svgText=re,this.options=he}}let se=(()=>{class U{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(re,he,Oe,ge){this._httpClient=re,this._sanitizer=he,this._errorHandler=ge,this._document=Oe}addSvgIcon(re,he,Oe){return this.addSvgIconInNamespace("",re,he,Oe)}addSvgIconLiteral(re,he,Oe){return this.addSvgIconLiteralInNamespace("",re,he,Oe)}addSvgIconInNamespace(re,he,Oe,ge){return this._addSvgIconConfig(re,he,new ye(Oe,null,ge))}addSvgIconResolver(re){return this._resolvers.push(re),this}addSvgIconLiteralInNamespace(re,he,Oe,ge){const ce=this._sanitizer.sanitize(i.WPN.HTML,Oe);if(!ce)throw _e(Oe);const Re=V(ce);return this._addSvgIconConfig(re,he,new ye("",Re,ge))}addSvgIconSet(re,he){return this.addSvgIconSetInNamespace("",re,he)}addSvgIconSetLiteral(re,he){return this.addSvgIconSetLiteralInNamespace("",re,he)}addSvgIconSetInNamespace(re,he,Oe){return this._addSvgIconSetConfig(re,new ye(he,null,Oe))}addSvgIconSetLiteralInNamespace(re,he,Oe){const ge=this._sanitizer.sanitize(i.WPN.HTML,he);if(!ge)throw _e(he);const ce=V(ge);return this._addSvgIconSetConfig(re,new ye("",ce,Oe))}registerFontClassAlias(re,he=re){return this._fontCssClassesByAlias.set(re,he),this}classNameForFontAlias(re){return this._fontCssClassesByAlias.get(re)||re}setDefaultFontSetClass(...re){return this._defaultFontSetClass=re,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(re){const he=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,re);if(!he)throw ie(re);const Oe=this._cachedIconsByUrl.get(he);return Oe?(0,h.of)(L(Oe)):this._loadSvgIconFromConfig(new ye(re,null)).pipe((0,f.M)(ge=>this._cachedIconsByUrl.set(he,ge)),(0,F.T)(ge=>L(ge)))}getNamedSvgIcon(re,he=""){const Oe=t(he,re);let ge=this._svgIconConfigs.get(Oe);if(ge)return this._getSvgFromConfig(ge);if(ge=this._getIconConfigFromResolvers(he,re),ge)return this._svgIconConfigs.set(Oe,ge),this._getSvgFromConfig(ge);const ce=this._iconSetConfigs.get(he);return ce?this._getSvgFromIconSetConfigs(re,ce):(0,d.$)(Q(Oe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(re){return re.svgText?(0,h.of)(L(this._svgElementFromConfig(re))):this._loadSvgIconFromConfig(re).pipe((0,F.T)(he=>L(he)))}_getSvgFromIconSetConfigs(re,he){const Oe=this._extractIconWithNameFromAnySet(re,he);if(Oe)return(0,h.of)(Oe);const ge=he.filter(ce=>!ce.svgText).map(ce=>this._loadSvgIconSetFromConfig(ce).pipe((0,M.W)(Re=>{const ve=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,ce.url)} failed: ${Re.message}`;return this._errorHandler.handleError(new Error(ve)),(0,h.of)(null)})));return(0,w.p)(ge).pipe((0,F.T)(()=>{const ce=this._extractIconWithNameFromAnySet(re,he);if(!ce)throw Q(re);return ce}))}_extractIconWithNameFromAnySet(re,he){for(let Oe=he.length-1;Oe>=0;Oe--){const ge=he[Oe];if(ge.svgText&&ge.svgText.toString().indexOf(re)>-1){const ce=this._svgElementFromConfig(ge),Re=this._extractSvgIconFromSet(ce,re,ge.options);if(Re)return Re}}return null}_loadSvgIconFromConfig(re){return this._fetchIcon(re).pipe((0,f.M)(he=>re.svgText=he),(0,F.T)(()=>this._svgElementFromConfig(re)))}_loadSvgIconSetFromConfig(re){return re.svgText?(0,h.of)(null):this._fetchIcon(re).pipe((0,f.M)(he=>re.svgText=he))}_extractSvgIconFromSet(re,he,Oe){const ge=re.querySelector(`[id="${he}"]`);if(!ge)return null;const ce=ge.cloneNode(!0);if(ce.removeAttribute("id"),"svg"===ce.nodeName.toLowerCase())return this._setSvgAttributes(ce,Oe);if("symbol"===ce.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ce),Oe);const Re=this._svgElementFromString(V(""));return Re.appendChild(ce),this._setSvgAttributes(Re,Oe)}_svgElementFromString(re){const he=this._document.createElement("DIV");he.innerHTML=re;const Oe=he.querySelector("svg");if(!Oe)throw Error(" tag not found");return Oe}_toSvgElement(re){const he=this._svgElementFromString(V("")),Oe=re.attributes;for(let ge=0;geV(ve)),(0,K.j)(()=>this._inProgressUrlFetches.delete(ce)),(0,j.u)());return this._inProgressUrlFetches.set(ce,Me),Me}_addSvgIconConfig(re,he,Oe){return this._svgIconConfigs.set(t(re,he),Oe),this}_addSvgIconSetConfig(re,he){const Oe=this._iconSetConfigs.get(re);return Oe?Oe.push(he):this._iconSetConfigs.set(re,[he]),this}_svgElementFromConfig(re){if(!re.svgElement){const he=this._svgElementFromString(re.svgText);this._setSvgAttributes(he,re.options),re.svgElement=he}return re.svgElement}_getIconConfigFromResolvers(re,he){for(let Oe=0;Oefe?fe.pathname+fe.search:""}}}),C=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],a=C.map(U=>`[${U}]`).join(", "),x=/^url\(['"]?#(.*?)['"]?\)$/;let Y=(()=>{class U{_elementRef=(0,g.WQX)(i.aKT);_iconRegistry=(0,g.WQX)(se);_location=(0,g.WQX)(T);_errorHandler=(0,g.WQX)(g.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(re){this._color=re}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(re){re!==this._svgIcon&&(re?this._updateSvgIcon(re):this._svgIcon&&this._clearSvgElement(),this._svgIcon=re)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(re){const he=this._cleanupFontValue(re);he!==this._fontSet&&(this._fontSet=he,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(re){const he=this._cleanupFontValue(re);he!==this._fontIcon&&(this._fontIcon=he,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=D.yU.EMPTY;constructor(){const re=(0,g.WQX)(new p.ES_("aria-hidden"),{optional:!0}),he=(0,g.WQX)(_,{optional:!0});he&&(he.color&&(this.color=this._defaultColor=he.color),he.fontSet&&(this.fontSet=he.fontSet)),re||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(re){if(!re)return["",""];const he=re.split(":");switch(he.length){case 1:return["",he[0]];case 2:return he;default:throw Error(`Invalid icon name: "${re}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const re=this._elementsWithExternalReferences;if(re&&re.size){const he=this._location.getPathname();he!==this._previousPath&&(this._previousPath=he,this._prependPathToReferences(he))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(re){this._clearSvgElement();const he=this._location.getPathname();this._previousPath=he,this._cacheChildrenWithExternalReferences(re),this._prependPathToReferences(he),this._elementRef.nativeElement.appendChild(re)}_clearSvgElement(){const re=this._elementRef.nativeElement;let he=re.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();he--;){const Oe=re.childNodes[he];(1!==Oe.nodeType||"svg"===Oe.nodeName.toLowerCase())&&Oe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const re=this._elementRef.nativeElement,he=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Oe=>Oe.length>0);this._previousFontSetClass.forEach(Oe=>re.classList.remove(Oe)),he.forEach(Oe=>re.classList.add(Oe)),this._previousFontSetClass=he,this.fontIcon!==this._previousFontIconClass&&!he.includes("mat-ligature-font")&&(this._previousFontIconClass&&re.classList.remove(this._previousFontIconClass),this.fontIcon&&re.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(re){return"string"==typeof re?re.trim().split(" ")[0]:re}_prependPathToReferences(re){const he=this._elementsWithExternalReferences;he&&he.forEach((Oe,ge)=>{Oe.forEach(ce=>{ge.setAttribute(ce.name,`url('${re}#${ce.value}')`)})})}_cacheChildrenWithExternalReferences(re){const he=re.querySelectorAll(a),Oe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ge=0;ge{const Re=he[ge],Me=Re.getAttribute(ce),ve=Me?Me.match(x):null;if(ve){let oe=Oe.get(Re);oe||(oe=[],Oe.set(Re,oe)),oe.push({name:ce,value:ve[1]})}})}_updateSvgIcon(re){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),re){const[he,Oe]=this._splitIconName(re);he&&(this._svgNamespace=he),Oe&&(this._svgName=Oe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Oe,he).pipe((0,o.s)(1)).subscribe(ge=>this._setSvgElement(ge),ge=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${he}:${Oe}! ${ge.message}`))})}}static \u0275fac=function(he){return new(he||U)};static \u0275cmp=i.VBU({type:U,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(he,Oe){2&he&&(i.BMQ("data-mat-icon-type",Oe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Oe._svgName||Oe.fontIcon)("data-mat-icon-namespace",Oe._svgNamespace||Oe.fontSet)("fontIcon",Oe._usingFontIcon()?Oe.fontIcon:null),i.HbH(Oe.color?"mat-"+Oe.color:""),i.AVh("mat-icon-inline",Oe.inline)("mat-icon-no-color","primary"!==Oe.color&&"accent"!==Oe.color&&"warn"!==Oe.color))},inputs:{color:"color",inline:[2,"inline","inline",p.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:u,decls:1,vars:0,template:function(he,Oe){1&he&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0})}return U})(),R=(()=>{class U{static \u0275fac=function(he){return new(he||U)};static \u0275mod=i.$C({type:U});static \u0275inj=g.G2t({imports:[m.y,m.y]})}return U})()},68010(ke,q,l){"use strict";l.d(q,{O:()=>g});const g=new(l(2615).nKC)("MAT_INPUT_VALUE_ACCESSOR")},33746(ke,q,l){"use strict";l.d(q,{fg:()=>ce,fS:()=>Re});var i=l(14085),g=l(39842);let o;const e=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function A(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(e),o;let Me=document.createElement("input");return o=new Set(e.filter(ve=>(Me.setAttribute("type",ve),Me.type===ve))),o}var h=l(73664),d=l(2615),w=l(983),f=l(21413),F=l(88968),M=l(67847);let L=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=h.VBU({type:Me,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Se,be){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"],encapsulation:2,changeDetection:0})}return Me})();const t={passive:!0};let s=(()=>{class Me{_platform=(0,d.WQX)(g.O);_ngZone=(0,d.WQX)(h.SKi);_renderer=(0,d.WQX)(h._9s).createRenderer(null,null);_styleLoader=(0,d.WQX)(F.l);_monitoredElements=new Map;constructor(){}monitor(oe){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(L);const Se=(0,M.i8)(oe),be=this._monitoredElements.get(Se);if(be)return be.subject;const nt=new f.B,$e="cdk-text-field-autofilled",dt=Et=>{"cdk-text-field-autofill-start"!==Et.animationName||Se.classList.contains($e)?"cdk-text-field-autofill-end"===Et.animationName&&Se.classList.contains($e)&&(Se.classList.remove($e),this._ngZone.run(()=>nt.next({target:Et.target,isAutofilled:!1}))):(Se.classList.add($e),this._ngZone.run(()=>nt.next({target:Et.target,isAutofilled:!0})))},yt=this._ngZone.runOutsideAngular(()=>(Se.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(Se,"animationstart",dt,t)));return this._monitoredElements.set(Se,{subject:nt,unlisten:yt}),nt}stopMonitoring(oe){const Se=(0,M.i8)(oe),be=this._monitoredElements.get(Se);be&&(be.unlisten(),be.subject.complete(),Se.classList.remove("cdk-text-field-autofill-monitored"),Se.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Se))}ngOnDestroy(){this._monitoredElements.forEach((oe,Se)=>this.stopMonitoring(Se))}static \u0275fac=function(Se){return new(Se||Me)};static \u0275prov=d.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})(),_=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=h.$C({type:Me});static \u0275inj=d.G2t({})}return Me})();var T=l(59295),P=l(17705),C=l(89726),a=l(89417),x=l(68010),Y=l(69588),R=l(2709),U=l(39336),fe=l(71228),re=l(22466);const Oe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ge=new d.nKC("MAT_INPUT_CONFIG");let ce=(()=>{class Me{_elementRef=(0,d.WQX)(h.aKT);_platform=(0,d.WQX)(g.O);ngControl=(0,d.WQX)(a.vO,{optional:!0,self:!0});_autofillMonitor=(0,d.WQX)(s);_ngZone=(0,d.WQX)(h.SKi);_formField=(0,d.WQX)(Y.xb,{optional:!0});_renderer=(0,d.WQX)(h.sFG);_uid=(0,d.WQX)(C.g).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=(0,d.WQX)(ge,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new f.B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(oe){this._disabled=(0,i.he)(oe),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(oe){this._id=oe||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(a.k0.required)??!1}set required(oe){this._required=(0,i.he)(oe)}_required;get type(){return this._type}set type(oe){this._type=oe||"text",this._validateType(),!this._isTextarea&&A().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(oe){this._errorStateTracker.matcher=oe}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(oe){oe!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(oe):this._inputValueAccessor.value=oe,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(oe){this._readonly=(0,i.he)(oe)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(oe){this._errorStateTracker.errorState=oe}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(oe=>A().has(oe));constructor(){const oe=(0,d.WQX)(a.cV,{optional:!0}),Se=(0,d.WQX)(a.j4,{optional:!0}),be=(0,d.WQX)(R.e),nt=(0,d.WQX)(x.O,{optional:!0,self:!0}),$e=this._elementRef.nativeElement,dt=$e.nodeName.toLowerCase();nt?(0,d.Hps)(nt.value)?this._signalBasedValueAccessor=nt:this._inputValueAccessor=nt:this._inputValueAccessor=$e,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen($e,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new U.X(be,this.ngControl,Se,oe,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===dt,this._isTextarea="textarea"===dt,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=$e.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&(0,T.QZ)(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(oe=>{this.autofilled=oe.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(oe){this._elementRef.nativeElement.focus(oe)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(oe){if(oe!==this.focused){if(!this._isNativeSelect&&oe&&this.disabled&&this.disabledInteractive){const Se=this._elementRef.nativeElement;"number"===Se.type?(Se.type="text",Se.setSelectionRange(0,0),Se.type="number"):Se.setSelectionRange(0,0)}this.focused=oe,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){const oe=this._elementRef.nativeElement.value;this._previousNativeValue!==oe&&(this._previousNativeValue=oe,this.stateChanges.next())}_dirtyCheckPlaceholder(){const oe=this._getPlaceholder();if(oe!==this._previousPlaceholder){const Se=this._elementRef.nativeElement;this._previousPlaceholder=oe,oe?Se.setAttribute("placeholder",oe):Se.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Oe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let oe=this._elementRef.nativeElement.validity;return oe&&oe.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const oe=this._elementRef.nativeElement,Se=oe.options[0];return this.focused||oe.multiple||!this.empty||!!(oe.selectedIndex>-1&&Se&&Se.label)}return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(oe){const Se=this._elementRef.nativeElement;oe.length?Se.setAttribute("aria-describedby",oe.join(" ")):Se.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const oe=this._elementRef.nativeElement;return this._isNativeSelect&&(oe.multiple||oe.size>1)}_iOSKeyupListener=oe=>{const Se=oe.target;!Se.value&&0===Se.selectionStart&&0===Se.selectionEnd&&(Se.setSelectionRange(1,1),Se.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=h.FsC({type:Me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(Se,be){1&Se&&h.bIt("focus",function(){return be._focusChanged(!0)})("blur",function(){return be._focusChanged(!1)})("input",function(){return be._onInput()}),2&Se&&(h.Avn("id",be.id)("disabled",be.disabled&&!be.disabledInteractive)("required",be.required),h.BMQ("name",be.name||null)("readonly",be._getReadonlyAttribute())("aria-disabled",be.disabled&&be.disabledInteractive?"true":null)("aria-invalid",be.empty&&be.required?null:be.errorState)("aria-required",be.required)("id",be.id),h.AVh("mat-input-server",be._isServer)("mat-mdc-form-field-textarea-control",be._isInFormField&&be._isTextarea)("mat-mdc-form-field-input-control",be._isInFormField)("mat-mdc-input-disabled-interactive",be.disabledInteractive)("mdc-text-field__input",be._isInFormField)("mat-mdc-native-select-inline",be._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",P.L39]},exportAs:["matInput"],features:[h.Jv_([{provide:Y.qT,useExisting:Me}]),h.OA$]})}return Me})(),Re=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=h.$C({type:Me});static \u0275inj=d.G2t({imports:[re.y,fe.R,fe.R,_,re.y]})}return Me})()},53155(ke,q,l){"use strict";l.d(q,{t:()=>D});var i=l(73664);const g=["mat-internal-form-field",""],p=["*"];let D=(()=>{class o{labelPosition;static \u0275fac=function(h){return new(h||o)};static \u0275cmp=i.VBU({type:o,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(h,d){2&h&&i.AVh("mdc-form-field--align-end","before"===d.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:g,ngContentSelectors:p,decls:1,vars:0,template:function(h,d){1&h&&(i.NAR(),i.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}\n"],encapsulation:2,changeDetection:0})}return o})()},3902(ke,q,l){"use strict";l.d(q,{Fg:()=>Fe,YE:()=>me,jt:()=>ae});var g=l(14085),p=l(67847),D=l(2615),o=l(73664),A=(l(17705),l(39842)),d=(l(44522),l(88968)),f=(l(21413),l(18359)),F=l(57786),M=l(12496),K=l(31804),j=l(32046),ee=(l(72200),l(72318)),V=l(71997),pe=(l(64123),l(83869),l(67336),l(10438),l(89417),l(56977),l(70483)),Ee=l(22466),L=l(26881);const t=["*"],m=["unscopedContent"],u=["text"],_=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],T=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],Se=new D.nKC("ListOption");let be=(()=>{class Pe{_elementRef=(0,D.WQX)(o.aKT);constructor(){}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return Pe})(),nt=(()=>{class Pe{_elementRef=(0,D.WQX)(o.aKT);constructor(){}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return Pe})(),$e=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return Pe})(),dt=(()=>{class Pe{_listOption=(0,D.WQX)(Se,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,hostVars:4,hostBindings:function(Ie,le){2&Ie&&o.AVh("mdc-list-item__start",le._isAlignedAtStart())("mdc-list-item__end",!le._isAlignedAtStart())}})}return Pe})(),yt=(()=>{class Pe extends dt{static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[o.Vt3]})}return Pe})(),Et=(()=>{class Pe extends dt{static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[o.Vt3]})}return Pe})();const rt=new D.nKC("MAT_LIST_CONFIG");let Mn=(()=>{class Pe{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(Qe){this._disableRipple=(0,g.he)(Qe)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(Qe){this._disabled.set((0,g.he)(Qe))}_disabled=(0,D.vPA)(!1);_defaultOptions=(0,D.WQX)(rt,{optional:!0});static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,hostVars:1,hostBindings:function(Ie,le){2&Ie&&o.BMQ("aria-disabled",le.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return Pe})(),qt=(()=>{class Pe{_elementRef=(0,D.WQX)(o.aKT);_ngZone=(0,D.WQX)(o.SKi);_listBase=(0,D.WQX)(Mn,{optional:!0});_platform=(0,D.WQX)(A.O);_hostElement;_isButtonElement;_noopAnimations=(0,K.Rc)();_avatars;_icons;set lines(Qe){this._explicitLines=(0,p.OE)(Qe,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(Qe){this._disableRipple=(0,g.he)(Qe)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(Qe){this._disabled.set((0,g.he)(Qe))}_disabled=(0,D.vPA)(!1);_subscriptions=new f.yU;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){(0,D.WQX)(d.l).load(j.A);const Qe=(0,D.WQX)(M.$E,{optional:!0});this.rippleConfig=Qe||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new M.ug(this,this._ngZone,this._hostElement,this._platform,(0,D.WQX)(D.zZn)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,F.h)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(Qe){if(!this._lines||!this._titles||!this._unscopedContent)return;Qe&&this._checkDomForUnscopedTextContent();const Ie=this._explicitLines??this._inferLinesFromContent(),le=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",Ie<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",Ie<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===Ie),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===Ie),this._hasUnscopedTextContent){const Ne=0===this._titles.length&&1===Ie;le.classList.toggle("mdc-list-item__primary-text",Ne),le.classList.toggle("mdc-list-item__secondary-text",!Ne)}else le.classList.remove("mdc-list-item__primary-text"),le.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let Qe=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(Qe+=1),Qe}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(Qe=>Qe.nodeType!==Qe.COMMENT_NODE).some(Qe=>!(!Qe.textContent||!Qe.textContent.trim()))}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,contentQueries:function(Ie,le,Ne){if(1&Ie&&(o.wni(Ne,yt,4),o.wni(Ne,Et,4)),2&Ie){let ze;o.mGM(ze=o.lsd())&&(le._avatars=ze),o.mGM(ze=o.lsd())&&(le._icons=ze)}},hostVars:4,hostBindings:function(Ie,le){2&Ie&&(o.BMQ("aria-disabled",le.disabled)("disabled",le._isButtonElement&&le.disabled||null),o.AVh("mdc-list-item--disabled",le.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return Pe})(),ae=(()=>{class Pe extends Mn{static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275cmp=o.VBU({type:Pe,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[o.Jv_([{provide:Mn,useExisting:Pe}]),o.Vt3],ngContentSelectors:t,decls:1,vars:0,template:function(Ie,le){1&Ie&&(o.NAR(),o.SdG(0))},styles:['.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}\n'],encapsulation:2,changeDetection:0})}return Pe})(),me=(()=>{class Pe extends qt{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(Qe){this._activated=(0,g.he)(Qe)}_activated=!1;_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return 0!==this._meta.length&&(0!==this._avatars.length||0!==this._icons.length)}static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275cmp=o.VBU({type:Pe,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Ie,le,Ne){if(1&Ie&&(o.wni(Ne,nt,5),o.wni(Ne,be,5),o.wni(Ne,$e,5)),2&Ie){let ze;o.mGM(ze=o.lsd())&&(le._lines=ze),o.mGM(ze=o.lsd())&&(le._titles=ze),o.mGM(ze=o.lsd())&&(le._meta=ze)}},viewQuery:function(Ie,le){if(1&Ie&&(o.GBs(m,5),o.GBs(u,5)),2&Ie){let Ne;o.mGM(Ne=o.lsd())&&(le._unscopedContent=Ne.first),o.mGM(Ne=o.lsd())&&(le._itemText=Ne.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(Ie,le){2&Ie&&(o.BMQ("aria-current",le._getAriaCurrent()),o.AVh("mdc-list-item--activated",le.activated)("mdc-list-item--with-leading-avatar",0!==le._avatars.length)("mdc-list-item--with-leading-icon",0!==le._icons.length)("mdc-list-item--with-trailing-meta",0!==le._meta.length)("mat-mdc-list-item-both-leading-and-trailing",le._hasBothLeadingAndTrailing())("_mat-animation-noopable",le._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[o.Vt3],ngContentSelectors:T,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(Ie,le){if(1&Ie){const Ne=o.RV6();o.NAR(_),o.SdG(0),o.j41(1,"span",1),o.SdG(2,1),o.SdG(3,2),o.j41(4,"span",2,0),o.bIt("cdkObserveContent",function(){return D.eBV(Ne),D.Njj(le._updateItemLines(!0))}),o.SdG(6,3),o.k0s()(),o.SdG(7,4),o.SdG(8,5),o.nrm(9,"div",3)}},dependencies:[ee.Wv],encapsulation:2,changeDetection:0})}return Pe})(),Fe=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275mod=o.$C({type:Pe});static \u0275inj=D.G2t({imports:[ee.w5,Ee.y,L.p,pe.O,V.w]})}return Pe})()},59115(ke,q,l){"use strict";l.d(q,{Cn:()=>tt,Cp:()=>En,fb:()=>$e,kk:()=>ae});var Q=l(2615),$=l(73664),ie=l(17705),_e=l(76838),ye=l(89726),se=l(64123),pe=l(95735),Ee=l(67336),L=l(10438),t=l(21413),s=l(18359),m=l(57786),u=l(7673),_=l(5964),T=l(99172),P=l(25558),C=l(96697),a=l(56977),x=l(88968),Y=l(32046),R=l(12496),U=l(76939),fe=l(31804),re=l(61577),he=l(49338),Oe=l(5718),ge=l(26881),ce=l(22466);const Re=["mat-menu-item",""],Me=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ve=["mat-icon, [matMenuItemIcon]","*"];function oe(Qe,Ie){1&Qe&&(Q.qSk(),$.j41(0,"svg",2),$.nrm(1,"polygon",3),$.k0s())}const Se=["*"];function be(Qe,Ie){if(1&Qe){const le=$.RV6();$.rj2(0,"div",0),$.VwU("click",function(){Q.eBV(le);const ze=$.XpG();return Q.Njj(ze.closed.emit("click"))})("animationstart",function(ze){Q.eBV(le);const Je=$.XpG();return Q.Njj(Je._onAnimationStart(ze.animationName))})("animationend",function(ze){Q.eBV(le);const Je=$.XpG();return Q.Njj(Je._onAnimationDone(ze.animationName))})("animationcancel",function(ze){Q.eBV(le);const Je=$.XpG();return Q.Njj(Je._onAnimationDone(ze.animationName))}),$.rj2(1,"div",1),$.SdG(2),$.eux()()}if(2&Qe){const le=$.XpG();$.HbH(le._classList),$.AVh("mat-menu-panel-animations-disabled",le._animationsDisabled)("mat-menu-panel-exit-animation","void"===le._panelAnimationState)("mat-menu-panel-animating",le._isAnimating()),$.Avn("id",le.panelId),$.BMQ("aria-label",le.ariaLabel||null)("aria-labelledby",le.ariaLabelledby||null)("aria-describedby",le.ariaDescribedby||null)}}const nt=new Q.nKC("MAT_MENU_PANEL");let $e=(()=>{class Qe{_elementRef=(0,Q.WQX)($.aKT);_document=(0,Q.WQX)(Q.qQL);_focusMonitor=(0,Q.WQX)(_e.FN);_parentMenu=(0,Q.WQX)(nt,{optional:!0});_changeDetectorRef=(0,Q.WQX)(ie.gRc);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new t.B;_focused=new t.B;_highlighted=!1;_triggersSubmenu=!1;constructor(){(0,Q.WQX)(x.l).load(Y.A),this._parentMenu?.addItem?.(this)}focus(le,Ne){this._focusMonitor&&le?this._focusMonitor.focusVia(this._getHostElement(),le,Ne):this._getHostElement().focus(Ne),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(le){this.disabled&&(le.preventDefault(),le.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const le=this._elementRef.nativeElement.cloneNode(!0),Ne=le.querySelectorAll("mat-icon, .material-icons");for(let ze=0;ze{class Qe{_elementRef=(0,Q.WQX)($.aKT);_changeDetectorRef=(0,Q.WQX)(ie.gRc);_injector=(0,Q.WQX)(Q.zZn);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=(0,fe.Rc)();_allItems;_directDescendantItems=new $.rOR;_classList={};_panelAnimationState="void";_animationDone=new t.B;_isAnimating=(0,Q.vPA)(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(le){this._xPosition=le,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(le){this._yPosition=le,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(le){const Ne=this._previousPanelClass,ze={...this._classList};Ne&&Ne.length&&Ne.split(" ").forEach(Je=>{ze[Je]=!1}),this._previousPanelClass=le,le&&le.length&&(le.split(" ").forEach(Je=>{ze[Je]=!0}),this._elementRef.nativeElement.className=""),this._classList=ze}_previousPanelClass;get classList(){return this.panelClass}set classList(le){this.panelClass=le}closed=new $.bkB;close=this.closed;panelId=(0,Q.WQX)(ye.g).getId("mat-menu-panel-");constructor(){const le=(0,Q.WQX)(qt);this.overlayPanelClass=le.overlayPanelClass||"",this._xPosition=le.xPosition,this._yPosition=le.yPosition,this.backdropClass=le.backdropClass,this.overlapTrigger=le.overlapTrigger,this.hasBackdrop=le.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new se.B(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,T.Z)(this._directDescendantItems),(0,P.n)(le=>(0,m.h)(...le.map(Ne=>Ne._focused)))).subscribe(le=>this._keyManager.updateActiveItem(le)),this._directDescendantItems.changes.subscribe(le=>{const Ne=this._keyManager;if("enter"===this._panelAnimationState&&Ne.activeItem?._hasFocus()){const ze=le.toArray(),Je=Math.max(0,Math.min(ze.length-1,Ne.activeItemIndex||0));ze[Je]&&!ze[Je].disabled?Ne.setActiveItem(Je):Ne.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe((0,T.Z)(this._directDescendantItems),(0,P.n)(Ne=>(0,m.h)(...Ne.map(ze=>ze._hovered))))}addItem(le){}removeItem(le){}_handleKeydown(le){const Ne=le.keyCode,ze=this._keyManager;switch(Ne){case L._f:(0,Ee.rp)(le)||(le.preventDefault(),this.closed.emit("keydown"));break;case L.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case L.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Ne===L.i7||Ne===L.n6)&&ze.setFocusOrigin("keyboard"),void ze.onKeydown(le)}}focusFirstItem(le="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,$.mal)(()=>{const Ne=this._resolvePanel();if(!Ne||!Ne.contains(document.activeElement)){const ze=this._keyManager;ze.setFocusOrigin(le).setFirstItemActive(),!ze.activeItem&&Ne&&Ne.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(le){}setPositionClasses(le=this.xPosition,Ne=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===le,"mat-menu-after":"after"===le,"mat-menu-above":"above"===Ne,"mat-menu-below":"below"===Ne},this._changeDetectorRef.markForCheck()}_onAnimationDone(le){const Ne=le===de;(Ne||le===Xt)&&(Ne&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(Ne?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(le){(le===Xt||le===de)&&this._isAnimating.set(!0)}_setIsOpen(le){if(this._panelAnimationState=le?"enter":"void",le){if(0===this._keyManager.activeItemIndex){const Ne=this._resolvePanel();Ne&&(Ne.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(de),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(le?Xt:de)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe((0,T.Z)(this._allItems)).subscribe(le=>{this._directDescendantItems.reset(le.filter(Ne=>Ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let le=null;return this._directDescendantItems.length&&(le=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),le}static \u0275fac=function(Ne){return new(Ne||Qe)};static \u0275cmp=$.VBU({type:Qe,selectors:[["mat-menu"]],contentQueries:function(Ne,ze,Je){if(1&Ne&&($.wni(Je,rt,5),$.wni(Je,$e,5),$.wni(Je,$e,4)),2&Ne){let gt;$.mGM(gt=$.lsd())&&(ze.lazyContent=gt.first),$.mGM(gt=$.lsd())&&(ze._allItems=gt),$.mGM(gt=$.lsd())&&(ze.items=gt)}},viewQuery:function(Ne,ze){if(1&Ne&&$.GBs($.C4Q,5),2&Ne){let Je;$.mGM(Je=$.lsd())&&(ze.templateRef=Je.first)}},hostVars:3,hostBindings:function(Ne,ze){2&Ne&&$.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",ie.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",le=>null==le?null:(0,ie.L39)(le)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[$.Jv_([{provide:nt,useExisting:Qe}])],ngContentSelectors:Se,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(Ne,ze){1&Ne&&($.NAR(),$.PeT(0,be,3,12,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,changeDetection:0})}return Qe})();const me=new Q.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const Qe=(0,Q.WQX)(Q.zZn);return()=>(0,he.RH)(Qe)}}),et={provide:me,deps:[],useFactory:function Le(Qe){const Ie=(0,Q.WQX)(Q.zZn);return()=>(0,he.RH)(Ie)}},Vt=new WeakMap;let hn=(()=>{class Qe{_canHaveBackdrop;_element=(0,Q.WQX)($.aKT);_viewContainerRef=(0,Q.WQX)($.c1b);_menuItemInstance=(0,Q.WQX)($e,{optional:!0,self:!0});_dir=(0,Q.WQX)(re.dS,{optional:!0});_focusMonitor=(0,Q.WQX)(_e.FN);_ngZone=(0,Q.WQX)($.SKi);_injector=(0,Q.WQX)(Q.zZn);_scrollStrategy=(0,Q.WQX)(me);_changeDetectorRef=(0,Q.WQX)(ie.gRc);_animationsDisabled=(0,fe.Rc)();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=s.yU.EMPTY;_menuCloseSubscription=s.yU.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(le){le!==this._menuInternal&&(this._menuInternal=le,this._menuCloseSubscription.unsubscribe(),le&&(this._menuCloseSubscription=le.close.subscribe(Ne=>{this._destroyMenu(Ne),("click"===Ne||"tab"===Ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ne)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(le){this._canHaveBackdrop=le;const Ne=(0,Q.WQX)(nt,{optional:!0});this._parentMaterialMenu=Ne instanceof ae?Ne:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Vt.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(le){const Ne=this._menu;if(this._menuOpen||!Ne)return;this._pendingRemoval?.unsubscribe();const ze=Vt.get(Ne);Vt.set(Ne,this),ze&&ze!==this&&ze._closeMenu();const Je=this._createOverlay(Ne),gt=Je.getConfig(),zt=gt.positionStrategy;this._setPosition(Ne,zt),gt.hasBackdrop=!!this._canHaveBackdrop&&(null==Ne.hasBackdrop?!this._triggersSubmenu():Ne.hasBackdrop),Je.hasAttached()||(Je.attach(this._getPortal(Ne)),Ne.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),Ne.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,Ne.direction=this.dir,le&&Ne.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),Ne instanceof ae&&(Ne._setIsOpen(!0),Ne._directDescendantItems.changes.pipe((0,a.Q)(Ne.close)).subscribe(()=>{zt.withLockedPosition(!1).reapplyLastPosition(),zt.withLockedPosition(!0)}))}focus(le,Ne){this._focusMonitor&&le?this._focusMonitor.focusVia(this._element,le,Ne):this._element.nativeElement.focus(Ne)}_destroyMenu(le){const Ne=this._overlayRef,ze=this._menu;!Ne||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),ze instanceof ae&&this._ownsMenu(ze)?(this._pendingRemoval=ze._animationDone.pipe((0,C.s)(1)).subscribe(()=>{Ne.detach(),Vt.has(ze)||ze.lazyContent?.detach()}),ze._setIsOpen(!1)):(Ne.detach(),ze?.lazyContent?.detach()),ze&&this._ownsMenu(ze)&&Vt.delete(ze),this.restoreFocus&&("keydown"===le||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(le){le!==this._menuOpen&&(this._menuOpen=le,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(le),this._changeDetectorRef.markForCheck())}_createOverlay(le){if(!this._overlayRef){const Ne=this._getOverlayConfig(le);this._subscribeToPositions(le,Ne.positionStrategy),this._overlayRef=(0,he.Y$)(this._injector,Ne),this._overlayRef.keydownEvents().subscribe(ze=>{this._menu instanceof ae&&this._menu._handleKeydown(ze)})}return this._overlayRef}_getOverlayConfig(le){return new he.rR({positionStrategy:(0,he.$M)(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:le.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:le.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(le,Ne){le.setPositionClasses&&Ne.positionChanges.subscribe(ze=>{this._ngZone.run(()=>{le.setPositionClasses("start"===ze.connectionPair.overlayX?"after":"before","top"===ze.connectionPair.overlayY?"below":"above")})})}_setPosition(le,Ne){let[ze,Je]="before"===le.xPosition?["end","start"]:["start","end"],[gt,zt]="above"===le.yPosition?["bottom","top"]:["top","bottom"],[Ye,st]=[gt,zt],[it,He]=[ze,Je],Wt=0;if(this._triggersSubmenu()){if(He=ze="before"===le.xPosition?"start":"end",Je=it="end"===ze?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const we=this._parentMaterialMenu.items.first;this._parentInnerPadding=we?we._getHostElement().offsetTop:0}Wt="bottom"===gt?this._parentInnerPadding:-this._parentInnerPadding}}else le.overlapTrigger||(Ye="top"===gt?"bottom":"top",st="top"===zt?"bottom":"top");Ne.withPositions([{originX:ze,originY:Ye,overlayX:it,overlayY:gt,offsetY:Wt},{originX:Je,originY:Ye,overlayX:He,overlayY:gt,offsetY:Wt},{originX:ze,originY:st,overlayX:it,overlayY:zt,offsetY:-Wt},{originX:Je,originY:st,overlayX:He,overlayY:zt,offsetY:-Wt}])}_menuClosingActions(){const le=this._getOutsideClickStream(this._overlayRef),Ne=this._overlayRef.detachments(),ze=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,u.of)(),Je=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,_.p)(gt=>this._menuOpen&>!==this._menuItemInstance)):(0,u.of)();return(0,m.h)(le,ze,Je,Ne)}_getPortal(le){return(!this._portal||this._portal.templateRef!==le.templateRef)&&(this._portal=new U.VA(le.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(le){return Vt.get(le)===this}static \u0275fac=function(Ne){$.QTQ()};static \u0275dir=$.FsC({type:Qe})}return Qe})(),En=(()=>{class Qe extends hn{_cleanupTouchstart;_hoverSubscription=s.yU.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(le){this.menu=le}get menu(){return this._menu}set menu(le){this._menu=le}menuData;restoreFocus=!0;menuOpened=new $.bkB;onMenuOpen=this.menuOpened;menuClosed=new $.bkB;onMenuClose=this.menuClosed;constructor(){super(!0);const le=(0,Q.WQX)($.sFG);this._cleanupTouchstart=le.listen(this._element.nativeElement,"touchstart",Ne=>{(0,pe.w)(Ne)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(le){return le.backdropClick()}_handleMousedown(le){(0,pe._)(le)||(this._openedBy=0===le.button?"mouse":void 0,this.triggersSubmenu()&&le.preventDefault())}_handleKeydown(le){const Ne=le.keyCode;(Ne===L.Fm||Ne===L.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ne===L.LE&&"ltr"===this.dir||Ne===L.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(le){this.triggersSubmenu()?(le.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(le=>{le===this._menuItemInstance&&!le.disabled&&"void"!==this._parentMaterialMenu?._panelAnimationState&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(Ne){return new(Ne||Qe)};static \u0275dir=$.FsC({type:Qe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Ne,ze){1&Ne&&$.bIt("click",function(gt){return ze._handleClick(gt)})("mousedown",function(gt){return ze._handleMousedown(gt)})("keydown",function(gt){return ze._handleKeydown(gt)}),2&Ne&&$.BMQ("aria-haspopup",ze.menu?"menu":null)("aria-expanded",ze.menuOpen)("aria-controls",ze.menuOpen?null==ze.menu?null:ze.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[$.Vt3]})}return Qe})(),tt=(()=>{class Qe{static \u0275fac=function(Ne){return new(Ne||Qe)};static \u0275mod=$.$C({type:Qe});static \u0275inj=Q.G2t({providers:[et],imports:[ge.p,ce.y,he.z_,Oe.Gj,ce.y]})}return Qe})()},40146(ke,q,l){"use strict";l.d(q,{S:()=>A});var i=l(2615),g=l(73664),p=l(26881),D=l(70483),o=l(22466),e=l(23029);let A=(()=>{class h{static \u0275fac=function(f){return new(f||h)};static \u0275mod=g.$C({type:h});static \u0275inj=i.G2t({imports:[p.p,o.y,D.O,e.wT]})}return h})()},23029(ke,q,l){"use strict";l.d(q,{MI:()=>t,QC:()=>Ee,TL:()=>u,is:()=>pe,jb:()=>m,wT:()=>s});var o=l(89726),e=l(67336),A=l(10438),h=l(73664),d=l(17705),w=l(2615),f=l(21413),F=l(12496),M=l(63386),K=l(32046),j=l(49046),Z=l(88968);const Q=["text"],$=[[["mat-icon"]],"*"],ie=["mat-icon","*"];function _e(_,T){if(1&_&&h.nrm(0,"mat-pseudo-checkbox",1),2&_){const P=h.XpG();h.Y8G("disabled",P.disabled)("state",P.selected?"checked":"unchecked")}}function ye(_,T){if(1&_&&h.nrm(0,"mat-pseudo-checkbox",3),2&_){const P=h.XpG();h.Y8G("disabled",P.disabled)}}function se(_,T){if(1&_&&(h.j41(0,"span",4),h.EFF(1),h.k0s()),2&_){const P=h.XpG();h.R7$(),h.SpI("(",P.group.label,")")}}const pe=new w.nKC("MAT_OPTION_PARENT_COMPONENT"),Ee=new w.nKC("MatOptgroup");class t{source;isUserInput;constructor(T,P=!1){this.source=T,this.isUserInput=P}}let s=(()=>{class _{_element=(0,w.WQX)(h.aKT);_changeDetectorRef=(0,w.WQX)(d.gRc);_parent=(0,w.WQX)(pe,{optional:!0});group=(0,w.WQX)(Ee,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,w.WQX)(o.g).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(P){this._disabled.set(P)}_disabled=(0,w.vPA)(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new h.bkB;_text;_stateChanges=new f.B;constructor(){const P=(0,w.WQX)(Z.l);P.load(K.A),P.load(j.Y),this._signalDisableRipple=!!this._parent&&(0,w.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(P=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),P&&this._emitSelectionChangeEvent())}deselect(P=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),P&&this._emitSelectionChangeEvent())}focus(P,C){const a=this._getHostElement();"function"==typeof a.focus&&a.focus(C)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(P){(P.keyCode===A.Fm||P.keyCode===A.t6)&&!(0,e.rp)(P)&&(this._selectViaInteraction(),P.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const P=this.viewValue;P!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=P)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(P=!1){this.onSelectionChange.emit(new t(this,P))}static \u0275fac=function(C){return new(C||_)};static \u0275cmp=h.VBU({type:_,selectors:[["mat-option"]],viewQuery:function(C,a){if(1&C&&h.GBs(Q,7),2&C){let x;h.mGM(x=h.lsd())&&(a._text=x.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(C,a){1&C&&h.bIt("click",function(){return a._selectViaInteraction()})("keydown",function(Y){return a._handleKeydown(Y)}),2&C&&(h.Avn("id",a.id),h.BMQ("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),h.AVh("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",d.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:ie,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(C,a){1&C&&(h.NAR($),h.nVh(0,_e,1,2,"mat-pseudo-checkbox",1),h.SdG(1),h.j41(2,"span",2,0),h.SdG(4,1),h.k0s(),h.nVh(5,ye,1,1,"mat-pseudo-checkbox",3),h.nVh(6,se,2,1,"span",4),h.nrm(7,"div",5)),2&C&&(h.vxM(a.multiple?0:-1),h.R7$(5),h.vxM(a.multiple||!a.selected||a.hideSingleSelectionIndicator?-1:5),h.R7$(),h.vxM(a.group&&a.group._inert?6:-1),h.R7$(),h.Y8G("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[M.w,F.r6],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return _})();function m(_,T,P){if(P.length){let C=T.toArray(),a=P.toArray(),x=0;for(let Y=0;Y<_+1;Y++)C[Y].group&&C[Y].group===a[x]&&x++;return x}return 0}function u(_,T,P,C){return _P+C?Math.max(0,_-C+T):P}},96695(ke,q,l){"use strict";l.d(q,{Ou:()=>L,iy:()=>Ee,xX:()=>$});var i=l(2615),g=l(73664),p=l(17705),D=l(21413),o=l(92771),e=l(89726),A=l(69588),h=l(96183),d=l(23029),w=l(22598),f=l(40455),F=l(86156),M=l(88834);function K(t,s){if(1&t&&(g.j41(0,"mat-option",17),g.EFF(1),g.k0s()),2&t){const m=s.$implicit;g.Y8G("value",m),g.R7$(),g.SpI(" ",m," ")}}function j(t,s){if(1&t){const m=g.RV6();g.j41(0,"mat-form-field",14)(1,"mat-select",16,0),g.bIt("selectionChange",function(_){i.eBV(m);const T=g.XpG(2);return i.Njj(T._changePageSize(_.value))}),g.Z7z(3,K,2,2,"mat-option",17,g.fX1),g.k0s(),g.j41(5,"div",18),g.bIt("click",function(){i.eBV(m);const _=g.sdS(2);return i.Njj(_.open())}),g.k0s()()}if(2&t){const m=g.XpG(2);g.Y8G("appearance",m._formFieldAppearance)("color",m.color),g.R7$(),g.Y8G("value",m.pageSize)("disabled",m.disabled),g.jOp("aria-labelledby",m._pageSizeLabelId),g.Y8G("panelClass",m.selectConfig.panelClass||"")("disableOptionCentering",m.selectConfig.disableOptionCentering),g.R7$(2),g.Dyx(m._displayedPageSizeOptions)}}function Z(t,s){if(1&t&&(g.j41(0,"div",15),g.EFF(1),g.k0s()),2&t){const m=g.XpG(2);g.R7$(),g.JRh(m.pageSize)}}function ee(t,s){if(1&t&&(g.j41(0,"div",3)(1,"div",13),g.EFF(2),g.k0s(),g.nVh(3,j,6,7,"mat-form-field",14),g.nVh(4,Z,2,1,"div",15),g.k0s()),2&t){const m=g.XpG();g.R7$(),g.BMQ("id",m._pageSizeLabelId),g.R7$(),g.SpI(" ",m._intl.itemsPerPageLabel," "),g.R7$(),g.vxM(m._displayedPageSizeOptions.length>1?3:-1),g.R7$(),g.vxM(m._displayedPageSizeOptions.length<=1?4:-1)}}function V(t,s){if(1&t){const m=g.RV6();g.j41(0,"button",19),g.bIt("click",function(){i.eBV(m);const _=g.XpG();return i.Njj(_._buttonClicked(0,_._previousButtonsDisabled()))}),i.qSk(),g.j41(1,"svg",8),g.nrm(2,"path",20),g.k0s()()}if(2&t){const m=g.XpG();g.Y8G("matTooltip",m._intl.firstPageLabel)("matTooltipDisabled",m._previousButtonsDisabled())("disabled",m._previousButtonsDisabled())("tabindex",m._previousButtonsDisabled()?-1:null),g.BMQ("aria-label",m._intl.firstPageLabel)}}function Q(t,s){if(1&t){const m=g.RV6();g.j41(0,"button",21),g.bIt("click",function(){i.eBV(m);const _=g.XpG();return i.Njj(_._buttonClicked(_.getNumberOfPages()-1,_._nextButtonsDisabled()))}),i.qSk(),g.j41(1,"svg",8),g.nrm(2,"path",22),g.k0s()()}if(2&t){const m=g.XpG();g.Y8G("matTooltip",m._intl.lastPageLabel)("matTooltipDisabled",m._nextButtonsDisabled())("disabled",m._nextButtonsDisabled())("tabindex",m._nextButtonsDisabled()?-1:null),g.BMQ("aria-label",m._intl.lastPageLabel)}}let $=(()=>{class t{changes=new D.B;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(m,u,_)=>{if(0==_||0==u)return`0 of ${_}`;const T=m*u;return`${T+1} \u2013 ${T<(_=Math.max(_,0))?Math.min(T+u,_):T+u} of ${_}`};static \u0275fac=function(u){return new(u||t)};static \u0275prov=i.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const _e={provide:$,deps:[[new g.Xx1,new g.kdw,$]],useFactory:function ie(t){return t||new $}},pe=new i.nKC("MAT_PAGINATOR_DEFAULT_OPTIONS");let Ee=(()=>{class t{_intl=(0,i.WQX)($);_changeDetectorRef=(0,i.WQX)(p.gRc);_formFieldAppearance;_pageSizeLabelId=(0,i.WQX)(e.g).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new o.m(1);color;get pageIndex(){return this._pageIndex}set pageIndex(m){this._pageIndex=Math.max(m||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(m){this._length=m||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(m){this._pageSize=Math.max(m||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(m){this._pageSizeOptions=(m||[]).map(u=>(0,p.Udg)(u,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new g.bkB;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){const m=this._intl,u=(0,i.WQX)(pe,{optional:!0});if(this._intlChanges=m.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:_,pageSizeOptions:T,hidePageSize:P,showFirstLastButtons:C}=u;null!=_&&(this._pageSize=_),null!=T&&(this._pageSizeOptions=T),null!=P&&(this.hidePageSize=P),null!=C&&(this.showFirstLastButtons=C)}this._formFieldAppearance=u?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const m=this.getNumberOfPages()-1;return this.pageIndexm-u),this._changeDetectorRef.markForCheck())}_emitPageEvent(m){this.page.emit({previousPageIndex:m,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(m){const u=this.pageIndex;m!==u&&(this.pageIndex=m,this._emitPageEvent(u))}_buttonClicked(m,u){u||this._navigate(m)}static \u0275fac=function(u){return new(u||t)};static \u0275cmp=g.VBU({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",p.Udg],length:[2,"length","length",p.Udg],pageSize:[2,"pageSize","pageSize",p.Udg],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",p.L39],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",p.L39],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",p.L39]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(u,_){1&u&&(g.j41(0,"div",1)(1,"div",2),g.nVh(2,ee,5,4,"div",3),g.j41(3,"div",4)(4,"div",5),g.EFF(5),g.k0s(),g.nVh(6,V,3,5,"button",6),g.j41(7,"button",7),g.bIt("click",function(){return _._buttonClicked(_.pageIndex-1,_._previousButtonsDisabled())}),i.qSk(),g.j41(8,"svg",8),g.nrm(9,"path",9),g.k0s()(),i.joV(),g.j41(10,"button",10),g.bIt("click",function(){return _._buttonClicked(_.pageIndex+1,_._nextButtonsDisabled())}),i.qSk(),g.j41(11,"svg",8),g.nrm(12,"path",11),g.k0s()(),g.nVh(13,Q,3,5,"button",12),g.k0s()()()),2&u&&(g.R7$(2),g.vxM(_.hidePageSize?-1:2),g.R7$(3),g.SpI(" ",_._intl.getRangeLabel(_.pageIndex,_.pageSize,_.length)," "),g.R7$(),g.vxM(_.showFirstLastButtons?6:-1),g.R7$(),g.Y8G("matTooltip",_._intl.previousPageLabel)("matTooltipDisabled",_._previousButtonsDisabled())("disabled",_._previousButtonsDisabled())("tabindex",_._previousButtonsDisabled()?-1:null),g.BMQ("aria-label",_._intl.previousPageLabel),g.R7$(3),g.Y8G("matTooltip",_._intl.nextPageLabel)("matTooltipDisabled",_._nextButtonsDisabled())("disabled",_._nextButtonsDisabled())("tabindex",_._nextButtonsDisabled()?-1:null),g.BMQ("aria-label",_._intl.nextPageLabel),g.R7$(3),g.vxM(_.showFirstLastButtons?13:-1))},dependencies:[A.rl,h.VO,d.wT,w.iY,f.oV],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}\n"],encapsulation:2,changeDetection:0})}return t})(),L=(()=>{class t{static \u0275fac=function(u){return new(u||t)};static \u0275mod=g.$C({type:t});static \u0275inj=i.G2t({providers:[_e],imports:[M.Hl,h.Ve,F.u,Ee]})}return t})()},67575(ke,q,l){"use strict";l.d(q,{HM:()=>w,PO:()=>F});var i=l(2615),g=l(73664),p=l(17705),D=l(31804),o=l(22466);function e(M,K){1&M&&g.Hgh(0,"div",2)}const A=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let w=(()=>{class M{_elementRef=(0,i.WQX)(g.aKT);_ngZone=(0,i.WQX)(g.SKi);_changeDetectorRef=(0,i.WQX)(p.gRc);_renderer=(0,i.WQX)(g.sFG);_cleanupTransitionEnd;constructor(){const j=(0,D._J)(),Z=(0,i.WQX)(A,{optional:!0});this._isNoopAnimation="di-disabled"===j,"reduced-motion"===j&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion"),Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation;get color(){return this._color||this._defaultColor}set color(j){this._color=j}_color;_defaultColor="primary";get value(){return this._value}set value(j){this._value=f(j||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(j){this._bufferValue=f(j||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new g.bkB;get mode(){return this._mode}set mode(j){this._mode=j,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler)})}ngOnDestroy(){this._cleanupTransitionEnd?.()}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}_transitionendHandler=j=>{0===this.animationEnd.observers.length||!j.target||!j.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(Z){return new(Z||M)};static \u0275cmp=g.VBU({type:M,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(Z,ee){2&Z&&(g.BMQ("aria-valuenow",ee._isIndeterminate()?null:ee.value)("mode",ee.mode),g.HbH("mat-"+ee.color),g.AVh("_mat-animation-noopable",ee._isNoopAnimation)("mdc-linear-progress--animation-ready",!ee._isNoopAnimation)("mdc-linear-progress--indeterminate",ee._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",p.Udg],bufferValue:[2,"bufferValue","bufferValue",p.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(Z,ee){1&Z&&(g.rj2(0,"div",0),g.Hgh(1,"div",1),g.nVh(2,e,1,0,"div",2),g.eux(),g.rj2(3,"div",3),g.Hgh(4,"span",4),g.eux(),g.rj2(5,"div",5),g.Hgh(6,"span",4),g.eux()),2&Z&&(g.R7$(),g.xc7("flex-basis",ee._getBufferBarFlexBasis()),g.R7$(),g.vxM("buffer"===ee.mode?2:-1),g.R7$(),g.xc7("transform",ee._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}\n"],encapsulation:2,changeDetection:0})}return M})();function f(M,K=0,j=100){return Math.max(K,Math.min(j,M))}let F=(()=>{class M{static \u0275fac=function(Z){return new(Z||M)};static \u0275mod=g.$C({type:M});static \u0275inj=i.G2t({imports:[o.y]})}return M})()},9183(ke,q,l){"use strict";l.d(q,{D6:()=>j,LG:()=>M});var i=l(2615),g=l(73664),p=l(17705),D=l(72200),o=l(31804),e=l(22466);const A=["determinateSpinner"];function h(Z,ee){if(1&Z&&(i.qSk(),g.j41(0,"svg",11),g.nrm(1,"circle",12),g.k0s()),2&Z){const V=g.XpG();g.BMQ("viewBox",V._viewBox()),g.R7$(),g.xc7("stroke-dasharray",V._strokeCircumference(),"px")("stroke-dashoffset",V._strokeCircumference()/2,"px")("stroke-width",V._circleStrokeWidth(),"%"),g.BMQ("r",V._circleRadius())}}const d=new i.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function w(){return{diameter:f}}}),f=100;let M=(()=>{class Z{_elementRef=(0,i.WQX)(g.aKT);_noopAnimations;get color(){return this._color||this._defaultColor}set color(V){this._color=V}_color;_defaultColor="primary";_determinateCircle;constructor(){const V=(0,i.WQX)(d),Q=(0,o._J)(),$=this._elementRef.nativeElement;this._noopAnimations="di-disabled"===Q&&!!V&&!V._forceAnimations,this.mode="mat-spinner"===$.nodeName.toLowerCase()?"indeterminate":"determinate",!this._noopAnimations&&"reduced-motion"===Q&&$.classList.add("mat-progress-spinner-reduced-motion"),V&&(V.color&&(this.color=this._defaultColor=V.color),V.diameter&&(this.diameter=V.diameter),V.strokeWidth&&(this.strokeWidth=V.strokeWidth))}mode;get value(){return"determinate"===this.mode?this._value:0}set value(V){this._value=Math.max(0,Math.min(100,V||0))}_value=0;get diameter(){return this._diameter}set diameter(V){this._diameter=V||0}_diameter=f;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(V){this._strokeWidth=V||0}_strokeWidth;_circleRadius(){return(this.diameter-10)/2}_viewBox(){const V=2*this._circleRadius()+this.strokeWidth;return`0 0 ${V} ${V}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(Q){return new(Q||Z)};static \u0275cmp=g.VBU({type:Z,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(Q,$){if(1&Q&&g.GBs(A,5),2&Q){let ie;g.mGM(ie=g.lsd())&&($._determinateCircle=ie.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(Q,$){2&Q&&(g.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===$.mode?$.value:null)("mode",$.mode),g.HbH("mat-"+$.color),g.xc7("width",$.diameter,"px")("height",$.diameter,"px")("--mat-progress-spinner-size",$.diameter+"px")("--mat-progress-spinner-active-indicator-width",$.diameter+"px"),g.AVh("_mat-animation-noopable",$._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===$.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",p.Udg],diameter:[2,"diameter","diameter",p.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",p.Udg]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(Q,$){if(1&Q&&(g.DNE(0,h,2,8,"ng-template",null,0,g.C5r),g.j41(2,"div",2,1),i.qSk(),g.j41(4,"svg",3),g.nrm(5,"circle",4),g.k0s()(),i.joV(),g.j41(6,"div",5)(7,"div",6)(8,"div",7),g.eu8(9,8),g.k0s(),g.j41(10,"div",9),g.eu8(11,8),g.k0s(),g.j41(12,"div",10),g.eu8(13,8),g.k0s()()()),2&Q){const ie=g.sdS(1);g.R7$(4),g.BMQ("viewBox",$._viewBox()),g.R7$(),g.xc7("stroke-dasharray",$._strokeCircumference(),"px")("stroke-dashoffset",$._strokeDashOffset(),"px")("stroke-width",$._circleStrokeWidth(),"%"),g.BMQ("r",$._circleRadius()),g.R7$(4),g.Y8G("ngTemplateOutlet",ie),g.R7$(2),g.Y8G("ngTemplateOutlet",ie),g.R7$(2),g.Y8G("ngTemplateOutlet",ie)}},dependencies:[D.T3],styles:[".mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}\n"],encapsulation:2,changeDetection:0})}return Z})(),j=(()=>{class Z{static \u0275fac=function(Q){return new(Q||Z)};static \u0275mod=g.$C({type:Z});static \u0275inj=i.G2t({imports:[e.y]})}return Z})()},70483(ke,q,l){"use strict";l.d(q,{O:()=>D});var i=l(2615),g=l(73664),p=l(22466);let D=(()=>{class o{static \u0275fac=function(h){return new(h||o)};static \u0275mod=g.$C({type:o});static \u0275inj=i.G2t({imports:[p.y]})}return o})()},63386(ke,q,l){"use strict";l.d(q,{w:()=>p});var i=l(73664),g=l(31804);let p=(()=>{class D{_animationsDisabled=(0,g.Rc)();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(A){return new(A||D)};static \u0275cmp=i.VBU({type:D,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(A,h){2&A&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===h.state)("mat-pseudo-checkbox-checked","checked"===h.state)("mat-pseudo-checkbox-disabled",h.disabled)("mat-pseudo-checkbox-minimal","minimal"===h.appearance)("mat-pseudo-checkbox-full","full"===h.appearance)("_mat-animation-noopable",h._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(A,h){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}\n'],encapsulation:2,changeDetection:0})}return D})()},5951(ke,q,l){"use strict";l.d(q,{VT:()=>ye,Wk:()=>pe,_g:()=>se});var i=l(76838),g=l(89726),p=l(18689),D=l(2615),o=l(73664),e=l(17705),A=l(89417),h=l(88968),d=l(31804),w=l(32046),f=l(12496),F=l(53155),M=l(22466),K=l(26881);const j=["input"],Z=["formField"],ee=["*"];class V{source;value;constructor(L,t){this.source=L,this.value=t}}const Q={provide:A.kq,useExisting:(0,D.Rfq)(()=>ye),multi:!0},$=new D.nKC("MatRadioGroup"),ie=new D.nKC("mat-radio-default-options",{providedIn:"root",factory:function _e(){return{color:"accent",disabledInteractive:!1}}});let ye=(()=>{class Ee{_changeDetector=(0,D.WQX)(e.gRc);_value=null;_name=(0,D.WQX)(g.g).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new o.bkB;_radios;color;get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=t,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(t=>t===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(s=>{s.checked=this.value===s.value,s.checked&&(this._selected=s)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new V(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=o.FsC({type:Ee,selectors:[["mat-radio-group"]],contentQueries:function(s,m,u){if(1&s&&o.wni(u,se,5),2&s){let _;o.mGM(_=o.lsd())&&(m._radios=_)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",e.L39],required:[2,"required","required",e.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",e.L39]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[o.Jv_([Q,{provide:$,useExisting:Ee}])]})}return Ee})(),se=(()=>{class Ee{_elementRef=(0,D.WQX)(o.aKT);_changeDetector=(0,D.WQX)(e.gRc);_focusMonitor=(0,D.WQX)(i.FN);_radioDispatcher=(0,D.WQX)(p.z);_defaultOptions=(0,D.WQX)(ie,{optional:!0});_ngZone=(0,D.WQX)(o.SKi);_renderer=(0,D.WQX)(o.sFG);_uniqueId=(0,D.WQX)(g.g).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(t){this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}_labelPosition;get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(t)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){t!==this._required&&this._changeDetector.markForCheck(),this._required=t}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(t){this._color=t}_color;get disabledInteractive(){return this._disabledInteractive||null!==this.radioGroup&&this.radioGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new o.bkB;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=(0,d.Rc)();_injector=(0,D.WQX)(D.zZn);constructor(){(0,D.WQX)(h.l).load(w.A);const t=(0,D.WQX)($,{optional:!0}),s=(0,D.WQX)(new e.ES_("tabindex"),{optional:!0});this.radioGroup=t,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,s&&(this.tabIndex=(0,e.Udg)(s,0))}focus(t,s){s?this._focusMonitor.focusVia(this._inputElement,s,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((t,s)=>{t!==this.id&&s===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new V(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(t){if(t.stopPropagation(),!this.checked&&!this.disabled){const s=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),s&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(t){this._onInputInteraction(t),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}_onInputClick=t=>{this.disabled&&this.disabledInteractive&&t.preventDefault()};_updateTabIndex(){const t=this.radioGroup;let s;if(s=t&&t.selected&&!this.disabled?t.selected===this?this.tabIndex:-1:this.tabIndex,s!==this._previousTabIndex){const m=this._inputElement?.nativeElement;m&&(m.setAttribute("tabindex",s+""),this._previousTabIndex=s,(0,o.mal)(()=>{queueMicrotask(()=>{t&&t.selected&&t.selected!==this&&document.activeElement===m&&(t.selected?._inputElement.nativeElement.focus(),document.activeElement===m&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(s){return new(s||Ee)};static \u0275cmp=o.VBU({type:Ee,selectors:[["mat-radio-button"]],viewQuery:function(s,m){if(1&s&&(o.GBs(j,5),o.GBs(Z,7,o.aKT)),2&s){let u;o.mGM(u=o.lsd())&&(m._inputElement=u.first),o.mGM(u=o.lsd())&&(m._rippleTrigger=u.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(s,m){1&s&&o.bIt("focus",function(){return m._inputElement.nativeElement.focus()}),2&s&&(o.BMQ("id",m.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),o.AVh("mat-primary","primary"===m.color)("mat-accent","accent"===m.color)("mat-warn","warn"===m.color)("mat-mdc-radio-checked",m.checked)("mat-mdc-radio-disabled",m.disabled)("mat-mdc-radio-disabled-interactive",m.disabledInteractive)("_mat-animation-noopable",m._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",e.L39],tabIndex:[2,"tabIndex","tabIndex",t=>null==t?0:(0,e.Udg)(t)],checked:[2,"checked","checked",e.L39],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",e.L39],required:[2,"required","required",e.L39],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",e.L39]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:ee,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(s,m){if(1&s){const u=o.RV6();o.NAR(),o.j41(0,"div",2,0)(2,"div",3)(3,"div",4),o.bIt("click",function(T){return D.eBV(u),D.Njj(m._onTouchTargetClick(T))}),o.k0s(),o.j41(4,"input",5,1),o.bIt("change",function(T){return D.eBV(u),D.Njj(m._onInputInteraction(T))}),o.k0s(),o.j41(6,"div",6),o.nrm(7,"div",7)(8,"div",8),o.k0s(),o.j41(9,"div",9),o.nrm(10,"div",10),o.k0s()(),o.j41(11,"label",11),o.SdG(12),o.k0s()()}2&s&&(o.Y8G("labelPosition",m.labelPosition),o.R7$(2),o.AVh("mdc-radio--disabled",m.disabled),o.R7$(2),o.Y8G("id",m.inputId)("checked",m.checked)("disabled",m.disabled&&!m.disabledInteractive)("required",m.required),o.BMQ("name",m.name)("value",m.value)("aria-label",m.ariaLabel)("aria-labelledby",m.ariaLabelledby)("aria-describedby",m.ariaDescribedby)("aria-disabled",m.disabled&&m.disabledInteractive?"true":null),o.R7$(5),o.Y8G("matRippleTrigger",m._rippleTrigger.nativeElement)("matRippleDisabled",m._isRippleDisabled())("matRippleCentered",!0),o.R7$(2),o.Y8G("for",m.inputId))},dependencies:[f.r6,F.t],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],encapsulation:2,changeDetection:0})}return Ee})(),pe=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275mod=o.$C({type:Ee});static \u0275inj=D.G2t({imports:[M.y,K.p,se,M.y]})}return Ee})()},11048(ke,q,l){"use strict";l.d(q,{E:()=>M});var i=l(2615),g=l(73664),p=l(39842),D=l(44522),o=l(31804),e=l(12496);const A={capture:!0},h=["focus","mousedown","mouseenter","touchstart"],d="mat-ripple-loader-uninitialized",w="mat-ripple-loader-class-name",f="mat-ripple-loader-centered",F="mat-ripple-loader-disabled";let M=(()=>{class K{_document=(0,i.WQX)(i.qQL);_animationsDisabled=(0,o.Rc)();_globalRippleOptions=(0,i.WQX)(e.$E,{optional:!0});_platform=(0,i.WQX)(p.O);_ngZone=(0,i.WQX)(g.SKi);_injector=(0,i.WQX)(i.zZn);_eventCleanups;_hosts=new Map;constructor(){const Z=(0,i.WQX)(g._9s).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>h.map(ee=>Z.listen(this._document,ee,this._onInteraction,A)))}ngOnDestroy(){const Z=this._hosts.keys();for(const ee of Z)this.destroyRipple(ee);this._eventCleanups.forEach(ee=>ee())}configureRipple(Z,ee){Z.setAttribute(d,this._globalRippleOptions?.namespace??""),(ee.className||!Z.hasAttribute(w))&&Z.setAttribute(w,ee.className||""),ee.centered&&Z.setAttribute(f,""),ee.disabled&&Z.setAttribute(F,"")}setDisabled(Z,ee){const V=this._hosts.get(Z);V?(V.target.rippleDisabled=ee,!ee&&!V.hasSetUpEvents&&(V.hasSetUpEvents=!0,V.renderer.setupTriggerEvents(Z))):ee?Z.setAttribute(F,""):Z.removeAttribute(F)}_onInteraction=Z=>{const ee=(0,D.Fb)(Z);if(ee instanceof HTMLElement){const V=ee.closest(`[${d}="${this._globalRippleOptions?.namespace??""}"]`);V&&this._createRipple(V)}};_createRipple(Z){if(!this._document||this._hosts.has(Z))return;Z.querySelector(".mat-ripple")?.remove();const ee=this._document.createElement("span");ee.classList.add("mat-ripple",Z.getAttribute(w)),Z.append(ee);const V=this._globalRippleOptions,Q=this._animationsDisabled?0:V?.animation?.enterDuration??e.EX.enterDuration,$=this._animationsDisabled?0:V?.animation?.exitDuration??e.EX.exitDuration,ie={rippleDisabled:this._animationsDisabled||V?.disabled||Z.hasAttribute(F),rippleConfig:{centered:Z.hasAttribute(f),terminateOnPointerUp:V?.terminateOnPointerUp,animation:{enterDuration:Q,exitDuration:$}}},_e=new e.ug(ie,this._ngZone,ee,this._platform,this._injector),ye=!ie.rippleDisabled;ye&&_e.setupTriggerEvents(Z),this._hosts.set(Z,{target:ie,renderer:_e,hasSetUpEvents:ye}),Z.removeAttribute(d)}destroyRipple(Z){const ee=this._hosts.get(Z);ee&&(ee.renderer._removeTriggerEvents(),this._hosts.delete(Z))}static \u0275fac=function(ee){return new(ee||K)};static \u0275prov=i.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})()},26881(ke,q,l){"use strict";l.d(q,{p:()=>D});var i=l(2615),g=l(73664),p=l(22466);let D=(()=>{class o{static \u0275fac=function(h){return new(h||o)};static \u0275mod=g.$C({type:o});static \u0275inj=i.G2t({imports:[p.y,p.y]})}return o})()},12496(ke,q,l){"use strict";l.d(q,{$E:()=>_e,EX:()=>K,r6:()=>ye,ug:()=>$});var i=l(39842),g=l(83300),p=l(44522),D=l(73664),o=l(2615),e=l(95735),A=l(67847),h=l(88968),d=l(31804),w=function(se){return se[se.FADING_IN=0]="FADING_IN",se[se.VISIBLE=1]="VISIBLE",se[se.FADING_OUT=2]="FADING_OUT",se[se.HIDDEN=3]="HIDDEN",se}(w||{});class f{_renderer;element;config;_animationForciblyDisabledThroughCss;state=w.HIDDEN;constructor(pe,Ee,L,t=!1){this._renderer=pe,this.element=Ee,this.config=L,this._animationForciblyDisabledThroughCss=t}fadeOut(){this._renderer.fadeOutRipple(this)}}const F=(0,g.B)({passive:!0,capture:!0});class M{_events=new Map;addHandler(pe,Ee,L,t){const s=this._events.get(Ee);if(s){const m=s.get(L);m?m.add(t):s.set(L,new Set([t]))}else this._events.set(Ee,new Map([[L,new Set([t])]])),pe.runOutsideAngular(()=>{document.addEventListener(Ee,this._delegateEventHandler,F)})}removeHandler(pe,Ee,L){const t=this._events.get(pe);if(!t)return;const s=t.get(Ee);s&&(s.delete(L),0===s.size&&t.delete(Ee),0===t.size&&(this._events.delete(pe),document.removeEventListener(pe,this._delegateEventHandler,F)))}_delegateEventHandler=pe=>{const Ee=(0,p.Fb)(pe);Ee&&this._events.get(pe.type)?.forEach((L,t)=>{(t===Ee||t.contains(Ee))&&L.forEach(s=>s.handleEvent(pe))})}}const K={enterDuration:225,exitDuration:150},Z=(0,g.B)({passive:!0,capture:!0}),ee=["mousedown","touchstart"],V=["mouseup","mouseleave","touchend","touchcancel"];let Q=(()=>{class se{static \u0275fac=function(L){return new(L||se)};static \u0275cmp=D.VBU({type:se,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(L,t){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}\n"],encapsulation:2,changeDetection:0})}return se})();class ${_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new M;constructor(pe,Ee,L,t,s){this._target=pe,this._ngZone=Ee,this._platform=t,t.isBrowser&&(this._containerElement=(0,A.i8)(L)),s&&s.get(h.l).load(Q)}fadeInRipple(pe,Ee,L={}){const t=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s={...K,...L.animation};L.centered&&(pe=t.left+t.width/2,Ee=t.top+t.height/2);const m=L.radius||function ie(se,pe,Ee){const L=Math.max(Math.abs(se-Ee.left),Math.abs(se-Ee.right)),t=Math.max(Math.abs(pe-Ee.top),Math.abs(pe-Ee.bottom));return Math.sqrt(L*L+t*t)}(pe,Ee,t),u=pe-t.left,_=Ee-t.top,T=s.enterDuration,P=document.createElement("div");P.classList.add("mat-ripple-element"),P.style.left=u-m+"px",P.style.top=_-m+"px",P.style.height=2*m+"px",P.style.width=2*m+"px",null!=L.color&&(P.style.backgroundColor=L.color),P.style.transitionDuration=`${T}ms`,this._containerElement.appendChild(P);const C=window.getComputedStyle(P),x=C.transitionDuration,Y="none"===C.transitionProperty||"0s"===x||"0s, 0s"===x||0===t.width&&0===t.height,R=new f(this,P,L,Y);P.style.transform="scale3d(1, 1, 1)",R.state=w.FADING_IN,L.persistent||(this._mostRecentTransientRipple=R);let U=null;return!Y&&(T||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const fe=()=>{U&&(U.fallbackTimer=null),clearTimeout(he),this._finishRippleTransition(R)},re=()=>this._destroyRipple(R),he=setTimeout(re,T+100);P.addEventListener("transitionend",fe),P.addEventListener("transitioncancel",re),U={onTransitionEnd:fe,onTransitionCancel:re,fallbackTimer:he}}),this._activeRipples.set(R,U),(Y||!T)&&this._finishRippleTransition(R),R}fadeOutRipple(pe){if(pe.state===w.FADING_OUT||pe.state===w.HIDDEN)return;const Ee=pe.element,L={...K,...pe.config.animation};Ee.style.transitionDuration=`${L.exitDuration}ms`,Ee.style.opacity="0",pe.state=w.FADING_OUT,(pe._animationForciblyDisabledThroughCss||!L.exitDuration)&&this._finishRippleTransition(pe)}fadeOutAll(){this._getActiveRipples().forEach(pe=>pe.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(pe=>{pe.config.persistent||pe.fadeOut()})}setupTriggerEvents(pe){const Ee=(0,A.i8)(pe);!this._platform.isBrowser||!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,ee.forEach(L=>{$._eventManager.addHandler(this._ngZone,L,Ee,this)}))}handleEvent(pe){"mousedown"===pe.type?this._onMousedown(pe):"touchstart"===pe.type?this._onTouchStart(pe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{V.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,Z)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(pe){pe.state===w.FADING_IN?this._startFadeOutTransition(pe):pe.state===w.FADING_OUT&&this._destroyRipple(pe)}_startFadeOutTransition(pe){const Ee=pe===this._mostRecentTransientRipple,{persistent:L}=pe.config;pe.state=w.VISIBLE,!L&&(!Ee||!this._isPointerDown)&&pe.fadeOut()}_destroyRipple(pe){const Ee=this._activeRipples.get(pe)??null;this._activeRipples.delete(pe),this._activeRipples.size||(this._containerRect=null),pe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),pe.state=w.HIDDEN,null!==Ee&&(pe.element.removeEventListener("transitionend",Ee.onTransitionEnd),pe.element.removeEventListener("transitioncancel",Ee.onTransitionCancel),null!==Ee.fallbackTimer&&clearTimeout(Ee.fallbackTimer)),pe.element.remove()}_onMousedown(pe){const Ee=(0,e._)(pe),L=this._lastTouchStartEvent&&Date.now(){!pe.config.persistent&&(pe.state===w.VISIBLE||pe.config.terminateOnPointerUp&&pe.state===w.FADING_IN)&&pe.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const pe=this._triggerElement;pe&&(ee.forEach(Ee=>$._eventManager.removeHandler(Ee,pe,this)),this._pointerUpEventsRegistered&&(V.forEach(Ee=>pe.removeEventListener(Ee,this,Z)),this._pointerUpEventsRegistered=!1))}}const _e=new o.nKC("mat-ripple-global-options");let ye=(()=>{class se{_elementRef=(0,o.WQX)(D.aKT);_animationsDisabled=(0,d.Rc)();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(Ee){Ee&&this.fadeOutAllNonPersistent(),this._disabled=Ee,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ee){this._trigger=Ee,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const Ee=(0,o.WQX)(D.SKi),L=(0,o.WQX)(i.O),t=(0,o.WQX)(_e,{optional:!0}),s=(0,o.WQX)(o.zZn);this._globalOptions=t||{},this._rippleRenderer=new $(this,Ee,this._elementRef,L,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,...this._animationsDisabled?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Ee,L=0,t){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,L,{...this.rippleConfig,...t}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ee})}static \u0275fac=function(L){return new(L||se)};static \u0275dir=D.FsC({type:se,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(L,t){2&L&&D.AVh("mat-ripple-unbounded",t.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return se})()},96183(ke,q,l){"use strict";l.d(q,{$2:()=>be,JO:()=>Re,VO:()=>Se,Ve:()=>nt});var i=l(49338),g=l(2615),p=l(73664),D=l(17705),o=l(5718),e=l(18617),A=l(17094),h=l(89726),d=l(99090),w=l(61577),f=l(83869),F=l(67336),M=l(10438),K=l(89417),j=l(21413),Z=l(59030),ee=l(57786),V=l(5964),Q=l(96354),$=l(99172),ie=l(25558),_e=l(96697),ye=l(56977),se=l(72200),pe=l(69588),Ee=l(31804),L=l(23029),t=l(2709),s=l(39336),m=l(40146),u=l(22466),_=l(71228);const T=["trigger"],P=["panel"],C=[[["mat-select-trigger"]],"*"],a=["mat-select-trigger","*"];function x($e,dt){if(1&$e&&(p.j41(0,"span",4),p.EFF(1),p.k0s()),2&$e){const yt=p.XpG();p.R7$(),p.JRh(yt.placeholder)}}function Y($e,dt){1&$e&&p.SdG(0)}function R($e,dt){if(1&$e&&(p.j41(0,"span",11),p.EFF(1),p.k0s()),2&$e){const yt=p.XpG(2);p.R7$(),p.JRh(yt.triggerValue)}}function U($e,dt){if(1&$e&&(p.j41(0,"span",5),p.nVh(1,Y,1,0)(2,R,2,1,"span",11),p.k0s()),2&$e){const yt=p.XpG();p.R7$(),p.vxM(yt.customTrigger?1:2)}}function fe($e,dt){if(1&$e){const yt=p.RV6();p.j41(0,"div",12,1),p.bIt("keydown",function(rt){g.eBV(yt);const Mn=p.XpG();return g.Njj(Mn._handleKeydown(rt))}),p.SdG(2,1),p.k0s()}if(2&$e){const yt=p.XpG();p.HbH(p.VkB("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",yt._getPanelTheme())),p.AVh("mat-select-panel-animations-enabled",!yt._animationsDisabled),p.Y8G("ngClass",yt.panelClass),p.BMQ("id",yt.id+"-panel")("aria-multiselectable",yt.multiple)("aria-label",yt.ariaLabel||null)("aria-labelledby",yt._getPanelAriaLabelledby())}}const ge=new g.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const $e=(0,g.WQX)(g.zZn);return()=>(0,i.RH)($e)}}),Re=new g.nKC("MAT_SELECT_CONFIG"),Me={provide:ge,deps:[],useFactory:function ce($e){const dt=(0,g.WQX)(g.zZn);return()=>(0,i.RH)(dt)}},ve=new g.nKC("MatSelectTrigger");class oe{source;value;constructor(dt,yt){this.source=dt,this.value=yt}}let Se=(()=>{class $e{_viewportRuler=(0,g.WQX)(o.Xj);_changeDetectorRef=(0,g.WQX)(D.gRc);_elementRef=(0,g.WQX)(p.aKT);_dir=(0,g.WQX)(w.dS,{optional:!0});_idGenerator=(0,g.WQX)(h.g);_renderer=(0,g.WQX)(p.sFG);_parentFormField=(0,g.WQX)(pe.xb,{optional:!0});ngControl=(0,g.WQX)(K.vO,{self:!0,optional:!0});_liveAnnouncer=(0,g.WQX)(A.Ai);_defaultOptions=(0,g.WQX)(Re,{optional:!0});_animationsDisabled=(0,Ee.Rc)();_initialized=new j.B;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(yt){const Et=this.options.toArray()[yt];if(Et){const rt=this.panel.nativeElement,Mn=(0,L.jb)(yt,this.options,this.optionGroups),qt=Et._getHostElement();rt.scrollTop=0===yt&&1===Mn?0:(0,L.TL)(qt.offsetTop,qt.offsetHeight,rt.scrollTop,rt.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(yt){return new oe(this,yt)}_scrollStrategyFactory=(0,g.WQX)(ge);_panelOpen=!1;_compareWith=(yt,Et)=>yt===Et;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new j.B;_errorStateTracker;stateChanges=new j.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(yt){this._disableRipple.set(yt)}_disableRipple=(0,g.vPA)(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(yt){this._hideSingleSelectionIndicator=yt,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(yt){this._placeholder=yt,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(K.k0.required)??!1}set required(yt){this._required=yt,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(yt){this._multiple=yt}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(yt){this._compareWith=yt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(yt){this._assignValue(yt)&&this._onChange(yt)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(yt){this._errorStateTracker.matcher=yt}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(yt){this._id=yt||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(yt){this._errorStateTracker.errorState=yt}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=(0,Z.v)(()=>{const yt=this.options;return yt?yt.changes.pipe((0,$.Z)(yt),(0,ie.n)(()=>(0,ee.h)(...yt.map(Et=>Et.onSelectionChange)))):this._initialized.pipe((0,ie.n)(()=>this.optionSelectionChanges))});openedChange=new p.bkB;_openedStream=this.openedChange.pipe((0,V.p)(yt=>yt),(0,Q.T)(()=>{}));_closedStream=this.openedChange.pipe((0,V.p)(yt=>!yt),(0,Q.T)(()=>{}));selectionChange=new p.bkB;valueChange=new p.bkB;constructor(){const yt=(0,g.WQX)(t.e),Et=(0,g.WQX)(K.cV,{optional:!0}),rt=(0,g.WQX)(K.j4,{optional:!0}),Mn=(0,g.WQX)(new D.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new s.X(yt,this.ngControl,rt,Et,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Mn?0:parseInt(Mn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new f.C(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe((0,ye.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,ye.Q)(this._destroy)).subscribe(yt=>{yt.added.forEach(Et=>Et.select()),yt.removed.forEach(Et=>Et.deselect())}),this.options.changes.pipe((0,$.Z)(null),(0,ye.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const yt=this._getTriggerAriaLabelledby(),Et=this.ngControl;if(yt!==this._triggerAriaLabelledBy){const rt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=yt,yt?rt.setAttribute("aria-labelledby",yt):rt.removeAttribute("aria-labelledby")}Et&&(this._previousControl!==Et.control&&(void 0!==this._previousControl&&null!==Et.disabled&&Et.disabled!==this.disabled&&(this.disabled=Et.disabled),this._previousControl=Et.control),this.updateErrorState())}ngOnChanges(yt){(yt.disabled||yt.userAriaDescribedBy)&&this.stateChanges.next(),yt.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe((0,_e.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){const yt=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!yt)return;const Et=`${this.id}-panel`;this._trackedModal&&(0,e.Ae)(this._trackedModal,"aria-owns",Et),(0,e.px)(yt,"aria-owns",Et),this._trackedModal=yt}_clearFromModal(){this._trackedModal&&((0,e.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel)return void this._detachOverlay();this._cleanupDetach?.(),this._cleanupDetach=()=>{Et(),clearTimeout(rt),this._cleanupDetach=void 0};const yt=this.panel.nativeElement,Et=this._renderer.listen(yt,"animationend",Mn=>{"_mat-select-exit"===Mn.animationName&&(this._cleanupDetach?.(),this._detachOverlay())}),rt=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);yt.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(yt){this._assignValue(yt)}registerOnChange(yt){this._onChange=yt}registerOnTouched(yt){this._onTouched=yt}setDisabledState(yt){this.disabled=yt,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const yt=this._selectionModel.selected.map(Et=>Et.viewValue);return this._isRtl()&&yt.reverse(),yt.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(yt){this.disabled||(this.panelOpen?this._handleOpenKeydown(yt):this._handleClosedKeydown(yt))}_handleClosedKeydown(yt){const Et=yt.keyCode,rt=Et===M.n6||Et===M.i7||Et===M.UQ||Et===M.LE,Mn=Et===M.Fm||Et===M.t6,qt=this._keyManager;if(!qt.isTyping()&&Mn&&!(0,F.rp)(yt)||(this.multiple||yt.altKey)&&rt)yt.preventDefault(),this.open();else if(!this.multiple){const S=this.selected;qt.onKeydown(yt);const Xt=this.selected;Xt&&S!==Xt&&this._liveAnnouncer.announce(Xt.viewValue,1e4)}}_handleOpenKeydown(yt){const Et=this._keyManager,rt=yt.keyCode,Mn=rt===M.n6||rt===M.i7,qt=Et.isTyping();if(Mn&&yt.altKey)yt.preventDefault(),this.close();else if(qt||rt!==M.Fm&&rt!==M.t6||!Et.activeItem||(0,F.rp)(yt))if(!qt&&this._multiple&&rt===M.A&&yt.ctrlKey){yt.preventDefault();const S=this.options.some(Xt=>!Xt.disabled&&!Xt.selected);this.options.forEach(Xt=>{Xt.disabled||(S?Xt.select():Xt.deselect())})}else{const S=Et.activeItemIndex;Et.onKeydown(yt),this._multiple&&Mn&&yt.shiftKey&&Et.activeItem&&Et.activeItemIndex!==S&&Et.activeItem._selectViaInteraction()}else yt.preventDefault(),Et.activeItem._selectViaInteraction()}_handleOverlayKeydown(yt){yt.keyCode===M._f&&!(0,F.rp)(yt)&&(yt.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_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(yt){if(this.options.forEach(Et=>Et.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&yt)Array.isArray(yt),yt.forEach(Et=>this._selectOptionByValue(Et)),this._sortValues();else{const Et=this._selectOptionByValue(yt);Et?this._keyManager.updateActiveItem(Et):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(yt){const Et=this.options.find(rt=>{if(this._selectionModel.isSelected(rt))return!1;try{return(null!=rt.value||this.canSelectNullableOptions)&&this._compareWith(rt.value,yt)}catch{return!1}});return Et&&this._selectionModel.select(Et),Et}_assignValue(yt){return!!(yt!==this._value||this._multiple&&Array.isArray(yt))&&(this.options&&this._setSelectionByValue(yt),this._value=yt,!0)}_skipPredicate=yt=>!this.panelOpen&&yt.disabled;_getOverlayWidth(yt){return"auto"===this.panelWidth?(yt instanceof i.$Q?yt.elementRef:yt||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const yt of this.options)yt._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new d.A(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const yt=(0,ee.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ye.Q)(yt)).subscribe(Et=>{this._onSelect(Et.source,Et.isUserInput),Et.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ee.h)(...this.options.map(Et=>Et._stateChanges)).pipe((0,ye.Q)(yt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(yt,Et){const rt=this._selectionModel.isSelected(yt);this.canSelectNullableOptions||null!=yt.value||this._multiple?(rt!==yt.selected&&(yt.selected?this._selectionModel.select(yt):this._selectionModel.deselect(yt)),Et&&this._keyManager.setActiveItem(yt),this.multiple&&(this._sortValues(),Et&&this.focus())):(yt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(yt.value)),rt!==this._selectionModel.isSelected(yt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const yt=this.options.toArray();this._selectionModel.sort((Et,rt)=>this.sortComparator?this.sortComparator(Et,rt,yt):yt.indexOf(Et)-yt.indexOf(rt)),this.stateChanges.next()}}_propagateChanges(yt){let Et;Et=this.multiple?this.selected.map(rt=>rt.value):this.selected?this.selected.value:yt,this._value=Et,this.valueChange.emit(Et),this._onChange(Et),this.selectionChange.emit(this._getChangeEvent(Et)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let yt=-1;for(let Et=0;Et0&&!!this._overlayDir}focus(yt){this._elementRef.nativeElement.focus(yt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const yt=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(yt?yt+" ":"")+this.ariaLabelledby:yt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let yt=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(yt+=" "+this.ariaLabelledby),yt||(yt=this._valueId),yt}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(yt){yt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",yt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(Et){return new(Et||$e)};static \u0275cmp=p.VBU({type:$e,selectors:[["mat-select"]],contentQueries:function(Et,rt,Mn){if(1&Et&&(p.wni(Mn,ve,5),p.wni(Mn,L.wT,5),p.wni(Mn,L.QC,5)),2&Et){let qt;p.mGM(qt=p.lsd())&&(rt.customTrigger=qt.first),p.mGM(qt=p.lsd())&&(rt.options=qt),p.mGM(qt=p.lsd())&&(rt.optionGroups=qt)}},viewQuery:function(Et,rt){if(1&Et&&(p.GBs(T,5),p.GBs(P,5),p.GBs(i.WB,5)),2&Et){let Mn;p.mGM(Mn=p.lsd())&&(rt.trigger=Mn.first),p.mGM(Mn=p.lsd())&&(rt.panel=Mn.first),p.mGM(Mn=p.lsd())&&(rt._overlayDir=Mn.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(Et,rt){1&Et&&p.bIt("keydown",function(qt){return rt._handleKeydown(qt)})("focus",function(){return rt._onFocus()})("blur",function(){return rt._onBlur()}),2&Et&&(p.BMQ("id",rt.id)("tabindex",rt.disabled?-1:rt.tabIndex)("aria-controls",rt.panelOpen?rt.id+"-panel":null)("aria-expanded",rt.panelOpen)("aria-label",rt.ariaLabel||null)("aria-required",rt.required.toString())("aria-disabled",rt.disabled.toString())("aria-invalid",rt.errorState)("aria-activedescendant",rt._getAriaActiveDescendant()),p.AVh("mat-mdc-select-disabled",rt.disabled)("mat-mdc-select-invalid",rt.errorState)("mat-mdc-select-required",rt.required)("mat-mdc-select-empty",rt.empty)("mat-mdc-select-multiple",rt.multiple)("mat-select-open",rt.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",D.L39],disableRipple:[2,"disableRipple","disableRipple",D.L39],tabIndex:[2,"tabIndex","tabIndex",yt=>null==yt?0:(0,D.Udg)(yt)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",D.L39],placeholder:"placeholder",required:[2,"required","required",D.L39],multiple:[2,"multiple","multiple",D.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",D.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",D.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",D.L39]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[p.Jv_([{provide:pe.qT,useExisting:$e},{provide:L.is,useExisting:$e}]),p.OA$],ngContentSelectors:a,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(Et,rt){if(1&Et){const Mn=p.RV6();p.NAR(C),p.j41(0,"div",2,0),p.bIt("click",function(){return g.eBV(Mn),g.Njj(rt.open())}),p.j41(3,"div",3),p.nVh(4,x,2,1,"span",4)(5,U,3,1,"span",5),p.k0s(),p.j41(6,"div",6)(7,"div",7),g.qSk(),p.j41(8,"svg",8),p.nrm(9,"path",9),p.k0s()()()(),p.DNE(10,fe,3,10,"ng-template",10),p.bIt("detach",function(){return g.eBV(Mn),g.Njj(rt.close())})("backdropClick",function(){return g.eBV(Mn),g.Njj(rt.close())})("overlayKeydown",function(S){return g.eBV(Mn),g.Njj(rt._handleOverlayKeydown(S))})}if(2&Et){const Mn=p.sdS(1);p.R7$(3),p.BMQ("id",rt._valueId),p.R7$(),p.vxM(rt.empty?4:5),p.R7$(6),p.Y8G("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",rt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",rt._scrollStrategy)("cdkConnectedOverlayOrigin",rt._preferredOverlayOrigin||Mn)("cdkConnectedOverlayPositions",rt._positions)("cdkConnectedOverlayWidth",rt._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[i.$Q,i.WB,se.YU],styles:['@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}\n'],encapsulation:2,changeDetection:0})}return $e})(),be=(()=>{class $e{static \u0275fac=function(Et){return new(Et||$e)};static \u0275dir=p.FsC({type:$e,selectors:[["mat-select-trigger"]],features:[p.Jv_([{provide:ve,useExisting:$e}])]})}return $e})(),nt=(()=>{class $e{static \u0275fac=function(Et){return new(Et||$e)};static \u0275mod=p.$C({type:$e});static \u0275inj=g.G2t({providers:[Me],imports:[i.z_,m.S,u.y,o.Gj,_.R,m.S,u.y]})}return $e})()},90882(ke,q,l){"use strict";l.d(q,{El:()=>he,LG:()=>Oe,US:()=>ge,vg:()=>ce});var i=l(76838),g=l(17094),p=l(61577),D=l(14085),o=l(67847),e=l(67336),A=l(10438),h=l(39842),d=l(5718),w=l(2615),f=l(73664),F=l(17705),M=l(21413),K=l(33726),j=l(57786),Z=l(70152),ee=l(5964),V=l(96354),Q=l(73703),$=l(99172),ie=l(96697),_e=l(56977),ye=l(31804),se=l(22466);const pe=["*"],Ee=["content"],L=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],t=["mat-drawer","mat-drawer-content","*"];function s(Me,ve){if(1&Me){const oe=f.RV6();f.j41(0,"div",1),f.bIt("click",function(){w.eBV(oe);const be=f.XpG();return w.Njj(be._onBackdropClicked())}),f.k0s()}if(2&Me){const oe=f.XpG();f.AVh("mat-drawer-shown",oe._isShowingBackdrop())}}function m(Me,ve){1&Me&&(f.j41(0,"mat-drawer-content"),f.SdG(1,2),f.k0s())}const u=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_=["mat-sidenav","mat-sidenav-content","*"];function T(Me,ve){if(1&Me){const oe=f.RV6();f.j41(0,"div",1),f.bIt("click",function(){w.eBV(oe);const be=f.XpG();return w.Njj(be._onBackdropClicked())}),f.k0s()}if(2&Me){const oe=f.XpG();f.AVh("mat-drawer-shown",oe._isShowingBackdrop())}}function P(Me,ve){1&Me&&(f.j41(0,"mat-sidenav-content"),f.SdG(1,2),f.k0s())}const x=new w.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function R(){return!1}}),Y=new w.nKC("MAT_DRAWER_CONTAINER");let U=(()=>{class Me extends d.uv{_platform=(0,w.WQX)(h.O);_changeDetectorRef=(0,w.WQX)(F.gRc);_container=(0,w.WQX)(re);constructor(){super((0,w.WQX)(f.aKT),(0,w.WQX)(d.R),(0,w.WQX)(f.SKi))}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;const{start:oe,end:Se}=this._container;return null!=oe&&"over"!==oe.mode&&oe.opened||null!=Se&&"over"!==Se.mode&&Se.opened}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=f.VBU({type:Me,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(Se,be){2&Se&&(f.xc7("margin-left",be._container._contentMargins.left,"px")("margin-right",be._container._contentMargins.right,"px"),f.AVh("mat-drawer-content-hidden",be._shouldBeHidden()))},features:[f.Jv_([{provide:d.uv,useExisting:Me}]),f.Vt3],ngContentSelectors:pe,decls:1,vars:0,template:function(Se,be){1&Se&&(f.NAR(),f.SdG(0))},encapsulation:2,changeDetection:0})}return Me})(),fe=(()=>{class Me{_elementRef=(0,w.WQX)(f.aKT);_focusTrapFactory=(0,w.WQX)(g.GX);_focusMonitor=(0,w.WQX)(i.FN);_platform=(0,w.WQX)(h.O);_ngZone=(0,w.WQX)(f.SKi);_renderer=(0,w.WQX)(f.sFG);_interactivityChecker=(0,w.WQX)(g.Z7);_doc=(0,w.WQX)(w.qQL);_container=(0,w.WQX)(Y,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;get position(){return this._position}set position(oe){(oe="end"===oe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(oe),this._position=oe,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(oe){this._mode=oe,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(oe){this._disableClose=(0,D.he)(oe)}_disableClose=!1;get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(oe){("true"===oe||"false"===oe||null==oe)&&(oe=(0,D.he)(oe)),this._autoFocus=oe}_autoFocus;get opened(){return this._opened()}set opened(oe){this.toggle((0,D.he)(oe))}_opened=(0,w.vPA)(!1);_openedVia;_animationStarted=new M.B;_animationEnd=new M.B;openedChange=new f.bkB(!0);_openedStream=this.openedChange.pipe((0,ee.p)(oe=>oe),(0,V.T)(()=>{}));openedStart=this._animationStarted.pipe((0,ee.p)(()=>this.opened),(0,Q.u)(void 0));_closedStream=this.openedChange.pipe((0,ee.p)(oe=>!oe),(0,V.T)(()=>{}));closedStart=this._animationStarted.pipe((0,ee.p)(()=>!this.opened),(0,Q.u)(void 0));_destroyed=new M.B;onPositionChanged=new f.bkB;_content;_modeChanged=new M.B;_injector=(0,w.WQX)(w.zZn);_changeDetectorRef=(0,w.WQX)(F.gRc);constructor(){this.openedChange.pipe((0,_e.Q)(this._destroyed)).subscribe(oe=>{oe?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{const oe=this._elementRef.nativeElement;(0,K.R)(oe,"keydown").pipe((0,ee.p)(Se=>Se.keyCode===A._f&&!this.disableClose&&!(0,e.rp)(Se)),(0,_e.Q)(this._destroyed)).subscribe(Se=>this._ngZone.run(()=>{this.close(),Se.stopPropagation(),Se.preventDefault()})),this._eventCleanups=[this._renderer.listen(oe,"transitionrun",this._handleTransitionEvent),this._renderer.listen(oe,"transitionend",this._handleTransitionEvent),this._renderer.listen(oe,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(oe,Se){this._interactivityChecker.isFocusable(oe)||(oe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const be=()=>{nt(),$e(),oe.removeAttribute("tabindex")},nt=this._renderer.listen(oe,"blur",be),$e=this._renderer.listen(oe,"mousedown",be)})),oe.focus(Se)}_focusByCssSelector(oe,Se){let be=this._elementRef.nativeElement.querySelector(oe);be&&this._forceFocus(be,Se)}_takeFocus(){if(!this._focusTrap)return;const oe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,f.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof oe.focus&&oe.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(oe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,oe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const oe=this._doc.activeElement;return!!oe&&this._elementRef.nativeElement.contains(oe)}ngAfterViewInit(){this._isAttached=!0,"end"===this._position&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(oe=>oe()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(oe){return this.toggle(!0,oe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(oe=!this.opened,Se){oe&&Se&&(this._openedVia=Se);const be=this._setOpen(oe,!oe&&this._isFocusWithinDrawer(),this._openedVia||"program");return oe||(this._openedVia=null),be}_setOpen(oe,Se,be){return oe===this.opened?Promise.resolve(oe?"open":"close"):(this._opened.set(oe),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",oe),!oe&&Se&&this._restoreFocus(be),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(nt=>{this.openedChange.pipe((0,ie.s)(1)).subscribe($e=>nt($e?"open":"close"))}))}_setIsAnimating(oe){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",oe)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(oe){if(!this._platform.isBrowser)return;const Se=this._elementRef.nativeElement,be=Se.parentNode;"end"===oe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),be.insertBefore(this._anchor,Se)),be.appendChild(Se)):this._anchor&&this._anchor.parentNode.insertBefore(Se,this._anchor)}_handleTransitionEvent=oe=>{oe.target===this._elementRef.nativeElement&&this._ngZone.run(()=>{"transitionrun"===oe.type?this._animationStarted.next(oe):("transitionend"===oe.type&&this._setIsAnimating(!1),this._animationEnd.next(oe))})};static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=f.VBU({type:Me,selectors:[["mat-drawer"]],viewQuery:function(Se,be){if(1&Se&&f.GBs(Ee,5),2&Se){let nt;f.mGM(nt=f.lsd())&&(be._content=nt.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(Se,be){2&Se&&(f.BMQ("align",null)("tabIndex","side"!==be.mode?"-1":null),f.xc7("visibility",be._container||be.opened?null:"hidden"),f.AVh("mat-drawer-end","end"===be.position)("mat-drawer-over","over"===be.mode)("mat-drawer-push","push"===be.mode)("mat-drawer-side","side"===be.mode))},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:pe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Se,be){1&Se&&(f.NAR(),f.j41(0,"div",1,0),f.SdG(2),f.k0s())},dependencies:[d.uv],encapsulation:2,changeDetection:0})}return Me})(),re=(()=>{class Me{_dir=(0,w.WQX)(p.dS,{optional:!0});_element=(0,w.WQX)(f.aKT);_ngZone=(0,w.WQX)(f.SKi);_changeDetectorRef=(0,w.WQX)(F.gRc);_animationDisabled=(0,ye.Rc)();_transitionsEnabled=!1;_allDrawers;_drawers=new f.rOR;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(oe){this._autosize=(0,D.he)(oe)}_autosize=(0,w.WQX)(x);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(oe){this._backdropOverride=null==oe?null:(0,D.he)(oe)}_backdropOverride;backdropClick=new f.bkB;_start;_end;_left;_right;_destroyed=new M.B;_doCheckSubject=new M.B;_contentMargins={left:null,right:null};_contentMarginChanges=new M.B;get scrollable(){return this._userContent||this._content}_injector=(0,w.WQX)(w.zZn);constructor(){const oe=(0,w.WQX)(h.O),Se=(0,w.WQX)(d.Xj);this._dir?.change.pipe((0,_e.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Se.change().pipe((0,_e.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&oe.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe((0,$.Z)(this._allDrawers),(0,_e.Q)(this._destroyed)).subscribe(oe=>{this._drawers.reset(oe.filter(Se=>!Se._container||Se._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,$.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(oe=>{this._watchDrawerToggle(oe),this._watchDrawerPosition(oe),this._watchDrawerMode(oe)}),(!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,_e.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(oe=>oe.open())}close(){this._drawers.forEach(oe=>oe.close())}updateContentMargins(){let oe=0,Se=0;if(this._left&&this._left.opened)if("side"==this._left.mode)oe+=this._left._getWidth();else if("push"==this._left.mode){const be=this._left._getWidth();oe+=be,Se-=be}if(this._right&&this._right.opened)if("side"==this._right.mode)Se+=this._right._getWidth();else if("push"==this._right.mode){const be=this._right._getWidth();Se+=be,oe-=be}oe=oe||null,Se=Se||null,(oe!==this._contentMargins.left||Se!==this._contentMargins.right)&&(this._contentMargins={left:oe,right:Se},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(oe){oe._animationStarted.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==oe.mode&&oe.openedChange.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(oe.opened))}_watchDrawerPosition(oe){oe.onPositionChanged.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>{(0,f.mal)({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(oe){oe._modeChanged.pipe((0,_e.Q)((0,j.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(oe){const Se=this._element.nativeElement.classList,be="mat-drawer-container-has-open";oe?Se.add(be):Se.remove(be)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(oe=>{"end"==oe.position?this._end=oe:this._start=oe}),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(oe=>oe&&!oe.disableClose&&this._drawerHasBackdrop(oe)).forEach(oe=>oe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(oe){return null!=oe&&oe.opened}_drawerHasBackdrop(oe){return null==this._backdropOverride?!!oe&&"side"!==oe.mode:this._backdropOverride}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=f.VBU({type:Me,selectors:[["mat-drawer-container"]],contentQueries:function(Se,be,nt){if(1&Se&&(f.wni(nt,U,5),f.wni(nt,fe,5)),2&Se){let $e;f.mGM($e=f.lsd())&&(be._content=$e.first),f.mGM($e=f.lsd())&&(be._allDrawers=$e)}},viewQuery:function(Se,be){if(1&Se&&f.GBs(U,5),2&Se){let nt;f.mGM(nt=f.lsd())&&(be._userContent=nt.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Se,be){2&Se&&f.AVh("mat-drawer-container-explicit-backdrop",be._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[f.Jv_([{provide:Y,useExisting:Me}])],ngContentSelectors:t,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Se,be){1&Se&&(f.NAR(L),f.nVh(0,s,1,2,"div",0),f.SdG(1),f.SdG(2,1),f.nVh(3,m,2,0,"mat-drawer-content")),2&Se&&(f.vxM(be.hasBackdrop?0:-1),f.R7$(3),f.vxM(be._content?-1:3))},dependencies:[U],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0})}return Me})(),he=(()=>{class Me extends U{static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=f.xGo(Me)))(be||Me)}})();static \u0275cmp=f.VBU({type:Me,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[f.Jv_([{provide:d.uv,useExisting:Me}]),f.Vt3],ngContentSelectors:pe,decls:1,vars:0,template:function(Se,be){1&Se&&(f.NAR(),f.SdG(0))},encapsulation:2,changeDetection:0})}return Me})(),Oe=(()=>{class Me extends fe{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(oe){this._fixedInViewport=(0,D.he)(oe)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(oe){this._fixedTopGap=(0,o.OE)(oe)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(oe){this._fixedBottomGap=(0,o.OE)(oe)}_fixedBottomGap=0;static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=f.xGo(Me)))(be||Me)}})();static \u0275cmp=f.VBU({type:Me,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(Se,be){2&Se&&(f.BMQ("tabIndex","side"!==be.mode?"-1":null)("align",null),f.xc7("top",be.fixedInViewport?be.fixedTopGap:null,"px")("bottom",be.fixedInViewport?be.fixedBottomGap:null,"px"),f.AVh("mat-drawer-end","end"===be.position)("mat-drawer-over","over"===be.mode)("mat-drawer-push","push"===be.mode)("mat-drawer-side","side"===be.mode)("mat-sidenav-fixed",be.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[f.Jv_([{provide:fe,useExisting:Me}]),f.Vt3],ngContentSelectors:pe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Se,be){1&Se&&(f.NAR(),f.j41(0,"div",1,0),f.SdG(2),f.k0s())},dependencies:[d.uv],encapsulation:2,changeDetection:0})}return Me})(),ge=(()=>{class Me extends re{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=f.xGo(Me)))(be||Me)}})();static \u0275cmp=f.VBU({type:Me,selectors:[["mat-sidenav-container"]],contentQueries:function(Se,be,nt){if(1&Se&&(f.wni(nt,he,5),f.wni(nt,Oe,5)),2&Se){let $e;f.mGM($e=f.lsd())&&(be._content=$e.first),f.mGM($e=f.lsd())&&(be._allDrawers=$e)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Se,be){2&Se&&f.AVh("mat-drawer-container-explicit-backdrop",be._backdropOverride)},exportAs:["matSidenavContainer"],features:[f.Jv_([{provide:Y,useExisting:Me},{provide:re,useExisting:Me}]),f.Vt3],ngContentSelectors:_,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Se,be){1&Se&&(f.NAR(u),f.nVh(0,T,1,2,"div",0),f.SdG(1),f.SdG(2,1),f.nVh(3,P,2,0,"mat-sidenav-content")),2&Se&&(f.vxM(be.hasBackdrop?0:-1),f.R7$(3),f.vxM(be._content?-1:3))},dependencies:[he],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0})}return Me})(),ce=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=f.$C({type:Me});static \u0275inj=w.G2t({imports:[se.y,d.Gj,d.Gj,se.y]})}return Me})()},30450(ke,q,l){"use strict";l.d(q,{mV:()=>Q,sG:()=>V});var i=l(2615),g=l(73664),p=l(17705),D=l(89417),o=l(76838),e=l(89726),A=l(88968),h=l(31804),d=l(32046),w=l(12496),f=l(53155),F=l(22466);const M=["switch"],K=["*"];function j($,ie){1&$&&(g.j41(0,"span",11),i.qSk(),g.j41(1,"svg",13),g.nrm(2,"path",14),g.k0s(),g.j41(3,"svg",15),g.nrm(4,"path",16),g.k0s()())}const Z=new i.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})});class ee{source;checked;constructor(ie,_e){this.source=ie,this.checked=_e}}let V=(()=>{class ${_elementRef=(0,i.WQX)(g.aKT);_focusMonitor=(0,i.WQX)(o.FN);_changeDetectorRef=(0,i.WQX)(p.gRc);defaults=(0,i.WQX)(Z);_onChange=_e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(_e){return new ee(this,_e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=(0,h.Rc)();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(_e){this._checked=_e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new g.bkB;toggleChange=new g.bkB;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){(0,i.WQX)(A.l).load(d.A);const _e=(0,i.WQX)(new p.ES_("tabindex"),{optional:!0}),ye=this.defaults;this.tabIndex=null==_e?0:parseInt(_e)||0,this.color=ye.color||"accent",this.id=this._uniqueId=(0,i.WQX)(e.g).getId("mat-mdc-slide-toggle-"),this.hideIcon=ye.hideIcon??!1,this.disabledInteractive=ye.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(_e=>{"keyboard"===_e||"program"===_e?(this._focused=!0,this._changeDetectorRef.markForCheck()):_e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(_e){_e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(_e){this.checked=!!_e}registerOnChange(_e){this._onChange=_e}registerOnTouched(_e){this._onTouched=_e}validate(_e){return this.required&&!0!==_e.value?{required:!0}:null}registerOnValidatorChange(_e){this._validatorOnChange=_e}setDisabledState(_e){this.disabled=_e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new ee(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(ye){return new(ye||$)};static \u0275cmp=g.VBU({type:$,selectors:[["mat-slide-toggle"]],viewQuery:function(ye,se){if(1&ye&&g.GBs(M,5),2&ye){let pe;g.mGM(pe=g.lsd())&&(se._switchElement=pe.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(ye,se){2&ye&&(g.Avn("id",se.id),g.BMQ("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),g.HbH(se.color?"mat-"+se.color:""),g.AVh("mat-mdc-slide-toggle-focused",se._focused)("mat-mdc-slide-toggle-checked",se.checked)("_mat-animation-noopable",se._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",p.L39],color:"color",disabled:[2,"disabled","disabled",p.L39],disableRipple:[2,"disableRipple","disableRipple",p.L39],tabIndex:[2,"tabIndex","tabIndex",_e=>null==_e?0:(0,p.Udg)(_e)],checked:[2,"checked","checked",p.L39],hideIcon:[2,"hideIcon","hideIcon",p.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",p.L39]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[g.Jv_([{provide:D.kq,useExisting:(0,i.Rfq)(()=>$),multi:!0},{provide:D.cz,useExisting:$,multi:!0}]),g.OA$],ngContentSelectors:K,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(ye,se){if(1&ye){const pe=g.RV6();g.NAR(),g.j41(0,"div",1)(1,"button",2,0),g.bIt("click",function(){return i.eBV(pe),i.Njj(se._handleClick())}),g.nrm(3,"div",3)(4,"span",4),g.j41(5,"span",5)(6,"span",6)(7,"span",7),g.nrm(8,"span",8),g.k0s(),g.j41(9,"span",9),g.nrm(10,"span",10),g.k0s(),g.nVh(11,j,5,0,"span",11),g.k0s()()(),g.j41(12,"label",12),g.bIt("click",function(L){return i.eBV(pe),i.Njj(L.stopPropagation())}),g.SdG(13),g.k0s()()}if(2&ye){const pe=g.sdS(2);g.Y8G("labelPosition",se.labelPosition),g.R7$(),g.AVh("mdc-switch--selected",se.checked)("mdc-switch--unselected",!se.checked)("mdc-switch--checked",se.checked)("mdc-switch--disabled",se.disabled)("mat-mdc-slide-toggle-disabled-interactive",se.disabledInteractive),g.Y8G("tabIndex",se.disabled&&!se.disabledInteractive?-1:se.tabIndex)("disabled",se.disabled&&!se.disabledInteractive),g.BMQ("id",se.buttonId)("name",se.name)("aria-label",se.ariaLabel)("aria-labelledby",se._getAriaLabelledBy())("aria-describedby",se.ariaDescribedby)("aria-required",se.required||null)("aria-checked",se.checked)("aria-disabled",se.disabled&&se.disabledInteractive?"true":null),g.R7$(9),g.Y8G("matRippleTrigger",pe)("matRippleDisabled",se.disableRipple||se.disabled)("matRippleCentered",!0),g.R7$(),g.vxM(se.hideIcon?-1:11),g.R7$(),g.Y8G("for",se.buttonId),g.BMQ("id",se._labelId)}},dependencies:[w.r6,f.t],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mat-slide-toggle-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mat-slide-toggle-track-height, 32px);border-radius:var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mat-slide-toggle-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-slide-toggle-track-outline-width, 2px);border-color:var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-slide-toggle-selected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mat-slide-toggle-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mat-slide-toggle-handle-width);height:var(--mat-slide-toggle-handle-height);border-radius:var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-slide-toggle-unselected-handle-size, 16px);height:var(--mat-slide-toggle-unselected-handle-size, 16px);margin:var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-slide-toggle-selected-handle-size, 24px);height:var(--mat-slide-toggle-selected-handle-size, 24px);margin:var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-slide-toggle-with-icon-handle-size, 24px);height:var(--mat-slide-toggle-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-slide-toggle-pressed-handle-size, 28px);height:var(--mat-slide-toggle-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mat-slide-toggle-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mat-slide-toggle-state-layer-size, 40px);height:var(--mat-slide-toggle-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mat-slide-toggle-unselected-icon-size, 16px);height:var(--mat-slide-toggle-unselected-icon-size, 16px);fill:var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mat-slide-toggle-selected-icon-size, 16px);height:var(--mat-slide-toggle-selected-icon-size, 16px);fill:var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-slide-toggle-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-slide-toggle-touch-target-size, 48px);width:100%;transform:translate(-50%, -50%);display:var(--mat-slide-toggle-touch-target-display, block)}[dir=rtl] .mat-mdc-slide-toggle-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],encapsulation:2,changeDetection:0})}return $})(),Q=(()=>{class ${static \u0275fac=function(ye){return new(ye||$)};static \u0275mod=g.$C({type:$});static \u0275inj=i.G2t({imports:[V,F.y,F.y]})}return $})()},95416(ke,q,l){"use strict";l.d(q,{UG:()=>T,_T:()=>C,x6:()=>_});var i=l(2615),g=l(73664),p=l(17705),D=l(21413),o=l(7673),e=l(88834),A=l(17094),h=l(89726),d=l(39842),w=l(76939),f=l(31804),F=l(99327),M=l(34330),K=l(49338),j=l(56977),Z=l(22466);function ee(x,Y){if(1&x){const R=g.RV6();g.j41(0,"div",1)(1,"button",2),g.bIt("click",function(){i.eBV(R);const fe=g.XpG();return i.Njj(fe.action())}),g.EFF(2),g.k0s()()}if(2&x){const R=g.XpG();g.R7$(2),g.SpI(" ",R.data.action," ")}}const V=["label"];function Q(x,Y){}const $=Math.pow(2,31)-1;class ie{_overlayRef;instance;containerInstance;_afterDismissed=new D.B;_afterOpened=new D.B;_onAction=new D.B;_durationTimeoutId;_dismissedByAction=!1;constructor(Y,R){this._overlayRef=R,this.containerInstance=Y,Y._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(Y){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(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}}const _e=new i.nKC("MatSnackBarData");class ye{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"}let se=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275dir=g.FsC({type:x,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return x})(),pe=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275dir=g.FsC({type:x,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return x})(),Ee=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275dir=g.FsC({type:x,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return x})(),L=(()=>{class x{snackBarRef=(0,i.WQX)(ie);data=(0,i.WQX)(_e);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(U){return new(U||x)};static \u0275cmp=g.VBU({type:x,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(U,fe){1&U&&(g.j41(0,"div",0),g.EFF(1),g.k0s(),g.nVh(2,ee,3,1,"div",1)),2&U&&(g.R7$(),g.SpI(" ",fe.data.message,"\n"),g.R7$(),g.vxM(fe.hasAction?2:-1))},dependencies:[e.$z,se,pe,Ee],styles:[".mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}\n"],encapsulation:2,changeDetection:0})}return x})();const t="_mat-snack-bar-enter",s="_mat-snack-bar-exit";let m=(()=>{class x extends w.lb{_ngZone=(0,i.WQX)(g.SKi);_elementRef=(0,i.WQX)(g.aKT);_changeDetectorRef=(0,i.WQX)(p.gRc);_platform=(0,i.WQX)(d.O);_animationsDisabled=(0,f.Rc)();snackBarConfig=(0,i.WQX)(ye);_document=(0,i.WQX)(i.qQL);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=(0,i.WQX)(i.zZn);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new D.B;_onExit=new D.B;_onEnter=new D.B;_animationState="void";_live;_label;_role;_liveElementId=(0,i.WQX)(h.g).getId("mat-snack-bar-container-live-");constructor(){super();const R=this.snackBarConfig;this._live="assertive"!==R.politeness||R.announcementMessage?"off"===R.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(R){this._assertNotAttached();const U=this._portalOutlet.attachComponentPortal(R);return this._afterPortalAttached(),U}attachTemplatePortal(R){this._assertNotAttached();const U=this._portalOutlet.attachTemplatePortal(R);return this._afterPortalAttached(),U}attachDomPortal=R=>{this._assertNotAttached();const U=this._portalOutlet.attachDomPortal(R);return this._afterPortalAttached(),U};onAnimationEnd(R){R===s?this._completeExit():R===t&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?(0,g.mal)(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(t)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(t)},200)))}exit(){return this._destroyed?(0,o.of)(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?(0,g.mal)(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(s)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(s),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const R=this._elementRef.nativeElement,U=this.snackBarConfig.panelClass;U&&(Array.isArray(U)?U.forEach(he=>R.classList.add(he)):R.classList.add(U)),this._exposeToModals();const fe=this._label.nativeElement,re="mdc-snackbar__label";fe.classList.toggle(re,!fe.querySelector(`.${re}`))}_exposeToModals(){const R=this._liveElementId,U=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let fe=0;fe{const U=R.getAttribute("aria-owns");if(U){const fe=U.replace(this._liveElementId,"").trim();fe.length>0?R.setAttribute("aria-owns",fe):R.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;const R=this._elementRef.nativeElement,U=R.querySelector("[aria-hidden]"),fe=R.querySelector("[aria-live]");if(U&&fe){let re=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&U.contains(document.activeElement)&&(re=document.activeElement),U.removeAttribute("aria-hidden"),fe.appendChild(U),re?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(U){return new(U||x)};static \u0275cmp=g.VBU({type:x,selectors:[["mat-snack-bar-container"]],viewQuery:function(U,fe){if(1&U&&(g.GBs(w.I3,7),g.GBs(V,7)),2&U){let re;g.mGM(re=g.lsd())&&(fe._portalOutlet=re.first),g.mGM(re=g.lsd())&&(fe._label=re.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(U,fe){1&U&&g.bIt("animationend",function(he){return fe.onAnimationEnd(he.animationName)})("animationcancel",function(he){return fe.onAnimationEnd(he.animationName)}),2&U&&g.AVh("mat-snack-bar-container-enter","visible"===fe._animationState)("mat-snack-bar-container-exit","hidden"===fe._animationState)("mat-snack-bar-container-animations-enabled",!fe._animationsDisabled)},features:[g.Vt3],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(U,fe){1&U&&(g.j41(0,"div",1)(1,"div",2,0)(3,"div",3),g.DNE(4,Q,0,0,"ng-template",4),g.k0s(),g.nrm(5,"div"),g.k0s()()),2&U&&(g.R7$(5),g.BMQ("aria-live",fe._live)("role",fe._role)("id",fe._liveElementId))},dependencies:[w.I3],styles:["@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}\n"],encapsulation:2})}return x})();const _=new i.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function u(){return new ye}});let T=(()=>{class x{_live=(0,i.WQX)(A.Ai);_injector=(0,i.WQX)(i.zZn);_breakpointObserver=(0,i.WQX)(M.Q);_parentSnackBar=(0,i.WQX)(x,{optional:!0,skipSelf:!0});_defaultConfig=(0,i.WQX)(_);_animationsDisabled=(0,f.Rc)();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=L;snackBarContainerComponent=m;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){const R=this._parentSnackBar;return R?R._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(R){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=R:this._snackBarRefAtThisLevel=R}constructor(){}openFromComponent(R,U){return this._attach(R,U)}openFromTemplate(R,U){return this._attach(R,U)}open(R,U="",fe){const re={...this._defaultConfig,...fe};return re.data={message:R,action:U},re.announcementMessage===R&&(re.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,re)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(R,U){const re=i.zZn.create({parent:U&&U.viewContainerRef&&U.viewContainerRef.injector||this._injector,providers:[{provide:ye,useValue:U}]}),he=new w.A8(this.snackBarContainerComponent,U.viewContainerRef,re),Oe=R.attach(he);return Oe.instance.snackBarConfig=U,Oe.instance}_attach(R,U){const fe={...new ye,...this._defaultConfig,...U},re=this._createOverlay(fe),he=this._attachSnackBarContainer(re,fe),Oe=new ie(he,re);if(R instanceof g.C4Q){const ge=new w.VA(R,null,{$implicit:fe.data,snackBarRef:Oe});Oe.instance=he.attachTemplatePortal(ge)}else{const ge=this._createInjector(fe,Oe),ce=new w.A8(R,void 0,ge),Re=he.attachComponentPortal(ce);Oe.instance=Re.instance}return this._breakpointObserver.observe(F.Rp.HandsetPortrait).pipe((0,j.Q)(re.detachments())).subscribe(ge=>{re.overlayElement.classList.toggle(this.handsetCssClass,ge.matches)}),fe.announcementMessage&&he._onAnnounce.subscribe(()=>{this._live.announce(fe.announcementMessage,fe.politeness)}),this._animateSnackBar(Oe,fe),this._openedSnackBarRef=Oe,this._openedSnackBarRef}_animateSnackBar(R,U){R.afterDismissed().subscribe(()=>{this._openedSnackBarRef==R&&(this._openedSnackBarRef=null),U.announcementMessage&&this._live.clear()}),U.duration&&U.duration>0&&R.afterOpened().subscribe(()=>R._dismissAfter(U.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{R.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):R.containerInstance.enter()}_createOverlay(R){const U=new K.rR;U.direction=R.direction;const fe=(0,K.uA)(this._injector),re="rtl"===R.direction,he="left"===R.horizontalPosition||"start"===R.horizontalPosition&&!re||"end"===R.horizontalPosition&&re,Oe=!he&&"center"!==R.horizontalPosition;return he?fe.left("0"):Oe?fe.right("0"):fe.centerHorizontally(),"top"===R.verticalPosition?fe.top("0"):fe.bottom("0"),U.positionStrategy=fe,U.disableAnimations=this._animationsDisabled,(0,K.Y$)(this._injector,U)}_createInjector(R,U){return i.zZn.create({parent:R&&R.viewContainerRef&&R.viewContainerRef.injector||this._injector,providers:[{provide:ie,useValue:U},{provide:_e,useValue:R.data}]})}static \u0275fac=function(U){return new(U||x)};static \u0275prov=i.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})(),C=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275mod=g.$C({type:x});static \u0275inj=i.G2t({providers:[T],imports:[K.z_,w.jc,e.Hl,Z.y,L,Z.y]})}return x})()},2042(ke,q,l){"use strict";l.d(q,{B4:()=>_e,NQ:()=>t,aE:()=>L});var i=l(2615),g=l(73664),p=l(17705),D=l(18617),o=l(76838),e=l(10438),A=l(21413),h=l(92771),d=l(57786),w=l(88968),f=l(31804),F=l(32046),M=l(22466);const K=["mat-sort-header",""],j=["*"];function Z(m,u){1&m&&(g.rj2(0,"div",2),i.qSk(),g.rj2(1,"svg",3),g.Hgh(2,"path",4),g.eux()())}const ie=new i.nKC("MAT_SORT_DEFAULT_OPTIONS");let _e=(()=>{class m{_defaultOptions;_initializedStream=new h.m(1);sortables=new Map;_stateChanges=new A.B;active;start="asc";get direction(){return this._direction}set direction(_){this._direction=_}_direction="";disableClear;disabled=!1;sortChange=new g.bkB;initialized=this._initializedStream;constructor(_){this._defaultOptions=_}register(_){this.sortables.set(_.id,_)}deregister(_){this.sortables.delete(_.id)}sort(_){this.active!=_.id?(this.active=_.id,this.direction=_.start?_.start:this.start):this.direction=this.getNextSortDirection(_),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(_){if(!_)return"";let P=function ye(m,u){let _=["asc","desc"];return"desc"==m&&_.reverse(),u||_.push(""),_}(_.start||this.start,_?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),C=P.indexOf(this.direction)+1;return C>=P.length&&(C=0),P[C]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(T){return new(T||m)(g.rXU(ie,8))};static \u0275dir=g.FsC({type:m,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",p.L39],disabled:[2,"matSortDisabled","disabled",p.L39]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[g.OA$]})}return m})(),se=(()=>{class m{changes=new A.B;static \u0275fac=function(T){return new(T||m)};static \u0275prov=i.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ee={provide:se,deps:[[new g.Xx1,new g.kdw,se]],useFactory:function pe(m){return m||new se}};let L=(()=>{class m{_intl=(0,i.WQX)(se);_sort=(0,i.WQX)(_e,{optional:!0});_columnDef=(0,i.WQX)("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=(0,i.WQX)(p.gRc);_focusMonitor=(0,i.WQX)(o.FN);_elementRef=(0,i.WQX)(g.aKT);_ariaDescriber=(0,i.WQX)(D.vr,{optional:!0});_renderChanges;_animationsDisabled=(0,f.Rc)();_recentlyCleared=(0,i.vPA)(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(_){this._updateSortActionDescription(_)}_sortActionDescription="Sort";disableClear;constructor(){(0,i.WQX)(w.l).load(F.A);const _=(0,i.WQX)(ie,{optional:!0});_?.arrowPosition&&(this.arrowPosition=_?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=(0,d.h)(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){const _=this._isSorted(),T=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(_&&!this._isSorted()?T:null)}}_handleKeydown(_){(_.keyCode===e.t6||_.keyCode===e.Fm)&&(_.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_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(_){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,_)),this._sortActionDescription=_}static \u0275fac=function(T){return new(T||m)};static \u0275cmp=g.VBU({type:m,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(T,P){1&T&&g.bIt("click",function(){return P._toggleOnInteraction()})("keydown",function(a){return P._handleKeydown(a)})("mouseleave",function(){return P._recentlyCleared.set(null)}),2&T&&(g.BMQ("aria-sort",P._getAriaSortAttribute()),g.AVh("mat-sort-header-disabled",P._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",p.L39],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",p.L39]},exportAs:["matSortHeader"],attrs:K,ngContentSelectors:j,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(T,P){1&T&&(g.NAR(),g.rj2(0,"div",0)(1,"div",1),g.SdG(2),g.eux(),g.nVh(3,Z,3,0,"div",2),g.eux()),2&T&&(g.AVh("mat-sort-header-sorted",P._isSorted())("mat-sort-header-position-before","before"===P.arrowPosition)("mat-sort-header-descending","desc"===P._sort.direction)("mat-sort-header-ascending","asc"===P._sort.direction)("mat-sort-header-recently-cleared-ascending","asc"===P._recentlyCleared())("mat-sort-header-recently-cleared-descending","desc"===P._recentlyCleared())("mat-sort-header-animations-disabled",P._animationsDisabled),g.BMQ("tabindex",P._isDisabled()?null:0)("role",P._isDisabled()?null:"button"),g.R7$(3),g.vxM(P._renderArrow()?3:-1))},styles:[".mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(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}\n"],encapsulation:2,changeDetection:0})}return m})(),t=(()=>{class m{static \u0275fac=function(T){return new(T||m)};static \u0275mod=g.$C({type:m});static \u0275inj=i.G2t({providers:[Ee],imports:[M.y]})}return m})()},36013(ke,q,l){"use strict";l.d(q,{F7:()=>Et,FR:()=>rt,M6:()=>yt,Ti:()=>Me,V5:()=>dt,aP:()=>Mn,xJ:()=>nt});var i=l(76939),g=l(97768),p=l(2615),D=l(73664),o=l(17705),e=l(76838),A=l(21413),h=l(18359),d=l(72200),w=l(49046),f=l(88968),F=l(12629),M=l(32046),K=l(12496),j=l(39842),Z=l(96354),ee=l(99172),V=l(25558),Q=l(56977),$=l(2709),ie=l(31804),_e=l(22466),ye=l(26881);const se=(S,Xt,de)=>({index:S,active:Xt,optional:de});function pe(S,Xt){if(1&S&&D.eu8(0,2),2&S){const de=D.XpG();D.Y8G("ngTemplateOutlet",de.iconOverrides[de.state])("ngTemplateOutletContext",D.sMw(2,se,de.index,de.active,de.optional))}}function Ee(S,Xt){if(1&S&&(D.j41(0,"span",7),D.EFF(1),D.k0s()),2&S){const de=D.XpG(2);D.R7$(),D.JRh(de._getDefaultTextForState(de.state))}}function L(S,Xt){if(1&S&&(D.j41(0,"span",8),D.EFF(1),D.k0s()),2&S){const de=D.XpG(3);D.R7$(),D.JRh(de._intl.completedLabel)}}function t(S,Xt){if(1&S&&(D.j41(0,"span",8),D.EFF(1),D.k0s()),2&S){const de=D.XpG(3);D.R7$(),D.JRh(de._intl.editableLabel)}}function s(S,Xt){if(1&S&&(D.nVh(0,L,2,1,"span",8)(1,t,2,1,"span",8),D.j41(2,"mat-icon",7),D.EFF(3),D.k0s()),2&S){const de=D.XpG(2);D.vxM("done"===de.state?0:"edit"===de.state?1:-1),D.R7$(3),D.JRh(de._getDefaultTextForState(de.state))}}function m(S,Xt){if(1&S&&D.nVh(0,Ee,2,1,"span",7)(1,s,4,2),2&S){let de;const ae=D.XpG();D.vxM("number"===(de=ae.state)?0:1)}}function u(S,Xt){1&S&&(D.j41(0,"div",4),D.eu8(1,9),D.k0s()),2&S&&(D.R7$(),D.Y8G("ngTemplateOutlet",Xt.template))}function _(S,Xt){if(1&S&&(D.j41(0,"div",4),D.EFF(1),D.k0s()),2&S){const de=D.XpG();D.R7$(),D.JRh(de.label)}}function T(S,Xt){if(1&S&&(D.j41(0,"div",5),D.EFF(1),D.k0s()),2&S){const de=D.XpG();D.R7$(),D.JRh(de._intl.optionalLabel)}}function P(S,Xt){if(1&S&&(D.j41(0,"div",6),D.EFF(1),D.k0s()),2&S){const de=D.XpG();D.R7$(),D.JRh(de.errorMessage)}}const C=["*"];function a(S,Xt){}function x(S,Xt){if(1&S&&(D.SdG(0),D.DNE(1,a,0,0,"ng-template",0)),2&S){const de=D.XpG();D.R7$(),D.Y8G("cdkPortalOutlet",de._portal)}}const Y=["animatedContainer"],R=S=>({step:S});function U(S,Xt){1&S&&D.SdG(0)}function fe(S,Xt){1&S&&D.nrm(0,"div",7)}function re(S,Xt){if(1&S&&(D.eu8(0,6),D.nVh(1,fe,1,0,"div",7)),2&S){const de=Xt.$implicit,ae=Xt.$index,me=Xt.$count;D.XpG(2);const Le=D.sdS(4);D.Y8G("ngTemplateOutlet",Le)("ngTemplateOutletContext",D.eq3(3,R,de)),D.R7$(),D.vxM(ae!==me-1?1:-1)}}function he(S,Xt){if(1&S&&(D.j41(0,"div",8,1),D.eu8(2,9),D.k0s()),2&S){const de=Xt.$implicit,ae=Xt.$index,me=D.XpG(2);D.HbH("mat-horizontal-stepper-content-"+me._getAnimationDirection(ae)),D.Y8G("id",me._getStepContentId(ae)),D.BMQ("aria-labelledby",me._getStepLabelId(ae))("inert",me.selectedIndex===ae?null:""),D.R7$(2),D.Y8G("ngTemplateOutlet",de.content)}}function Oe(S,Xt){if(1&S&&(D.j41(0,"div",2)(1,"div",3),D.Z7z(2,re,2,5,null,null,D.fX1),D.k0s(),D.j41(4,"div",4),D.Z7z(5,he,3,6,"div",5,D.fX1),D.k0s()()),2&S){const de=D.XpG();D.R7$(2),D.Dyx(de.steps),D.R7$(3),D.Dyx(de.steps)}}function ge(S,Xt){if(1&S&&(D.j41(0,"div",10),D.eu8(1,6),D.j41(2,"div",11,1)(4,"div",12)(5,"div",13),D.eu8(6,9),D.k0s()()()()),2&S){const de=Xt.$implicit,ae=Xt.$index,me=Xt.$index,Le=Xt.$count,et=D.XpG(2),tn=D.sdS(4);D.R7$(),D.Y8G("ngTemplateOutlet",tn)("ngTemplateOutletContext",D.eq3(10,R,de)),D.R7$(),D.AVh("mat-stepper-vertical-line",me!==Le-1)("mat-vertical-content-container-active",et.selectedIndex===ae),D.BMQ("inert",et.selectedIndex===ae?null:""),D.R7$(2),D.Y8G("id",et._getStepContentId(ae)),D.BMQ("aria-labelledby",et._getStepLabelId(ae)),D.R7$(2),D.Y8G("ngTemplateOutlet",de.content)}}function ce(S,Xt){if(1&S&&D.Z7z(0,ge,7,12,"div",10,D.fX1),2&S){const de=D.XpG();D.Dyx(de.steps)}}function Re(S,Xt){if(1&S){const de=D.RV6();D.j41(0,"mat-step-header",14),D.bIt("click",function(){const me=p.eBV(de).step;return p.Njj(me.select())})("keydown",function(me){p.eBV(de);const Le=D.XpG();return p.Njj(Le._onKeydown(me))}),D.k0s()}if(2&S){const de=Xt.step,ae=D.XpG();D.AVh("mat-horizontal-stepper-header","horizontal"===ae.orientation)("mat-vertical-stepper-header","vertical"===ae.orientation),D.Y8G("tabIndex",ae._getFocusIndex()===de.index()?0:-1)("id",ae._getStepLabelId(de.index()))("index",de.index())("state",de.indicatorType())("label",de.stepLabel||de.label)("selected",de.isSelected())("active",de.isNavigable())("optional",de.optional)("errorMessage",de.errorMessage)("iconOverrides",ae._iconOverrides)("disableRipple",ae.disableRipple||!de.isNavigable())("color",de.color||ae.color),D.BMQ("aria-posinset",de.index()+1)("aria-setsize",ae.steps.length)("aria-controls",ae._getStepContentId(de.index()))("aria-selected",de.isSelected())("aria-label",de.ariaLabel||null)("aria-labelledby",!de.ariaLabel&&de.ariaLabelledby?de.ariaLabelledby:null)("aria-disabled",!de.isNavigable()||null)}}let Me=(()=>{class S extends g.nb{static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275dir=D.FsC({type:S,selectors:[["","matStepLabel",""]],features:[D.Vt3]})}return S})(),ve=(()=>{class S{changes=new A.B;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(ae){return new(ae||S)};static \u0275prov=p.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();const Se={provide:ve,deps:[[new D.Xx1,new D.kdw,ve]],useFactory:function oe(S){return S||new ve}};let be=(()=>{class S extends g.oX{_intl=(0,p.WQX)(ve);_focusMonitor=(0,p.WQX)(e.FN);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();const de=(0,p.WQX)(f.l);de.load(M.A),de.load(w.Y);const ae=(0,p.WQX)(o.gRc);this._intlSubscription=this._intl.changes.subscribe(()=>ae.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(de,ae){de?this._focusMonitor.focusVia(this._elementRef,de,ae):this._elementRef.nativeElement.focus(ae)}_stringLabel(){return this.label instanceof Me?null:this.label}_templateLabel(){return this.label instanceof Me?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(de){return"number"==de?`${this.index+1}`:"edit"==de?"create":"error"==de?"warning":de}_hasEmptyLabel(){return!(this._stringLabel()||this._templateLabel()||this._hasOptionalLabel()||this._hasErrorLabel())}_hasOptionalLabel(){return this.optional&&"error"!==this.state}_hasErrorLabel(){return"error"===this.state}static \u0275fac=function(ae){return new(ae||S)};static \u0275cmp=D.VBU({type:S,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(ae,me){2&ae&&(D.HbH("mat-"+(me.color||"primary")),D.AVh("mat-step-header-empty-label",me._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[D.Vt3],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(ae,me){if(1&ae&&(D.nrm(0,"div",0),D.j41(1,"div")(2,"div",1),D.nVh(3,pe,1,6,"ng-container",2)(4,m,2,1),D.k0s()(),D.j41(5,"div",3),D.nVh(6,u,2,1,"div",4)(7,_,2,1,"div",4),D.nVh(8,T,2,1,"div",5),D.nVh(9,P,2,1,"div",6),D.k0s()),2&ae){let Le;D.Y8G("matRippleTrigger",me._getHostElement())("matRippleDisabled",me.disableRipple),D.R7$(),D.HbH(D.VkB("mat-step-icon-state-",me.state," mat-step-icon")),D.AVh("mat-step-icon-selected",me.selected),D.R7$(2),D.vxM(me.iconOverrides&&me.iconOverrides[me.state]?3:4),D.R7$(2),D.AVh("mat-step-label-active",me.active)("mat-step-label-selected",me.selected)("mat-step-label-error","error"==me.state),D.R7$(),D.vxM((Le=me._templateLabel())?6:me._stringLabel()?7:-1,Le),D.R7$(2),D.vxM(me._hasOptionalLabel()?8:-1),D.R7$(),D.vxM(me._hasErrorLabel()?9:-1)}},dependencies:[K.r6,d.T3,F.An],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.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{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.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;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.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}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}\n'],encapsulation:2,changeDetection:0})}return S})(),nt=(()=>{class S{templateRef=(0,p.WQX)(D.C4Q);name;constructor(){}static \u0275fac=function(ae){return new(ae||S)};static \u0275dir=D.FsC({type:S,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return S})(),$e=(()=>{class S{_template=(0,p.WQX)(D.C4Q);constructor(){}static \u0275fac=function(ae){return new(ae||S)};static \u0275dir=D.FsC({type:S,selectors:[["ng-template","matStepContent",""]]})}return S})(),dt=(()=>{class S extends g.VI{_errorStateMatcher=(0,p.WQX)($.e,{skipSelf:!0});_viewContainerRef=(0,p.WQX)(D.c1b);_isSelected=h.yU.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,V.n)(()=>this._stepper.selectionChange.pipe((0,Z.T)(de=>de.selectedStep===this),(0,ee.Z)(this._stepper.selected===this)))).subscribe(de=>{de&&this._lazyContent&&!this._portal&&(this._portal=new i.VA(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(de,ae){return this._errorStateMatcher.isErrorState(de,ae)||!!(de&&de.invalid&&this.interacted)}static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275cmp=D.VBU({type:S,selectors:[["mat-step"]],contentQueries:function(ae,me,Le){if(1&ae&&(D.wni(Le,Me,5),D.wni(Le,$e,5)),2&ae){let et;D.mGM(et=D.lsd())&&(me.stepLabel=et.first),D.mGM(et=D.lsd())&&(me._lazyContent=et.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[D.Jv_([{provide:$.e,useExisting:S},{provide:g.VI,useExisting:S}]),D.Vt3],ngContentSelectors:C,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ae,me){1&ae&&(D.NAR(),D.DNE(0,x,2,1,"ng-template"))},dependencies:[i.I3],encapsulation:2,changeDetection:0})}return S})(),yt=(()=>{class S extends g.Up{_ngZone=(0,p.WQX)(D.SKi);_renderer=(0,p.WQX)(D.sFG);_animationsDisabled=(0,ie.Rc)();_cleanupTransition;_isAnimating=(0,p.vPA)(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new D.rOR;_icons;animationDone=new D.bkB;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(de){this._animationDuration=/^\d+$/.test(de)?de+"ms":de}_animationDuration="";_isServer=!(0,p.WQX)(j.O).isBrowser;constructor(){super();const ae=(0,p.WQX)(D.aKT).nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ae?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:de,templateRef:ae})=>this._iconOverrides[de]=ae),this.steps.changes.pipe((0,Q.Q)(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe((0,Q.Q)(this._destroyed)).subscribe(()=>{const de=this._getAnimationDuration();"0ms"===de||"0s"===de?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),"function"==typeof queueMicrotask){let de=!1;this._animatedContainers.changes.pipe((0,ee.Z)(null),(0,Q.Q)(this._destroyed)).subscribe(()=>queueMicrotask(()=>{de||(de=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}_handleTransitionend=de=>{const ae=de.target;if(!ae)return;const me="horizontal"===this.orientation&&"transform"===de.propertyName&&ae.classList.contains("mat-horizontal-stepper-content-current"),Le="vertical"===this.orientation&&"grid-template-rows"===de.propertyName&&ae.classList.contains("mat-vertical-content-container-active");(me||Le)&&this._animatedContainers.find(tn=>tn.nativeElement===ae)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(ae){return new(ae||S)};static \u0275cmp=D.VBU({type:S,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ae,me,Le){if(1&ae&&(D.wni(Le,dt,5),D.wni(Le,nt,5)),2&ae){let et;D.mGM(et=D.lsd())&&(me._steps=et),D.mGM(et=D.lsd())&&(me._icons=et)}},viewQuery:function(ae,me){if(1&ae&&(D.GBs(be,5),D.GBs(Y,5)),2&ae){let Le;D.mGM(Le=D.lsd())&&(me._stepHeader=Le),D.mGM(Le=D.lsd())&&(me._animatedContainers=Le)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(ae,me){2&ae&&(D.BMQ("aria-orientation",me.orientation),D.xc7("--mat-stepper-animation-duration",me._getAnimationDuration()),D.AVh("mat-stepper-horizontal","horizontal"===me.orientation)("mat-stepper-vertical","vertical"===me.orientation)("mat-stepper-label-position-end","horizontal"===me.orientation&&"end"==me.labelPosition)("mat-stepper-label-position-bottom","horizontal"===me.orientation&&"bottom"==me.labelPosition)("mat-stepper-header-position-bottom","bottom"===me.headerPosition)("mat-stepper-animating",me._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[D.Jv_([{provide:g.Up,useExisting:S}]),D.Vt3],ngContentSelectors:C,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(ae,me){if(1&ae&&(D.NAR(),D.nVh(0,U,1,0),D.nVh(1,Oe,7,0,"div",2)(2,ce,2,0),D.DNE(3,Re,1,23,"ng-template",null,0,D.C5r)),2&ae){let Le;D.vxM(me._isServer?0:-1),D.R7$(),D.vxM("horizontal"===(Le=me.orientation)?1:"vertical"===Le?2:-1)}},dependencies:[d.T3,be],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.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-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 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-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}\n'],encapsulation:2,changeDetection:0})}return S})(),Et=(()=>{class S extends g.v5{static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275dir=D.FsC({type:S,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(ae,me){2&ae&&D.Avn("type",me.type)},features:[D.Vt3]})}return S})(),rt=(()=>{class S extends g.FK{static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275dir=D.FsC({type:S,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(ae,me){2&ae&&D.Avn("type",me.type)},features:[D.Vt3]})}return S})(),Mn=(()=>{class S{static \u0275fac=function(ae){return new(ae||S)};static \u0275mod=D.$C({type:S});static \u0275inj=p.G2t({providers:[Se,$.e],imports:[_e.y,i.jc,g.uY,F.m_,ye.p,yt,be,_e.y]})}return S})()},32046(ke,q,l){"use strict";l.d(q,{A:()=>g});var i=l(73664);let g=(()=>{class p{static \u0275fac=function(e){return new(e||p)};static \u0275cmp=i.VBU({type:p,selectors:[["structural-styles"]],decls:0,vars:0,template:function(e,A){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}\n'],encapsulation:2,changeDetection:0})}return p})()},19295(ke,q,l){"use strict";l.d(q,{$R:()=>He,YV:()=>Je,cC:()=>Ye,Qo:()=>it,Zq:()=>zt,iF:()=>At,xW:()=>We,KS:()=>st,tL:()=>gt,YZ:()=>St,ji:()=>we,NB:()=>fn,iL:()=>Lt,Zl:()=>ze,I6:()=>Li,tP:()=>In});var i=l(73664),g=l(2615),p=l(17705),D=l(14117),o=l(21413),e=l(84412),A=l(74402),h=l(7673),d=l(56977),f=function(kt){return kt[kt.REPLACED=0]="REPLACED",kt[kt.INSERTED=1]="INSERTED",kt[kt.MOVED=2]="MOVED",kt[kt.REMOVED=3]="REMOVED",kt}(f||{});const F=new g.nKC("_ViewRepeater");class K{applyChanges(Ot,Ze,Ge,Pt,Yt){Ot.forEachOperation((bn,$n,oi)=>{let Ii,Ei;if(null==bn.previousIndex){const Nt=Ge(bn,$n,oi);Ii=Ze.createEmbeddedView(Nt.templateRef,Nt.context,Nt.index),Ei=f.INSERTED}else null==oi?(Ze.remove($n),Ei=f.REMOVED):(Ii=Ze.get($n),Ze.move(Ii,oi),Ei=f.MOVED);Yt&&Yt({context:Ii?.context,operation:Ei,record:bn})})}detach(){}}var j=l(61577),Z=l(39842),ee=l(5718);const V=[[["caption"]],[["colgroup"],["col"]],"*"],Q=["caption","colgroup, col","*"];function $(kt,Ot){1&kt&&i.SdG(0,2)}function ie(kt,Ot){1&kt&&(i.j41(0,"thead",0),i.eu8(1,1),i.k0s(),i.j41(2,"tbody",0),i.eu8(3,2)(4,3),i.k0s(),i.j41(5,"tfoot",0),i.eu8(6,4),i.k0s())}function _e(kt,Ot){1&kt&&i.eu8(0,1)(1,2)(2,3)(3,4)}const pe=new g.nKC("CDK_TABLE");let L=(()=>{class kt{template=(0,g.WQX)(i.C4Q);constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkCellDef",""]]})}return kt})(),t=(()=>{class kt{template=(0,g.WQX)(i.C4Q);constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkHeaderCellDef",""]]})}return kt})(),s=(()=>{class kt{template=(0,g.WQX)(i.C4Q);constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkFooterCellDef",""]]})}return kt})(),m=(()=>{class kt{_table=(0,g.WQX)(pe,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(Ze){this._setNameInput(Ze)}_name;get sticky(){return this._sticky}set sticky(Ze){Ze!==this._sticky&&(this._sticky=Ze,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(Ze){Ze!==this._stickyEnd&&(this._stickyEnd=Ze,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){const Ze=this._hasStickyChanged;return this.resetStickyChanged(),Ze}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Ze){Ze&&(this._name=Ze,this.cssClassFriendlyName=Ze.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkColumnDef",""]],contentQueries:function(Ge,Pt,Yt){if(1&Ge&&(i.wni(Yt,L,5),i.wni(Yt,t,5),i.wni(Yt,s,5)),2&Ge){let bn;i.mGM(bn=i.lsd())&&(Pt.cell=bn.first),i.mGM(bn=i.lsd())&&(Pt.headerCell=bn.first),i.mGM(bn=i.lsd())&&(Pt.footerCell=bn.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",p.L39],stickyEnd:[2,"stickyEnd","stickyEnd",p.L39]},features:[i.Jv_([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:kt}])]})}return kt})();class u{constructor(Ot,Ze){Ze.nativeElement.classList.add(...Ot._columnCssClassName)}}let _=(()=>{class kt extends u{constructor(){super((0,g.WQX)(m),(0,g.WQX)(i.aKT))}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.Vt3]})}return kt})(),T=(()=>{class kt extends u{constructor(){const Ze=(0,g.WQX)(m),Ge=(0,g.WQX)(i.aKT);super(Ze,Ge);const Pt=Ze._table?._getCellRole();Pt&&Ge.nativeElement.setAttribute("role",Pt)}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.Vt3]})}return kt})(),P=(()=>{class kt extends u{constructor(){const Ze=(0,g.WQX)(m),Ge=(0,g.WQX)(i.aKT);super(Ze,Ge);const Pt=Ze._table?._getCellRole();Pt&&Ge.nativeElement.setAttribute("role",Pt)}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.Vt3]})}return kt})(),a=(()=>{class kt{template=(0,g.WQX)(i.C4Q);_differs=(0,g.WQX)(p._q3);columns;_columnsDiffer;constructor(){}ngOnChanges(Ze){if(!this._columnsDiffer){const Ge=Ze.columns&&Ze.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ge).create(),this._columnsDiffer.diff(Ge)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Ze){return this instanceof x?Ze.headerCell.template:this instanceof Y?Ze.footerCell.template:Ze.cell.template}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,features:[i.OA$]})}return kt})(),x=(()=>{class kt extends a{_table=(0,g.WQX)(pe,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(Ze){Ze!==this._sticky&&(this._sticky=Ze,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,g.WQX)(i.C4Q),(0,g.WQX)(p._q3))}ngOnChanges(Ze){super.ngOnChanges(Ze)}hasStickyChanged(){const Ze=this._hasStickyChanged;return this.resetStickyChanged(),Ze}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",p.L39]},features:[i.Vt3,i.OA$]})}return kt})(),Y=(()=>{class kt extends a{_table=(0,g.WQX)(pe,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(Ze){Ze!==this._sticky&&(this._sticky=Ze,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,g.WQX)(i.C4Q),(0,g.WQX)(p._q3))}ngOnChanges(Ze){super.ngOnChanges(Ze)}hasStickyChanged(){const Ze=this._hasStickyChanged;return this.resetStickyChanged(),Ze}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",p.L39]},features:[i.Vt3,i.OA$]})}return kt})(),R=(()=>{class kt extends a{_table=(0,g.WQX)(pe,{optional:!0});when;constructor(){super((0,g.WQX)(i.C4Q),(0,g.WQX)(p._q3))}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[i.Vt3]})}return kt})(),U=(()=>{class kt{_viewContainer=(0,g.WQX)(i.c1b);cells;context;static mostRecentCellOutlet=null;constructor(){kt.mostRecentCellOutlet=this}ngOnDestroy(){kt.mostRecentCellOutlet===this&&(kt.mostRecentCellOutlet=null)}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkCellOutlet",""]]})}return kt})(),fe=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),re=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),he=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),Oe=(()=>{class kt{templateRef=(0,g.WQX)(i.C4Q);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["ng-template","cdkNoDataRow",""]]})}return kt})();const ge=["top","bottom","left","right"];class ce{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(Ot=>this._updateCachedSizes(Ot)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(Ot,Ze,Ge=!0,Pt=!0,Yt,bn,$n){this._isNativeHtmlTable=Ot,this._stickCellCss=Ze,this._isBrowser=Ge,this._needsPositionStickyOnElement=Pt,this.direction=Yt,this._positionListener=bn,this._tableInjector=$n,this._borderCellCss={top:`${Ze}-border-elem-top`,bottom:`${Ze}-border-elem-bottom`,left:`${Ze}-border-elem-left`,right:`${Ze}-border-elem-right`}}clearStickyPositioning(Ot,Ze){(Ze.includes("left")||Ze.includes("right"))&&this._removeFromStickyColumnReplayQueue(Ot);const Ge=[];for(const Pt of Ot)Pt.nodeType===Pt.ELEMENT_NODE&&Ge.push(Pt,...Array.from(Pt.children));(0,i.mal)({write:()=>{for(const Pt of Ge)this._removeStickyStyle(Pt,Ze)}},{injector:this._tableInjector})}updateStickyColumns(Ot,Ze,Ge,Pt=!0,Yt=!0){if(!Ot.length||!this._isBrowser||!Ze.some(Un=>Un)&&!Ge.some(Un=>Un))return this._positionListener?.stickyColumnsUpdated({sizes:[]}),void this._positionListener?.stickyEndColumnsUpdated({sizes:[]});const bn=Ot[0],$n=bn.children.length,oi="rtl"===this.direction,Ii=oi?"right":"left",Ei=oi?"left":"right",Nt=Ze.lastIndexOf(!0),nn=Ge.indexOf(!0);let en,Nn,jn;Yt&&this._updateStickyColumnReplayQueue({rows:[...Ot],stickyStartStates:[...Ze],stickyEndStates:[...Ge]}),(0,i.mal)({earlyRead:()=>{en=this._getCellWidths(bn,Pt),Nn=this._getStickyStartColumnPositions(en,Ze),jn=this._getStickyEndColumnPositions(en,Ge)},write:()=>{for(const Un of Ot)for(let ui=0;ui<$n;ui++){const gn=Un.children[ui];Ze[ui]&&this._addStickyStyle(gn,Ii,Nn[ui],ui===Nt),Ge[ui]&&this._addStickyStyle(gn,Ei,jn[ui],ui===nn)}this._positionListener&&en.some(Un=>!!Un)&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Nt?[]:en.slice(0,Nt+1).map((Un,ui)=>Ze[ui]?Un:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===nn?[]:en.slice(nn).map((Un,ui)=>Ge[ui+nn]?Un:null).reverse()}))}},{injector:this._tableInjector})}stickRows(Ot,Ze,Ge){if(!this._isBrowser)return;const Pt="bottom"===Ge?Ot.slice().reverse():Ot,Yt="bottom"===Ge?Ze.slice().reverse():Ze,bn=[],$n=[],oi=[];(0,i.mal)({earlyRead:()=>{for(let Ii=0,Ei=0;Ii{const Ii=Yt.lastIndexOf(!0);for(let Ei=0;Ei{const Ge=Ot.querySelector("tfoot");Ge&&(Ze.some(Pt=>!Pt)?this._removeStickyStyle(Ge,["bottom"]):this._addStickyStyle(Ge,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(Ot,Ze){if(Ot.classList.contains(this._stickCellCss)){for(const Pt of Ze)Ot.style[Pt]="",Ot.classList.remove(this._borderCellCss[Pt]);ge.some(Pt=>-1===Ze.indexOf(Pt)&&Ot.style[Pt])?Ot.style.zIndex=this._getCalculatedZIndex(Ot):(Ot.style.zIndex="",this._needsPositionStickyOnElement&&(Ot.style.position=""),Ot.classList.remove(this._stickCellCss))}}_addStickyStyle(Ot,Ze,Ge,Pt){Ot.classList.add(this._stickCellCss),Pt&&Ot.classList.add(this._borderCellCss[Ze]),Ot.style[Ze]=`${Ge}px`,Ot.style.zIndex=this._getCalculatedZIndex(Ot),this._needsPositionStickyOnElement&&(Ot.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ot){const Ze={top:100,bottom:10,left:1,right:1};let Ge=0;for(const Pt of ge)Ot.style[Pt]&&(Ge+=Ze[Pt]);return Ge?`${Ge}`:""}_getCellWidths(Ot,Ze=!0){if(!Ze&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ge=[],Pt=Ot.children;for(let Yt=0;Yt0;Yt--)Ze[Yt]&&(Ge[Yt]=Pt,Pt+=Ot[Yt]);return Ge}_retrieveElementSize(Ot){const Ze=this._elemSizeCache.get(Ot);if(Ze)return Ze;const Ge=Ot.getBoundingClientRect(),Pt={width:Ge.width,height:Ge.height};return this._resizeObserver&&(this._elemSizeCache.set(Ot,Pt),this._resizeObserver.observe(Ot,{box:"border-box"})),Pt}_updateStickyColumnReplayQueue(Ot){this._removeFromStickyColumnReplayQueue(Ot.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(Ot)}_removeFromStickyColumnReplayQueue(Ot){const Ze=new Set(Ot);for(const Ge of this._updatedStickyColumnsParamsToReplay)Ge.rows=Ge.rows.filter(Pt=>!Ze.has(Pt));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(Ge=>!!Ge.rows.length)}_updateCachedSizes(Ot){let Ze=!1;for(const Ge of Ot){const Pt=Ge.borderBoxSize?.length?{width:Ge.borderBoxSize[0].inlineSize,height:Ge.borderBoxSize[0].blockSize}:{width:Ge.contentRect.width,height:Ge.contentRect.height};Pt.width!==this._elemSizeCache.get(Ge.target)?.width&&Re(Ge.target)&&(Ze=!0),this._elemSizeCache.set(Ge.target,Pt)}Ze&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(const Ge of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(Ge.rows,Ge.stickyStartStates,Ge.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}}function Re(kt){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(Ot=>kt.classList.contains(Ot))}const yt=new g.nKC("CDK_SPL");let rt=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._rowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","rowOutlet",""]]})}return kt})(),Mn=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._headerRowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","headerRowOutlet",""]]})}return kt})(),qt=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._footerRowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","footerRowOutlet",""]]})}return kt})(),S=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._noDataRowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","noDataRowOutlet",""]]})}return kt})(),Xt=(()=>{class kt{_differs=(0,g.WQX)(p._q3);_changeDetectorRef=(0,g.WQX)(p.gRc);_elementRef=(0,g.WQX)(i.aKT);_dir=(0,g.WQX)(j.dS,{optional:!0});_platform=(0,g.WQX)(Z.O);_viewRepeater=(0,g.WQX)(F);_viewportRuler=(0,g.WQX)(ee.Xj);_stickyPositioningListener=(0,g.WQX)(yt,{optional:!0,skipSelf:!0});_document=(0,g.WQX)(g.qQL);_data;_onDestroy=new o.B;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(void 0===this._cellRoleInternal){const Ze=this._elementRef.nativeElement.getAttribute("role");return"grid"===Ze||"treegrid"===Ze?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(Ze){this._trackByFn=Ze}_trackByFn;get dataSource(){return this._dataSource}set dataSource(Ze){this._dataSource!==Ze&&this._switchDataSource(Ze)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Ze){this._multiTemplateDataRows=Ze,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(Ze){this._fixedLayout=Ze,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new i.bkB;viewChange=new e.t({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=(0,g.WQX)(g.zZn);constructor(){(0,g.WQX)(new p.ES_("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName,this._dataDiffer=this._differs.find([]).create((Ge,Pt)=>this.trackBy?this.trackBy(Pt.dataIndex,Pt.data):Pt)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe((0,d.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Ze=>{Ze?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,D.y)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Ze=this._dataDiffer.diff(this._renderRows);if(!Ze)return this._updateNoDataRow(),void this.contentChanged.next();const Ge=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Ze,Ge,(Pt,Yt,bn)=>this._getEmbeddedViewArgs(Pt.item,bn),Pt=>Pt.item.data,Pt=>{Pt.operation===f.INSERTED&&Pt.context&&this._renderCellTemplateForItem(Pt.record.item.rowDef,Pt.context)}),this._updateRowIndexContext(),Ze.forEachIdentityChange(Pt=>{Ge.get(Pt.currentIndex).context.$implicit=Pt.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(Ze){this._customColumnDefs.add(Ze)}removeColumnDef(Ze){this._customColumnDefs.delete(Ze)}addRowDef(Ze){this._customRowDefs.add(Ze)}removeRowDef(Ze){this._customRowDefs.delete(Ze)}addHeaderRowDef(Ze){this._customHeaderRowDefs.add(Ze),this._headerRowDefChanged=!0}removeHeaderRowDef(Ze){this._customHeaderRowDefs.delete(Ze),this._headerRowDefChanged=!0}addFooterRowDef(Ze){this._customFooterRowDefs.add(Ze),this._footerRowDefChanged=!0}removeFooterRowDef(Ze){this._customFooterRowDefs.delete(Ze),this._footerRowDefChanged=!0}setNoDataRow(Ze){this._customNoDataRow=Ze}updateStickyHeaderRowStyles(){const Ze=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const Pt=ae(this._headerRowOutlet,"thead");Pt&&(Pt.style.display=Ze.length?"":"none")}const Ge=this._headerRowDefs.map(Pt=>Pt.sticky);this._stickyStyler.clearStickyPositioning(Ze,["top"]),this._stickyStyler.stickRows(Ze,Ge,"top"),this._headerRowDefs.forEach(Pt=>Pt.resetStickyChanged())}updateStickyFooterRowStyles(){const Ze=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const Pt=ae(this._footerRowOutlet,"tfoot");Pt&&(Pt.style.display=Ze.length?"":"none")}const Ge=this._footerRowDefs.map(Pt=>Pt.sticky);this._stickyStyler.clearStickyPositioning(Ze,["bottom"]),this._stickyStyler.stickRows(Ze,Ge,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Ge),this._footerRowDefs.forEach(Pt=>Pt.resetStickyChanged())}updateStickyColumnStyles(){const Ze=this._getRenderedRows(this._headerRowOutlet),Ge=this._getRenderedRows(this._rowOutlet),Pt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Ze,...Ge,...Pt],["left","right"]),this._stickyColumnStylesNeedReset=!1),Ze.forEach((Yt,bn)=>{this._addStickyColumnStyles([Yt],this._headerRowDefs[bn])}),this._rowDefs.forEach(Yt=>{const bn=[];for(let $n=0;$n{this._addStickyColumnStyles([Yt],this._footerRowDefs[bn])}),Array.from(this._columnDefsByName.values()).forEach(Yt=>Yt.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const Ge=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ge,this._forceRecalculateCellWidths=Ge,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()}_getAllRenderRows(){const Ze=[],Ge=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return Ze;for(let Pt=0;Pt{const $n=Pt&&Pt.has(bn)?Pt.get(bn):[];if($n.length){const oi=$n.shift();return oi.dataIndex=Ge,oi}return{data:Ze,rowDef:bn,dataIndex:Ge}})}_cacheColumnDefs(){this._columnDefsByName.clear(),de(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ge=>{this._columnDefsByName.has(Ge.name),this._columnDefsByName.set(Ge.name,Ge)})}_cacheRowDefs(){this._headerRowDefs=de(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=de(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=de(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Ze=this._rowDefs.filter(Ge=>!Ge.when);this._defaultRowDef=Ze[0]}_renderUpdatedColumns(){const Ze=(bn,$n)=>{const oi=!!$n.getColumnsDiff();return bn||oi},Ge=this._rowDefs.reduce(Ze,!1);Ge&&this._forceRenderDataRows();const Pt=this._headerRowDefs.reduce(Ze,!1);Pt&&this._forceRenderHeaderRows();const Yt=this._footerRowDefs.reduce(Ze,!1);return Yt&&this._forceRenderFooterRows(),Ge||Pt||Yt}_switchDataSource(Ze){this._data=[],(0,D.y)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Ze||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=Ze}_observeRenderChanges(){if(!this.dataSource)return;let Ze;(0,D.y)(this.dataSource)?Ze=this.dataSource.connect(this):(0,A.A)(this.dataSource)?Ze=this.dataSource:Array.isArray(this.dataSource)&&(Ze=(0,h.of)(this.dataSource)),this._renderChangeSubscription=Ze.pipe((0,d.Q)(this._onDestroy)).subscribe(Ge=>{this._data=Ge||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Ze,Ge)=>this._renderRow(this._headerRowOutlet,Ze,Ge)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Ze,Ge)=>this._renderRow(this._footerRowOutlet,Ze,Ge)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Ze,Ge){const Pt=Array.from(Ge?.columns||[]).map($n=>this._columnDefsByName.get($n)),Yt=Pt.map($n=>$n.sticky),bn=Pt.map($n=>$n.stickyEnd);this._stickyStyler.updateStickyColumns(Ze,Yt,bn,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Ze){const Ge=[];for(let Pt=0;Pt!Yt.when||Yt.when(Ge,Ze));else{let Yt=this._rowDefs.find(bn=>bn.when&&bn.when(Ge,Ze))||this._defaultRowDef;Yt&&Pt.push(Yt)}return Pt}_getEmbeddedViewArgs(Ze,Ge){return{templateRef:Ze.rowDef.template,context:{$implicit:Ze.data},index:Ge}}_renderRow(Ze,Ge,Pt,Yt={}){const bn=Ze.viewContainer.createEmbeddedView(Ge.template,Yt,Pt);return this._renderCellTemplateForItem(Ge,Yt),bn}_renderCellTemplateForItem(Ze,Ge){for(let Pt of this._getCellTemplates(Ze))U.mostRecentCellOutlet&&U.mostRecentCellOutlet._viewContainer.createEmbeddedView(Pt,Ge);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Ze=this._rowOutlet.viewContainer;for(let Ge=0,Pt=Ze.length;Ge{const Pt=this._columnDefsByName.get(Ge);return Ze.extractCellTemplate(Pt)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Ze=(Ge,Pt)=>Ge||Pt.hasStickyChanged();this._headerRowDefs.reduce(Ze,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Ze,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Ze,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ce(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,this._dir?this._dir.value:"ltr",this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.Q)(this._onDestroy)).subscribe(Ge=>{this._stickyStyler.direction=Ge,this.updateStickyColumnStyles()})}_getOwnDefs(Ze){return Ze.filter(Ge=>!Ge._table||Ge._table===this)}_updateNoDataRow(){const Ze=this._customNoDataRow||this._noDataRow;if(!Ze)return;const Ge=0===this._rowOutlet.viewContainer.length;if(Ge===this._isShowingNoDataRow)return;const Pt=this._noDataRowOutlet.viewContainer;if(Ge){const Yt=Pt.createEmbeddedView(Ze.templateRef),bn=Yt.rootNodes[0];if(1===Yt.rootNodes.length&&bn?.nodeType===this._document.ELEMENT_NODE){bn.setAttribute("role","row"),bn.classList.add(...Ze._contentClassNames);const $n=bn.querySelectorAll(Ze._cellSelector);for(let oi=0;oi<$n.length;oi++)$n[oi].classList.add(...Ze._cellClassNames)}}else Pt.clear();this._isShowingNoDataRow=Ge,this._changeDetectorRef.markForCheck()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Ge,Pt,Yt){if(1&Ge&&(i.wni(Yt,Oe,5),i.wni(Yt,m,5),i.wni(Yt,R,5),i.wni(Yt,x,5),i.wni(Yt,Y,5)),2&Ge){let bn;i.mGM(bn=i.lsd())&&(Pt._noDataRow=bn.first),i.mGM(bn=i.lsd())&&(Pt._contentColumnDefs=bn),i.mGM(bn=i.lsd())&&(Pt._contentRowDefs=bn),i.mGM(bn=i.lsd())&&(Pt._contentHeaderRowDefs=bn),i.mGM(bn=i.lsd())&&(Pt._contentFooterRowDefs=bn)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Ge,Pt){2&Ge&&i.AVh("cdk-table-fixed-layout",Pt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",p.L39],fixedLayout:[2,"fixedLayout","fixedLayout",p.L39]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i.Jv_([{provide:pe,useExisting:kt},{provide:F,useClass:K},{provide:yt,useValue:null}])],ngContentSelectors:Q,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ge,Pt){1&Ge&&(i.NAR(V),i.SdG(0),i.SdG(1,1),i.nVh(2,$,1,0),i.nVh(3,ie,7,0)(4,_e,4,0)),2&Ge&&(i.R7$(2),i.vxM(Pt._isServer?2:-1),i.R7$(),i.vxM(Pt._isNativeHtmlTable?3:4))},dependencies:[Mn,rt,S,qt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2})}return kt})();function de(kt,Ot){return kt.concat(Array.from(Ot))}function ae(kt,Ot){const Ze=Ot.toUpperCase();let Ge=kt.viewContainer.element.nativeElement;for(;Ge;){const Pt=1===Ge.nodeType?Ge.nodeName:null;if(Pt===Ze)return Ge;if("TABLE"===Pt)break;Ge=Ge.parentNode}return null}let et=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275mod=i.$C({type:kt});static \u0275inj=g.G2t({imports:[ee.E9]})}return kt})();var tn=l(22466),Vt=l(57786),hn=l(84572),En=l(67847),_n=l(96354);const tt=[[["caption"]],[["colgroup"],["col"]],"*"],Fe=["caption","colgroup, col","*"];function Pe(kt,Ot){1&kt&&i.SdG(0,2)}function Ue(kt,Ot){1&kt&&(i.j41(0,"thead",0),i.eu8(1,1),i.k0s(),i.j41(2,"tbody",2),i.eu8(3,3)(4,4),i.k0s(),i.j41(5,"tfoot",0),i.eu8(6,5),i.k0s())}function Qe(kt,Ot){1&kt&&i.eu8(0,1)(1,3)(2,4)(3,5)}let ze=(()=>{class kt extends Xt{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(Ge,Pt){2&Ge&&i.AVh("mdc-table-fixed-layout",Pt.fixedLayout)},exportAs:["matTable"],features:[i.Jv_([{provide:Xt,useExisting:kt},{provide:pe,useExisting:kt},{provide:F,useClass:K},{provide:yt,useValue:null}]),i.Vt3],ngContentSelectors:Fe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ge,Pt){1&Ge&&(i.NAR(tt),i.SdG(0),i.SdG(1,1),i.nVh(2,Pe,1,0),i.nVh(3,Ue,7,0)(4,Qe,4,0)),2&Ge&&(i.R7$(2),i.vxM(Pt._isServer?2:-1),i.R7$(),i.vxM(Pt._isNativeHtmlTable?3:4))},dependencies:[Mn,rt,S,qt],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}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}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\n"],encapsulation:2})}return kt})(),Je=(()=>{class kt extends L{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matCellDef",""]],features:[i.Jv_([{provide:L,useExisting:kt}]),i.Vt3]})}return kt})(),gt=(()=>{class kt extends t{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matHeaderCellDef",""]],features:[i.Jv_([{provide:t,useExisting:kt}]),i.Vt3]})}return kt})(),zt=(()=>{class kt extends s{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matFooterCellDef",""]],features:[i.Jv_([{provide:s,useExisting:kt}]),i.Vt3]})}return kt})(),Ye=(()=>{class kt extends m{get name(){return this._name}set name(Ze){this._setNameInput(Ze)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[i.Jv_([{provide:m,useExisting:kt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:kt}]),i.Vt3]})}return kt})(),st=(()=>{class kt extends _{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[i.Vt3]})}return kt})(),it=(()=>{class kt extends T{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[i.Vt3]})}return kt})(),He=(()=>{class kt extends P{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[i.Vt3]})}return kt})(),we=(()=>{class kt extends x{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",p.L39]},features:[i.Jv_([{provide:x,useExisting:kt}]),i.Vt3]})}return kt})(),We=(()=>{class kt extends Y{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",p.L39]},features:[i.Jv_([{provide:Y,useExisting:kt}]),i.Vt3]})}return kt})(),Lt=(()=>{class kt extends R{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[i.Jv_([{provide:R,useExisting:kt}]),i.Vt3]})}return kt})(),St=(()=>{class kt extends fe{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[i.Jv_([{provide:fe,useExisting:kt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),At=(()=>{class kt extends re{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[i.Jv_([{provide:re,useExisting:kt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),fn=(()=>{class kt extends he{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[i.Jv_([{provide:he,useExisting:kt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),In=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275mod=i.$C({type:kt});static \u0275inj=g.G2t({imports:[tn.y,et,tn.y]})}return kt})();class Li extends D.q{_data;_renderData=new e.t([]);_filter=new e.t("");_internalPageChanges=new o.B;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(Ot){Ot=Array.isArray(Ot)?Ot:[],this._data.next(Ot),this._renderChangesSubscription||this._filterData(Ot)}get filter(){return this._filter.value}set filter(Ot){this._filter.next(Ot),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ot){this._sort=Ot,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(Ot){this._paginator=Ot,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(Ot,Ze)=>{const Ge=Ot[Ze];if((0,En.o1)(Ge)){const Pt=Number(Ge);return Pt<9007199254740991?Pt:Ge}return Ge};sortData=(Ot,Ze)=>{const Ge=Ze.active,Pt=Ze.direction;return Ge&&""!=Pt?Ot.sort((Yt,bn)=>{let $n=this.sortingDataAccessor(Yt,Ge),oi=this.sortingDataAccessor(bn,Ge);const Ii=typeof $n,Ei=typeof oi;Ii!==Ei&&("number"===Ii&&($n+=""),"number"===Ei&&(oi+=""));let Nt=0;return null!=$n&&null!=oi?$n>oi?Nt=1:$n{const Ge=Ze.trim().toLowerCase();return Object.values(Ot).some(Pt=>`${Pt}`.toLowerCase().includes(Ge))};constructor(Ot=[]){super(),this._data=new e.t(Ot),this._updateChangeSubscription()}_updateChangeSubscription(){const Ot=this._sort?(0,Vt.h)(this._sort.sortChange,this._sort.initialized):(0,h.of)(null),Ze=this._paginator?(0,Vt.h)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,h.of)(null),Pt=(0,hn.z)([this._data,this._filter]).pipe((0,_n.T)(([$n])=>this._filterData($n))),Yt=(0,hn.z)([Pt,Ot]).pipe((0,_n.T)(([$n])=>this._orderData($n))),bn=(0,hn.z)([Yt,Ze]).pipe((0,_n.T)(([$n])=>this._pageData($n)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=bn.subscribe($n=>this._renderData.next($n))}_filterData(Ot){return this.filteredData=null==this.filter||""===this.filter?Ot:Ot.filter(Ze=>this.filterPredicate(Ze,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ot){return this.sort?this.sortData(Ot.slice(),this.sort):Ot}_pageData(Ot){if(!this.paginator)return Ot;const Ze=this.paginator.pageIndex*this.paginator.pageSize;return Ot.slice(Ze,Ze+this.paginator.pageSize)}_updatePaginator(Ot){Promise.resolve().then(()=>{const Ze=this.paginator;if(Ze&&(Ze.length=Ot,Ze.pageIndex>0)){const Ge=Math.ceil(Ze.length/Ze.pageSize)-1||0,Pt=Math.min(Ze.pageIndex,Ge);Pt!==Ze.pageIndex&&(Ze.pageIndex=Pt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}},96850(ke,q,l){"use strict";l.d(q,{Bu:()=>Ie,ES:()=>rt,Ql:()=>le,RI:()=>ze,T8:()=>Ue,hQ:()=>Ne,mq:()=>qt});var i=l(76838),g=l(89726),p=l(64123),D=l(61577),o=l(67336),e=l(10438),A=l(63610),h=l(39842),d=l(5718),w=l(2615),f=l(73664),F=l(17705),M=l(59295),K=l(71985),j=l(21413),Z=l(84412),ee=l(18359),V=l(57786),Q=l(7673),$=l(1807),ie=l(983),_e=l(70152),ye=l(5964),se=l(65245),pe=l(99172),Ee=l(25558),L=l(56977),t=l(31804),s=l(76939),m=l(88968),u=l(32046),_=l(72318),T=l(12496),P=l(22466);const C=["*"];function a(gt,zt){1>&&f.SdG(0)}const x=["tabListContainer"],Y=["tabList"],R=["tabListInner"],U=["nextPaginator"],fe=["previousPaginator"],re=["content"];function he(gt,zt){}const Oe=["tabBodyWrapper"],ge=["tabHeader"];function ce(gt,zt){}function Re(gt,zt){if(1>&&f.DNE(0,ce,0,0,"ng-template",12),2>){const Ye=f.XpG().$implicit;f.Y8G("cdkPortalOutlet",Ye.templateLabel)}}function Me(gt,zt){if(1>&&f.EFF(0),2>){const Ye=f.XpG().$implicit;f.JRh(Ye.textLabel)}}function ve(gt,zt){if(1>){const Ye=f.RV6();f.j41(0,"div",7,2),f.bIt("click",function(){const it=w.eBV(Ye),He=it.$implicit,Wt=it.$index,we=f.XpG(),We=f.sdS(1);return w.Njj(we._handleClick(He,We,Wt))})("cdkFocusChange",function(it){const He=w.eBV(Ye).$index,Wt=f.XpG();return w.Njj(Wt._tabFocusChanged(it,He))}),f.nrm(2,"span",8)(3,"div",9),f.j41(4,"span",10)(5,"span",11),f.nVh(6,Re,1,1,null,12)(7,Me,1,1),f.k0s()()()}if(2>){const Ye=zt.$implicit,st=zt.$index,it=f.sdS(1),He=f.XpG();f.HbH(Ye.labelClass),f.AVh("mdc-tab--active",He.selectedIndex===st),f.Y8G("id",He._getTabLabelId(Ye,st))("disabled",Ye.disabled)("fitInkBarToContent",He.fitInkBarToContent),f.BMQ("tabIndex",He._getTabIndex(st))("aria-posinset",st+1)("aria-setsize",He._tabs.length)("aria-controls",He._getTabContentId(st))("aria-selected",He.selectedIndex===st)("aria-label",Ye.ariaLabel||null)("aria-labelledby",!Ye.ariaLabel&&Ye.ariaLabelledby?Ye.ariaLabelledby:null),f.R7$(3),f.Y8G("matRippleTrigger",it)("matRippleDisabled",Ye.disabled||He.disableRipple),f.R7$(3),f.vxM(Ye.templateLabel?6:7)}}function oe(gt,zt){1>&&f.SdG(0)}function Se(gt,zt){if(1>){const Ye=f.RV6();f.j41(0,"mat-tab-body",13),f.bIt("_onCentered",function(){w.eBV(Ye);const it=f.XpG();return w.Njj(it._removeTabBodyWrapperHeight())})("_onCentering",function(it){w.eBV(Ye);const He=f.XpG();return w.Njj(He._setTabBodyWrapperHeight(it))})("_beforeCentering",function(it){w.eBV(Ye);const He=f.XpG();return w.Njj(He._bodyCentered(it))}),f.k0s()}if(2>){const Ye=zt.$implicit,st=zt.$index,it=f.XpG();f.HbH(Ye.bodyClass),f.Y8G("id",it._getTabContentId(st))("content",Ye.content)("position",Ye.position)("animationDuration",it.animationDuration)("preserveContent",it.preserveContent),f.BMQ("tabindex",null!=it.contentTabIndex&&it.selectedIndex===st?it.contentTabIndex:null)("aria-labelledby",it._getTabLabelId(Ye,st))("aria-hidden",it.selectedIndex!==st)}}const be=["mat-tab-nav-bar",""],nt=["mat-tab-link",""],$e=new w.nKC("MatTabContent");let dt=(()=>{class gt{template=(0,w.WQX)(f.C4Q);constructor(){}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,selectors:[["","matTabContent",""]],features:[f.Jv_([{provide:$e,useExisting:gt}])]})}return gt})();const yt=new w.nKC("MatTabLabel"),Et=new w.nKC("MAT_TAB");let rt=(()=>{class gt extends s.bV{_closestTab=(0,w.WQX)(Et,{optional:!0});static \u0275fac=(()=>{let Ye;return function(it){return(Ye||(Ye=f.xGo(gt)))(it||gt)}})();static \u0275dir=f.FsC({type:gt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[f.Jv_([{provide:yt,useExisting:gt}]),f.Vt3]})}return gt})();const Mn=new w.nKC("MAT_TAB_GROUP");let qt=(()=>{class gt{_viewContainerRef=(0,w.WQX)(f.c1b);_closestTabGroup=(0,w.WQX)(Mn,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(Ye){this._setTemplateLabelInput(Ye)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new j.B;position=null;origin=null;isActive=!1;constructor(){(0,w.WQX)(m.l).load(u.A)}ngOnChanges(Ye){(Ye.hasOwnProperty("textLabel")||Ye.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new s.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ye){Ye&&Ye._closestTab===this&&(this._templateLabel=Ye)}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab"]],contentQueries:function(st,it,He){if(1&st&&(f.wni(He,rt,5),f.wni(He,dt,7,f.C4Q)),2&st){let Wt;f.mGM(Wt=f.lsd())&&(it.templateLabel=Wt.first),f.mGM(Wt=f.lsd())&&(it._explicitContent=Wt.first)}},viewQuery:function(st,it){if(1&st&&f.GBs(f.C4Q,7),2&st){let He;f.mGM(He=f.lsd())&&(it._implicitContent=He.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(st,it){2&st&&f.BMQ("id",null)},inputs:{disabled:[2,"disabled","disabled",F.L39],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[f.Jv_([{provide:Et,useExisting:gt}]),f.OA$],ngContentSelectors:C,decls:1,vars:0,template:function(st,it){1&st&&(f.NAR(),f.PeT(0,a,1,0,"ng-template"))},encapsulation:2})}return gt})();const S="mdc-tab-indicator--active",Xt="mdc-tab-indicator--no-transition";class de{_items;_currentItem;constructor(zt){this._items=zt}hide(){this._items.forEach(zt=>zt.deactivateInkBar()),this._currentItem=void 0}alignToElement(zt){const Ye=this._items.find(it=>it.elementRef.nativeElement===zt),st=this._currentItem;if(Ye!==st&&(st?.deactivateInkBar(),Ye)){const it=st?.elementRef.nativeElement.getBoundingClientRect?.();Ye.activateInkBar(it),this._currentItem=Ye}}}let ae=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Ye){this._fitToContent!==Ye&&(this._fitToContent=Ye,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Ye){const st=this._elementRef.nativeElement;if(!Ye||!st.getBoundingClientRect||!this._inkBarContentElement)return void st.classList.add(S);const it=st.getBoundingClientRect(),He=Ye.width/it.width,Wt=Ye.left-it.left;st.classList.add(Xt),this._inkBarContentElement.style.setProperty("transform",`translateX(${Wt}px) scaleX(${He})`),st.getBoundingClientRect(),st.classList.remove(Xt),st.classList.add(S),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(S)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Ye=this._elementRef.nativeElement.ownerDocument||document,st=this._inkBarElement=Ye.createElement("span"),it=this._inkBarContentElement=Ye.createElement("span");st.className="mdc-tab-indicator",it.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",st.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",F.L39]}})}return gt})(),et=(()=>{class gt extends ae{elementRef=(0,w.WQX)(f.aKT);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let Ye;return function(it){return(Ye||(Ye=f.xGo(gt)))(it||gt)}})();static \u0275dir=f.FsC({type:gt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(st,it){2&st&&(f.BMQ("aria-disabled",!!it.disabled),f.AVh("mat-mdc-tab-disabled",it.disabled))},inputs:{disabled:[2,"disabled","disabled",F.L39]},features:[f.Vt3]})}return gt})();const tn={passive:!0};let En=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_changeDetectorRef=(0,w.WQX)(F.gRc);_viewportRuler=(0,w.WQX)(d.Xj);_dir=(0,w.WQX)(D.dS,{optional:!0});_ngZone=(0,w.WQX)(f.SKi);_platform=(0,w.WQX)(h.O);_sharedResizeObserver=(0,w.WQX)(A.a);_injector=(0,w.WQX)(w.zZn);_renderer=(0,w.WQX)(f.sFG);_animationsDisabled=(0,t.Rc)();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new j.B;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new j.B;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(Ye){const st=isNaN(Ye)?0:Ye;this._selectedIndex!=st&&(this._selectedIndexChanged=!0,this._selectedIndex=st,this._keyManager&&this._keyManager.updateActiveItem(st))}_selectedIndex=0;selectFocusedIndex=new f.bkB;indexFocused=new f.bkB;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),tn),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),tn))}ngAfterContentInit(){const Ye=this._dir?this._dir.change:(0,Q.of)("ltr"),st=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe((0,_e.B)(32),(0,L.Q)(this._destroyed)),it=this._viewportRuler.change(150).pipe((0,L.Q)(this._destroyed)),He=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new p.B(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),(0,f.mal)(He,{injector:this._injector}),(0,V.h)(Ye,it,st,this._items.changes,this._itemsResized()).pipe((0,L.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),He()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Wt=>{this.indexFocused.emit(Wt),this._setTabFocus(Wt)})}_itemsResized(){return"function"!=typeof ResizeObserver?ie.w:this._items.changes.pipe((0,pe.Z)(this._items),(0,Ee.n)(Ye=>new K.c(st=>this._ngZone.runOutsideAngular(()=>{const it=new ResizeObserver(He=>st.next(He));return Ye.forEach(He=>it.observe(He.elementRef.nativeElement)),()=>{it.disconnect()}}))),(0,se.i)(1),(0,ye.p)(Ye=>Ye.some(st=>st.contentRect.width>0&&st.contentRect.height>0)))}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._eventCleanups.forEach(Ye=>Ye()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ye){if(!(0,o.rp)(Ye))switch(Ye.keyCode){case e.Fm:case e.t6:if(this.focusIndex!==this.selectedIndex){const st=this._items.get(this.focusIndex);st&&!st.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Ye))}break;default:this._keyManager?.onKeydown(Ye)}}_onContentChanges(){const Ye=this._elementRef.nativeElement.textContent;Ye!==this._currentTextContent&&(this._currentTextContent=Ye||"",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(Ye){!this._isValidIndex(Ye)||this.focusIndex===Ye||!this._keyManager||this._keyManager.setActiveItem(Ye)}_isValidIndex(Ye){return!this._items||!!this._items.toArray()[Ye]}_setTabFocus(Ye){if(this._showPaginationControls&&this._scrollToLabel(Ye),this._items&&this._items.length){this._items.toArray()[Ye].focus();const st=this._tabListContainer.nativeElement;st.scrollLeft="ltr"==this._getLayoutDirection()?0:st.scrollWidth-st.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ye=this.scrollDistance,st="ltr"===this._getLayoutDirection()?-Ye:Ye;this._tabList.nativeElement.style.transform=`translateX(${Math.round(st)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Ye){this._scrollTo(Ye)}_scrollHeader(Ye){return this._scrollTo(this._scrollDistance+("before"==Ye?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ye){this._stopInterval(),this._scrollHeader(Ye)}_scrollToLabel(Ye){if(this.disablePagination)return;const st=this._items?this._items.toArray()[Ye]:null;if(!st)return;const it=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:He,offsetWidth:Wt}=st.elementRef.nativeElement;let we,We;"ltr"==this._getLayoutDirection()?(we=He,We=we+Wt):(We=this._tabListInner.nativeElement.offsetWidth-He,we=We-Wt);const Lt=this.scrollDistance,St=this.scrollDistance+it;weSt&&(this.scrollDistance+=Math.min(We-St,we-Lt))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const it=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;it||(this.scrollDistance=0),it!==this._showPaginationControls&&(this._showPaginationControls=it,this._changeDetectorRef.markForCheck())}}_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 Ye=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,st=Ye?Ye.elementRef.nativeElement:null;st?this._inkBar.alignToElement(st):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ye,st){st&&null!=st.button&&0!==st.button||(this._stopInterval(),(0,$.O)(650,100).pipe((0,L.Q)((0,V.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:it,distance:He}=this._scrollHeader(Ye);(0===He||He>=it)&&this._stopInterval()}))}_scrollTo(Ye){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const st=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(st,Ye)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:st,distance:this._scrollDistance}}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,inputs:{disablePagination:[2,"disablePagination","disablePagination",F.L39],selectedIndex:[2,"selectedIndex","selectedIndex",F.Udg]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return gt})(),_n=(()=>{class gt extends En{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new de(this._items),super.ngAfterContentInit()}_itemSelected(Ye){Ye.preventDefault()}static \u0275fac=(()=>{let Ye;return function(it){return(Ye||(Ye=f.xGo(gt)))(it||gt)}})();static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-header"]],contentQueries:function(st,it,He){if(1&st&&f.wni(He,et,4),2&st){let Wt;f.mGM(Wt=f.lsd())&&(it._items=Wt)}},viewQuery:function(st,it){if(1&st&&(f.GBs(x,7),f.GBs(Y,7),f.GBs(R,7),f.GBs(U,5),f.GBs(fe,5)),2&st){let He;f.mGM(He=f.lsd())&&(it._tabListContainer=He.first),f.mGM(He=f.lsd())&&(it._tabList=He.first),f.mGM(He=f.lsd())&&(it._tabListInner=He.first),f.mGM(He=f.lsd())&&(it._nextPaginator=He.first),f.mGM(He=f.lsd())&&(it._previousPaginator=He.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(st,it){2&st&&f.AVh("mat-mdc-tab-header-pagination-controls-enabled",it._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==it._getLayoutDirection())},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",F.L39]},features:[f.Vt3],ngContentSelectors:C,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(st,it){if(1&st){const He=f.RV6();f.NAR(),f.j41(0,"div",5,0),f.bIt("click",function(){return w.eBV(He),w.Njj(it._handlePaginatorClick("before"))})("mousedown",function(we){return w.eBV(He),w.Njj(it._handlePaginatorPress("before",we))})("touchend",function(){return w.eBV(He),w.Njj(it._stopInterval())}),f.nrm(2,"div",6),f.k0s(),f.j41(3,"div",7,1),f.bIt("keydown",function(we){return w.eBV(He),w.Njj(it._handleKeydown(we))}),f.j41(5,"div",8,2),f.bIt("cdkObserveContent",function(){return w.eBV(He),w.Njj(it._onContentChanges())}),f.j41(7,"div",9,3),f.SdG(9),f.k0s()()(),f.j41(10,"div",10,4),f.bIt("mousedown",function(we){return w.eBV(He),w.Njj(it._handlePaginatorPress("after",we))})("click",function(){return w.eBV(He),w.Njj(it._handlePaginatorClick("after"))})("touchend",function(){return w.eBV(He),w.Njj(it._stopInterval())}),f.nrm(12,"div",6),f.k0s()}2&st&&(f.AVh("mat-mdc-tab-header-pagination-disabled",it._disableScrollBefore),f.Y8G("matRippleDisabled",it._disableScrollBefore||it.disableRipple),f.R7$(3),f.AVh("_mat-animation-noopable",it._animationsDisabled),f.R7$(2),f.BMQ("aria-label",it.ariaLabel||null)("aria-labelledby",it.ariaLabelledby||null),f.R7$(5),f.AVh("mat-mdc-tab-header-pagination-disabled",it._disableScrollAfter),f.Y8G("matRippleDisabled",it._disableScrollAfter||it.disableRipple))},dependencies:[T.r6,_.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}\n"],encapsulation:2})}return gt})();const tt=new w.nKC("MAT_TABS_CONFIG");let Fe=(()=>{class gt extends s.I3{_host=(0,w.WQX)(Pe);_ngZone=(0,w.WQX)(f.SKi);_centeringSub=ee.yU.EMPTY;_leavingSub=ee.yU.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,pe.Z)(this._host._isCenterPosition())).subscribe(Ye=>{this._host._content&&Ye&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,selectors:[["","matTabBodyHost",""]],features:[f.Vt3]})}return gt})(),Pe=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_dir=(0,w.WQX)(D.dS,{optional:!0});_ngZone=(0,w.WQX)(f.SKi);_injector=(0,w.WQX)(w.zZn);_renderer=(0,w.WQX)(f.sFG);_diAnimationsDisabled=(0,t.Rc)();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ee.yU.EMPTY;_position;_previousPosition;_onCentering=new f.bkB;_beforeCentering=new f.bkB;_afterLeavingCenter=new f.bkB;_onCentered=new f.bkB(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(Ye){this._positionIndex=Ye,this._computePositionAnimationState()}constructor(){if(this._dir){const Ye=(0,w.WQX)(F.gRc);this._dirChangeSubscription=this._dir.change.subscribe(st=>{this._computePositionAnimationState(st),Ye.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),"center"===this._position&&(this._setActiveClass(!0),(0,f.mal)(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(Ye=>Ye()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{const Ye=this._elementRef.nativeElement,st=it=>{it.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),"transitionend"===it.type&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(Ye,"transitionstart",it=>{it.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(Ye,"transitionend",st),this._renderer.listen(Ye,"transitioncancel",st)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);const Ye="center"===this._position;this._beforeCentering.emit(Ye),Ye&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){"center"===this._position?this._onCentered.emit():"center"===this._previousPosition&&this._afterLeavingCenter.emit()}_setActiveClass(Ye){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",Ye)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(){return 0===this._positionIndex}_computePositionAnimationState(Ye=this._getLayoutDirection()){this._previousPosition=this._position,this._position=this._positionIndex<0?"ltr"==Ye?"left":"right":this._positionIndex>0?"ltr"==Ye?"right":"left":"center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&("center"===this._position||"center"===this._previousPosition)&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),(0,f.mal)(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||"0ms"===this.animationDuration||"0s"===this.animationDuration}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-body"]],viewQuery:function(st,it){if(1&st&&(f.GBs(Fe,5),f.GBs(re,5)),2&st){let He;f.mGM(He=f.lsd())&&(it._portalHost=He.first),f.mGM(He=f.lsd())&&(it._contentElement=He.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(st,it){2&st&&f.BMQ("inert","center"===it._position?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(st,it){1&st&&(f.j41(0,"div",1,0),f.DNE(2,he,0,0,"ng-template",2),f.k0s()),2&st&&f.AVh("mat-tab-body-content-left","left"===it._position)("mat-tab-body-content-right","right"===it._position)("mat-tab-body-content-can-animate","center"===it._position||"center"===it._previousPosition)},dependencies:[Fe,d.uv],styles:[".mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}\n"],encapsulation:2})}return gt})(),Ue=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_changeDetectorRef=(0,w.WQX)(F.gRc);_ngZone=(0,w.WQX)(f.SKi);_tabsSubscription=ee.yU.EMPTY;_tabLabelSubscription=ee.yU.EMPTY;_tabBodySubscription=ee.yU.EMPTY;_diAnimationsDisabled=(0,t.Rc)();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new f.rOR;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(Ye){this._fitInkBarToContent=Ye,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(Ye){this._indexToSelect=isNaN(Ye)?null:Ye}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(Ye){const st=Ye+"";this._animationDuration=/^\d+$/.test(st)?Ye+"ms":st}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Ye){this._contentTabIndex=isNaN(Ye)?null:Ye}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(Ye){const st=this._elementRef.nativeElement.classList;st.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ye&&st.add("mat-tabs-with-background",`mat-background-${Ye}`),this._backgroundColor=Ye}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new f.bkB;focusChange=new f.bkB;animationDone=new f.bkB;selectedTabChange=new f.bkB(!0);_groupId;_isServer=!(0,w.WQX)(h.O).isBrowser;constructor(){const Ye=(0,w.WQX)(tt,{optional:!0});this._groupId=(0,w.WQX)(g.g).getId("mat-tab-group-"),this.animationDuration=Ye&&Ye.animationDuration?Ye.animationDuration:"500ms",this.disablePagination=!(!Ye||null==Ye.disablePagination)&&Ye.disablePagination,this.dynamicHeight=!(!Ye||null==Ye.dynamicHeight)&&Ye.dynamicHeight,null!=Ye?.contentTabIndex&&(this.contentTabIndex=Ye.contentTabIndex),this.preserveContent=!!Ye?.preserveContent,this.fitInkBarToContent=!(!Ye||null==Ye.fitInkBarToContent)&&Ye.fitInkBarToContent,this.stretchTabs=!Ye||null==Ye.stretchTabs||Ye.stretchTabs,this.alignTabs=Ye&&null!=Ye.alignTabs?Ye.alignTabs:null}ngAfterContentChecked(){const Ye=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ye){const st=null==this._selectedIndex;if(!st){this.selectedTabChange.emit(this._createChangeEvent(Ye));const it=this._tabBodyWrapper.nativeElement;it.style.minHeight=it.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((it,He)=>it.isActive=He===Ye),st||(this.selectedIndexChange.emit(Ye),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((st,it)=>{st.position=it-Ye,null!=this._selectedIndex&&0==st.position&&!st.origin&&(st.origin=Ye-this._selectedIndex)}),this._selectedIndex!==Ye&&(this._selectedIndex=Ye,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Ye=this._clampTabIndex(this._indexToSelect);if(Ye===this._selectedIndex){const st=this._tabs.toArray();let it;for(let He=0;He{st[Ye].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ye))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,pe.Z)(this._allTabs)).subscribe(Ye=>{this._tabs.reset(Ye.filter(st=>st._closestTabGroup===this||!st._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Ye){const st=this._tabHeader;st&&(st.focusIndex=Ye)}_focusChanged(Ye){this._lastFocusedTabIndex=Ye,this.focusChange.emit(this._createChangeEvent(Ye))}_createChangeEvent(Ye){const st=new Qe;return st.index=Ye,this._tabs&&this._tabs.length&&(st.tab=this._tabs.toArray()[Ye]),st}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,V.h)(...this._tabs.map(Ye=>Ye._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Ye){return Math.min(this._tabs.length-1,Math.max(Ye||0,0))}_getTabLabelId(Ye,st){return Ye.id||`${this._groupId}-label-${st}`}_getTabContentId(Ye){return`${this._groupId}-content-${Ye}`}_setTabBodyWrapperHeight(Ye){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return void(this._tabBodyWrapperHeight=Ye);const st=this._tabBodyWrapper.nativeElement;st.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(st.style.height=Ye+"px")}_removeTabBodyWrapperHeight(){const Ye=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ye.clientHeight,Ye.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(Ye,st,it){st.focusIndex=it,Ye.disabled||(this.selectedIndex=it)}_getTabIndex(Ye){return Ye===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Ye,st){Ye&&"mouse"!==Ye&&"touch"!==Ye&&(this._tabHeader.focusIndex=st)}_bodyCentered(Ye){Ye&&this._tabBodies?.forEach((st,it)=>st._setActiveClass(it===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||"0"===this.animationDuration||"0ms"===this.animationDuration}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-group"]],contentQueries:function(st,it,He){if(1&st&&f.wni(He,qt,5),2&st){let Wt;f.mGM(Wt=f.lsd())&&(it._allTabs=Wt)}},viewQuery:function(st,it){if(1&st&&(f.GBs(Oe,5),f.GBs(ge,5),f.GBs(Pe,5)),2&st){let He;f.mGM(He=f.lsd())&&(it._tabBodyWrapper=He.first),f.mGM(He=f.lsd())&&(it._tabHeader=He.first),f.mGM(He=f.lsd())&&(it._tabBodies=He)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(st,it){2&st&&(f.BMQ("mat-align-tabs",it.alignTabs),f.HbH("mat-"+(it.color||"primary")),f.xc7("--mat-tab-animation-duration",it.animationDuration),f.AVh("mat-mdc-tab-group-dynamic-height",it.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===it.headerPosition)("mat-mdc-tab-group-stretch-tabs",it.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",F.L39],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",F.L39],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",F.L39],selectedIndex:[2,"selectedIndex","selectedIndex",F.Udg],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",F.Udg],disablePagination:[2,"disablePagination","disablePagination",F.L39],disableRipple:[2,"disableRipple","disableRipple",F.L39],preserveContent:[2,"preserveContent","preserveContent",F.L39],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[f.Jv_([{provide:Mn,useExisting:gt}])],ngContentSelectors:C,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(st,it){if(1&st){const He=f.RV6();f.NAR(),f.j41(0,"mat-tab-header",3,0),f.bIt("indexFocused",function(we){return w.eBV(He),w.Njj(it._focusChanged(we))})("selectFocusedIndex",function(we){return w.eBV(He),w.Njj(it.selectedIndex=we)}),f.Z7z(2,ve,8,17,"div",4,f.fX1),f.k0s(),f.nVh(4,oe,1,0),f.j41(5,"div",5,1),f.Z7z(7,Se,1,10,"mat-tab-body",6,f.fX1),f.k0s()}2&st&&(f.Y8G("selectedIndex",it.selectedIndex||0)("disableRipple",it.disableRipple)("disablePagination",it.disablePagination),f.jOp("aria-label",it.ariaLabel)("aria-labelledby",it.ariaLabelledby),f.R7$(2),f.Dyx(it._tabs),f.R7$(2),f.vxM(it._isServer?4:-1),f.R7$(),f.AVh("_mat-animation-noopable",it._animationsDisabled()),f.R7$(2),f.Dyx(it._tabs))},dependencies:[_n,et,i.vR,T.r6,s.I3,Pe],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}\n'],encapsulation:2})}return gt})();class Qe{index;tab}let Ie=(()=>{class gt extends En{_focusedItem=(0,w.vPA)(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(Ye){this._fitInkBarToContent.next(Ye),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new Z.t(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(Ye){const st=Ye+"";this._animationDuration=/^\d+$/.test(st)?Ye+"ms":st}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(Ye){const st=this._elementRef.nativeElement.classList;st.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ye&&st.add("mat-tabs-with-background",`mat-background-${Ye}`),this._backgroundColor=Ye}_backgroundColor;get disableRipple(){return this._disableRipple()}set disableRipple(Ye){this._disableRipple.set(Ye)}_disableRipple=(0,w.vPA)(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){const Ye=(0,w.WQX)(tt,{optional:!0});super(),this.disablePagination=!(!Ye||null==Ye.disablePagination)&&Ye.disablePagination,this.fitInkBarToContent=!(!Ye||null==Ye.fitInkBarToContent)&&Ye.fitInkBarToContent,this.stretchTabs=!Ye||null==Ye.stretchTabs||Ye.stretchTabs}_itemSelected(){}ngAfterContentInit(){this._inkBar=new de(this._items),this._items.changes.pipe((0,pe.Z)(null),(0,L.Q)(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe((0,pe.Z)(null),(0,L.Q)(this._destroyed)).subscribe(()=>this._focusedItem.set(this._keyManager?.activeItem||null))}ngAfterViewInit(){super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;const Ye=this._items.toArray();for(let st=0;st.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}\n"],encapsulation:2})}return gt})(),le=(()=>{class gt extends ae{_tabNavBar=(0,w.WQX)(Ie);elementRef=(0,w.WQX)(f.aKT);_focusMonitor=(0,w.WQX)(i.FN);_destroyed=new j.B;_isActive=!1;_tabIndex=(0,M.EW)(()=>this._tabNavBar._focusedItem()===this?this.tabIndex:-1);get active(){return this._isActive}set active(Ye){Ye!==this._isActive&&(this._isActive=Ye,this._tabNavBar.updateActiveLink())}disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(Ye){this._disableRipple.set(Ye)}_disableRipple=(0,w.vPA)(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=(0,w.WQX)(g.g).getId("mat-tab-link-");constructor(){super(),(0,w.WQX)(m.l).load(u.A);const Ye=(0,w.WQX)(T.$E,{optional:!0}),st=(0,w.WQX)(new F.ES_("tabindex"),{optional:!0});this.rippleConfig=Ye||{},this.tabIndex=null==st?0:parseInt(st)||0,(0,t.Rc)()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe((0,L.Q)(this._destroyed)).subscribe(it=>{this.fitInkBarToContent=it})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Ye){(Ye.keyCode===e.t6||Ye.keyCode===e.Fm)&&(this.disabled?Ye.preventDefault():this._tabNavBar.tabPanel&&(Ye.keyCode===e.t6&&Ye.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.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")}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(st,it){1&st&&f.bIt("focus",function(){return it._handleFocus()})("keydown",function(Wt){return it._handleKeydown(Wt)}),2&st&&(f.BMQ("aria-controls",it._getAriaControls())("aria-current",it._getAriaCurrent())("aria-disabled",it.disabled)("aria-selected",it._getAriaSelected())("id",it.id)("tabIndex",it._tabIndex())("role",it._getRole()),f.AVh("mat-mdc-tab-disabled",it.disabled)("mdc-tab--active",it.active))},inputs:{active:[2,"active","active",F.L39],disabled:[2,"disabled","disabled",F.L39],disableRipple:[2,"disableRipple","disableRipple",F.L39],tabIndex:[2,"tabIndex","tabIndex",Ye=>null==Ye?0:(0,F.Udg)(Ye)],id:"id"},exportAs:["matTabLink"],features:[f.Vt3],attrs:nt,ngContentSelectors:C,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(st,it){1&st&&(f.NAR(),f.nrm(0,"span",0)(1,"div",1),f.j41(2,"span",2)(3,"span",3),f.SdG(4),f.k0s()()),2&st&&(f.R7$(),f.Y8G("matRippleTrigger",it.elementRef.nativeElement)("matRippleDisabled",it.rippleDisabled))},dependencies:[T.r6],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}\n'],encapsulation:2,changeDetection:0})}return gt})(),Ne=(()=>{class gt{id=(0,w.WQX)(g.g).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(st,it){2&st&&f.BMQ("aria-labelledby",it._activeTabId)("id",it.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:C,decls:1,vars:0,template:function(st,it){1&st&&(f.NAR(),f.SdG(0))},encapsulation:2,changeDetection:0})}return gt})(),ze=(()=>{class gt{static \u0275fac=function(st){return new(st||gt)};static \u0275mod=f.$C({type:gt});static \u0275inj=w.G2t({imports:[P.y,P.y]})}return gt})()},55911(ke,q,l){"use strict";l.d(q,{KQ:()=>h,s5:()=>w});var i=l(2615),g=l(73664),p=l(39842),D=l(22466);const o=["*",[["mat-toolbar-row"]]],e=["*","mat-toolbar-row"];let A=(()=>{class f{static \u0275fac=function(K){return new(K||f)};static \u0275dir=g.FsC({type:f,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return f})(),h=(()=>{class f{_elementRef=(0,i.WQX)(g.aKT);_platform=(0,i.WQX)(p.O);_document=(0,i.WQX)(i.qQL);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static \u0275fac=function(K){return new(K||f)};static \u0275cmp=g.VBU({type:f,selectors:[["mat-toolbar"]],contentQueries:function(K,j,Z){if(1&K&&g.wni(Z,A,5),2&K){let ee;g.mGM(ee=g.lsd())&&(j._toolbarRows=ee)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(K,j){2&K&&(g.HbH(j.color?"mat-"+j.color:""),g.AVh("mat-toolbar-multiple-rows",j._toolbarRows.length>0)("mat-toolbar-single-row",0===j._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:e,decls:2,vars:0,template:function(K,j){1&K&&(g.NAR(o),g.SdG(0),g.SdG(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.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;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}\n"],encapsulation:2,changeDetection:0})}return f})(),w=(()=>{class f{static \u0275fac=function(K){return new(K||f)};static \u0275mod=g.$C({type:f});static \u0275inj=i.G2t({imports:[D.y,D.y]})}return f})()},86156(ke,q,l){"use strict";l.d(q,{u:()=>h});var i=l(2615),g=l(73664),p=l(17094),D=l(49338),o=l(5718),e=l(40455),A=l(22466);let h=(()=>{class d{static \u0275fac=function(F){return new(F||d)};static \u0275mod=g.$C({type:d});static \u0275inj=i.G2t({providers:[e.YZ],imports:[p.Pd,D.z_,A.y,A.y,o.Gj]})}return d})()},40455(ke,q,l){"use strict";l.d(q,{YZ:()=>pe,oV:()=>C});var i=l(56977),g=l(14085),p=l(67847),D=l(67336),o=l(10438),e=l(2615),A=l(73664),h=l(17705),d=l(72200),w=l(39842),f=l(83300),F=l(18617),M=l(76838),K=l(61577),j=l(49338),Z=l(5718),ee=l(76939),V=l(21413),Q=l(31804);const $=["tooltip"],ye=new e.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const x=(0,e.WQX)(e.zZn);return()=>(0,j.RH)(x,{scrollThrottle:20})}}),pe={provide:ye,deps:[],useFactory:function se(x){const Y=(0,e.WQX)(e.zZn);return()=>(0,j.RH)(Y,{scrollThrottle:20})}},L=new e.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Ee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),s="tooltip-panel",m=(0,f.B)({passive:!0});let C=(()=>{class x{_elementRef=(0,e.WQX)(A.aKT);_ngZone=(0,e.WQX)(A.SKi);_platform=(0,e.WQX)(w.O);_ariaDescriber=(0,e.WQX)(F.vr);_focusMonitor=(0,e.WQX)(M.FN);_dir=(0,e.WQX)(K.dS);_injector=(0,e.WQX)(e.zZn);_viewContainerRef=(0,e.WQX)(A.c1b);_animationsDisabled=(0,Q.Rc)();_defaultOptions=(0,e.WQX)(L,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=a;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(R){R!==this._position&&(this._position=R,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(R){this._positionAtOrigin=(0,g.he)(R),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(R){const U=(0,g.he)(R);this._disabled!==U&&(this._disabled=U,U?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(R){this._showDelay=(0,p.OE)(R)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(R){this._hideDelay=(0,p.OE)(R),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(R){const U=this._message;this._message=null!=R?String(R).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(U)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(R){this._tooltipClass=R,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new V.B;_isDestroyed=!1;constructor(){const R=this._defaultOptions;R&&(this._showDelay=R.showDelay,this._hideDelay=R.hideDelay,R.position&&(this.position=R.position),R.positionAtOrigin&&(this.positionAtOrigin=R.positionAtOrigin),R.touchGestures&&(this.touchGestures=R.touchGestures),R.tooltipClass&&(this.tooltipClass=R.tooltipClass)),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,i.Q)(this._destroyed)).subscribe(R=>{R?"keyboard"===R&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const R=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([U,fe])=>{R.removeEventListener(U,fe,m)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(R,this.message,"tooltip"),this._focusMonitor.stopMonitoring(R)}show(R=this.showDelay,U){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const fe=this._createOverlay(U);this._detach(),this._portal=this._portal||new ee.A8(this._tooltipComponent,this._viewContainerRef);const re=this._tooltipInstance=fe.attach(this._portal).instance;re._triggerElement=this._elementRef.nativeElement,re._mouseLeaveHideDelay=this._hideDelay,re.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),re.show(R)}hide(R=this.hideDelay){const U=this._tooltipInstance;U&&(U.isVisible()?U.hide(R):(U._cancelPendingAnimations(),this._detach()))}toggle(R){this._isTooltipVisible()?this.hide():this.show(void 0,R)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(R){if(this._overlayRef){const he=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!R)&&he._origin instanceof A.aKT)return this._overlayRef;this._detach()}const U=this._injector.get(Z.R).getAncestorScrollContainers(this._elementRef),fe=`${this._cssClassPrefix}-${s}`,re=(0,j.$M)(this._injector,this.positionAtOrigin&&R||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(U);return re.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(he=>{this._updateCurrentPositionClass(he.connectionPair),this._tooltipInstance&&he.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=(0,j.Y$)(this._injector,{direction:this._dir,positionStrategy:re,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,fe]:fe,scrollStrategy:this._injector.get(ye)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe(he=>{this._isTooltipVisible()&&he.keyCode===o._f&&!(0,D.rp)(he)&&(he.preventDefault(),he.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe((0,i.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(R){const U=R.getConfig().positionStrategy,fe=this._getOrigin(),re=this._getOverlayPosition();U.withPositions([this._addOffset({...fe.main,...re.main}),this._addOffset({...fe.fallback,...re.fallback})])}_addOffset(R){const fe=!this._dir||"ltr"==this._dir.value;return"top"===R.originY?R.offsetY=-8:"bottom"===R.originY?R.offsetY=8:"start"===R.originX?R.offsetX=fe?-8:8:"end"===R.originX&&(R.offsetX=fe?8:-8),R}_getOrigin(){const R=!this._dir||"ltr"==this._dir.value,U=this.position;let fe;"above"==U||"below"==U?fe={originX:"center",originY:"above"==U?"top":"bottom"}:"before"==U||"left"==U&&R||"right"==U&&!R?fe={originX:"start",originY:"center"}:("after"==U||"right"==U&&R||"left"==U&&!R)&&(fe={originX:"end",originY:"center"});const{x:re,y:he}=this._invertPosition(fe.originX,fe.originY);return{main:fe,fallback:{originX:re,originY:he}}}_getOverlayPosition(){const R=!this._dir||"ltr"==this._dir.value,U=this.position;let fe;"above"==U?fe={overlayX:"center",overlayY:"bottom"}:"below"==U?fe={overlayX:"center",overlayY:"top"}:"before"==U||"left"==U&&R||"right"==U&&!R?fe={overlayX:"end",overlayY:"center"}:("after"==U||"right"==U&&R||"left"==U&&!R)&&(fe={overlayX:"start",overlayY:"center"});const{x:re,y:he}=this._invertPosition(fe.overlayX,fe.overlayY);return{main:fe,fallback:{overlayX:re,overlayY:he}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,A.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(R){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=R,this._tooltipInstance._markForCheck())}_invertPosition(R,U){return"above"===this.position||"below"===this.position?"top"===U?U="bottom":"bottom"===U&&(U="top"):"end"===R?R="start":"start"===R&&(R="end"),{x:R,y:U}}_updateCurrentPositionClass(R){const{overlayY:U,originX:fe,originY:re}=R;let he;if(he="center"===U?this._dir&&"rtl"===this._dir.value?"end"===fe?"left":"right":"start"===fe?"left":"right":"bottom"===U&&"top"===re?"above":"below",he!==this._currentPosition){const Oe=this._overlayRef;if(Oe){const ge=`${this._cssClassPrefix}-${s}-`;Oe.removePanelClass(ge+this._currentPosition),Oe.addPanelClass(ge+he)}this._currentPosition=he}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",R=>{let U;this._setupPointerExitEventsIfNeeded(),void 0!==R.x&&void 0!==R.y&&(U=R),this.show(void 0,U)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",R=>{const U=R.targetTouches?.[0],fe=U?{x:U.clientX,y:U.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,fe)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const R=[];if(this._platformSupportsMouseEvents())R.push(["mouseleave",U=>{const fe=U.relatedTarget;(!fe||!this._overlayRef?.overlayElement.contains(fe))&&this.hide()}],["wheel",U=>this._wheelListener(U)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const U=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};R.push(["touchend",U],["touchcancel",U])}this._addListeners(R),this._passiveListeners.push(...R)}_addListeners(R){R.forEach(([U,fe])=>{this._elementRef.nativeElement.addEventListener(U,fe,m)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(R){if(this._isTooltipVisible()){const U=this._injector.get(e.qQL).elementFromPoint(R.clientX,R.clientY),fe=this._elementRef.nativeElement;U!==fe&&!fe.contains(U)&&this.hide()}}_disableNativeGesturesIfNecessary(){const R=this.touchGestures;if("off"!==R){const U=this._elementRef.nativeElement,fe=U.style;("on"===R||"INPUT"!==U.nodeName&&"TEXTAREA"!==U.nodeName)&&(fe.userSelect=fe.msUserSelect=fe.webkitUserSelect=fe.MozUserSelect="none"),("on"===R||!U.draggable)&&(fe.webkitUserDrag="none"),fe.touchAction="none",fe.webkitTapHighlightColor="transparent"}}_syncAriaDescription(R){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,R,"tooltip"),this._isDestroyed||(0,A.mal)({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(U){return new(U||x)};static \u0275dir=A.FsC({type:x,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(U,fe){2&U&&A.AVh("mat-mdc-tooltip-disabled",fe.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return x})(),a=(()=>{class x{_changeDetectorRef=(0,e.WQX)(h.gRc);_elementRef=(0,e.WQX)(A.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=(0,Q.Rc)();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new V.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(R){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},R)}hide(R){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},R)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:R}){(!R||!this._triggerElement.contains(R))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const R=this._elementRef.nativeElement.getBoundingClientRect();return R.height>24&&R.width>=200}_handleAnimationEnd({animationName:R}){(R===this._showAnimation||R===this._hideAnimation)&&this._finalizeAnimation(R===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(R){R?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(R){const U=this._tooltip.nativeElement,fe=this._showAnimation,re=this._hideAnimation;if(U.classList.remove(R?re:fe),U.classList.add(R?fe:re),this._isVisible!==R&&(this._isVisible=R,this._changeDetectorRef.markForCheck()),R&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const he=getComputedStyle(U);("0s"===he.getPropertyValue("animation-duration")||"none"===he.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}R&&this._onShow(),this._animationsDisabled&&(U.classList.add("_mat-animation-noopable"),this._finalizeAnimation(R))}static \u0275fac=function(U){return new(U||x)};static \u0275cmp=A.VBU({type:x,selectors:[["mat-tooltip-component"]],viewQuery:function(U,fe){if(1&U&&A.GBs($,7),2&U){let re;A.mGM(re=A.lsd())&&(fe._tooltip=re.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(U,fe){1&U&&A.bIt("mouseleave",function(he){return fe._handleMouseLeave(he)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(U,fe){if(1&U){const re=A.RV6();A.j41(0,"div",1,0),A.bIt("animationend",function(Oe){return e.eBV(re),e.Njj(fe._handleAnimationEnd(Oe))}),A.j41(2,"div",2),A.EFF(3),A.k0s()()}2&U&&(A.AVh("mdc-tooltip--multiline",fe._isMultiline),A.Y8G("ngClass",fe.tooltipClass),A.R7$(3),A.JRh(fe.message))},dependencies:[d.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}\n'],encapsulation:2,changeDetection:0})}return x})()},47358(ke,q,l){"use strict";l.d(q,{Zh:()=>ye,d6:()=>F,jH:()=>$,lQ:()=>ee,pO:()=>V,q1:()=>K,wx:()=>Z,yI:()=>M});var g=l(72279),p=l(2615),D=l(73664),o=l(17705),e=l(22466),A=l(14117),h=l(84412),d=l(57786),w=l(96354);let F=(()=>{class se extends g.xn{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(Ee){this._tabIndexInputBinding=Ee}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return function f(se){return!!se._isNoopTreeKeyManager}(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(Ee){this.isDisabled=Ee}constructor(){super();const Ee=(0,p.WQX)(new o.ES_("tabindex"),{optional:!0});this.tabIndexInputBinding=Number(Ee)||this.defaultTabIndex}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(L){return new(L||se)};static \u0275dir=D.FsC({type:se,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(L,t){1&L&&D.bIt("click",function(){return t._focusItem()}),2&L&&(D.Avn("tabIndex",t._getTabindexAttribute()),D.BMQ("aria-expanded",t._getAriaExpanded())("aria-level",t.level+1)("aria-posinset",t._getPositionInSet())("aria-setsize",t._getSetSize()))},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",Ee=>null==Ee?0:(0,o.Udg)(Ee)],disabled:[2,"disabled","disabled",o.L39]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[D.Jv_([{provide:g.xn,useExisting:se}]),D.Vt3]})}return se})(),M=(()=>{class se extends g.Sz{data;static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275dir=D.FsC({type:se,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[D.Jv_([{provide:g.Sz,useExisting:se}]),D.Vt3]})}return se})(),K=(()=>{class se extends g.s3{node;get disabled(){return this.isDisabled}set disabled(Ee){this.isDisabled=Ee}get tabIndex(){return this.isDisabled?-1:this._tabIndex}set tabIndex(Ee){this._tabIndex=Ee}_tabIndex;ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275dir=D.FsC({type:se,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[0,"matNestedTreeNode","node"],disabled:[2,"disabled","disabled",o.L39],tabIndex:[2,"tabIndex","tabIndex",Ee=>null==Ee?0:(0,o.Udg)(Ee)]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matNestedTreeNode"],features:[D.Jv_([{provide:g.s3,useExisting:se},{provide:g.xn,useExisting:se},{provide:g.kZ,useExisting:se}]),D.Vt3]})}return se})(),Z=(()=>{class se{viewContainer=(0,p.WQX)(D.c1b);_node=(0,p.WQX)(g.kZ,{optional:!0});static \u0275fac=function(L){return new(L||se)};static \u0275dir=D.FsC({type:se,selectors:[["","matTreeNodeOutlet",""]],features:[D.Jv_([{provide:g.a$,useExisting:se}])]})}return se})(),ee=(()=>{class se extends g.NL{_nodeOutlet=void 0;static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275cmp=D.VBU({type:se,selectors:[["mat-tree"]],viewQuery:function(L,t){if(1&L&&D.GBs(Z,7),2&L){let s;D.mGM(s=D.lsd())&&(t._nodeOutlet=s.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[D.Jv_([{provide:g.NL,useExisting:se}]),D.Vt3],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(L,t){1&L&&D.eu8(0,0)},dependencies:[Z],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2})}return se})(),V=(()=>{class se extends g.Hy{static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275dir=D.FsC({type:se,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[D.Jv_([{provide:g.Hy,useExisting:se}]),D.Vt3]})}return se})(),$=(()=>{class se{static \u0275fac=function(L){return new(L||se)};static \u0275mod=D.$C({type:se});static \u0275inj=p.G2t({imports:[g.Dc,e.y,e.y]})}return se})();class ye extends A.q{get data(){return this._data.value}set data(pe){this._data.next(pe)}_data=new h.t([]);connect(pe){return(0,d.h)(pe.viewChange,this._data).pipe((0,w.T)(()=>this.data))}disconnect(){}}},93393(ke,q,l){"use strict";l.d(q,{CI:()=>M,EU:()=>A,Hl:()=>D,Q5:()=>e,jd:()=>o,mE:()=>L});var i=l(2615),g=l(57303),p=l(73664);class D{_doc;constructor(a){this._doc=a}manager}let o=(()=>{class C extends D{constructor(x){super(x)}supports(x){return!0}addEventListener(x,Y,R,U){return x.addEventListener(Y,R,U),()=>this.removeEventListener(x,Y,R,U)}removeEventListener(x,Y,R,U){return x.removeEventListener(Y,R,U)}static \u0275fac=function(Y){return new(Y||C)(i.KVO(i.qQL))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();const e=new i.nKC("");let A=(()=>{class C{_zone;_plugins;_eventNameToPlugin=new Map;constructor(x,Y){this._zone=Y,x.forEach(fe=>{fe.manager=this});const R=x.filter(fe=>!(fe instanceof o));this._plugins=R.slice().reverse();const U=x.find(fe=>fe instanceof o);U&&this._plugins.push(U)}addEventListener(x,Y,R,U){return this._findPluginFor(Y).addEventListener(x,Y,R,U)}getZone(){return this._zone}_findPluginFor(x){let Y=this._eventNameToPlugin.get(x);if(Y)return Y;if(Y=this._plugins.find(U=>U.supports(x)),!Y)throw new i.buA(5101,!1);return this._eventNameToPlugin.set(x,Y),Y}static \u0275fac=function(Y){return new(Y||C)(i.KVO(e),i.KVO(p.SKi))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();const h="ng-app-id";function d(C){for(const a of C)a.remove()}function w(C,a){const x=a.createElement("style");return x.textContent=C,x}function F(C,a){const x=a.createElement("link");return x.setAttribute("rel","stylesheet"),x.setAttribute("href",C),x}let M=(()=>{class C{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(x,Y,R,U={}){this.doc=x,this.appId=Y,this.nonce=R,function f(C,a,x,Y){const R=C.head?.querySelectorAll(`style[${h}="${a}"],link[${h}="${a}"]`);if(R)for(const U of R)U.removeAttribute(h),U instanceof HTMLLinkElement?Y.set(U.href.slice(U.href.lastIndexOf("/")+1),{usage:0,elements:[U]}):U.textContent&&x.set(U.textContent,{usage:0,elements:[U]})}(x,Y,this.inline,this.external),this.hosts.add(x.head)}addStyles(x,Y){for(const R of x)this.addUsage(R,this.inline,w);Y?.forEach(R=>this.addUsage(R,this.external,F))}removeStyles(x,Y){for(const R of x)this.removeUsage(R,this.inline);Y?.forEach(R=>this.removeUsage(R,this.external))}addUsage(x,Y,R){const U=Y.get(x);U?U.usage++:Y.set(x,{usage:1,elements:[...this.hosts].map(fe=>this.addElement(fe,R(x,this.doc)))})}removeUsage(x,Y){const R=Y.get(x);R&&(R.usage--,R.usage<=0&&(d(R.elements),Y.delete(x)))}ngOnDestroy(){for(const[,{elements:x}]of[...this.inline,...this.external])d(x);this.hosts.clear()}addHost(x){this.hosts.add(x);for(const[Y,{elements:R}]of this.inline)R.push(this.addElement(x,w(Y,this.doc)));for(const[Y,{elements:R}]of this.external)R.push(this.addElement(x,F(Y,this.doc)))}removeHost(x){this.hosts.delete(x)}addElement(x,Y){return this.nonce&&Y.setAttribute("nonce",this.nonce),x.appendChild(Y)}static \u0275fac=function(Y){return new(Y||C)(i.KVO(i.qQL),i.KVO(p.sZ2),i.KVO(p.BIS,8),i.KVO(p.Agw))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();const K={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},j=/%COMP%/g,V="%COMP%",Q=`_nghost-${V}`,$=`_ngcontent-${V}`,_e=new i.nKC("",{providedIn:"root",factory:()=>!0});function pe(C,a){return a.map(x=>x.replace(j,C))}let L=(()=>{class C{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(x,Y,R,U,fe,re,he=null,Oe=null){this.eventManager=x,this.sharedStylesHost=Y,this.appId=R,this.removeStylesOnCompDestroy=U,this.doc=fe,this.ngZone=re,this.nonce=he,this.tracingService=Oe,this.platformIsServer=!1,this.defaultRenderer=new t(x,fe,re,this.platformIsServer,this.tracingService)}createRenderer(x,Y){if(!x||!Y)return this.defaultRenderer;const R=this.getOrCreateRenderer(x,Y);return R instanceof P?R.applyToHost(x):R instanceof T&&R.applyStyles(),R}getOrCreateRenderer(x,Y){const R=this.rendererByCompId;let U=R.get(Y.id);if(!U){const fe=this.doc,re=this.ngZone,he=this.eventManager,Oe=this.sharedStylesHost,ge=this.removeStylesOnCompDestroy,ce=this.platformIsServer,Re=this.tracingService;switch(Y.encapsulation){case p.gXe.Emulated:U=new P(he,Oe,Y,this.appId,ge,fe,re,ce,Re);break;case p.gXe.ShadowDom:return new _(he,Oe,x,Y,fe,re,this.nonce,ce,Re);default:U=new T(he,Oe,Y,ge,fe,re,ce,Re)}R.set(Y.id,U)}return U}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(x){this.rendererByCompId.delete(x)}static \u0275fac=function(Y){return new(Y||C)(i.KVO(A),i.KVO(M),i.KVO(p.sZ2),i.KVO(_e),i.KVO(i.qQL),i.KVO(p.SKi),i.KVO(p.BIS),i.KVO(p.a8H,8))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();class t{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(a,x,Y,R,U){this.eventManager=a,this.doc=x,this.ngZone=Y,this.platformIsServer=R,this.tracingService=U}destroy(){}destroyNode=null;createElement(a,x){return x?this.doc.createElementNS(K[x]||x,a):this.doc.createElement(a)}createComment(a){return this.doc.createComment(a)}createText(a){return this.doc.createTextNode(a)}appendChild(a,x){(u(a)?a.content:a).appendChild(x)}insertBefore(a,x,Y){a&&(u(a)?a.content:a).insertBefore(x,Y)}removeChild(a,x){x.remove()}selectRootElement(a,x){let Y="string"==typeof a?this.doc.querySelector(a):a;if(!Y)throw new i.buA(-5104,!1);return x||(Y.textContent=""),Y}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,x,Y,R){if(R){x=R+":"+x;const U=K[R];U?a.setAttributeNS(U,x,Y):a.setAttribute(x,Y)}else a.setAttribute(x,Y)}removeAttribute(a,x,Y){if(Y){const R=K[Y];R?a.removeAttributeNS(R,x):a.removeAttribute(`${Y}:${x}`)}else a.removeAttribute(x)}addClass(a,x){a.classList.add(x)}removeClass(a,x){a.classList.remove(x)}setStyle(a,x,Y,R){R&(p.czy.DashCase|p.czy.Important)?a.style.setProperty(x,Y,R&p.czy.Important?"important":""):a.style[x]=Y}removeStyle(a,x,Y){Y&p.czy.DashCase?a.style.removeProperty(x):a.style[x]=""}setProperty(a,x,Y){null!=a&&(a[x]=Y)}setValue(a,x){a.nodeValue=x}listen(a,x,Y,R){if("string"==typeof a&&!(a=(0,g.rb)().getGlobalEventTarget(this.doc,a)))throw new i.buA(5102,!1);let U=this.decoratePreventDefault(Y);return this.tracingService?.wrapEventListener&&(U=this.tracingService.wrapEventListener(a,x,U)),this.eventManager.addEventListener(a,x,U,R)}decoratePreventDefault(a){return x=>{if("__ngUnwrap__"===x)return a;!1===a(x)&&x.preventDefault()}}}function u(C){return"TEMPLATE"===C.tagName&&void 0!==C.content}class _ extends t{sharedStylesHost;hostEl;shadowRoot;constructor(a,x,Y,R,U,fe,re,he,Oe){super(a,U,fe,he,Oe),this.sharedStylesHost=x,this.hostEl=Y,this.shadowRoot=Y.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let ge=R.styles;ge=pe(R.id,ge);for(const Re of ge){const Me=document.createElement("style");re&&Me.setAttribute("nonce",re),Me.textContent=Re,this.shadowRoot.appendChild(Me)}const ce=R.getExternalStyles?.();if(ce)for(const Re of ce){const Me=F(Re,U);re&&Me.setAttribute("nonce",re),this.shadowRoot.appendChild(Me)}}nodeOrShadowRoot(a){return a===this.hostEl?this.shadowRoot:a}appendChild(a,x){return super.appendChild(this.nodeOrShadowRoot(a),x)}insertBefore(a,x,Y){return super.insertBefore(this.nodeOrShadowRoot(a),x,Y)}removeChild(a,x){return super.removeChild(null,x)}parentNode(a){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(a)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class T extends t{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(a,x,Y,R,U,fe,re,he,Oe){super(a,U,fe,re,he),this.sharedStylesHost=x,this.removeStylesOnCompDestroy=R;let ge=Y.styles;this.styles=Oe?pe(Oe,ge):ge,this.styleUrls=Y.getExternalStyles?.(Oe)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&0===p.DUP.size&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class P extends T{contentAttr;hostAttr;constructor(a,x,Y,R,U,fe,re,he,Oe){const ge=R+"-"+Y.id;super(a,x,Y,U,fe,re,he,Oe,ge),this.contentAttr=function ye(C){return $.replace(j,C)}(ge),this.hostAttr=function se(C){return Q.replace(j,C)}(ge)}applyToHost(a){this.applyStyles(),this.setAttribute(a,this.hostAttr,"")}createElement(a,x){const Y=super.createElement(a,x);return super.setAttribute(Y,this.contentAttr,""),Y}}},345(ke,q,l){"use strict";l.d(q,{fM:()=>R,hE:()=>pe,up:()=>U});var $=l(2615),ie=l(73664),_e=l(93393);let pe=(()=>{class nt{_doc;constructor(dt){this._doc=dt}getTitle(){return this._doc.title}setTitle(dt){this._doc.title=dt||""}static \u0275fac=function(yt){return new(yt||nt)($.KVO($.qQL))};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();const P={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},C=new $.nKC(""),a=new $.nKC("");let x=(()=>{class nt{events=[];overrides={};options;buildHammer(dt){const yt=new Hammer(dt,this.options);yt.get("pinch").set({enable:!0}),yt.get("rotate").set({enable:!0});for(const Et in this.overrides)yt.get(Et).set(this.overrides[Et]);return yt}static \u0275fac=function(yt){return new(yt||nt)};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac})}return nt})(),Y=(()=>{class nt extends _e.Hl{_config;_injector;loader;_loaderPromise=null;constructor(dt,yt,Et,rt){super(dt),this._config=yt,this._injector=Et,this.loader=rt}supports(dt){return!(!P.hasOwnProperty(dt.toLowerCase())&&!this.isCustomEvent(dt)||!window.Hammer&&!this.loader)}addEventListener(dt,yt,Et){const rt=this.manager.getZone();if(yt=yt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||rt.runOutsideAngular(()=>this.loader());let Mn=!1,qt=()=>{Mn=!0};return rt.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Mn||(qt=this.addEventListener(dt,yt,Et)):qt=()=>{}}).catch(()=>{qt=()=>{}})),()=>{qt()}}return rt.runOutsideAngular(()=>{const Mn=this._config.buildHammer(dt),qt=function(S){rt.runGuarded(function(){Et(S)})};return Mn.on(yt,qt),()=>{Mn.off(yt,qt),"function"==typeof Mn.destroy&&Mn.destroy()}})}isCustomEvent(dt){return this._config.events.indexOf(dt)>-1}static \u0275fac=function(yt){return new(yt||nt)($.KVO($.qQL),$.KVO(C),$.KVO($.zZn),$.KVO(a,8))};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac})}return nt})(),R=(()=>{class nt{static \u0275fac=function(yt){return new(yt||nt)};static \u0275mod=ie.$C({type:nt});static \u0275inj=$.G2t({providers:[{provide:_e.Q5,useClass:Y,multi:!0,deps:[$.qQL,C,$.zZn,[new ie.Xx1,a]]},{provide:C,useClass:x}]})}return nt})(),U=(()=>{class nt{static \u0275fac=function(yt){return new(yt||nt)};static \u0275prov=$.jDH({token:nt,factory:function(yt){let Et=null;return Et=yt?new(yt||nt):$.KVO(fe),Et},providedIn:"root"})}return nt})(),fe=(()=>{class nt extends U{_doc;constructor(dt){super(),this._doc=dt}sanitize(dt,yt){if(null==yt)return null;switch(dt){case ie.WPN.NONE:return yt;case ie.WPN.HTML:return(0,ie.iWE)(yt,"HTML")?(0,ie.aCM)(yt):(0,ie.wr$)(this._doc,String(yt)).toString();case ie.WPN.STYLE:return(0,ie.iWE)(yt,"Style")?(0,ie.aCM)(yt):yt;case ie.WPN.SCRIPT:if((0,ie.iWE)(yt,"Script"))return(0,ie.aCM)(yt);throw new $.buA(5200,!1);case ie.WPN.URL:return(0,ie.iWE)(yt,"URL")?(0,ie.aCM)(yt):(0,ie.gil)(String(yt));case ie.WPN.RESOURCE_URL:if((0,ie.iWE)(yt,"ResourceURL"))return(0,ie.aCM)(yt);throw new $.buA(5201,!1);default:throw new $.buA(5202,!1)}}bypassSecurityTrustHtml(dt){return(0,ie.PYC)(dt)}bypassSecurityTrustStyle(dt){return(0,ie.rAh)(dt)}bypassSecurityTrustScript(dt){return(0,ie.p2i)(dt)}bypassSecurityTrustUrl(dt){return(0,ie.B1s)(dt)}bypassSecurityTrustResourceUrl(dt){return(0,ie.RPW)(dt)}static \u0275fac=function(yt){return new(yt||nt)($.KVO($.qQL))};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})()},43694(ke,q,l){"use strict";l.d(q,{nX:()=>vt,Pu:()=>ao,Zp:()=>cn,nU:()=>hn,wU:()=>Nn,c1:()=>hs,XR:()=>Xs,j5:()=>Kn,wF:()=>gn,L6:()=>Xn,lW:()=>ci,mo:()=>kn,Z:()=>ui,J2:()=>ro,J_:()=>wo,bw:()=>mo,gx:()=>dn,tD:()=>zo,Ix:()=>Wo,D$:()=>So,n3:()=>ds,OY:()=>_a,Sd:()=>Vt,bK:()=>$r,gk:()=>wl,Lg:()=>Ss,wO:()=>fn,Us:()=>fi,we:()=>fs});var i=l(2615),g=l(57303),p=l(73664),D=l(17705),o=l(59295),e=l(74402),A=l(22806),h=l(7673),d=l(84412),w=l(84572),f=l(9350),F=l(28793),M=l(59030),K=l(71203),j=l(18810),Z=l(983),ee=l(30017),V=l(21413),Q=l(71985),$=l(18359),ie=l(96354),_e=l(25558),ye=l(96697),se=l(99172),pe=l(5964),Ee=l(31397),L=l(61594),t=l(70274),s=l(88141),m=l(99437),u=l(31943),_=l(39901),T=l(39974),P=l(54360);function C(Te){return Te<=0?()=>Z.w:(0,T.N)((je,Be)=>{let Ke=[];je.subscribe((0,P._)(Be,bt=>{Ke.push(bt),Te{for(const bt of Ke)Be.next(bt);Be.complete()},void 0,()=>{Ke=null}))})}var a=l(93774),x=l(33669),R=l(70980),U=l(99898),fe=l(56977),re=l(345);const he="primary",Oe=Symbol("RouteTitle");class ge{params;constructor(je){this.params=je||{}}has(je){return Object.prototype.hasOwnProperty.call(this.params,je)}get(je){if(this.has(je)){const Be=this.params[je];return Array.isArray(Be)?Be[0]:Be}return null}getAll(je){if(this.has(je)){const Be=this.params[je];return Array.isArray(Be)?Be:[Be]}return[]}get keys(){return Object.keys(this.params)}}function ce(Te){return new ge(Te)}function Re(Te,je,Be){const Ke=Be.path.split("/");if(Ke.length>Te.length||"full"===Be.pathMatch&&(je.hasChildren()||Ke.lengthKe[Ht]===bt)}return Te===je}function be(Te){return Te.length>0?Te[Te.length-1]:null}function nt(Te){return(0,e.A)(Te)?Te:(0,p.yLl)(Te)?(0,A.H)(Promise.resolve(Te)):(0,h.of)(Te)}const $e={exact:function rt(Te,je,Be){if(!et(Te.segments,je.segments)||!Xt(Te.segments,je.segments,Be)||Te.numberOfChildren!==je.numberOfChildren)return!1;for(const Ke in je.children)if(!Te.children[Ke]||!rt(Te.children[Ke],je.children[Ke],Be))return!1;return!0},subset:qt},dt={exact:function Et(Te,je){return ve(Te,je)},subset:function Mn(Te,je){return Object.keys(je).length<=Object.keys(Te).length&&Object.keys(je).every(Be=>Se(Te[Be],je[Be]))},ignored:()=>!0};function yt(Te,je,Be){return $e[Be.paths](Te.root,je.root,Be.matrixParams)&&dt[Be.queryParams](Te.queryParams,je.queryParams)&&!("exact"===Be.fragment&&Te.fragment!==je.fragment)}function qt(Te,je,Be){return S(Te,je,je.segments,Be)}function S(Te,je,Be,Ke){if(Te.segments.length>Be.length){const bt=Te.segments.slice(0,Be.length);return!(!et(bt,Be)||je.hasChildren()||!Xt(bt,Be,Ke))}if(Te.segments.length===Be.length){if(!et(Te.segments,Be)||!Xt(Te.segments,Be,Ke))return!1;for(const bt in je.children)if(!Te.children[bt]||!qt(Te.children[bt],je.children[bt],Ke))return!1;return!0}{const bt=Be.slice(0,Te.segments.length),Ht=Be.slice(Te.segments.length);return!!(et(Te.segments,bt)&&Xt(Te.segments,bt,Ke)&&Te.children[he])&&S(Te.children[he],je,Ht,Ke)}}function Xt(Te,je,Be){return je.every((Ke,bt)=>dt[Be](Te[bt].parameters,Ke.parameters))}class de{root;queryParams;fragment;_queryParamMap;constructor(je=new ae([],{}),Be={},Ke=null){this.root=je,this.queryParams=Be,this.fragment=Ke}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return En.serialize(this)}}class ae{segments;children;parent=null;constructor(je,Be){this.segments=je,this.children=Be,Object.values(Be).forEach(Ke=>Ke.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _n(this)}}class me{path;parameters;_parameterMap;constructor(je,Be){this.path=je,this.parameters=Be}get parameterMap(){return this._parameterMap??=ce(this.parameters),this._parameterMap}toString(){return Ne(this)}}function et(Te,je){return Te.length===je.length&&Te.every((Be,Ke)=>Be.path===je[Ke].path)}let Vt=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>new hn,providedIn:"root"})}return Te})();class hn{parse(je){const Be=new We(je);return new de(Be.parseRootSegment(),Be.parseQueryParams(),Be.parseFragment())}serialize(je){const Be=`/${tt(je.root,!0)}`,Ke=function Je(Te){const je=Object.entries(Te).map(([Be,Ke])=>Array.isArray(Ke)?Ke.map(bt=>`${Pe(Be)}=${Pe(bt)}`).join("&"):`${Pe(Be)}=${Pe(Ke)}`).filter(Be=>Be);return je.length?`?${je.join("&")}`:""}(je.queryParams);return`${Be}${Ke}${"string"==typeof je.fragment?`#${function Ue(Te){return encodeURI(Te)}(je.fragment)}`:""}`}}const En=new hn;function _n(Te){return Te.segments.map(je=>Ne(je)).join("/")}function tt(Te,je){if(!Te.hasChildren())return _n(Te);if(je){const Be=Te.children[he]?tt(Te.children[he],!1):"",Ke=[];return Object.entries(Te.children).forEach(([bt,Ht])=>{bt!==he&&Ke.push(`${bt}:${tt(Ht,!1)}`)}),Ke.length>0?`${Be}(${Ke.join("//")})`:Be}{const Be=function tn(Te,je){let Be=[];return Object.entries(Te.children).forEach(([Ke,bt])=>{Ke===he&&(Be=Be.concat(je(bt,Ke)))}),Object.entries(Te.children).forEach(([Ke,bt])=>{Ke!==he&&(Be=Be.concat(je(bt,Ke)))}),Be}(Te,(Ke,bt)=>bt===he?[tt(Te.children[he],!1)]:[`${bt}:${tt(Ke,!1)}`]);return 1===Object.keys(Te.children).length&&null!=Te.children[he]?`${_n(Te)}/${Be[0]}`:`${_n(Te)}/(${Be.join("//")})`}}function Fe(Te){return encodeURIComponent(Te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pe(Te){return Fe(Te).replace(/%3B/gi,";")}function Qe(Te){return Fe(Te).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ie(Te){return decodeURIComponent(Te)}function le(Te){return Ie(Te.replace(/\+/g,"%20"))}function Ne(Te){return`${Qe(Te.path)}${function ze(Te){return Object.entries(Te).map(([je,Be])=>`;${Qe(je)}=${Qe(Be)}`).join("")}(Te.parameters)}`}const gt=/^[^\/()?;#]+/;function zt(Te){const je=Te.match(gt);return je?je[0]:""}const Ye=/^[^\/()?;=#]+/,it=/^[^=?&#]+/,Wt=/^[^&#]+/;class We{url;remaining;constructor(je){this.url=je,this.remaining=je}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const je={};if(this.consumeOptional("?"))do{this.parseQueryParam(je)}while(this.consumeOptional("&"));return je}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const je=[];for(this.peekStartsWith("(")||je.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),je.push(this.parseSegment());let Be={};this.peekStartsWith("/(")&&(this.capture("/"),Be=this.parseParens(!0));let Ke={};return this.peekStartsWith("(")&&(Ke=this.parseParens(!1)),(je.length>0||Object.keys(Be).length>0)&&(Ke[he]=new ae(je,Be)),Ke}parseSegment(){const je=zt(this.remaining);if(""===je&&this.peekStartsWith(";"))throw new i.buA(4009,!1);return this.capture(je),new me(Ie(je),this.parseMatrixParams())}parseMatrixParams(){const je={};for(;this.consumeOptional(";");)this.parseParam(je);return je}parseParam(je){const Be=function st(Te){const je=Te.match(Ye);return je?je[0]:""}(this.remaining);if(!Be)return;this.capture(Be);let Ke="";if(this.consumeOptional("=")){const bt=zt(this.remaining);bt&&(Ke=bt,this.capture(Ke))}je[Ie(Be)]=Ie(Ke)}parseQueryParam(je){const Be=function He(Te){const je=Te.match(it);return je?je[0]:""}(this.remaining);if(!Be)return;this.capture(Be);let Ke="";if(this.consumeOptional("=")){const sn=function we(Te){const je=Te.match(Wt);return je?je[0]:""}(this.remaining);sn&&(Ke=sn,this.capture(Ke))}const bt=le(Be),Ht=le(Ke);if(je.hasOwnProperty(bt)){let sn=je[bt];Array.isArray(sn)||(sn=[sn],je[bt]=sn),sn.push(Ht)}else je[bt]=Ht}parseParens(je){const Be={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ke=zt(this.remaining),bt=this.remaining[Ke.length];if("/"!==bt&&")"!==bt&&";"!==bt)throw new i.buA(4010,!1);let Ht;Ke.indexOf(":")>-1?(Ht=Ke.slice(0,Ke.indexOf(":")),this.capture(Ht),this.capture(":")):je&&(Ht=he);const sn=this.parseChildren();Be[Ht??he]=1===Object.keys(sn).length&&sn[he]?sn[he]:new ae([],sn),this.consumeOptional("//")}return Be}peekStartsWith(je){return this.remaining.startsWith(je)}consumeOptional(je){return!!this.peekStartsWith(je)&&(this.remaining=this.remaining.substring(je.length),!0)}capture(je){if(!this.consumeOptional(je))throw new i.buA(4011,!1)}}function Lt(Te){return Te.segments.length>0?new ae([],{[he]:Te}):Te}function St(Te){const je={};for(const[Ke,bt]of Object.entries(Te.children)){const Ht=St(bt);if(Ke===he&&0===Ht.segments.length&&Ht.hasChildren())for(const[sn,Rn]of Object.entries(Ht.children))je[sn]=Rn;else(Ht.segments.length>0||Ht.hasChildren())&&(je[Ke]=Ht)}return function At(Te){if(1===Te.numberOfChildren&&Te.children[he]){const je=Te.children[he];return new ae(Te.segments.concat(je.segments),je.children)}return Te}(new ae(Te.segments,je))}function fn(Te){return Te instanceof de}function It(Te){let je;const bt=Lt(function Be(Ht){const sn={};for(const di of Ht.children){const ji=Be(di);sn[di.outlet]=ji}const Rn=new ae(Ht.url,sn);return Ht===Te&&(je=Rn),Rn}(Te.root));return je??bt}function wn(Te,je,Be,Ke){let bt=Te;for(;bt.parent;)bt=bt.parent;if(0===je.length)return Li(bt,bt,bt,Be,Ke);const Ht=function Ze(Te){if("string"==typeof Te[0]&&1===Te.length&&"/"===Te[0])return new Ot(!0,0,Te);let je=0,Be=!1;const Ke=Te.reduce((bt,Ht,sn)=>{if("object"==typeof Ht&&null!=Ht){if(Ht.outlets){const Rn={};return Object.entries(Ht.outlets).forEach(([di,ji])=>{Rn[di]="string"==typeof ji?ji.split("/"):ji}),[...bt,{outlets:Rn}]}if(Ht.segmentPath)return[...bt,Ht.segmentPath]}return"string"!=typeof Ht?[...bt,Ht]:0===sn?(Ht.split("/").forEach((Rn,di)=>{0==di&&"."===Rn||(0==di&&""===Rn?Be=!0:".."===Rn?je++:""!=Rn&&bt.push(Rn))}),bt):[...bt,Ht]},[]);return new Ot(Be,je,Ke)}(je);if(Ht.toRoot())return Li(bt,bt,new ae([],{}),Be,Ke);const sn=function Pt(Te,je,Be){if(Te.isAbsolute)return new Ge(je,!0,0);if(!Be)return new Ge(je,!1,NaN);if(null===Be.parent)return new Ge(Be,!0,0);const Ke=In(Te.commands[0])?0:1;return function Yt(Te,je,Be){let Ke=Te,bt=je,Ht=Be;for(;Ht>bt;){if(Ht-=bt,Ke=Ke.parent,!Ke)throw new i.buA(4005,!1);bt=Ke.segments.length}return new Ge(Ke,!1,bt-Ht)}(Be,Be.segments.length-1+Ke,Te.numberOfDoubleDots)}(Ht,bt,Te),Rn=sn.processChildren?oi(sn.segmentGroup,sn.index,Ht.commands):$n(sn.segmentGroup,sn.index,Ht.commands);return Li(bt,sn.segmentGroup,Rn,Be,Ke)}function In(Te){return"object"==typeof Te&&null!=Te&&!Te.outlets&&!Te.segmentPath}function ei(Te){return"object"==typeof Te&&null!=Te&&Te.outlets}function Li(Te,je,Be,Ke,bt){let sn,Ht={};Ke&&Object.entries(Ke).forEach(([di,ji])=>{Ht[di]=Array.isArray(ji)?ji.map(Ia=>`${Ia}`):`${ji}`}),sn=Te===je?Be:kt(Te,je,Be);const Rn=Lt(St(sn));return new de(Rn,Ht,bt)}function kt(Te,je,Be){const Ke={};return Object.entries(Te.children).forEach(([bt,Ht])=>{Ke[bt]=Ht===je?Be:kt(Ht,je,Be)}),new ae(Te.segments,Ke)}class Ot{isAbsolute;numberOfDoubleDots;commands;constructor(je,Be,Ke){if(this.isAbsolute=je,this.numberOfDoubleDots=Be,this.commands=Ke,je&&Ke.length>0&&In(Ke[0]))throw new i.buA(4003,!1);const bt=Ke.find(ei);if(bt&&bt!==be(Ke))throw new i.buA(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ge{segmentGroup;processChildren;index;constructor(je,Be,Ke){this.segmentGroup=je,this.processChildren=Be,this.index=Ke}}function $n(Te,je,Be){if(Te??=new ae([],{}),0===Te.segments.length&&Te.hasChildren())return oi(Te,je,Be);const Ke=function Ii(Te,je,Be){let Ke=0,bt=je;const Ht={match:!1,pathIndex:0,commandIndex:0};for(;bt=Be.length)return Ht;const sn=Te.segments[bt],Rn=Be[Ke];if(ei(Rn))break;const di=`${Rn}`,ji=Ke0&&void 0===di)break;if(di&&ji&&"object"==typeof ji&&void 0===ji.outlets){if(!en(di,ji,sn))return Ht;Ke+=2}else{if(!en(di,{},sn))return Ht;Ke++}bt++}return{match:!0,pathIndex:bt,commandIndex:Ke}}(Te,je,Be),bt=Be.slice(Ke.commandIndex);if(Ke.match&&Ke.pathIndexHt!==he)&&Te.children[he]&&1===Te.numberOfChildren&&0===Te.children[he].segments.length){const Ht=oi(Te.children[he],je,Be);return new ae(Te.segments,Ht.children)}return Object.entries(Ke).forEach(([Ht,sn])=>{"string"==typeof sn&&(sn=[sn]),null!==sn&&(bt[Ht]=$n(Te.children[Ht],je,sn))}),Object.entries(Te.children).forEach(([Ht,sn])=>{void 0===Ke[Ht]&&(bt[Ht]=sn)}),new ae(Te.segments,bt)}}function Ei(Te,je,Be){const Ke=Te.segments.slice(0,je);let bt=0;for(;bt{"string"==typeof Ke&&(Ke=[Ke]),null!==Ke&&(je[Be]=Ei(new ae([],{}),0,Ke))}),je}function nn(Te){const je={};return Object.entries(Te).forEach(([Be,Ke])=>je[Be]=`${Ke}`),je}function en(Te,je,Be){return Te==Be.path&&ve(je,Be.parameters)}const Nn="imperative";var jn=function(Te){return Te[Te.NavigationStart=0]="NavigationStart",Te[Te.NavigationEnd=1]="NavigationEnd",Te[Te.NavigationCancel=2]="NavigationCancel",Te[Te.NavigationError=3]="NavigationError",Te[Te.RoutesRecognized=4]="RoutesRecognized",Te[Te.ResolveStart=5]="ResolveStart",Te[Te.ResolveEnd=6]="ResolveEnd",Te[Te.GuardsCheckStart=7]="GuardsCheckStart",Te[Te.GuardsCheckEnd=8]="GuardsCheckEnd",Te[Te.RouteConfigLoadStart=9]="RouteConfigLoadStart",Te[Te.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",Te[Te.ChildActivationStart=11]="ChildActivationStart",Te[Te.ChildActivationEnd=12]="ChildActivationEnd",Te[Te.ActivationStart=13]="ActivationStart",Te[Te.ActivationEnd=14]="ActivationEnd",Te[Te.Scroll=15]="Scroll",Te[Te.NavigationSkipped=16]="NavigationSkipped",Te}(jn||{});class Un{id;url;constructor(je,Be){this.id=je,this.url=Be}}class ui extends Un{type=jn.NavigationStart;navigationTrigger;restoredState;constructor(je,Be,Ke="imperative",bt=null){super(je,Be),this.navigationTrigger=Ke,this.restoredState=bt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gn extends Un{urlAfterRedirects;type=jn.NavigationEnd;constructor(je,Be,Ke){super(je,Be),this.urlAfterRedirects=Ke}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var zn=function(Te){return Te[Te.Redirect=0]="Redirect",Te[Te.SupersededByNewNavigation=1]="SupersededByNewNavigation",Te[Te.NoDataFromResolver=2]="NoDataFromResolver",Te[Te.GuardRejected=3]="GuardRejected",Te[Te.Aborted=4]="Aborted",Te}(zn||{}),kn=function(Te){return Te[Te.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",Te[Te.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",Te}(kn||{});class Kn extends Un{reason;code;type=jn.NavigationCancel;constructor(je,Be,Ke,bt){super(je,Be),this.reason=Ke,this.code=bt}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ci extends Un{reason;code;type=jn.NavigationSkipped;constructor(je,Be,Ke,bt){super(je,Be),this.reason=Ke,this.code=bt}}class Xn extends Un{error;target;type=jn.NavigationError;constructor(je,Be,Ke,bt){super(je,Be),this.error=Ke,this.target=bt}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aa extends Un{urlAfterRedirects;state;type=jn.RoutesRecognized;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sa extends Un{urlAfterRedirects;state;type=jn.GuardsCheckStart;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ma extends Un{urlAfterRedirects;state;shouldActivate;type=jn.GuardsCheckEnd;constructor(je,Be,Ke,bt,Ht){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt,this.shouldActivate=Ht}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ua extends Un{urlAfterRedirects;state;type=jn.ResolveStart;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dn extends Un{urlAfterRedirects;state;type=jn.ResolveEnd;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ln{route;type=jn.RouteConfigLoadStart;constructor(je){this.route=je}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zn{route;type=jn.RouteConfigLoadEnd;constructor(je){this.route=je}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hi{snapshot;type=jn.ChildActivationStart;constructor(je){this.snapshot=je}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gn{snapshot;type=jn.ChildActivationEnd;constructor(je){this.snapshot=je}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jn{snapshot;type=jn.ActivationStart;constructor(je){this.snapshot=je}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bi{snapshot;type=jn.ActivationEnd;constructor(je){this.snapshot=je}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _a{routerEvent;position;anchor;type=jn.Scroll;constructor(je,Be,Ke){this.routerEvent=je,this.position=Be,this.anchor=Ke}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Sa{}class un{url;navigationBehaviorOptions;constructor(je,Be){this.url=je,this.navigationBehaviorOptions=Be}}function fi(Te){switch(Te.type){case jn.ActivationEnd:return`ActivationEnd(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.ActivationStart:return`ActivationStart(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.ChildActivationEnd:return`ChildActivationEnd(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.ChildActivationStart:return`ChildActivationStart(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.GuardsCheckEnd:return`GuardsCheckEnd(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state}, shouldActivate: ${Te.shouldActivate})`;case jn.GuardsCheckStart:return`GuardsCheckStart(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.NavigationCancel:return`NavigationCancel(id: ${Te.id}, url: '${Te.url}')`;case jn.NavigationSkipped:return`NavigationSkipped(id: ${Te.id}, url: '${Te.url}')`;case jn.NavigationEnd:return`NavigationEnd(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}')`;case jn.NavigationError:return`NavigationError(id: ${Te.id}, url: '${Te.url}', error: ${Te.error})`;case jn.NavigationStart:return`NavigationStart(id: ${Te.id}, url: '${Te.url}')`;case jn.ResolveEnd:return`ResolveEnd(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.ResolveStart:return`ResolveStart(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.RouteConfigLoadEnd:return`RouteConfigLoadEnd(path: ${Te.route.path})`;case jn.RouteConfigLoadStart:return`RouteConfigLoadStart(path: ${Te.route.path})`;case jn.RoutesRecognized:return`RoutesRecognized(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.Scroll:return`Scroll(anchor: '${Te.anchor}', position: '${Te.position?`${Te.position[0]}, ${Te.position[1]}`:null}')`}}function lt(Te){return Te.outlet||he}function ht(Te){if(!Te)return null;if(Te.routeConfig?._injector)return Te.routeConfig._injector;for(let je=Te.parent;je;je=je.parent){const Be=je.routeConfig;if(Be?._loadedInjector)return Be._loadedInjector;if(Be?._injector)return Be._injector}return null}class Gt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ht(this.route?.snapshot)??this.rootInjector}constructor(je){this.rootInjector=je,this.children=new cn(this.rootInjector)}}let cn=(()=>{class Te{rootInjector;contexts=new Map;constructor(Be){this.rootInjector=Be}onChildOutletCreated(Be,Ke){const bt=this.getOrCreateContext(Be);bt.outlet=Ke,this.contexts.set(Be,bt)}onChildOutletDestroyed(Be){const Ke=this.getContext(Be);Ke&&(Ke.outlet=null,Ke.attachRef=null)}onOutletDeactivated(){const Be=this.contexts;return this.contexts=new Map,Be}onOutletReAttached(Be){this.contexts=Be}getOrCreateContext(Be){let Ke=this.getContext(Be);return Ke||(Ke=new Gt(this.rootInjector),this.contexts.set(Be,Ke)),Ke}getContext(Be){return this.contexts.get(Be)||null}static \u0275fac=function(Ke){return new(Ke||Te)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();class si{_root;constructor(je){this._root=je}get root(){return this._root.value}parent(je){const Be=this.pathFromRoot(je);return Be.length>1?Be[Be.length-2]:null}children(je){const Be=pi(je,this._root);return Be?Be.children.map(Ke=>Ke.value):[]}firstChild(je){const Be=pi(je,this._root);return Be&&Be.children.length>0?Be.children[0].value:null}siblings(je){const Be=Oi(je,this._root);return Be.length<2?[]:Be[Be.length-2].children.map(bt=>bt.value).filter(bt=>bt!==je)}pathFromRoot(je){return Oi(je,this._root).map(Be=>Be.value)}}function pi(Te,je){if(Te===je.value)return je;for(const Be of je.children){const Ke=pi(Te,Be);if(Ke)return Ke}return null}function Oi(Te,je){if(Te===je.value)return[je];for(const Be of je.children){const Ke=Oi(Te,Be);if(Ke.length)return Ke.unshift(je),Ke}return[]}class la{value;children;constructor(je,Be){this.value=je,this.children=Be}toString(){return`TreeNode(${this.value})`}}function mn(Te){const je={};return Te&&Te.children.forEach(Be=>je[Be.value.outlet]=Be),je}class li extends si{snapshot;constructor(je,Be){super(je),this.snapshot=Be,va(this,je)}toString(){return this.snapshot.toString()}}function Ce(Te){const je=function xt(Te){const Ht=new Wn([],{},{},"",{},he,Te,null,{});return new Yi("",new la(Ht,[]))}(Te),Be=new d.t([new me("",{})]),Ke=new d.t({}),bt=new d.t({}),Ht=new d.t({}),sn=new d.t(""),Rn=new vt(Be,Ke,Ht,sn,bt,he,Te,je.root);return Rn.snapshot=je.root,new li(new la(Rn,[]),je)}class vt{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(je,Be,Ke,bt,Ht,sn,Rn,di){this.urlSubject=je,this.paramsSubject=Be,this.queryParamsSubject=Ke,this.fragmentSubject=bt,this.dataSubject=Ht,this.outlet=sn,this.component=Rn,this._futureSnapshot=di,this.title=this.dataSubject?.pipe((0,ie.T)(ji=>ji[Oe]))??(0,h.of)(void 0),this.url=je,this.params=Be,this.queryParams=Ke,this.fragment=bt,this.data=Ht}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,ie.T)(je=>ce(je))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,ie.T)(je=>ce(je))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rn(Te,je,Be="emptyOnly"){let Ke;const{routeConfig:bt}=Te;return Ke=null===je||"always"!==Be&&""!==bt?.path&&(je.component||je.routeConfig?.loadComponent)?{params:{...Te.params},data:{...Te.data},resolve:{...Te.data,...Te._resolvedData??{}}}:{params:{...je.params,...Te.params},data:{...je.data,...Te.data},resolve:{...Te.data,...je.data,...bt?.data,...Te._resolvedData}},bt&&Ga(bt)&&(Ke.resolve[Oe]=bt.title),Ke}class Wn{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Oe]}constructor(je,Be,Ke,bt,Ht,sn,Rn,di,ji){this.url=je,this.params=Be,this.queryParams=Ke,this.fragment=bt,this.data=Ht,this.outlet=sn,this.component=Rn,this.routeConfig=di,this._resolve=ji}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??=ce(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ke=>Ke.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yi extends si{url;constructor(je,Be){super(Be),this.url=je,va(this,Be)}toString(){return Va(this._root)}}function va(Te,je){je.value._routerState=Te,je.children.forEach(Be=>va(Te,Be))}function Va(Te){const je=Te.children.length>0?` { ${Te.children.map(Va).join(", ")} } `:"";return`${Te.value}${je}`}function $a(Te){if(Te.snapshot){const je=Te.snapshot,Be=Te._futureSnapshot;Te.snapshot=Be,ve(je.queryParams,Be.queryParams)||Te.queryParamsSubject.next(Be.queryParams),je.fragment!==Be.fragment&&Te.fragmentSubject.next(Be.fragment),ve(je.params,Be.params)||Te.paramsSubject.next(Be.params),function Me(Te,je){if(Te.length!==je.length)return!1;for(let Be=0;Beve(Be.parameters,je[Ke].parameters))}(Te.url,je.url);return Be&&!(!Te.parent!=!je.parent)&&(!Te.parent||ir(Te.parent,je.parent))}function Ga(Te){return"string"==typeof Te.title||null===Te.title}const Ar=new i.nKC("");let ds=(()=>{class Te{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=he;activateEvents=new p.bkB;deactivateEvents=new p.bkB;attachEvents=new p.bkB;detachEvents=new p.bkB;routerOutletData=(0,D.hFB)();parentContexts=(0,i.WQX)(cn);location=(0,i.WQX)(p.c1b);changeDetector=(0,i.WQX)(D.gRc);inputBinder=(0,i.WQX)(hs,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(Be){if(Be.name){const{firstChange:Ke,previousValue:bt}=Be.name;if(Ke)return;this.isTrackedInParentContexts(bt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(bt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Be){return this.parentContexts.getContext(Be)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Be=this.parentContexts.getContext(this.name);Be?.route&&(Be.attachRef?this.attach(Be.attachRef,Be.route):this.activateWith(Be.route,Be.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.buA(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.buA(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.buA(4012,!1);this.location.detach();const Be=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Be.instance),Be}attach(Be,Ke){this.activated=Be,this._activatedRoute=Ke,this.location.insert(Be.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(Be.instance)}deactivate(){if(this.activated){const Be=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Be)}}activateWith(Be,Ke){if(this.isActivated)throw new i.buA(4013,!1);this._activatedRoute=Be;const bt=this.location,sn=Be.snapshot.component,Rn=this.parentContexts.getOrCreateContext(this.name).children,di=new us(Be,Rn,bt.injector,this.routerOutletData);this.activated=bt.createComponent(sn,{index:bt.length,injector:di,environmentInjector:Ke}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275dir=p.FsC({type:Te,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[p.OA$]})}return Te})();class us{route;childContexts;parent;outletData;constructor(je,Be,Ke,bt){this.route=je,this.childContexts=Be,this.parent=Ke,this.outletData=bt}get(je,Be){return je===vt?this.route:je===cn?this.childContexts:je===Ar?this.outletData:this.parent.get(je,Be)}}const hs=new i.nKC("");let zo=(()=>{class Te{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(Be){this.unsubscribeFromRouteData(Be),this.subscribeToRouteData(Be)}unsubscribeFromRouteData(Be){this.outletDataSubscriptions.get(Be)?.unsubscribe(),this.outletDataSubscriptions.delete(Be)}subscribeToRouteData(Be){const{activatedRoute:Ke}=Be,bt=(0,w.z)([Ke.queryParams,Ke.params,Ke.data]).pipe((0,_e.n)(([Ht,sn,Rn],di)=>(Rn={...Ht,...sn,...Rn},0===di?(0,h.of)(Rn):Promise.resolve(Rn)))).subscribe(Ht=>{if(!Be.isActivated||!Be.activatedComponentRef||Be.activatedRoute!==Ke||null===Ke.component)return void this.unsubscribeFromRouteData(Be);const sn=(0,D.HJs)(Ke.component);if(sn)for(const{templateName:Rn}of sn.inputs)Be.activatedComponentRef.setInput(Rn,Ht[Rn]);else this.unsubscribeFromRouteData(Be)});this.outletDataSubscriptions.set(Be,bt)}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac})}return Te})(),fs=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275cmp=p.VBU({type:Te,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(Ke,bt){1&Ke&&p.nrm(0,"router-outlet")},dependencies:[ds],encapsulation:2})}return Te})();function ms(Te){const je=Te.children&&Te.children.map(ms),Be=je?{...Te,children:je}:{...Te};return!Be.component&&!Be.loadComponent&&(je||Be.loadChildren)&&Be.outlet&&Be.outlet!==he&&(Be.component=fs),Be}function Zr(Te,je,Be){if(Be&&Te.shouldReuseRoute(je.value,Be.value.snapshot)){const Ke=Be.value;Ke._futureSnapshot=je.value;const bt=function js(Te,je,Be){return je.children.map(Ke=>{for(const bt of Be.children)if(Te.shouldReuseRoute(Ke.value,bt.value.snapshot))return Zr(Te,Ke,bt);return Zr(Te,Ke)})}(Te,je,Be);return new la(Ke,bt)}{if(Te.shouldAttach(je.value)){const Ht=Te.retrieve(je.value);if(null!==Ht){const sn=Ht.route;return sn.value._futureSnapshot=je.value,sn.children=je.children.map(Rn=>Zr(Te,Rn)),sn}}const Ke=function Cs(Te){return new vt(new d.t(Te.url),new d.t(Te.params),new d.t(Te.queryParams),new d.t(Te.fragment),new d.t(Te.data),Te.outlet,Te.component,Te)}(je.value),bt=je.children.map(Ht=>Zr(Te,Ht));return new la(Ke,bt)}}class Ka{redirectTo;navigationBehaviorOptions;constructor(je,Be){this.redirectTo=je,this.navigationBehaviorOptions=Be}}const Pr="ngNavigationCancelingError";function Is(Te,je){const{redirectTo:Be,navigationBehaviorOptions:Ke}=fn(je)?{redirectTo:je,navigationBehaviorOptions:void 0}:je,bt=Wr(!1,zn.Redirect);return bt.url=Be,bt.navigationBehaviorOptions=Ke,bt}function Wr(Te,je){const Be=new Error(`NavigationCancelingError: ${Te||""}`);return Be[Pr]=!0,Be.cancellationCode=je,Be}function Js(Te){return!!Te&&Te[Pr]}class xo{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(je,Be,Ke,bt,Ht){this.routeReuseStrategy=je,this.futureState=Be,this.currState=Ke,this.forwardEvent=bt,this.inputBindingEnabled=Ht}activate(je){const Be=this.futureState._root,Ke=this.currState?this.currState._root:null;this.deactivateChildRoutes(Be,Ke,je),$a(this.futureState.root),this.activateChildRoutes(Be,Ke,je)}deactivateChildRoutes(je,Be,Ke){const bt=mn(Be);je.children.forEach(Ht=>{const sn=Ht.value.outlet;this.deactivateRoutes(Ht,bt[sn],Ke),delete bt[sn]}),Object.values(bt).forEach(Ht=>{this.deactivateRouteAndItsChildren(Ht,Ke)})}deactivateRoutes(je,Be,Ke){const bt=je.value,Ht=Be?Be.value:null;if(bt===Ht)if(bt.component){const sn=Ke.getContext(bt.outlet);sn&&this.deactivateChildRoutes(je,Be,sn.children)}else this.deactivateChildRoutes(je,Be,Ke);else Ht&&this.deactivateRouteAndItsChildren(Be,Ke)}deactivateRouteAndItsChildren(je,Be){je.value.component&&this.routeReuseStrategy.shouldDetach(je.value.snapshot)?this.detachAndStoreRouteSubtree(je,Be):this.deactivateRouteAndOutlet(je,Be)}detachAndStoreRouteSubtree(je,Be){const Ke=Be.getContext(je.value.outlet),bt=Ke&&je.value.component?Ke.children:Be,Ht=mn(je);for(const sn of Object.values(Ht))this.deactivateRouteAndItsChildren(sn,bt);if(Ke&&Ke.outlet){const sn=Ke.outlet.detach(),Rn=Ke.children.onOutletDeactivated();this.routeReuseStrategy.store(je.value.snapshot,{componentRef:sn,route:je,contexts:Rn})}}deactivateRouteAndOutlet(je,Be){const Ke=Be.getContext(je.value.outlet),bt=Ke&&je.value.component?Ke.children:Be,Ht=mn(je);for(const sn of Object.values(Ht))this.deactivateRouteAndItsChildren(sn,bt);Ke&&(Ke.outlet&&(Ke.outlet.deactivate(),Ke.children.onOutletDeactivated()),Ke.attachRef=null,Ke.route=null)}activateChildRoutes(je,Be,Ke){const bt=mn(Be);je.children.forEach(Ht=>{this.activateRoutes(Ht,bt[Ht.value.outlet],Ke),this.forwardEvent(new Bi(Ht.value.snapshot))}),je.children.length&&this.forwardEvent(new Gn(je.value.snapshot))}activateRoutes(je,Be,Ke){const bt=je.value,Ht=Be?Be.value:null;if($a(bt),bt===Ht)if(bt.component){const sn=Ke.getOrCreateContext(bt.outlet);this.activateChildRoutes(je,Be,sn.children)}else this.activateChildRoutes(je,Be,Ke);else if(bt.component){const sn=Ke.getOrCreateContext(bt.outlet);if(this.routeReuseStrategy.shouldAttach(bt.snapshot)){const Rn=this.routeReuseStrategy.retrieve(bt.snapshot);this.routeReuseStrategy.store(bt.snapshot,null),sn.children.onOutletReAttached(Rn.contexts),sn.attachRef=Rn.componentRef,sn.route=Rn.route.value,sn.outlet&&sn.outlet.attach(Rn.componentRef,Rn.route.value),$a(Rn.route.value),this.activateChildRoutes(je,null,sn.children)}else sn.attachRef=null,sn.route=bt,sn.outlet&&sn.outlet.activateWith(bt,sn.injector),this.activateChildRoutes(je,null,sn.children)}else this.activateChildRoutes(je,null,Ke)}}class Jr{path;route;constructor(je){this.path=je,this.route=this.path[this.path.length-1]}}class ps{component;route;constructor(je,Be){this.component=je,this.route=Be}}function lr(Te,je,Be){const Ke=Te._root;return Xr(Ke,je?je._root:null,Be,[Ke.value])}function ar(Te,je){const Be=Symbol(),Ke=je.get(Te,Be);return Ke===Be?"function"!=typeof Te||(0,i.muV)(Te)?je.get(Te):Te:Ke}function Xr(Te,je,Be,Ke,bt={canDeactivateChecks:[],canActivateChecks:[]}){const Ht=mn(je);return Te.children.forEach(sn=>{(function Kr(Te,je,Be,Ke,bt={canDeactivateChecks:[],canActivateChecks:[]}){const Ht=Te.value,sn=je?je.value:null,Rn=Be?Be.getContext(Te.value.outlet):null;if(sn&&Ht.routeConfig===sn.routeConfig){const di=function Ms(Te,je,Be){if("function"==typeof Be)return Be(Te,je);switch(Be){case"pathParamsChange":return!et(Te.url,je.url);case"pathParamsOrQueryParamsChange":return!et(Te.url,je.url)||!ve(Te.queryParams,je.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ir(Te,je)||!ve(Te.queryParams,je.queryParams);default:return!ir(Te,je)}}(sn,Ht,Ht.routeConfig.runGuardsAndResolvers);di?bt.canActivateChecks.push(new Jr(Ke)):(Ht.data=sn.data,Ht._resolvedData=sn._resolvedData),Xr(Te,je,Ht.component?Rn?Rn.children:null:Be,Ke,bt),di&&Rn&&Rn.outlet&&Rn.outlet.isActivated&&bt.canDeactivateChecks.push(new ps(Rn.outlet.component,sn))}else sn&&Hi(je,Rn,bt),bt.canActivateChecks.push(new Jr(Ke)),Xr(Te,null,Ht.component?Rn?Rn.children:null:Be,Ke,bt)})(sn,Ht[sn.value.outlet],Be,Ke.concat([sn.value]),bt),delete Ht[sn.value.outlet]}),Object.entries(Ht).forEach(([sn,Rn])=>Hi(Rn,Be.getContext(sn),bt)),bt}function Hi(Te,je,Be){const Ke=mn(Te),bt=Te.value;Object.entries(Ke).forEach(([Ht,sn])=>{Hi(sn,bt.component?je?je.children.getContext(Ht):null:je,Be)}),Be.canDeactivateChecks.push(new ps(bt.component&&je&&je.outlet&&je.outlet.isActivated?je.outlet.component:null,bt))}function Mr(Te){return"function"==typeof Te}function Aa(Te){return Te instanceof f.G||"EmptyError"===Te?.name}const Ha=Symbol("INITIAL_VALUE");function Za(){return(0,_e.n)(Te=>(0,w.z)(Te.map(je=>je.pipe((0,ye.s)(1),(0,se.Z)(Ha)))).pipe((0,ie.T)(je=>{for(const Be of je)if(!0!==Be){if(Be===Ha)return Ha;if(!1===Be||ks(Be))return Be}return!0}),(0,pe.p)(je=>je!==Ha),(0,ye.s)(1)))}function ks(Te){return fn(Te)||Te instanceof Ka}function vn(Te){return(0,K.F)((0,s.M)(je=>{if("boolean"!=typeof je)throw Is(0,je)}),(0,ie.T)(je=>!0===je))}class ca{segmentGroup;constructor(je){this.segmentGroup=je||null}}class Er extends Error{urlTree;constructor(je){super(),this.urlTree=je}}function Kt(Te){return(0,j.$)(new ca(Te))}function Vn(Te){return(0,j.$)(new i.buA(4e3,!1))}class xn{urlSerializer;urlTree;constructor(je,Be){this.urlSerializer=je,this.urlTree=Be}lineralizeSegments(je,Be){let Ke=[],bt=Be.root;for(;;){if(Ke=Ke.concat(bt.segments),0===bt.numberOfChildren)return(0,h.of)(Ke);if(bt.numberOfChildren>1||!bt.children[he])return Vn();bt=bt.children[he]}}applyRedirectCommands(je,Be,Ke,bt,Ht){return function Bn(Te,je,Be){if("string"==typeof Te)return(0,h.of)(Te);const Ke=Te,{queryParams:bt,fragment:Ht,routeConfig:sn,url:Rn,outlet:di,params:ji,data:Ia,title:rr}=je;return nt((0,i.N4e)(Be,()=>Ke({params:ji,data:Ia,queryParams:bt,fragment:Ht,routeConfig:sn,url:Rn,outlet:di,title:rr})))}(Be,bt,Ht).pipe((0,ie.T)(sn=>{if(sn instanceof de)throw new Er(sn);const Rn=this.applyRedirectCreateUrlTree(sn,this.urlSerializer.parse(sn),je,Ke);if("/"===sn[0])throw new Er(Rn);return Rn}))}applyRedirectCreateUrlTree(je,Be,Ke,bt){const Ht=this.createSegmentGroup(je,Be.root,Ke,bt);return new de(Ht,this.createQueryParams(Be.queryParams,this.urlTree.queryParams),Be.fragment)}createQueryParams(je,Be){const Ke={};return Object.entries(je).forEach(([bt,Ht])=>{if("string"==typeof Ht&&":"===Ht[0]){const Rn=Ht.substring(1);Ke[bt]=Be[Rn]}else Ke[bt]=Ht}),Ke}createSegmentGroup(je,Be,Ke,bt){const Ht=this.createSegments(je,Be.segments,Ke,bt);let sn={};return Object.entries(Be.children).forEach(([Rn,di])=>{sn[Rn]=this.createSegmentGroup(je,di,Ke,bt)}),new ae(Ht,sn)}createSegments(je,Be,Ke,bt){return Be.map(Ht=>":"===Ht.path[0]?this.findPosParam(je,Ht,bt):this.findOrReturn(Ht,Ke))}findPosParam(je,Be,Ke){const bt=Ke[Be.path.substring(1)];if(!bt)throw new i.buA(4001,!1);return bt}findOrReturn(je,Be){let Ke=0;for(const bt of Be){if(bt.path===je.path)return Be.splice(Ke),bt;Ke++}return je}}const wi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ea(Te,je,Be,Ke,bt){const Ht=ur(Te,je,Be);return Ht.matched?(Ke=function Dn(Te,je){return Te.providers&&!Te._injector&&(Te._injector=(0,p.Ol2)(Te.providers,je,`Route: ${Te.path}`)),Te._injector??je}(je,Ke),function Ni(Te,je,Be,Ke){const bt=je.canMatch;if(!bt||0===bt.length)return(0,h.of)(!0);const Ht=bt.map(sn=>{const Rn=ar(sn,Te);return nt(function Yr(Te){return Te&&Mr(Te.canMatch)}(Rn)?Rn.canMatch(je,Be):(0,i.N4e)(Te,()=>Rn(je,Be)))});return(0,h.of)(Ht).pipe(Za(),vn())}(Ke,je,Be).pipe((0,ie.T)(sn=>!0===sn?Ht:{...wi}))):(0,h.of)(Ht)}function ur(Te,je,Be){if("**"===je.path)return function eo(Te){return{matched:!0,parameters:Te.length>0?be(Te).parameters:{},consumedSegments:Te,remainingSegments:[],positionalParamSegments:{}}}(Be);if(""===je.path)return"full"===je.pathMatch&&(Te.hasChildren()||Be.length>0)?{...wi}:{matched:!0,consumedSegments:[],remainingSegments:Be,parameters:{},positionalParamSegments:{}};const bt=(je.matcher||Re)(Be,Te,je);if(!bt)return{...wi};const Ht={};Object.entries(bt.posParams??{}).forEach(([Rn,di])=>{Ht[Rn]=di.path});const sn=bt.consumed.length>0?{...Ht,...bt.consumed[bt.consumed.length-1].parameters}:Ht;return{matched:!0,consumedSegments:bt.consumed,remainingSegments:Be.slice(bt.consumed.length),parameters:sn,positionalParamSegments:bt.posParams??{}}}function Co(Te,je,Be,Ke){return Be.length>0&&function yl(Te,je,Be){return Be.some(Ke=>ts(Te,je,Ke)&<(Ke)!==he)}(Te,Be,Ke)?{segmentGroup:new ae(je,qo(Ke,new ae(Be,Te.children))),slicedSegments:[]}:0===Be.length&&function Sr(Te,je,Be){return Be.some(Ke=>ts(Te,je,Ke))}(Te,Be,Ke)?{segmentGroup:new ae(Te.segments,wr(Te,Be,Ke,Te.children)),slicedSegments:Be}:{segmentGroup:new ae(Te.segments,Te.children),slicedSegments:Be}}function wr(Te,je,Be,Ke){const bt={};for(const Ht of Be)if(ts(Te,je,Ht)&&!Ke[lt(Ht)]){const sn=new ae([],{});bt[lt(Ht)]=sn}return{...Ke,...bt}}function qo(Te,je){const Be={};Be[he]=je;for(const Ke of Te)if(""===Ke.path&<(Ke)!==he){const bt=new ae([],{});Be[lt(Ke)]=bt}return Be}function ts(Te,je,Be){return(!(Te.hasChildren()||je.length>0)||"full"!==Be.pathMatch)&&""===Be.path}class Eo{}class Bl{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(je,Be,Ke,bt,Ht,sn,Rn){this.injector=je,this.configLoader=Be,this.rootComponentType=Ke,this.config=bt,this.urlTree=Ht,this.paramsInheritanceStrategy=sn,this.urlSerializer=Rn,this.applyRedirects=new xn(this.urlSerializer,this.urlTree)}noMatchError(je){return new i.buA(4002,`'${je.segmentGroup}'`)}recognize(){const je=Co(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(je).pipe((0,ie.T)(({children:Be,rootSnapshot:Ke})=>{const bt=new la(Ke,Be),Ht=new Yi("",bt),sn=function mt(Te,je,Be=null,Ke=null){return wn(It(Te),je,Be,Ke)}(Ke,[],this.urlTree.queryParams,this.urlTree.fragment);return sn.queryParams=this.urlTree.queryParams,Ht.url=this.urlSerializer.serialize(sn),{state:Ht,tree:sn}}))}match(je){const Be=new Wn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),he,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,je,he,Be).pipe((0,ie.T)(Ke=>({children:Ke,rootSnapshot:Be})),(0,m.W)(Ke=>{if(Ke instanceof Er)return this.urlTree=Ke.urlTree,this.match(Ke.urlTree.root);throw Ke instanceof ca?this.noMatchError(Ke):Ke}))}processSegmentGroup(je,Be,Ke,bt,Ht){return 0===Ke.segments.length&&Ke.hasChildren()?this.processChildren(je,Be,Ke,Ht):this.processSegment(je,Be,Ke,Ke.segments,bt,!0,Ht).pipe((0,ie.T)(sn=>sn instanceof la?[sn]:[]))}processChildren(je,Be,Ke,bt){const Ht=[];for(const sn of Object.keys(Ke.children))"primary"===sn?Ht.unshift(sn):Ht.push(sn);return(0,A.H)(Ht).pipe((0,t.H)(sn=>{const Rn=Ke.children[sn],di=function an(Te,je){const Be=Te.filter(Ke=>lt(Ke)===je);return Be.push(...Te.filter(Ke=>lt(Ke)!==je)),Be}(Be,sn);return this.processSegmentGroup(je,di,Rn,sn,bt)}),(0,u.S)((sn,Rn)=>(sn.push(...Rn),sn)),(0,_.U)(null),function Y(Te,je){const Be=arguments.length>=2;return Ke=>Ke.pipe(Te?(0,pe.p)((bt,Ht)=>Te(bt,Ht,Ke)):x.D,C(1),Be?(0,_.U)(je):(0,a.v)(()=>new f.G))}(),(0,Ee.Z)(sn=>{if(null===sn)return Kt(Ke);const Rn=vi(sn);return function hr(Te){Te.sort((je,Be)=>je.value.outlet===he?-1:Be.value.outlet===he?1:je.value.outlet.localeCompare(Be.value.outlet))}(Rn),(0,h.of)(Rn)}))}processSegment(je,Be,Ke,bt,Ht,sn,Rn){return(0,A.H)(Be).pipe((0,t.H)(di=>this.processSegmentAgainstRoute(di._injector??je,Be,di,Ke,bt,Ht,sn,Rn).pipe((0,m.W)(ji=>{if(ji instanceof ca)return(0,h.of)(null);throw ji}))),(0,L.$)(di=>!!di),(0,m.W)(di=>{if(Aa(di))return function Mo(Te,je,Be){return 0===je.length&&!Te.children[Be]}(Ke,bt,Ht)?(0,h.of)(new Eo):Kt(Ke);throw di}))}processSegmentAgainstRoute(je,Be,Ke,bt,Ht,sn,Rn,di){return lt(Ke)===sn||sn!==he&&ts(bt,Ht,Ke)?void 0===Ke.redirectTo?this.matchSegmentAgainstRoute(je,bt,Ke,Ht,sn,di):this.allowRedirects&&Rn?this.expandSegmentAgainstRouteUsingRedirect(je,bt,Be,Ke,Ht,sn,di):Kt(bt):Kt(bt)}expandSegmentAgainstRouteUsingRedirect(je,Be,Ke,bt,Ht,sn,Rn){const{matched:di,parameters:ji,consumedSegments:Ia,positionalParamSegments:rr,remainingSegments:Fr}=ur(Be,bt,Ht);if(!di)return Kt(Be);"string"==typeof bt.redirectTo&&"/"===bt.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const nl=new Wn(Ht,ji,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Go(bt),lt(bt),bt.component??bt._loadedComponent??null,bt,fl(bt)),as=rn(nl,Rn,this.paramsInheritanceStrategy);return nl.params=Object.freeze(as.params),nl.data=Object.freeze(as.data),this.applyRedirects.applyRedirectCommands(Ia,bt.redirectTo,rr,nl,je).pipe((0,_e.n)(lo=>this.applyRedirects.lineralizeSegments(bt,lo)),(0,Ee.Z)(lo=>this.processSegment(je,Ke,Be,lo.concat(Fr),sn,!1,Rn)))}matchSegmentAgainstRoute(je,Be,Ke,bt,Ht,sn){const Rn=Ea(Be,Ke,bt,je);return"**"===Ke.path&&(Be.children={}),Rn.pipe((0,_e.n)(di=>di.matched?this.getChildConfig(je=Ke._injector??je,Ke,bt).pipe((0,_e.n)(({routes:ji})=>{const Ia=Ke._loadedInjector??je,{parameters:rr,consumedSegments:Fr,remainingSegments:nl}=di,as=new Wn(Fr,rr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Go(Ke),lt(Ke),Ke.component??Ke._loadedComponent??null,Ke,fl(Ke)),oo=rn(as,sn,this.paramsInheritanceStrategy);as.params=Object.freeze(oo.params),as.data=Object.freeze(oo.data);const{segmentGroup:lo,slicedSegments:Sl}=Co(Be,Fr,nl,ji);if(0===Sl.length&&lo.hasChildren())return this.processChildren(Ia,ji,lo,as).pipe((0,ie.T)(ql=>new la(as,ql)));if(0===ji.length&&0===Sl.length)return(0,h.of)(new la(as,[]));const mc=lt(Ke)===Ht;return this.processSegment(Ia,ji,lo,Sl,mc?he:Ht,!0,as).pipe((0,ie.T)(ql=>new la(as,ql instanceof la?[ql]:[])))})):Kt(Be)))}getChildConfig(je,Be,Ke){return Be.children?(0,h.of)({routes:Be.children,injector:je}):Be.loadChildren?void 0!==Be._loadedRoutes?(0,h.of)({routes:Be._loadedRoutes,injector:Be._loadedInjector}):function Rt(Te,je,Be,Ke){const bt=je.canLoad;if(void 0===bt||0===bt.length)return(0,h.of)(!0);const Ht=bt.map(sn=>{const Rn=ar(sn,Te);return nt(function qr(Te){return Te&&Mr(Te.canLoad)}(Rn)?Rn.canLoad(je,Be):(0,i.N4e)(Te,()=>Rn(je,Be)))});return(0,h.of)(Ht).pipe(Za(),vn())}(je,Be,Ke).pipe((0,Ee.Z)(bt=>bt?this.configLoader.loadChildren(je,Be).pipe((0,s.M)(Ht=>{Be._loadedRoutes=Ht.routes,Be._loadedInjector=Ht.injector})):function _t(){return(0,j.$)(Wr(!1,zn.GuardRejected))}())):(0,h.of)({routes:[],injector:je})}}function ns(Te){const je=Te.value.routeConfig;return je&&""===je.path}function vi(Te){const je=[],Be=new Set;for(const Ke of Te){if(!ns(Ke)){je.push(Ke);continue}const bt=je.find(Ht=>Ke.value.routeConfig===Ht.value.routeConfig);void 0!==bt?(bt.children.push(...Ke.children),Be.add(bt)):je.push(Ke)}for(const Ke of Be){const bt=vi(Ke.children);je.push(new la(Ke.value,bt))}return je.filter(Ke=>!Be.has(Ke))}function Go(Te){return Te.data||{}}function fl(Te){return Te.resolve||{}}function fo(Te){const je=Te.children.map(Be=>fo(Be)).flat();return[Te,...je]}function fr(Te){return(0,_e.n)(je=>{const Be=Te(je);return Be?(0,A.H)(Be).pipe((0,ie.T)(()=>je)):(0,h.of)(je)})}let Cl=(()=>{class Te{buildTitle(Be){let Ke,bt=Be.root;for(;void 0!==bt;)Ke=this.getResolvedTitleForRoute(bt)??Ke,bt=bt.children.find(Ht=>Ht.outlet===he);return Ke}getResolvedTitleForRoute(Be){return Be.data[Oe]}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(to),providedIn:"root"})}return Te})(),to=(()=>{class Te extends Cl{title;constructor(Be){super(),this.title=Be}updateTitle(Be){const Ke=this.buildTitle(Be);void 0!==Ke&&this.title.setTitle(Ke)}static \u0275fac=function(Ke){return new(Ke||Te)(i.KVO(re.hE))};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();const wo=new i.nKC("",{providedIn:"root",factory:()=>({})}),mo=new i.nKC("");let So=(()=>{class Te{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,i.WQX)(p.Ql9);loadComponent(Be,Ke){if(this.componentLoaders.get(Ke))return this.componentLoaders.get(Ke);if(Ke._loadedComponent)return(0,h.of)(Ke._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Ke);const bt=nt((0,i.N4e)(Be,()=>Ke.loadComponent())).pipe((0,ie.T)(no),(0,_e.n)(Ml),(0,s.M)(sn=>{this.onLoadEndListener&&this.onLoadEndListener(Ke),Ke._loadedComponent=sn}),(0,R.j)(()=>{this.componentLoaders.delete(Ke)})),Ht=new ee.G(bt,()=>new V.B).pipe((0,U.B)());return this.componentLoaders.set(Ke,Ht),Ht}loadChildren(Be,Ke){if(this.childrenLoaders.get(Ke))return this.childrenLoaders.get(Ke);if(Ke._loadedRoutes)return(0,h.of)({routes:Ke._loadedRoutes,injector:Ke._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ke);const Ht=function jo(Te,je,Be,Ke){return nt((0,i.N4e)(Be,()=>Te.loadChildren())).pipe((0,ie.T)(no),(0,_e.n)(Ml),(0,Ee.Z)(bt=>bt instanceof p.PYt||Array.isArray(bt)?(0,h.of)(bt):(0,A.H)(je.compileModuleAsync(bt))),(0,ie.T)(bt=>{Ke&&Ke(Te);let Ht,sn,Rn=!1;return Array.isArray(bt)?(sn=bt,!0):(Ht=bt.create(Be).injector,sn=Ht.get(mo,[],{optional:!0,self:!0}).flat()),{routes:sn.map(ms),injector:Ht}}))}(Ke,this.compiler,Be,this.onLoadEndListener).pipe((0,R.j)(()=>{this.childrenLoaders.delete(Ke)})),sn=new ee.G(Ht,()=>new V.B).pipe((0,U.B)());return this.childrenLoaders.set(Ke,sn),sn}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();function no(Te){return function ml(Te){return Te&&"object"==typeof Te&&"default"in Te}(Te)?Te.default:Te}function Ml(Te){return(0,h.of)(Te)}let io=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(El),providedIn:"root"})}return Te})(),El=(()=>{class Te{shouldProcessUrl(Be){return!0}extract(Be){return Be}merge(Be,Ke){return Be}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();const ao=new i.nKC(""),$r=new i.nKC("");function Ss(Te,je,Be){const Ke=Te.get($r),bt=Te.get(i.qQL);if(!bt.startViewTransition||Ke.skipNextTransition)return Ke.skipNextTransition=!1,new Promise(ji=>setTimeout(ji));let Ht;const sn=new Promise(ji=>{Ht=ji}),Rn=bt.startViewTransition(()=>(Ht(),function mi(Te){return new Promise(je=>{(0,p.mal)({read:()=>setTimeout(je)},{injector:Te})})}(Te)));Rn.ready.catch(ji=>{});const{onViewTransitionCreated:di}=Ke;return di&&(0,i.N4e)(Te,()=>di({transition:Rn,from:je,to:Be})),sn}const Xs=new i.nKC("");let ro=(()=>{class Te{currentNavigation=(0,i.vPA)(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new V.B;transitionAbortWithErrorSubject=new V.B;configLoader=(0,i.WQX)(So);environmentInjector=(0,i.WQX)(i.uvJ);destroyRef=(0,i.WQX)(i.abz);urlSerializer=(0,i.WQX)(Vt);rootContexts=(0,i.WQX)(cn);location=(0,i.WQX)(g.aZ);inputBindingEnabled=null!==(0,i.WQX)(hs,{optional:!0});titleStrategy=(0,i.WQX)(Cl);options=(0,i.WQX)(wo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,i.WQX)(io);createViewTransition=(0,i.WQX)(ao,{optional:!0});navigationErrorHandler=(0,i.WQX)(Xs,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,h.of)(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=bt=>this.events.next(new Zn(bt)),this.configLoader.onLoadStartListener=bt=>this.events.next(new Ln(bt)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(Be){const Ke=++this.navigationId;(0,o.O8)(()=>{this.transitions?.next({...Be,extractedUrl:this.urlHandlingStrategy.extract(Be.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:Ke})})}setupNavigations(Be){return this.transitions=new d.t(null),this.transitions.pipe((0,pe.p)(Ke=>null!==Ke),(0,_e.n)(Ke=>{let bt=!1;return(0,h.of)(Ke).pipe((0,_e.n)(Ht=>{if(this.navigationId>Ke.id)return this.cancelNavigationTransition(Ke,"",zn.SupersededByNewNavigation),Z.w;this.currentTransition=Ke,this.currentNavigation.set({id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,targetBrowserUrl:"string"==typeof Ht.extras.browserUrl?this.urlSerializer.parse(Ht.extras.browserUrl):Ht.extras.browserUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null,abort:()=>Ht.abortController.abort()});const sn=!Be.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!sn&&"reload"!==(Ht.extras.onSameUrlNavigation??Be.onSameUrlNavigation))return this.events.next(new ci(Ht.id,this.urlSerializer.serialize(Ht.rawUrl),"",kn.IgnoredSameUrlNavigation)),Ht.resolve(!1),Z.w;if(this.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return(0,h.of)(Ht).pipe((0,_e.n)(di=>(this.events.next(new ui(di.id,this.urlSerializer.serialize(di.extractedUrl),di.source,di.restoredState)),di.id!==this.navigationId?Z.w:Promise.resolve(di))),function ws(Te,je,Be,Ke,bt,Ht){return(0,Ee.Z)(sn=>function bl(Te,je,Be,Ke,bt,Ht,sn="emptyOnly"){return new Bl(Te,je,Be,Ke,bt,sn,Ht).recognize()}(Te,je,Be,Ke,sn.extractedUrl,bt,Ht).pipe((0,ie.T)(({state:Rn,tree:di})=>({...sn,targetSnapshot:Rn,urlAfterRedirects:di}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Be.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,s.M)(di=>{Ke.targetSnapshot=di.targetSnapshot,Ke.urlAfterRedirects=di.urlAfterRedirects,this.currentNavigation.update(Ia=>(Ia.finalUrl=di.urlAfterRedirects,Ia));const ji=new aa(di.id,this.urlSerializer.serialize(di.extractedUrl),this.urlSerializer.serialize(di.urlAfterRedirects),di.targetSnapshot);this.events.next(ji)}));if(sn&&this.urlHandlingStrategy.shouldProcessUrl(Ht.currentRawUrl)){const{id:di,extractedUrl:ji,source:Ia,restoredState:rr,extras:Fr}=Ht,nl=new ui(di,this.urlSerializer.serialize(ji),Ia,rr);this.events.next(nl);const as=Ce(this.rootComponentType).snapshot;return this.currentTransition=Ke={...Ht,targetSnapshot:as,urlAfterRedirects:ji,extras:{...Fr,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.update(oo=>(oo.finalUrl=ji,oo)),(0,h.of)(Ke)}return this.events.next(new ci(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),"",kn.IgnoredByUrlHandlingStrategy)),Ht.resolve(!1),Z.w}),(0,s.M)(Ht=>{const sn=new sa(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot);this.events.next(sn)}),(0,ie.T)(Ht=>(this.currentTransition=Ke={...Ht,guards:lr(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)},Ke)),function Rs(Te,je){return(0,Ee.Z)(Be=>{const{targetSnapshot:Ke,currentSnapshot:bt,guards:{canActivateChecks:Ht,canDeactivateChecks:sn}}=Be;return 0===sn.length&&0===Ht.length?(0,h.of)({...Be,guardsResult:!0}):function Nr(Te,je,Be,Ke){return(0,A.H)(Te).pipe((0,Ee.Z)(bt=>function Ve(Te,je,Be,Ke,bt){const Ht=je&&je.routeConfig?je.routeConfig.canDeactivate:null;if(!Ht||0===Ht.length)return(0,h.of)(!0);const sn=Ht.map(Rn=>{const di=ht(je)??bt,ji=ar(Rn,di);return nt(function es(Te){return Te&&Mr(Te.canDeactivate)}(ji)?ji.canDeactivate(Te,je,Be,Ke):(0,i.N4e)(di,()=>ji(Te,je,Be,Ke))).pipe((0,L.$)())});return(0,h.of)(sn).pipe(Za())}(bt.component,bt.route,Be,je,Ke)),(0,L.$)(bt=>!0!==bt,!0))}(sn,Ke,bt,Te).pipe((0,Ee.Z)(Rn=>Rn&&function gs(Te){return"boolean"==typeof Te}(Rn)?function Ws(Te,je,Be,Ke){return(0,A.H)(je).pipe((0,t.H)(bt=>(0,F.x)(function Es(Te,je){return null!==Te&&je&&je(new hi(Te)),(0,h.of)(!0)}(bt.route.parent,Ke),function Qr(Te,je){return null!==Te&&je&&je(new Jn(Te)),(0,h.of)(!0)}(bt.route,Ke),function pt(Te,je,Be){const Ke=je[je.length-1],Ht=je.slice(0,je.length-1).reverse().map(sn=>function dr(Te){const je=Te.routeConfig?Te.routeConfig.canActivateChild:null;return je&&0!==je.length?{node:Te,guards:je}:null}(sn)).filter(sn=>null!==sn).map(sn=>(0,M.v)(()=>{const Rn=sn.guards.map(di=>{const ji=ht(sn.node)??Be,Ia=ar(di,ji);return nt(function _s(Te){return Te&&Mr(Te.canActivateChild)}(Ia)?Ia.canActivateChild(Ke,Te):(0,i.N4e)(ji,()=>Ia(Ke,Te))).pipe((0,L.$)())});return(0,h.of)(Rn).pipe(Za())}));return(0,h.of)(Ht).pipe(Za())}(Te,bt.path,Be),function ct(Te,je,Be){const Ke=je.routeConfig?je.routeConfig.canActivate:null;if(!Ke||0===Ke.length)return(0,h.of)(!0);const bt=Ke.map(Ht=>(0,M.v)(()=>{const sn=ht(je)??Be,Rn=ar(Ht,sn);return nt(function Pa(Te){return Te&&Mr(Te.canActivate)}(Rn)?Rn.canActivate(je,Te):(0,i.N4e)(sn,()=>Rn(je,Te))).pipe((0,L.$)())}));return(0,h.of)(bt).pipe(Za())}(Te,bt.route,Be))),(0,L.$)(bt=>!0!==bt,!0))}(Ke,Ht,Te,je):(0,h.of)(Rn)),(0,ie.T)(Rn=>({...Be,guardsResult:Rn})))})}(this.environmentInjector,Ht=>this.events.next(Ht)),(0,s.M)(Ht=>{if(Ke.guardsResult=Ht.guardsResult,Ht.guardsResult&&"boolean"!=typeof Ht.guardsResult)throw Is(0,Ht.guardsResult);const sn=new ma(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.events.next(sn)}),(0,pe.p)(Ht=>!!Ht.guardsResult||(this.cancelNavigationTransition(Ht,"",zn.GuardRejected),!1)),fr(Ht=>{if(0!==Ht.guards.canActivateChecks.length)return(0,h.of)(Ht).pipe((0,s.M)(sn=>{const Rn=new ua(sn.id,this.urlSerializer.serialize(sn.extractedUrl),this.urlSerializer.serialize(sn.urlAfterRedirects),sn.targetSnapshot);this.events.next(Rn)}),(0,_e.n)(sn=>{let Rn=!1;return(0,h.of)(sn).pipe(function Ho(Te,je){return(0,Ee.Z)(Be=>{const{targetSnapshot:Ke,guards:{canActivateChecks:bt}}=Be;if(!bt.length)return(0,h.of)(Be);const Ht=new Set(bt.map(di=>di.route)),sn=new Set;for(const di of Ht)if(!sn.has(di))for(const ji of fo(di))sn.add(ji);let Rn=0;return(0,A.H)(sn).pipe((0,t.H)(di=>Ht.has(di)?function xl(Te,je,Be,Ke){const bt=Te.routeConfig,Ht=Te._resolve;return void 0!==bt?.title&&!Ga(bt)&&(Ht[Oe]=bt.title),(0,M.v)(()=>(Te.data=rn(Te,Te.parent,Be).resolve,function zl(Te,je,Be,Ke){const bt=oe(Te);if(0===bt.length)return(0,h.of)({});const Ht={};return(0,A.H)(bt).pipe((0,Ee.Z)(sn=>function za(Te,je,Be,Ke){const bt=ht(je)??Ke,Ht=ar(Te,bt);return nt(Ht.resolve?Ht.resolve(je,Be):(0,i.N4e)(bt,()=>Ht(je,Be)))}(Te[sn],je,Be,Ke).pipe((0,L.$)(),(0,s.M)(Rn=>{if(Rn instanceof Ka)throw Is(new hn,Rn);Ht[sn]=Rn}))),C(1),(0,ie.T)(()=>Ht),(0,m.W)(sn=>Aa(sn)?Z.w:(0,j.$)(sn)))}(Ht,Te,je,Ke).pipe((0,ie.T)(sn=>(Te._resolvedData=sn,Te.data={...Te.data,...sn},null)))))}(di,Ke,Te,je):(di.data=rn(di,di.parent,Te).resolve,(0,h.of)(void 0))),(0,s.M)(()=>Rn++),C(1),(0,Ee.Z)(di=>Rn===sn.size?(0,h.of)(Be):Z.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,s.M)({next:()=>Rn=!0,complete:()=>{Rn||this.cancelNavigationTransition(sn,"",zn.NoDataFromResolver)}}))}),(0,s.M)(sn=>{const Rn=new dn(sn.id,this.urlSerializer.serialize(sn.extractedUrl),this.urlSerializer.serialize(sn.urlAfterRedirects),sn.targetSnapshot);this.events.next(Rn)}))}),fr(Ht=>{const sn=Rn=>{const di=[];if(Rn.routeConfig?.loadComponent){const ji=ht(Rn)??this.environmentInjector;di.push(this.configLoader.loadComponent(ji,Rn.routeConfig).pipe((0,s.M)(Ia=>{Rn.component=Ia}),(0,ie.T)(()=>{})))}for(const ji of Rn.children)di.push(...sn(ji));return di};return(0,w.z)(sn(Ht.targetSnapshot.root)).pipe((0,_.U)(null),(0,ye.s)(1))}),fr(()=>this.afterPreactivation()),(0,_e.n)(()=>{const{currentSnapshot:Ht,targetSnapshot:sn}=Ke,Rn=this.createViewTransition?.(this.environmentInjector,Ht.root,sn.root);return Rn?(0,A.H)(Rn).pipe((0,ie.T)(()=>Ke)):(0,h.of)(Ke)}),(0,ie.T)(Ht=>{const sn=function bo(Te,je,Be){const Ke=Zr(Te,je._root,Be?Be._root:void 0);return new li(Ke,je)}(Be.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return this.currentTransition=Ke={...Ht,targetRouterState:sn},this.currentNavigation.update(Rn=>(Rn.targetRouterState=sn,Rn)),Ke}),(0,s.M)(()=>{this.events.next(new Sa)}),((Te,je,Be,Ke)=>(0,ie.T)(bt=>(new xo(je,bt.targetRouterState,bt.currentRouterState,Be,Ke).activate(Te),bt)))(this.rootContexts,Be.routeReuseStrategy,Ht=>this.events.next(Ht),this.inputBindingEnabled),(0,ye.s)(1),(0,fe.Q)(new Q.c(Ht=>{const sn=Ke.abortController.signal,Rn=()=>Ht.next();return sn.addEventListener("abort",Rn),()=>sn.removeEventListener("abort",Rn)}).pipe((0,pe.p)(()=>!bt&&!Ke.targetRouterState),(0,s.M)(()=>{this.cancelNavigationTransition(Ke,Ke.abortController.signal.reason+"",zn.Aborted)}))),(0,s.M)({next:Ht=>{bt=!0,this.lastSuccessfulNavigation=(0,o.O8)(this.currentNavigation),this.events.next(new gn(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects))),this.titleStrategy?.updateTitle(Ht.targetRouterState.snapshot),Ht.resolve(!0)},complete:()=>{bt=!0}}),(0,fe.Q)(this.transitionAbortWithErrorSubject.pipe((0,s.M)(Ht=>{throw Ht}))),(0,R.j)(()=>{bt||this.cancelNavigationTransition(Ke,"",zn.SupersededByNewNavigation),this.currentTransition?.id===Ke.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),(0,m.W)(Ht=>{if(this.destroyed)return Ke.resolve(!1),Z.w;if(bt=!0,Js(Ht))this.events.next(new Kn(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),Ht.message,Ht.cancellationCode)),function Uo(Te){return Js(Te)&&fn(Te.url)}(Ht)?this.events.next(new un(Ht.url,Ht.navigationBehaviorOptions)):Ke.resolve(!1);else{const sn=new Xn(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),Ht,Ke.targetSnapshot??void 0);try{const Rn=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(sn));if(!(Rn instanceof Ka))throw this.events.next(sn),Ht;{const{message:di,cancellationCode:ji}=Is(0,Rn);this.events.next(new Kn(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),di,ji)),this.events.next(new un(Rn.redirectTo,Rn.navigationBehaviorOptions))}}catch(Rn){this.options.resolveNavigationPromiseOnError?Ke.resolve(!1):Ke.reject(Rn)}}return Z.w}))}))}cancelNavigationTransition(Be,Ke,bt){const Ht=new Kn(Be.id,this.urlSerializer.serialize(Be.extractedUrl),Ke,bt);this.events.next(Ht),Be.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const Be=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),Ke=(0,o.O8)(this.currentNavigation),bt=Ke?.targetBrowserUrl??Ke?.extractedUrl;return Be.toString()!==bt?.toString()&&!Ke?.extras.skipLocationChange}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();function Os(Te){return Te!==Nn}let so=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(Ul),providedIn:"root"})}return Te})();class el{shouldDetach(je){return!1}store(je,Be){}shouldAttach(je){return!1}retrieve(je){return null}shouldReuseRoute(je,Be){return je.routeConfig===Be.routeConfig}}let Ul=(()=>{class Te extends el{static \u0275fac=(()=>{let Be;return function(bt){return(Be||(Be=p.xGo(Te)))(bt||Te)}})();static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})(),To=(()=>{class Te{urlSerializer=(0,i.WQX)(Vt);options=(0,i.WQX)(wo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=(0,i.WQX)(g.aZ);urlHandlingStrategy=(0,i.WQX)(io);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new de;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:Be,initialUrl:Ke,targetBrowserUrl:bt}){const Ht=void 0!==Be?this.urlHandlingStrategy.merge(Be,Ke):Ke,sn=bt??Ht;return sn instanceof de?this.urlSerializer.serialize(sn):sn}commitTransition({targetRouterState:Be,finalUrl:Ke,initialUrl:bt}){Ke&&Be?(this.currentUrlTree=Ke,this.rawUrlTree=this.urlHandlingStrategy.merge(Ke,bt),this.routerState=Be):this.rawUrlTree=bt}routerState=Ce(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:Be}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Be??this.rawUrlTree)}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(Zl),providedIn:"root"})}return Te})(),Zl=(()=>{class Te extends To{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(Be){return this.location.subscribe(Ke=>{"popstate"===Ke.type&&setTimeout(()=>{Be(Ke.url,Ke.state,"popstate")})})}handleRouterEvent(Be,Ke){Be instanceof ui?this.updateStateMemento():Be instanceof ci?this.commitTransition(Ke):Be instanceof aa?"eager"===this.urlUpdateStrategy&&(Ke.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(Ke),Ke)):Be instanceof Sa?(this.commitTransition(Ke),"deferred"===this.urlUpdateStrategy&&!Ke.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(Ke),Ke)):Be instanceof Kn&&Be.code!==zn.SupersededByNewNavigation&&Be.code!==zn.Redirect?this.restoreHistory(Ke):Be instanceof Xn?this.restoreHistory(Ke,!0):Be instanceof gn&&(this.lastSuccessfulId=Be.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Be,{extras:Ke,id:bt}){const{replaceUrl:Ht,state:sn}=Ke;if(this.location.isCurrentPathEqualTo(Be)||Ht){const Rn=this.browserPageId,di={...sn,...this.generateNgRouterState(bt,Rn)};this.location.replaceState(Be,"",di)}else{const Rn={...sn,...this.generateNgRouterState(bt,this.browserPageId+1)};this.location.go(Be,"",Rn)}}restoreHistory(Be,Ke=!1){if("computed"===this.canceledNavigationResolution){const Ht=this.currentPageId-this.browserPageId;0!==Ht?this.location.historyGo(Ht):this.getCurrentUrlTree()===Be.finalUrl&&0===Ht&&(this.resetInternalState(Be),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Ke&&this.resetInternalState(Be),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Be,Ke){return"computed"===this.canceledNavigationResolution?{navigationId:Be,\u0275routerPageId:Ke}:{navigationId:Be}}static \u0275fac=(()=>{let Be;return function(bt){return(Be||(Be=p.xGo(Te)))(bt||Te)}})();static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();function wl(Te,je){Te.events.pipe((0,pe.p)(Be=>Be instanceof gn||Be instanceof Kn||Be instanceof Xn||Be instanceof ci),(0,ie.T)(Be=>Be instanceof gn||Be instanceof ci?0:Be instanceof Kn&&(Be.code===zn.Redirect||Be.code===zn.SupersededByNewNavigation)?2:1),(0,pe.p)(Be=>2!==Be),(0,ye.s)(1)).subscribe(()=>{je()})}const is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Jl={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wo=(()=>{class Te{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(p.C7A);stateManager=(0,i.WQX)(To);options=(0,i.WQX)(wo,{optional:!0})||{};pendingTasks=(0,i.WQX)(i.rev);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,i.WQX)(ro);urlSerializer=(0,i.WQX)(Vt);location=(0,i.WQX)(g.aZ);urlHandlingStrategy=(0,i.WQX)(io);injector=(0,i.WQX)(i.uvJ);_events=new V.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(so);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(mo,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,i.WQX)(hs,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:Be=>{this.console.warn(Be)}}),this.subscribeToNavigationEvents()}eventsSubscription=new $.yU;subscribeToNavigationEvents(){const Be=this.navigationTransitions.events.subscribe(Ke=>{try{const bt=this.navigationTransitions.currentTransition,Ht=(0,o.O8)(this.navigationTransitions.currentNavigation);if(null!==bt&&null!==Ht)if(this.stateManager.handleRouterEvent(Ke,Ht),Ke instanceof Kn&&Ke.code!==zn.Redirect&&Ke.code!==zn.SupersededByNewNavigation)this.navigated=!0;else if(Ke instanceof gn)this.navigated=!0;else if(Ke instanceof un){const sn=Ke.navigationBehaviorOptions,Rn=this.urlHandlingStrategy.merge(Ke.url,bt.currentRawUrl),di={browserUrl:bt.extras.browserUrl,info:bt.extras.info,skipLocationChange:bt.extras.skipLocationChange,replaceUrl:bt.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Os(bt.source),...sn};this.scheduleNavigation(Rn,Nn,null,di,{resolve:bt.resolve,reject:bt.reject,promise:bt.promise})}(function Sn(Te){return!(Te instanceof Sa||Te instanceof un)})(Ke)&&this._events.next(Ke)}catch(bt){this.navigationTransitions.transitionAbortWithErrorSubject.next(bt)}});this.eventsSubscription.add(Be)}resetRootComponentType(Be){this.routerState.root.component=Be,this.navigationTransitions.rootComponentType=Be}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Nn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((Be,Ke,bt)=>{this.navigateToSyncWithBrowser(Be,bt,Ke)})}navigateToSyncWithBrowser(Be,Ke,bt){const Ht={replaceUrl:!0},sn=bt?.navigationId?bt:null;if(bt){const di={...bt};delete di.navigationId,delete di.\u0275routerPageId,0!==Object.keys(di).length&&(Ht.state=di)}const Rn=this.parseUrl(Be);this.scheduleNavigation(Rn,Ke,sn,Ht).catch(di=>{this.disposed||this.injector.get(i.ZTf)(di)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return(0,o.O8)(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Be){this.config=Be.map(ms),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(Be,Ke={}){const{relativeTo:bt,queryParams:Ht,fragment:sn,queryParamsHandling:Rn,preserveFragment:di}=Ke,ji=di?this.currentUrlTree.fragment:sn;let rr,Ia=null;switch(Rn??this.options.defaultQueryParamsHandling){case"merge":Ia={...this.currentUrlTree.queryParams,...Ht};break;case"preserve":Ia=this.currentUrlTree.queryParams;break;default:Ia=Ht||null}null!==Ia&&(Ia=this.removeEmptyProps(Ia));try{rr=It(bt?bt.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Be[0]||"/"!==Be[0][0])&&(Be=[]),rr=this.currentUrlTree.root}return wn(rr,Be,Ia,ji??null)}navigateByUrl(Be,Ke={skipLocationChange:!1}){const bt=fn(Be)?Be:this.parseUrl(Be),Ht=this.urlHandlingStrategy.merge(bt,this.rawUrlTree);return this.scheduleNavigation(Ht,Nn,null,Ke)}navigate(Be,Ke={skipLocationChange:!1}){return function tl(Te){for(let je=0;je(null!=Ht&&(Ke[bt]=Ht),Ke),{})}scheduleNavigation(Be,Ke,bt,Ht,sn){if(this.disposed)return Promise.resolve(!1);let Rn,di,ji;sn?(Rn=sn.resolve,di=sn.reject,ji=sn.promise):ji=new Promise((rr,Fr)=>{Rn=rr,di=Fr});const Ia=this.pendingTasks.add();return wl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Ia))}),this.navigationTransitions.handleNavigationRequest({source:Ke,restoredState:bt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Be,extras:Ht,resolve:Rn,reject:di,promise:ji,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ji.catch(rr=>Promise.reject(rr))}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})()},38132(ke,q,l){"use strict";l.d(q,{Wk:()=>C,iI:()=>hn,wQ:()=>a});var Q=l(10467),$=l(57303),ie=l(60177),_e=l(72200),ye=l(17705),se=l(2615),pe=l(73664),Ee=l(59295),L=l(43694),t=l(21413),s=l(22806),m=l(7673),u=l(70274),_=l(5964),T=l(26365),P=l(31397);let C=(()=>{class Ie{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=(0,se.vPA)(null);get href(){return(0,Ee.O8)(this.reactiveHref)}set href(Ne){this.reactiveHref.set(Ne)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new t.B;applicationErrorHandler=(0,se.WQX)(se.ZTf);options=(0,se.WQX)(L.J_,{optional:!0});constructor(Ne,ze,Je,gt,zt,Ye){this.router=Ne,this.route=ze,this.tabIndexAttribute=Je,this.renderer=gt,this.el=zt,this.locationStrategy=Ye,this.reactiveHref.set((0,se.WQX)(new ye.ES_("href"),{optional:!0}));const st=zt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===st||"area"===st||!("object"!=typeof customElements||!customElements.get(st)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(void 0!==this.subscription||!this.isAnchorElement)return;let Ne=this.preserveFragment;const ze=Je=>"merge"===Je||"preserve"===Je;Ne||=ze(this.queryParamsHandling),Ne||=!this.queryParamsHandling&&!ze(this.options?.defaultQueryParamsHandling),Ne&&(this.subscription=this.router.events.subscribe(Je=>{Je instanceof L.wF&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(Ne){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Ne)}ngOnChanges(Ne){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(Ne){null==Ne?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=(0,L.wO)(Ne)||Array.isArray(Ne)?Ne:[Ne],this.setTabIndexIfNotOnNativeEl("0"))}onClick(Ne,ze,Je,gt,zt){const Ye=this.urlTree;if(null===Ye||this.isAnchorElement&&(0!==Ne||ze||Je||gt||zt||"string"==typeof this.target&&"_self"!=this.target))return!0;const st={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(Ye,st)?.catch(it=>{this.applicationErrorHandler(it)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const Ne=this.urlTree;this.reactiveHref.set(null!==Ne&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(Ne))??"":null)}applyAttributeValue(Ne,ze){const Je=this.renderer,gt=this.el.nativeElement;null!==ze?Je.setAttribute(gt,Ne,ze):Je.removeAttribute(gt,Ne)}get urlTree(){return null===this.routerLinkInput?null:(0,L.wO)(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(ze){return new(ze||Ie)(pe.rXU(L.Ix),pe.rXU(L.nX),pe.kS0("tabindex"),pe.rXU(pe.sFG),pe.rXU(pe.aKT),pe.rXU($.hb))};static \u0275dir=pe.FsC({type:Ie,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(ze,Je){1&ze&&pe.bIt("click",function(zt){return Je.onClick(zt.button,zt.ctrlKey,zt.shiftKey,zt.altKey,zt.metaKey)}),2&ze&&pe.BMQ("href",Je.reactiveHref(),pe.n$t)("target",Je.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ye.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ye.L39],replaceUrl:[2,"replaceUrl","replaceUrl",ye.L39],routerLink:"routerLink"},features:[pe.OA$]})}return Ie})(),a=(()=>{class Ie{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new pe.bkB;constructor(Ne,ze,Je,gt,zt){this.router=Ne,this.element=ze,this.renderer=Je,this.cdr=gt,this.link=zt,this.routerEventsSubscription=Ne.events.subscribe(Ye=>{Ye instanceof L.wF&&this.update()})}ngAfterContentInit(){(0,m.of)(this.links.changes,(0,m.of)(null)).pipe((0,T.U)()).subscribe(Ne=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const Ne=[...this.links.toArray(),this.link].filter(ze=>!!ze).map(ze=>ze.onChanges);this.linkInputChangesSubscription=(0,s.H)(Ne).pipe((0,T.U)()).subscribe(ze=>{this._isActive!==this.isLinkActive(this.router)(ze)&&this.update()})}set routerLinkActive(Ne){const ze=Array.isArray(Ne)?Ne:Ne.split(" ");this.classes=ze.filter(Je=>!!Je)}ngOnChanges(Ne){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const Ne=this.hasActiveLinks();this.classes.forEach(ze=>{Ne?this.renderer.addClass(this.element.nativeElement,ze):this.renderer.removeClass(this.element.nativeElement,ze)}),Ne&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==Ne&&(this._isActive=Ne,this.cdr.markForCheck(),this.isActiveChange.emit(Ne))})}isLinkActive(Ne){const ze=function x(Ie){return!!Ie.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Je=>{const gt=Je.urlTree;return!!gt&&Ne.isActive(gt,ze)}}hasActiveLinks(){const Ne=this.isLinkActive(this.router);return this.link&&Ne(this.link)||this.links.some(Ne)}static \u0275fac=function(ze){return new(ze||Ie)(pe.rXU(L.Ix),pe.rXU(pe.aKT),pe.rXU(pe.sFG),pe.rXU(ye.gRc),pe.rXU(C,8))};static \u0275dir=pe.FsC({type:Ie,selectors:[["","routerLinkActive",""]],contentQueries:function(ze,Je,gt){if(1&ze&&pe.wni(gt,C,5),2&ze){let zt;pe.mGM(zt=pe.lsd())&&(Je.links=zt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[pe.OA$]})}return Ie})();class Y{}let fe=(()=>{class Ie{router;injector;preloadingStrategy;loader;subscription;constructor(Ne,ze,Je,gt){this.router=Ne,this.injector=ze,this.preloadingStrategy=Je,this.loader=gt}setUpPreloading(){this.subscription=this.router.events.pipe((0,_.p)(Ne=>Ne instanceof L.wF),(0,u.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Ne,ze){const Je=[];for(const gt of ze){gt.providers&&!gt._injector&&(gt._injector=(0,pe.Ol2)(gt.providers,Ne,`Route: ${gt.path}`));const zt=gt._injector??Ne,Ye=gt._loadedInjector??zt;(gt.loadChildren&&!gt._loadedRoutes&&void 0===gt.canLoad||gt.loadComponent&&!gt._loadedComponent)&&Je.push(this.preloadConfig(zt,gt)),(gt.children||gt._loadedRoutes)&&Je.push(this.processRoutes(Ye,gt.children??gt._loadedRoutes))}return(0,s.H)(Je).pipe((0,T.U)())}preloadConfig(Ne,ze){return this.preloadingStrategy.preload(ze,()=>{let Je;Je=ze.loadChildren&&void 0===ze.canLoad?this.loader.loadChildren(Ne,ze):(0,m.of)(null);const gt=Je.pipe((0,P.Z)(zt=>null===zt?(0,m.of)(void 0):(ze._loadedRoutes=zt.routes,ze._loadedInjector=zt.injector,this.processRoutes(zt.injector??Ne,zt.routes))));if(ze.loadComponent&&!ze._loadedComponent){const zt=this.loader.loadComponent(Ne,ze);return(0,s.H)([gt,zt]).pipe((0,T.U)())}return gt})}static \u0275fac=function(ze){return new(ze||Ie)(se.KVO(L.Ix),se.KVO(se.uvJ),se.KVO(Y),se.KVO(L.D$))};static \u0275prov=se.jDH({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})();const re=new se.nKC("");let he=(()=>{class Ie{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=L.wU;restoredId=0;store={};constructor(Ne,ze,Je,gt,zt={}){this.urlSerializer=Ne,this.transitions=ze,this.viewportScroller=Je,this.zone=gt,this.options=zt,zt.scrollPositionRestoration||="disabled",zt.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(Ne=>{Ne instanceof L.Z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Ne.navigationTrigger,this.restoredId=Ne.restoredState?Ne.restoredState.navigationId:0):Ne instanceof L.wF?(this.lastId=Ne.id,this.scheduleScrollEvent(Ne,this.urlSerializer.parse(Ne.urlAfterRedirects).fragment)):Ne instanceof L.lW&&Ne.code===L.mo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Ne,this.urlSerializer.parse(Ne.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Ne=>{if(!(Ne instanceof L.OY))return;const ze={behavior:"instant"};Ne.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0],ze):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Ne.position,ze):Ne.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Ne.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(Ne,ze){var Je=this;this.zone.runOutsideAngular((0,Q.A)(function*(){yield new Promise(gt=>{setTimeout(gt),typeof requestAnimationFrame<"u"&&requestAnimationFrame(gt)}),Je.zone.run(()=>{Je.transitions.events.next(new L.OY(Ne,"popstate"===Je.lastSource?Je.store[Je.restoredId]:null,ze))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(ze){pe.QTQ()};static \u0275prov=se.jDH({token:Ie,factory:Ie.\u0275fac})}return Ie})();function ve(Ie,le){return{\u0275kind:Ie,\u0275providers:le}}function $e(){const Ie=(0,se.WQX)(se.zZn);return le=>{const Ne=Ie.get(pe.o8S);if(le!==Ne.components[0])return;const ze=Ie.get(L.Ix),Je=Ie.get(dt);1===Ie.get(yt)&&ze.initialNavigation(),Ie.get(qt,null,{optional:!0})?.setUpPreloading(),Ie.get(re,null,{optional:!0})?.init(),ze.resetRootComponentType(Ne.componentTypes[0]),Je.closed||(Je.next(),Je.complete(),Je.unsubscribe())}}const dt=new se.nKC("",{factory:()=>new t.B}),yt=new se.nKC("",{providedIn:"root",factory:()=>1}),qt=new se.nKC("");function S(Ie){return ve(0,[{provide:qt,useExisting:fe},{provide:Y,useExisting:Ie}])}function Le(Ie){return(0,pe._jY)("NgRouterViewTransitions"),ve(9,[{provide:L.Pu,useValue:L.Lg},{provide:L.bK,useValue:{skipNextTransition:!!Ie?.skipInitialTransition,...Ie}}])}const Vt=[$.aZ,{provide:L.Sd,useClass:L.nU},L.Ix,L.Zp,{provide:L.nX,useFactory:function Me(Ie){return Ie.routerState.root},deps:[L.Ix]},L.D$,[]];let hn=(()=>{class Ie{constructor(){}static forRoot(Ne,ze){return{ngModule:Ie,providers:[Vt,[],{provide:L.bw,multi:!0,useValue:Ne},[],ze?.errorHandler?{provide:L.XR,useValue:ze.errorHandler}:[],{provide:L.J_,useValue:ze||{}},ze?.useHash?{provide:$.hb,useClass:_e.fw}:{provide:$.hb,useClass:$.Sm},{provide:re,useFactory:()=>{const Ie=(0,se.WQX)(ie.Xr),le=(0,se.WQX)(pe.SKi),Ne=(0,se.WQX)(L.J_),ze=(0,se.WQX)(L.J2),Je=(0,se.WQX)(L.Sd);return Ne.scrollOffset&&Ie.setOffset(Ne.scrollOffset),new he(Je,ze,Ie,le,Ne)}},ze?.preloadingStrategy?S(ze.preloadingStrategy).\u0275providers:[],ze?.initialNavigation?Pe(ze):[],ze?.bindToComponentInputs?ve(8,[L.tD,{provide:L.c1,useExisting:L.tD}]).\u0275providers:[],ze?.enableViewTransitions?Le().\u0275providers:[],[{provide:Ue,useFactory:$e},{provide:pe.iLQ,multi:!0,useExisting:Ue}]]}}static forChild(Ne){return{ngModule:Ie,providers:[{provide:L.bw,multi:!0,useValue:Ne}]}}static \u0275fac=function(ze){return new(ze||Ie)};static \u0275mod=pe.$C({type:Ie});static \u0275inj=se.G2t({})}return Ie})();function Pe(Ie){return["disabled"===Ie.initialNavigation?ve(3,[(0,pe.phd)(()=>{(0,se.WQX)(L.Ix).setUpLocationChangeListener()}),{provide:yt,useValue:2}]).\u0275providers:[],"enabledBlocking"===Ie.initialNavigation?ve(2,[{provide:pe.tvf,useValue:!0},{provide:yt,useValue:0},(0,pe.phd)(()=>{const le=(0,se.WQX)(se.zZn);return le.get($.hj,Promise.resolve()).then(()=>new Promise(ze=>{const Je=le.get(L.Ix),gt=le.get(dt);(0,L.gk)(Je,()=>{ze(!0)}),le.get(L.J2).afterPreactivation=()=>(ze(!0),gt.closed?(0,m.of)(void 0):gt),Je.initialNavigation()}))})]).\u0275providers:[]]}const Ue=new se.nKC("")},20060(ke,q,l){"use strict";l.d(q,{aY:()=>t1,dX:()=>A2});var i=l(2615),g=l(73664),p=l(17705),D=l(59295),o=l(345);function e(qe,Dt){(null==Dt||Dt>qe.length)&&(Dt=qe.length);for(var wt=0,Ft=Array(Dt);wt=qe.length?{done:!0}:{done:!1,value:qe[Ft++]}},e:function(Mt){throw Mt},f:ln}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var An,On=!0,ai=!1;return{s:function(){wt=wt.call(qe)},n:function(){var Mt=wt.next();return On=Mt.done,Mt},e:function(Mt){ai=!0,An=Mt},f:function(){try{On||null==wt.return||wt.return()}finally{if(ai)throw An}}}}function M(qe,Dt,wt){return(Dt=pe(Dt))in qe?Object.defineProperty(qe,Dt,{value:wt,enumerable:!0,configurable:!0,writable:!0}):qe[Dt]=wt,qe}function Q(qe,Dt){var wt=Object.keys(qe);if(Object.getOwnPropertySymbols){var Ft=Object.getOwnPropertySymbols(qe);Dt&&(Ft=Ft.filter(function(ln){return Object.getOwnPropertyDescriptor(qe,ln).enumerable})),wt.push.apply(wt,Ft)}return wt}function $(qe){for(var Dt=1;Dt0;)Dt+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Dt}function Aa(qe){for(var Dt=[],wt=(qe||[]).length>>>0;wt--;)Dt[wt]=qe[wt];return Dt}function Ha(qe){return qe.classList?Aa(qe.classList):(qe.getAttribute("class")||"").split(" ").filter(function(Dt){return Dt})}function Za(qe){return"".concat(qe).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Rs(qe){return Object.keys(qe||{}).reduce(function(Dt,wt){return Dt+"".concat(wt,": ").concat(qe[wt].trim(),";")},"")}function Nr(qe){return qe.size!==Pa.size||qe.x!==Pa.x||qe.y!==Pa.y||qe.rotate!==Pa.rotate||qe.flipX||qe.flipY}function ct(){var Dt=Yi,wt=Hi.cssPrefix,Ft=Hi.replacementClass,ln=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";\n --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";\n --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";\n --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";\n --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";\n --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";\n --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";\n --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";\n --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";\n --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";\n --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";\n --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";\n --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";\n --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\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.0714285714em;\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.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\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: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\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 transform: scale(var(--fa-counter-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it\'s vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\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.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\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 animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\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 animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\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 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 transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\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-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 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.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}';if("fa"!==wt||Ft!==Dt){var An=new RegExp("\\.".concat("fa","\\-"),"g"),On=new RegExp("\\--".concat("fa","\\-"),"g"),ai=new RegExp("\\.".concat(Dt),"g");ln=ln.replace(An,".".concat(wt,"-")).replace(On,"--".concat(wt,"-")).replace(ai,".".concat(Ft))}return ln}var pt=!1;function Ve(){Hi.autoAddCss&&!pt&&(function _s(qe){if(qe&&re){var Dt=Y.createElement("style");Dt.setAttribute("type","text/css"),Dt.innerHTML=qe;for(var wt=Y.head.childNodes,Ft=null,ln=wt.length-1;ln>-1;ln--){var An=wt[ln],On=(An.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(On)>-1&&(Ft=An)}Y.head.insertBefore(Dt,Ft)}}(ct()),pt=!0)}var Rt={mixout:function(){return{dom:{css:ct,insertCss:Ve}}},hooks:function(){return{beforeDOMElementCreation:function(){Ve()},beforeI2svg:function(){Ve()}}}},vn=x||{};vn[vt]||(vn[vt]={}),vn[vt].styles||(vn[vt].styles={}),vn[vt].hooks||(vn[vt].hooks={}),vn[vt].shims||(vn[vt].shims=[]);var Ni=vn[vt],ca=[],Er=function(){Y.removeEventListener("DOMContentLoaded",Er),Kt=1,ca.map(function(Dt){return Dt()})},Kt=!1;function _t(qe){var Dt=qe.tag,wt=qe.attributes,Ft=void 0===wt?{}:wt,ln=qe.children,An=void 0===ln?[]:ln;return"string"==typeof qe?Za(qe):"<".concat(Dt," ").concat(function ks(qe){return Object.keys(qe||{}).reduce(function(Dt,wt){return Dt+"".concat(wt,'="').concat(Za(qe[wt]),'" ')},"").trim()}(Ft),">").concat(An.map(_t).join(""),"")}function xn(qe,Dt,wt){if(qe&&qe[Dt]&&qe[Dt][wt])return{prefix:Dt,iconName:wt,icon:qe[Dt][wt]}}re&&((Kt=(Y.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Y.readyState))||Y.addEventListener("DOMContentLoaded",Er));var wi=function(Dt,wt,Ft,ln){var Mt,zi,Wi,An=Object.keys(Dt),On=An.length,ai=void 0!==ln?function(Dt,wt){return function(Ft,ln,An,On){return Dt.call(wt,Ft,ln,An,On)}}(wt,ln):wt;for(void 0===Ft?(Mt=1,Wi=Dt[An[0]]):(Mt=0,Wi=Ft);Mt2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,ln=void 0!==Ft&&Ft,An=ur(Dt);"function"!=typeof Ni.hooks.addPack||ln?Ni.styles[qe]=$($({},Ni.styles[qe]||{}),An):Ni.hooks.addPack(qe,ur(Dt)),"fas"===qe&&eo("fa",Dt)}var Sr=Ni.styles,ts=Ni.shims,Mo=Object.keys(Ka),Eo=Mo.reduce(function(qe,Dt){return qe[Dt]=Object.keys(Ka[Dt]),qe},{}),bl=null,hl={},Bl={},hr={},ns={},vi={};var fl=function(){var Dt=function(An){return wi(Sr,function(On,ai,Mt){return On[Mt]=wi(ai,An,{}),On},{})};hl=Dt(function(ln,An,On){return An[3]&&(ln[An[3]]=On),An[2]&&An[2].filter(function(Mt){return"number"==typeof Mt}).forEach(function(Mt){ln[Mt.toString(16)]=On}),ln}),Bl=Dt(function(ln,An,On){return ln[On]=On,An[2]&&An[2].filter(function(Mt){return"string"==typeof Mt}).forEach(function(Mt){ln[Mt]=On}),ln}),vi=Dt(function(ln,An,On){var ai=An[2];return ln[On]=On,ai.forEach(function(Mt){ln[Mt]=On}),ln});var wt="far"in Sr||Hi.autoFetchSvg,Ft=wi(ts,function(ln,An){var On=An[0],ai=An[1],Mt=An[2];return"far"===ai&&!wt&&(ai="fas"),"string"==typeof On&&(ln.names[On]={prefix:ai,iconName:Mt}),"number"==typeof On&&(ln.unicodes[On.toString(16)]={prefix:ai,iconName:Mt}),ln},{names:{},unicodes:{}});hr=Ft.names,ns=Ft.unicodes,bl=to(Hi.styleDefault,{family:Hi.familyDefault})};function ws(qe,Dt){return(hl[qe]||{})[Dt]}function fo(qe,Dt){return(vi[qe]||{})[Dt]}function xl(qe){return hr[qe]||{prefix:null,iconName:null}}function za(){return bl}function to(qe){var wt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,Ft=void 0===wt?oe:wt;return Ft!==Se||qe?js[Ft][qe]||js[Ft][bo[Ft][qe]]||(qe in Ni.styles?qe:null)||null:"fad"}function mo(qe){return qe.sort().filter(function(Dt,wt,Ft){return Ft.indexOf(Dt)===wt})}(function gs(qe){Mr.push(qe)})(function(qe){bl=to(qe.styleDefault,{family:Hi.familyDefault})}),fl();var So=pi.concat(Lt);function jo(qe){var wt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,Ft=void 0!==wt&&wt,ln=null,An=mo(qe.filter(function(Fa){return So.includes(Fa)})),On=mo(qe.filter(function(Fa){return!So.includes(Fa)})),zi=_e(An.filter(function(Fa){return ln=Fa,!ve.includes(Fa)}),1)[0],Wi=void 0===zi?null:zi,Zi=function Cl(qe){var Dt=oe,wt=Mo.reduce(function(Ft,ln){return Ft[ln]="".concat(Hi.cssPrefix,"-").concat(ln),Ft},{});return st.forEach(function(Ft){(qe.includes(wt[Ft])||qe.some(function(ln){return Eo[Ft].includes(ln)}))&&(Dt=Ft)}),Dt}(An),Ja=$($({},function wo(qe){var Dt=[],wt=null;return qe.forEach(function(Ft){var ln=function Go(qe,Dt){var wt=Dt.split("-"),Ft=wt[0],ln=wt.slice(1).join("-");return Ft!==qe||""===ln||function Vo(qe){return~ps.indexOf(qe)}(ln)?null:ln}(Hi.cssPrefix,Ft);ln?wt=ln:Ft&&Dt.push(Ft)}),{iconName:wt,rest:Dt}}(On)),{},{prefix:to(Wi,{family:Zi})});return $($($({},Ja),function io(qe){var Dt=qe.values,wt=qe.family,Ft=qe.canonical,ln=qe.givenPrefix,An=void 0===ln?"":ln,On=qe.styles,ai=void 0===On?{}:On,Mt=qe.config,zi=void 0===Mt?{}:Mt,Wi=wt===Se,Zi=Dt.includes("fa-duotone")||Dt.includes("fad");if(!Wi&&(Zi||"duotone"===zi.familyDefault||("fad"===Ft.prefix||"fa-duotone"===Ft.prefix))&&(Ft.prefix="fad"),(Dt.includes("fa-brands")||Dt.includes("fab"))&&(Ft.prefix="fab"),!Ft.prefix&&no.includes(wt)&&(Object.keys(ai).find(function(vr){return Ml.includes(vr)})||zi.autoFetchSvg)){var _r=we.get(wt).defaultShortPrefixId;Ft.prefix=_r,Ft.iconName=fo(Ft.prefix,Ft.iconName)||Ft.iconName}return("fa"===Ft.prefix||"fa"===An)&&(Ft.prefix=za()||"fas"),Ft}({values:qe,family:Zi,styles:Sr,config:Hi,canonical:Ja,givenPrefix:ln})),function ml(qe,Dt,wt){var Ft=wt.prefix,ln=wt.iconName;if(qe||!Ft||!ln)return{prefix:Ft,iconName:ln};var An="fa"===Dt?xl(ln):{},On=fo(Ft,ln);return"far"===(Ft=An.prefix||Ft)&&!Sr.far&&Sr.fas&&!Hi.autoFetchSvg&&(Ft="fas"),{prefix:Ft,iconName:ln=An.iconName||On||ln}}(Ft,ln,Ja))}var no=st.filter(function(qe){return qe!==oe||qe!==Se}),Ml=Object.keys(cn).filter(function(qe){return qe!==oe}).map(function(qe){return Object.keys(cn[qe])}).flat(),El=function(){return function f(qe,Dt,wt){return Dt&&w(qe.prototype,Dt),wt&&w(qe,wt),Object.defineProperty(qe,"prototype",{writable:!1}),qe}(function qe(){(function d(qe,Dt){if(!(qe instanceof Dt))throw new TypeError("Cannot call a class as a function")})(this,qe),this.definitions={}},[{key:"add",value:function(){for(var wt=this,Ft=arguments.length,ln=new Array(Ft),An=0;An0&&Wi.forEach(function(Zi){"string"==typeof Zi&&(wt[ai][Zi]=zi)}),wt[ai][Mt]=zi}),wt}}])}(),ao=[],$r={},Ss={},mi=Object.keys(Ss);function ro(qe,Dt){for(var wt=arguments.length,Ft=new Array(wt>2?wt-2:0),ln=2;ln1?Dt-1:0),Ft=1;Ft0&&void 0!==arguments[0]?arguments[0]:{};return re?(Os("beforeI2svg",Dt),so("pseudoElements2svg",Dt),so("i2svg",Dt)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var Dt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},wt=Dt.autoReplaceSvgRoot;!1===Hi.autoReplaceSvg&&(Hi.autoReplaceSvg=!0),Hi.observeMutations=!0,function Vn(qe){re&&(Kt?setTimeout(qe,0):ca.push(qe))}(function(){Jl({autoReplaceSvgRoot:wt}),Os("watch",Dt)})}},is={noAuto:function(){Hi.autoReplaceSvg=!1,Hi.observeMutations=!1,Os("noAuto")},config:Hi,dom:Zl,parse:{icon:function(Dt){if(null===Dt)return null;if("object"===Ee(Dt)&&Dt.prefix&&Dt.iconName)return{prefix:Dt.prefix,iconName:fo(Dt.prefix,Dt.iconName)||Dt.iconName};if(Array.isArray(Dt)&&2===Dt.length){var wt=0===Dt[1].indexOf("fa-")?Dt[1].slice(3):Dt[1],Ft=to(Dt[0]);return{prefix:Ft,iconName:fo(Ft,wt)||wt}}if("string"==typeof Dt&&(Dt.indexOf("".concat(Hi.cssPrefix,"-"))>-1||Dt.match(Wr))){var ln=jo(Dt.split(" "),{skipLookups:!0});return{prefix:ln.prefix||za(),iconName:fo(ln.prefix,ln.iconName)||ln.iconName}}if("string"==typeof Dt){var An=za();return{prefix:An,iconName:fo(An,Dt)||Dt}}}},library:Ul,findIconDefinition:el,toHtml:_t},Jl=function(){var wt=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,Ft=void 0===wt?Y:wt;(Object.keys(Ni.styles).length>0||Hi.autoFetchSvg)&&re&&Hi.autoReplaceSvg&&is.dom.i2svg({node:Ft})};function Wo(qe,Dt){return Object.defineProperty(qe,"abstract",{get:Dt}),Object.defineProperty(qe,"html",{get:function(){return qe.abstract.map(function(Ft){return _t(Ft)})}}),Object.defineProperty(qe,"node",{get:function(){if(re){var Ft=Y.createElement("div");return Ft.innerHTML=qe.html,Ft.children}}}),qe}function Be(qe){var Dt=qe.icons,wt=Dt.main,Ft=Dt.mask,ln=qe.prefix,An=qe.iconName,On=qe.transform,ai=qe.symbol,Mt=qe.maskId,zi=qe.extra,Wi=qe.watchable,Zi=void 0!==Wi&&Wi,Ja=Ft.found?Ft:wt,Fa=Ja.width,Ts=Ja.height,_r=[Hi.replacementClass,An?"".concat(Hi.cssPrefix,"-").concat(An):""].filter(function(rc){return-1===zi.classes.indexOf(rc)}).filter(function(rc){return""!==rc||!!rc}).concat(zi.classes).join(" "),vr={children:[],attributes:$($({},zi.attributes),{},{"data-prefix":ln,"data-icon":An,class:_r,role:zi.attributes.role||"img",viewBox:"0 0 ".concat(Fa," ").concat(Ts)})};!function je(qe){return["aria-label","aria-labelledby","title","role"].some(function(wt){return wt in qe})}(zi.attributes)&&!zi.attributes["aria-hidden"]&&(vr.attributes["aria-hidden"]="true"),Zi&&(vr.attributes[va]="");var yr=$($({},vr),{},{prefix:ln,iconName:An,main:wt,mask:Ft,maskId:Mt,transform:On,symbol:ai,styles:$({},zi.styles)}),Bs=Ft.found&&wt.found?so("generateAbstractMask",yr)||{children:[],attributes:{}}:so("generateAbstractIcon",yr)||{children:[],attributes:{}},Ys=Bs.attributes;return yr.children=Bs.children,yr.attributes=Ys,ai?function Te(qe){var wt=qe.iconName,Ft=qe.children,ln=qe.attributes,An=qe.symbol,On=!0===An?"".concat(qe.prefix,"-").concat(Hi.cssPrefix,"-").concat(wt):An;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:$($({},ln),{},{id:On}),children:Ft}]}]}(yr):function tl(qe){var Dt=qe.children,wt=qe.main,Ft=qe.mask,ln=qe.attributes,An=qe.styles,On=qe.transform;if(Nr(On)&&wt.found&&!Ft.found){var zi={x:wt.width/wt.height/2,y:.5};ln.style=Rs($($({},An),{},{"transform-origin":"".concat(zi.x+On.x/16,"em ").concat(zi.y+On.y/16,"em")}))}return[{tag:"svg",attributes:ln,children:Dt}]}(yr)}function Ke(qe){var Dt=qe.content,wt=qe.width,Ft=qe.height,ln=qe.transform,An=qe.extra,On=qe.watchable,ai=void 0!==On&&On,Mt=$($({},An.attributes),{},{class:An.classes.join(" ")});ai&&(Mt[va]="");var zi=$({},An.styles);Nr(ln)&&(zi.transform=function Qr(qe){var Dt=qe.transform,wt=qe.width,ln=qe.height,An=void 0===ln?16:ln,On=qe.startCentered,ai=void 0!==On&&On,Mt="";return Mt+=ai&&he?"translate(".concat(Dt.x/16-(void 0===wt?16:wt)/2,"em, ").concat(Dt.y/16-An/2,"em) "):ai?"translate(calc(-50% + ".concat(Dt.x/16,"em), calc(-50% + ").concat(Dt.y/16,"em)) "):"translate(".concat(Dt.x/16,"em, ").concat(Dt.y/16,"em) "),(Mt+="scale(".concat(Dt.size/16*(Dt.flipX?-1:1),", ").concat(Dt.size/16*(Dt.flipY?-1:1),") "))+"rotate(".concat(Dt.rotate,"deg) ")}({transform:ln,startCentered:!0,width:wt,height:Ft}),zi["-webkit-transform"]=zi.transform);var Wi=Rs(zi);Wi.length>0&&(Mt.style=Wi);var Zi=[];return Zi.push({tag:"span",attributes:Mt,children:[Dt]}),Zi}var Ht=Ni.styles;function sn(qe){var Dt=qe[0],wt=qe[1],An=_e(qe.slice(4),1)[0];return{found:!0,width:Dt,height:wt,icon:Array.isArray(An)?{tag:"g",attributes:{class:"".concat(Hi.cssPrefix,"-").concat(Jr_GROUP)},children:[{tag:"path",attributes:{class:"".concat(Hi.cssPrefix,"-").concat(Jr_SECONDARY),fill:"currentColor",d:An[0]}},{tag:"path",attributes:{class:"".concat(Hi.cssPrefix,"-").concat(Jr_PRIMARY),fill:"currentColor",d:An[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:An}}}}var Rn={found:!1,width:512,height:512};function ji(qe,Dt){var wt=Dt;return"fa"===Dt&&null!==Hi.styleDefault&&(Dt=za()),new Promise(function(Ft,ln){if("fa"===wt){var An=xl(qe)||{};qe=An.iconName||qe,Dt=An.prefix||Dt}if(qe&&Dt&&Ht[Dt]&&Ht[Dt][qe])return Ft(sn(Ht[Dt][qe]));(function di(qe,Dt){!zo&&!Hi.showMissingIcons&&qe&&console.error('Icon with name "'.concat(qe,'" and prefix "').concat(Dt,'" is missing.'))})(qe,Dt),Ft($($({},Rn),{},{icon:Hi.showMissingIcons&&qe&&so("missingIconAbstract")||{}}))})}var Ia=function(){},rr=Hi.measurePerformance&&U&&U.mark&&U.measure?U:{mark:Ia,measure:Ia},Fr='FA "7.1.0"',oo_begin=function(Dt){return rr.mark("".concat(Fr," ").concat(Dt," begins")),function(){return function(Dt){rr.mark("".concat(Fr," ").concat(Dt," ends")),rr.measure("".concat(Fr," ").concat(Dt),"".concat(Fr," ").concat(Dt," begins"),"".concat(Fr," ").concat(Dt," ends"))}(Dt)}},lo=function(){};function Sl(qe){return"string"==typeof(qe.getAttribute?qe.getAttribute(va):null)}function qc(qe){return Y.createElementNS("http://www.w3.org/2000/svg",qe)}function po(qe){return Y.createElement(qe)}function pc(qe){var wt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,Ft=void 0===wt?"svg"===qe.tag?qc:po:wt;if("string"==typeof qe)return Y.createTextNode(qe);var ln=Ft(qe.tag);return Object.keys(qe.attributes||[]).forEach(function(On){ln.setAttribute(On,qe.attributes[On])}),(qe.children||[]).forEach(function(On){ln.appendChild(pc(On,{ceFn:Ft}))}),ln}var Ps={replace:function(Dt){var wt=Dt[0];if(wt.parentNode)if(Dt[1].forEach(function(ln){wt.parentNode.insertBefore(pc(ln),wt)}),null===wt.getAttribute(va)&&Hi.keepOriginalSource){var Ft=Y.createComment(function gc(qe){var Dt=" ".concat(qe.outerHTML," ");return"".concat(Dt,"Font Awesome fontawesome.com ")}(wt));wt.parentNode.replaceChild(Ft,wt)}else wt.remove()},nest:function(Dt){var wt=Dt[0],Ft=Dt[1];if(~Ha(wt).indexOf(Hi.replacementClass))return Ps.replace(Dt);var ln=new RegExp("".concat(Hi.cssPrefix,"-.*"));if(delete Ft[0].attributes.id,Ft[0].attributes.class){var An=Ft[0].attributes.class.split(" ").reduce(function(ai,Mt){return Mt===Hi.replacementClass||Mt.match(ln)?ai.toSvg.push(Mt):ai.toNode.push(Mt),ai},{toNode:[],toSvg:[]});Ft[0].attributes.class=An.toSvg.join(" "),0===An.toNode.length?wt.removeAttribute("class"):wt.setAttribute("class",An.toNode.join(" "))}var On=Ft.map(function(ai){return _t(ai)}).join("\n");wt.setAttribute(va,""),wt.innerHTML=On}};function Do(qe){qe()}function e1(qe,Dt){var wt="function"==typeof Dt?Dt:lo;if(0===qe.length)wt();else{var Ft=Do;"async"===Hi.mutateApproach&&(Ft=x.requestAnimationFrame||Do),Ft(function(){var ln=function Tl(){return!0===Hi.autoReplaceSvg?Ps.replace:Ps[Hi.autoReplaceSvg]||Ps.replace}(),An=oo_begin("mutate");qe.map(ln),An(),wt()})}}var Ao=!1;function kc(){Ao=!0}function pl(){Ao=!1}var il=null;function Lo(qe){if(R&&Hi.observeMutations){var Dt=qe.treeCallback,wt=void 0===Dt?lo:Dt,Ft=qe.nodeCallback,ln=void 0===Ft?lo:Ft,An=qe.pseudoElementsCallback,On=void 0===An?lo:An,ai=qe.observeMutationsRoot,Mt=void 0===ai?Y:ai;il=new R(function(zi){if(!Ao){var Wi=za();Aa(zi).forEach(function(Zi){if("childList"===Zi.type&&Zi.addedNodes.length>0&&!Sl(Zi.addedNodes[0])&&(Hi.searchPseudoElements&&On(Zi.target),wt(Zi.target)),"attributes"===Zi.type&&Zi.target.parentNode&&Hi.searchPseudoElements&&On([Zi.target],!0),"attributes"===Zi.type&&Sl(Zi.target)&&~xo.indexOf(Zi.attributeName))if("class"===Zi.attributeName&&function mc(qe){var Dt=qe.getAttribute?qe.getAttribute(ir):null,wt=qe.getAttribute?qe.getAttribute(Ga):null;return Dt&&wt}(Zi.target)){var Ja=jo(Ha(Zi.target)),Ts=Ja.iconName;Zi.target.setAttribute(ir,Ja.prefix||Wi),Ts&&Zi.target.setAttribute(Ga,Ts)}else(function ql(qe){return qe&&qe.classList&&qe.classList.contains&&qe.classList.contains(Hi.replacementClass)})(Zi.target)&&ln(Zi.target)})}}),re&&il.observe(Mt,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Io(qe){var Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},wt=function Gl(qe){var Dt=qe.getAttribute("data-prefix"),wt=qe.getAttribute("data-icon"),Ft=void 0!==qe.innerText?qe.innerText.trim():"",ln=jo(Ha(qe));return ln.prefix||(ln.prefix=za()),Dt&&wt&&(ln.prefix=Dt,ln.iconName=wt),ln.iconName&&ln.prefix||(ln.prefix&&Ft.length>0&&(ln.iconName=function Ho(qe,Dt){return(Bl[qe]||{})[Dt]}(ln.prefix,qe.innerText)||ws(ln.prefix,Ea(qe.innerText))),!ln.iconName&&Hi.autoFetchSvg&&qe.firstChild&&qe.firstChild.nodeType===Node.TEXT_NODE&&(ln.iconName=qe.firstChild.data)),ln}(qe),Ft=wt.iconName,ln=wt.prefix,An=wt.rest,On=function Hl(qe){return Aa(qe.attributes).reduce(function(wt,Ft){return"class"!==wt.name&&"style"!==wt.name&&(wt[Ft.name]=Ft.value),wt},{})}(qe),ai=ro("parseNodeAttributes",{},qe),Mt=Dt.styleParser?function Vl(qe){var Dt=qe.getAttribute("style"),wt=[];return Dt&&(wt=Dt.split(";").reduce(function(Ft,ln){var An=ln.split(":"),On=An[0],ai=An.slice(1);return On&&ai.length>0&&(Ft[On]=ai.join(":").trim()),Ft},{})),wt}(qe):[];return $({iconName:Ft,prefix:ln,transform:Pa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:An,styles:Mt,attributes:On}},ai)}var ko=Ni.styles;function jl(qe){var Dt="nest"===Hi.autoReplaceSvg?Io(qe,{styleParser:!1}):Io(qe);return~Dt.extra.classes.indexOf(Uo)?so("generateLayersText",qe,Dt):so("generateSvgReplacementMutation",qe,Dt)}function Tr(qe){var Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!re)return Promise.resolve();var wt=Y.documentElement.classList,Ft=function(Zi){return wt.add("".concat(Ar,"-").concat(Zi))},ln=function(Zi){return wt.remove("".concat(Ar,"-").concat(Zi))},An=Hi.autoFetchSvg?function rs(){return[].concat(ye(Lt),ye(pi))}():ve.concat(Object.keys(ko));An.includes("fa")||An.push("fa");var On=[".".concat(Uo,":not([").concat(va,"])")].concat(An.map(function(Wi){return".".concat(Wi,":not([").concat(va,"])")})).join(", ");if(0===On.length)return Promise.resolve();var ai=[];try{ai=Aa(qe.querySelectorAll(On))}catch{}if(!(ai.length>0))return Promise.resolve();Ft("pending"),ln("complete");var Mt=oo_begin("onTree"),zi=ai.reduce(function(Wi,Zi){try{var Ja=jl(Zi);Ja&&Wi.push(Ja)}catch(Fa){zo||"MissingIcon"===Fa.name&&console.error(Fa)}return Wi},[]);return new Promise(function(Wi,Zi){Promise.all(zi).then(function(Ja){e1(Ja,function(){Ft("active"),Ft("complete"),ln("pending"),"function"==typeof Dt&&Dt(),Mt(),Wi()})}).catch(function(Ja){Mt(),Zi(Ja)})})}function Bt(qe){var Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;jl(qe).then(function(wt){wt&&e1([wt],Dt)})}var Tt=function(Dt){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ft=wt.transform,ln=void 0===Ft?Pa:Ft,An=wt.symbol,On=void 0!==An&&An,ai=wt.mask,Mt=void 0===ai?null:ai,zi=wt.maskId,Wi=void 0===zi?null:zi,Zi=wt.classes,Ja=void 0===Zi?[]:Zi,Fa=wt.attributes,Ts=void 0===Fa?{}:Fa,_r=wt.styles,vr=void 0===_r?{}:_r;if(Dt){var yr=Dt.prefix,Bs=Dt.iconName,rl=Dt.icon;return Wo($({type:"icon"},Dt),function(){return Os("beforeDOMElementCreation",{iconDefinition:Dt,params:wt}),Be({icons:{main:sn(rl),mask:Mt?sn(Mt.icon):{found:!1,width:null,height:null,icon:{}}},prefix:yr,iconName:Bs,transform:$($({},Pa),ln),symbol:On,maskId:Wi,extra:{attributes:Ts,styles:vr,classes:Ja}})})}},on={mixout:function(){return{icon:(qe=Tt,function(Dt){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ft=(Dt||{}).icon?Dt:el(Dt||{}),ln=wt.mask;return ln&&(ln=(ln||{}).icon?ln:el(ln||{})),qe(Ft,$($({},wt),{},{mask:ln}))})};var qe},hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.treeCallback=Tr,wt.nodeCallback=Bt,wt}}},provides:function(Dt){Dt.i2svg=function(wt){var Ft=wt.node,An=wt.callback;return Tr(void 0===Ft?Y:Ft,void 0===An?function(){}:An)},Dt.generateSvgReplacementMutation=function(wt,Ft){var ln=Ft.iconName,An=Ft.prefix,On=Ft.transform,ai=Ft.symbol,Mt=Ft.mask,zi=Ft.maskId,Wi=Ft.extra;return new Promise(function(Zi,Ja){Promise.all([ji(ln,An),Mt.iconName?ji(Mt.iconName,Mt.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Fa){var Ts=_e(Fa,2);Zi([wt,Be({icons:{main:Ts[0],mask:Ts[1]},prefix:An,iconName:ln,transform:On,symbol:ai,maskId:zi,extra:Wi,watchable:!0})])}).catch(Ja)})},Dt.generateAbstractIcon=function(wt){var zi,Ft=wt.children,ln=wt.attributes,An=wt.main,On=wt.transform,Mt=Rs(wt.styles);return Mt.length>0&&(ln.style=Mt),Nr(On)&&(zi=so("generateAbstractTransformGrouping",{main:An,transform:On,containerWidth:An.width,iconWidth:An.width})),Ft.push(zi||An.icon),{children:Ft,attributes:ln}}}},Hn={mixout:function(){return{layer:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ln=Ft.classes,An=void 0===ln?[]:ln;return Wo({type:"layer"},function(){Os("beforeDOMElementCreation",{assembler:wt,params:Ft});var On=[];return wt(function(ai){Array.isArray(ai)?ai.map(function(Mt){On=On.concat(Mt.abstract)}):On=On.concat(ai.abstract)}),[{tag:"span",attributes:{class:["".concat(Hi.cssPrefix,"-layers")].concat(ye(An)).join(" ")},children:On}]})}}}},ni={mixout:function(){return{counter:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ln=Ft.title,An=void 0===ln?null:ln,On=Ft.classes,ai=void 0===On?[]:On,Mt=Ft.attributes,zi=void 0===Mt?{}:Mt,Wi=Ft.styles,Zi=void 0===Wi?{}:Wi;return Wo({type:"counter",content:wt},function(){return Os("beforeDOMElementCreation",{content:wt,params:Ft}),function bt(qe){var Dt=qe.content,wt=qe.extra,Ft=$($({},wt.attributes),{},{class:wt.classes.join(" ")}),ln=Rs(wt.styles);ln.length>0&&(Ft.style=ln);var An=[];return An.push({tag:"span",attributes:Ft,children:[Dt]}),An}({content:wt.toString(),title:An,extra:{attributes:zi,styles:Zi,classes:["".concat(Hi.cssPrefix,"-layers-counter")].concat(ye(ai))}})})}}}},Mi={mixout:function(){return{text:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ln=Ft.transform,An=void 0===ln?Pa:ln,On=Ft.classes,ai=void 0===On?[]:On,Mt=Ft.attributes,zi=void 0===Mt?{}:Mt,Wi=Ft.styles,Zi=void 0===Wi?{}:Wi;return Wo({type:"text",content:wt},function(){return Os("beforeDOMElementCreation",{content:wt,params:Ft}),Ke({content:wt,transform:$($({},Pa),An),extra:{attributes:zi,styles:Zi,classes:["".concat(Hi.cssPrefix,"-layers-text")].concat(ye(ai))}})})}}},provides:function(Dt){Dt.generateLayersText=function(wt,Ft){var ln=Ft.transform,An=Ft.extra,On=null,ai=null;if(he){var Mt=parseInt(getComputedStyle(wt).fontSize,10),zi=wt.getBoundingClientRect();On=zi.width/Mt,ai=zi.height/Mt}return Promise.resolve([wt,Ke({content:wt.innerHTML,width:On,height:ai,transform:ln,extra:An,watchable:!0})])}}},ki=new RegExp('"',"ug"),$i=[1105920,1112319],ra=$($($($({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),ba=Object.keys(ra).reduce(function(qe,Dt){return qe[Dt.toLowerCase()]=ra[Dt],qe},{}),oa=Object.keys(ba).reduce(function(qe,Dt){var wt=ba[Dt];return qe[Dt]=wt[900]||ye(Object.entries(wt))[0][1],qe},{});function Ns(qe,Dt){var wt="".concat("data-fa-pseudo-element-pending").concat(Dt.replace(":","-"));return new Promise(function(Ft,ln){if(null!==qe.getAttribute(wt))return Ft();var On=Aa(qe.children).filter(function(sl){return sl.getAttribute(Va)===Dt})[0],ai=x.getComputedStyle(qe,Dt),Mt=ai.getPropertyValue("font-family"),zi=Mt.match(Js),Wi=ai.getPropertyValue("font-weight"),Zi=ai.getPropertyValue("content");if(On&&!zi)return qe.removeChild(On),Ft();if(zi&&"none"!==Zi&&""!==Zi){var Ja=ai.getPropertyValue("content"),Fa=function bi(qe,Dt){var wt=qe.replace(/^['"]|['"]$/g,"").toLowerCase(),Ft=parseInt(Dt),ln=isNaN(Ft)?"normal":Ft;return(ba[wt]||{})[ln]||oa[wt]}(Mt,Wi),Ts=function mr(qe){return Ea(ye(qe.replace(ki,""))[0]||"")}(Ja),_r=zi[0].startsWith("FontAwesome"),vr=function Lr(qe){var Dt=qe.getPropertyValue("font-feature-settings").includes("ss01"),Ft=qe.getPropertyValue("content").replace(ki,""),ln=Ft.codePointAt(0);return ln>=$i[0]&&ln<=$i[1]||2===Ft.length&&Ft[0]===Ft[1]||Dt}(ai),yr=ws(Fa,Ts),Bs=yr;if(_r){var rl=function zl(qe){var Dt=ns[qe],wt=ws("fas",qe);return Dt||(wt?{prefix:"fas",iconName:wt}:null)||{prefix:null,iconName:null}}(Ts);rl.iconName&&rl.prefix&&(yr=rl.iconName,Fa=rl.prefix)}if(!yr||vr||On&&On.getAttribute(ir)===Fa&&On.getAttribute(Ga)===Bs)Ft();else{qe.setAttribute(wt,Bs),On&&qe.removeChild(On);var Ys=function Al(){return{iconName:null,prefix:null,transform:Pa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),rc=Ys.extra;rc.attributes[Va]=Dt,ji(yr,Fa).then(function(sl){var Sh=Be($($({},Ys),{},{icons:{main:sl,mask:{prefix:null,iconName:null,rest:[]}},prefix:Fa,iconName:Bs,extra:rc,watchable:!0})),xc=Y.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===Dt?qe.insertBefore(xc,qe.firstChild):qe.appendChild(xc),xc.outerHTML=Sh.map(function(t0){return _t(t0)}).join("\n"),qe.removeAttribute(wt),Ft()}).catch(ln)}}else Ft()})}function Fs(qe){return Promise.all([Ns(qe,"::before"),Ns(qe,"::after")])}function Xo(qe){return!(qe.parentNode===document.head||~us.indexOf(qe.tagName.toUpperCase())||qe.getAttribute(Va)||qe.parentNode&&"svg"===qe.parentNode.tagName)}var Ro=function(Dt){return!!Dt&&hs.some(function(wt){return Dt.includes(wt)})},Ll=function(Dt){if(!Dt)return[];var An,wt=new Set,Ft=Dt.split(/,(?![^()]*\))/).map(function(Mt){return Mt.trim()}),ln=F(Ft=Ft.flatMap(function(Mt){return Mt.includes("(")?Mt:Mt.split(",").map(function(zi){return zi.trim()})}));try{for(ln.s();!(An=ln.n()).done;){var On=An.value;if(Ro(On)){var ai=hs.reduce(function(Mt,zi){return Mt.replace(zi,"")},On);""!==ai&&"*"!==ai&&wt.add(ai)}}}catch(Mt){ln.e(Mt)}finally{ln.f()}return wt};function gl(qe){if(re){var wt;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])wt=qe;else if(Hi.searchPseudoElementsFullScan)wt=qe.querySelectorAll("*");else{var An,Ft=new Set,ln=F(document.styleSheets);try{for(ln.s();!(An=ln.n()).done;){var On=An.value;try{var Mt,ai=F(On.cssRules);try{for(ai.s();!(Mt=ai.n()).done;){var Ja,Zi=F(Ll(Mt.value.selectorText));try{for(Zi.s();!(Ja=Zi.n()).done;)Ft.add(Ja.value)}catch(_r){Zi.e(_r)}finally{Zi.f()}}}catch(_r){ai.e(_r)}finally{ai.f()}}catch(_r){Hi.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(On.href," (").concat(_r.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(_r){ln.e(_r)}finally{ln.f()}if(!Ft.size)return;var Ts=Array.from(Ft).join(", ");try{wt=qe.querySelectorAll(Ts)}catch{}}return new Promise(function(_r,vr){var yr=Aa(wt).filter(Xo).map(Fs),Bs=oo_begin("searchPseudoElements");kc(),Promise.all(yr).then(function(){Bs(),pl(),_r()}).catch(function(){Bs(),pl(),vr()})})}}var ec=!1,ed=function(Dt){return Dt.toLowerCase().split(" ").reduce(function(Ft,ln){var An=ln.toLowerCase().split("-"),On=An[0],ai=An.slice(1).join("-");if(On&&"h"===ai)return Ft.flipX=!0,Ft;if(On&&"v"===ai)return Ft.flipY=!0,Ft;if(ai=parseFloat(ai),isNaN(ai))return Ft;switch(On){case"grow":Ft.size=Ft.size+ai;break;case"shrink":Ft.size=Ft.size-ai;break;case"left":Ft.x=Ft.x-ai;break;case"right":Ft.x=Ft.x+ai;break;case"up":Ft.y=Ft.y-ai;break;case"down":Ft.y=Ft.y+ai;break;case"rotate":Ft.rotate=Ft.rotate+ai}return Ft},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},_c={x:0,y:0,width:"100%",height:"100%"};function td(qe){return qe.attributes&&(qe.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(qe.attributes.fill="black"),qe}!function Xs(qe,Dt){var wt=Dt.mixoutsTo;ao=qe,$r={},Object.keys(Ss).forEach(function(Ft){-1===mi.indexOf(Ft)&&delete Ss[Ft]}),ao.forEach(function(Ft){var ln=Ft.mixout?Ft.mixout():{};if(Object.keys(ln).forEach(function(On){"function"==typeof ln[On]&&(wt[On]=ln[On]),"object"===Ee(ln[On])&&Object.keys(ln[On]).forEach(function(ai){wt[On]||(wt[On]={}),wt[On][ai]=ln[On][ai]})}),Ft.hooks){var An=Ft.hooks();Object.keys(An).forEach(function(On){$r[On]||($r[On]=[]),$r[On].push(An[On])})}Ft.provides&&Ft.provides(Ss)})}([Rt,on,Hn,ni,Mi,{hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.pseudoElementsCallback=gl,wt}}},provides:function(Dt){Dt.pseudoElements2svg=function(wt){var Ft=wt.node;Hi.searchPseudoElements&&gl(void 0===Ft?Y:Ft)}}},{mixout:function(){return{dom:{unwatch:function(){kc(),ec=!0}}}},hooks:function(){return{bootstrap:function(){Lo(ro("mutationObserverCallbacks",{}))},noAuto:function(){!function Dl(){il&&il.disconnect()}()},watch:function(wt){var Ft=wt.observeMutationsRoot;ec?pl():Lo(ro("mutationObserverCallbacks",{observeMutationsRoot:Ft}))}}}},{mixout:function(){return{parse:{transform:function(wt){return ed(wt)}}}},hooks:function(){return{parseNodeAttributes:function(wt,Ft){var ln=Ft.getAttribute("data-fa-transform");return ln&&(wt.transform=ed(ln)),wt}}},provides:function(Dt){Dt.generateAbstractTransformGrouping=function(wt){var Ft=wt.main,ln=wt.transform,On=wt.iconWidth,ai={transform:"translate(".concat(wt.containerWidth/2," 256)")},Mt="translate(".concat(32*ln.x,", ").concat(32*ln.y,") "),zi="scale(".concat(ln.size/16*(ln.flipX?-1:1),", ").concat(ln.size/16*(ln.flipY?-1:1),") "),Wi="rotate(".concat(ln.rotate," 0 0)"),Fa={outer:ai,inner:{transform:"".concat(Mt," ").concat(zi," ").concat(Wi)},path:{transform:"translate(".concat(On/2*-1," -256)")}};return{tag:"g",attributes:$({},Fa.outer),children:[{tag:"g",attributes:$({},Fa.inner),children:[{tag:Ft.icon.tag,children:Ft.icon.children,attributes:$($({},Ft.icon.attributes),Fa.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(wt,Ft){var ln=Ft.getAttribute("data-fa-mask"),An=ln?jo(ln.split(" ").map(function(On){return On.trim()})):{prefix:null,iconName:null,rest:[]};return An.prefix||(An.prefix=za()),wt.mask=An,wt.maskId=Ft.getAttribute("data-fa-mask-id"),wt}}},provides:function(Dt){Dt.generateAbstractMask=function(wt){var qe,Ft=wt.children,ln=wt.attributes,An=wt.main,On=wt.mask,ai=wt.maskId,Wi=An.icon,Ja=On.icon,Fa=function Ws(qe){var Dt=qe.transform,Ft=qe.iconWidth,ln={transform:"translate(".concat(qe.containerWidth/2," 256)")},An="translate(".concat(32*Dt.x,", ").concat(32*Dt.y,") "),On="scale(".concat(Dt.size/16*(Dt.flipX?-1:1),", ").concat(Dt.size/16*(Dt.flipY?-1:1),") "),ai="rotate(".concat(Dt.rotate," 0 0)");return{outer:ln,inner:{transform:"".concat(An," ").concat(On," ").concat(ai)},path:{transform:"translate(".concat(Ft/2*-1," -256)")}}}({transform:wt.transform,containerWidth:On.width,iconWidth:An.width}),Ts={tag:"rect",attributes:$($({},_c),{},{fill:"white"})},_r=Wi.children?{children:Wi.children.map(td)}:{},vr={tag:"g",attributes:$({},Fa.inner),children:[td($({tag:Wi.tag,attributes:$($({},Wi.attributes),Fa.path)},_r))]},yr={tag:"g",attributes:$({},Fa.outer),children:[vr]},Bs="mask-".concat(ai||Yr()),rl="clip-".concat(ai||Yr()),Ys={tag:"mask",attributes:$($({},_c),{},{id:Bs,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Ts,yr]},rc={tag:"defs",children:[{tag:"clipPath",attributes:{id:rl},children:(qe=Ja,"g"===qe.tag?qe.children:[qe])},Ys]};return Ft.push(rc,{tag:"rect",attributes:$({fill:"currentColor","clip-path":"url(#".concat(rl,")"),mask:"url(#".concat(Bs,")")},_c)}),{children:Ft,attributes:ln}}}},{provides:function(Dt){var wt=!1;x.matchMedia&&(wt=x.matchMedia("(prefers-reduced-motion: reduce)").matches),Dt.missingIconAbstract=function(){var Ft=[],ln={fill:"currentColor"},An={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Ft.push({tag:"path",attributes:$($({},ln),{},{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 On=$($({},An),{},{attributeName:"opacity"}),ai={tag:"circle",attributes:$($({},ln),{},{cx:"256",cy:"364",r:"28"}),children:[]};return wt||ai.children.push({tag:"animate",attributes:$($({},An),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:$($({},On),{},{values:"1;0;1;1;0;1;"})}),Ft.push(ai),Ft.push({tag:"path",attributes:$($({},ln),{},{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:$($({},On),{},{values:"1;0;0;0;0;1;"})}]}),wt||Ft.push({tag:"path",attributes:$($({},ln),{},{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:$($({},On),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Ft}}}},{hooks:function(){return{parseNodeAttributes:function(wt,Ft){var ln=Ft.getAttribute("data-fa-symbol");return wt.symbol=null!==ln&&(""===ln||ln),wt}}}}],{mixoutsTo:is});var Ra=is.config,De=is.dom,at=is.parse,gi=is.icon;const Eh=["*"];let nd=(()=>{class qe{defaultPrefix="fas";fallbackIcon=null;fixedWidth;set autoAddCss(wt){Ra.autoAddCss=wt,this._autoAddCss=wt}get autoAddCss(){return this._autoAddCss}_autoAddCss=!0;static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275prov=i.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})(),vc=(()=>{class qe{definitions={};addIcons(...wt){for(const Ft of wt){Ft.prefix in this.definitions||(this.definitions[Ft.prefix]={}),this.definitions[Ft.prefix][Ft.iconName]=Ft;for(const ln of Ft.icon[2])"string"==typeof ln&&(this.definitions[Ft.prefix][ln]=Ft)}}addIconPacks(...wt){for(const Ft of wt){const ln=Object.keys(Ft).map(An=>Ft[An]);this.addIcons(...ln)}}getIconDefinition(wt,Ft){return wt in this.definitions&&Ft in this.definitions[wt]?this.definitions[wt][Ft]:null}static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275prov=i.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();const Ko=qe=>null!=qe&&(90===qe||180===qe||270===qe||"90"===qe||"180"===qe||"270"===qe),J1=qe=>{const Dt=Ko(qe.rotate),wt={[`fa-${qe.animation}`]:null!=qe.animation&&!qe.animation.startsWith("spin"),"fa-spin":"spin"===qe.animation||"spin-reverse"===qe.animation,"fa-spin-pulse":"spin-pulse"===qe.animation||"spin-pulse-reverse"===qe.animation,"fa-spin-reverse":"spin-reverse"===qe.animation||"spin-pulse-reverse"===qe.animation,"fa-pulse":"spin-pulse"===qe.animation||"spin-pulse-reverse"===qe.animation,"fa-fw":qe.fixedWidth,"fa-border":qe.border,"fa-inverse":qe.inverse,"fa-layers-counter":qe.counter,"fa-flip-horizontal":"horizontal"===qe.flip||"both"===qe.flip,"fa-flip-vertical":"vertical"===qe.flip||"both"===qe.flip,[`fa-${qe.size}`]:null!==qe.size,[`fa-rotate-${qe.rotate}`]:Dt,"fa-rotate-by":null!=qe.rotate&&!Dt,[`fa-pull-${qe.pull}`]:null!==qe.pull,[`fa-stack-${qe.stackItemSize}`]:null!=qe.stackItemSize};return Object.keys(wt).map(Ft=>wt[Ft]?Ft:null).filter(Ft=>null!=Ft)},Br=new WeakSet,uo="fa-auto-css";let Il=(()=>{class qe{stackItemSize=(0,p.hFB)("1x");size=(0,p.hFB)();_effect=(0,D.QZ)(()=>{if(this.size())throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')});static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275dir=g.FsC({type:qe,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:[1,"stackItemSize"],size:[1,"size"]}})}return qe})(),yd=(()=>{class qe{size=(0,p.hFB)();classes=(0,D.EW)(()=>{const wt=this.size();return{...wt?{[`fa-${wt}`]:!0}:{},"fa-stack":!0}});static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275cmp=g.VBU({type:qe,selectors:[["fa-stack"]],hostVars:2,hostBindings:function(Ft,ln){2&Ft&&g.HbH(ln.classes())},inputs:{size:[1,"size"]},ngContentSelectors:Eh,decls:1,vars:0,template:function(Ft,ln){1&Ft&&(g.NAR(),g.SdG(0))},encapsulation:2,changeDetection:0})}return qe})(),t1=(()=>{class qe{icon=(0,p.geq)();title=(0,p.geq)();animation=(0,p.geq)();mask=(0,p.geq)();flip=(0,p.geq)();size=(0,p.geq)();pull=(0,p.geq)();border=(0,p.geq)();inverse=(0,p.geq)();symbol=(0,p.geq)();rotate=(0,p.geq)();fixedWidth=(0,p.geq)();transform=(0,p.geq)();a11yRole=(0,p.geq)();renderedIconHTML=(0,D.EW)(()=>{const wt=this.icon()??this.config.fallbackIcon;if(!wt)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})(),"";const Ft=this.findIconDefinition(wt);if(!Ft)return"";const ln=this.buildParams();!function bc(qe,Dt){if(!Dt.autoAddCss||Br.has(qe))return;if(null!=qe.getElementById(uo))return Dt.autoAddCss=!1,void Br.add(qe);const wt=qe.createElement("style");wt.setAttribute("type","text/css"),wt.setAttribute("id",uo),wt.innerHTML=De.css();const Ft=qe.head.childNodes;let ln=null;for(let An=Ft.length-1;An>-1;An--){const On=Ft[An],ai=On.nodeName.toUpperCase();["STYLE","LINK"].indexOf(ai)>-1&&(ln=On)}qe.head.insertBefore(wt,ln),Dt.autoAddCss=!1,Br.add(qe)}(this.document,this.config);const An=gi(Ft,ln);return this.sanitizer.bypassSecurityTrustHtml(An.html.join("\n"))});document=(0,i.WQX)(i.qQL);sanitizer=(0,i.WQX)(o.up);config=(0,i.WQX)(nd);iconLibrary=(0,i.WQX)(vc);stackItem=(0,i.WQX)(Il,{optional:!0});stack=(0,i.WQX)(yd,{optional:!0});constructor(){null!=this.stack&&null==this.stackItem&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}findIconDefinition(wt){const Ft=((qe,Dt)=>(qe=>void 0!==qe.prefix&&void 0!==qe.iconName)(qe)?qe:Array.isArray(qe)&&2===qe.length?{prefix:qe[0],iconName:qe[1]}:{prefix:Dt,iconName:qe})(wt,this.config.defaultPrefix);return"icon"in Ft?Ft:this.iconLibrary.getIconDefinition(Ft.prefix,Ft.iconName)??((qe=>{throw new Error(`Could not find icon with iconName=${qe.iconName} and prefix=${qe.prefix} in the icon library.`)})(Ft),null)}buildParams(){const wt=this.fixedWidth(),Ft={flip:this.flip(),animation:this.animation(),border:this.border(),inverse:this.inverse(),size:this.size(),pull:this.pull(),rotate:this.rotate(),fixedWidth:"boolean"==typeof wt?wt:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize():void 0},ln=this.transform(),An="string"==typeof ln?at.transform(ln):ln,On=this.mask(),ai=null!=On?this.findIconDefinition(On):null,Mt={},zi=this.a11yRole();null!=zi&&(Mt.role=zi);const Wi={};return null!=Ft.rotate&&!Ko(Ft.rotate)&&(Wi["--fa-rotate-angle"]=`${Ft.rotate}`),{title:this.title(),transform:An,classes:J1(Ft),mask:ai??void 0,symbol:this.symbol(),attributes:Mt,styles:Wi}}static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275cmp=g.VBU({type:qe,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Ft,ln){2&Ft&&(g.Avn("innerHTML",ln.renderedIconHTML(),g.npT),g.BMQ("title",ln.title()??void 0))},inputs:{icon:[1,"icon"],title:[1,"title"],animation:[1,"animation"],mask:[1,"mask"],flip:[1,"flip"],size:[1,"size"],pull:[1,"pull"],border:[1,"border"],inverse:[1,"inverse"],symbol:[1,"symbol"],rotate:[1,"rotate"],fixedWidth:[1,"fixedWidth"],transform:[1,"transform"],a11yRole:[1,"a11yRole"]},outputs:{icon:"iconChange",title:"titleChange",animation:"animationChange",mask:"maskChange",flip:"flipChange",size:"sizeChange",pull:"pullChange",border:"borderChange",inverse:"inverseChange",symbol:"symbolChange",rotate:"rotateChange",fixedWidth:"fixedWidthChange",transform:"transformChange",a11yRole:"a11yRoleChange"},decls:0,vars:0,template:function(Ft,ln){},encapsulation:2,changeDetection:0})}return qe})(),A2=(()=>{class qe{static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275mod=g.$C({type:qe});static \u0275inj=i.G2t({})}return qe})()},45383(ke,q,l){"use strict";l.d(q,{$$g:()=>qa,$Fj:()=>E4,$sC:()=>Xb,BA1:()=>zn,C8j:()=>n1,CQO:()=>a2,Ccf:()=>gr,D6w:()=>t8,DW4:()=>Mh,EvL:()=>x,FYJ:()=>We,GR4:()=>ae,GRI:()=>A8,HEq:()=>Pi,If6:()=>en,Int:()=>m6,JKM:()=>od,Kcb:()=>Rp,M29:()=>ub,McB:()=>Nb,Mf0:()=>mc,MjD:()=>vn,Oh6:()=>cx,QLR:()=>Rm,TBz:()=>jb,Tq9:()=>sr,Vpi:()=>F,VwO:()=>w8,W1p:()=>ym,WKo:()=>es,WxX:()=>Yl,Xbc:()=>Vn,_eQ:()=>wo,_qq:()=>E8,aAJ:()=>yo,aFw:()=>P6,cbP:()=>gd,dB:()=>o2,e4L:()=>E6,eGi:()=>Uf,f6_:()=>R4,gdJ:()=>d1,hb3:()=>dc,iW_:()=>xx,iy8:()=>Zo,jPR:()=>oy,jTw:()=>$0,k02:()=>ht,k6j:()=>dg,knH:()=>cf,ld_:()=>Su,njF:()=>qb,nsx:()=>Ub,o97:()=>Oi,pCJ:()=>It,pS3:()=>Te,peG:()=>Np,qFF:()=>Ku,qIE:()=>wx,s5m:()=>U0,vfE:()=>a7,xiI:()=>Vp,ymQ:()=>J,zPk:()=>cd,zjW:()=>S0,zm_:()=>gy,zpE:()=>F_});var F={prefix:"fas",iconName:"dollar-sign",icon:[320,512,[128178,61781,"dollar","usd"],"24","M136 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 56 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-114.9 0c-24.9 0-45.1 20.2-45.1 45.1 0 22.5 16.5 41.5 38.7 44.7l91.6 13.1c53.8 7.7 93.7 53.7 93.7 108 0 60.3-48.9 109.1-109.1 109.1l-10.9 0 0 40c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-40-72 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l130.9 0c24.9 0 45.1-20.2 45.1-45.1 0-22.5-16.5-41.5-38.7-44.7l-91.6-13.1C55.9 273.5 16 227.4 16 173.1 16 112.9 64.9 64 125.1 64l10.9 0 0-40z"]},x={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M64 160c0-53 43-96 96-96s96 43 96 96c0 42.7-27.9 78.9-66.5 91.4-28.4 9.2-61.5 35.3-61.5 76.6l0 24c0 17.7 14.3 32 32 32s32-14.3 32-32l0-24c0-1.7 .6-4.1 3.5-7.3 3-3.3 7.9-6.5 13.7-8.4 64.3-20.7 110.8-81 110.8-152.3 0-88.4-71.6-160-160-160S0 71.6 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm96 352c22.1 0 40-17.9 40-40s-17.9-40-40-40-40 17.9-40 40 17.9 40 40 40z"]},ae={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3l0 294.7 160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-384 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288L584.4 320 512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9zM126.8 195.8L54.4 320 199.3 320 126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9S11.7 382 .9 337.1z"]},We={prefix:"fas",iconName:"indian-rupee-sign",icon:[320,512,["indian-rupee","inr"],"e1bc","M0 64C0 46.3 14.3 32 32 32l264 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-76.7 0c17.7 19.8 30.1 44.6 34.7 72l42 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-42 0c-10.4 62.2-60.8 110.9-123.8 118.9L274.6 422c14.4 10.3 17.7 30.3 7.4 44.6s-30.3 17.7-44.6 7.4L13.4 314C2.1 306-2.7 291.5 1.5 278.2S18.1 256 32 256l80 0c35.8 0 66.1-23.5 76.3-56L24 200c-13.3 0-24-10.7-24-24s10.7-24 24-24l164.3 0c-10.2-32.5-40.5-56-76.3-56L32 96C14.3 96 0 81.7 0 64z"]},It={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M286 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L78 512c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3l59.4 0zM585.7 105.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L522.1 274.9c-4.2 5.7-10.7 9.4-17.7 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7zM256.3 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},en={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[448,512,[],"e4c1","M265.4-6.6c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L285.3 64 352 64c53 0 96 43 96 96l0 32c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-32c0-17.7-14.3-32-32-32l-66.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-80zm-82.7 272l80 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.3L162.7 400 96 400c-17.7 0-32 14.3-32 32l0 32c0 17.7-14.3 32-32 32S0 481.7 0 464l0-32c0-53 43-96 96-96l66.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM320 368a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM64 160a64 64 0 1 1 0-128 64 64 0 1 1 0 128z"]},zn={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64L72 128c-13.3 0-24-10.7-24-24S58.7 80 72 80l384 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L64 32zM416 256a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},ht={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"]},Oi={prefix:"fas",iconName:"bars-staggered",icon:[512,512,["reorder","stream"],"f550","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},es={prefix:"fas",iconName:"percent",icon:[448,512,[62101,62785,"percentage"],"25","M192 128a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM448 384a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM438.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-384 384c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l384-384z"]},vn={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 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Vn={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm80-24c0 32.8-19.7 61-48 73.3l0 70.7 176 0c26.5 0 48-21.5 48-48l0-22.7c-28.3-12.3-48-40.5-48-73.3 0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3l0 22.7c0 61.9-50.1 112-112 112l-176 0 0 70.7c28.3 12.3 48 40.5 48 73.3 0 44.2-35.8 80-80 80S0 476.2 0 432c0-32.8 19.7-61 48-73.3l0-205.3C19.7 141 0 112.8 0 80 0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM80 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},wo={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M480.5 10.3L259.1 158c-29.1 19.4-47.6 50.9-50.6 85.3 62.3 12.8 111.4 61.9 124.3 124.3 34.5-3 65.9-21.5 85.3-50.6L565.7 95.5c6.7-10.1 10.3-21.9 10.3-34.1 0-33.9-27.5-61.4-61.4-61.4-12.1 0-24 3.6-34.1 10.3zM288 400c0-61.9-50.1-112-112-112S64 338.1 64 400c0 3.9 .2 7.8 .6 11.6 1.8 17.5-10.2 36.4-27.8 36.4L32 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0c61.9 0 112-50.1 112-112z"]},Te={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},mc={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.6S384 14.6 384 24l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6l-40.4-34.6-40.4 34.6c-9 7.7-22.2 7.7-31.2 0l-40.4-34.6-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 488L0 24C0 14.6 5.5 6.1 14 2.2zM104 136c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0zM80 352c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24-120c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"]},Pi={prefix:"fas",iconName:"unlock-keyhole",icon:[384,512,["unlock-alt"],"f13e","M192 32c-35.3 0-64 28.7-64 64l0 64 192 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l0-64c0-70.7 57.3-128 128-128 63.5 0 116.1 46.1 126.2 106.7 2.9 17.4-8.8 33.9-26.3 36.9s-33.9-8.8-36.9-26.3C250 55.1 223.7 32 192 32zm40 328c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0z"]},n1={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 256c0-88.4 71.6-160 160-160 50.4 0 97.8 23.7 128 64l32 42.7 32-42.7c30.2-40.3 77.6-64 128-64 88.4 0 160 71.6 160 160S568.4 416 480 416c-50.4 0-97.8-23.7-128-64l-32-42.7-32 42.7c-30.2 40.3-77.6 64-128 64-88.4 0-160-71.6-160-160zm280 0l-43.2-57.6c-18.1-24.2-46.6-38.4-76.8-38.4-53 0-96 43-96 96s43 96 96 96c30.2 0 58.7-14.2 76.8-38.4L280 256zm80 0l43.2 57.6c18.1 24.2 46.6 38.4 76.8 38.4 53 0 96-43 96-96s-43-96-96-96c-30.2 0-58.7 14.2-76.8 38.4L360 256z"]},d1={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},qa={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M404 0c19.2 0 37.6 7.6 51.1 21.2l35.7 35.7C504.4 70.4 512 88.8 512 108s-7.6 37.6-21.2 51.1L445.9 204 308 66.1 352.9 21.2C366.4 7.6 384.8 0 404 0zM58.9 315.1L274.1 100 412 237.9 196.9 453.1c-10.7 10.7-24.1 18.5-38.7 22.6L30.4 511.1c-8.3 2.3-17.3 0-23.4-6.2s-8.5-15.1-6.2-23.4L36.4 353.8c4.1-14.6 11.8-27.9 22.6-38.7zM225.4 80.8L80.8 225.4 11.7 156.3c-15.6-15.6-15.6-40.9 0-56.6l88-88c15.6-15.6 40.9-15.6 56.6 0l5.9 5.9-56.3 56.3c-7.8 7.8-7.8 20.5 0 28.3s20.5 7.8 28.3 0l56.3-56.3 34.9 34.9zM431.2 286.6l34.9 34.9-56.3 56.3c-7.8 7.8-7.8 20.5 0 28.3s20.5 7.8 28.3 0l56.3-56.3 5.9 5.9c15.6 15.6 15.6 40.9 0 56.6l-88 88c-15.6 15.6-40.9 15.6-56.6 0l-69.1-69.1 144.6-144.6z"]},od={prefix:"fas",iconName:"won-sign",icon:[512,512,[8361,"krw","won"],"f159","M62.4 53.9C56.8 37.1 38.7 28.1 21.9 33.6S-3.9 57.4 1.7 74.1L56.9 240 32 240c-13.3 0-24 10.7-24 24s10.7 24 24 24l40.9 0 56.7 170.1c4.5 13.5 17.4 22.4 31.6 21.9s26.4-10.4 29.8-24.2L233 288 279 288 321 455.8c3.4 13.8 15.6 23.7 29.8 24.2s27.1-8.4 31.6-21.9L439.1 288 480 288c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24.9 0 55.3-165.9c5.6-16.8-3.5-34.9-20.2-40.5s-34.9 3.5-40.5 20.2l-62 186.1-54.6 0-45.9-183.8C283.5 42 270.7 32 256 32s-27.5 10-31 24.2L179 240 124.4 240 62.4 53.9zm78 234.1l26.6 0-11.4 45.6-15.2-45.6zM245 240l11-44.1 11 44.1-22 0zm100 48l26.6 0-15.2 45.6-11.4-45.6z"]},S0={prefix:"fas",iconName:"franc-sign",icon:[320,512,[],"e18f","M80 32C62.3 32 48 46.3 48 64l0 256-24 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 80c0 17.7 14.3 32 32 32s32-14.3 32-32l0-80 88 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-88 0 0-64 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-96 176 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},cf={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M256.4 0c-17.7 0-32 14.3-32 32l0 32-160 0c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l160 0 0 64-153.4 0c-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.7l153.4 0 0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96 160 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-160 0 0-64 153.4 0c4.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.7l-153.4 0 0-32c0-17.7-14.3-32-32-32z"]},dc={prefix:"fas",iconName:"turkish-lira-sign",icon:[448,512,["try","turkish-lira"],"e2bb","M160 32c17.7 0 32 14.3 32 32l0 43.6 121.4-34.7c12.7-3.6 26 3.7 29.7 16.5s-3.7 26-16.5 29.7l-134.6 38.5 0 46.1 121.4-34.7c12.7-3.6 26 3.7 29.7 16.5s-3.7 26-16.5 29.7l-134.6 38.5 0 162.5 72 0c53 0 96-43 96-96 0-17.7 14.3-32 32-32s32 14.3 32 32c0 88.4-71.6 160-160 160l-104 0c-17.7 0-32-14.3-32-32l0-176.2-25.4 7.3c-12.7 3.6-26-3.7-29.7-16.5s3.7-26 16.5-29.7l38.6-11 0-46.1-25.4 7.3c-12.7 3.6-26-3.7-29.7-16.5s3.7-26 16.5-29.7l38.6-11 0-61.9c0-17.7 14.3-32 32-32z"]},Su={prefix:"fas",iconName:"user-clock",icon:[576,512,[],"f4fd","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c3.9 0 7.9 .1 11.8 .4-16.2 28.2-25.5 60.8-25.5 95.6 0 41.8 13.4 80.5 36 112L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zM288 400a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},U0={prefix:"fas",iconName:"euro-sign",icon:[448,512,[8364,"eur","euro"],"f153","M73.3 192C100.8 99.5 186.5 32 288 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-65.6 0-122 39.5-146.7 96L272 192c13.3 0 24 10.7 24 24s-10.7 24-24 24l-143.2 0c-.5 5.3-.8 10.6-.8 16s.3 10.7 .8 16L272 272c13.3 0 24 10.7 24 24s-10.7 24-24 24l-130.7 0c24.7 56.5 81.1 96 146.7 96l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-101.5 0-187.2-67.5-214.7-160L40 320c-13.3 0-24-10.7-24-24s10.7-24 24-24l24.6 0c-.7-10.5-.7-21.5 0-32L40 240c-13.3 0-24-10.7-24-24s10.7-24 24-24l33.3 0z"]},cd={prefix:"fas",iconName:"yen-sign",icon:[384,512,[165,"cny","jpy","rmb","yen"],"f157","M74.9 46.7c-9.6-14.9-29.4-19.2-44.2-9.6S11.5 66.4 21.1 81.3L143.7 272 88 272c-13.3 0-24 10.7-24 24s10.7 24 24 24l72 0 0 32-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l72 0 0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48 72 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0 0-32 72 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-55.7 0 122.6-190.7c9.6-14.9 5.3-34.7-9.6-44.2s-34.7-5.3-44.2 9.6L192 228.8 74.9 46.7z"]},Yl={prefix:"fas",iconName:"angles-down",icon:[384,512,["angle-double-down"],"f103","M214.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 0L192 402.7 329.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 0L192 210.7 329.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},Uf={prefix:"fas",iconName:"network-wired",icon:[576,512,[],"f6ff","M248 88l80 0 0 48-80 0 0-48zm-8-56c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l16 0 0 32-224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-16 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-16 0 0-32 192 0 0 32-16 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-16 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-224 0 0-32 16 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-96 0zM448 376l8 0 0 48-80 0 0-48 72 0zm-256 0l8 0 0 48-80 0 0-48 72 0z"]},$0={prefix:"fas",iconName:"code",icon:[576,512,[],"f121","M360.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.6zm64.6 136.1c-12.5 12.5-12.5 32.8 0 45.3l73.4 73.4-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.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 0zm-274.7 0c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 150.6 182.6c12.5-12.5 12.5-32.8 0-45.3z"]},Ku={prefix:"fas",iconName:"diagram-project",icon:[512,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z"]},J={prefix:"fas",iconName:"money-bill-wave",icon:[512,512,[],"f53a","M0 419.6L0 109.5c0-23.2 24.1-38.6 46.3-32 87.7 26.2 149.7 5.5 212.1-15.3 64.5-21.5 129.4-43.1 223.3-13.1 18.5 5.9 30.3 23.8 30.3 43.3l0 310.1c0 23.2-24.1 38.6-46.2 32-87.7-26.2-149.8-5.5-212.1 15.3-64.5 21.5-129.4 43.1-223.3 13.1-18.5-5.9-30.3-23.8-30.3-43.3zM336 256c0-53-35.8-96-80-96s-80 43-80 96 35.8 96 80 96 80-43 80-96zM120 413.6c4.4 0 7.9-3.8 7.2-8.1-4.6-27.8-27-49.5-55.2-53-4.4-.5-8 3.1-8 7.5l0 39.9c0 3.6 2.4 6.8 6 7.7 17.9 4.2 34.3 6.1 50 6.1zm318.5-51.1c5 .8 9.5-3 9.5-8l0-42.6c0-4.4-3.6-8.1-8-7.5-25.2 3.1-45.9 20.9-53.2 44.6-1.4 4.7 2.3 9.1 7.2 9.2 14.2 .4 29 1.7 44.4 4.3zM448 152l0-39.9c0-3.6-2.5-6.8-6-7.7-17.9-4.2-34.3-6.1-50-6.1-4.4 0-7.9 3.8-7.2 8.1 4.6 27.8 27 49.5 55.2 53 4.4 .5 8-3.1 8-7.5zM125.2 162.9c1.4-4.7-2.3-9.1-7.2-9.2-14.2-.4-29-1.7-44.4-4.3-5-.8-9.5 3-9.5 8L64 200c0 4.4 3.6 8.1 8 7.5 25.2-3.1 45.9-20.9 53.2-44.6z"]},sr={prefix:"fas",iconName:"brazilian-real-sign",icon:[512,512,[],"e46c","M400 16c17.7 0 32 14.3 32 32l0 16 16 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-48.9 0c-26 0-47.1 21.1-47.1 47.1 0 22.5 15.9 41.8 37.9 46.2l32.8 6.6c51.9 10.4 89.3 56 89.3 109 0 50.6-33.8 93.3-80 106.7l0 20.4c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-16-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.9 0c26 0 47.1-21.1 47.1-47.1 0-22.5-15.9-41.8-37.9-46.2l-32.8-6.6c-51.9-10.4-89.3-56-89.3-109 0-50.6 33.8-93.2 80-106.7L368 48c0-17.7 14.3-32 32-32zM0 64C0 46.3 14.3 32 32 32l80 0c79.5 0 144 64.5 144 144 0 54.3-30 101.5-74.4 126.1l41 136.7c5.1 16.9-4.5 34.8-21.5 39.8s-34.8-4.5-39.8-21.5L120.1 319.8c-2.7 .1-5.4 .2-8.1 .2l-48 0 0 128c0 17.7-14.3 32-32 32S0 465.7 0 448L0 64zM64 256l48 0c44.2 0 80-35.8 80-80s-35.8-80-80-80l-48 0 0 160z"]},a2={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},o2={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z"]},yo={prefix:"fas",iconName:"user-lock",icon:[576,512,[],"f502","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c29.7 0 57.7 7.3 82.3 20.1l0 4.3c-19.6 17.6-32 43.1-32 71.5l0 96c0 5.5 .5 10.9 1.3 16.1L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zm301.7 .1c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 47.9 64 0 0-47.9zM352 400c0-20.9 13.4-38.7 32-45.3l0-50.6c0-44.2 35.8-80 80-80s80 35.8 80 80l0 50.6c18.6 6.6 32 24.4 32 45.3l0 96c0 26.5-21.5 48-48 48l-128 0c-26.5 0-48-21.5-48-48l0-96z"]},E4={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 64c0-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 80l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 112l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Rp={prefix:"fas",iconName:"baht-sign",icon:[320,512,[],"e0ac","M136 0c-13.3 0-24 10.7-24 24l0 40-74.4 0C16.8 64 0 80.8 0 101.6L0 406.3c0 23 18.7 41.7 41.7 41.7l70.3 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 48 0c61.9 0 112-50.1 112-112 0-40.1-21.1-75.3-52.7-95.1 13.1-18.3 20.7-40.7 20.7-64.9 0-61.9-50.1-112-112-112l-16 0 0-40c0-13.3-10.7-24-24-24zM112 128l0 96-48 0 0-96 48 0zm48 96l0-96 16 0c26.5 0 48 21.5 48 48s-21.5 48-48 48l-16 0zm-48 64l0 96-48 0 0-96 48 0zm48 96l0-96 48 0c26.5 0 48 21.5 48 48s-21.5 48-48 48l-48 0z"]},t8={prefix:"fas",iconName:"server",icon:[448,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Np={prefix:"fas",iconName:"arrows-turn-right",icon:[448,512,[],"e4c0","M313.4-6.6c12.5-12.5 32.8-12.5 45.3 0l80 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.3L338.7 128 128 128c-35.3 0-64 28.7-64 64l0 32c0 17.7-14.3 32-32 32S0 241.7 0 224l0-32C0 121.3 57.3 64 128 64l210.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l80 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 384 96 384c-17.7 0-32 14.3-32 32l0 32c0 17.7-14.3 32-32 32S0 465.7 0 448l0-32c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3z"]},Vp={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64 0-16.2-6-31.1-16-42.3l69.5-138.9c5.9-11.9 1.1-26.3-10.7-32.2s-26.3-1.1-32.2 10.7L261.1 288.2c-1.7-.1-3.4-.2-5.1-.2-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},E8={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M502.6 150.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9S352 236.9 352 224l0-64-320 0c-17.7 0-32-14.3-32-32S14.3 96 32 96l320 0 0-64c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c12.5 12.5 12.5 32.8 0 45.3zm-397.3 352l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c9.2-9.2 22.9-11.9 34.9-6.9S160 275.1 160 288l0 64 320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-320 0 0 64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9z"]},w8={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M96 112c0-26.5 21.5-48 48-48s48 21.5 48 48l0 112 256 0 0-112c0-26.5 21.5-48 48-48s48 21.5 48 48l0 16 16 0c26.5 0 48 21.5 48 48l0 48c17.7 0 32 14.3 32 32s-14.3 32-32 32l0 48c0 26.5-21.5 48-48 48l-16 0 0 16c0 26.5-21.5 48-48 48s-48-21.5-48-48l0-112-256 0 0 112c0 26.5-21.5 48-48 48s-48-21.5-48-48l0-16-16 0c-26.5 0-48-21.5-48-48l0-48c-17.7 0-32-14.3-32-32s14.3-32 32-32l0-48c0-26.5 21.5-48 48-48l16 0 0-16z"]},A8={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},R4={prefix:"fas",iconName:"ruble-sign",icon:[448,512,[8381,"rouble","rub","ruble"],"f158","M112 32C94.3 32 80 46.3 80 64l0 208-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 48-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 32c0 17.7 14.3 32 32 32s32-14.3 32-32l0-32 152 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-152 0 0-48 112 0c79.5 0 144-64.5 144-144S335.5 32 256 32L112 32zM256 256l-112 0 0-160 112 0c44.2 0 80 35.8 80 80s-35.8 80-80 80z"]},m6={prefix:"fas",iconName:"clock-rotate-left",icon:[576,512,["history"],"f1da","M288 64c106 0 192 86 192 192S394 448 288 448c-65.2 0-122.9-32.5-157.6-82.3-10.1-14.5-30.1-18-44.6-7.9s-18 30.1-7.9 44.6C124.1 468.6 201 512 288 512 429.4 512 544 397.4 544 256S429.4 0 288 0C202.3 0 126.5 42.1 80 106.7L80 80c0-17.7-14.3-32-32-32S16 62.3 16 80l0 112c0 17.7 14.3 32 32 32l24.6 0c.5 0 1 0 1.5 0l86 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-38.3 0C154.9 102.6 217 64 288 64zm24 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 104c0 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-65 0-94.1z"]},ym={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M512.4 240l-176 0c-17.7 0-32-14.3-32-32l0-176c0-17.7 14.4-32.2 31.9-29.9 107 14.2 191.8 99 206 206 2.3 17.5-12.2 31.9-29.9 31.9zM222.6 37.2c18.1-3.8 33.8 11 33.8 29.5l0 197.3c0 5.6 2 11 5.5 15.3L394 438.7c11.7 14.1 9.2 35.4-6.9 44.1-34.1 18.6-73.2 29.2-114.7 29.2-132.5 0-240-107.5-240-240 0-115.5 81.5-211.9 190.2-234.8zM477.8 288l64 0c18.5 0 33.3 15.7 29.5 33.8-10.2 48.4-35 91.4-69.6 124.2-12.3 11.7-31.6 9.2-42.4-3.9L374.9 340.4c-17.3-20.9-2.4-52.4 24.6-52.4l78.2 0z"]},E6={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M461.2 18.9C472.7 24 480 35.4 480 48l0 416c0 12.6-7.3 24-18.8 29.1s-24.8 3.2-34.3-5.1l-46.6-40.7c-43.6-38.1-98.7-60.3-156.4-63l0 95.7c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-96C57.3 384 0 326.7 0 256S57.3 128 128 128l84.5 0c61.8-.2 121.4-22.7 167.9-63.3l46.6-40.7c9.4-8.3 22.9-10.2 34.3-5.1zM224 320l0 .2c70.3 2.7 137.8 28.5 192 73.4l0-275.3c-54.2 44.9-121.7 70.7-192 73.4L224 320z"]},F_={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},Mh={prefix:"fas",iconName:"lock",icon:[384,512,[128274],"f023","M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]},P6={prefix:"fas",iconName:"window-restore",icon:[576,512,[],"f2d2","M512 96L160 96c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-64 48 0 0-192zM0 224c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224zm64 40c0 13.3 10.7 24 24 24l240 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L88 240c-13.3 0-24 10.7-24 24z"]},gd={prefix:"fas",iconName:"download",icon:[448,512,[],"f019","M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},Rm={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},oy={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z"]},gr={prefix:"fas",iconName:"money-bill-1",icon:[512,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm192 80a112 112 0 1 1 0 224 112 112 0 1 1 0-224zM64 184l0-48c0-4.4 3.6-8 8-8l48 0c4.4 0 8.1 3.6 7.5 8-3.6 29-26.6 51.9-55.5 55.5-4.4 .5-8-3.1-8-7.5zm0 144c0-4.4 3.6-8.1 8-7.5 29 3.6 51.9 26.6 55.5 55.5 .5 4.4-3.1 8-7.5 8l-48 0c-4.4 0-8-3.6-8-8l0-48zM440 191.5c-29-3.6-51.9-26.6-55.5-55.5-.5-4.4 3.1-8 7.5-8l48 0c4.4 0 8 3.6 8 8l0 48c0 4.4-3.6 8.1-8 7.5zM448 328l0 48c0 4.4-3.6 8-8 8l-48 0c-4.4 0-8.1-3.6-7.5-8 3.6-29 26.6-51.9 55.5-55.5 4.4-.5 8 3.1 8 7.5zM240 188c-11 0-20 9-20 20 0 9.7 6.9 17.7 16 19.6l0 48.4-4 0c-11 0-20 9-20 20s9 20 20 20l48 0c11 0 20-9 20-20s-9-20-20-20l-4 0 0-68c0-11-9-20-20-20l-16 0z"]},Zo=gr,dg={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},gy={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M338.8-9.9c11.9 8.6 16.3 24.2 10.9 37.8L271.3 224 416 224c13.5 0 25.5 8.4 30.1 21.1s.7 26.9-9.6 35.5l-288 240c-11.3 9.4-27.4 9.9-39.3 1.3s-16.3-24.2-10.9-37.8L176.7 288 32 288c-13.5 0-25.5-8.4-30.1-21.1s-.7-26.9 9.6-35.5l288-240c11.3-9.4 27.4-9.9 39.3-1.3z"]},ub={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7S-2.3 28 4.2 37.6l112 163.3-99.6 32.3C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4-52.9 100.6c-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.1l-52.9-100.6 103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8l-106.5-34.5 25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7-34.5-106.5C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6L200.9 116.2 37.6 4.2z"]},Nb={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M256.5 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM226.7 304l59.4 0 1.5 0c-12.9 26.8-7.8 58.2 11.5 79.5-20.2 22.3-24.8 55.8-9.4 83.4l22.5 40.4c.9 1.6 1.9 3.2 2.9 4.7l-237 0c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3zm205.9-56.4c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 6.1c0 18.9 24.1 32.8 40.5 23.4l5-2.9c11.6-6.7 26.5-2.6 33 9.1l22.4 40.2c6.2 11.2 2.6 25.2-8.2 32l-4.7 2.9c-16.2 10.1-16.2 39.9 0 50.1l4.6 2.9c10.8 6.8 14.5 20.8 8.3 32L607 483.8c-6.5 11.7-21.4 15.9-33 9.1l-4.9-2.9c-16.4-9.5-40.5 4.5-40.5 23.4l0 6.1c0 13.3-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24l0-5.9c0-19-24.2-33-40.7-23.5l-4.8 2.8c-11.6 6.7-26.4 2.6-33-9.1l-22.6-40.4c-6.2-11.2-2.6-25.3 8.3-32.1l4.4-2.7c16.3-10.1 16.3-40.1 0-50.2l-4.5-2.8c-10.9-6.8-14.5-20.9-8.3-32.1l22.5-40.3c6.5-11.7 21.4-15.8 32.9-9.1l4.8 2.8c16.5 9.5 40.7-4.5 40.7-23.5l0-5.9zm99.9 136.2a52 52 0 1 0 -104 0 52 52 0 1 0 104 0z"]},Ub={prefix:"fas",iconName:"screwdriver-wrench",icon:[576,512,["tools"],"f7d9","M70.8-6.7c5.4-5.4 13.8-6.2 20.2-2L209.9 70.5c8.9 5.9 14.2 15.9 14.2 26.6l0 49.6 90.8 90.8c33.3-15 73.9-8.9 101.2 18.5L542.2 382.1c18.7 18.7 18.7 49.1 0 67.9l-60.1 60.1c-18.7 18.7-49.1 18.7-67.9 0L288.1 384c-27.4-27.4-33.5-67.9-18.5-101.2l-90.8-90.8-49.6 0c-10.7 0-20.7-5.3-26.6-14.2L23.4 58.9c-4.2-6.3-3.4-14.8 2-20.2L70.8-6.7zm145 303.5c-6.3 36.9 2.3 75.9 26.2 107.2l-94.9 95c-28.1 28.1-73.7 28.1-101.8 0s-28.1-73.7 0-101.8l135.4-135.5 35.2 35.1zM384.1 0c20.1 0 39.4 3.7 57.1 10.5 10 3.8 11.8 16.5 4.3 24.1L388.8 91.3c-3 3-4.7 7.1-4.7 11.3l0 41.4c0 8.8 7.2 16 16 16l41.4 0c4.2 0 8.3-1.7 11.3-4.7l56.7-56.7c7.6-7.5 20.3-5.7 24.1 4.3 6.8 17.7 10.5 37 10.5 57.1 0 43.2-17.2 82.3-45 111.1l-49.1-49.1c-33.1-33-78.5-45.7-121.1-38.4l-56.8-56.8 0-29.7-.2-5c-.8-12.4-4.4-24.3-10.5-34.9 29.4-35 73.4-57.2 122.7-57.3z"]},jb={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Xb={prefix:"fas",iconName:"angles-up",icon:[384,512,["angle-double-up"],"f102","M214.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 0L192 109.3 329.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 0L192 301.3 329.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},qb={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 320L48 320c-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-48l352 0c26.5 0 48 21.5 48 48s-21.5 48-48 48L48 480c-26.5 0-48-21.5-48-48z"]},cx={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M0 64C0 46.3 14.3 32 32 32l448 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96L0 64zM32 176l448 0 0 240c0 35.3-28.7 64-64 64L96 480c-35.3 0-64-28.7-64-64l0-240zm152 64c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]},a7={prefix:"fas",iconName:"sterling-sign",icon:[384,512,[163,"gbp","pound-sign"],"f154","M91.3 288l-34.8 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l21.4 0C37.3 147.3 105.1 42 207.6 42l8.2 0c33.6 0 66.2 11.3 92.5 32.2l16.1 12.7c13.9 11 16.2 31.1 5.2 45s-31.1 16.2-45 5.2l-16.1-12.7c-15-11.9-33.6-18.4-52.8-18.4l-8.2 0c-57.3 0-94.7 59.9-69.7 111.4 3.6 7.4 6.6 14.9 9.1 22.6l149.5 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-141.2 0c1 35.3-8.7 70.6-28.9 100.9l-18.1 27.1 212.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-272 0c-11.8 0-22.6-6.5-28.2-16.9s-5-23 1.6-32.9l51.2-76.8c13.1-19.6 19.2-42.6 18.2-65.4z"]},xx={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},wx={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M232.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 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.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 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.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 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z"]}},11747(ke,q,l){"use strict";l.d(q,{En:()=>Re,Vm:()=>Pe,EH:()=>C,gp:()=>Me});var i=l(57786),g=l(71985),p=l(21413),D=l(73557),o=l(983),e=l(7673),A=l(18810),h=l(98071);class w{constructor(Ne,ze,Je){this.kind=Ne,this.value=ze,this.error=Je,this.hasValue="N"===Ne}observe(Ne){return f(this,Ne)}do(Ne,ze,Je){const{kind:gt,value:zt,error:Ye}=this;return"N"===gt?Ne?.(zt):"E"===gt?ze?.(Ye):Je?.()}accept(Ne,ze,Je){var gt;return(0,h.T)(null===(gt=Ne)||void 0===gt?void 0:gt.next)?this.observe(Ne):this.do(Ne,ze,Je)}toObservable(){const{kind:Ne,value:ze,error:Je}=this,gt="N"===Ne?(0,e.of)(ze):"E"===Ne?(0,A.$)(()=>Je):"C"===Ne?o.w:0;if(!gt)throw new TypeError(`Unexpected notification kind ${Ne}`);return gt}static createNext(Ne){return new w("N",Ne)}static createError(Ne){return new w("E",void 0,Ne)}static createComplete(){return w.completeNotification}}function f(le,Ne){var ze,Je,gt;const{kind:zt,value:Ye,error:st}=le;if("string"!=typeof zt)throw new TypeError('Invalid notification, missing "kind"');"N"===zt?null===(ze=Ne.next)||void 0===ze||ze.call(Ne,Ye):"E"===zt?null===(Je=Ne.error)||void 0===Je||Je.call(Ne,st):null===(gt=Ne.complete)||void 0===gt||gt.call(Ne)}w.completeNotification=new w("C");var F=l(39974),M=l(54360),j=l(96354),Z=l(99437),ee=l(5964),V=l(58750);function Q(le,Ne,ze,Je){return(0,F.N)((gt,zt)=>{let Ye;Ne&&"function"!=typeof Ne?({duration:ze,element:Ye,connector:Je}=Ne):Ye=Ne;const st=new Map,it=St=>{st.forEach(St),St(zt)},He=St=>it(At=>At.error(St));let Wt=0,we=!1;const We=new M.H(zt,St=>{try{const At=le(St);let fn=st.get(At);if(!fn){st.set(At,fn=Je?Je():new p.B);const mt=function Lt(St,At){const fn=new g.c(mt=>{Wt++;const It=At.subscribe(mt);return()=>{It.unsubscribe(),0===--Wt&&we&&We.unsubscribe()}});return fn.key=St,fn}(At,fn);if(zt.next(mt),ze){const It=(0,M._)(fn,()=>{fn.complete(),It?.unsubscribe()},void 0,void 0,()=>st.delete(At));We.add((0,V.Tg)(ze(mt)).subscribe(It))}}fn.next(Ye?Ye(St):St)}catch(At){He(At)}},()=>it(St=>St.complete()),He,()=>st.clear(),()=>(we=!0,0===Wt));gt.subscribe(We)})}var $=l(31397);function ie(le,Ne){return Ne?ze=>ze.pipe(ie((Je,gt)=>(0,V.Tg)(le(Je,gt)).pipe((0,j.T)((zt,Ye)=>Ne(Je,zt,gt,Ye))))):(0,F.N)((ze,Je)=>{let gt=0,zt=null,Ye=!1;ze.subscribe((0,M._)(Je,st=>{zt||(zt=(0,M._)(Je,void 0,()=>{zt=null,Ye&&Je.complete()}),(0,V.Tg)(le(st,gt++)).subscribe(zt))},()=>{Ye=!0,!zt&&Je.complete()}))})}var ye=l(96697),se=l(2615),pe=l(73664),Ee=l(59640);const T={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},P="__@ngrx/effects_create__";function C(le,Ne={}){const ze=Ne.functional?le:le(),Je={...T,...Ne};return Object.defineProperty(ze,P,{value:Je}),ze}function R(le){return Object.getPrototypeOf(le)}function fe(le){return"function"==typeof le}function re(le){return le.filter(fe)}function Oe(le,Ne,ze){const Je=R(le),zt=Je&&"Object"!==Je.constructor.name?Je.constructor.name:null,Ye=function Y(le){return function a(le){return Object.getOwnPropertyNames(le).filter(Je=>!(!le[Je]||!le[Je].hasOwnProperty(P))&&le[Je][P].hasOwnProperty("dispatch")).map(Je=>({propertyName:Je,...le[Je][P]}))}(le)}(le).map(({propertyName:st,dispatch:it,useEffectsErrorHandler:He})=>{const Wt="function"==typeof le[st]?le[st]():le[st],we=He?ze(Wt,Ne):Wt;return!1===it?we.pipe((0,D.w)()):we.pipe(function K(){return(0,F.N)((le,Ne)=>{le.subscribe((0,M._)(Ne,ze=>{Ne.next(w.createNext(ze))},()=>{Ne.next(w.createComplete()),Ne.complete()},ze=>{Ne.next(w.createError(ze)),Ne.complete()}))})}()).pipe((0,j.T)(Lt=>({effect:le[st],notification:Lt,propertyName:st,sourceName:zt,sourceInstance:le})))});return(0,i.h)(...Ye)}function ce(le,Ne,ze=10){return le.pipe((0,Z.W)(Je=>(Ne&&Ne.handleError(Je),ze<=1?le:ce(le,Ne,ze-1))))}let Re=(()=>{var le;class Ne extends g.c{constructor(Je){super(),Je&&(this.source=Je)}lift(Je){const gt=new Ne;return gt.source=this,gt.operator=Je,gt}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(Ee.sA))},this.\u0275prov=se.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}))}return le(),Ne})();function Me(...le){return(0,ee.p)(Ne=>le.some(ze=>"string"==typeof ze?ze===Ne.type:ze.type===Ne.type))}const ve=new se.nKC("@ngrx/effects Internal Root Guard"),oe=new se.nKC("@ngrx/effects User Provided Effects"),Se=new se.nKC("@ngrx/effects Internal Root Effects"),be=new se.nKC("@ngrx/effects Internal Root Effects Instances"),nt=new se.nKC("@ngrx/effects Internal Feature Effects"),$e=new se.nKC("@ngrx/effects Internal Feature Effects Instance Groups"),dt=new se.nKC("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>ce}),yt="@ngrx/effects/init";function et(le){return tn(le,"ngrxOnInitEffects")}function tn(le,Ne){return le&&Ne in le&&"function"==typeof le[Ne]}(0,Ee.VP)(yt);let Vt=(()=>{var le;class Ne extends p.B{constructor(Je,gt){super(),this.errorHandler=Je,this.effectsErrorHandler=gt}addEffects(Je){this.next(Je)}toActions(){return this.pipe(Q(Je=>function U(le){return!!le.constructor&&"Object"!==le.constructor.name&&"Function"!==le.constructor.name}(Je)?R(Je):Je),(0,$.Z)(Je=>Je.pipe(Q(hn))),(0,$.Z)(Je=>{const gt=Je.pipe(ie(Ye=>function En(le,Ne){return ze=>{const Je=Oe(ze,le,Ne);return function me(le){return tn(le,"ngrxOnRunEffects")}(ze)?ze.ngrxOnRunEffects(Je):Je}}(this.errorHandler,this.effectsErrorHandler)(Ye)),(0,j.T)(Ye=>(function rt(le,Ne){if("N"===le.notification.kind){const ze=le.notification.value;!function Mn(le){return"function"!=typeof le&&le&&le.type&&"string"==typeof le.type}(ze)&&Ne.handleError(new Error(`Effect ${function qt({propertyName:le,sourceInstance:Ne,sourceName:ze}){const Je="function"==typeof Ne[le];return ze?`"${ze}.${String(le)}${Je?"()":""}"`:`"${String(le)}()"`}(le)} dispatched an invalid action: ${function S(le){try{return JSON.stringify(le)}catch{return le}}(ze)}`))}}(Ye,this.errorHandler),Ye.notification)),(0,ee.p)(Ye=>"N"===Ye.kind&&null!=Ye.value),function _e(){return(0,F.N)((le,Ne)=>{le.subscribe((0,M._)(Ne,ze=>f(ze,Ne)))})}()),zt=Je.pipe((0,ye.s)(1),(0,ee.p)(et),(0,j.T)(Ye=>Ye.ngrxOnInitEffects()));return(0,i.h)(gt,zt)}))}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(se.zcH),se.KVO(dt))},this.\u0275prov=se.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}))}return le(),Ne})();function hn(le){return function de(le){return tn(le,"ngrxOnIdentifyEffects")}(le)?le.ngrxOnIdentifyEffects():""}let _n=(()=>{var le;class Ne{get isStarted(){return!!this.effectsSubscription}constructor(Je,gt){this.effectSources=Je,this.store=gt,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(Vt),se.KVO(Ee.il))},this.\u0275prov=se.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}))}return le(),Ne})(),tt=(()=>{var le;class Ne{constructor(Je,gt,zt,Ye,st,it,He){this.sources=Je,gt.start();for(const Wt of Ye)Je.addEffects(Wt);zt.dispatch({type:yt})}addEffects(Je){this.sources.addEffects(Je)}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(Vt),se.KVO(_n),se.KVO(Ee.il),se.KVO(be),se.KVO(Ee.wc,8),se.KVO(Ee.ae,8),se.KVO(ve,8))},this.\u0275mod=pe.$C({type:Ne}),this.\u0275inj=se.G2t({}))}return le(),Ne})(),Fe=(()=>{var le;class Ne{constructor(Je,gt,zt,Ye){const st=gt.flat();for(const it of st)Je.addEffects(it)}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(tt),se.KVO($e),se.KVO(Ee.wc,8),se.KVO(Ee.ae,8))},this.\u0275mod=pe.$C({type:Ne}),this.\u0275inj=se.G2t({}))}return le(),Ne})(),Pe=(()=>{var le;class Ne{static forFeature(...Je){const gt=Je.flat(),zt=re(gt);return{ngModule:Fe,providers:[zt,{provide:nt,multi:!0,useValue:gt},{provide:oe,multi:!0,useValue:[]},{provide:$e,multi:!0,useFactory:Ue,deps:[nt,oe]}]}}static forRoot(...Je){const gt=Je.flat(),zt=re(gt);return{ngModule:tt,providers:[zt,{provide:Se,useValue:[gt]},{provide:ve,useFactory:Qe},{provide:oe,multi:!0,useValue:[]},{provide:be,useFactory:Ue,deps:[Se,oe]}]}}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)},this.\u0275mod=pe.$C({type:Ne}),this.\u0275inj=se.G2t({}))}return le(),Ne})();function Ue(le,Ne){const ze=[];for(const Je of le)ze.push(...Je);for(const Je of Ne)ze.push(...Je);return ze.map(Je=>function he(le){return le instanceof se.nKC||fe(le)}(Je)?(0,se.WQX)(Je):Je)}function Qe(){const le=(0,se.WQX)(_n,{optional:!0,skipSelf:!0}),Ne=(0,se.WQX)(Se,{self:!0});if((1!==Ne.length||0!==Ne[0].length)&&le)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},59640(ke,q,l){"use strict";l.d(q,{SS:()=>u,Zz:()=>m,N_:()=>C,Bh:()=>Xt,QU:()=>S,sA:()=>Le,h1:()=>tn,il:()=>_n,ae:()=>Jn,md:()=>Bi,wc:()=>Gn,q6:()=>de,VP:()=>Q,UX:()=>In,vy:()=>Sa,Mz:()=>mt,on:()=>_a,xk:()=>$});var i=l(2615),g=l(73664),p=l(59295),D=l(17705),o=l(84412),e=l(71985),A=l(21413),h=l(47242),d=l(40941),w=l(53993),f=l(31943),F=l(96354),K=l(23294),j=l(89079);const ee={};function Q(un,Sn){if(ee[un]=(ee[un]||0)+1,"function"==typeof Sn)return _e(un,(...Dn)=>({...Sn(...Dn),type:un}));switch(Sn?Sn._as:"empty"){case"empty":return _e(un,()=>({type:un}));case"props":return _e(un,Dn=>({...Dn,type:un}));default:throw new Error("Unexpected config.")}}function $(){return{_as:"props",_p:void 0}}function _e(un,Sn){return Object.defineProperty(Sn,"type",{value:un,writable:!1})}const m="@ngrx/store/init";let u=(()=>{var un;class Sn extends o.t{constructor(){super({type:m})}next(Dn){if("function"==typeof Dn)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(typeof Dn>"u")throw new TypeError("Actions must be objects");if(typeof Dn.type>"u")throw new TypeError("Actions must have a type property");super.next(Dn)}complete(){}ngOnDestroy(){super.complete()}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const _=[u],T=new i.nKC("@ngrx/store Internal Root Guard"),P=new i.nKC("@ngrx/store Internal Initial State"),C=new i.nKC("@ngrx/store Initial State"),a=new i.nKC("@ngrx/store Reducer Factory"),x=new i.nKC("@ngrx/store Internal Reducer Factory Provider"),Y=new i.nKC("@ngrx/store Initial Reducers"),R=new i.nKC("@ngrx/store Internal Initial Reducers"),U=new i.nKC("@ngrx/store Store Features"),fe=new i.nKC("@ngrx/store Internal Store Reducers"),re=new i.nKC("@ngrx/store Internal Feature Reducers"),he=new i.nKC("@ngrx/store Internal Feature Configs"),Oe=new i.nKC("@ngrx/store Internal Store Features"),ge=new i.nKC("@ngrx/store Internal Feature Reducers Token"),ce=new i.nKC("@ngrx/store Feature Reducers"),Re=new i.nKC("@ngrx/store User Provided Meta Reducers"),Me=new i.nKC("@ngrx/store Meta Reducers"),ve=new i.nKC("@ngrx/store Internal Resolved Meta Reducers"),oe=new i.nKC("@ngrx/store User Runtime Checks Config"),Se=new i.nKC("@ngrx/store Internal User Runtime Checks Config"),be=new i.nKC("@ngrx/store Internal Runtime Checks"),nt=new i.nKC("@ngrx/store Check if Action types are unique"),$e=new i.nKC("@ngrx/store Root Store Provider"),dt=new i.nKC("@ngrx/store Feature State Provider");function yt(un,Sn={}){const fi=Object.keys(un),Dn={};for(let Ci=0;CiCi(ti),fi(Sn))}}function Mn(un,Sn){return Array.isArray(Sn)&&Sn.length>0&&(un=rt.apply(null,[...Sn,un])),(fi,Dn)=>{const ti=un(fi);return(Ci,Xi)=>ti(Ci=void 0===Ci?Dn:Ci,Xi)}}class S extends e.c{}class Xt extends u{}const de="@ngrx/store/update-reducers";let ae=(()=>{var un;class Sn extends o.t{get currentReducers(){return this.reducers}constructor(Dn,ti,Ci,Xi){super(Xi(Ci,ti)),this.dispatcher=Dn,this.initialState=ti,this.reducers=Ci,this.reducerFactory=Xi}addFeature(Dn){this.addFeatures([Dn])}addFeatures(Dn){const ti=Dn.reduce((Ci,{reducers:Xi,reducerFactory:Ma,metaReducers:lt,initialState:an,key:ht})=>{const Gt="function"==typeof Xi?function qt(un){const Sn=Array.isArray(un)&&un.length>0?rt(...un):fi=>fi;return(fi,Dn)=>(fi=Sn(fi),(ti,Ci)=>fi(ti=void 0===ti?Dn:ti,Ci))}(lt)(Xi,an):Mn(Ma,lt)(Xi,an);return Ci[ht]=Gt,Ci},{});this.addReducers(ti)}removeFeature(Dn){this.removeFeatures([Dn])}removeFeatures(Dn){this.removeReducers(Dn.map(ti=>ti.key))}addReducer(Dn,ti){this.addReducers({[Dn]:ti})}addReducers(Dn){this.reducers={...this.reducers,...Dn},this.updateReducers(Object.keys(Dn))}removeReducer(Dn){this.removeReducers([Dn])}removeReducers(Dn){Dn.forEach(ti=>{this.reducers=function Et(un,Sn){return Object.keys(un).filter(fi=>fi!==Sn).reduce((fi,Dn)=>Object.assign(fi,{[Dn]:un[Dn]}),{})}(this.reducers,ti)}),this.updateReducers(Dn)}updateReducers(Dn){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:de,features:Dn})}ngOnDestroy(){this.complete()}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(Xt),i.KVO(C),i.KVO(Y),i.KVO(a))},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const me=[ae,{provide:S,useExisting:ae},{provide:Xt,useExisting:u}];let Le=(()=>{var un;class Sn extends A.B{ngOnDestroy(){this.complete()}static#e=un=()=>(this.\u0275fac=(()=>{let Dn;return function(Ci){return(Dn||(Dn=g.xGo(Sn)))(Ci||Sn)}})(),this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const et=[Le];class tn extends e.c{}let Vt=(()=>{var un;class Sn extends o.t{constructor(Dn,ti,Ci,Xi){super(Xi);const ht=Dn.pipe((0,d.Q)(h.T)).pipe((0,w.E)(ti)).pipe((0,f.S)(hn,{state:Xi}));this.stateSubscription=ht.subscribe(({state:Gt,action:cn})=>{this.next(Gt),Ci.next(cn)}),this.state=(0,j.ot)(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static#e=un=()=>(this.INIT=m,this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(u),i.KVO(S),i.KVO(Le),i.KVO(C))},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();function hn(un={state:void 0},[Sn,fi]){const{state:Dn}=un;return{state:fi(Dn,Sn),action:Sn}}const En=[Vt,{provide:tn,useExisting:Vt}];let _n=(()=>{var un;class Sn extends e.c{constructor(Dn,ti,Ci,Xi){super(),this.actionsObserver=ti,this.reducerManager=Ci,this.injector=Xi,this.source=Dn,this.state=Dn.state}select(Dn,...ti){return Fe.call(null,Dn,...ti)(this)}selectSignal(Dn,ti){return(0,p.EW)(()=>Dn(this.state()),ti)}lift(Dn){const ti=new Sn(this,this.actionsObserver,this.reducerManager);return ti.operator=Dn,ti}dispatch(Dn,ti){if("function"==typeof Dn)return this.processDispatchFn(Dn,ti);this.actionsObserver.next(Dn)}next(Dn){this.actionsObserver.next(Dn)}error(Dn){this.actionsObserver.error(Dn)}complete(){this.actionsObserver.complete()}addReducer(Dn,ti){this.reducerManager.addReducer(Dn,ti)}removeReducer(Dn){this.reducerManager.removeReducer(Dn)}processDispatchFn(Dn,ti){!function pe(un,Sn){if(null==un)throw new Error(`${Sn} must be defined.`)}(this.injector,"Store Injector");const Ci=ti?.injector??function Pe(){try{return(0,i.WQX)(i.zZn)}catch{return}}()??this.injector;return(0,p.QZ)(()=>{const Xi=Dn();(0,p.O8)(()=>this.dispatch(Xi))},{injector:Ci})}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(tn),i.KVO(u),i.KVO(ae),i.KVO(i.zZn))},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const tt=[_n];function Fe(un,Sn,...fi){return function(ti){let Ci;if("string"==typeof un){const Xi=[Sn,...fi].filter(Boolean);Ci=ti.pipe(function M(...un){const Sn=un.length;if(0===Sn)throw new Error("list of properties cannot be empty.");return(0,F.T)(fi=>{let Dn=fi;for(let ti=0;tiun(Xi,Sn)))}return Ci.pipe((0,K.F)())}}const Ue="https://ngrx.io/guide/store/configuration/runtime-checks";function Qe(un){return void 0===un}function Ie(un){return null===un}function le(un){return Array.isArray(un)}function gt(un){return"object"==typeof un&&null!==un}function st(un){return"function"==typeof un}function Lt(un,Sn){return un===Sn}function fn(un,Sn=Lt,fi=Lt){let Ci,Dn=null,ti=null;return{memoized:function an(){if(void 0!==Ci)return Ci.result;if(!Dn)return ti=un.apply(null,arguments),Dn=arguments,ti;if(!function St(un,Sn,fi){for(let Dn=0;Dn"function"==typeof Sn)}(Dn[0])&&(Dn=function Li(un){const Sn=Object.values(un),fi=Object.keys(un);return[...Sn,(...ti)=>fi.reduce((Ci,Xi,Ma)=>({...Ci,[Xi]:ti[Ma]}),{})]}(Dn[0]));const ti=Dn.slice(0,Dn.length-1),Ci=Dn[Dn.length-1],Xi=ti.filter(ht=>ht.release&&"function"==typeof ht.release),Ma=un(function(...ht){return Ci.apply(null,ht)}),lt=fn(function(ht,Gt){return Sn.stateFn.apply(null,[ht,ti,Gt,Ma])});return Object.assign(lt.memoized,{release:function an(){lt.reset(),Ma.reset(),Xi.forEach(ht=>ht.release())},projector:Ma.memoized,setResult:lt.setResult,clearResult:lt.clearResult})}}(fn)(...un)}function It(un,Sn,fi,Dn){if(void 0===fi){const Ci=Sn.map(Xi=>Xi(un));return Dn.memoized.apply(null,Ci)}const ti=Sn.map(Ci=>Ci(un,fi));return Dn.memoized.apply(null,[...ti,fi])}function In(un){return mt(Sn=>{const fi=Sn[un];return(0,D.naY)()&&!(un in Sn)&&console.warn(`@ngrx/store: The feature name "${un}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${un}', ...) or StoreModule.forFeature('${un}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),fi},Sn=>Sn)}function Ge(un){return un instanceof i.nKC?(0,i.WQX)(un):un}function Pt(un,Sn){return Sn.map((fi,Dn)=>{if(un[Dn]instanceof i.nKC){const ti=(0,i.WQX)(un[Dn]);return{key:fi.key,reducerFactory:ti.reducerFactory?ti.reducerFactory:yt,metaReducers:ti.metaReducers?ti.metaReducers:[],initialState:ti.initialState}}return fi})}function Yt(un){return un.map(Sn=>Sn instanceof i.nKC?(0,i.WQX)(Sn):Sn)}function bn(un){return"function"==typeof un?un():un}function $n(un,Sn){return un.concat(Sn)}function oi(){if((0,i.WQX)(_n,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function Ei(un){Object.freeze(un);const Sn=st(un);return Object.getOwnPropertyNames(un).forEach(fi=>{if(!fi.startsWith("\u0275")&&function He(un,Sn){return Object.prototype.hasOwnProperty.call(un,Sn)}(un,fi)&&(!Sn||"caller"!==fi&&"callee"!==fi&&"arguments"!==fi)){const Dn=un[fi];(gt(Dn)||st(Dn))&&!Object.isFrozen(Dn)&&Ei(Dn)}}),un}function nn(un,Sn=[]){return(Qe(un)||Ie(un))&&0===Sn.length?{path:["root"],value:un}:Object.keys(un).reduce((Dn,ti)=>{if(Dn)return Dn;const Ci=un[ti];return function it(un){return st(un)&&un.hasOwnProperty("\u0275cmp")}(Ci)?Dn:!(Qe(Ci)||Ie(Ci)||function Je(un){return"number"==typeof un}(Ci)||function ze(un){return"boolean"==typeof un}(Ci)||function Ne(un){return"string"==typeof un}(Ci)||le(Ci))&&(function Ye(un){if(!function zt(un){return gt(un)&&!le(un)}(un))return!1;const Sn=Object.getPrototypeOf(un);return Sn===Object.prototype||null===Sn}(Ci)?nn(Ci,[...Sn,ti]):{path:[...Sn,ti],value:Ci})},!1)}function en(un,Sn){if(!1===un)return;const fi=un.path.join("."),Dn=new Error(`Detected unserializable ${Sn} at "${fi}". ${Ue}#strict${Sn}serializability`);throw Dn.value=un.value,Dn.unserializablePath=fi,Dn}function jn(un){return(0,D.naY)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...un}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Un({strictActionSerializability:un,strictStateSerializability:Sn}){return fi=>un||Sn?function Nt(un,Sn){return function(fi,Dn){Sn.action(Dn)&&en(nn(Dn),"action");const ti=un(fi,Dn);return Sn.state()&&en(nn(ti),"state"),ti}}(fi,{action:Dn=>un&&!gn(Dn),state:()=>Sn}):fi}function ui({strictActionImmutability:un,strictStateImmutability:Sn}){return fi=>un||Sn?function Ii(un,Sn){return function(fi,Dn){const ti=Sn.action(Dn)?Ei(Dn):Dn,Ci=un(fi,ti);return Sn.state()?Ei(Ci):Ci}}(fi,{action:Dn=>un&&!gn(Dn),state:()=>Sn}):fi}function gn(un){return un.type.startsWith("@ngrx")}function zn({strictActionWithinNgZone:un}){return Sn=>un?function Nn(un,Sn){return function(fi,Dn){if(Sn.action(Dn)&&!g.SKi.isInAngularZone())throw new Error(`Action '${Dn.type}' running outside NgZone. ${Ue}#strictactionwithinngzone`);return un(fi,Dn)}}(Sn,{action:fi=>un&&!gn(fi)}):Sn}function kn(un){return[{provide:Se,useValue:un},{provide:oe,useFactory:ci,deps:[Se]},{provide:be,deps:[oe],useFactory:jn},{provide:Me,multi:!0,deps:[be],useFactory:ui},{provide:Me,multi:!0,deps:[be],useFactory:Un},{provide:Me,multi:!0,deps:[be],useFactory:zn}]}function Kn(){return[{provide:nt,multi:!0,deps:[be],useFactory:Xn}]}function ci(un){return un}function Xn(un){if(!un.strictActionTypeUniqueness)return;const Sn=Object.entries(ee).filter(([,fi])=>fi>1).map(([fi])=>fi);if(Sn.length)throw new Error(`Action types are registered more than once, ${Sn.map(fi=>`"${fi}"`).join(", ")}. ${Ue}#strictactiontypeuniqueness`)}function sa(un={},Sn={}){return[{provide:T,useFactory:oi},{provide:P,useValue:Sn.initialState},{provide:C,useFactory:bn,deps:[P]},{provide:R,useValue:un},{provide:fe,useExisting:un instanceof i.nKC?un:R},{provide:Y,deps:[R,[new g.y_5(fe)]],useFactory:Ge},{provide:Re,useValue:Sn.metaReducers?Sn.metaReducers:[]},{provide:ve,deps:[Me,Re],useFactory:$n},{provide:x,useValue:Sn.reducerFactory?Sn.reducerFactory:yt},{provide:a,deps:[x,ve],useFactory:Mn},_,me,et,En,tt,kn(Sn.runtimeChecks),Kn()]}function hi(un,Sn,fi={}){return[{provide:he,multi:!0,useValue:un instanceof Object?{}:fi},{provide:U,multi:!0,useValue:{key:un instanceof Object?un.name:un,reducerFactory:fi instanceof i.nKC||!fi.reducerFactory?yt:fi.reducerFactory,metaReducers:fi instanceof i.nKC||!fi.metaReducers?[]:fi.metaReducers,initialState:fi instanceof i.nKC||!fi.initialState?void 0:fi.initialState}},{provide:Oe,deps:[he,U],useFactory:Pt},{provide:re,multi:!0,useValue:un instanceof Object?un.reducer:Sn},{provide:ge,multi:!0,useExisting:Sn instanceof i.nKC?Sn:re},{provide:ce,multi:!0,deps:[re,[new g.y_5(ge)]],useFactory:Yt},Kn()]}(0,i.BCV)(()=>(0,i.WQX)($e)),(0,i.BCV)(()=>(0,i.WQX)(dt));let Gn=(()=>{var un;class Sn{constructor(Dn,ti,Ci,Xi,Ma,lt){}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(u),i.KVO(S),i.KVO(Le),i.KVO(_n),i.KVO(T,8),i.KVO(nt,8))},this.\u0275mod=g.$C({type:Sn}),this.\u0275inj=i.G2t({}))}return un(),Sn})(),Jn=(()=>{var un;class Sn{constructor(Dn,ti,Ci,Xi,Ma){this.features=Dn,this.featureReducers=ti,this.reducerManager=Ci;const lt=Dn.map((an,ht)=>{const cn=ti.shift()[ht];return{...an,reducers:cn,initialState:bn(an.initialState)}});Ci.addFeatures(lt)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(Oe),i.KVO(ce),i.KVO(ae),i.KVO(Gn),i.KVO(nt,8))},this.\u0275mod=g.$C({type:Sn}),this.\u0275inj=i.G2t({}))}return un(),Sn})(),Bi=(()=>{var un;class Sn{static forRoot(Dn,ti){return{ngModule:Gn,providers:[...sa(Dn,ti)]}}static forFeature(Dn,ti,Ci={}){return{ngModule:Jn,providers:[...hi(Dn,ti,Ci)]}}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)},this.\u0275mod=g.$C({type:Sn}),this.\u0275inj=i.G2t({}))}return un(),Sn})();function _a(...un){return{reducer:un.pop(),types:un.map(Dn=>Dn.type)}}function Sa(un,...Sn){const fi=new Map;for(const Dn of Sn)for(const ti of Dn.types){const Ci=fi.get(ti);fi.set(ti,Ci?(Ma,lt)=>Dn.reducer(Ci(Ma,lt),lt):Dn.reducer)}return function(Dn=un,ti){const Ci=fi.get(ti.type);return Ci?Ci(Dn,ti):Dn}}},51993(ke,q,l){"use strict";l.d(q,{Dl:()=>bp,L8:()=>p4,dV:()=>mh});var i=l(73664),g=l(2615),p=l(17705),D=l(72200),o=l(60177),e=l(31635),A=l(76939),h=l(33726),d=l(70152),w=l(11514);function f(){}function F(v){return null==v?f:function(){return this.querySelector(v)}}function j(){return[]}function Z(v){return null==v?j:function(){return this.querySelectorAll(v)}}function Q(v){return function(){return this.matches(v)}}function $(v){return function(O){return O.matches(v)}}var ie=Array.prototype.find;function ye(){return this.firstElementChild}var pe=Array.prototype.filter;function Ee(){return Array.from(this.children)}function m(v){return new Array(v.length)}function _(v,O){this.ownerDocument=v.ownerDocument,this.namespaceURI=v.namespaceURI,this._next=null,this._parent=v,this.__data__=O}function P(v,O,E,y,B,G){for(var Xe,ue=0,Ut=O.length,Qt=G.length;ueO?1:v>=O?0:NaN}_.prototype={constructor:_,appendChild:function(v){return this._parent.insertBefore(v,this._next)},insertBefore:function(v,O){return this._parent.insertBefore(v,O)},querySelector:function(v){return this._parent.querySelector(v)},querySelectorAll:function(v){return this._parent.querySelectorAll(v)}};var Se="http://www.w3.org/1999/xhtml";const be={svg:"http://www.w3.org/2000/svg",xhtml:Se,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nt(v){var O=v+="",E=O.indexOf(":");return E>=0&&"xmlns"!==(O=v.slice(0,E))&&(v=v.slice(E+1)),be.hasOwnProperty(O)?{space:be[O],local:v}:v}function $e(v){return function(){this.removeAttribute(v)}}function dt(v){return function(){this.removeAttributeNS(v.space,v.local)}}function yt(v,O){return function(){this.setAttribute(v,O)}}function Et(v,O){return function(){this.setAttributeNS(v.space,v.local,O)}}function rt(v,O){return function(){var E=O.apply(this,arguments);null==E?this.removeAttribute(v):this.setAttribute(v,E)}}function Mn(v,O){return function(){var E=O.apply(this,arguments);null==E?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,E)}}function S(v){return v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView}function Xt(v){return function(){this.style.removeProperty(v)}}function de(v,O,E){return function(){this.style.setProperty(v,O,E)}}function ae(v,O,E){return function(){var y=O.apply(this,arguments);null==y?this.style.removeProperty(v):this.style.setProperty(v,y,E)}}function Le(v,O){return v.style.getPropertyValue(O)||S(v).getComputedStyle(v,null).getPropertyValue(O)}function et(v){return function(){delete this[v]}}function tn(v,O){return function(){this[v]=O}}function Vt(v,O){return function(){var E=O.apply(this,arguments);null==E?delete this[v]:this[v]=E}}function En(v){return v.trim().split(/^|\s+/)}function _n(v){return v.classList||new tt(v)}function tt(v){this._node=v,this._names=En(v.getAttribute("class")||"")}function Fe(v,O){for(var E=_n(v),y=-1,B=O.length;++y=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(v){return this._names.indexOf(v)>=0}};var nn=[null];function en(v,O){this._groups=v,this._parents=O}function Nn(){return new en([[document.documentElement]],nn)}en.prototype=Nn.prototype={constructor:en,select:function M(v){"function"!=typeof v&&(v=F(v));for(var O=this._groups,E=O.length,y=new Array(E),B=0;B=ta&&(ta=pa+1);!(Na=qn[ta])&&++ta=0;)(ue=y[B])&&(G&&4^ue.compareDocumentPosition(G)&&G.parentNode.insertBefore(ue,G),G=ue);return this},sort:function he(v){function O(Pn,Fn){return Pn&&Fn?v(Pn.__data__,Fn.__data__):!Pn-!Fn}v||(v=Oe);for(var E=this._groups,y=E.length,B=new Array(y),G=0;G1?this.each((null==O?Xt:"function"==typeof O?ae:de)(v,O,E??"")):Le(this.node(),v)},property:function hn(v,O){return arguments.length>1?this.each((null==O?et:"function"==typeof O?Vt:tn)(v,O)):this.node()[v]},classed:function le(v,O){var E=En(v+"");if(arguments.length<2){for(var y=_n(this.node()),B=-1,G=E.length;++B=0&&(E=O.slice(y+1),O=O.slice(0,y)),{type:O,name:E}})}(v+""),G=y.length;if(!(arguments.length<2)){for(Xe=O?Yt:Pt,B=0;B{}};function zn(){for(var y,v=0,O=arguments.length,E={};v=0&&(y=E.slice(B+1),E=E.slice(0,B)),E&&!O.hasOwnProperty(E))throw new Error("unknown type: "+E);return{type:E,name:y}})}(v+"",E),G=-1,ue=y.length;if(!(arguments.length<2)){if(null!=O&&"function"!=typeof O)throw new Error("invalid callback: "+O);for(;++G0)for(var B,G,E=new Array(B),y=0;y>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===E?la(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===E?la(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=Dn.exec(v))?new Ce(O[1],O[2],O[3],1):(O=ti.exec(v))?new Ce(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=Ci.exec(v))?la(O[1],O[2],O[3],O[4]):(O=Xi.exec(v))?la(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=Ma.exec(v))?Va(O[1],O[2]/100,O[3]/100,1):(O=lt.exec(v))?Va(O[1],O[2]/100,O[3]/100,O[4]):an.hasOwnProperty(v)?Oi(an[v]):"transparent"===v?new Ce(NaN,NaN,NaN,0):null}function Oi(v){return new Ce(v>>16&255,v>>8&255,255&v,1)}function la(v,O,E,y){return y<=0&&(v=O=E=NaN),new Ce(v,O,E,y)}function li(v,O,E,y){return 1===arguments.length?function mn(v){return v instanceof Jn||(v=pi(v)),v?new Ce((v=v.rgb()).r,v.g,v.b,v.opacity):new Ce}(v):new Ce(v,O,E,y??1)}function Ce(v,O,E,y){this.r=+v,this.g=+O,this.b=+E,this.opacity=+y}function xt(){return`#${va(this.r)}${va(this.g)}${va(this.b)}`}function rn(){const v=Wn(this.opacity);return`${1===v?"rgb(":"rgba("}${Yi(this.r)}, ${Yi(this.g)}, ${Yi(this.b)}${1===v?")":`, ${v})`}`}function Wn(v){return isNaN(v)?1:Math.max(0,Math.min(1,v))}function Yi(v){return Math.max(0,Math.min(255,Math.round(v)||0))}function va(v){return((v=Yi(v))<16?"0":"")+v.toString(16)}function Va(v,O,E,y){return y<=0?v=O=E=NaN:E<=0||E>=1?v=O=NaN:O<=0&&(v=NaN),new Ga(v,O,E,y)}function $a(v){if(v instanceof Ga)return new Ga(v.h,v.s,v.l,v.opacity);if(v instanceof Jn||(v=pi(v)),!v)return new Ga;if(v instanceof Ga)return v;var O=(v=v.rgb()).r/255,E=v.g/255,y=v.b/255,B=Math.min(O,E,y),G=Math.max(O,E,y),ue=NaN,Xe=G-B,Ut=(G+B)/2;return Xe?(ue=O===G?(E-y)/Xe+6*(E0&&Ut<1?0:ue,new Ga(ue,Xe,Ut,v.opacity)}function Ga(v,O,E,y){this.h=+v,this.s=+O,this.l=+E,this.opacity=+y}function Ar(v){return(v=(v||0)%360)<0?v+360:v}function ds(v){return Math.max(0,Math.min(1,v||0))}function us(v,O,E){return 255*(v<60?O+(E-O)*v/60:v<180?E:v<240?O+(E-O)*(240-v)/60:O)}function hs(v,O,E,y,B){var G=v*v,ue=G*v;return((1-3*v+3*G-ue)*O+(4-6*G+3*ue)*E+(1+3*v+3*G-3*ue)*y+ue*B)/6}hi(Jn,pi,{copy(v){return Object.assign(new this.constructor,this,v)},displayable(){return this.rgb().displayable()},hex:ht,formatHex:ht,formatHex8:function Gt(){return this.rgb().formatHex8()},formatHsl:function cn(){return $a(this).formatHsl()},formatRgb:si,toString:si}),hi(Ce,li,Gn(Jn,{brighter(v){return v=null==v?_a:Math.pow(_a,v),new Ce(this.r*v,this.g*v,this.b*v,this.opacity)},darker(v){return v=null==v?.7:Math.pow(.7,v),new Ce(this.r*v,this.g*v,this.b*v,this.opacity)},rgb(){return this},clamp(){return new Ce(Yi(this.r),Yi(this.g),Yi(this.b),Wn(this.opacity))},displayable(){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:xt,formatHex:xt,formatHex8:function vt(){return`#${va(this.r)}${va(this.g)}${va(this.b)}${va(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rn,toString:rn})),hi(Ga,function ir(v,O,E,y){return 1===arguments.length?$a(v):new Ga(v,O,E,y??1)},Gn(Jn,{brighter(v){return v=null==v?_a:Math.pow(_a,v),new Ga(this.h,this.s,this.l*v,this.opacity)},darker(v){return v=null==v?.7:Math.pow(.7,v),new Ga(this.h,this.s,this.l*v,this.opacity)},rgb(){var v=this.h%360+360*(this.h<0),O=isNaN(v)||isNaN(this.s)?0:this.s,E=this.l,y=E+(E<.5?E:1-E)*O,B=2*E-y;return new Ce(us(v>=240?v-240:v+120,B,y),us(v,B,y),us(v<120?v+240:v-120,B,y),this.opacity)},clamp(){return new Ga(Ar(this.h),ds(this.s),ds(this.l),Wn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const v=Wn(this.opacity);return`${1===v?"hsl(":"hsla("}${Ar(this.h)}, ${100*ds(this.s)}%, ${100*ds(this.l)}%${1===v?")":`, ${v})`}`}}));const ms=v=>()=>v;function Pr(v,O){var E=O-v;return E?function Zr(v,O){return function(E){return v+E*O}}(v,E):ms(isNaN(v)?O:v)}const Is=function v(O){var E=function Ka(v){return 1==(v=+v)?Pr:function(O,E){return E-O?function js(v,O,E){return v=Math.pow(v,E),O=Math.pow(O,E)-v,E=1/E,function(y){return Math.pow(v+y*O,E)}}(O,E,v):ms(isNaN(O)?E:O)}}(O);function y(B,G){var ue=E((B=li(B)).r,(G=li(G)).r),Xe=E(B.g,G.g),Ut=E(B.b,G.b),Qt=Pr(B.opacity,G.opacity);return function(pn){return B.r=ue(pn),B.g=Xe(pn),B.b=Ut(pn),B.opacity=Qt(pn),B+""}}return y.gamma=v,y}(1);function Wr(v){return function(O){var ue,Xe,E=O.length,y=new Array(E),B=new Array(E),G=new Array(E);for(ue=0;ue=1?(E=1,O-1):Math.floor(E*O),B=v[y],G=v[y+1];return hs((E-y/O)*O,y>0?v[y-1]:2*B-G,B,G,yE&&(G=O.slice(E,G),Xe[ue]?Xe[ue]+=G:Xe[++ue]=G),(y=y[0])===(B=B[0])?Xe[ue]?Xe[ue]+=B:Xe[++ue]=B:(Xe[++ue]=null,Ut.push({i:ue,x:lr(y,B)})),E=Xr.lastIndex;return E=0&&v._call.call(void 0,O),v=v._next;--es}()}finally{es=0,function Er(){for(var v,E,O=Za,y=1/0;O;)O._call?(y>O._time&&(y=O._time),v=O,O=O._next):(E=O._next,O._next=null,O=v?v._next=E:Za=E);ks=v,Kt(y)}(),Nr=0}}function ca(){var v=Qr.now(),O=v-Rs;O>1e3&&(Ws-=O,Rs=v)}function Kt(v){es||(Yr&&(Yr=clearTimeout(Yr)),v-Nr>24?(v<1/0&&(Yr=setTimeout(Ni,v-Qr.now()-Ws)),Aa&&(Aa=clearInterval(Aa))):(Aa||(Rs=Qr.now(),Aa=setInterval(ca,1e3)),es=1,Es(Ni)))}function Vn(v,O,E){var y=new Ve;return y.restart(B=>{y.stop(),v(B+O)},O=null==O?0:+O,E),y}Ve.prototype=Rt.prototype={constructor:Ve,restart:function(v,O,E){if("function"!=typeof v)throw new TypeError("callback is not a function");E=(null==E?ct():+E)+(null==O?0:+O),!this._next&&ks!==this&&(ks?ks._next=this:Za=this,ks=this),this._call=v,this._time=E,Kt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kt())}};var _t=aa("start","end","cancel","interrupt"),xn=[];function qo(v,O,E,y,B,G){var ue=v.__transition;if(ue){if(E in ue)return}else v.__transition={};!function Mo(v,O,E){var B,y=v.__transition;function ue(Qt){var pn,Pn,Fn,xi;if(1!==E.state)return Ut();for(pn in y)if((xi=y[pn]).name===E.name){if(3===xi.state)return Vn(ue);4===xi.state?(xi.state=6,xi.timer.stop(),xi.on.call("interrupt",v,v.__data__,xi.index,xi.group),delete y[pn]):+pn0)throw new Error("too late; already scheduled");return E}function Sr(v,O){var E=ts(v,O);if(E.state>3)throw new Error("too late; already running");return E}function ts(v,O){var E=v.__transition;if(!E||!(E=E[O]))throw new Error("transition not found");return E}var ns,hl=180/Math.PI,Bl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hr(v,O,E,y,B,G){var ue,Xe,Ut;return(ue=Math.sqrt(v*v+O*O))&&(v/=ue,O/=ue),(Ut=v*E+O*y)&&(E-=v*Ut,y-=O*Ut),(Xe=Math.sqrt(E*E+y*y))&&(E/=Xe,y/=Xe,Ut/=Xe),v*y180?pn+=360:pn-Qt>180&&(Qt+=360),Fn.push({i:Pn.push(B(Pn)+"rotate(",null,y)-2,x:lr(Qt,pn)})):pn&&Pn.push(B(Pn)+"rotate("+pn+y)}(Qt.rotate,pn.rotate,Pn,Fn),function Xe(Qt,pn,Pn,Fn){Qt!==pn?Fn.push({i:Pn.push(B(Pn)+"skewX(",null,y)-2,x:lr(Qt,pn)}):pn&&Pn.push(B(Pn)+"skewX("+pn+y)}(Qt.skewX,pn.skewX,Pn,Fn),function Ut(Qt,pn,Pn,Fn,xi,yi){if(Qt!==Pn||pn!==Fn){var Ji=xi.push(B(xi)+"scale(",null,",",null,")");yi.push({i:Ji-4,x:lr(Qt,Pn)},{i:Ji-2,x:lr(pn,Fn)})}else(1!==Pn||1!==Fn)&&xi.push(B(xi)+"scale("+Pn+","+Fn+")")}(Qt.scaleX,Qt.scaleY,pn.scaleX,pn.scaleY,Pn,Fn),Qt=pn=null,function(xi){for(var qn,yi=-1,Ji=Fn.length;++yi=0&&(O=O.slice(0,E)),!O||"start"===O})}(O)?yl:Sr;return function(){var ue=G(this,v),Xe=ue.on;Xe!==y&&(B=(y=Xe).copy()).on(O,E),ue.on=B}}(E,v,O))},attr:function jo(v,O){var E=nt(v),y="transform"===E?ws:za;return this.attrTween(v,"function"==typeof O?(E.local?So:mo)(E,y,zl(this,"attr."+v,O)):null==O?(E.local?Cl:fr)(E):(E.local?wo:to)(E,y,O))},attrTween:function El(v,O){var E="attr."+v;if(arguments.length<2)return(E=this.tween(E))&&E._value;if(null==O)return this.tween(E,null);if("function"!=typeof O)throw new Error;var y=nt(v);return this.tween(E,(y.local?Ml:io)(y,O))},style:function ji(v,O,E){var y="transform"==(v+="")?fl:za;return null==O?this.styleTween(v,function bt(v,O){var E,y,B;return function(){var G=Le(this,v),ue=(this.style.removeProperty(v),Le(this,v));return G===ue?null:G===E&&ue===y?B:B=O(E=G,y=ue)}}(v,y)).on("end.style."+v,Ht(v)):"function"==typeof O?this.styleTween(v,function Rn(v,O,E){var y,B,G;return function(){var ue=Le(this,v),Xe=E(this),Ut=Xe+"";return null==Xe&&(this.style.removeProperty(v),Ut=Xe=Le(this,v)),ue===Ut?null:ue===y&&Ut===B?G:(B=Ut,G=O(y=ue,Xe))}}(v,y,zl(this,"style."+v,O))).each(function di(v,O){var E,y,B,Xe,G="style."+O,ue="end."+G;return function(){var Ut=Sr(this,v),Qt=Ut.on,pn=null==Ut.value[G]?Xe||(Xe=Ht(O)):void 0;(Qt!==E||B!==pn)&&(y=(E=Qt).copy()).on(ue,B=pn),Ut.on=y}}(this._id,v)):this.styleTween(v,function sn(v,O,E){var y,G,B=E+"";return function(){var ue=Le(this,v);return ue===B?null:ue===y?G:G=O(y=ue,E)}}(v,y,O),E).on("end.style."+v,null)},styleTween:function Fr(v,O,E){var y="style."+(v+="");if(arguments.length<2)return(y=this.tween(y))&&y._value;if(null==O)return this.tween(y,null);if("function"!=typeof O)throw new Error;return this.tween(y,function rr(v,O,E){var y,B;function G(){var ue=O.apply(this,arguments);return ue!==B&&(y=(B=ue)&&function Ia(v,O,E){return function(y){this.style.setProperty(v,O.call(this,y),E)}}(v,ue,E)),y}return G._value=O,G}(v,O,E??""))},text:function oo(v){return this.tween("text","function"==typeof v?function as(v){return function(){var O=v(this);this.textContent=O??""}}(zl(this,"text",v)):function nl(v){return function(){this.textContent=v}}(null==v?"":v+""))},textTween:function mc(v){var O="text";if(arguments.length<1)return(O=this.tween(O))&&O._value;if(null==v)return this.tween(O,null);if("function"!=typeof v)throw new Error;return this.tween(O,function Sl(v){var O,E;function y(){var B=v.apply(this,arguments);return B!==E&&(O=(E=B)&&function lo(v){return function(O){this.textContent=v.call(this,O)}}(B)),O}return y._value=v,y}(v))},remove:function tl(){return this.on("end.remove",function Wo(v){return function(){var O=this.parentNode;for(var E in this.__transition)if(+E!==v)return;O&&O.removeChild(this)}}(this._id))},tween:function xl(v,O){var E=this._id;if(v+="",arguments.length<2){for(var ue,y=ts(this.node(),E).tween,B=0,G=y.length;B2&&y.state<5,y.state=6,y.timer.stop(),y.on.call(B?"interrupt":"cancel",v,v.__data__,y.index,y.group),delete E[ue]):G=!1;G&&delete v.__transition}}(this,v)})},Un.prototype.transition=function il(v){var O,E;v instanceof po?(O=v._id,v=v._name):(O=gc(),(E=kc).time=ct(),v=null==v?null:v+"");for(var y=this._groups,B=y.length,G=0;GO?1:v>=O?0:NaN}function ec(v,O){return null==v||null==O?NaN:Ov?1:O>=v?0:NaN}function Wl(v){let O,E,y;function B(Xe,Ut,Qt=0,pn=Xe.length){if(Qt>>1;E(Xe[Pn],Ut)<0?Qt=Pn+1:pn=Pn}while(QtKs(v(Xe),Ut),y=(Xe,Ut)=>v(Xe)-Ut):(O=v===Ks||v===ec?v:ed,E=v,y=v),{left:B,center:function ue(Xe,Ut,Qt=0,pn=Xe.length){const Pn=B(Xe,Ut,Qt,pn-1);return Pn>Qt&&y(Xe[Pn-1],Ut)>-y(Xe[Pn],Ut)?Pn-1:Pn},right:function G(Xe,Ut,Qt=0,pn=Xe.length){if(Qt>>1;E(Xe[Pn],Ut)<=0?Qt=Pn+1:pn=Pn}while(Qt=_d?10:G>=_c?5:G>=td?2:1;let Xe,Ut,Qt;return B<0?(Qt=Math.pow(10,-B)/ue,Xe=Math.round(v*Qt),Ut=Math.round(O*Qt),Xe/QtO&&--Ut,Qt=-Qt):(Qt=Math.pow(10,B)*ue,Xe=Math.round(v/Qt),Ut=Math.round(O/Qt),Xe*QtO&&--Ut),Ut(v(G=new Date(+G)),G),B.ceil=G=>(v(G=new Date(G-1)),O(G,1),v(G),G),B.round=G=>{const ue=B(G),Xe=B.ceil(G);return G-ue(O(G=new Date(+G),null==ue?1:Math.floor(ue)),G),B.range=(G,ue,Xe)=>{const Ut=[];if(G=B.ceil(G),Xe=null==Xe?1:Math.floor(Xe),!(G0))return Ut;let Qt;do{Ut.push(Qt=new Date(+G)),O(G,Xe),v(G)}while(QtPi(ue=>{if(ue>=ue)for(;v(ue),!G(ue);)ue.setTime(ue-1)},(ue,Xe)=>{if(ue>=ue)if(Xe<0)for(;++Xe<=0;)for(;O(ue,-1),!G(ue););else for(;--Xe>=0;)for(;O(ue,1),!G(ue););}),E&&(B.count=(G,ue)=>(Yn.setTime(+G),gi.setTime(+ue),v(Yn),v(gi),Math.floor(E(Yn,gi))),B.every=G=>(G=Math.floor(G),isFinite(G)&&G>0?G>1?B.filter(y?ue=>y(ue)%G===0:ue=>B.count(0,ue)%G===0):B:null)),B}const Wa=Pi(()=>{},(v,O)=>{v.setTime(+v+O)},(v,O)=>O-v);Wa.every=v=>(v=Math.floor(v),isFinite(v)&&v>0?v>1?Pi(O=>{O.setTime(Math.floor(O/v)*v)},(O,E)=>{O.setTime(+O+E*v)},(O,E)=>(E-O)/v):Wa:null);const La=Pi(v=>{v.setTime(v-v.getMilliseconds())},(v,O)=>{v.setTime(+v+O*ja)},(v,O)=>(O-v)/ja,v=>v.getUTCSeconds()),tr=Pi(v=>{v.setTime(v-v.getMilliseconds()-v.getSeconds()*ja)},(v,O)=>{v.setTime(+v+O*Ti)},(v,O)=>(O-v)/Ti,v=>v.getMinutes()),al=Pi(v=>{v.setUTCSeconds(0,0)},(v,O)=>{v.setTime(+v+O*Ti)},(v,O)=>(O-v)/Ti,v=>v.getUTCMinutes()),go=Pi(v=>{v.setTime(v-v.getMilliseconds()-v.getSeconds()*ja-v.getMinutes()*Ti)},(v,O)=>{v.setTime(+v+O*Ra)},(v,O)=>(O-v)/Ra,v=>v.getHours()),Z1=Pi(v=>{v.setUTCMinutes(0,0,0)},(v,O)=>{v.setTime(+v+O*Ra)},(v,O)=>(O-v)/Ra,v=>v.getUTCHours()),nd=Pi(v=>v.setHours(0,0,0,0),(v,O)=>v.setDate(v.getDate()+O),(v,O)=>(O-v-(O.getTimezoneOffset()-v.getTimezoneOffset())*Ti)/cr,v=>v.getDate()-1),Oo=Pi(v=>{v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCDate(v.getUTCDate()+O)},(v,O)=>(O-v)/cr,v=>v.getUTCDate()-1),Ko=Pi(v=>{v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCDate(v.getUTCDate()+O)},(v,O)=>(O-v)/cr,v=>Math.floor(v/cr));function Br(v){return Pi(O=>{O.setDate(O.getDate()-(O.getDay()+7-v)%7),O.setHours(0,0,0,0)},(O,E)=>{O.setDate(O.getDate()+7*E)},(O,E)=>(E-O-(E.getTimezoneOffset()-O.getTimezoneOffset())*Ti)/De)}const uo=Br(0),bc=Br(1),Il=(Br(2),Br(3),Br(4));function Dt(v){return Pi(O=>{O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-v)%7),O.setUTCHours(0,0,0,0)},(O,E)=>{O.setUTCDate(O.getUTCDate()+7*E)},(O,E)=>(E-O)/De)}Br(5),Br(6);const wt=Dt(0),Ft=Dt(1),On=(Dt(2),Dt(3),Dt(4)),vr=(Dt(5),Dt(6),Pi(v=>{v.setDate(1),v.setHours(0,0,0,0)},(v,O)=>{v.setMonth(v.getMonth()+O)},(v,O)=>O.getMonth()-v.getMonth()+12*(O.getFullYear()-v.getFullYear()),v=>v.getMonth())),Bs=Pi(v=>{v.setUTCDate(1),v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCMonth(v.getUTCMonth()+O)},(v,O)=>O.getUTCMonth()-v.getUTCMonth()+12*(O.getUTCFullYear()-v.getUTCFullYear()),v=>v.getUTCMonth()),Ys=Pi(v=>{v.setMonth(0,1),v.setHours(0,0,0,0)},(v,O)=>{v.setFullYear(v.getFullYear()+O)},(v,O)=>O.getFullYear()-v.getFullYear(),v=>v.getFullYear());Ys.every=v=>isFinite(v=Math.floor(v))&&v>0?Pi(O=>{O.setFullYear(Math.floor(O.getFullYear()/v)*v),O.setMonth(0,1),O.setHours(0,0,0,0)},(O,E)=>{O.setFullYear(O.getFullYear()+E*v)}):null;const sl=Pi(v=>{v.setUTCMonth(0,1),v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCFullYear(v.getUTCFullYear()+O)},(v,O)=>O.getUTCFullYear()-v.getUTCFullYear(),v=>v.getUTCFullYear());function xc(v,O,E,y,B,G){const ue=[[La,1,ja],[La,5,5e3],[La,15,15e3],[La,30,3e4],[G,1,Ti],[G,5,5*Ti],[G,15,15*Ti],[G,30,30*Ti],[B,1,Ra],[B,3,3*Ra],[B,6,6*Ra],[B,12,12*Ra],[y,1,cr],[y,2,2*cr],[E,1,De],[O,1,at],[O,3,3*at],[v,1,Jt]];function Ut(Qt,pn,Pn){const Fn=Math.abs(pn-Qt)/Pn,xi=Wl(([,,qn])=>qn).right(ue,Fn);if(xi===ue.length)return v.every(co(Qt/Jt,pn/Jt,Pn));if(0===xi)return Wa.every(Math.max(co(Qt,pn,Pn),1));const[yi,Ji]=ue[Fn/ue[xi-1][2]isFinite(v=Math.floor(v))&&v>0?Pi(O=>{O.setUTCFullYear(Math.floor(O.getUTCFullYear()/v)*v),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},(O,E)=>{O.setUTCFullYear(O.getUTCFullYear()+E*v)}):null;const[t0,Nm]=xc(sl,Bs,wt,Ko,Z1,al),[K4,n0]=xc(Ys,vr,uo,nd,go,tr);function i0(v){if(0<=v.y&&v.y<100){var O=new Date(-1,v.m,v.d,v.H,v.M,v.S,v.L);return O.setFullYear(v.y),O}return new Date(v.y,v.m,v.d,v.H,v.M,v.S,v.L)}function n1(v){if(0<=v.y&&v.y<100){var O=new Date(Date.UTC(-1,v.m,v.d,v.H,v.M,v.S,v.L));return O.setUTCFullYear(v.y),O}return new Date(Date.UTC(v.y,v.m,v.d,v.H,v.M,v.S,v.L))}function bd(v,O,E){return{y:v,m:O,d:E,H:0,M:0,S:0,L:0}}var L2={"-":"",_:" ",0:"0"},zs=/^\s*\d+/,I2=/^%/,Dh=/[\\^$*+?|[\]().{}]/g;function Xa(v,O,E){var y=v<0?"-":"",B=(y?-v:v)+"",G=B.length;return y+(G[O.toLowerCase(),E]))}function _o(v,O,E){var y=zs.exec(O.slice(E,E+1));return y?(v.w=+y[0],E+y[0].length):-1}function ss(v,O,E){var y=zs.exec(O.slice(E,E+1));return y?(v.u=+y[0],E+y[0].length):-1}function i1(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.U=+y[0],E+y[0].length):-1}function ol(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.V=+y[0],E+y[0].length):-1}function xd(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.W=+y[0],E+y[0].length):-1}function a1(v,O,E){var y=zs.exec(O.slice(E,E+4));return y?(v.y=+y[0],E+y[0].length):-1}function r1(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.y=+y[0]+(+y[0]>68?1900:2e3),E+y[0].length):-1}function R2(v,O,E){var y=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(E,E+6));return y?(v.Z=y[1]?0:-(y[2]+(y[3]||"00")),E+y[0].length):-1}function a0(v,O,E){var y=zs.exec(O.slice(E,E+1));return y?(v.q=3*y[0]-3,E+y[0].length):-1}function s1(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.m=y[0]-1,E+y[0].length):-1}function Mc(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.d=+y[0],E+y[0].length):-1}function O2(v,O,E){var y=zs.exec(O.slice(E,E+3));return y?(v.m=0,v.d=+y[0],E+y[0].length):-1}function r0(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.H=+y[0],E+y[0].length):-1}function Cd(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.M=+y[0],E+y[0].length):-1}function s0(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.S=+y[0],E+y[0].length):-1}function o0(v,O,E){var y=zs.exec(O.slice(E,E+3));return y?(v.L=+y[0],E+y[0].length):-1}function zr(v,O,E){var y=zs.exec(O.slice(E,E+6));return y?(v.L=Math.floor(y[0]/1e3),E+y[0].length):-1}function Ur(v,O,E){var y=I2.exec(O.slice(E,E+1));return y?E+y[0].length:-1}function Ah(v,O,E){var y=zs.exec(O.slice(E));return y?(v.Q=+y[0],E+y[0].length):-1}function Ta(v,O,E){var y=zs.exec(O.slice(E));return y?(v.s=+y[0],E+y[0].length):-1}function sc(v,O){return Xa(v.getDate(),O,2)}function Oc(v,O){return Xa(v.getHours(),O,2)}function o1(v,O){return Xa(v.getHours()%12||12,O,2)}function l1(v,O){return Xa(1+nd.count(Ys(v),v),O,3)}function kl(v,O){return Xa(v.getMilliseconds(),O,3)}function l0(v,O){return kl(v,O)+"000"}function c0(v,O){return Xa(v.getMonth()+1,O,2)}function P2(v,O){return Xa(v.getMinutes(),O,2)}function d0(v,O){return Xa(v.getSeconds(),O,2)}function u0(v){var O=v.getDay();return 0===O?7:O}function Lh(v,O){return Xa(uo.count(Ys(v)-1,v),O,2)}function N2(v){var O=v.getDay();return O>=4||0===O?Il(v):Il.ceil(v)}function Ih(v,O){return v=N2(v),Xa(Il.count(Ys(v),v)+(4===Ys(v).getDay()),O,2)}function F2(v){return v.getDay()}function B2(v,O){return Xa(bc.count(Ys(v)-1,v),O,2)}function Y4(v,O){return Xa(v.getFullYear()%100,O,2)}function Md(v,O){return Xa((v=N2(v)).getFullYear()%100,O,2)}function z2(v,O){return Xa(v.getFullYear()%1e4,O,4)}function c1(v,O){var E=v.getDay();return Xa((v=E>=4||0===E?Il(v):Il.ceil(v)).getFullYear()%1e4,O,4)}function U2(v){var O=v.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+Xa(O/60|0,"0",2)+Xa(O%60,"0",2)}function h0(v,O){return Xa(v.getUTCDate(),O,2)}function kh(v,O){return Xa(v.getUTCHours(),O,2)}function V2(v,O){return Xa(v.getUTCHours()%12||12,O,2)}function Q4(v,O){return Xa(1+Oo.count(sl(v),v),O,3)}function Rh(v,O){return Xa(v.getUTCMilliseconds(),O,3)}function Oh(v,O){return Rh(v,O)+"000"}function Ph(v,O){return Xa(v.getUTCMonth()+1,O,2)}function G2(v,O){return Xa(v.getUTCMinutes(),O,2)}function Nh(v,O){return Xa(v.getUTCSeconds(),O,2)}function H2(v){var O=v.getUTCDay();return 0===O?7:O}function Fh(v,O){return Xa(wt.count(sl(v)-1,v),O,2)}function d1(v){var O=v.getUTCDay();return O>=4||0===O?On(v):On.ceil(v)}function ad(v,O){return v=d1(v),Xa(On.count(sl(v),v)+(4===sl(v).getUTCDay()),O,2)}function Kl(v){return v.getUTCDay()}function j2(v,O){return Xa(Ft.count(sl(v)-1,v),O,2)}function Bh(v,O){return Xa(v.getUTCFullYear()%100,O,2)}function W2(v,O){return Xa((v=d1(v)).getUTCFullYear()%100,O,2)}function $4(v,O){return Xa(v.getUTCFullYear()%1e4,O,4)}function zh(v,O){var E=v.getUTCDay();return Xa((v=E>=4||0===E?On(v):On.ceil(v)).getUTCFullYear()%1e4,O,4)}function u1(){return"+0000"}function Ec(){return"%"}function Pc(v){return+v}function Ya(v){return Math.floor(+v/1e3)}function K2(v){return null===v?NaN:+v}!function Rl(v){(function Th(v){var O=v.dateTime,E=v.date,y=v.time,B=v.periods,G=v.days,ue=v.shortDays,Xe=v.months,Ut=v.shortMonths,Qt=Cc(B),pn=id(B),Pn=Cc(G),Fn=id(G),xi=Cc(ue),yi=id(ue),Ji=Cc(Xe),qn=id(Xe),Gi=Cc(Ut),pa=id(Ut),ta={a:function ls(na){return ue[na.getDay()]},A:function dl(na){return G[na.getDay()]},b:function cs(na){return Ut[na.getMonth()]},B:function or(na){return Xe[na.getMonth()]},c:null,d:sc,e:sc,f:l0,g:Md,G:c1,H:Oc,I:o1,j:l1,L:kl,m:c0,M:P2,p:function Hs(na){return B[+(na.getHours()>=12)]},q:function Ds(na){return 1+~~(na.getMonth()/3)},Q:Pc,s:Ya,S:d0,u:u0,U:Lh,V:Ih,w:F2,W:B2,x:null,X:null,y:Y4,Y:z2,Z:U2,"%":Ec},ga={a:function v2(na){return ue[na.getUTCDay()]},A:function Zc(na){return G[na.getUTCDay()]},b:function Qd(na){return Ut[na.getUTCMonth()]},B:function $d(na){return Xe[na.getUTCMonth()]},c:null,d:h0,e:h0,f:Oh,g:W2,G:zh,H:kh,I:V2,j:Q4,L:Rh,m:Ph,M:G2,p:function Fo(na){return B[+(na.getUTCHours()>=12)]},q:function Zd(na){return 1+~~(na.getUTCMonth()/3)},Q:Pc,s:Ya,S:Nh,u:H2,U:Fh,V:ad,w:Kl,W:j2,x:null,X:null,y:Bh,Y:$4,Z:u1,"%":Ec},Na={a:function xr(na,ka,Qa){var Ri=xi.exec(ka.slice(Qa));return Ri?(na.w=yi.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},A:function jr(na,ka,Qa){var Ri=Pn.exec(ka.slice(Qa));return Ri?(na.w=Fn.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},b:function Da(na,ka,Qa){var Ri=Gi.exec(ka.slice(Qa));return Ri?(na.m=pa.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},B:function Or(na,ka,Qa){var Ri=Ji.exec(ka.slice(Qa));return Ri?(na.m=qn.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},c:function nr(na,ka,Qa){return Rr(na,O,ka,Qa)},d:Mc,e:Mc,f:zr,g:r1,G:a1,H:r0,I:r0,j:O2,L:o0,m:s1,M:Cd,p:function Po(na,ka,Qa){var Ri=Qt.exec(ka.slice(Qa));return Ri?(na.p=pn.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},q:a0,Q:Ah,s:Ta,S:s0,u:ss,U:i1,V:ol,w:_o,W:xd,x:function No(na,ka,Qa){return Rr(na,E,ka,Qa)},X:function bs(na,ka,Qa){return Rr(na,y,ka,Qa)},y:r1,Y:a1,Z:R2,"%":Ur};function qi(na,ka){return function(Qa){var $o,Ca,Ls,Ri=[],As=-1,Cr=0,ul=na.length;for(Qa instanceof Date||(Qa=new Date(+Qa));++As53)return null;"w"in Ri||(Ri.w=1),"Z"in Ri?(ul=(Cr=n1(bd(Ri.y,0,1))).getUTCDay(),Cr=ul>4||0===ul?Ft.ceil(Cr):Ft(Cr),Cr=Oo.offset(Cr,7*(Ri.V-1)),Ri.y=Cr.getUTCFullYear(),Ri.m=Cr.getUTCMonth(),Ri.d=Cr.getUTCDate()+(Ri.w+6)%7):(ul=(Cr=i0(bd(Ri.y,0,1))).getDay(),Cr=ul>4||0===ul?bc.ceil(Cr):bc(Cr),Cr=nd.offset(Cr,7*(Ri.V-1)),Ri.y=Cr.getFullYear(),Ri.m=Cr.getMonth(),Ri.d=Cr.getDate()+(Ri.w+6)%7)}else("W"in Ri||"U"in Ri)&&("w"in Ri||(Ri.w="u"in Ri?Ri.u%7:"W"in Ri?1:0),ul="Z"in Ri?n1(bd(Ri.y,0,1)).getUTCDay():i0(bd(Ri.y,0,1)).getDay(),Ri.m=0,Ri.d="W"in Ri?(Ri.w+6)%7+7*Ri.W-(ul+5)%7:Ri.w+7*Ri.U-(ul+6)%7);return"Z"in Ri?(Ri.H+=Ri.Z/100|0,Ri.M+=Ri.Z%100,n1(Ri)):i0(Ri)}}function Rr(na,ka,Qa,Ri){for(var $o,Ca,As=0,Cr=ka.length,ul=Qa.length;As=ul)return-1;if(37===($o=ka.charCodeAt(As++))){if($o=ka.charAt(As++),!(Ca=Na[$o in L2?ka.charAt(As++):$o])||(Ri=Ca(na,Qa,Ri))<0)return-1}else if($o!=Qa.charCodeAt(Ri++))return-1}return Ri}return ta.x=qi(E,ta),ta.X=qi(y,ta),ta.c=qi(O,ta),ga.x=qi(E,ga),ga.X=qi(y,ga),ga.c=qi(O,ga),{format:function(na){var ka=qi(na+="",ta);return ka.toString=function(){return na},ka},parse:function(na){var ka=kr(na+="",!1);return ka.toString=function(){return na},ka},utcFormat:function(na){var ka=qi(na+="",ga);return ka.toString=function(){return na},ka},utcParse:function(na){var ka=kr(na+="",!0);return ka.toString=function(){return na},ka}}})(v)}({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 Gh=Wl(Ks).right,p0=(Wl(K2),Gh);function Hh(v,O){return v=+v,O=+O,function(E){return Math.round(v*(1-E)+O*E)}}function Wh(v){return+v}var qa=[0,1];function wc(v){return v}function g0(v,O){return(O-=v=+v)?function(E){return(E-v)/O}:function jh(v){return function(){return v}}(isNaN(O)?NaN:.5)}function Ed(v,O,E){var y=v[0],B=v[1],G=O[0],ue=O[1];return BO&&(E=v,v=O,O=E),function(y){return Math.max(v,Math.min(O,y))}}(v[0],v[Fn-1])),Xe=Fn>2?Xh:Ed,Ut=Qt=null,Pn}function Pn(Fn){return null==Fn||isNaN(Fn=+Fn)?G:(Ut||(Ut=Xe(v.map(y),O,E)))(y(ue(Fn)))}return Pn.invert=function(Fn){return ue(B((Qt||(Qt=Xe(O,v.map(y),lr)))(Fn)))},Pn.domain=function(Fn){return arguments.length?(v=Array.from(Fn,Wh),pn()):v.slice()},Pn.range=function(Fn){return arguments.length?(O=Array.from(Fn),pn()):O.slice()},Pn.rangeRound=function(Fn){return O=Array.from(Fn),E=Hh,pn()},Pn.clamp=function(Fn){return arguments.length?(ue=!!Fn||wc,pn()):ue!==wc},Pn.interpolate=function(Fn){return arguments.length?(E=Fn,pn()):E},Pn.unknown=function(Fn){return arguments.length?(G=Fn,Pn):G},function(Fn,xi){return y=Fn,B=xi,pn()}}()(wc,wc)}function rd(v,O){switch(arguments.length){case 0:break;case 1:this.range(v);break;default:this.range(O).domain(v)}return this}var Yo,Yh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Nc(v){if(!(O=Yh.exec(v)))throw new Error("invalid format: "+v);var O;return new Sc({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 Sc(v){this.fill=void 0===v.fill?" ":v.fill+"",this.align=void 0===v.align?">":v.align+"",this.sign=void 0===v.sign?"-":v.sign+"",this.symbol=void 0===v.symbol?"":v.symbol+"",this.zero=!!v.zero,this.width=void 0===v.width?void 0:+v.width,this.comma=!!v.comma,this.precision=void 0===v.precision?void 0:+v.precision,this.trim=!!v.trim,this.type=void 0===v.type?"":v.type+""}function p1(v,O){if(!isFinite(v)||0===v)return null;var E=(v=O?v.toExponential(O-1):v.toExponential()).indexOf("e"),y=v.slice(0,E);return[y.length>1?y[0]+y.slice(2):y,+v.slice(E+1)]}function Tc(v){return(v=p1(Math.abs(v)))?v[1]:NaN}function Fc(v,O){var E=p1(v,O);if(!E)return v+"";var y=E[0],B=E[1];return B<0?"0."+new Array(-B).join("0")+y:y.length>B+1?y.slice(0,B+1)+"."+y.slice(B+1):y+new Array(B-y.length+2).join("0")}Nc.prototype=Sc.prototype,Sc.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 g1={"%":(v,O)=>(100*v).toFixed(O),b:v=>Math.round(v).toString(2),c:v=>v+"",d:function $2(v){return Math.abs(v=Math.round(v))>=1e21?v.toLocaleString("en").replace(/,/g,""):v.toString(10)},e:(v,O)=>v.toExponential(O),f:(v,O)=>v.toFixed(O),g:(v,O)=>v.toPrecision(O),o:v=>Math.round(v).toString(8),p:(v,O)=>Fc(100*v,O),r:Fc,s:function sd(v,O){var E=p1(v,O);if(!E)return Yo=void 0,v.toPrecision(O);var y=E[0],B=E[1],G=B-(Yo=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,ue=y.length;return G===ue?y:G>ue?y+new Array(G-ue+1).join("0"):G>0?y.slice(0,G)+"."+y.slice(G):"0."+new Array(1-G).join("0")+p1(v,Math.max(0,O+G-1))[0]},X:v=>Math.round(v).toString(16).toUpperCase(),x:v=>Math.round(v).toString(16)};function Qs(v){return v}var Ld,y0,$h,od=Array.prototype.map,q2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Jh(v){var O=v.domain;return v.ticks=function(E){var y=O();return function vd(v,O,E){if(!((E=+E)>0))return[];if((v=+v)===(O=+O))return[v];const y=O=B))return[];const Xe=G-B+1,Ut=new Array(Xe);if(y)if(ue<0)for(let Qt=0;Qt0;){if((Qt=nc(ue,Xe,E))===Ut)return y[B]=ue,y[G]=Xe,O(y);if(Qt>0)ue=Math.floor(ue/Qt)*Qt,Xe=Math.ceil(Xe/Qt)*Qt;else{if(!(Qt<0))break;ue=Math.ceil(ue*Qt)/Qt,Xe=Math.floor(Xe*Qt)/Qt}Ut=Qt}return v},v}function cc(){var v=f1();return v.copy=function(){return function wd(v,O){return O.domain(v.domain()).range(v.range()).interpolate(v.interpolate()).clamp(v.clamp()).unknown(v.unknown())}(v,cc())},rd.apply(v,arguments),Jh(v)}function eu(v,O,E){v=+v,O=+O,E=(B=arguments.length)<2?(O=v,v=0,1):B<3?1:+E;for(var y=-1,B=0|Math.max(0,Math.ceil((O-v)/E)),G=new Array(B);++y0&&Xe>0&&(Ut+Xe+1>y&&(Xe=Math.max(1,y-Ut)),G.push(E.substring(B-=Xe,B+Xe)),!((Ut+=Xe+1)>y));)Xe=v[ue=(ue+1)%v.length];return G.reverse().join(O)}}(od.call(v.grouping,Number),v.thousands+""),E=void 0===v.currency?"":v.currency[0]+"",y=void 0===v.currency?"":v.currency[1]+"",B=void 0===v.decimal?".":v.decimal+"",G=void 0===v.numerals?Qs:function v0(v){return function(O){return O.replace(/[0-9]/g,function(E){return v[+E]})}}(od.call(v.numerals,String)),ue=void 0===v.percent?"%":v.percent+"",Xe=void 0===v.minus?"\u2212":v.minus+"",Ut=void 0===v.nan?"NaN":v.nan+"";function Qt(Pn,Fn){var xi=(Pn=Nc(Pn)).fill,yi=Pn.align,Ji=Pn.sign,qn=Pn.symbol,Gi=Pn.zero,pa=Pn.width,ta=Pn.comma,ga=Pn.precision,Na=Pn.trim,qi=Pn.type;"n"===qi?(ta=!0,qi="g"):g1[qi]||(void 0===ga&&(ga=12),Na=!0,qi="g"),(Gi||"0"===xi&&"="===yi)&&(Gi=!0,xi="0",yi="=");var kr=(Fn&&void 0!==Fn.prefix?Fn.prefix:"")+("$"===qn?E:"#"===qn&&/[boxX]/.test(qi)?"0"+qi.toLowerCase():""),Rr=("$"===qn?y:/[%p]/.test(qi)?ue:"")+(Fn&&void 0!==Fn.suffix?Fn.suffix:""),Po=g1[qi],xr=/[defgprs%]/.test(qi);function jr(Da){var No,bs,ls,Or=kr,nr=Rr;if("c"===qi)nr=Po(Da)+nr,Da="";else{var dl=(Da=+Da)<0||1/Da<0;if(Da=isNaN(Da)?Ut:Po(Math.abs(Da),ga),Na&&(Da=function Qh(v){e:for(var B,O=v.length,E=1,y=-1;E0&&(y=0)}return y>0?v.slice(0,y)+v.slice(B+1):v}(Da)),dl&&0==+Da&&"+"!==Ji&&(dl=!1),Or=(dl?"("===Ji?Ji:Xe:"-"===Ji||"("===Ji?"":Ji)+Or,nr=("s"!==qi||isNaN(Da)||void 0===Yo?"":q2[8+Yo/3])+nr+(dl&&"("===Ji?")":""),xr)for(No=-1,bs=Da.length;++No(ls=Da.charCodeAt(No))||ls>57){nr=(46===ls?B+Da.slice(No+1):Da.slice(No))+nr,Da=Da.slice(0,No);break}}ta&&!Gi&&(Da=O(Da,1/0));var cs=Or.length+Da.length+nr.length,or=cs>1)+Or+Da+nr+or.slice(cs);break;default:Da=or+Or+Da+nr}return G(Da)}return ga=void 0===ga?6:/[gprs]/.test(qi)?Math.max(1,Math.min(21,ga)):Math.max(0,Math.min(20,ga)),jr.toString=function(){return Pn+""},jr}return{format:Qt,formatPrefix:function pn(Pn,Fn){var xi=3*Math.max(-8,Math.min(8,Math.floor(Tc(Fn)/3))),yi=Math.pow(10,-xi),Ji=Qt(((Pn=Nc(Pn)).type="f",Pn),{suffix:q2[8+xi/3]});return function(qn){return Ji(yi*qn)}}}}(v),y0=Ld.format,$h=Ld.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class tu extends Map{constructor(O,E=iu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),null!=O)for(const[y,B]of O)this.set(y,B)}get(O){return super.get(ld(this,O))}has(O){return super.has(ld(this,O))}set(O,E){return super.set(function Bc({_intern:v,_key:O},E){const y=O(E);return v.has(y)?v.get(y):(v.set(y,E),E)}(this,O),E)}delete(O){return super.delete(function v1({_intern:v,_key:O},E){const y=O(E);return v.has(y)&&(E=v.get(y),v.delete(y)),E}(this,O))}}function ld({_intern:v,_key:O},E){const y=O(E);return v.has(y)?v.get(y):E}function iu(v){return null!==v&&"object"==typeof v?v.valueOf():v}Set;const x0=Symbol("implicit");function y1(){var v=new tu,O=[],E=[],y=x0;function B(G){let ue=v.get(G);if(void 0===ue){if(y!==x0)return y;v.set(G,ue=O.push(G)-1)}return E[ue%E.length]}return B.domain=function(G){if(!arguments.length)return O.slice();O=[],v=new tu;for(const ue of G)v.has(ue)||v.set(ue,O.push(ue)-1);return B},B.range=function(G){return arguments.length?(E=Array.from(G),B):E.slice()},B.unknown=function(G){return arguments.length?(y=G,B):y},B.copy=function(){return y1(O,E).unknown(y)},rd.apply(B,arguments),B}function zc(){var G,ue,v=y1().unknown(void 0),O=v.domain,E=v.range,y=0,B=1,Xe=!1,Ut=0,Qt=0,pn=.5;function Pn(){var Fn=O().length,xi=B=1)return+E(v[y-1],y-1,v);var y,B=(y-1)*O,G=Math.floor(B),ue=+E(v[G],G,v);return ue+(+E(v[G+1],G+1,v)-ue)*(B-G)}}function kd(){var y,v=[],O=[],E=[];function B(){var ue=0,Xe=Math.max(1,O.length);for(E=new Array(Xe-1);++ue0?E[Xe-1]:v[0],Xe({model:v});function a3(v,O){}function yu(v,O){if(1&v&&(i.j41(0,"span"),i.DNE(1,a3,0,0,"ng-template",5),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngTemplateOutlet",E.template)("ngTemplateOutletContext",i.eq3(2,vu,E.context))}}function k0(v,O){if(1&v&&i.nrm(0,"span",6),2&v){const E=i.XpG();i.Y8G("innerHTML",E.title,i.npT)}}function R0(v,O){if(1&v&&(i.j41(0,"header",4)(1,"span",5),i.EFF(2),i.k0s()()),2&v){const E=i.XpG();i.R7$(2),i.JRh(E.title)}}function O0(v,O){if(1&v){const E=i.RV6();i.j41(0,"li",6)(1,"ngx-charts-legend-entry",7),i.bIt("select",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.labelClick.emit(B))})("activate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.activate(B))})("deactivate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.deactivate(B))}),i.k0s()()}if(2&v){const E=O.$implicit,y=i.XpG();i.R7$(),i.Y8G("label",E.label)("formattedLabel",E.formattedLabel)("color",E.color)("isActive",y.isActive(E))}}const P0=["*"];function uf(v,O){if(1&v&&i.nrm(0,"ngx-charts-scale-legend",4),2&v){const E=i.XpG();i.Y8G("horizontal",E.legendOptions&&E.legendOptions.position===E.LegendPosition.Below)("valueRange",E.legendOptions.domain)("colors",E.legendOptions.colors)("height",E.view[1])("width",E.legendWidth)}}function hf(v,O){if(1&v){const E=i.RV6();i.j41(0,"ngx-charts-legend",5),i.bIt("labelClick",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.legendLabelClick.emit(B))})("labelActivate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.legendLabelActivate.emit(B))})("labelDeactivate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.legendLabelDeactivate.emit(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("horizontal",E.legendOptions&&E.legendOptions.position===E.LegendPosition.Below)("data",E.legendOptions.domain)("title",E.legendOptions.title)("colors",E.legendOptions.colors)("height",E.view[1])("width",E.legendWidth)("activeEntries",E.activeEntries)}}const ff=["ngx-charts-axis-label",""],bu=["ticksel"],N0=["ngx-charts-x-axis-ticks",""];function mf(v,O){1&v&&(g.qSk(),i.eu8(0))}function M1(v,O){if(1&v&&(g.qSk(),i.j41(0,"tspan",12),i.EFF(1),i.k0s()),2&v){const E=O.$implicit;i.BMQ("y",12*O.index),i.R7$(),i.SpI(" ",E," ")}}function pf(v,O){if(1&v&&(g.qSk(),i.qex(0),i.DNE(1,M1,2,2,"tspan",11),i.bVm()),2&v){const E=O.ngIf;i.R7$(),i.Y8G("ngForOf",E)}}function E1(v,O){if(1&v&&i.DNE(0,pf,2,1,"ng-container",8),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.Y8G("ngIf",y.tickChunks(E))}}function w1(v,O){if(1&v&&i.EFF(0),2&v){const E=i.XpG().ngIf,y=i.XpG(2);i.SpI(" ",y.tickTrim(E)," ")}}function r3(v,O){if(1&v&&(g.qSk(),i.qex(0),i.j41(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",9),i.DNE(4,mf,1,0,"ng-container",10),i.k0s(),i.DNE(5,E1,1,1,"ng-template",null,1,i.C5r)(7,w1,1,1,"ng-template",null,2,i.C5r),i.bVm()),2&v){const E=O.ngIf,y=i.sdS(6),B=i.sdS(8),G=i.XpG(2);i.R7$(2),i.JRh(E),i.R7$(),i.BMQ("text-anchor",G.textAnchor)("transform",G.textTransform),i.R7$(),i.Y8G("ngIf",G.isWrapTicksSupported)("ngIfThen",y)("ngIfElse",B)}}function xu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",7),i.DNE(1,r3,9,6,"ng-container",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.tickTransform(E)),i.R7$(),i.Y8G("ngIf",y.tickFormat(E))}}function Od(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.nrm(1,"line",13),i.k0s()),2&v){const E=i.XpG(2);i.BMQ("transform",E.gridLineTransform()),i.R7$(),i.BMQ("y1",-E.gridLineHeight)}}function S1(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Od,2,2,"g",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.tickTransform(E)),i.R7$(),i.Y8G("ngIf",y.showGridLines)}}function gf(v,O){if(1&v&&(g.qSk(),i.nrm(0,"path",14)),2&v){const E=i.XpG();i.BMQ("d",E.referenceAreaPath)("transform",E.gridLineTransform())}}function F0(v,O){if(1&v&&(g.qSk(),i.j41(0,"g")(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",17),i.EFF(4),i.k0s()()),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.R7$(2),i.JRh(y.tickTrim(y.tickFormat(E.value))),i.R7$(2),i.SpI(" ",E.name," ")}}function _f(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.nrm(1,"line",16),i.DNE(2,F0,5,2,"g",8),i.k0s()),2&v){const E=i.XpG().$implicit,y=i.XpG();i.BMQ("transform",y.transform(E.value)),i.R7$(),i.BMQ("y2",25+y.gridLineHeight)("transform",y.gridLineTransform()),i.R7$(),i.Y8G("ngIf",y.showRefLabels)}}function T1(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",15),i.DNE(1,_f,3,4,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngIf",E.showRefLines)}}const vf=["ngx-charts-x-axis",""];function dc(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.emitTicksHeight(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("trimTicks",E.trimTicks)("rotateTicks",E.rotateTicks)("maxTickLength",E.maxTickLength)("tickFormatting",E.tickFormatting)("tickArguments",E.tickArguments)("tickStroke",E.tickStroke)("scale",E.xScale)("orient",E.xOrient)("showGridLines",E.showGridLines)("gridLineHeight",E.dims.height)("referenceLines",E.referenceLines)("showRefLines",E.showRefLines)("showRefLabels",E.showRefLabels)("width",E.dims.width)("tickValues",E.ticks)("wrapTicks",E.wrapTicks)}}function Gc(v,O){if(1&v&&(g.qSk(),i.nrm(0,"g",3)),2&v){const E=i.XpG();i.Y8G("label",E.labelText)("offset",E.labelOffset)("orient",E.orientation.Bottom)("height",E.dims.height)("width",E.dims.width)}}const s3=["ngx-charts-y-axis-ticks",""];function o3(v,O){1&v&&(g.qSk(),i.eu8(0))}function Pd(v,O){if(1&v&&(g.qSk(),i.j41(0,"tspan",13),i.EFF(1),i.k0s()),2&v){const E=O.$implicit,y=O.index,B=i.XpG(6);i.BMQ("y",y*(8+B.tickSpacing)),i.R7$(),i.SpI(" ",E," ")}}function yf(v,O){if(1&v&&(g.qSk(),i.qex(0),i.DNE(1,Pd,2,2,"tspan",12),i.bVm()),2&v){const E=i.XpG().ngIf;i.R7$(),i.Y8G("ngForOf",E)}}function Cu(v,O){if(1&v&&(g.qSk(),i.qex(0),i.DNE(1,yf,2,1,"ng-container",11),i.bVm()),2&v){const E=O.ngIf;i.XpG(2);const y=i.sdS(8);i.R7$(),i.Y8G("ngIf",E.length>1)("ngIfElse",y)}}function Mu(v,O){if(1&v&&i.DNE(0,Cu,2,2,"ng-container",8),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.Y8G("ngIf",y.tickChunks(E))}}function Eu(v,O){if(1&v&&i.EFF(0),2&v){const E=i.XpG().ngIf,y=i.XpG(2);i.SpI(" ",y.tickTrim(E)," ")}}function bf(v,O){if(1&v&&(g.qSk(),i.qex(0),i.j41(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",9),i.DNE(4,o3,1,0,"ng-container",10),i.k0s(),i.DNE(5,Mu,1,1,"ng-template",null,1,i.C5r)(7,Eu,1,1,"ng-template",null,2,i.C5r),i.bVm()),2&v){const E=O.ngIf,y=i.sdS(6),B=i.sdS(8),G=i.XpG(2);i.R7$(2),i.JRh(E),i.R7$(),i.xc7("font-size","12px"),i.BMQ("dy",G.dy)("x",G.x1)("y",G.y1)("text-anchor",G.textAnchor),i.R7$(),i.Y8G("ngIf",G.wrapTicks)("ngIfThen",y)("ngIfElse",B)}}function wu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",7),i.DNE(1,bf,9,10,"ng-container",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.transform(E)),i.R7$(),i.Y8G("ngIf",y.tickFormat(E))}}function xf(v,O){if(1&v&&(g.qSk(),i.nrm(0,"path",14)),2&v){const E=i.XpG();i.BMQ("d",E.referenceAreaPath)("transform",E.gridLineTransform())}}function Su(v,O){if(1&v&&(g.qSk(),i.nrm(0,"line",16)),2&v){const E=i.XpG(3);i.BMQ("x2",E.gridLineWidth)}}function Cf(v,O){if(1&v&&(g.qSk(),i.nrm(0,"line",16)),2&v){const E=i.XpG(3);i.BMQ("x2",-E.gridLineWidth)}}function B0(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Su,1,1,"line",15)(2,Cf,1,1,"line",15),i.k0s()),2&v){const E=i.XpG(2);i.BMQ("transform",E.gridLineTransform()),i.R7$(),i.Y8G("ngIf",E.orient===E.Orientation.Left),i.R7$(),i.Y8G("ngIf",E.orient===E.Orientation.Right)}}function Fm(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,B0,3,3,"g",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.transform(E)),i.R7$(),i.Y8G("ngIf",y.showGridLines)}}function Tu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g")(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",19),i.EFF(4),i.k0s()()),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.R7$(2),i.JRh(y.tickTrim(y.tickFormat(E.value))),i.R7$(),i.BMQ("dy",y.dy)("y",-6)("x",y.gridLineWidth)("text-anchor",y.textAnchor),i.R7$(),i.SpI(" ",E.name," ")}}function l3(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.nrm(1,"line",18),i.DNE(2,Tu,5,6,"g",8),i.k0s()),2&v){const E=i.XpG().$implicit,y=i.XpG();i.BMQ("transform",y.transform(E.value)),i.R7$(),i.BMQ("x2",y.gridLineWidth),i.R7$(),i.Y8G("ngIf",y.showRefLabels)}}function z0(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",17),i.DNE(1,l3,3,3,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngIf",E.showRefLines)}}const U0=["ngx-charts-y-axis",""];function ho(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.emitTicksWidth(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("trimTicks",E.trimTicks)("maxTickLength",E.maxTickLength)("tickFormatting",E.tickFormatting)("tickArguments",E.tickArguments)("tickValues",E.ticks)("tickStroke",E.tickStroke)("scale",E.yScale)("orient",E.yOrient)("showGridLines",E.showGridLines)("gridLineWidth",E.dims.width)("referenceLines",E.referenceLines)("showRefLines",E.showRefLines)("showRefLabels",E.showRefLabels)("height",E.dims.height)("wrapTicks",E.wrapTicks)}}function Du(v,O){if(1&v&&(g.qSk(),i.nrm(0,"g",3)),2&v){const E=i.XpG();i.Y8G("label",E.labelText)("offset",E.labelOffset)("orient",E.yOrient)("height",E.dims.height)("width",E.dims.width)}}const Mf=["ngx-charts-svg-linear-gradient",""];function cd(v,O){if(1&v&&(g.qSk(),i.nrm(0,"stop")),2&v){const E=O.$implicit;i.xc7("stop-color",E.color)("stop-opacity",E.opacity),i.BMQ("offset",E.offset+"%")}}const ku=["ngx-charts-grid-panel",""],Ru=["ngx-charts-grid-panel-series",""];function Hc(v,O){if(1&v&&(g.qSk(),i.nrm(0,"g",1)),2&v){const E=O.$implicit;i.AVh("grid-panel",!0)("odd","odd"===E.class)("even","even"===E.class),i.Y8G("height",E.height)("width",E.width)("x",E.x)("y",E.y)}}const Lf=["tooltipTemplate"],ud=(v,O)=>[v,O],Nu=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .node,.ngx-charts .link,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .node.active,.ngx-charts .node:hover,.ngx-charts .link.active,.ngx-charts .link:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .node:focus,.ngx-charts .link:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .node.hidden,.ngx-charts .link.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",Nf=["ngx-charts-bar",""];function Ff(v,O){if(1&v&&(g.qSk(),i.j41(0,"defs"),i.nrm(1,"g",2),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("orientation",E.orientation)("name",E.gradientId)("stops",E.gradientStops)}}const Bf=["ngx-charts-bar-label",""],q0=["ngx-charts-series-vertical",""];function e2(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("select",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.onClick(B))})("activate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.activate.emit(B))})("deactivate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.deactivate.emit(B))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("@animationState","active")("@.disabled",!y.animations)("width",E.width)("height",E.height)("x",E.x)("y",E.y)("fill",E.color)("stops",E.gradientStops)("data",E.data)("orientation",y.barOrientation.Vertical)("roundEdges",E.roundEdges)("gradient",y.gradient)("ariaLabel",E.ariaLabel)("isActive",y.isActive(E.data))("tooltipDisabled",y.tooltipDisabled)("tooltipPlacement",y.tooltipPlacement)("tooltipType",y.tooltipType)("tooltipTitle",y.tooltipTemplate?void 0:E.tooltipText)("tooltipTemplate",y.tooltipTemplate)("tooltipContext",E.data)("noBarWhenZero",y.noBarWhenZero)("animations",y.animations)}}function Vu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,e2,1,22,"g",1),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.bars)("ngForTrackBy",E.trackBy)}}function y3(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("select",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.onClick(B))})("activate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.activate.emit(B))})("deactivate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.deactivate.emit(B))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("width",E.width)("height",E.height)("x",E.x)("y",E.y)("fill",E.color)("stops",E.gradientStops)("data",E.data)("orientation",y.barOrientation.Vertical)("roundEdges",E.roundEdges)("gradient",y.gradient)("ariaLabel",E.ariaLabel)("isActive",y.isActive(E.data))("tooltipDisabled",y.tooltipDisabled)("tooltipPlacement",y.tooltipPlacement)("tooltipType",y.tooltipType)("tooltipTitle",y.tooltipTemplate?void 0:E.tooltipText)("tooltipTemplate",y.tooltipTemplate)("tooltipContext",E.data)("noBarWhenZero",y.noBarWhenZero)("animations",y.animations)}}function b3(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,y3,1,20,"g",1),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.bars)("ngForTrackBy",E.trackBy)}}function Gu(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",4),i.bIt("dimensionsChanged",function(B){const G=g.eBV(E).index,ue=i.XpG(2);return g.Njj(ue.dataLabelHeightChanged.emit({size:B,index:G}))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("barX",E.x)("barY",E.y)("barWidth",E.width)("barHeight",E.height)("value",E.total)("valueFormatting",y.dataLabelFormatting)("orientation",y.barOrientation.Vertical)}}function Hu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Gu,1,7,"g",3),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.barsForDataLabels)("ngForTrackBy",E.trackDataLabelBy)}}function ju(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",5),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateXAxisHeight(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("xScale",E.xScale)("dims",E.dims)("showGridLines",E.showGridLines)("showLabel",E.showXAxisLabel)("labelText",E.xAxisLabel)("trimTicks",E.trimXAxisTicks)("rotateTicks",E.rotateXAxisTicks)("maxTickLength",E.maxXAxisTickLength)("tickFormatting",E.xAxisTickFormatting)("ticks",E.xAxisTicks)("xAxisOffset",E.dataLabelMaxHeight.negative)("wrapTicks",E.wrapTicks)}}function x3(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",6),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateYAxisWidth(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("yScale",E.yScale)("dims",E.dims)("showGridLines",E.showGridLines)("showLabel",E.showYAxisLabel)("labelText",E.yAxisLabel)("trimTicks",E.trimYAxisTicks)("maxTickLength",E.maxYAxisTickLength)("tickFormatting",E.yAxisTickFormatting)("ticks",E.yAxisTicks)("referenceLines",E.referenceLines)("showRefLines",E.showRefLines)("showRefLabels",E.showRefLabels)("wrapTicks",E.wrapTicks)}}function Wu(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",6),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateXAxisHeight(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("xScale",E.groupScale)("dims",E.dims)("showLabel",E.showXAxisLabel)("labelText",E.xAxisLabel)("trimTicks",E.trimXAxisTicks)("rotateTicks",E.rotateXAxisTicks)("maxTickLength",E.maxXAxisTickLength)("tickFormatting",E.xAxisTickFormatting)("ticks",E.xAxisTicks)("xAxisOffset",E.dataLabelMaxHeight.negative)("wrapTicks",E.wrapTicks)}}function Xf(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",7),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateYAxisWidth(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("yScale",E.valueScale)("dims",E.dims)("showGridLines",E.showGridLines)("showLabel",E.showYAxisLabel)("labelText",E.yAxisLabel)("trimTicks",E.trimYAxisTicks)("maxTickLength",E.maxYAxisTickLength)("tickFormatting",E.yAxisTickFormatting)("ticks",E.yAxisTicks)("wrapTicks",E.wrapTicks)}}function Kf(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",9),i.bIt("select",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onClick(B,G))})("activate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onActivate(B,G))})("deactivate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onDeactivate(B,G))})("dataLabelHeightChanged",function(B){const G=g.eBV(E).index,ue=i.XpG(2);return g.Njj(ue.onDataLabelMaxHeightChanged(B,G))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("@animationState","active")("activeEntries",y.activeEntries)("xScale",y.innerScale)("yScale",y.valueScale)("colors",y.colors)("series",E.series)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("seriesName",E.name)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero),i.BMQ("transform",y.groupTransform(E))}}function Yf(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Kf,1,17,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.results)("ngForTrackBy",E.trackBy)}}function Xu(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",9),i.bIt("select",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onClick(B,G))})("activate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onActivate(B,G))})("deactivate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onDeactivate(B,G))})("dataLabelHeightChanged",function(B){const G=g.eBV(E).index,ue=i.XpG(2);return g.Njj(ue.onDataLabelMaxHeightChanged(B,G))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("activeEntries",y.activeEntries)("xScale",y.innerScale)("yScale",y.valueScale)("colors",y.colors)("series",E.series)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("seriesName",E.name)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero),i.BMQ("transform",y.groupTransform(E))}}function Ku(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Xu,1,16,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.results)("ngForTrackBy",E.trackBy)}}function o2(v,O,E){E=E||{};let y,B,G,ue=null,Xe=0;function Ut(){Xe=!1===E.leading?0:+new Date,ue=null,G=v.apply(y,B)}return function(){const Qt=+new Date;!Xe&&!1===E.leading&&(Xe=Qt);const pn=O-(Qt-Xe);return y=this,B=arguments,pn<=0?(clearTimeout(ue),ue=null,Xe=Qt,G=v.apply(y,B)):!ue&&!1!==E.trailing&&(ue=setTimeout(Ut,pn)),G}}function rp(v,O){return function(y,B,G){return{configurable:!0,enumerable:G.enumerable,get:function(){return Object.defineProperty(this,B,{configurable:!0,enumerable:G.enumerable,value:o2(G.value,v,O)}),this[B]}}}}var Ua=function(v){return v.Top="top",v.Bottom="bottom",v.Left="left",v.Right="right",v.Center="center",v}(Ua||{});function T3(v,O,E){return E===Ua.Top?v.top-7:E===Ua.Bottom?v.top+v.height-O.height+7:E===Ua.Center?v.top+v.height/2-O.height/2:void 0}function i4(v,O,E){return E===Ua.Left?v.left-7:E===Ua.Right?v.left+v.width-O.width+7:E===Ua.Center?v.left+v.width/2-O.width/2:void 0}class Qo{static calculateVerticalAlignment(O,E,y){let B=T3(O,E,y);return B+E.height>window.innerHeight&&(B=window.innerHeight-E.height),B}static calculateVerticalCaret(O,E,y,B){let G;B===Ua.Top&&(G=O.height/2-y.height/2+7),B===Ua.Bottom&&(G=E.height-O.height/2-y.height/2-7),B===Ua.Center&&(G=E.height/2-y.height/2);const ue=T3(O,E,B);return ue+E.height>window.innerHeight&&(G+=ue+E.height-window.innerHeight),G}static calculateHorizontalAlignment(O,E,y){let B=i4(O,E,y);return B+E.width>window.innerWidth&&(B=window.innerWidth-E.width),B}static calculateHorizontalCaret(O,E,y,B){let G;B===Ua.Left&&(G=O.width/2-y.width/2+7),B===Ua.Right&&(G=E.width-O.width/2-y.width/2-7),B===Ua.Center&&(G=E.width/2-y.width/2);const ue=i4(O,E,B);return ue+E.width>window.innerWidth&&(G+=ue+E.width-window.innerWidth),G}static shouldFlip(O,E,y,B){let G=!1;return y===Ua.Right&&O.left+O.width+E.width+B>window.innerWidth&&(G=!0),y===Ua.Left&&O.left-E.width-B<0&&(G=!0),y===Ua.Top&&O.top-E.height-B<0&&(G=!0),y===Ua.Bottom&&O.top+O.height+E.height+B>window.innerHeight&&(G=!0),G}static positionCaret(O,E,y,B,G){let ue=0,Xe=0;return O===Ua.Right?(Xe=-7,ue=Qo.calculateVerticalCaret(y,E,B,G)):O===Ua.Left?(Xe=E.width,ue=Qo.calculateVerticalCaret(y,E,B,G)):O===Ua.Top?(ue=E.height,Xe=Qo.calculateHorizontalCaret(y,E,B,G)):O===Ua.Bottom&&(ue=-7,Xe=Qo.calculateHorizontalCaret(y,E,B,G)),{top:ue,left:Xe}}static positionContent(O,E,y,B,G){let ue=0,Xe=0;return O===Ua.Right?(Xe=y.left+y.width+B,ue=Qo.calculateVerticalAlignment(y,E,G)):O===Ua.Left?(Xe=y.left-E.width-B,ue=Qo.calculateVerticalAlignment(y,E,G)):O===Ua.Top?(ue=y.top-E.height-B,Xe=Qo.calculateHorizontalAlignment(y,E,G)):O===Ua.Bottom&&(ue=y.top+y.height+B,Xe=Qo.calculateHorizontalAlignment(y,E,G)),{top:ue,left:Xe}}static determinePlacement(O,E,y,B){if(Qo.shouldFlip(y,E,O,B)){if(O===Ua.Right)return Ua.Left;if(O===Ua.Left)return Ua.Right;if(O===Ua.Top)return Ua.Bottom;if(O===Ua.Bottom)return Ua.Top}return O}}let sp=(()=>{var v;class O{get cssClasses(){let y="ngx-charts-tooltip-content";return y+=` position-${this.placement}`,y+=` type-${this.type}`,y+=` ${this.cssClass}`,y}constructor(y,B,G){this.element=y,this.renderer=B,this.platformId=G}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,o.UE)(this.platformId))return;const y=this.element.nativeElement,B=this.host.nativeElement.getBoundingClientRect();if(!B.height&&!B.width)return;const G=y.getBoundingClientRect();this.checkFlip(B,G),this.positionContent(y,B,G),this.showCaret&&this.positionCaret(B,G),setTimeout(()=>this.renderer.addClass(y,"animate"),1)}positionContent(y,B,G){const{top:ue,left:Xe}=Qo.positionContent(this.placement,G,B,this.spacing,this.alignment);this.renderer.setStyle(y,"top",`${ue}px`),this.renderer.setStyle(y,"left",`${Xe}px`)}positionCaret(y,B){const G=this.caretElm.nativeElement,ue=G.getBoundingClientRect(),{top:Xe,left:Ut}=Qo.positionCaret(this.placement,B,y,ue,this.alignment);this.renderer.setStyle(G,"top",`${Xe}px`),this.renderer.setStyle(G,"left",`${Ut}px`)}checkFlip(y,B){this.placement=Qo.determinePlacement(this.placement,B,y,this.spacing)}onWindowResize(){this.position()}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-tooltip-content"]],viewQuery:function(B,G){if(1&B&&i.GBs(_u,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.caretElm=ue.first)}},hostVars:2,hostBindings:function(B,G){1&B&&i.bIt("resize",function(){return G.onWindowResize()},i.tSv),2&B&&i.HbH(G.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},standalone:!1,decls:6,vars:6,consts:[["caretElm",""],[3,"hidden"],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(B,G){1&B&&(i.j41(0,"div"),i.nrm(1,"span",1,0),i.j41(3,"div",2),i.DNE(4,yu,2,4,"span",3)(5,k0,1,1,"span",4),i.k0s()()),2&B&&(i.R7$(),i.HbH(i.VkB("tooltip-caret position-",G.placement)),i.Y8G("hidden",!G.showCaret),i.R7$(3),i.Y8G("ngIf",!G.title),i.R7$(),i.Y8G("ngIf",G.title))},dependencies:[D.bT,D.T3],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:#000000bf;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:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translateZ(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}))}return v(),(0,e.Cg)([rp(100)],O.prototype,"onWindowResize",null),O})();class D3{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,E){E=this.assignDefaults(E);const y=this.injectComponent(O,E);return this.register(O,y),y}destroy(O){const E=this.components.get(O.componentType);if(E&&E.length){const y=E.indexOf(O);y>-1&&(E[y].destroy(),E.splice(y,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const E=this.components.get(O);if(E&&E.length){let y=E.length-1;for(;y>=0;)this.destroy(E[y--])}}injectComponent(O,E){return this.injectionService.appendComponent(O,E)}assignDefaults(O){const E={...this.defaults.inputs},y={...this.defaults.outputs};return!O.inputs&&!O.outputs&&(O={inputs:O}),E&&(O.inputs={...E,...O.inputs}),y&&(O.outputs={...y,...O.outputs}),O}register(O,E){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(E)}}let Ju=(()=>{var v;class O{static setGlobalRootViewContainer(y){O.globalRootViewContainer=y}constructor(y,B){this.applicationRef=y,this.injector=B}getRootViewContainer(){if(this._container)return this._container;if(O.globalRootViewContainer)return O.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(y){this._container=y}getComponentRootNode(y){return function A3(v){return v.element}(y)?y.element.nativeElement:y.hostView&&y.hostView.rootNodes.length>0?y.hostView.rootNodes[0]:y.location.nativeElement}getRootViewContainerNode(y){return this.getComponentRootNode(y)}projectComponentBindings(y,B){if(B){if(void 0!==B.inputs){const G=Object.getOwnPropertyNames(B.inputs);for(const ue of G)y.instance[ue]=B.inputs[ue]}if(void 0!==B.outputs){const G=Object.getOwnPropertyNames(B.outputs);for(const ue of G)y.instance[ue]=B.outputs[ue]}}return y}appendComponent(y,B={},G){G||(G=this.getRootViewContainer());const ue=this.getComponentRootNode(G),Xe=new A.aI(ue,this.applicationRef,this.injector),Ut=new A.A8(y),Qt=Xe.attach(Ut);return this.projectComponentBindings(Qt,B),Qt}static#e=v=()=>(this.globalRootViewContainer=null,this.\u0275fac=function(B){return new(B||O)(g.KVO(i.o8S),g.KVO(g.zZn))},this.\u0275prov=g.jDH({token:O,factory:O.\u0275fac}))}return v(),O})(),l2=(()=>{var v;class O extends D3{constructor(y){super(y),this.type=sp}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(g.KVO(Ju))},this.\u0275prov=g.jDH({token:O,factory:O.\u0275fac}))}return v(),O})();var Ic=function(v){return v.Right="right",v.Below="below",v}(Ic||{}),c2=function(v){return v.ScaleLegend="scaleLegend",v.Legend="legend",v}(c2||{}),fa=function(v){return v.Time="time",v.Linear="linear",v.Ordinal="ordinal",v.Quantile="quantile",v}(fa||{});function jd(v){return v instanceof Date?v.toLocaleDateString():v.toLocaleString()}let a4=(()=>{var v;class O{constructor(){this.isActive=!1,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.toggle=new i.bkB}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(B,G){1&B&&i.bIt("mouseenter",function(){return G.onMouseEnter()})("mouseleave",function(){return G.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},standalone:!1,decls:4,vars:6,consts:[["tabindex","-1",3,"click","title"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(B,G){1&B&&(i.j41(0,"span",0),i.bIt("click",function(){return G.select.emit(G.formattedLabel)}),i.j41(1,"span",1),i.bIt("click",function(){return G.toggle.emit(G.formattedLabel)}),i.k0s(),i.j41(2,"span",2),i.EFF(3),i.k0s()()),2&B&&(i.AVh("active",G.isActive),i.Y8G("title",G.formattedLabel),i.R7$(),i.xc7("background-color",G.color),i.R7$(2),i.SpI(" ",G.trimmedLabel," "))},encapsulation:2,changeDetection:0}))}return v(),O})(),r4=(()=>{var v;class O{constructor(y){this.cd=y,this.horizontal=!1,this.labelClick=new i.bkB,this.labelActivate=new i.bkB,this.labelDeactivate=new i.bkB,this.legendEntries=[]}ngOnChanges(y){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const y=[];for(const B of this.data){const G=jd(B);-1===y.findIndex(Xe=>Xe.label===G)&&y.push({label:B,formattedLabel:G,color:this.colors.getColor(B)})}return y}isActive(y){return!!this.activeEntries&&void 0!==this.activeEntries.find(G=>y.label===G.name)}activate(y){this.labelActivate.emit(y)}deactivate(y){this.labelDeactivate.emit(y)}trackBy(y,B){return B.label}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(p.gRc))},this.\u0275cmp=i.VBU({type:O,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"},standalone:!1,features:[i.OA$],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,"select","activate","deactivate","label","formattedLabel","color","isActive"]],template:function(B,G){1&B&&(i.j41(0,"div"),i.DNE(1,R0,3,1,"header",0),i.j41(2,"div",1)(3,"ul",2),i.DNE(4,O0,2,4,"li",3),i.k0s()()()),2&B&&(i.xc7("width",G.width,"px"),i.R7$(),i.Y8G("ngIf",(null==G.title?null:G.title.length)>0),i.R7$(2),i.xc7("max-height",G.height-45,"px"),i.AVh("horizontal-legend",G.horizontal),i.R7$(),i.Y8G("ngForOf",G.legendEntries)("ngForTrackBy",G.trackBy))},dependencies:[D.Sq,D.bT,a4],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:#0000000d}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;-webkit-transition:.2s;-moz-transition:.2s;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}))}return v(),O})(),L3=(()=>{var v;class O{constructor(){this.horizontal=!1}ngOnChanges(y){const B=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${B})`}gradientString(y,B){B.push(1);const G=[];return y.reverse().forEach((ue,Xe)=>{G.push(`${ue} ${Math.round(100*B[Xe])}%`)}),G.join(", ")}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},standalone:!1,features:[i.OA$],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(B,G){1&B&&(i.j41(0,"div",0)(1,"div",1)(2,"span"),i.EFF(3),i.k0s()(),i.nrm(4,"div",2),i.j41(5,"div",1)(6,"span"),i.EFF(7),i.k0s()()()),2&B&&(i.xc7("height",G.horizontal?void 0:G.height,"px")("width",G.width,"px"),i.AVh("horizontal-legend",G.horizontal),i.R7$(3),i.JRh(G.valueRange[1].toLocaleString()),i.R7$(),i.xc7("background",G.gradient),i.R7$(3),i.JRh(G.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}))}return v(),O})(),s4=(()=>{var v;class O{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new i.bkB,this.legendLabelActivate=new i.bkB,this.legendLabelDeactivate=new i.bkB,this.LegendPosition=Ic,this.LegendType=c2}ngOnChanges(y){this.update()}update(){let y=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Ic.Right)&&(y=this.legendType===c2.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-y)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Ic.Right?this.chartWidth:Math.floor(this.view[0]*y/12)}getLegendType(){return this.legendOptions.scaleType===fa.Linear?c2.ScaleLegend:c2.Legend}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},standalone:!1,features:[i.Jv_([l2]),i.OA$],ngContentSelectors:P0,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"labelClick","labelActivate","labelDeactivate","horizontal","data","title","colors","height","width","activeEntries"]],template:function(B,G){1&B&&(i.NAR(),i.j41(0,"div",0),g.qSk(),i.j41(1,"svg",1),i.SdG(2),i.k0s(),i.DNE(3,uf,1,5,"ngx-charts-scale-legend",2)(4,hf,1,7,"ngx-charts-legend",3),i.k0s()),2&B&&(i.xc7("width",G.view[0],"px")("height",G.view[1],"px"),i.R7$(),i.BMQ("width",G.chartWidth)("height",G.view[1]),i.R7$(2),i.Y8G("ngIf",G.showLegend&&G.legendType===G.LegendType.ScaleLegend),i.R7$(),i.Y8G("ngIf",G.showLegend&&G.legendType===G.LegendType.Legend))},dependencies:[D.bT,r4,L3],encapsulation:2,changeDetection:0}))}return v(),O})(),o4=(()=>{var v;class O{constructor(y,B){this.element=y,this.zone=B,this.visible=new i.bkB,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const y=()=>{if(!this.element)return;const{offsetHeight:B,offsetWidth:G}=this.element.nativeElement;B&&G?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>y(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>y())})}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT),i.rXU(i.SKi))},this.\u0275dir=i.FsC({type:O,selectors:[["visibility-observer"]],outputs:{visible:"visible"},standalone:!1}))}return v(),O})();function eh(v){return"[object Date]"===toString.call(v)}let d2=(()=>{var v;class O{constructor(y,B,G,ue){this.chartElement=y,this.zone=B,this.cd=G,this.platformId=ue,this.scheme="cool",this.schemeType=fa.Ordinal,this.animations=!0,this.select=new i.bkB}ngOnInit(){(0,o.Vy)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new o4(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(y){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 y=this.getContainerDims();y&&(this.width=y.width,this.height=y.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 y,B;const G=this.chartElement.nativeElement;if((0,o.UE)(this.platformId)&&null!==G.parentNode){const ue=G.parentNode.getBoundingClientRect();y=ue.width,B=ue.height}return y&&B?{width:y,height:B}:null}formatDates(){for(let y=0;y{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=B}cloneData(y){const B=[];for(const G of y){const ue={};if(void 0!==G.name&&(ue.name=G.name),void 0!==G.value&&(ue.value=G.value),void 0!==G.series){ue.series=[];for(const Xe of G.series){const Ut=Object.assign({},Xe);ue.series.push(Ut)}}void 0!==G.extra&&(ue.extra=JSON.parse(JSON.stringify(G.extra))),void 0!==G.source&&(ue.source=G.source),void 0!==G.target&&(ue.target=G.target),B.push(ue)}return B}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(p.gRc),i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},standalone:!1,features:[i.OA$],decls:1,vars:0,template:function(B,G){1&B&&i.nrm(0,"div")},encapsulation:2}))}return v(),O})();var Hr=function(v){return v.Top="top",v.Bottom="bottom",v.Left="left",v.Right="right",v}(Hr||{});let I3=(()=>{var v;class O{constructor(y){this.textHeight=25,this.margin=5,this.element=y.nativeElement}ngOnChanges(y){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Hr.Top:case Hr.Bottom:this.y=this.offset,this.x=this.width/2;break;case Hr.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Hr.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},standalone:!1,features:[i.OA$],attrs:ff,decls:2,vars:6,template:function(B,G){1&B&&(g.qSk(),i.j41(0,"text"),i.EFF(1),i.k0s()),2&B&&(i.BMQ("stroke-width",G.strokeWidth)("x",G.x)("y",G.y)("text-anchor",G.textAnchor)("transform",G.transform),i.R7$(),i.SpI(" ",G.label," "))},encapsulation:2,changeDetection:0}))}return v(),O})();function l4(v,O=16){return"string"!=typeof v?"number"==typeof v?v+"":"":(v=v.trim()).length<=O?v:`${v.slice(0,O)}...`}function k3(v,O){if(v.length>O){const E=[],y=Math.floor(v.length/O);for(let B=0;B{const Xe=(G.pop()||"")+" ";return Xe.length+ue.length>O?[...G,Xe.trim(),ue.trim()]:[...G,Xe+ue]},[]);else{let G=0;for(;GE&&(B=B.splice(0,E),B[B.length-1]+="..."),B}var vl=function(v){return v.Start="start",v.Middle="middle",v.End="end",v}(vl||{});function fc(v,O,E,y,B,[G,ue,Xe,Ut]){let Qt="";return Qt=`M${[v+B,O]}`,Qt+="h"+((E=0===(E=Math.floor(E))?1:E)-2*B),Qt+=ue?`a${[B,B]} 0 0 1 ${[B,B]}`:`h${B}v${B}`,Qt+="v"+((y=0===(y=Math.floor(y))?1:y)-2*B),Qt+=Ut?`a${[B,B]} 0 0 1 ${[-B,B]}`:`v${B}h${-B}`,Qt+="h"+(2*B-E),Qt+=Xe?`a${[B,B]} 0 0 1 ${[-B,-B]}`:`h${-B}v${-B}`,Qt+="v"+(2*B-y),Qt+=G?`a${[B,B]} 0 0 1 ${[B,-B]}`:`v${-B}h${B}`,Qt+="z",Qt}let th=(()=>{var v;class O{get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}constructor(y){this.platformId=y,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new i.bkB,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=vl.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16,this.referenceLineLength=0}ngOnChanges(y){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,o.UE)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const y=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);y!==this.height&&(this.height=y,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const y=this.scale;this.adjustedScale=this.scale.bandwidth?function(ue){return this.scale(ue)+.5*this.scale.bandwidth()}:this.scale,this.ticks=this.getTicks();const B=this.orient===Hr.Top||this.orient===Hr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.orient){case Hr.Bottom:this.transform=function(ue){return"translate("+this.adjustedScale(ue)+",0)"},this.textAnchor=vl.Middle,this.x2=this.innerTickSize*B,this.x1=this.tickSpacing*B,this.dx=B<0?"0em":".71em";break;case Hr.Left:this.transform=function(ue){return"translate(0,"+this.adjustedScale(ue)+")"},this.textAnchor=vl.End,this.y2=this.innerTickSize*-B,this.y1=this.tickSpacing*-B,this.dx=".32em";break;case Hr.Top:this.transform=function(ue){return"translate("+this.adjustedScale(ue)+",0)"},this.textAnchor=vl.Middle,this.y2=this.innerTickSize*B,this.y1=this.tickSpacing*B,this.dx=B<0?"0em":".71em";break;case Hr.Right:this.transform=function(ue){return"translate(0,"+this.adjustedScale(ue)+")"},this.textAnchor=vl.Start,this.x2=this.innerTickSize*-B,this.x1=this.tickSpacing*-B,this.dx=".32em"}this.tickFormat=this.tickFormatting?this.tickFormatting:y.tickFormat?y.tickFormat.apply(y,this.tickArguments):function(ue){return"Date"===ue.constructor.name?ue.toLocaleDateString():ue.toLocaleString()};const G=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.textTransform="",G&&0!==G?(this.textTransform=`rotate(${G})`,this.textAnchor=vl.End,this.verticalSpacing=10):this.textAnchor=vl.Middle,setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(y=>y.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(y=>y.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=fc(this.refMax,25-this.gridLineHeight,this.refMin-this.refMax,this.gridLineHeight,0,[!1,!1,!1,!1])}getRotationAngle(y){let B=0;this.maxTicksLength=0;for(let Fn=0;Fnthis.maxTicksLength&&(this.maxTicksLength=yi)}const Xe=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Ut=Xe;const Qt=Math.floor(this.width/y.length);for(;Ut>Qt&&B>-90;)B-=30,Ut=Math.cos(B*(Math.PI/180))*Xe;let pn=14;if(this.isWrapTicksSupported){const Fn=this.ticks.reduce((yi,Ji)=>Ji.length>yi.length?Ji:yi,"");pn=14*(this.tickChunks(Fn).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(Fn)}const Pn=0!==B?Math.max(Math.abs(Math.sin(B*Math.PI/180))*this.maxTickLength*7,10):pn;return this.approxHeight=Math.min(Pn,200),this.showRefLines&&this.referenceLines&&this.setReferencelines(),B}getTicks(){let y;const B=this.getMaxTicks(20),G=this.getMaxTicks(100);return this.tickValues?y=this.tickValues:this.scale.ticks?y=this.scale.ticks.apply(this.scale,[G]):(y=this.scale.domain(),y=k3(y,B)),y}getMaxTicks(y){return Math.floor(this.width/y)}tickTransform(y){return"translate("+this.adjustedScale(y)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(y){return this.trimTicks?l4(y,this.maxTickLength):y}getMaxPossibleLengthForTick(y){if(this.scale.bandwidth){const G=Math.floor(this.scale.bandwidth()/7),ue=y.slice(0,G);return Math.max(ue.length,this.maxTickLength)}return this.maxTickLength}tickChunks(y){if(y.toString().length>this.maxTickLength&&this.scale.bandwidth){let G=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(G<=1)return[this.tickTrim(y)];let ue=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return(0,o.UE)(this.platformId)||(ue=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),G=Math.min(G,5),c4(y,ue,G<1?1:G)}return[this.tickTrim(y)]}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(B,G){if(1&B&&i.GBs(bu,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksElement=ue.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",wrapTicks:"wrapTicks",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:N0,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"],[1,"reference-area"],[1,"ref-line"],["y1","25",1,"refline-path","gridline-path-vertical"],["transform","rotate(-270) translate(5, -5)",1,"refline-label"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g",null,0),i.DNE(2,xu,2,2,"g",3),i.k0s(),i.DNE(3,S1,2,2,"g",4)(4,gf,1,2,"path",5)(5,T1,2,1,"g",6)),2&B&&(i.R7$(2),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngIf",G.referenceLineLength>1&&G.refMax&&G.refMin&&G.showRefLines),i.R7$(),i.Y8G("ngForOf",G.referenceLines))},dependencies:[D.Sq,D.bT],encapsulation:2,changeDetection:0}))}return v(),O})(),nh=(()=>{var v;class O{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Hr.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=Hr}ngOnChanges(y){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:y}){const B=y+25+5;B!==this.labelOffset&&(this.labelOffset=B,setTimeout(()=>{this.dimensionsChanged.emit({height:y})},0))}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(B,G){if(1&B&&i.GBs(th,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksComponent=ue.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",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:vf,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"dimensionsChanged","trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g"),i.DNE(1,dc,1,16,"g",0)(2,Gc,1,5,"g",1),i.k0s()),2&B&&(i.BMQ("class",G.xAxisClassName)("transform",G.transform),i.R7$(),i.Y8G("ngIf",G.xScale),i.R7$(),i.Y8G("ngIf",G.showLabel))},dependencies:[D.bT,I3,th],encapsulation:2,changeDetection:0}))}return v(),O})(),d4=(()=>{var v;class O{constructor(y){this.platformId=y,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=vl.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Hr}ngOnChanges(y){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,o.UE)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const y=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);y!==this.width&&(this.width=y,this.dimensionsChanged.emit({width:y}),setTimeout(()=>this.updateDims()))}update(){const y=this.scale,B=this.orient===Hr.Top||this.orient===Hr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:y.tickFormat?y.tickFormat.apply(y,this.tickArguments):function(G){return"Date"===G.constructor.name?G.toLocaleDateString():G.toLocaleString()},this.adjustedScale=y.bandwidth?G=>{const ue=y(G)+.5*y.bandwidth();if(this.wrapTicks&&G.toString().length>this.maxTickLength){const Xe=this.tickChunks(G).length;if(1===Xe)return ue;const pn=.5*y.bandwidth()-8*Xe*.5;return y(G)+pn}return ue}:y,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Hr.Top:case Hr.Bottom:this.transform=function(G){return"translate("+this.adjustedScale(G)+",0)"},this.textAnchor=vl.Middle,this.y2=this.innerTickSize*B,this.y1=this.tickSpacing*B,this.dy=B<0?"0em":".71em";break;case Hr.Left:this.transform=function(G){return"translate(0,"+this.adjustedScale(G)+")"},this.textAnchor=vl.End,this.x2=this.innerTickSize*-B,this.x1=this.tickSpacing*-B,this.dy=".32em";break;case Hr.Right:this.transform=function(G){return"translate(0,"+this.adjustedScale(G)+")"},this.textAnchor=vl.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(y=>y.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(y=>y.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=fc(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let y;const B=this.getMaxTicks(20),G=this.getMaxTicks(50);return this.tickValues?y=this.tickValues:this.scale.ticks?y=this.scale.ticks.apply(this.scale,[G]):(y=this.scale.domain(),y=k3(y,B)),y}getMaxTicks(y){return Math.floor(this.height/y)}tickTransform(y){return`translate(${this.adjustedScale(y)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(y){return this.trimTicks?l4(y,this.maxTickLength):y}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(G=>this.tickTrim(this.tickFormat(G)).length))}tickChunks(y){if(y.toString().length>this.maxTickLength&&this.scale.bandwidth){const B=this.maxTickLength,G=Math.floor(this.scale.bandwidth()/15);return G<=1?[this.tickTrim(y)]:c4(y,B,Math.min(G,5))}return[this.tickFormat(y)]}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(B,G){if(1&B&&i.GBs(bu,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksElement=ue.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",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:s3,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],[1,"ref-line"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g",null,0),i.DNE(2,wu,2,2,"g",3),i.k0s(),i.DNE(3,xf,1,2,"path",4)(4,Fm,2,2,"g",5)(5,z0,2,1,"g",6)),2&B&&(i.R7$(2),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngIf",G.referenceLineLength>1&&G.refMax&&G.refMin&&G.showRefLines),i.R7$(),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngForOf",G.referenceLines))},dependencies:[D.Sq,D.bT],encapsulation:2,changeDetection:0}))}return v(),O})(),u4=(()=>{var v;class O{constructor(){this.showGridLines=!1,this.yOrient=Hr.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(y){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Hr.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:y}){y!==this.labelOffset&&this.yOrient===Hr.Right?(this.labelOffset=y+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:y})},0)):y!==this.labelOffset&&(this.labelOffset=y,setTimeout(()=>{this.dimensionsChanged.emit({width:y})},0))}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(B,G){if(1&B&&i.GBs(d4,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksComponent=ue.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",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:U0,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","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"dimensionsChanged","trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g"),i.DNE(1,ho,1,15,"g",0)(2,Du,1,5,"g",1),i.k0s()),2&B&&(i.BMQ("class",G.yAxisClassName)("transform",G.transform),i.R7$(),i.Y8G("ngIf",G.yScale),i.R7$(),i.Y8G("ngIf",G.showLabel))},dependencies:[D.bT,I3,d4],encapsulation:2,changeDetection:0}))}return v(),O})(),R3=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[D.MD]}))}return v(),O})();var U1=function(v){return v.popover="popover",v.tooltip="tooltip",v}(U1||{}),Wd=function(v){return v[v.all="all"]="all",v[v.focus="focus"]="focus",v[v.mouseover="mouseover"]="mouseover",v}(Wd||{});let u2=(()=>{var v;class O{get listensForFocus(){return this.tooltipShowEvent===Wd.all||this.tooltipShowEvent===Wd.focus}get listensForHover(){return this.tooltipShowEvent===Wd.all||this.tooltipShowEvent===Wd.mouseover}constructor(y,B,G){this.tooltipService=y,this.viewContainerRef=B,this.renderer=G,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ua.Top,this.tooltipAlignment=Ua.Center,this.tooltipType=U1.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Wd.all,this.tooltipImmediateExit=!1,this.show=new i.bkB,this.hide=new i.bkB}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(y){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(y))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(y){if(this.component||this.tooltipDisabled)return;const B=y?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const G=this.createBoundOptions();this.component=this.tooltipService.create(G),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},B)}addHideListeners(y){this.mouseEnterContentEvent=this.renderer.listen(y,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(y,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",B=>{y.contains(B.target)||this.hideTooltip()}))}hideTooltip(y=!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),y?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}}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(l2),i.rXU(i.c1b),i.rXU(i.sFG))},this.\u0275dir=i.FsC({type:O,selectors:[["","ngx-tooltip",""]],hostBindings:function(B,G){1&B&&i.bIt("focusin",function(){return G.onFocus()})("blur",function(){return G.onBlur()})("mouseenter",function(){return G.onMouseEnter()})("mouseleave",function(Xe){return G.onMouseLeave(Xe.target)})("click",function(){return G.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"},standalone:!1}))}return v(),O})(),h4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({providers:[Ju,l2],imports:[D.MD]}))}return v(),O})();const h2={};function f2(){let v=("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4);return v=`a${v}`,h2[v]?f2():(h2[v]=!0,v)}var $s=function(v){return v.Vertical="vertical",v.Horizontal="horizontal",v}($s||{});let V1=(()=>{var v;class O{constructor(){this.orientation=$s.Vertical}ngOnChanges(y){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===$s.Horizontal?this.x2="100%":this.orientation===$s.Vertical&&(this.y1="100%")}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},standalone:!1,features:[i.OA$],attrs:Mf,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"linearGradient",0),i.DNE(1,cd,1,5,"stop",1),i.k0s()),2&B&&(i.Y8G("id",G.name),i.BMQ("x1",G.x1)("y1",G.y1)("x2",G.x2)("y2",G.y2),i.R7$(),i.Y8G("ngForOf",G.stops))},dependencies:[D.Sq],encapsulation:2,changeDetection:0}))}return v(),O})(),Xd=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},standalone:!1,attrs:ku,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(B,G){1&B&&(g.qSk(),i.nrm(0,"rect",0)),2&B&&i.BMQ("height",G.height)("width",G.width)("x",G.x)("y",G.y)},encapsulation:2,changeDetection:0}))}return v(),O})();var Qc=function(v){return v.Odd="odd",v.Even="even",v}(Qc||{});let rh,P3=(()=>{var v;class O{ngOnChanges(y){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(y=>{let B,G,ue,Xe,Ut,Qt=Qc.Odd;if(this.orient===$s.Vertical){const pn=this.xScale(y.name);Number.parseInt((pn/this.xScale.step()).toString(),10)%2==1&&(Qt=Qc.Even),B=this.xScale.bandwidth()*this.xScale.paddingInner(),G=this.xScale.bandwidth()+B,ue=this.dims.height,Xe=this.xScale(y.name)-B/2,Ut=0}else if(this.orient===$s.Horizontal){const pn=this.yScale(y.name);Number.parseInt((pn/this.yScale.step()).toString(),10)%2==1&&(Qt=Qc.Even),B=this.yScale.bandwidth()*this.yScale.paddingInner(),G=this.dims.width,ue=this.yScale.bandwidth()+B,Xe=0,Ut=this.yScale(y.name)-B/2}return{name:y.name,class:Qt,height:ue,width:G,x:Xe,y:Ut}})}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},standalone:!1,features:[i.OA$],attrs:Ru,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(B,G){1&B&&i.DNE(0,Hc,1,10,"g",0),2&B&&i.Y8G("ngForOf",G.gridPanels)},dependencies:[D.Sq,Xd],encapsulation:2,changeDetection:0}))}return v(),O})();typeof window<"u"?rh=window:typeof global<"u"&&(rh=global);let cl=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[D.MD,R3,h4,D.MD,R3,h4]}))}return v(),O})();function B3({width:v,height:O,margins:E,showXAxis:y=!1,showYAxis:B=!1,xAxisHeight:G=0,yAxisWidth:ue=0,showXLabel:Xe=!1,showYLabel:Ut=!1,showLegend:Qt=!1,legendType:pn=fa.Ordinal,legendPosition:Pn=Ic.Right,columns:Fn=12}){let xi=E[3],yi=v,Ji=O-E[0]-E[2];return Qt&&Pn===Ic.Right&&(Fn-=pn===fa.Ordinal?2:1),yi=yi*Fn/12,yi=yi-E[1]-E[3],y&&(Ji-=5,Ji-=G,Xe&&(Ji-=30)),B&&(yi-=5,yi-=ue,xi+=ue,xi+=10,Ut&&(yi-=30,xi+=30)),yi=Math.max(0,yi),Ji=Math.max(0,Ji),{width:Math.floor(yi),height:Math.floor(Ji),xOffset:Math.floor(xi)}}const hp=[{name:"vivid",selectable:!0,group:fa.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:fa.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:fa.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:fa.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:fa.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:fa.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:fa.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:fa.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:fa.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:fa.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:fa.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:fa.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:fa.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:fa.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:fa.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class lh{constructor(O,E,y,B){"string"==typeof O&&(O=hp.find(G=>G.name===O)),this.colorDomain=O.domain,this.scaleType=E,this.domain=y,this.customColors=B,this.scale=this.generateColorScheme(O,E,this.domain)}generateColorScheme(O,E,y){let B;switch("string"==typeof O&&(O=hp.find(G=>G.name===O)),E){case fa.Quantile:B=kd().range(O.domain).domain(y);break;case fa.Ordinal:B=y1().range(O.domain).domain(y);break;case fa.Linear:{const G=[...O.domain];1===G.length&&(G.push(G[0]),this.colorDomain=G);const ue=eu(0,1,1/G.length);B=cc().range(G).domain(ue)}}return B}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===fa.Linear){const E=cc().domain(this.domain).range([0,1]);return this.scale(E(O))}{if("function"==typeof this.customColors)return this.customColors(O);const E=O.toString();let y;return this.customColors&&this.customColors.length>0&&(y=this.customColors.find(B=>B.name.toLowerCase()===E.toLowerCase())),y?y.value:this.scale(O)}}getLinearGradientStops(O,E){void 0===E&&(E=this.domain[0]);const y=cc().domain(this.domain).range([0,1]),B=zc().domain(this.colorDomain).range([0,1]),G=this.getColor(O),ue=y(E),Xe=this.getColor(E),Ut=y(O);let Qt=1,pn=ue;const Pn=[];for(Pn.push({color:Xe,offset:ue,originalOffset:ue,opacity:1});pn=(Ut-B.bandwidth()).toFixed(4))break;Pn.push({color:Fn,offset:xi,opacity:1}),pn=xi,Qt++}}if(Pn[Pn.length-1].offset<100&&Pn.push({color:G,offset:Ut,opacity:1}),Ut===ue)Pn[0].offset=0,Pn[1].offset=100;else if(100!==Pn[Pn.length-1].offset)for(const Fn of Pn)Fn.offset=(Fn.offset-ue)/(Ut-ue)*100;return Pn}}let U3=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),V3=(()=>{var v;class O{constructor(y){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.hasGradient=!1,this.hideBar=!1,this.element=y.nativeElement}ngOnChanges(y){y.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+f2().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 y=ui(this.element).select(".bar"),B=this.getPath();this.animations?y.transition().duration(500).attr("d",B):y.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,y=this.getRadius();return this.roundEdges?this.orientation===$s.Vertical?(y=Math.min(this.height,y),B=fc(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===$s.Horizontal&&(y=Math.min(this.width,y),B=fc(this.x,this.y,1,this.height,0,this.edges)):this.orientation===$s.Vertical?B=fc(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===$s.Horizontal&&(B=fc(this.x,this.y,1,this.height,0,this.edges)),B}getPath(){let B,y=this.getRadius();return this.roundEdges?this.orientation===$s.Vertical?(y=Math.min(this.height,y),B=fc(this.x,this.y,this.width,this.height,y,this.edges)):this.orientation===$s.Horizontal&&(y=Math.min(this.width,y),B=fc(this.x,this.y,this.width,this.height,y,this.edges)):B=fc(this.x,this.y,this.width,this.height,y,this.edges),B}getRadius(){let y=0;return this.roundEdges&&this.height>5&&this.width>5&&(y=Math.floor(Math.min(5,this.height/2,this.width/2))),y}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let y=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===$s.Vertical?y=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===$s.Horizontal&&(y=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),y}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===$s.Vertical&&0===this.height||this.orientation===$s.Horizontal&&0===this.width)}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(B,G){1&B&&i.bIt("mouseenter",function(){return G.onMouseEnter()})("mouseleave",function(){return G.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"},standalone:!1,features:[i.OA$],attrs:Nf,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(B,G){1&B&&(i.DNE(0,Ff,2,3,"defs",0),g.qSk(),i.j41(1,"path",1),i.bIt("click",function(){return G.select.emit(G.data)}),i.k0s()),2&B&&(i.Y8G("ngIf",G.hasGradient),i.R7$(),i.AVh("active",G.isActive)("hidden",G.hideBar),i.BMQ("d",G.path)("aria-label",G.ariaLabel)("fill",G.hasGradient?G.gradientFill:G.fill))},dependencies:[D.bT,V1],encapsulation:2,changeDetection:0}))}return v(),O})();var $c=function(v){return v.Standard="standard",v.Normalized="normalized",v.Stacked="stacked",v}($c||{}),md=function(v){return v.positive="positive",v.negative="negative",v}(md||{});let ch=(()=>{var v;class O{constructor(y){this.dimensionsChanged=new i.bkB,this.horizontalPadding=2,this.verticalPadding=5,this.element=y.nativeElement}ngOnChanges(y){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):jd(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})`)}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:Bf,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"text",0),i.EFF(1),i.k0s()),2&B&&(i.BMQ("text-anchor",G.textAnchor)("transform",G.transform)("x",G.x)("y",G.y),i.R7$(),i.SpI(" ",G.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}))}return v(),O})(),G3=(()=>{var v;class O{constructor(y){this.platformId=y,this.type=$c.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.dataLabelHeightChanged=new i.bkB,this.barsForDataLabels=[],this.barOrientation=$s,this.isSSR=!1}ngOnInit(){(0,o.Vy)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}update(){let y;this.updateTooltipSettings(),this.series.length&&(y=this.xScale.bandwidth()),y=Math.round(y);const B=Math.max(this.yScale.domain()[0],0),G={[md.positive]:0,[md.negative]:0};let Xe,ue=md.positive;this.type===$c.Normalized&&(Xe=this.series.map(Ut=>Ut.value).reduce((Ut,Qt)=>Ut+Qt,0)),this.bars=this.series.map((Ut,Qt)=>{let pn=Ut.value;const Pn=this.getLabel(Ut),Fn=jd(Pn);ue=pn>0?md.positive:md.negative;const yi={value:pn,label:Pn,roundEdges:this.roundEdges,data:Ut,width:y,formattedLabel:Fn,height:0,x:0,y:0};if(this.type===$c.Standard)yi.height=Math.abs(this.yScale(pn)-this.yScale(B)),yi.x=this.xScale(Pn),yi.y=this.yScale(pn<0?0:pn);else if(this.type===$c.Stacked){const qn=G[ue],Gi=qn+pn;G[ue]+=pn,yi.height=this.yScale(qn)-this.yScale(Gi),yi.x=0,yi.y=this.yScale(Gi),yi.offset0=qn,yi.offset1=Gi}else if(this.type===$c.Normalized){let qn=G[ue],Gi=qn+pn;G[ue]+=pn,Xe>0?(qn=100*qn/Xe,Gi=100*Gi/Xe):(qn=0,Gi=0),yi.height=this.yScale(qn)-this.yScale(Gi),yi.x=0,yi.y=this.yScale(Gi),yi.offset0=qn,yi.offset1=Gi,pn=(Gi-qn).toFixed(2)+"%"}this.colors.scaleType===fa.Ordinal?yi.color=this.colors.getColor(Pn):this.type===$c.Standard?(yi.color=this.colors.getColor(pn),yi.gradientStops=this.colors.getLinearGradientStops(pn)):(yi.color=this.colors.getColor(yi.offset1),yi.gradientStops=this.colors.getLinearGradientStops(yi.offset1,yi.offset0));let Ji=Fn;return yi.ariaLabel=Fn+" "+pn.toLocaleString(),null!=this.seriesName&&(Ji=`${this.seriesName} \u2022 ${Fn}`,yi.data.series=this.seriesName,yi.ariaLabel=this.seriesName+" "+yi.ariaLabel),yi.tooltipText=this.tooltipDisabled?void 0:`\n ${function qu(v){return v.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[O]))}(Ji)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(pn):pn.toLocaleString()}\n `,yi}),this.updateDataLabels()}updateDataLabels(){if(this.type===$c.Stacked){this.barsForDataLabels=[];const y={};y.series=this.seriesName;const B=this.series.map(ue=>ue.value).reduce((ue,Xe)=>Xe>0?ue+Xe:ue,0),G=this.series.map(ue=>ue.value).reduce((ue,Xe)=>Xe<0?ue+Xe:ue,0);y.total=B+G,y.x=0,y.y=0,y.height=this.yScale(y.total>0?B:G),y.width=this.xScale.bandwidth(),this.barsForDataLabels.push(y)}else this.barsForDataLabels=this.series.map(y=>{const B={};return B.series=this.seriesName??y.label,B.total=y.value,B.x=this.xScale(y.label),B.y=this.yScale(0),B.height=this.yScale(B.total)-this.yScale(0),B.width=this.xScale.bandwidth(),B})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Ua.Top,this.tooltipType=this.tooltipDisabled?void 0:U1.tooltip}isActive(y){return!!this.activeEntries&&void 0!==this.activeEntries.find(G=>y.name===G.name&&y.value===G.value)}onClick(y){this.select.emit(y)}getLabel(y){return y.label?y.label:y.name}trackBy(y,B){return B.label}trackDataLabelBy(y,B){return y+"#"+B.series+"#"+B.total}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,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"},standalone:!1,features:[i.OA$],attrs:q0,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,"select","activate","deactivate","width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"dimensionsChanged","barX","barY","barWidth","barHeight","value","valueFormatting","orientation"]],template:function(B,G){1&B&&i.DNE(0,Vu,2,2,"g",0)(1,b3,2,2,"g",0)(2,Hu,2,2,"g",0),2&B&&(i.Y8G("ngIf",!G.isSSR),i.R7$(),i.Y8G("ngIf",G.isSSR),i.R7$(),i.Y8G("ngIf",G.showDataLabel))},dependencies:[D.Sq,D.bT,u2,V3,ch],encapsulation:2,data:{animation:[(0,w.hZ)("animationState",[(0,w.kY)(":leave",[(0,w.iF)({opacity:1}),(0,w.i0)(500,(0,w.iF)({opacity:0}))])])]},changeDetection:0}))}return v(),O})(),p4=(()=>{var v;class O extends d2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ic.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.wrapTicks=!1,this.activate=new i.bkB,this.deactivate=new i.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}ngOnChanges(){this.update()}update(){if(super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=B3({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})`,this.showRefLines){const y=ui(this.chartElement.nativeElement).select(".bar-chart").node();ui(this.chartElement.nativeElement).selectAll(".ref-line").nodes().forEach(G=>y.appendChild(G))}}getXScale(){this.xDomain=this.getXDomain();const y=this.xDomain.length/(this.dims.width/this.barPadding+1);return zc().range([0,this.dims.width]).paddingInner(y).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const y=cc().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?y.nice():y}getXDomain(){return this.results.map(y=>y.label)}getYDomain(){const y=this.results.map(ue=>ue.value);let B=this.yScaleMin?Math.min(this.yScaleMin,...y):Math.min(0,...y);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(B=Math.min(B,...this.yAxisTicks));let G=this.yScaleMax?Math.max(this.yScaleMax,...y):Math.max(0,...y);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(G=Math.max(G,...this.yAxisTicks)),[B,G]}onClick(y){this.select.emit(y)}setColors(){let y;y=this.schemeType===fa.Ordinal?this.xDomain:this.yDomain,this.colors=new lh(this.scheme,this.schemeType,y,this.customColors)}getLegendOptions(){const y={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return y.scaleType===fa.Ordinal?(y.domain=this.xDomain,y.colors=this.colors,y.title=this.legendTitle):(y.domain=this.yDomain,y.colors=this.colors.scale),y}updateYAxisWidth({width:y}){this.yAxisWidth=y,this.update()}updateXAxisHeight({height:y}){this.xAxisHeight=y,this.update()}onDataLabelMaxHeightChanged(y){y.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,y.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,y.size.height),y.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(y,B=!1){y=this.results.find(ue=>B?ue.label===y.name:ue.name===y.name),!(this.activeEntries.findIndex(ue=>ue.name===y.name&&ue.value===y.value&&ue.series===y.series)>-1)&&(this.activeEntries=[y,...this.activeEntries],this.activate.emit({value:y,entries:this.activeEntries}))}onDeactivate(y,B=!1){y=this.results.find(ue=>B?ue.label===y.name:ue.name===y.name);const G=this.activeEntries.findIndex(ue=>ue.name===y.name&&ue.value===y.value&&ue.series===y.series);this.activeEntries.splice(G,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:y,entries:this.activeEntries})}static#e=v=()=>(this.\u0275fac=(()=>{let y;return function(G){return(y||(y=i.xGo(O)))(G||O)}})(),this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(B,G,ue){if(1&B&&i.wni(ue,Lf,5),2&B){let Xe;i.mGM(Xe=i.lsd())&&(G.tooltipTemplate=Xe.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",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",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.Vt3,i.OA$],decls:5,vars:25,consts:[[3,"legendLabelClick","legendLabelActivate","legendLabelDeactivate","view","showLegend","legendOptions","activeEntries","animations"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activate","deactivate","select","dataLabelHeightChanged","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks"]],template:function(B,G){1&B&&(i.j41(0,"ngx-charts-chart",0),i.bIt("legendLabelClick",function(Xe){return G.onClick(Xe)})("legendLabelActivate",function(Xe){return G.onActivate(Xe,!0)})("legendLabelDeactivate",function(Xe){return G.onDeactivate(Xe,!0)}),g.qSk(),i.j41(1,"g",1),i.DNE(2,ju,1,12,"g",2)(3,x3,1,13,"g",3),i.j41(4,"g",4),i.bIt("activate",function(Xe){return G.onActivate(Xe)})("deactivate",function(Xe){return G.onDeactivate(Xe)})("select",function(Xe){return G.onClick(Xe)})("dataLabelHeightChanged",function(Xe){return G.onDataLabelMaxHeightChanged(Xe)}),i.k0s()()()),2&B&&(i.Y8G("view",i.l_i(22,ud,G.width,G.height))("showLegend",G.legend)("legendOptions",G.legendOptions)("activeEntries",G.activeEntries)("animations",G.animations),i.R7$(),i.BMQ("transform",G.transform),i.R7$(),i.Y8G("ngIf",G.xAxis),i.R7$(),i.Y8G("ngIf",G.yAxis),i.R7$(),i.Y8G("xScale",G.xScale)("yScale",G.yScale)("colors",G.colors)("series",G.results)("dims",G.dims)("gradient",G.gradient)("tooltipDisabled",G.tooltipDisabled)("tooltipTemplate",G.tooltipTemplate)("showDataLabel",G.showDataLabel)("dataLabelFormatting",G.dataLabelFormatting)("activeEntries",G.activeEntries)("roundEdges",G.roundEdges)("animations",G.animations)("noBarWhenZero",G.noBarWhenZero))},dependencies:[D.bT,nh,u4,s4,G3],styles:[Nu],encapsulation:2,changeDetection:0}))}return v(),O})(),bp=(()=>{var v;class O extends d2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ic.Right,this.tooltipDisabled=!1,this.scaleType=fa.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.schemeType=fa.Ordinal,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.wrapTicks=!1,this.activate=new i.bkB,this.deactivate=new i.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=$s,this.trackBy=(y,B)=>B.name}ngOnInit(){(0,o.Vy)(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=B3({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(y,B){y.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,y.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,y.size.height),B===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const y=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return zc().rangeRound([0,this.dims.width]).paddingInner(y).paddingOuter(y/2).domain(this.groupDomain)}getInnerScale(){const y=this.groupScale.bandwidth(),B=this.innerDomain.length/(y/this.barPadding+1);return zc().rangeRound([0,y]).paddingInner(B).domain(this.innerDomain)}getValueScale(){const y=cc().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?y.nice():y}getGroupDomain(){const y=[];for(const B of this.results)y.includes(B.label)||y.push(B.label);return y}getInnerDomain(){const y=[];for(const B of this.results)for(const G of B.series)y.includes(G.label)||y.push(G.label);return y}getValueDomain(){const y=[];for(const ue of this.results)for(const Xe of ue.series)y.includes(Xe.value)||y.push(Xe.value);return[Math.min(0,...y),this.yScaleMax?Math.max(this.yScaleMax,...y):Math.max(0,...y)]}groupTransform(y){return`translate(${this.groupScale(y.label)}, 0)`}onClick(y,B){B&&(y.series=B.name),this.select.emit(y)}setColors(){let y;y=this.schemeType===fa.Ordinal?this.innerDomain:this.valueDomain,this.colors=new lh(this.scheme,this.schemeType,y,this.customColors)}getLegendOptions(){const y={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return y.scaleType===fa.Ordinal?(y.domain=this.innerDomain,y.colors=this.colors,y.title=this.legendTitle):(y.domain=this.valueDomain,y.colors=this.colors.scale),y}updateYAxisWidth({width:y}){this.yAxisWidth=y,this.update()}updateXAxisHeight({height:y}){this.xAxisHeight=y,this.update()}onActivate(y,B,G=!1){const ue=Object.assign({},y);B&&(ue.series=B.name);const Xe=this.results.map(Ut=>Ut.series).flat().filter(Ut=>G?Ut.label===ue.name:Ut.name===ue.name&&Ut.series===ue.series);this.activeEntries=[...Xe],this.activate.emit({value:ue,entries:this.activeEntries})}onDeactivate(y,B,G=!1){const ue=Object.assign({},y);B&&(ue.series=B.name),this.activeEntries=this.activeEntries.filter(Xe=>G?Xe.label!==ue.name:!(Xe.name===ue.name&&Xe.series===ue.series)),this.deactivate.emit({value:ue,entries:this.activeEntries})}static#e=v=()=>(this.\u0275fac=(()=>{let y;return function(G){return(y||(y=i.xGo(O)))(G||O)}})(),this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(B,G,ue){if(1&B&&i.wni(ue,Lf,5),2&B){let Xe;i.mGM(Xe=i.lsd())&&(G.tooltipTemplate=Xe.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",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.Vt3],decls:7,vars:18,consts:[[3,"legendLabelActivate","legendLabelDeactivate","legendLabelClick","view","showLegend","legendOptions","activeEntries","animations"],[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","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks"],["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,"select","activate","deactivate","dataLabelHeightChanged","activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero"]],template:function(B,G){1&B&&(i.j41(0,"ngx-charts-chart",0),i.bIt("legendLabelActivate",function(Xe){return G.onActivate(Xe,void 0,!0)})("legendLabelDeactivate",function(Xe){return G.onDeactivate(Xe,void 0,!0)})("legendLabelClick",function(Xe){return G.onClick(Xe)}),g.qSk(),i.j41(1,"g",1),i.nrm(2,"g",2),i.DNE(3,Wu,1,11,"g",3)(4,Xf,1,10,"g",4)(5,Yf,2,2,"g",5)(6,Ku,2,2,"g",5),i.k0s()()),2&B&&(i.Y8G("view",i.l_i(15,ud,G.width,G.height))("showLegend",G.legend)("legendOptions",G.legendOptions)("activeEntries",G.activeEntries)("animations",G.animations),i.R7$(),i.BMQ("transform",G.transform),i.R7$(),i.Y8G("xScale",G.groupScale)("yScale",G.valueScale)("data",G.results)("dims",G.dims)("orient",G.barOrientation.Vertical),i.R7$(),i.Y8G("ngIf",G.xAxis),i.R7$(),i.Y8G("ngIf",G.yAxis),i.R7$(),i.Y8G("ngIf",!G.isSSR),i.R7$(),i.Y8G("ngIf",G.isSSR))},dependencies:[D.Sq,D.bT,nh,u4,s4,P3,G3],styles:[Nu],encapsulation:2,data:{animation:[(0,w.hZ)("animationState",[(0,w.kY)(":leave",[(0,w.iF)({opacity:1,transform:"*"}),(0,w.i0)(500,(0,w.iF)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}))}return v(),O})(),H3=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),g4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),_4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),y4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),Sp=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})();Math;let pd=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),Tp=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl,pd,Sp]}))}return v(),O})(),yo=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),C4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),M4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl,pd,H3]}))}return v(),O})(),Yd=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),mh=(()=>{var v;class O{constructor(){!function E4(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl,U3,H3,g4,_4,y4,Yd,Sp,Tp,yo,pd,C4,M4]}))}return v(),O})()},38288(ke,q,l){"use strict";l.d(q,{Um:()=>M,XK:()=>K});var i=l(10467),g=l(72200),p=l(2615),D=l(73664),o=l(17705),e=l(68314);function A(j,Z){if(1&j&&D.nrm(0,"canvas",1),2&j){const ee=D.XpG();D.HbH(ee.styleClass),D.Y8G("qrCode",ee.value)("qrCodeErrorCorrectionLevel",ee.errorCorrectionLevel)("qrCodeCenterImageSrc",ee.centerImageSrc)("qrCodeCenterImageWidth",ee.centerImageSize)("qrCodeCenterImageHeight",ee.centerImageSize)("qrCodeMargin",ee.margin)("qrScale",ee.scale)("qrCodeMaskPattern",ee.maskPattern)("width",ee.size)("height",ee.size)("ngStyle",ee.style)("darkColor",ee.darkColor)("lightColor",ee.lightColor)}}const h=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/,d=/^[0-9.]+$/;let w=(()=>{var j;class Z{constructor(V){this.viewContainerRef=V,this.errorCorrectionLevel=Z.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var V=this;return(0,i.A)(function*(){if(!V.value)return;V.version&&V.version>40?(console.warn("[qrCode] max version is 40, clamping"),V.version=40):V.version&&V.version<1?(console.warn("[qrCode] min version is 1, clamping"),V.version=1):void 0!==V.version&&isNaN(V.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),V.version=void 0);const Q=V.viewContainerRef.element.nativeElement;if(!Q)return;const $=Q.getContext("2d");$&&$.clearRect(0,0,$.canvas.width,$.canvas.height);const ie=V.errorCorrectionLevel??Z.DEFAULT_ERROR_CORRECTION_LEVEL,_e=V.darkColor&&h.test(V.darkColor)?V.darkColor:void 0,ye=V.lightColor&&h.test(V.lightColor)?V.lightColor:void 0;(0,o.naY)()&&(!_e&&V.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ye&&V.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield e.toCanvas(Q,V.value,{version:V.version,errorCorrectionLevel:ie,width:f(V.width),margin:V.margin,scale:V.qrScale,maskPattern:V.qrCodeMaskPattern,color:{dark:_e,light:ye}});const se=V.centerImageSrc,pe=F(V.centerImageWidth,Z.DEFAULT_CENTER_IMAGE_SIZE),Ee=F(V.centerImageHeight,Z.DEFAULT_CENTER_IMAGE_SIZE);if(se&&$){V.centerImage||(V.centerImage=new Image(pe,Ee));const L=V.centerImage;se!==V.centerImage.src&&(L.src=se),pe!==V.centerImage.width&&(L.width=pe),Ee!==V.centerImage.height&&(L.height=Ee);const t=()=>{$.drawImage(L,Q.width/2-pe/2,Q.height/2-Ee/2,pe,Ee)};L.onload=t,L.complete&&t()}})()}static#e=j=()=>(this.DEFAULT_ERROR_CORRECTION_LEVEL="M",this.DEFAULT_CENTER_IMAGE_SIZE=40,this.\u0275fac=function(Q){return new(Q||Z)(D.rXU(D.c1b))},this.\u0275dir=D.FsC({type:Z,selectors:[["canvas","qrCode",""]],inputs:{value:[0,"qrCode","value"],version:[0,"qrCodeVersion","version"],errorCorrectionLevel:[0,"qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:[0,"qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:[0,"qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:[0,"qrCodeCenterImageHeight","centerImageHeight"],margin:[0,"qrCodeMargin","margin"],qrScale:"qrScale",qrCodeMaskPattern:"qrCodeMaskPattern"},features:[D.OA$]}))}return j(),Z})();function f(j){if(void 0!==j&&""!==j){if("string"==typeof j){if(!d.test(j))throw new Error(`'${j}' is not a valid number`);return parseFloat(j)}return j}}function F(j,Z){return void 0===j||""===j?Z:f(j)}let M=(()=>{var j;class Z{static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)},this.\u0275cmp=D.VBU({type:Z,selectors:[["qr-code"]],inputs:{value:"value",size:"size",style:"style",styleClass:"styleClass",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin",scale:"scale",maskPattern:"maskPattern"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","qrScale","qrCodeMaskPattern","width","height","class","ngStyle","darkColor","lightColor"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","qrScale","qrCodeMaskPattern","width","height","ngStyle","darkColor","lightColor"]],template:function(Q,$){1&Q&&D.nVh(0,A,1,15,"canvas",0),2&Q&&D.vxM($.value?0:-1)},dependencies:[w,g.MD,g.B3],encapsulation:2}))}return j(),Z})(),K=(()=>{var j;class Z{static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)},this.\u0275mod=D.$C({type:Z}),this.\u0275inj=p.G2t({imports:[g.MD,M]}))}return j(),Z})()},10497(ke,q,l){"use strict";l.d(q,{kU:()=>ze,ZF:()=>it,Ld:()=>st,U$:()=>Wt});var i=l(21413),g=l(33726),p=l(57786),D=l(13798),o=l(56977),e=l(23294),A=l(73703),h=l(73664),d=l(17705),w=l(2615),f=l(72200),F=l(60177);function M(we){return getComputedStyle(we)}function K(we,We){for(var Lt in We){var St=We[Lt];"number"==typeof St&&(St+="px"),we.style[Lt]=St}return we}function j(we){var We=document.createElement("div");return We.className=we,We}var Z=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function ee(we,We){if(!Z)throw new Error("No element matching method supported");return Z.call(we,We)}function V(we){we.remove?we.remove():we.parentNode&&we.parentNode.removeChild(we)}function Q(we,We){return Array.prototype.filter.call(we.children,function(Lt){return ee(Lt,We)})}var $_element_thumb=function(we){return"ps__thumb-"+we},$_element_rail=function(we){return"ps__rail-"+we},$_element_consuming="ps__child--consume",$_state_focus="ps--focus",$_state_clicking="ps--clicking",$_state_active=function(we){return"ps--active-"+we},$_state_scrolling=function(we){return"ps--scrolling-"+we},ie={x:null,y:null};function _e(we,We){var Lt=we.element.classList,St=$_state_scrolling(We);Lt.contains(St)?clearTimeout(ie[We]):Lt.add(St)}function ye(we,We){ie[We]=setTimeout(function(){return we.isAlive&&we.element.classList.remove($_state_scrolling(We))},we.settings.scrollingThreshold)}var pe=function(We){this.element=We,this.handlers={}},Ee={isEmpty:{configurable:!0}};pe.prototype.bind=function(We,Lt){typeof this.handlers[We]>"u"&&(this.handlers[We]=[]),this.handlers[We].push(Lt),this.element.addEventListener(We,Lt,!1)},pe.prototype.unbind=function(We,Lt){var St=this;this.handlers[We]=this.handlers[We].filter(function(At){return!(!Lt||At===Lt)||(St.element.removeEventListener(We,At,!1),!1)})},pe.prototype.unbindAll=function(){for(var We in this.handlers)this.unbind(We)},Ee.isEmpty.get=function(){var we=this;return Object.keys(this.handlers).every(function(We){return 0===we.handlers[We].length})},Object.defineProperties(pe.prototype,Ee);var L=function(){this.eventElements=[]};function t(we){if("function"==typeof window.CustomEvent)return new CustomEvent(we);var We=document.createEvent("CustomEvent");return We.initCustomEvent(we,!1,!1,void 0),We}function s(we,We,Lt,St,At){var fn;if(void 0===St&&(St=!0),void 0===At&&(At=!1),"top"===We)fn=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==We)throw new Error("A proper axis should be provided");fn=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function m(we,We,Lt,St,At){var fn=Lt[0],mt=Lt[1],It=Lt[2],wn=Lt[3],In=Lt[4],ei=Lt[5];void 0===St&&(St=!0),void 0===At&&(At=!1);var Li=we.element;we.reach[wn]=null,Li[It]<1&&(we.reach[wn]="start"),Li[It]>we[fn]-we[mt]-1&&(we.reach[wn]="end"),We&&(Li.dispatchEvent(t("ps-scroll-"+wn)),We<0?Li.dispatchEvent(t("ps-scroll-"+In)):We>0&&Li.dispatchEvent(t("ps-scroll-"+ei)),St&&function se(we,We){_e(we,We),ye(we,We)}(we,wn)),we.reach[wn]&&(We||At)&&Li.dispatchEvent(t("ps-"+wn+"-reach-"+we.reach[wn]))}(we,Lt,fn,St,At)}function u(we){return parseInt(we,10)||0}L.prototype.eventElement=function(We){var Lt=this.eventElements.filter(function(St){return St.element===We})[0];return Lt||(Lt=new pe(We),this.eventElements.push(Lt)),Lt},L.prototype.bind=function(We,Lt,St){this.eventElement(We).bind(Lt,St)},L.prototype.unbind=function(We,Lt,St){var At=this.eventElement(We);At.unbind(Lt,St),At.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(At),1)},L.prototype.unbindAll=function(){this.eventElements.forEach(function(We){return We.unbindAll()}),this.eventElements=[]},L.prototype.once=function(We,Lt,St){var At=this.eventElement(We),fn=function(mt){At.unbind(Lt,fn),St(mt)};At.bind(Lt,fn)};var P={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function C(we){var We=we.element,Lt=Math.floor(We.scrollTop),St=We.getBoundingClientRect();we.containerWidth=Math.round(St.width),we.containerHeight=Math.round(St.height),we.contentWidth=We.scrollWidth,we.contentHeight=We.scrollHeight,We.contains(we.scrollbarXRail)||(Q(We,$_element_rail("x")).forEach(function(At){return V(At)}),We.appendChild(we.scrollbarXRail)),We.contains(we.scrollbarYRail)||(Q(We,$_element_rail("y")).forEach(function(At){return V(At)}),We.appendChild(we.scrollbarYRail)),!we.settings.suppressScrollX&&we.containerWidth+we.settings.scrollXMarginOffset=we.railXWidth-we.scrollbarXWidth&&(we.scrollbarXLeft=we.railXWidth-we.scrollbarXWidth),we.scrollbarYTop>=we.railYHeight-we.scrollbarYHeight&&(we.scrollbarYTop=we.railYHeight-we.scrollbarYHeight),function x(we,We){var Lt={width:We.railXWidth},St=Math.floor(we.scrollTop);Lt.left=We.isRtl?We.negativeScrollAdjustment+we.scrollLeft+We.containerWidth-We.contentWidth:we.scrollLeft,We.isScrollbarXUsingBottom?Lt.bottom=We.scrollbarXBottom-St:Lt.top=We.scrollbarXTop+St,K(We.scrollbarXRail,Lt);var At={top:St,height:We.railYHeight};We.isScrollbarYUsingRight?At.right=We.isRtl?We.contentWidth-(We.negativeScrollAdjustment+we.scrollLeft)-We.scrollbarYRight-We.scrollbarYOuterWidth-9:We.scrollbarYRight-we.scrollLeft:At.left=We.isRtl?We.negativeScrollAdjustment+we.scrollLeft+2*We.containerWidth-We.contentWidth-We.scrollbarYLeft-We.scrollbarYOuterWidth:We.scrollbarYLeft+we.scrollLeft,K(We.scrollbarYRail,At),K(We.scrollbarX,{left:We.scrollbarXLeft,width:We.scrollbarXWidth-We.railBorderXWidth}),K(We.scrollbarY,{top:We.scrollbarYTop,height:We.scrollbarYHeight-We.railBorderYWidth})}(We,we),we.scrollbarXActive?We.classList.add($_state_active("x")):(We.classList.remove($_state_active("x")),we.scrollbarXWidth=0,we.scrollbarXLeft=0,We.scrollLeft=!0===we.isRtl?we.contentWidth:0),we.scrollbarYActive?We.classList.add($_state_active("y")):(We.classList.remove($_state_active("y")),we.scrollbarYHeight=0,we.scrollbarYTop=0,We.scrollTop=0)}function a(we,We){return we.settings.minScrollbarLength&&(We=Math.max(We,we.settings.minScrollbarLength)),we.settings.maxScrollbarLength&&(We=Math.min(We,we.settings.maxScrollbarLength)),We}function U(we,We){var Lt=We[0],St=We[1],At=We[2],fn=We[3],mt=We[4],It=We[5],wn=We[6],In=We[7],ei=We[8],Li=we.element,kt=null,Ot=null,Ze=null;function Ge(bn){bn.touches&&bn.touches[0]&&(bn[At]=bn.touches[0].pageY),Li[wn]=kt+Ze*(bn[At]-Ot),_e(we,In),C(we),bn.stopPropagation(),bn.type.startsWith("touch")&&bn.changedTouches.length>1&&bn.preventDefault()}function Pt(){ye(we,In),we[ei].classList.remove($_state_clicking),we.event.unbind(we.ownerDocument,"mousemove",Ge)}function Yt(bn,$n){kt=Li[wn],$n&&bn.touches&&(bn[At]=bn.touches[0].pageY),Ot=bn[At],Ze=(we[St]-we[Lt])/(we[fn]-we[It]),$n?we.event.bind(we.ownerDocument,"touchmove",Ge):(we.event.bind(we.ownerDocument,"mousemove",Ge),we.event.once(we.ownerDocument,"mouseup",Pt),bn.preventDefault()),we[ei].classList.add($_state_clicking),bn.stopPropagation()}we.event.bind(we[mt],"mousedown",function(bn){Yt(bn)}),we.event.bind(we[mt],"touchstart",function(bn){Yt(bn,!0)})}var ge={"click-rail":function Y(we){we.event.bind(we.scrollbarY,"mousedown",function(Lt){return Lt.stopPropagation()}),we.event.bind(we.scrollbarYRail,"mousedown",function(Lt){var St=Lt.pageY-window.pageYOffset-we.scrollbarYRail.getBoundingClientRect().top;we.element.scrollTop+=(St>we.scrollbarYTop?1:-1)*we.containerHeight,C(we),Lt.stopPropagation()}),we.event.bind(we.scrollbarX,"mousedown",function(Lt){return Lt.stopPropagation()}),we.event.bind(we.scrollbarXRail,"mousedown",function(Lt){var St=Lt.pageX-window.pageXOffset-we.scrollbarXRail.getBoundingClientRect().left;we.element.scrollLeft+=(St>we.scrollbarXLeft?1:-1)*we.containerWidth,C(we),Lt.stopPropagation()})},"drag-thumb":function R(we){U(we,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),U(we,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function fe(we){var We=we.element;we.event.bind(we.ownerDocument,"keydown",function(fn){if(!(fn.isDefaultPrevented&&fn.isDefaultPrevented()||fn.defaultPrevented)&&(ee(We,":hover")||ee(we.scrollbarX,":focus")||ee(we.scrollbarY,":focus"))){var mt=document.activeElement?document.activeElement:we.ownerDocument.activeElement;if(mt){if("IFRAME"===mt.tagName)mt=mt.contentDocument.activeElement;else for(;mt.shadowRoot;)mt=mt.shadowRoot.activeElement;if(function _(we){return ee(we,"input,[contenteditable]")||ee(we,"select,[contenteditable]")||ee(we,"textarea,[contenteditable]")||ee(we,"button,[contenteditable]")}(mt))return}var It=0,wn=0;switch(fn.which){case 37:It=fn.metaKey?-we.contentWidth:fn.altKey?-we.containerWidth:-30;break;case 38:wn=fn.metaKey?we.contentHeight:fn.altKey?we.containerHeight:30;break;case 39:It=fn.metaKey?we.contentWidth:fn.altKey?we.containerWidth:30;break;case 40:wn=fn.metaKey?-we.contentHeight:fn.altKey?-we.containerHeight:-30;break;case 32:wn=fn.shiftKey?we.containerHeight:-we.containerHeight;break;case 33:wn=we.containerHeight;break;case 34:wn=-we.containerHeight;break;case 36:wn=we.contentHeight;break;case 35:wn=-we.contentHeight;break;default:return}we.settings.suppressScrollX&&0!==It||we.settings.suppressScrollY&&0!==wn||(We.scrollTop-=wn,We.scrollLeft+=It,C(we),function At(fn,mt){var It=Math.floor(We.scrollTop);if(0===fn){if(!we.scrollbarYActive)return!1;if(0===It&&mt>0||It>=we.contentHeight-we.containerHeight&&mt<0)return!we.settings.wheelPropagation}var wn=We.scrollLeft;if(0===mt){if(!we.scrollbarXActive)return!1;if(0===wn&&fn<0||wn>=we.contentWidth-we.containerWidth&&fn>0)return!we.settings.wheelPropagation}return!0}(It,wn)&&fn.preventDefault())}})},wheel:function re(we){var We=we.element;function fn(mt){var It=function St(mt){var It=mt.deltaX,wn=-1*mt.deltaY;return(typeof It>"u"||typeof wn>"u")&&(It=-1*mt.wheelDeltaX/6,wn=mt.wheelDeltaY/6),mt.deltaMode&&1===mt.deltaMode&&(It*=10,wn*=10),It!=It&&wn!=wn&&(It=0,wn=mt.wheelDelta),mt.shiftKey?[-wn,-It]:[It,wn]}(mt),wn=It[0],In=It[1];if(!function At(mt,It,wn){if(!P.isWebKit&&We.querySelector("select:focus"))return!0;if(!We.contains(mt))return!1;for(var In=mt;In&&In!==We;){if(In.classList.contains($_element_consuming))return!0;var ei=M(In);if(wn&&ei.overflowY.match(/(scroll|auto)/)){var Li=In.scrollHeight-In.clientHeight;if(Li>0&&(In.scrollTop>0&&wn<0||In.scrollTop0))return!0}if(It&&ei.overflowX.match(/(scroll|auto)/)){var kt=In.scrollWidth-In.clientWidth;if(kt>0&&(In.scrollLeft>0&&It<0||In.scrollLeft0))return!0}In=In.parentNode}return!1}(mt.target,wn,In)){var ei=!1;we.settings.useBothWheelAxes?we.scrollbarYActive&&!we.scrollbarXActive?(In?We.scrollTop-=In*we.settings.wheelSpeed:We.scrollTop+=wn*we.settings.wheelSpeed,ei=!0):we.scrollbarXActive&&!we.scrollbarYActive&&(wn?We.scrollLeft+=wn*we.settings.wheelSpeed:We.scrollLeft-=In*we.settings.wheelSpeed,ei=!0):(We.scrollTop-=In*we.settings.wheelSpeed,We.scrollLeft+=wn*we.settings.wheelSpeed),C(we),ei=ei||function Lt(mt,It){var wn=Math.floor(We.scrollTop),In=0===We.scrollTop,ei=wn+We.offsetHeight===We.scrollHeight,Li=0===We.scrollLeft,kt=We.scrollLeft+We.offsetWidth===We.scrollWidth;return!(Math.abs(It)>Math.abs(mt)?In||ei:Li||kt)||!we.settings.wheelPropagation}(wn,In),ei&&!mt.ctrlKey&&(mt.stopPropagation(),mt.preventDefault())}}typeof window.onwheel<"u"?we.event.bind(We,"wheel",fn):typeof window.onmousewheel<"u"&&we.event.bind(We,"mousewheel",fn)},touch:function he(we){if(P.supportsTouch||P.supportsIePointer){var We=we.element,At={},fn=0,mt={},It=null;P.supportsTouch?(we.event.bind(We,"touchstart",ei),we.event.bind(We,"touchmove",kt),we.event.bind(We,"touchend",Ot)):P.supportsIePointer&&(window.PointerEvent?(we.event.bind(We,"pointerdown",ei),we.event.bind(We,"pointermove",kt),we.event.bind(We,"pointerup",Ot)):window.MSPointerEvent&&(we.event.bind(We,"MSPointerDown",ei),we.event.bind(We,"MSPointerMove",kt),we.event.bind(We,"MSPointerUp",Ot)))}function St(Ze,Ge){We.scrollTop-=Ge,We.scrollLeft-=Ze,C(we)}function wn(Ze){return Ze.targetTouches?Ze.targetTouches[0]:Ze}function In(Ze){return!(Ze.pointerType&&"pen"===Ze.pointerType&&0===Ze.buttons||!(Ze.targetTouches&&1===Ze.targetTouches.length||Ze.pointerType&&"mouse"!==Ze.pointerType&&Ze.pointerType!==Ze.MSPOINTER_TYPE_MOUSE))}function ei(Ze){if(In(Ze)){var Ge=wn(Ze);At.pageX=Ge.pageX,At.pageY=Ge.pageY,fn=(new Date).getTime(),null!==It&&clearInterval(It)}}function kt(Ze){if(In(Ze)){var Ge=wn(Ze),Pt={pageX:Ge.pageX,pageY:Ge.pageY},Yt=Pt.pageX-At.pageX,bn=Pt.pageY-At.pageY;if(function Li(Ze,Ge,Pt){if(!We.contains(Ze))return!1;for(var Yt=Ze;Yt&&Yt!==We;){if(Yt.classList.contains($_element_consuming))return!0;var bn=M(Yt);if(Pt&&bn.overflowY.match(/(scroll|auto)/)){var $n=Yt.scrollHeight-Yt.clientHeight;if($n>0&&(Yt.scrollTop>0&&Pt<0||Yt.scrollTop<$n&&Pt>0))return!0}if(Ge&&bn.overflowX.match(/(scroll|auto)/)){var oi=Yt.scrollWidth-Yt.clientWidth;if(oi>0&&(Yt.scrollLeft>0&&Ge<0||Yt.scrollLeft0))return!0}Yt=Yt.parentNode}return!1}(Ze.target,Yt,bn))return;St(Yt,bn),At=Pt;var $n=(new Date).getTime(),oi=$n-fn;oi>0&&(mt.x=Yt/oi,mt.y=bn/oi,fn=$n),function Lt(Ze,Ge){var Pt=Math.floor(We.scrollTop),Yt=We.scrollLeft,bn=Math.abs(Ze),$n=Math.abs(Ge);if($n>bn){if(Ge<0&&Pt===we.contentHeight-we.containerHeight||Ge>0&&0===Pt)return 0===window.scrollY&&Ge>0&&P.isChrome}else if(bn>$n&&(Ze<0&&Yt===we.contentWidth-we.containerWidth||Ze>0&&0===Yt))return!0;return!0}(Yt,bn)&&Ze.preventDefault()}}function Ot(){we.settings.swipeEasing&&(clearInterval(It),It=setInterval(function(){we.isInitialized?clearInterval(It):mt.x||mt.y?Math.abs(mt.x)<.01&&Math.abs(mt.y)<.01?clearInterval(It):we.element?(St(30*mt.x,30*mt.y),mt.x*=.8,mt.y*=.8):clearInterval(It):clearInterval(It)},10))}}},ce=function(We,Lt){var St=this;if(void 0===Lt&&(Lt={}),"string"==typeof We&&(We=document.querySelector(We)),!We||!We.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var At in this.element=We,We.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},Lt)this.settings[At]=Lt[At];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var ei,In,fn=function(){return We.classList.add($_state_focus)},mt=function(){return We.classList.remove($_state_focus)};this.isRtl="rtl"===M(We).direction,!0===this.isRtl&&We.classList.add("ps__rtl"),this.isNegativeScroll=(In=We.scrollLeft,We.scrollLeft=-1,ei=We.scrollLeft<0,We.scrollLeft=In,ei),this.negativeScrollAdjustment=this.isNegativeScroll?We.scrollWidth-We.clientWidth:0,this.event=new L,this.ownerDocument=We.ownerDocument||document,this.scrollbarXRail=j($_element_rail("x")),We.appendChild(this.scrollbarXRail),this.scrollbarX=j($_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",fn),this.event.bind(this.scrollbarX,"blur",mt),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var It=M(this.scrollbarXRail);this.scrollbarXBottom=parseInt(It.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=u(It.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=u(It.borderLeftWidth)+u(It.borderRightWidth),K(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=u(It.marginLeft)+u(It.marginRight),K(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=j($_element_rail("y")),We.appendChild(this.scrollbarYRail),this.scrollbarY=j($_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",fn),this.event.bind(this.scrollbarY,"blur",mt),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var wn=M(this.scrollbarYRail);this.scrollbarYRight=parseInt(wn.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=u(wn.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function T(we){var We=M(we);return u(We.width)+u(We.paddingLeft)+u(We.paddingRight)+u(We.borderLeftWidth)+u(We.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=u(wn.borderTopWidth)+u(wn.borderBottomWidth),K(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=u(wn.marginTop)+u(wn.marginBottom),K(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:We.scrollLeft<=0?"start":We.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:We.scrollTop<=0?"start":We.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(In){return ge[In](St)}),this.lastScrollTop=Math.floor(We.scrollTop),this.lastScrollLeft=We.scrollLeft,this.event.bind(this.element,"scroll",function(In){return St.onScroll(In)}),C(this)};ce.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,K(this.scrollbarXRail,{display:"block"}),K(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=u(M(this.scrollbarXRail).marginLeft)+u(M(this.scrollbarXRail).marginRight),this.railYMarginHeight=u(M(this.scrollbarYRail).marginTop)+u(M(this.scrollbarYRail).marginBottom),K(this.scrollbarXRail,{display:"none"}),K(this.scrollbarYRail,{display:"none"}),C(this),s(this,"top",0,!1,!0),s(this,"left",0,!1,!0),K(this.scrollbarXRail,{display:""}),K(this.scrollbarYRail,{display:""}))},ce.prototype.onScroll=function(We){this.isAlive&&(C(this),s(this,"top",this.element.scrollTop-this.lastScrollTop),s(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},ce.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),V(this.scrollbarX),V(this.scrollbarY),V(this.scrollbarXRail),V(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},ce.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(We){return!We.match(/^ps([-_].+|)$/)}).join(" ")};const Re=ce;var Me=function(){if(typeof Map<"u")return Map;function we(We,Lt){var St=-1;return We.some(function(At,fn){return At[0]===Lt&&(St=fn,!0)}),St}return function(){function We(){this.__entries__=[]}return Object.defineProperty(We.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),We.prototype.get=function(Lt){var St=we(this.__entries__,Lt),At=this.__entries__[St];return At&&At[1]},We.prototype.set=function(Lt,St){var At=we(this.__entries__,Lt);~At?this.__entries__[At][1]=St:this.__entries__.push([Lt,St])},We.prototype.delete=function(Lt){var St=this.__entries__,At=we(St,Lt);~At&&St.splice(At,1)},We.prototype.has=function(Lt){return!!~we(this.__entries__,Lt)},We.prototype.clear=function(){this.__entries__.splice(0)},We.prototype.forEach=function(Lt,St){void 0===St&&(St=null);for(var At=0,fn=this.__entries__;At0},we.prototype.connect_=function(){!ve||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yt?(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)},we.prototype.disconnect_=function(){!ve||!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)},we.prototype.onTransitionEnd_=function(We){var Lt=We.propertyName,St=void 0===Lt?"":Lt;dt.some(function(fn){return!!~St.indexOf(fn)})&&this.refresh()},we.getInstance=function(){return this.instance_||(this.instance_=new we),this.instance_},we.instance_=null,we}(),rt=function(we,We){for(var Lt=0,St=Object.keys(We);Lt"u")&&Element instanceof Object){if(!(We instanceof Mn(We).Element))throw new TypeError('parameter 1 is not of type "Element".');var Lt=this.observations_;Lt.has(We)||(Lt.set(We,new En(We)),this.controller_.addObserver(this),this.controller_.refresh())}},we.prototype.unobserve=function(We){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(We instanceof Mn(We).Element))throw new TypeError('parameter 1 is not of type "Element".');var Lt=this.observations_;Lt.has(We)&&(Lt.delete(We),Lt.size||this.controller_.removeObserver(this))}},we.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},we.prototype.gatherActive=function(){var We=this;this.clearActive(),this.observations_.forEach(function(Lt){Lt.isActive()&&We.activeObservations_.push(Lt)})},we.prototype.broadcastActive=function(){if(this.hasActive()){var We=this.callbackCtx_,Lt=this.activeObservations_.map(function(St){return new _n(St.target,St.broadcastRect())});this.callback_.call(We,Lt,We),this.clearActive()}},we.prototype.clearActive=function(){this.activeObservations_.splice(0)},we.prototype.hasActive=function(){return this.activeObservations_.length>0},we}(),Fe=typeof WeakMap<"u"?new WeakMap:new Me,Pe=function(){return function we(We){if(!(this instanceof we))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Lt=Et.getInstance(),St=new tt(We,Lt,this);Fe.set(this,St)}}();["observe","unobserve","disconnect"].forEach(function(we){Pe.prototype[we]=function(){var We;return(We=Fe.get(this))[we].apply(We,arguments)}});const Qe=typeof oe.ResizeObserver<"u"?oe.ResizeObserver:Pe,le=["*"];function Ne(we,We){if(1&we&&(h.j41(0,"div",3),h.nrm(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),h.k0s()),2&we){const Lt=h.XpG();h.AVh("ps-at-top",Lt.states.top)("ps-at-left",Lt.states.left)("ps-at-right",Lt.states.right)("ps-at-bottom",Lt.states.bottom),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorY&&Lt.interaction),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorX&&Lt.interaction),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorX&&Lt.interaction),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorY&&Lt.interaction)}}const ze=new w.nKC("PERFECT_SCROLLBAR_CONFIG");class Je{constructor(We,Lt,St,At){this.x=We,this.y=Lt,this.w=St,this.h=At}}class gt{constructor(We,Lt){this.x=We,this.y=Lt}}const zt=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Ye{constructor(We={}){this.assign(We)}assign(We={}){for(const Lt in We)this[Lt]=We[Lt]}}let st=(()=>{class we{constructor(Lt,St,At,fn,mt){this.zone=Lt,this.differs=St,this.elementRef=At,this.platformId=fn,this.defaults=mt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new i.B,this.disabled=!1,this.psScrollY=new h.bkB,this.psScrollX=new h.bkB,this.psScrollUp=new h.bkB,this.psScrollDown=new h.bkB,this.psScrollLeft=new h.bkB,this.psScrollRight=new h.bkB,this.psYReachEnd=new h.bkB,this.psYReachStart=new h.bkB,this.psXReachEnd=new h.bkB,this.psXReachStart=new h.bkB}ngOnInit(){if(!this.disabled&&(0,F.UE)(this.platformId)){const Lt=new Ye(this.defaults);Lt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Re(this.elementRef.nativeElement,Lt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Qe(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{zt.forEach(St=>{const At=St.replace(/([A-Z])/g,fn=>`-${fn.toLowerCase()}`);(0,g.R)(this.elementRef.nativeElement,At).pipe((0,D.Z)(20),(0,o.Q)(this.ngDestroy)).subscribe(fn=>{this[St].emit(fn)})})})}}ngOnDestroy(){(0,F.UE)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,F.UE)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Lt){Lt.disabled&&!Lt.disabled.isFirstChange()&&(0,F.UE)(this.platformId)&&Lt.disabled.currentValue!==Lt.disabled.previousValue&&(!0===Lt.disabled.currentValue?this.ngOnDestroy():!1===Lt.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(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{}},0))}geometry(Lt="scroll"){return new Je(this.elementRef.nativeElement[Lt+"Left"],this.elementRef.nativeElement[Lt+"Top"],this.elementRef.nativeElement[Lt+"Width"],this.elementRef.nativeElement[Lt+"Height"])}position(Lt=!1){return!Lt&&this.instance?new gt(this.instance.reach.x||0,this.instance.reach.y||0):new gt(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Lt="any"){const St=this.elementRef.nativeElement;return"any"===Lt?St.classList.contains("ps--active-x")||St.classList.contains("ps--active-y"):"both"===Lt?St.classList.contains("ps--active-x")&&St.classList.contains("ps--active-y"):St.classList.contains("ps--active-"+Lt)}scrollTo(Lt,St,At){this.disabled||(null==St&&null==At?this.animateScrolling("scrollTop",Lt,At):(null!=Lt&&this.animateScrolling("scrollLeft",Lt,At),null!=St&&this.animateScrolling("scrollTop",St,At)))}scrollToX(Lt,St){this.animateScrolling("scrollLeft",Lt,St)}scrollToY(Lt,St){this.animateScrolling("scrollTop",Lt,St)}scrollToTop(Lt,St){this.animateScrolling("scrollTop",Lt||0,St)}scrollToLeft(Lt,St){this.animateScrolling("scrollLeft",Lt||0,St)}scrollToRight(Lt,St){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Lt||0),St)}scrollToBottom(Lt,St){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Lt||0),St)}scrollToElement(Lt,St,At){if("string"==typeof Lt&&(Lt=this.elementRef.nativeElement.querySelector(Lt)),Lt){const fn=Lt.getBoundingClientRect(),mt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",fn.left-mt.left+this.elementRef.nativeElement.scrollLeft+(St||0),At),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",fn.top-mt.top+this.elementRef.nativeElement.scrollTop+(St||0),At)}}animateScrolling(Lt,St,At){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!At||typeof window>"u")this.elementRef.nativeElement[Lt]=St;else if(St!==this.elementRef.nativeElement[Lt]){let fn=0,mt=0,It=performance.now(),wn=this.elementRef.nativeElement[Lt];const In=(wn-St)/2,ei=Li=>{mt+=Math.PI/(At/(Li-It)),fn=Math.round(St+In+In*Math.cos(mt)),this.elementRef.nativeElement[Lt]===wn&&(mt>=Math.PI?this.animateScrolling(Lt,St,0):(this.elementRef.nativeElement[Lt]=fn,wn=this.elementRef.nativeElement[Lt],It=Li,this.animation=window.requestAnimationFrame(ei)))};window.requestAnimationFrame(ei)}}}return we.\u0275fac=function(Lt){return new(Lt||we)(h.rXU(h.SKi),h.rXU(d.MKu),h.rXU(h.aKT),h.rXU(h.Agw),h.rXU(ze,8))},we.\u0275dir=h.FsC({type:we,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:[0,"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"],standalone:!1,features:[h.OA$]}),we})(),it=(()=>{class we{constructor(Lt,St,At){this.zone=Lt,this.cdRef=St,this.platformId=At,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new i.B,this.stateUpdate=new i.B,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new h.bkB,this.psScrollX=new h.bkB,this.psScrollUp=new h.bkB,this.psScrollDown=new h.bkB,this.psScrollLeft=new h.bkB,this.psScrollRight=new h.bkB,this.psYReachEnd=new h.bkB,this.psYReachStart=new h.bkB,this.psXReachEnd=new h.bkB,this.psXReachStart=new h.bkB}ngOnInit(){(0,F.UE)(this.platformId)&&(this.stateUpdate.pipe((0,o.Q)(this.ngDestroy),(0,e.F)((Lt,St)=>Lt===St&&!this.stateTimeout)).subscribe(Lt=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===Lt||"y"===Lt?(this.interaction=!1,"x"===Lt?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===Lt&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===Lt||"right"===Lt?(this.states.left=!1,this.states.right=!1,this.states[Lt]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===Lt||"bottom"===Lt)&&(this.states.top=!1,this.states.bottom=!1,this.states[Lt]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const Lt=this.directiveRef.elementRef.nativeElement;(0,g.R)(Lt,"wheel").pipe((0,o.Q)(this.ngDestroy)).subscribe(St=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(St,St.deltaX,St.deltaY)}),(0,g.R)(Lt,"touchmove").pipe((0,o.Q)(this.ngDestroy)).subscribe(St=>{if(!this.disabled&&this.autoPropagation){const At=St.touches[0].clientX,fn=St.touches[0].clientY;this.checkPropagation(St,At-this.scrollPositionX,fn-this.scrollPositionY),this.scrollPositionX=At,this.scrollPositionY=fn}}),(0,p.h)((0,g.R)(Lt,"ps-scroll-x").pipe((0,A.u)("x")),(0,g.R)(Lt,"ps-scroll-y").pipe((0,A.u)("y")),(0,g.R)(Lt,"ps-x-reach-end").pipe((0,A.u)("right")),(0,g.R)(Lt,"ps-y-reach-end").pipe((0,A.u)("bottom")),(0,g.R)(Lt,"ps-x-reach-start").pipe((0,A.u)("left")),(0,g.R)(Lt,"ps-y-reach-start").pipe((0,A.u)("top"))).pipe((0,o.Q)(this.ngDestroy)).subscribe(St=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(St)})}}),window.setTimeout(()=>{zt.forEach(Lt=>{this.directiveRef&&(this.directiveRef[Lt]=this[Lt])})},0))}ngOnDestroy(){(0,F.UE)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,F.UE)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const Lt=this.directiveRef.elementRef.nativeElement;this.usePropagationX=Lt.classList.contains("ps--active-x"),this.usePropagationY=Lt.classList.contains("ps--active-y")}}checkPropagation(Lt,St,At){this.interaction=!0;const fn=St<0?-1:1,mt=At<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==fn)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==mt))&&(Lt.preventDefault(),Lt.stopPropagation()),St&&(this.scrollDirectionX=fn),At&&(this.scrollDirectionY=mt),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return we.\u0275fac=function(Lt){return new(Lt||we)(h.rXU(h.SKi),h.rXU(d.gRc),h.rXU(h.Agw))},we.\u0275cmp=h.VBU({type:we,selectors:[["perfect-scrollbar"]],viewQuery:function(Lt,St){if(1&Lt&&h.GBs(st,7),2&Lt){let At;h.mGM(At=h.lsd())&&(St.directiveRef=At.first)}},hostVars:4,hostBindings:function(Lt,St){2&Lt&&h.AVh("ps-show-limits",St.autoPropagation)("ps-show-active",St.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],standalone:!1,ngContentSelectors:le,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(Lt,St){1&Lt&&(h.NAR(),h.j41(0,"div",0)(1,"div",1),h.SdG(2),h.k0s(),h.DNE(3,Ne,5,16,"div",2),h.k0s()),2&Lt&&(h.AVh("ps",St.usePSClass),h.Y8G("perfectScrollbar",St.config)("disabled",St.disabled),h.R7$(3),h.Y8G("ngIf",St.scrollIndicators))},dependencies:[st,f.bT],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-width:0;min-height:0}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit}perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{position:absolute;opacity:0;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y,perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y,perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:linear-gradient(to bottom,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:linear-gradient(to top,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:linear-gradient(to right,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:linear-gradient(to left,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(to bottom,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(to top,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(to right,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(to left,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show{opacity:1}\n",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0px;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n"],encapsulation:2}),we})(),Wt=(()=>{class we{}return we.\u0275fac=function(Lt){return new(Lt||we)},we.\u0275mod=h.$C({type:we}),we.\u0275inj=w.G2t({imports:[[f.MD],f.MD]}),we})()},10467(ke,q,l){"use strict";function i(p,D,o,e,A,h,d){try{var w=p[h](d),f=w.value}catch(F){return void o(F)}w.done?D(f):Promise.resolve(f).then(e,A)}function g(p){return function(){var D=this,o=arguments;return new Promise(function(e,A){var h=p.apply(D,o);function d(f){i(h,e,A,d,w,"next",f)}function w(f){i(h,e,A,d,w,"throw",f)}d(void 0)})}}l.d(q,{A:()=>g})},31635(ke,q,l){"use strict";function o(Y,R,U,fe){var Oe,re=arguments.length,he=re<3?R:null===fe?fe=Object.getOwnPropertyDescriptor(R,U):fe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)he=Reflect.decorate(Y,R,U,fe);else for(var ge=Y.length-1;ge>=0;ge--)(Oe=Y[ge])&&(he=(re<3?Oe(he):re>3?Oe(R,U,he):Oe(R,U))||he);return re>3&&he&&Object.defineProperty(R,U,he),he}function F(Y,R,U,fe){return new(U||(U=Promise))(function(he,Oe){function ge(Me){try{Re(fe.next(Me))}catch(ve){Oe(ve)}}function ce(Me){try{Re(fe.throw(Me))}catch(ve){Oe(ve)}}function Re(Me){Me.done?he(Me.value):function re(he){return he instanceof U?he:new U(function(Oe){Oe(he)})}(Me.value).then(ge,ce)}Re((fe=fe.apply(Y,R||[])).next())})}function ie(Y){return this instanceof ie?(this.v=Y,this):new ie(Y)}function _e(Y,R,U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var re,fe=U.apply(Y,R||[]),he=[];return re=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),ge("next"),ge("throw"),ge("return",function Oe(Se){return function(be){return Promise.resolve(be).then(Se,ve)}}),re[Symbol.asyncIterator]=function(){return this},re;function ge(Se,be){fe[Se]&&(re[Se]=function(nt){return new Promise(function($e,dt){he.push([Se,nt,$e,dt])>1||ce(Se,nt)})},be&&(re[Se]=be(re[Se])))}function ce(Se,be){try{!function Re(Se){Se.value instanceof ie?Promise.resolve(Se.value.v).then(Me,ve):oe(he[0][2],Se)}(fe[Se](be))}catch(nt){oe(he[0][3],nt)}}function Me(Se){ce("next",Se)}function ve(Se){ce("throw",Se)}function oe(Se,be){Se(be),he.shift(),he.length&&ce(he[0][0],he[0][1])}}function se(Y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,R=Y[Symbol.asyncIterator];return R?R.call(Y):(Y=function Z(Y){var R="function"==typeof Symbol&&Symbol.iterator,U=R&&Y[R],fe=0;if(U)return U.call(Y);if(Y&&"number"==typeof Y.length)return{next:function(){return Y&&fe>=Y.length&&(Y=void 0),{value:Y&&Y[fe++],done:!Y}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")}(Y),U={},fe("next"),fe("throw"),fe("return"),U[Symbol.asyncIterator]=function(){return this},U);function fe(he){U[he]=Y[he]&&function(Oe){return new Promise(function(ge,ce){!function re(he,Oe,ge,ce){Promise.resolve(ce).then(function(Re){he({value:Re,done:ge})},Oe)}(ge,ce,(Oe=Y[he](Oe)).done,Oe.value)})}}}l.d(q,{AQ:()=>_e,Cg:()=>o,N3:()=>ie,sH:()=>F,xN:()=>se}),"function"==typeof SuppressedError&&SuppressedError},3219(ke){"use strict";ke.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"}}')},62951(ke){"use strict";ke.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/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"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"}}')},64589(ke){"use strict";ke.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"}')},23241(ke){"use strict";ke.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"}}')},1636(ke){"use strict";ke.exports={rE:"6.6.1"}},15579(ke){"use strict";ke.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"}')}},ke=>{ke(ke.s=67947)}]); \ No newline at end of file diff --git a/frontend/main.5217805f96f400a7.js b/frontend/main.5217805f96f400a7.js new file mode 100644 index 00000000..e0949a7e --- /dev/null +++ b/frontend/main.5217805f96f400a7.js @@ -0,0 +1 @@ +(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[792],{28430(ke,q,l){"use strict";l.d(q,{$6:()=>U,$J:()=>a,$Q:()=>L,Aw:()=>h,C2:()=>f,CK:()=>ie,Db:()=>Mn,Do:()=>R,Dq:()=>he,ED:()=>qt,EM:()=>Me,Eb:()=>Se,Ew:()=>ve,Fd:()=>ye,GZ:()=>oe,Gy:()=>K,Gz:()=>yt,Hm:()=>Ee,Jx:()=>re,Ml:()=>Et,N4:()=>se,NS:()=>e,NU:()=>S,Qj:()=>j,Qv:()=>rt,Sn:()=>A,T4:()=>pe,Uj:()=>_e,VK:()=>fe,We:()=>V,XT:()=>F,Yi:()=>C,Zi:()=>$,a5:()=>Oe,aB:()=>ge,cR:()=>_,dv:()=>t,ed:()=>Q,fy:()=>s,g6:()=>Re,gf:()=>D,ij:()=>P,jQ:()=>dt,kQ:()=>$e,kX:()=>w,kv:()=>Y,lg:()=>o,no:()=>p,qw:()=>be,sq:()=>Z,uK:()=>x,vL:()=>m,w0:()=>u,x1:()=>d,y0:()=>nt,zU:()=>T});var i=l(59640),g=l(4416);const p=(0,i.VP)(g.TC.UPDATE_API_CALL_STATUS_CLN,(0,i.xk)()),D=(0,i.VP)(g.TC.RESET_CLN_STORE),o=(0,i.VP)(g.TC.FETCH_PAGE_SETTINGS_CLN),e=(0,i.VP)(g.TC.SET_PAGE_SETTINGS_CLN,(0,i.xk)()),A=(0,i.VP)(g.TC.SAVE_PAGE_SETTINGS_CLN,(0,i.xk)()),h=(0,i.VP)(g.TC.FETCH_INFO_CLN,(0,i.xk)()),d=(0,i.VP)(g.TC.SET_INFO_CLN,(0,i.xk)()),w=(0,i.VP)(g.TC.FETCH_FEE_RATES_CLN,(0,i.xk)()),f=(0,i.VP)(g.TC.SET_FEE_RATES_CLN,(0,i.xk)()),F=(0,i.VP)(g.TC.GET_NEW_ADDRESS_CLN,(0,i.xk)()),K=((0,i.VP)(g.TC.SET_NEW_ADDRESS_CLN,(0,i.xk)()),(0,i.VP)(g.TC.FETCH_PEERS_CLN)),j=(0,i.VP)(g.TC.SET_PEERS_CLN,(0,i.xk)()),Z=(0,i.VP)(g.TC.SAVE_NEW_PEER_CLN,(0,i.xk)()),V=((0,i.VP)(g.TC.NEWLY_ADDED_PEER_CLN,(0,i.xk)()),(0,i.VP)(g.TC.ADD_PEER_CLN,(0,i.xk)())),Q=(0,i.VP)(g.TC.DETACH_PEER_CLN,(0,i.xk)()),$=(0,i.VP)(g.TC.REMOVE_PEER_CLN,(0,i.xk)()),ie=(0,i.VP)(g.TC.FETCH_PAYMENTS_CLN),_e=(0,i.VP)(g.TC.SET_PAYMENTS_CLN,(0,i.xk)()),ye=(0,i.VP)(g.TC.SEND_PAYMENT_CLN,(0,i.xk)()),se=(0,i.VP)(g.TC.SEND_PAYMENT_STATUS_CLN,(0,i.xk)()),pe=(0,i.VP)(g.TC.GET_QUERY_ROUTES_CLN,(0,i.xk)()),Ee=(0,i.VP)(g.TC.SET_QUERY_ROUTES_CLN,(0,i.xk)()),L=(0,i.VP)(g.TC.FETCH_CHANNELS_CLN),t=(0,i.VP)(g.TC.SET_CHANNELS_CLN,(0,i.xk)()),s=(0,i.VP)(g.TC.UPDATE_CHANNEL_CLN,(0,i.xk)()),m=(0,i.VP)(g.TC.SAVE_NEW_CHANNEL_CLN,(0,i.xk)()),u=(0,i.VP)(g.TC.CLOSE_CHANNEL_CLN,(0,i.xk)()),_=(0,i.VP)(g.TC.REMOVE_CHANNEL_CLN,(0,i.xk)()),T=(0,i.VP)(g.TC.PEER_LOOKUP_CLN,(0,i.xk)()),P=(0,i.VP)(g.TC.CHANNEL_LOOKUP_CLN,(0,i.xk)()),C=(0,i.VP)(g.TC.INVOICE_LOOKUP_CLN,(0,i.xk)()),a=(0,i.VP)(g.TC.SET_LOOKUP_CLN,(0,i.xk)()),x=(0,i.VP)(g.TC.GET_FORWARDING_HISTORY_CLN,(0,i.xk)()),Y=(0,i.VP)(g.TC.SET_FORWARDING_HISTORY_CLN,(0,i.xk)()),R=(0,i.VP)(g.TC.FETCH_INVOICES_CLN),U=(0,i.VP)(g.TC.SET_INVOICES_CLN,(0,i.xk)()),fe=(0,i.VP)(g.TC.SAVE_NEW_INVOICE_CLN,(0,i.xk)()),re=(0,i.VP)(g.TC.ADD_INVOICE_CLN,(0,i.xk)()),he=(0,i.VP)(g.TC.UPDATE_INVOICE_CLN,(0,i.xk)()),Oe=(0,i.VP)(g.TC.DELETE_EXPIRED_INVOICE_CLN,(0,i.xk)()),ge=(0,i.VP)(g.TC.SET_CHANNEL_TRANSACTION_CLN,(0,i.xk)()),Re=((0,i.VP)(g.TC.SET_CHANNEL_TRANSACTION_RES_CLN,(0,i.xk)()),(0,i.VP)(g.TC.FETCH_UTXO_BALANCES_CLN)),Me=(0,i.VP)(g.TC.SET_UTXO_BALANCES_CLN,(0,i.xk)()),ve=(0,i.VP)(g.TC.FETCH_OFFER_INVOICE_CLN,(0,i.xk)()),oe=(0,i.VP)(g.TC.SET_OFFER_INVOICE_CLN,(0,i.xk)()),Se=(0,i.VP)(g.TC.FETCH_OFFERS_CLN),be=(0,i.VP)(g.TC.SET_OFFERS_CLN,(0,i.xk)()),nt=(0,i.VP)(g.TC.SAVE_NEW_OFFER_CLN,(0,i.xk)()),$e=(0,i.VP)(g.TC.ADD_OFFER_CLN,(0,i.xk)()),dt=(0,i.VP)(g.TC.DISABLE_OFFER_CLN,(0,i.xk)()),yt=(0,i.VP)(g.TC.UPDATE_OFFER_CLN,(0,i.xk)()),Et=(0,i.VP)(g.TC.FETCH_OFFER_BOOKMARKS_CLN),rt=(0,i.VP)(g.TC.SET_OFFER_BOOKMARKS_CLN,(0,i.xk)()),Mn=(0,i.VP)(g.TC.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,i.xk)()),qt=(0,i.VP)(g.TC.DELETE_OFFER_BOOKMARK_CLN,(0,i.xk)()),S=(0,i.VP)(g.TC.REMOVE_OFFER_BOOKMARK_CLN,(0,i.xk)())},283(ke,q,l){"use strict";l.d(q,{i:()=>se});var i=l(11747),g=l(21413),p=l(7673),D=l(99437),o=l(96354),e=l(31397),A=l(56977),h=l(12462),d=l(8321),w=l(4416),f=l(11771),F=l(28430),M=l(59584),K=l(32142),j=l(2615),Z=l(29330),ee=l(59640),V=l(53202),Q=l(82571),$=l(98570),ie=l(43694),_e=l(7879),ye=l(57303);let se=(()=>{var pe;class Ee{constructor(t,s,m,u,_,T,P,C,a){this.actions=t,this.httpClient=s,this.store=m,this.sessionService=u,this.commonService=_,this.logger=T,this.router=P,this.wsService=C,this.location=a,this.CHILD_API_URL=w.H$+"/cln",this.CLN_VERISON="",this.flgInitialized=!1,this.unSubs=[new g.B,new g.B,new g.B],this.infoFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_INFO_CLN),(0,e.Z)(x=>(this.flgInitialized=!1,this.store.dispatch((0,f.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,F.no)({payload:{action:"FetchInfo",status:w.wn.INITIATED}})),this.store.dispatch((0,f.mt)({payload:w.MZ.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+w.rl.GETINFO_API).pipe((0,A.Q)(this.actions.pipe((0,i.gp)(w.aU.SET_SELECTED_NODE))),(0,o.T)(Y=>(this.logger.info(Y),this.CLN_VERISON=Y.version||"",Y.chains&&Y.chains.length&&Y.chains[0]&&"object"==typeof Y.chains[0]&&Y.chains[0].hasOwnProperty("chain")&&Y?.chains[0].chain&&Y?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&Y?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,F.no)({payload:{action:"FetchInfo",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.GET_NODE_INFO})),this.store.dispatch((0,f.Jh)()),setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{type:w.A$.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.aU.LOGOUT,payload:"Sorry Not Sorry, RTL is Bitcoin Only!"}):(this.initializeRemainingData(Y,x.payload.loadPage),this.store.dispatch((0,F.no)({payload:{action:"FetchInfo",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.GET_NODE_INFO})),{type:w.TC.SET_INFO_CLN,payload:Y||{}}))),(0,D.W)(Y=>{const R=this.commonService.extractErrorCode(Y),U=503===R?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(Y);return this.router.navigate(["/error"],{state:{errorCode:R,errorMessage:U}}),this.handleErrorWithoutAlert("FetchInfo",w.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:R,error:U}),(0,p.of)({type:w.aU.VOID})})))))),this.fetchFeeRatesCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_FEE_RATES_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"FetchFeeRates"+x.payload,status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/feeRates",{style:x.payload}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"FetchFeeRates"+x.payload,status:w.wn.COMPLETED}})),{type:w.TC.SET_FEE_RATES_CLN,payload:Y||{}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchFeeRates"+x.payload,w.MZ.NO_SPINNER,"Fetching Fee Rates Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.getNewAddressCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.GET_NEW_ADDRESS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.post(this.CHILD_API_URL+w.rl.ON_CHAIN_API+"/newaddr",{addresstype:x.payload.addressCode}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.GENERATE_NEW_ADDRESS})),{type:w.TC.SET_NEW_ADDRESS_CLN,payload:Y&&Y[x.payload.addressCode]?Y[x.payload.addressCode]:{}})),(0,D.W)(Y=>(this.handleErrorWithAlert("GenerateNewAddress",w.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+w.rl.ON_CHAIN_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.setNewAddressCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_NEW_ADDRESS_CLN),(0,o.T)(x=>(this.logger.info(x.payload),x.payload))),{dispatch:!1}),this.peersFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_PEERS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchPeers",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.PEERS_API).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchPeers",status:w.wn.COMPLETED}})),{type:w.TC.SET_PEERS_CLN,payload:x||[]})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPeers",w.MZ.NO_SPINNER,"Fetching Peers Failed.",x),(0,p.of)({type:w.aU.VOID})))))))),this.saveNewPeerCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_PEER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.CONNECT_PEER})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewPeer",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.PEERS_API,{id:x.payload.id}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SaveNewPeer",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.CONNECT_PEER})),this.store.dispatch((0,F.Qj)({payload:Y||[]})),{type:w.TC.NEWLY_ADDED_PEER_CLN,payload:{peer:Y.find(R=>0===x.payload.id.indexOf(R.id?R.id:""))}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewPeer",w.MZ.CONNECT_PEER,"Peer Connection Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.detachPeerCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DETACH_PEER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DISCONNECT_PEER})),this.httpClient.post(this.CHILD_API_URL+w.rl.PEERS_API+"/disconnect",{id:x.payload.id,force:x.payload.force}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.DISCONNECT_PEER})),this.store.dispatch((0,f.UI)({payload:"Peer Disconnected Successfully!"})),{type:w.TC.REMOVE_PEER_CLN,payload:{id:x.payload.id}})),(0,D.W)(Y=>(this.handleErrorWithAlert("PeerDisconnect",w.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+w.rl.PEERS_API+"/"+x.payload.id,Y),(0,p.of)({type:w.aU.VOID})))))))),this.channelsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_CHANNELS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchChannels",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.CHANNELS_API+"/listPeerChannels"))),(0,o.T)(x=>{this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchChannels",status:w.wn.COMPLETED}}));const Y={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return x.forEach(R=>{"CHANNELD_NORMAL"===R.state?R.peer_connected?Y.activeChannels.push(R):Y.inactiveChannels.push(R):Y.pendingChannels.push(R)}),{type:w.TC.SET_CHANNELS_CLN,payload:Y}}),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchChannels",w.MZ.NO_SPINNER,"Fetching Channels Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.openNewChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_CHANNEL_CLN),(0,e.Z)(x=>{this.store.dispatch((0,f.mt)({payload:w.MZ.OPEN_CHANNEL})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewChannel",status:w.wn.INITIATED}}));const Y={id:x.payload.peerId,amount:x.payload.amount,feerate:x.payload.feeRate,announce:x.payload.announce};return x.payload.minconf&&(Y.minconf=x.payload.minconf),x.payload.utxos&&(Y.utxos=x.payload.utxos),x.payload.requestAmount&&(Y.request_amt=x.payload.requestAmount),x.payload.compactLease&&(Y.compact_lease=x.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API,Y).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,F.no)({payload:{action:"SaveNewChannel",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.OPEN_CHANNEL})),this.store.dispatch((0,f.UI)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,F.g6)()),{type:w.TC.FETCH_CHANNELS_CLN})),(0,D.W)(R=>(this.handleErrorWithoutAlert("SaveNewChannel",w.MZ.OPEN_CHANNEL,"Opening Channel Failed.",R),(0,p.of)({type:w.aU.VOID}))))}))),this.updateChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.UPDATE_CHANNEL_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API+"/setChannelFee",x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,f.UI)("all"===x.payload.id?{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.TC.FETCH_CHANNELS_CLN})),(0,D.W)(Y=>(this.handleErrorWithAlert("UpdateChannel",w.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+w.rl.CHANNELS_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.closeChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.CLOSE_CHANNEL_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:x.payload.force?w.MZ.FORCE_CLOSE_CHANNEL:w.MZ.CLOSE_CHANNEL})),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API+"/close",{id:x.payload.channelId,unilateraltimeout:x.payload.force?1:null}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:x.payload.force?w.MZ.FORCE_CLOSE_CHANNEL:w.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.g6)()),this.store.dispatch((0,f.UI)({payload:"Channel Closed Successfully!"})),{type:w.TC.REMOVE_CHANNEL_CLN,payload:x.payload})),(0,D.W)(Y=>(this.handleErrorWithAlert("CloseChannel",x.payload.force?w.MZ.FORCE_CLOSE_CHANNEL:w.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+w.rl.CHANNELS_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.paymentsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_PAYMENTS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchPayments",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.PAYMENTS_API))),(0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchPayments",status:w.wn.COMPLETED}})),{type:w.TC.SET_PAYMENTS_CLN,payload:x||[]})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPayments",w.MZ.NO_SPINNER,"Fetching Payments Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.fetchOfferInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_OFFER_INVOICE_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.FETCH_INVOICE})),this.store.dispatch((0,F.no)({payload:{action:"FetchOfferInvoice",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API+"/fetchOfferInvoice",x.payload).pipe((0,o.T)(Y=>{this.logger.info(Y),setTimeout(()=>{this.store.dispatch((0,F.no)({payload:{action:"FetchOfferInvoice",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.FETCH_INVOICE})),this.store.dispatch((0,F.GZ)({payload:Y||{}}))},500)}),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.MZ.FETCH_INVOICE,"Offer Invoice Fetch Failed",Y),(0,p.of)({type:w.aU.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_OFFER_INVOICE_CLN),(0,o.T)(x=>(this.logger.info(x.payload),x.payload))),{dispatch:!1}),this.sendPaymentCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SEND_PAYMENT_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:x.payload.uiMessage})),this.store.dispatch((0,F.no)({payload:{action:"SendPayment",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.PAYMENTS_API,x.payload).pipe((0,o.T)(Y=>{this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SendPayment",status:w.wn.COMPLETED}}));let R="Payment Sent Successfully!";Y.saveToDBError&&(R="Payment Sent Successfully but Offer Saving to Database Failed."),Y.saveToDBResponse&&"NA"!==Y.saveToDBResponse&&(this.store.dispatch((0,F.Db)({payload:Y.saveToDBResponse})),R="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.g6)()),this.store.dispatch((0,F.CK)()),this.store.dispatch((0,f.y0)({payload:x.payload.uiMessage})),this.store.dispatch((0,f.UI)({payload:R})),this.store.dispatch((0,F.N4)({payload:Y.paymentResponse}))},1e3)}),(0,D.W)(Y=>(this.logger.error("Error: "+JSON.stringify(Y)),x.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",x.payload.uiMessage,"Send Payment Failed.",Y):this.handleErrorWithAlert("SendPayment",x.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+w.rl.PAYMENTS_API,Y),(0,p.of)({type:w.aU.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.GET_QUERY_ROUTES_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"GetQueryRoutes",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/getRoute",{id:x.payload.destPubkey,amount_msat:x.payload.amount,riskfactor:0}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"GetQueryRoutes",status:w.wn.COMPLETED}})),{type:w.TC.SET_QUERY_ROUTES_CLN,payload:Y})),(0,D.W)(Y=>(this.store.dispatch((0,F.Hm)({payload:{route:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+w.rl.NETWORK_API+"/getRoute",Y),(0,p.of)({type:w.aU.VOID})))))))),this.setQueryRoutesCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_QUERY_ROUTES_CLN),(0,o.T)(x=>x.payload)),{dispatch:!1}),this.peerLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.PEER_LOOKUP_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.SEARCHING_NODE})),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/listNodes",{id:x.payload}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.SEARCHING_NODE})),{type:w.TC.SET_LOOKUP_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithAlert("Lookup",w.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+w.rl.NETWORK_API+"/listNodes/"+x.payload,Y),(0,p.of)({type:w.aU.VOID})))))))),this.channelLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.CHANNEL_LOOKUP_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:x.payload.uiMessage})),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/listChannels",{short_channel_id:x.payload.shortChannelID}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:x.payload.uiMessage})),{type:w.TC.SET_LOOKUP_CLN,payload:Y})),(0,D.W)(Y=>(x.payload.showError?this.handleErrorWithAlert("Lookup",x.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+w.rl.NETWORK_API+"/listChannels/"+x.payload.shortChannelID,Y):this.store.dispatch((0,f.y0)({payload:x.payload.uiMessage})),this.store.dispatch((0,F.$J)({payload:[]})),(0,p.of)({type:w.aU.VOID})))))))),this.invoiceLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.INVOICE_LOOKUP_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API+"/lookup",{label:x.payload}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.SEARCHING_INVOICE})),Y.invoices&&Y.invoices.length&&Y.invoices.length>0&&this.store.dispatch((0,F.Dq)({payload:Y.invoices[0]})),{type:w.TC.SET_LOOKUP_CLN,payload:Y.invoices&&Y.invoices.length&&Y.invoices.length>0?Y.invoices[0]:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("Lookup",w.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",Y),this.store.dispatch((0,f.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,p.of)({type:w.aU.VOID})))))))),this.setLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_LOOKUP_CLN),(0,o.T)(x=>(this.logger.info(x.payload),x.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.GET_FORWARDING_HISTORY_CLN),(0,e.Z)(x=>{const Y=x.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,F.no)({payload:{action:"FetchForwardingHistory"+Y,status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API+"/listForwards",x.payload).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,F.no)({payload:{action:"FetchForwardingHistory"+Y,status:w.wn.COMPLETED}})),x.payload.status===w.xk.FAILED?this.store.dispatch((0,F.kv)({payload:{status:w.xk.FAILED,totalForwards:R.length,listForwards:R}})):x.payload.status===w.xk.LOCAL_FAILED?this.store.dispatch((0,F.kv)({payload:{status:w.xk.LOCAL_FAILED,totalForwards:R.length,listForwards:R}})):x.payload.status===w.xk.SETTLED&&this.store.dispatch((0,F.kv)({payload:{status:w.xk.SETTLED,totalForwards:R.length,listForwards:R}})),{type:w.aU.VOID})),(0,D.W)(R=>(this.handleErrorWithAlert("FetchForwardingHistory"+Y,w.MZ.NO_SPINNER,"Get "+x.payload.status+" Forwarding History Failed",this.CHILD_API_URL+w.rl.CHANNELS_API+"/listForwards",R),(0,p.of)({type:w.aU.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DELETE_EXPIRED_INVOICE_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DELETE_INVOICE})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API+"/delete",{subsystem:"expiredinvoices",age:w.NG}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.DELETE_INVOICE})),this.store.dispatch((0,f.UI)({payload:Y.status})),{type:w.TC.FETCH_INVOICES_CLN})),(0,D.W)(Y=>(this.handleErrorWithAlert("DeleteInvoices",w.MZ.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+w.rl.INVOICES_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.saveNewInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_INVOICE_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.ADD_INVOICE})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewInvoice",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SaveNewInvoice",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.ADD_INVOICE})),Y.amount_msat=x.payload.amount_msat,Y.label=x.payload.label,Y.expires_at=Math.round((new Date).getTime()/1e3+x.payload.expiry),Y.description=x.payload.description,Y.status="unpaid",setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{invoice:Y,newlyAdded:!0,component:d.y}}}))},200),{type:w.TC.ADD_INVOICE_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.MZ.ADD_INVOICE,"Add Invoice Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.saveNewOfferCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_OFFER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.CREATE_OFFER})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewOffer",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SaveNewOffer",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{offer:Y,newlyAdded:!0,component:K.f}}}))},100),{type:w.TC.ADD_OFFER_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewOffer",w.MZ.CREATE_OFFER,"Create Offer Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.invoicesFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_INVOICES_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchInvoices",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API+"/lookup",null))),(0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchInvoices",status:w.wn.COMPLETED}})),{type:w.TC.SET_INVOICES_CLN,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchInvoices",w.MZ.NO_SPINNER,"Fetching Invoices Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.offersFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_OFFERS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"FetchOffers",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.OFFERS_API).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"FetchOffers",status:w.wn.COMPLETED}})),{type:w.TC.SET_OFFERS_CLN,payload:Y.offers?Y.offers:[]})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchOffers",w.MZ.NO_SPINNER,"Fetching Offers Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.offersDisableCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DISABLE_OFFER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DISABLE_OFFER})),this.store.dispatch((0,F.no)({payload:{action:"DisableOffer",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API+"/disableOffer",{offer_id:x.payload.offer_id}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"DisableOffer",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.DISABLE_OFFER})),this.store.dispatch((0,f.UI)({payload:"Offer Disabled Successfully!"})),{type:w.TC.UPDATE_OFFER_CLN,payload:{offer:Y}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("DisableOffer",w.MZ.DISABLE_OFFER,"Disabling Offer Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.offerBookmarksFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_OFFER_BOOKMARKS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"FetchOfferBookmarks",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.OFFERS_API+"/offerbookmarks").pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"FetchOfferBookmarks",status:w.wn.COMPLETED}})),{type:w.TC.SET_OFFER_BOOKMARKS_CLN,payload:Y||[]})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.MZ.NO_SPINNER,"Fetching Offer Bookmarks Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.peidOffersDeleteCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DELETE_OFFER_BOOKMARK_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,F.no)({payload:{action:"DeleteOfferBookmark",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API+"/offerbookmark/delete",{offer_str:x.payload.bolt12}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"DeleteOfferBookmark",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,f.UI)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.TC.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:x.payload.bolt12}})),(0,D.W)(Y=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.MZ.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+w.rl.OFFERS_API+"/offerbookmark/"+x.payload.bolt12,Y),(0,p.of)({type:w.aU.VOID})))))))),this.SetChannelTransactionCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_CHANNEL_TRANSACTION_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.SEND_FUNDS})),this.store.dispatch((0,F.no)({payload:{action:"SetChannelTransaction",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.ON_CHAIN_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SetChannelTransaction",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.SEND_FUNDS})),this.store.dispatch((0,F.g6)()),{type:w.TC.SET_CHANNEL_TRANSACTION_RES_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.MZ.SEND_FUNDS,"Sending Fund Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.utxoBalancesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_UTXO_BALANCES_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchUTXOBalances",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.ON_CHAIN_API+"/utxos"))),(0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchUTXOBalances",status:w.wn.COMPLETED}})),{type:w.TC.SET_UTXO_BALANCES_CLN,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchUTXOBalances",w.MZ.NO_SPINNER,"Fetching UTXO and Balances Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.pageSettingsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_PAGE_SETTINGS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchPageSettings",status:w.wn.INITIATED}})),this.httpClient.get(w.rl.PAGE_SETTINGS_API).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchPageSettings",status:w.wn.COMPLETED}})),{type:w.TC.SET_PAGE_SETTINGS_CLN,payload:x||[]})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPageSettings",w.MZ.NO_SPINNER,"Fetching Page Settings Failed.",x),(0,p.of)({type:w.aU.VOID})))))))),this.savePageSettingsCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_PAGE_SETTINGS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,F.no)({payload:{action:"SavePageSettings",status:w.wn.INITIATED}})),this.httpClient.post(w.rl.PAGE_SETTINGS_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SavePageSettings",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,f.UI)({payload:"Page Layout Updated Successfully!"})),{type:w.TC.SET_PAGE_SETTINGS_CLN,payload:Y||[]})),(0,D.W)(Y=>(this.handleErrorWithAlert("SavePageSettings",w.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",w.rl.PAGE_SETTINGS_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.store.select(M.ru).pipe((0,A.Q)(this.unSubs[0])).subscribe(x=>{x.FetchInfo.status!==w.wn.COMPLETED&&x.FetchInfo.status!==w.wn.ERROR||x.FetchChannels.status!==w.wn.COMPLETED&&x.FetchChannels.status!==w.wn.ERROR||x.FetchUTXOBalances.status!==w.wn.COMPLETED&&x.FetchUTXOBalances.status!==w.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,f.y0)({payload:w.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,A.Q)(this.unSubs[1])).subscribe(x=>{this.logger.info("Received new message from the service: "+JSON.stringify(x)),x&&x.data&&x.data[w.Jr.INVOICE_PAYMENT]&&x.data[w.Jr.INVOICE_PAYMENT].label&&this.store.dispatch((0,F.Dq)({payload:x.data[w.Jr.INVOICE_PAYMENT]}))})}initializeRemainingData(t,s){this.sessionService.setItem("clnUnlocked","true");const m={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network.toLowerCase(),chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,numberOfPendingChannels:t.num_pending_channels};this.store.dispatch((0,f.mt)({payload:w.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,f.Fl)({payload:m}));let u=this.location.path();u.includes("/lnd/")?u=u?.replace("/lnd/","/cln/"):u.includes("/ecl/")&&(u=u?.replace("/ecl/","/cln/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===s||u.includes("?access-key="))&&(u="/cln/home"),this.router.navigate([u]),this.store.dispatch((0,F.Do)()),this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.g6)()),this.store.dispatch((0,F.kX)({payload:"perkw"})),this.store.dispatch((0,F.kX)({payload:"perkb"})),this.store.dispatch((0,F.Gy)()),this.store.dispatch((0,F.CK)())}handleErrorWithoutAlert(t,s,m,u){if(this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(u)),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.Jh)()),this.store.dispatch((0,f.ri)({payload:"Authentication Failed: "+JSON.stringify(u.error)}));else{this.store.dispatch((0,f.y0)({payload:s}));const _=this.commonService.extractErrorMessage(u,m);this.store.dispatch((0,F.no)({payload:{action:t,status:w.wn.ERROR,statusCode:u.status.toString(),message:_}}))}}handleErrorWithAlert(t,s,m,u,_){if(this.logger.error(_),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.Jh)()),this.store.dispatch((0,f.ri)({payload:"Authentication Failed: "+JSON.stringify(_.error)})),this.store.dispatch((0,f.UI)({payload:"Authentication Failed: "+_.error}));else{this.store.dispatch((0,f.y0)({payload:s}));const T=this.commonService.extractErrorMessage(_);this.store.dispatch((0,f.xO)({payload:{data:{type:"ERROR",alertTitle:m,message:{code:_.status,message:T,URL:u},component:h.f}}})),this.store.dispatch((0,F.no)({payload:{action:t,status:w.wn.ERROR,statusCode:_.status.toString(),message:T,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}static#e=pe=()=>(this.\u0275fac=function(s){return new(s||Ee)(j.KVO(i.En),j.KVO(Z.Qq),j.KVO(ee.il),j.KVO(V.Q),j.KVO(Q.h),j.KVO($.gP),j.KVO(ie.Ix),j.KVO(_e.I),j.KVO(ye.aZ))},this.\u0275prov=j.jDH({token:Ee,factory:Ee.\u0275fac}))}return pe(),Ee})()},59584(ke,q,l){"use strict";l.d(q,{Al:()=>M,BM:()=>K,Dv:()=>Z,GX:()=>V,Ie:()=>j,KT:()=>h,O5:()=>ie,Pj:()=>F,RB:()=>f,RQ:()=>$,aJ:()=>ee,av:()=>D,ip:()=>_e,kQ:()=>Q,kr:()=>w,mH:()=>o,os:()=>d,ru:()=>A});var g=l(59640);const p=(0,g.UX)("cln"),D=(0,g.Mz)(p,se=>({pageSettings:se.pageSettings,apiCallStatus:se.apisCallStatus.FetchPageSettings})),o=(0,g.Mz)(p,se=>se.information),A=((0,g.Mz)(p,se=>se.apisCallStatus.FetchInfo),(0,g.Mz)(p,se=>se.apisCallStatus)),h=(0,g.Mz)(p,se=>({payments:se.payments,apiCallStatus:se.apisCallStatus.FetchPayments})),d=(0,g.Mz)(p,se=>({peers:se.peers,apiCallStatus:se.apisCallStatus.FetchPeers})),w=(0,g.Mz)(p,se=>({feeRatesPerKB:se.feeRatesPerKB,apiCallStatus:se.apisCallStatus.FetchFeeRatesperkb})),f=(0,g.Mz)(p,se=>({feeRatesPerKW:se.feeRatesPerKW,apiCallStatus:se.apisCallStatus.FetchFeeRatesperkw})),F=(0,g.Mz)(p,se=>({listInvoices:se.invoices,apiCallStatus:se.apisCallStatus.FetchInvoices})),M=(0,g.Mz)(p,se=>({utxos:se.utxos,balance:se.balance,localRemoteBalance:se.localRemoteBalance,apiCallStatus:se.apisCallStatus.FetchUTXOBalances})),K=(0,g.Mz)(p,se=>({activeChannels:se.activeChannels,pendingChannels:se.pendingChannels,inactiveChannels:se.inactiveChannels,apiCallStatus:se.apisCallStatus.FetchChannels})),j=(0,g.Mz)(p,se=>({forwardingHistory:se.forwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistoryS})),Z=(0,g.Mz)(p,se=>({failedForwardingHistory:se.failedForwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistoryF})),ee=(0,g.Mz)(p,se=>({localFailedForwardingHistory:se.localFailedForwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistoryL})),V=(0,g.Mz)(p,se=>({information:se.information,balance:se.balance,numPeers:se.peers.length})),Q=(0,g.Mz)(p,se=>({information:se.information,balance:se.balance})),$=(0,g.Mz)(p,se=>({information:se.information,fees:se.fees,apisCallStatus:[se.apisCallStatus.FetchInfo,se.apisCallStatus.FetchForwardingHistoryS]})),ie=(0,g.Mz)(p,se=>({offers:se.offers,apiCallStatus:se.apisCallStatus.FetchOffers})),_e=(0,g.Mz)(p,se=>({offersBookmarks:se.offersBookmarks,apiCallStatus:se.apisCallStatus.FetchOfferBookmarks}))},8321(ke,q,l){"use strict";l.d(q,{y:()=>be});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(59584),A=l(2615),h=l(73664),d=l(98570),w=l(82571),f=l(95416),F=l(59640),M=l(72200),K=l(20060),j=l(88834),Z=l(25596),ee=l(71997),V=l(9183),Q=l(52920),$=l(16038),ie=l(40455),_e=l(38288),ye=l(29157),se=l(89587);const pe=nt=>({"display-none":nt}),Ee=nt=>({"xs-scroll-y":nt}),L=(nt,$e)=>({"mt-2":nt,"mt-1":$e}),t=nt=>({"mr-0":nt}),s=()=>[];function m(nt,$e){if(1&nt&&h.nrm(0,"qr-code",33),2&nt){const dt=h.XpG();h.Y8G("value",(null==dt.invoice?null:dt.invoice.bolt11)||(null==dt.invoice?null:dt.invoice.bolt12))("size",dt.qrWidth)}}function u(nt,$e){1&nt&&(h.j41(0,"span",34),h.EFF(1,"N/A"),h.k0s())}function _(nt,$e){if(1&nt&&h.nrm(0,"span",35),2&nt){const dt=h.XpG();h.Y8G("ngClass",h.eq3(1,t,dt.screenSize===dt.screenSizeEnum.XS))}}function T(nt,$e){if(1&nt&&h.nrm(0,"span",36),2&nt){const dt=h.XpG();h.Y8G("ngClass",h.eq3(1,t,dt.screenSize===dt.screenSizeEnum.XS))}}function P(nt,$e){if(1&nt&&h.nrm(0,"span",37),2&nt){const dt=h.XpG();h.Y8G("ngClass",h.eq3(1,t,dt.screenSize===dt.screenSizeEnum.XS))}}function C(nt,$e){if(1&nt&&h.nrm(0,"qr-code",33),2&nt){const dt=h.XpG();h.Y8G("value",(null==dt.invoice?null:dt.invoice.bolt11)||(null==dt.invoice?null:dt.invoice.bolt12))("size",dt.qrWidth)}}function a(nt,$e){1&nt&&(h.j41(0,"span",38),h.EFF(1,"QR Code Not Applicable"),h.k0s())}function x(nt,$e){1&nt&&h.nrm(0,"mat-divider",39)}function Y(nt,$e){if(1&nt&&(h.j41(0,"div",20)(1,"div",40),h.nrm(2,"fa-icon",41),h.j41(3,"span"),h.EFF(4),h.k0s()()()),2&nt){const dt=h.XpG();h.R7$(2),h.Y8G("icon",dt.faExclamationTriangle),h.R7$(2),h.JRh(null==dt.invoice?null:dt.invoice.warning_capacity)}}function R(nt,$e){1&nt&&(h.qex(0),h.EFF(1," (zero amount) "),h.bVm())}function U(nt,$e){1&nt&&h.nrm(0,"span",47)}function fe(nt,$e){if(1&nt&&(h.j41(0,"div",43)(1,"div",44)(2,"span",45),h.EFF(3),h.nI1(4,"number"),h.k0s(),h.DNE(5,U,1,0,"span",46),h.k0s()()),2&nt){const dt=h.XpG(2);h.R7$(3),h.SpI("",h.bMT(4,2,(null==dt.invoice?null:dt.invoice.amount_received_msat)/1e3)," Sats"),h.R7$(2),h.Y8G("ngForOf",h.lJ4(4,s).constructor(35))}}function re(nt,$e){if(1&nt&&(h.j41(0,"div"),h.EFF(1),h.nI1(2,"number"),h.k0s()),2&nt){const dt=h.XpG(2);h.R7$(),h.SpI("",h.bMT(2,1,(null==dt.invoice?null:dt.invoice.amount_received_msat)/1e3)," Sats")}}function he(nt,$e){if(1&nt&&(h.qex(0),h.DNE(1,fe,6,5,"div",42)(2,re,3,3,"div",24),h.bVm()),2&nt){const dt=h.XpG();h.R7$(),h.Y8G("ngIf",dt.flgInvoicePaid),h.R7$(),h.Y8G("ngIf",!dt.flgInvoicePaid)}}function Oe(nt,$e){1&nt&&(h.j41(0,"span"),h.EFF(1,"-"),h.k0s())}function ge(nt,$e){1&nt&&h.nrm(0,"mat-spinner",49),2&nt&&h.Y8G("diameter",20)}function ce(nt,$e){if(1&nt&&(h.qex(0),h.DNE(1,Oe,2,0,"span",24)(2,ge,1,1,"mat-spinner",48),h.bVm()),2&nt){const dt=h.XpG();h.R7$(),h.Y8G("ngIf","unpaid"!==(null==dt.invoice?null:dt.invoice.status)),h.R7$(),h.Y8G("ngIf","unpaid"===(null==dt.invoice?null:dt.invoice.status))}}function Re(nt,$e){if(1&nt&&(h.j41(0,"div"),h.nrm(1,"mat-divider",26),h.j41(2,"div",20)(3,"div",27)(4,"h4",22),h.EFF(5,"Payment Hash"),h.k0s(),h.j41(6,"span",25),h.EFF(7),h.k0s()()(),h.nrm(8,"mat-divider",26),h.j41(9,"div",20)(10,"div",27)(11,"h4",22),h.EFF(12,"Label"),h.k0s(),h.j41(13,"span",25),h.EFF(14),h.k0s()()(),h.nrm(15,"mat-divider",26),h.k0s()),2&nt){const dt=h.XpG();h.R7$(7),h.JRh(null==dt.invoice?null:dt.invoice.payment_hash),h.R7$(7),h.JRh(null==dt.invoice?null:dt.invoice.label)}}function Me(nt,$e){1&nt&&(h.j41(0,"p"),h.EFF(1,"Show Advanced"),h.k0s())}function ve(nt,$e){1&nt&&(h.j41(0,"p"),h.EFF(1,"Hide Advanced"),h.k0s())}function oe(nt,$e){if(1&nt){const dt=h.RV6();h.j41(0,"button",50),h.bIt("copied",function(Et){A.eBV(dt);const rt=h.XpG();return A.Njj(rt.onCopyPayment(Et))}),h.EFF(1,"Copy Invoice"),h.k0s()}if(2&nt){const dt=h.XpG();h.Y8G("payload",(null==dt.invoice?null:dt.invoice.bolt11)||(null==dt.invoice?null:dt.invoice.bolt12))}}function Se(nt,$e){if(1&nt){const dt=h.RV6();h.j41(0,"button",51),h.bIt("click",function(){A.eBV(dt);const Et=h.XpG();return A.Njj(Et.onClose())}),h.EFF(1,"OK"),h.k0s()}}let be=(()=>{var nt;class $e{constructor(yt,Et,rt,Mn,qt,S){this.dialogRef=yt,this.data=Et,this.logger=rt,this.commonService=Mn,this.snackBar=qt,this.store=S,this.faReceipt=g.Mf0,this.faExclamationTriangle=g.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.invoiceStatus="",this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgInvoicePaid=!1,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.invoice=this.data.invoice,this.invoiceStatus=this.invoice.status,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.store.select(e.Pj).pipe((0,D.Q)(this.unSubs[1])).subscribe(yt=>{const rt=(yt.listInvoices.invoices||[])?.find(Mn=>Mn.payment_hash===this.invoice.payment_hash)||null;rt&&(this.invoice=rt),this.invoiceStatus!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(this.invoice),this.logger.info(this.invoiceStatus),this.logger.info(rt),this.logger.info(yt)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(yt){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+yt)}ngOnDestroy(){this.unSubs.forEach(yt=>{yt.next(null),yt.complete()})}static#e=nt=()=>(this.\u0275fac=function(Et){return new(Et||$e)(h.rXU(i.CP),h.rXU(i.Vh),h.rXU(d.gP),h.rXU(w.h),h.rXU(f.UG),h.rXU(F.il))},this.\u0275cmp=h.VBU({type:$e,selectors:[["rtl-cln-invoice-information"]],standalone:!1,decls:72,vars:49,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",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 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",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"],["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"],["errorCorrectionLevel","L",3,"value","size"],[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"],["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,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Et,rt){if(1&Et){const Mn=h.RV6();h.j41(0,"div",1)(1,"div",2),h.DNE(2,m,1,2,"qr-code",3)(3,u,2,0,"span",4),h.k0s(),h.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),h.nrm(7,"fa-icon",8),h.j41(8,"span",9),h.EFF(9),h.DNE(10,_,1,3,"span",10)(11,T,1,3,"span",11)(12,P,1,3,"span",12),h.k0s()(),h.j41(13,"button",13),h.bIt("click",function(){return A.eBV(Mn),A.Njj(rt.onClose())}),h.EFF(14,"X"),h.k0s()(),h.j41(15,"mat-card-content",14)(16,"div",15)(17,"div",16),h.DNE(18,C,1,2,"qr-code",3)(19,a,2,0,"span",17),h.k0s(),h.DNE(20,x,1,0,"mat-divider",18)(21,Y,5,2,"div",19),h.j41(22,"div",20)(23,"div",21)(24,"h4",22),h.EFF(25),h.k0s(),h.j41(26,"span",23),h.EFF(27),h.nI1(28,"number"),h.DNE(29,R,2,0,"ng-container",24),h.k0s()(),h.j41(30,"div",21)(31,"h4",22),h.EFF(32,"Amount Received"),h.k0s(),h.j41(33,"span",25),h.DNE(34,he,3,2,"ng-container",24)(35,ce,3,2,"ng-container",24),h.k0s()()(),h.nrm(36,"mat-divider",26),h.j41(37,"div",20)(38,"div",21)(39,"h4",22),h.EFF(40,"Date Expiry"),h.k0s(),h.j41(41,"span",23),h.EFF(42),h.nI1(43,"date"),h.k0s()(),h.j41(44,"div",21)(45,"h4",22),h.EFF(46,"Date Settled"),h.k0s(),h.j41(47,"span",23),h.EFF(48),h.nI1(49,"date"),h.k0s()()(),h.nrm(50,"mat-divider",26),h.j41(51,"div",20)(52,"div",27)(53,"h4",22),h.EFF(54,"Description"),h.k0s(),h.j41(55,"span",23),h.EFF(56),h.k0s()()(),h.nrm(57,"mat-divider",26),h.j41(58,"div",20)(59,"div",27)(60,"h4",22),h.EFF(61),h.k0s(),h.j41(62,"span",25),h.EFF(63),h.k0s()()(),h.DNE(64,Re,16,2,"div",24),h.j41(65,"div",28)(66,"button",29),h.bIt("click",function(){return A.eBV(Mn),A.Njj(rt.onShowAdvanced())}),h.DNE(67,Me,2,0,"p",30)(68,ve,2,0,"ng-template",null,0,h.C5r),h.k0s(),h.DNE(70,oe,2,1,"button",31)(71,Se,2,0,"button",32),h.k0s()()()()()}if(2&Et){const Mn=h.sdS(69);h.R7$(),h.Y8G("fxLayoutAlign",null!=rt.invoice&&rt.invoice.bolt11&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||null!=rt.invoice&&rt.invoice.bolt12&&""!==(null==rt.invoice?null:rt.invoice.bolt12)?"center start":"center center")("ngClass",h.eq3(40,pe,rt.screenSize===rt.screenSizeEnum.XS||rt.screenSize===rt.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==rt.invoice?null:rt.invoice.bolt11)&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)&&""!==(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.bolt11||null!=rt.invoice&&rt.invoice.bolt12)),h.R7$(4),h.Y8G("icon",rt.faReceipt),h.R7$(2),h.SpI(" ",rt.screenSize===rt.screenSizeEnum.XS?rt.newlyAdded?"Created":"Invoice":rt.newlyAdded?"Invoice Created":"Invoice Information"," "),h.R7$(),h.Y8G("ngIf","paid"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(),h.Y8G("ngIf","unpaid"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(),h.Y8G("ngIf","expired"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(3),h.Y8G("ngClass",h.eq3(42,Ee,rt.screenSize===rt.screenSizeEnum.XS)),h.R7$(2),h.Y8G("fxLayoutAlign",null!=rt.invoice&&rt.invoice.bolt11&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||null!=rt.invoice&&rt.invoice.bolt12&&""!==(null==rt.invoice?null:rt.invoice.bolt12)?"center start":"center center")("ngClass",h.eq3(44,pe,rt.screenSize!==rt.screenSizeEnum.XS&&rt.screenSize!==rt.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==rt.invoice?null:rt.invoice.bolt11)&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)&&""!==(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.bolt11||null!=rt.invoice&&rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",rt.screenSize===rt.screenSizeEnum.XS||rt.screenSize===rt.screenSizeEnum.SM),h.R7$(),h.Y8G("ngIf",null==rt.invoice?null:rt.invoice.warning_capacity),h.R7$(4),h.JRh(rt.screenSize===rt.screenSizeEnum.XS?"Amount":"Amount Requested"),h.R7$(2),h.SpI(" ",h.bMT(28,32,(null==rt.invoice?null:rt.invoice.amount_msat)/1e3||0)," Sats"),h.R7$(2),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.amount_msat)||"0"===(null==rt.invoice?null:rt.invoice.amount_msat)||"any"===(null==rt.invoice?null:rt.invoice.amount_msat)),h.R7$(5),h.Y8G("ngIf","paid"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(),h.Y8G("ngIf","paid"!==(null==rt.invoice?null:rt.invoice.status)),h.R7$(7),h.JRh(h.i5U(43,34,1e3*(null==rt.invoice?null:rt.invoice.expires_at),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(h.i5U(49,37,1e3*(null==rt.invoice?null:rt.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),h.R7$(8),h.JRh((null==rt.invoice?null:rt.invoice.description)||"-"),h.R7$(5),h.SpI("",null!=rt.invoice&&rt.invoice.bolt12?"Bolt12":null!=rt.invoice&&rt.invoice.bolt11&&!rt.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),h.R7$(2),h.JRh((null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",rt.showAdvanced),h.R7$(),h.Y8G("ngClass",h.l_i(46,L,!rt.showAdvanced,rt.showAdvanced)),h.R7$(2),h.Y8G("ngIf",!rt.showAdvanced)("ngIfElse",Mn),h.R7$(3),h.Y8G("ngIf",(null==rt.invoice?null:rt.invoice.bolt11)&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)&&""!==(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.bolt11||null!=rt.invoice&&rt.invoice.bolt12))}},dependencies:[M.YU,M.Sq,M.bT,K.aY,j.$z,Z.m2,Z.MM,ee.q,V.LG,Q.DJ,Q.sA,Q.UI,$.PW,ie.oV,_e.Um,ye.U,se.N,M.QX,M.vh],encapsulation:2}))}return nt(),$e})()},32142(ke,q,l){"use strict";l.d(q,{f:()=>fe});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(2615),A=l(73664),h=l(98570),d=l(82571),w=l(95416),f=l(51534),F=l(72200),M=l(20060),K=l(88834),j=l(25596),Z=l(71997),ee=l(52920),V=l(16038),Q=l(38288),$=l(29157),ie=l(89587);const _e=re=>({"display-none":re}),ye=re=>({"xs-scroll-y":re}),se=(re,he)=>({"mt-2":re,"mt-1":he});function pe(re,he){if(1&re&&A.nrm(0,"qr-code",28),2&re){const Oe=A.XpG();A.Y8G("value",null==Oe.offer?null:Oe.offer.bolt12)("size",Oe.qrWidth)}}function Ee(re,he){1&re&&(A.j41(0,"span",29),A.EFF(1,"N/A"),A.k0s())}function L(re,he){if(1&re&&A.nrm(0,"qr-code",28),2&re){const Oe=A.XpG();A.Y8G("value",null==Oe.offer?null:Oe.offer.bolt12)("size",Oe.qrWidth)}}function t(re,he){1&re&&(A.j41(0,"span",30),A.EFF(1,"QR Code Not Applicable"),A.k0s())}function s(re,he){1&re&&A.nrm(0,"mat-divider",31),2&re&&A.Y8G("inset",!0)}function m(re,he){1&re&&A.nrm(0,"mat-divider",20)}function u(re,he){if(1&re&&(A.j41(0,"div",16)(1,"div",17)(2,"h4",18),A.EFF(3,"Used"),A.k0s(),A.j41(4,"span",19),A.EFF(5),A.k0s()(),A.j41(6,"div",17)(7,"h4",18),A.EFF(8,"Single Use"),A.k0s(),A.j41(9,"span",19),A.EFF(10),A.k0s()()()),2&re){const Oe=A.XpG(2);A.R7$(5),A.SpI(" ",null!=Oe.offer&&Oe.offer.used?null!=Oe.offer&&Oe.offer.used?"Yes":"No":"N/K"," "),A.R7$(5),A.SpI(" ",null!=Oe.offer&&Oe.offer.single_use?null!=Oe.offer&&Oe.offer.single_use?"Yes":"No":"N/K"," ")}}function _(re,he){1&re&&A.nrm(0,"mat-divider",20)}function T(re,he){if(1&re&&(A.j41(0,"div",16)(1,"div",21)(2,"h4",18),A.EFF(3,"Issuer"),A.k0s(),A.j41(4,"span",34),A.EFF(5),A.k0s()()()),2&re){const Oe=A.XpG(2);A.R7$(5),A.JRh(null==Oe.offerDecoded?null:Oe.offerDecoded.offer_issuer)}}function P(re,he){1&re&&A.nrm(0,"mat-divider",20)}function C(re,he){if(1&re&&(A.j41(0,"div",16)(1,"div",21)(2,"h4",18),A.EFF(3,"Label"),A.k0s(),A.j41(4,"span",19),A.EFF(5),A.k0s()()()),2&re){const Oe=A.XpG(2);A.R7$(5),A.JRh(Oe.offer.label)}}function a(re,he){if(1&re&&(A.j41(0,"div"),A.DNE(1,m,1,0,"mat-divider",32)(2,u,11,2,"div",33)(3,_,1,0,"mat-divider",32)(4,T,6,1,"div",33)(5,P,1,0,"mat-divider",32)(6,C,6,1,"div",33),A.nrm(7,"mat-divider",20),A.j41(8,"div",16)(9,"div",21)(10,"h4",18),A.EFF(11,"Offer ID"),A.k0s(),A.j41(12,"span",19),A.EFF(13),A.k0s()()(),A.nrm(14,"mat-divider",20),A.j41(15,"div",16)(16,"div",21)(17,"h4",18),A.EFF(18,"Offer Node ID"),A.k0s(),A.j41(19,"span",19),A.EFF(20),A.k0s()()(),A.nrm(21,"mat-divider",20),A.k0s()),2&re){const Oe=A.XpG();A.R7$(),A.Y8G("ngIf",(null==Oe.offer?null:Oe.offer.used)||(null==Oe.offer?null:Oe.offer.single_use)),A.R7$(),A.Y8G("ngIf",(null==Oe.offer?null:Oe.offer.used)||(null==Oe.offer?null:Oe.offer.single_use)),A.R7$(),A.Y8G("ngIf",null==Oe.offerDecoded?null:Oe.offerDecoded.issuer),A.R7$(),A.Y8G("ngIf",null==Oe.offerDecoded?null:Oe.offerDecoded.issuer),A.R7$(),A.Y8G("ngIf",Oe.offer.label),A.R7$(),A.Y8G("ngIf",Oe.offer.label),A.R7$(7),A.JRh(Oe.offerDecoded.offer_id),A.R7$(7),A.JRh(null==Oe.offerDecoded?null:Oe.offerDecoded.offer_node_id)}}function x(re,he){1&re&&(A.j41(0,"p"),A.EFF(1,"Show Advanced"),A.k0s())}function Y(re,he){1&re&&(A.j41(0,"p"),A.EFF(1,"Hide Advanced"),A.k0s())}function R(re,he){if(1&re){const Oe=A.RV6();A.j41(0,"button",35),A.bIt("copied",function(ce){e.eBV(Oe);const Re=A.XpG();return e.Njj(Re.onCopyOffer(ce))}),A.EFF(1,"Copy Offer"),A.k0s()}if(2&re){const Oe=A.XpG();A.Y8G("payload",null==Oe.offer?null:Oe.offer.bolt12)}}function U(re,he){if(1&re){const Oe=A.RV6();A.j41(0,"button",36),A.bIt("click",function(){e.eBV(Oe);const ce=A.XpG();return e.Njj(ce.onClose())}),A.EFF(1,"OK"),A.k0s()}}let fe=(()=>{var re;class he{constructor(ge,ce,Re,Me,ve,oe){this.dialogRef=ge,this.data=ce,this.logger=Re,this.commonService=Me,this.snackBar=ve,this.dataService=oe,this.faReceipt=g.Mf0,this.faExclamationTriangle=g.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgOfferPaid=!1,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,D.Q)(this.unSubs[1])).subscribe(ge=>{this.offerDecoded=ge,this.offerDecoded.offer_id&&!this.offerDecoded.offer_amount_msat&&(this.offerDecoded.offer_amount_msat=0)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(ge){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+ge)}ngOnDestroy(){this.unSubs.forEach(ge=>{ge.next(null),ge.complete()})}static#e=re=()=>(this.\u0275fac=function(ce){return new(ce||he)(A.rXU(i.CP),A.rXU(i.Vh),A.rXU(h.gP),A.rXU(d.h),A.rXU(w.UG),A.rXU(f.u))},this.\u0275cmp=A.VBU({type:he,selectors:[["rtl-cln-offer-information"]],standalone:!1,decls:52,vars:33,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",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 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"],["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"],["errorCorrectionLevel","L",3,"value","size"],[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,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,Re){if(1&ce){const Me=A.RV6();A.j41(0,"div",1)(1,"div",2),A.DNE(2,pe,1,2,"qr-code",3)(3,Ee,2,0,"span",4),A.k0s(),A.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),A.nrm(7,"fa-icon",8),A.j41(8,"span",9),A.EFF(9),A.k0s()(),A.j41(10,"button",10),A.bIt("click",function(){return e.eBV(Me),e.Njj(Re.onClose())}),A.EFF(11,"X"),A.k0s()(),A.j41(12,"mat-card-content",11)(13,"div",12)(14,"div",13),A.DNE(15,L,1,2,"qr-code",3)(16,t,2,0,"span",14),A.k0s(),A.DNE(17,s,1,1,"mat-divider",15),A.j41(18,"div",16)(19,"div",17)(20,"h4",18),A.EFF(21,"Amount Requested (Sats)"),A.k0s(),A.j41(22,"span",19),A.EFF(23),A.nI1(24,"number"),A.k0s()(),A.j41(25,"div",17)(26,"h4",18),A.EFF(27,"Valid"),A.k0s(),A.j41(28,"span",19),A.EFF(29),A.k0s()()(),A.nrm(30,"mat-divider",20),A.j41(31,"div",16)(32,"div",21)(33,"h4",18),A.EFF(34,"Description"),A.k0s(),A.j41(35,"span",19),A.EFF(36),A.k0s()()(),A.nrm(37,"mat-divider",20),A.j41(38,"div",16)(39,"div",21)(40,"h4",18),A.EFF(41,"Offer"),A.k0s(),A.j41(42,"span",19),A.EFF(43),A.k0s()()(),A.DNE(44,a,22,8,"div",22),A.j41(45,"div",23)(46,"button",24),A.bIt("click",function(){return e.eBV(Me),e.Njj(Re.onShowAdvanced())}),A.DNE(47,x,2,0,"p",25)(48,Y,2,0,"ng-template",null,0,A.C5r),A.k0s(),A.DNE(50,R,2,1,"button",26)(51,U,2,0,"button",27),A.k0s()()()()()}if(2&ce){const Me=A.sdS(49);A.R7$(),A.Y8G("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",A.eq3(24,_e,Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM)),A.R7$(),A.Y8G("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),A.R7$(4),A.Y8G("icon",Re.faReceipt),A.R7$(2),A.JRh(Re.screenSize===Re.screenSizeEnum.XS?Re.newlyAdded?"Created":"Offer":Re.newlyAdded?"Offer Created":"Offer Information"),A.R7$(3),A.Y8G("ngClass",A.eq3(26,ye,Re.screenSize===Re.screenSizeEnum.XS)),A.R7$(2),A.Y8G("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",A.eq3(28,_e,Re.screenSize!==Re.screenSizeEnum.XS&&Re.screenSize!==Re.screenSizeEnum.SM)),A.R7$(),A.Y8G("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM),A.R7$(6),A.SpI(" ",null!=Re.offerDecoded&&Re.offerDecoded.offer_amount_msat&&0!==(null==Re.offerDecoded?null:Re.offerDecoded.offer_amount_msat)?A.bMT(24,22,(null==Re.offerDecoded?null:Re.offerDecoded.offer_amount_msat)/1e3):"Open Offer"," "),A.R7$(6),A.SpI(" ",null!=Re.offerDecoded&&Re.offerDecoded.valid?null!=Re.offerDecoded&&Re.offerDecoded.valid?"Yes":"No":"N/K"," "),A.R7$(7),A.SpI(" ",null==Re.offerDecoded?null:Re.offerDecoded.offer_description," "),A.R7$(7),A.JRh(null==Re.offer?null:Re.offer.bolt12),A.R7$(),A.Y8G("ngIf",Re.showAdvanced),A.R7$(),A.Y8G("ngClass",A.l_i(30,se,!Re.showAdvanced,Re.showAdvanced)),A.R7$(2),A.Y8G("ngIf",!Re.showAdvanced)("ngIfElse",Me),A.R7$(3),A.Y8G("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12))}},dependencies:[F.YU,F.bT,M.aY,K.$z,j.m2,j.MM,Z.q,ee.DJ,ee.sA,ee.UI,V.PW,Q.Um,$.U,ie.N,F.QX],encapsulation:2}))}return re(),he})()},95428(ke,q,l){"use strict";l.d(q,{$6:()=>Oe,$Q:()=>F,As:()=>U,CK:()=>T,Do:()=>he,Dq:()=>Re,Fd:()=>x,Gy:()=>$,Hh:()=>D,Hm:()=>a,I6:()=>j,Jx:()=>ce,Lc:()=>pe,Lz:()=>fe,N4:()=>Y,N8:()=>V,NS:()=>e,Qj:()=>ie,Sn:()=>A,T4:()=>C,Tp:()=>M,Uj:()=>P,Uo:()=>f,XT:()=>L,Xx:()=>ee,Yi:()=>ve,ZE:()=>Q,Zi:()=>Ee,cR:()=>_,cU:()=>K,fy:()=>m,gZ:()=>Se,iO:()=>ge,jJ:()=>Z,lg:()=>o,mh:()=>R,sq:()=>_e,uL:()=>p,vL:()=>s,w0:()=>u,x1:()=>d,yn:()=>be,yp:()=>w,zR:()=>h,zU:()=>Me});var i=l(59640),g=l(4416);const p=(0,i.VP)(g.Uu.UPDATE_API_CALL_STATUS_ECL,(0,i.xk)()),D=(0,i.VP)(g.Uu.RESET_ECL_STORE),o=(0,i.VP)(g.Uu.FETCH_PAGE_SETTINGS_ECL),e=(0,i.VP)(g.Uu.SET_PAGE_SETTINGS_ECL,(0,i.xk)()),A=(0,i.VP)(g.Uu.SAVE_PAGE_SETTINGS_ECL,(0,i.xk)()),h=(0,i.VP)(g.Uu.FETCH_INFO_ECL,(0,i.xk)()),d=(0,i.VP)(g.Uu.SET_INFO_ECL,(0,i.xk)()),w=(0,i.VP)(g.Uu.FETCH_FEES_ECL),f=(0,i.VP)(g.Uu.SET_FEES_ECL,(0,i.xk)()),F=(0,i.VP)(g.Uu.FETCH_CHANNELS_ECL),M=(0,i.VP)(g.Uu.SET_ACTIVE_CHANNELS_ECL,(0,i.xk)()),K=(0,i.VP)(g.Uu.SET_PENDING_CHANNELS_ECL,(0,i.xk)()),j=(0,i.VP)(g.Uu.SET_INACTIVE_CHANNELS_ECL,(0,i.xk)()),Z=(0,i.VP)(g.Uu.FETCH_ONCHAIN_BALANCE_ECL),ee=(0,i.VP)(g.Uu.SET_ONCHAIN_BALANCE_ECL,(0,i.xk)()),V=(0,i.VP)(g.Uu.SET_LIGHTNING_BALANCE_ECL,(0,i.xk)()),Q=(0,i.VP)(g.Uu.SET_CHANNELS_STATUS_ECL,(0,i.xk)()),$=(0,i.VP)(g.Uu.FETCH_PEERS_ECL),ie=(0,i.VP)(g.Uu.SET_PEERS_ECL,(0,i.xk)()),_e=(0,i.VP)(g.Uu.SAVE_NEW_PEER_ECL,(0,i.xk)()),pe=((0,i.VP)(g.Uu.NEWLY_ADDED_PEER_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.ADD_PEER_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.DETACH_PEER_ECL,(0,i.xk)())),Ee=(0,i.VP)(g.Uu.REMOVE_PEER_ECL,(0,i.xk)()),L=(0,i.VP)(g.Uu.GET_NEW_ADDRESS_ECL),s=((0,i.VP)(g.Uu.SET_NEW_ADDRESS_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.SAVE_NEW_CHANNEL_ECL,(0,i.xk)())),m=(0,i.VP)(g.Uu.UPDATE_CHANNEL_ECL,(0,i.xk)()),u=(0,i.VP)(g.Uu.CLOSE_CHANNEL_ECL,(0,i.xk)()),_=(0,i.VP)(g.Uu.REMOVE_CHANNEL_ECL,(0,i.xk)()),T=(0,i.VP)(g.Uu.FETCH_PAYMENTS_ECL,(0,i.xk)()),P=(0,i.VP)(g.Uu.SET_PAYMENTS_ECL,(0,i.xk)()),C=(0,i.VP)(g.Uu.GET_QUERY_ROUTES_ECL,(0,i.xk)()),a=(0,i.VP)(g.Uu.SET_QUERY_ROUTES_ECL,(0,i.xk)()),x=(0,i.VP)(g.Uu.SEND_PAYMENT_ECL,(0,i.xk)()),Y=(0,i.VP)(g.Uu.SEND_PAYMENT_STATUS_ECL,(0,i.xk)()),R=(0,i.VP)(g.Uu.FETCH_TRANSACTIONS_ECL,(0,i.xk)()),U=(0,i.VP)(g.Uu.SET_TRANSACTIONS_ECL,(0,i.xk)()),fe=(0,i.VP)(g.Uu.SEND_ONCHAIN_FUNDS_ECL,(0,i.xk)()),he=((0,i.VP)(g.Uu.SEND_ONCHAIN_FUNDS_RES_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.FETCH_INVOICES_ECL,(0,i.xk)())),Oe=(0,i.VP)(g.Uu.SET_INVOICES_ECL,(0,i.xk)()),ge=(0,i.VP)(g.Uu.CREATE_INVOICE_ECL,(0,i.xk)()),ce=(0,i.VP)(g.Uu.ADD_INVOICE_ECL,(0,i.xk)()),Re=(0,i.VP)(g.Uu.UPDATE_INVOICE_ECL,(0,i.xk)()),Me=(0,i.VP)(g.Uu.PEER_LOOKUP_ECL,(0,i.xk)()),ve=(0,i.VP)(g.Uu.INVOICE_LOOKUP_ECL,(0,i.xk)()),Se=((0,i.VP)(g.Uu.SET_LOOKUP_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.UPDATE_CHANNEL_STATE_ECL,(0,i.xk)())),be=(0,i.VP)(g.Uu.UPDATE_RELAYED_PAYMENT_ECL,(0,i.xk)())},13017(ke,q,l){"use strict";l.d(q,{B:()=>ye});var i=l(11747),g=l(21413),p=l(7673),D=l(99437),o=l(96354),e=l(31397),A=l(56977),h=l(12462),d=l(4416),w=l(11771),f=l(86439),F=l(95428),M=l(72730),K=l(2615),j=l(29330),Z=l(59640),ee=l(53202),V=l(82571),Q=l(98570),$=l(43694),ie=l(7879),_e=l(57303);let ye=(()=>{var se;class pe{constructor(L,t,s,m,u,_,T,P,C){this.actions=L,this.httpClient=t,this.store=s,this.sessionService=m,this.commonService=u,this.logger=_,this.router=T,this.wsService=P,this.location=C,this.CHILD_API_URL=d.H$+"/ecl",this.invoicesPageSettings=d.X8.find(a=>"transactions"===a.pageId)?.tables.find(a=>"invoices"===a.tableId),this.paymentsPageSettings=d.X8.find(a=>"transactions"===a.pageId)?.tables.find(a=>"payments"===a.tableId),this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new g.B,new g.B,new g.B],this.infoFetchECL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_INFO_ECL),(0,e.Z)(a=>(this.flgInitialized=!1,this.store.dispatch((0,w.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,w.mt)({payload:d.MZ.GET_NODE_INFO})),this.store.dispatch((0,F.uL)({payload:{action:"FetchInfo",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.GETINFO_API).pipe((0,A.Q)(this.actions.pipe((0,i.gp)(d.aU.SET_SELECTED_NODE))),(0,o.T)(x=>(this.logger.info(x),this.initializeRemainingData(x,a.payload.loadPage),this.store.dispatch((0,F.uL)({payload:{action:"FetchInfo",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.GET_NODE_INFO})),{type:d.Uu.SET_INFO_ECL,payload:x||{}})),(0,D.W)(x=>{const Y=this.commonService.extractErrorCode(x),R=503===Y?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(x);return this.router.navigate(["/error"],{state:{errorCode:Y,errorMessage:R}}),this.handleErrorWithoutAlert("FetchInfo",d.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:Y,error:R}),(0,p.of)({type:d.aU.VOID})})))))),this.fetchFees=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_FEES_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchFees",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.FEES_API+"/fees").pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchFees",status:d.wn.COMPLETED}})),{type:d.Uu.SET_FEES_ECL,payload:a||{}})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchFees",d.MZ.NO_SPINNER,"Fetching Fees Failed.",a),(0,p.of)({type:d.aU.VOID})))))))),this.fetchPayments=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_PAYMENTS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchPayments",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.FEES_API+"/payments?count="+a.payload.count+"&skip="+a.payload.skip).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"FetchPayments",status:d.wn.COMPLETED}})),{type:d.Uu.SET_PAYMENTS_ECL,payload:x||{}})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPayments",d.MZ.NO_SPINNER,"Fetching Payments Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.channelsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_CHANNELS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchChannels",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.CHANNELS_API).pipe((0,o.T)(x=>(this.logger.info(x),this.rawChannelsList=x,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,F.uL)({payload:{action:"FetchChannels",status:d.wn.COMPLETED}})),{type:d.aU.VOID})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchChannels",d.MZ.NO_SPINNER,"Fetching Channels Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.fetchOnchainBalance=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_ONCHAIN_BALANCE_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchOnchainBalance",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.ON_CHAIN_API+"/balance"))),(0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchOnchainBalance",status:d.wn.COMPLETED}})),{type:d.Uu.SET_ONCHAIN_BALANCE_ECL,payload:a||{}})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchOnchainBalance",d.MZ.NO_SPINNER,"Fetching Onchain Balances Failed.",a),(0,p.of)({type:d.aU.VOID}))))),this.peersFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_PEERS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchPeers",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.PEERS_API).pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchPeers",status:d.wn.COMPLETED}})),{type:d.Uu.SET_PEERS_ECL,payload:a||[]})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchPeers",d.MZ.NO_SPINNER,"Fetching Peers Failed.",a),(0,p.of)({type:d.aU.VOID})))))))),this.getNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.GET_NEW_ADDRESS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,w.mt)({payload:d.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+d.rl.ON_CHAIN_API).pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,w.y0)({payload:d.MZ.GENERATE_NEW_ADDRESS})),{type:d.Uu.SET_NEW_ADDRESS_ECL,payload:a})),(0,D.W)(a=>(this.handleErrorWithAlert("GetNewAddress",d.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+d.rl.ON_CHAIN_API,a),(0,p.of)({type:d.aU.VOID})))))))),this.setNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SET_NEW_ADDRESS_ECL),(0,o.T)(a=>(this.logger.info(a.payload),a.payload))),{dispatch:!1}),this.saveNewPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SAVE_NEW_PEER_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.CONNECT_PEER})),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewPeer",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.PEERS_API+(a.payload.id.includes("@")?"?uri=":"?nodeId=")+a.payload.id,{}).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewPeer",status:d.wn.COMPLETED}})),x=x||[],this.store.dispatch((0,w.y0)({payload:d.MZ.CONNECT_PEER})),this.store.dispatch((0,F.Qj)({payload:x})),{type:d.Uu.NEWLY_ADDED_PEER_ECL,payload:{peer:x.find(Y=>Y.nodeId===(a.payload.id.includes("@")?a.payload.id.substring(0,a.payload.id.indexOf("@")):a.payload.id))}})),(0,D.W)(x=>(this.handleErrorWithoutAlert("SaveNewPeer",d.MZ.CONNECT_PEER,"Peer Connection Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.detachPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.DETACH_PEER_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+d.rl.PEERS_API+"/"+a.payload.nodeId).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,w.y0)({payload:d.MZ.DISCONNECT_PEER})),this.store.dispatch((0,w.UI)({payload:"Disconnecting Peer!"})),{type:d.Uu.REMOVE_PEER_ECL,payload:{nodeId:a.payload.nodeId}})),(0,D.W)(x=>(this.handleErrorWithAlert("DisconnectPeer",d.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.rl.PEERS_API+"/"+a.payload.nodeId,x),(0,p.of)({type:d.aU.VOID})))))))),this.openNewChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SAVE_NEW_CHANNEL_ECL),(0,e.Z)(a=>{this.store.dispatch((0,w.mt)({payload:d.MZ.OPEN_CHANNEL})),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewChannel",status:d.wn.INITIATED}}));const x={nodeId:a.payload.nodeId,fundingSatoshis:a.payload.amount,announceChannel:!a.payload.private};return a.payload.feeRate&&a.payload.feeRate>0&&(x.fundingFeerateSatByte=a.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+d.rl.CHANNELS_API,x).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewChannel",status:d.wn.COMPLETED}})),this.store.dispatch((0,F.Gy)()),this.store.dispatch((0,F.jJ)()),this.store.dispatch((0,w.y0)({payload:d.MZ.OPEN_CHANNEL})),this.store.dispatch((0,w.UI)({payload:"Channel Added Successfully!"})),{type:d.Uu.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewChannel",d.MZ.OPEN_CHANNEL,"Opening Channel Failed.",Y),(0,p.of)({type:d.aU.VOID}))))}))),this.updateChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.UPDATE_CHANNEL_ECL),(0,e.Z)(a=>{this.store.dispatch((0,w.mt)({payload:d.MZ.UPDATE_CHAN_POLICY}));let x="?feeBaseMsat="+a.payload.baseFeeMsat+"&feeProportionalMillionths="+a.payload.feeRate;return x=a.payload.nodeIds?x+"&nodeIds="+a.payload.nodeIds:a.payload.nodeId?x+"&nodeId="+a.payload.nodeId:a.payload.channelIds?x+"&channelIds="+a.payload.channelIds:x+"&channelId="+a.payload.channelId,this.httpClient.post(this.CHILD_API_URL+d.rl.CHANNELS_API+"/updateRelayFee"+x,{}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,w.y0)({payload:d.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.UI)(a.payload.nodeIds||a.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:d.Uu.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,D.W)(Y=>(this.handleErrorWithAlert("UpdateChannels",d.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+d.rl.CHANNELS_API,Y),(0,p.of)({type:d.aU.VOID}))))}))),this.closeChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.CLOSE_CHANNEL_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:a.payload.force?d.MZ.FORCE_CLOSE_CHANNEL:d.MZ.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+d.rl.CHANNELS_API+"?channelId="+a.payload.channelId+"&force="+a.payload.force).pipe((0,o.T)(x=>(this.logger.info(x),setTimeout(()=>{this.store.dispatch((0,w.y0)({payload:a.payload.force?d.MZ.FORCE_CLOSE_CHANNEL:d.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,w.UI)({payload:a.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:d.aU.VOID})),(0,D.W)(x=>(this.handleErrorWithAlert("CloseChannel",a.payload.force?d.MZ.FORCE_CLOSE_CHANNEL:d.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.rl.CHANNELS_API,x),(0,p.of)({type:d.aU.VOID})))))))),this.queryRoutesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.GET_QUERY_ROUTES_ECL),(0,e.Z)(a=>this.httpClient.get(this.CHILD_API_URL+d.rl.PAYMENTS_API+"/route?nodeId="+a.payload.nodeId+"&amountMsat="+a.payload.amount).pipe((0,o.T)(x=>(this.logger.info(x),{type:d.Uu.SET_QUERY_ROUTES_ECL,payload:x})),(0,D.W)(x=>(this.store.dispatch((0,F.Hm)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",d.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+d.rl.PAYMENTS_API+"/route?nodeId="+a.payload.nodeId+"&amountMsat="+a.payload.amount,x),(0,p.of)({type:d.aU.VOID}))))))),this.setQueryRoutes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SET_QUERY_ROUTES_ECL),(0,o.T)(a=>a.payload)),{dispatch:!1}),this.sendPayment=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SEND_PAYMENT_ECL),(0,e.Z)(a=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,w.mt)({payload:d.MZ.SEND_PAYMENT})),this.store.dispatch((0,F.uL)({payload:{action:"SendPayment",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.PAYMENTS_API,a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.latestPaymentRes=x,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:d.aU.VOID})),(0,D.W)(x=>(this.logger.error("Error: "+JSON.stringify(x)),a.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",d.MZ.SEND_PAYMENT,"Send Payment Failed.",x):this.handleErrorWithAlert("SendPayment",d.MZ.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+d.rl.PAYMENTS_API,x),(0,p.of)({type:d.aU.VOID})))))))),this.transactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_TRANSACTIONS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchTransactions",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.ON_CHAIN_API+"/transactions?count="+a.payload.count+"&skip="+a.payload.skip))),(0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchTransactions",status:d.wn.COMPLETED}})),{type:d.Uu.SET_TRANSACTIONS_ECL,payload:a||[]})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchTransactions",d.MZ.NO_SPINNER,"Fetching Transactions Failed.",a),(0,p.of)({type:d.aU.VOID}))))),this.SendOnchainFunds=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SEND_ONCHAIN_FUNDS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.SEND_FUNDS})),this.store.dispatch((0,F.uL)({payload:{action:"SendOnchainFunds",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.ON_CHAIN_API,a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"SendOnchainFunds",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEND_FUNDS})),this.store.dispatch((0,F.jJ)()),{type:d.Uu.SEND_ONCHAIN_FUNDS_RES_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("SendOnchainFunds",d.MZ.SEND_FUNDS,"Sending Fund Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.createInvoice=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.CREATE_INVOICE_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.CREATE_INVOICE})),this.store.dispatch((0,F.uL)({payload:{action:"CreateInvoice",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.INVOICES_API,a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"CreateInvoice",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.CREATE_INVOICE})),x.timestamp=Math.round((new Date).getTime()/1e3),x.expiresAt=Math.round(x.timestamp+a.payload.expireIn),x.description=a.payload.description,x.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.xO)({payload:{data:{invoice:x,newlyAdded:!0,component:f.Z}}}))},200),{type:d.Uu.ADD_INVOICE_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("CreateInvoice",d.MZ.CREATE_INVOICE,"Create Invoice Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.invoicesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_INVOICES_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchInvoices",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.INVOICES_API+"?count="+a.payload.count+"&skip="+a.payload.skip).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"FetchInvoices",status:d.wn.COMPLETED}})),{type:d.Uu.SET_INVOICES_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchInvoices",d.MZ.NO_SPINNER,"Fetching Invoices Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.peerLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.PEER_LOOKUP_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.SEARCHING_NODE})),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.NETWORK_API+"/nodes/"+a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEARCHING_NODE})),{type:d.Uu.SET_LOOKUP_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithAlert("Lookup",d.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+d.rl.NETWORK_API+"/nodes/"+a.payload,x),(0,p.of)({type:d.aU.VOID})))))))),this.invoiceLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.INVOICE_LOOKUP_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.INVOICES_API+"/"+a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,F.Dq)({payload:x})),{type:d.Uu.SET_LOOKUP_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("Lookup",d.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",x),this.store.dispatch((0,w.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,p.of)({type:d.aU.VOID})))))))),this.setLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SET_LOOKUP_ECL),(0,o.T)(a=>(this.logger.info(a.payload),a.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_PAGE_SETTINGS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchPageSettings",status:d.wn.INITIATED}})),this.httpClient.get(d.rl.PAGE_SETTINGS_API).pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchPageSettings",status:d.wn.COMPLETED}})),this.invoicesPageSettings=a&&Object.keys(a).length>0?a.find(x=>"transactions"===x.pageId)?.tables.find(x=>"invoices"===x.tableId):d.X8.find(x=>"transactions"===x.pageId)?.tables.find(x=>"invoices"===x.tableId),this.paymentsPageSettings=a&&Object.keys(a).length>0?a.find(x=>"transactions"===x.pageId)?.tables.find(x=>"payments"===x.tableId):d.X8.find(x=>"transactions"===x.pageId)?.tables.find(x=>"payments"===x.tableId),{type:d.Uu.SET_PAGE_SETTINGS_ECL,payload:a||[]})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchPageSettings",d.MZ.NO_SPINNER,"Fetching Page Settings Failed.",a),(0,p.of)({type:d.aU.VOID})))))))),this.savePageSettingsCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SAVE_PAGE_SETTINGS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,F.uL)({payload:{action:"SavePageSettings",status:d.wn.INITIATED}})),this.httpClient.post(d.rl.PAGE_SETTINGS_API,a.payload).pipe((0,o.T)(x=>{this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"SavePageSettings",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,w.UI)({payload:"Page Layout Updated Successfully!"}));const Y=(x.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId)||d.X8.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId))?.recordsPerPage,R=(x.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId)||d.X8.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId))?.recordsPerPage;return this.invoicesPageSettings&&Y!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=Y),this.paymentsPageSettings&&R!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=R),{type:d.Uu.SET_PAGE_SETTINGS_ECL,payload:x||[]}}),(0,D.W)(x=>(this.handleErrorWithAlert("SavePageSettings",d.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",d.rl.PAGE_SETTINGS_API,x),(0,p.of)({type:d.aU.VOID})))))))),this.handleSendPaymentStatus=a=>{this.store.dispatch((0,F.uL)({payload:{action:"SendPayment",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEND_PAYMENT})),this.store.dispatch((0,F.N4)({payload:this.latestPaymentRes})),this.store.dispatch((0,w.UI)({payload:a}))},this.store.select(M.ru).pipe((0,A.Q)(this.unSubs[0])).subscribe(a=>{a.FetchInfo.status!==d.wn.COMPLETED&&a.FetchInfo.status!==d.wn.ERROR||a.FetchFees.status!==d.wn.COMPLETED&&a.FetchFees.status!==d.wn.ERROR||a.FetchOnchainBalance.status!==d.wn.COMPLETED&&a.FetchOnchainBalance.status!==d.wn.ERROR||a.FetchChannels.status!==d.wn.COMPLETED&&a.FetchChannels.status!==d.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.y0)({payload:d.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,A.Q)(this.unSubs[1])).subscribe(a=>{this.logger.info("Received new message from the service: "+JSON.stringify(a));let x="";if(a)switch(a.type){case d.ck.PAYMENT_SENT:a&&a.id&&this.latestPaymentRes===a.id&&(this.flgReceivedPaymentUpdateFromWS=!0,x="Payment Sent: "+(a.paymentHash?"with payment hash "+a.paymentHash:JSON.stringify(a)),this.handleSendPaymentStatus(x));break;case d.ck.PAYMENT_FAILED:a&&a.id&&this.latestPaymentRes===a.id&&(this.flgReceivedPaymentUpdateFromWS=!0,x="Payment Failed: "+(a.failures&&a.failures.length&&a.failures.length>0&&a.failures[0].t?a.failures[0].t:a.failures&&a.failures.length&&a.failures.length>0&&a.failures[0].e&&a.failures[0].e.failureMessage?a.failures[0].e.failureMessage:JSON.stringify(a)),this.handleSendPaymentStatus(x));break;case d.ck.PAYMENT_RECEIVED:this.store.dispatch((0,F.Dq)({payload:a}));break;case d.ck.PAYMENT_RELAYED:delete a.source,a.amountIn=Math.round((a.amountIn||0)/1e3),a.amountOut=Math.round((a.amountOut||0)/1e3),a.timestamp.unix&&(a.timestamp=1e3*a.timestamp.unix),this.store.dispatch((0,F.yn)({payload:a}));break;case d.ck.CHANNEL_STATE_CHANGED:"NORMAL"===a.currentState||"CLOSED"===a.currentState?(this.rawChannelsList=this.rawChannelsList?.map(Y=>(Y.channelId===a.channelId&&Y.nodeId===a.remoteNodeId&&(Y.state=a.currentState),Y)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,F.gZ)({payload:a}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(a))}})}setChannelsAndStatusAndBalances(){let L=0,t=0,s=0,m={localBalance:0,remoteBalance:0},u=[];const _=[],T=[],P={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((C,a)=>{C&&("NORMAL"===C.state?(L=(C.toLocal||0)+(C.toRemote||0),t+=C.toLocal||0,s+=C.toRemote||0,C.balancedness=0===L?1:+(1-Math.abs(((C.toLocal||0)-(C.toRemote||0))/L)).toFixed(3),u.push(C),P.active.channels=P.active.channels+1,P.active.capacity=P.active.capacity+(C.toLocal||0)):C.state?.includes("WAIT")||C.state?.includes("CLOSING")||C.state?.includes("SYNCING")?(C.state=C.state?.replace(/_/g," "),_.push(C),P.pending.channels=P.pending.channels+1,P.pending.capacity=P.pending.capacity+(C.toLocal||0)):(C.state=C.state?.replace(/_/g," "),T.push(C),P.inactive.channels=P.inactive.channels+1,P.inactive.capacity=P.inactive.capacity+(C.toLocal||0)))}),m={localBalance:t,remoteBalance:s},u=this.commonService.sortDescByKey(u,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(u)),this.logger.info("Pending Channels: "+JSON.stringify(_)),this.logger.info("Inactive Channels: "+JSON.stringify(T)),this.logger.info("Lightning Balances: "+JSON.stringify(m)),this.logger.info("Channels Status: "+JSON.stringify(P)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:u,pending:_,inactive:T,balances:m,status:P})),this.store.dispatch((0,F.Tp)({payload:u})),this.store.dispatch((0,F.cU)({payload:_})),this.store.dispatch((0,F.I6)({payload:T})),this.store.dispatch((0,F.N8)({payload:m})),this.store.dispatch((0,F.ZE)({payload:P}))}initializeRemainingData(L,t){this.sessionService.setItem("eclUnlocked","true");const s={identity_pubkey:L.nodeId,alias:L.alias,testnet:"testnet"===L.network,chains:L.publicAddresses,uris:L.uris,version:L.version,numberOfPendingChannels:0};this.store.dispatch((0,w.mt)({payload:d.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,w.Fl)({payload:s}));let m=this.location.path();m.includes("/lnd/")?m=m?.replace("/lnd/","/ecl/"):m.includes("/cln/")&&(m=m?.replace("/cln/","/ecl/")),(m.includes("/login")||m.includes("/error")||""===m||"HOME"===t||m.includes("?access-key="))&&(m="/ecl/home"),this.router.navigate([m]),this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.yp)()),this.store.dispatch((0,F.jJ)()),this.store.dispatch((0,F.Gy)())}handleErrorWithoutAlert(L,t,s,m){this.logger.error("ERROR IN: "+L+"\n"+JSON.stringify(m)),401===m.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.Jh)()),this.store.dispatch((0,w.ri)({payload:"Authentication Failed: "+JSON.stringify(m.error)}))):(this.store.dispatch((0,w.y0)({payload:t})),this.store.dispatch((0,F.uL)({payload:{action:L,status:d.wn.ERROR,statusCode:m.status.toString(),message:this.commonService.extractErrorMessage(m,s)}})))}handleErrorWithAlert(L,t,s,m,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.Jh)()),this.store.dispatch((0,w.ri)({payload:"Authentication Failed: "+JSON.stringify(u.error)}));else{this.store.dispatch((0,w.y0)({payload:t}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,w.xO)({payload:{data:{type:"ERROR",alertTitle:s,message:{code:u.status,message:_,URL:m},component:h.f}}})),this.store.dispatch((0,F.uL)({payload:{action:L,status:d.wn.ERROR,statusCode:u.status.toString(),message:_,URL:m}}))}}ngOnDestroy(){this.unSubs.forEach(L=>{L.next(null),L.complete()})}static#e=se=()=>(this.\u0275fac=function(t){return new(t||pe)(K.KVO(i.En),K.KVO(j.Qq),K.KVO(Z.il),K.KVO(ee.Q),K.KVO(V.h),K.KVO(Q.gP),K.KVO($.Ix),K.KVO(ie.I),K.KVO(_e.aZ))},this.\u0275prov=K.jDH({token:pe,factory:pe.\u0275fac}))}return se(),pe})()},72730(ke,q,l){"use strict";l.d(q,{DW:()=>ee,KT:()=>h,Ou:()=>M,b_:()=>o,gN:()=>K,jZ:()=>p,oR:()=>d,os:()=>Z,p3:()=>D,rN:()=>j,ru:()=>A});var i=l(59640);const g=(0,i.UX)("ecl"),p=(0,i.Mz)(g,V=>({pageSettings:V.pageSettings,apiCallStatus:V.apisCallStatus.FetchPageSettings})),D=(0,i.Mz)(g,V=>V.information),o=(0,i.Mz)(g,V=>({information:V.information,apiCallStatus:V.apisCallStatus.FetchInfo})),A=((0,i.Mz)(g,V=>V.apisCallStatus.FetchInfo),(0,i.Mz)(g,V=>V.apisCallStatus)),h=(0,i.Mz)(g,V=>({payments:V.payments,apiCallStatus:V.apisCallStatus.FetchPayments})),d=(0,i.Mz)(g,V=>({fees:V.fees,apiCallStatus:V.apisCallStatus.FetchFees})),M=((0,i.Mz)(g,V=>({activeChannels:V.activeChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),(0,i.Mz)(g,V=>({pendingChannels:V.pendingChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),(0,i.Mz)(g,V=>({inactiveChannels:V.inactiveChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),(0,i.Mz)(g,V=>({activeChannels:V.activeChannels,pendingChannels:V.pendingChannels,inactiveChannels:V.inactiveChannels,lightningBalance:V.lightningBalance,channelsStatus:V.channelsStatus,apiCallStatus:V.apisCallStatus.FetchChannels}))),K=(0,i.Mz)(g,V=>({transactions:V.transactions,apiCallStatus:V.apisCallStatus.FetchTransactions})),j=(0,i.Mz)(g,V=>({invoices:V.invoices,apiCallStatus:V.apisCallStatus.FetchInvoices})),Z=(0,i.Mz)(g,V=>({peers:V.peers,apiCallStatus:V.apisCallStatus.FetchPeers})),ee=(0,i.Mz)(g,V=>({onchainBalance:V.onchainBalance,apiCallStatus:V.apisCallStatus.FetchOnchainBalance}))},86439(ke,q,l){"use strict";l.d(q,{Z:()=>ce});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(72730),A=l(2615),h=l(73664),d=l(98570),w=l(82571),f=l(95416),F=l(59640),M=l(72200),K=l(20060),j=l(88834),Z=l(25596),ee=l(71997),V=l(9183),Q=l(52920),$=l(16038),ie=l(38288),_e=l(29157),ye=l(89587);const se=Re=>({"display-none":Re}),pe=Re=>({"xs-scroll-y":Re}),Ee=(Re,Me)=>({"mt-2":Re,"mt-1":Me}),L=()=>[];function t(Re,Me){if(1&Re&&h.nrm(0,"qr-code",29),2&Re){const ve=h.XpG();h.Y8G("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)}}function s(Re,Me){1&Re&&(h.j41(0,"span",30),h.EFF(1,"N/A"),h.k0s())}function m(Re,Me){if(1&Re&&h.nrm(0,"qr-code",29),2&Re){const ve=h.XpG();h.Y8G("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)}}function u(Re,Me){1&Re&&(h.j41(0,"span",31),h.EFF(1,"QR Code Not Applicable"),h.k0s())}function _(Re,Me){1&Re&&h.nrm(0,"mat-divider",32),2&Re&&h.Y8G("inset",!0)}function T(Re,Me){1&Re&&(h.qex(0),h.EFF(1," (zero amount) "),h.bVm())}function P(Re,Me){1&Re&&h.nrm(0,"span",38)}function C(Re,Me){if(1&Re&&(h.j41(0,"div",34)(1,"div",35)(2,"span",36),h.EFF(3),h.nI1(4,"number"),h.k0s(),h.DNE(5,P,1,0,"span",37),h.k0s()()),2&Re){const ve=h.XpG(2);h.R7$(3),h.SpI("",h.bMT(4,2,null==ve.invoice?null:ve.invoice.amountSettled)," Sats"),h.R7$(2),h.Y8G("ngForOf",h.lJ4(4,L).constructor(35))}}function a(Re,Me){if(1&Re&&(h.j41(0,"div"),h.EFF(1),h.nI1(2,"number"),h.k0s()),2&Re){const ve=h.XpG(2);h.R7$(),h.SpI("",h.bMT(2,1,null==ve.invoice?null:ve.invoice.amountSettled)," Sats")}}function x(Re,Me){if(1&Re&&(h.qex(0),h.DNE(1,C,6,5,"div",33)(2,a,3,3,"div",20),h.bVm()),2&Re){const ve=h.XpG();h.R7$(),h.Y8G("ngIf",ve.flgInvoicePaid),h.R7$(),h.Y8G("ngIf",!ve.flgInvoicePaid)}}function Y(Re,Me){1&Re&&(h.j41(0,"span"),h.EFF(1,"-"),h.k0s())}function R(Re,Me){1&Re&&h.nrm(0,"mat-spinner",40),2&Re&&h.Y8G("diameter",20)}function U(Re,Me){if(1&Re&&(h.qex(0),h.DNE(1,Y,2,0,"span",20)(2,R,1,1,"mat-spinner",39),h.bVm()),2&Re){const ve=h.XpG();h.R7$(),h.Y8G("ngIf","unpaid"!==(null==ve.invoice?null:ve.invoice.status)||!ve.flgVersionCompatible),h.R7$(),h.Y8G("ngIf","unpaid"===(null==ve.invoice?null:ve.invoice.status)&&ve.flgVersionCompatible)}}function fe(Re,Me){if(1&Re&&(h.j41(0,"div"),h.nrm(1,"mat-divider",21),h.j41(2,"div",16)(3,"div",41)(4,"h4",18),h.EFF(5,"Date Expiry"),h.k0s(),h.j41(6,"span",19),h.EFF(7),h.nI1(8,"date"),h.k0s()(),h.j41(9,"div",42)(10,"h4",18),h.EFF(11,"Date Settled"),h.k0s(),h.j41(12,"span",22),h.EFF(13),h.nI1(14,"date"),h.k0s()()(),h.nrm(15,"mat-divider",21),h.j41(16,"div",16)(17,"div",23)(18,"h4",18),h.EFF(19,"Payment Hash"),h.k0s(),h.j41(20,"span",22),h.EFF(21),h.k0s()()(),h.nrm(22,"mat-divider",21),h.j41(23,"div",16)(24,"div",23)(25,"h4",18),h.EFF(26,"Node ID"),h.k0s(),h.j41(27,"span",22),h.EFF(28),h.k0s()()(),h.nrm(29,"mat-divider",21),h.k0s()),2&Re){const ve=h.XpG();h.R7$(7),h.JRh(h.i5U(8,4,1e3*(null==ve.invoice?null:ve.invoice.expiresAt),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(h.i5U(14,7,1e3*(null==ve.invoice?null:ve.invoice.receivedAt),"dd/MMM/y HH:mm")),h.R7$(8),h.JRh(null==ve.invoice?null:ve.invoice.paymentHash),h.R7$(7),h.JRh(null==ve.invoice?null:ve.invoice.nodeId)}}function re(Re,Me){1&Re&&(h.j41(0,"p"),h.EFF(1,"Show Advanced"),h.k0s())}function he(Re,Me){1&Re&&(h.j41(0,"p"),h.EFF(1,"Hide Advanced"),h.k0s())}function Oe(Re,Me){if(1&Re){const ve=h.RV6();h.j41(0,"button",43),h.bIt("copied",function(Se){A.eBV(ve);const be=h.XpG();return A.Njj(be.onCopyPayment(Se))}),h.EFF(1,"Copy Invoice"),h.k0s()}if(2&Re){const ve=h.XpG();h.Y8G("payload",null==ve.invoice?null:ve.invoice.serialized)}}function ge(Re,Me){if(1&Re){const ve=h.RV6();h.j41(0,"button",44),h.bIt("click",function(){A.eBV(ve);const Se=h.XpG();return A.Njj(Se.onClose())}),h.EFF(1,"OK"),h.k0s()}}let ce=(()=>{var Re;class Me{constructor(oe,Se,be,nt,$e,dt){this.dialogRef=oe,this.data=Se,this.logger=be,this.commonService=nt,this.snackBar=$e,this.store=dt,this.faReceipt=g.Mf0,this.faExclamationTriangle=g.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.store.select(e.p3).pipe((0,D.Q)(this.unSubs[0])).subscribe(oe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(oe.version,"0.5.0")}),this.store.select(e.rN).pipe((0,D.Q)(this.unSubs[1])).subscribe(oe=>{const Se=this.invoice.status,nt=(oe.invoices&&oe.invoices.length>0?oe.invoices:[])?.find($e=>$e.paymentHash===this.invoice.paymentHash)||null;nt&&(this.invoice=nt),Se!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(oe)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(oe){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+oe)}ngOnDestroy(){this.unSubs.forEach(oe=>{oe.next(null),oe.complete()})}static#e=Re=()=>(this.\u0275fac=function(Se){return new(Se||Me)(h.rXU(i.CP),h.rXU(i.Vh),h.rXU(d.gP),h.rXU(w.h),h.rXU(f.UG),h.rXU(F.il))},this.\u0275cmp=h.VBU({type:Me,selectors:[["rtl-ecl-invoice-information"]],standalone:!1,decls:68,vars:42,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",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 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"],["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"],["errorCorrectionLevel","L",3,"value","size"],[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,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Se,be){if(1&Se){const nt=h.RV6();h.j41(0,"div",1)(1,"div",2),h.DNE(2,t,1,2,"qr-code",3)(3,s,2,0,"span",4),h.k0s(),h.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),h.nrm(7,"fa-icon",8),h.j41(8,"span",9),h.EFF(9),h.k0s()(),h.j41(10,"button",10),h.bIt("click",function(){return A.eBV(nt),A.Njj(be.onClose())}),h.EFF(11,"X"),h.k0s()(),h.j41(12,"mat-card-content",11)(13,"div",12)(14,"div",13),h.DNE(15,m,1,2,"qr-code",3)(16,u,2,0,"span",14),h.k0s(),h.DNE(17,_,1,1,"mat-divider",15),h.j41(18,"div",16)(19,"div",17)(20,"h4",18),h.EFF(21,"Amount Requested"),h.k0s(),h.j41(22,"span",19),h.EFF(23),h.nI1(24,"number"),h.DNE(25,T,2,0,"ng-container",20),h.k0s()(),h.j41(26,"div",17)(27,"h4",18),h.EFF(28,"Amount Settled"),h.k0s(),h.j41(29,"span",19),h.DNE(30,x,3,2,"ng-container",20)(31,U,3,2,"ng-container",20),h.k0s()()(),h.nrm(32,"mat-divider",21),h.j41(33,"div",16)(34,"div",17)(35,"h4",18),h.EFF(36,"Date Created"),h.k0s(),h.j41(37,"span",22),h.EFF(38),h.nI1(39,"date"),h.k0s()(),h.j41(40,"div",17)(41,"h4",18),h.EFF(42,"Status"),h.k0s(),h.j41(43,"span",22),h.EFF(44),h.nI1(45,"titlecase"),h.k0s()()(),h.nrm(46,"mat-divider",21),h.j41(47,"div",16)(48,"div",23)(49,"h4",18),h.EFF(50,"Description"),h.k0s(),h.j41(51,"span",19),h.EFF(52),h.k0s()()(),h.nrm(53,"mat-divider",21),h.j41(54,"div",16)(55,"div",23)(56,"h4",18),h.EFF(57,"Invoice"),h.k0s(),h.j41(58,"span",22),h.EFF(59),h.k0s()()(),h.DNE(60,fe,30,10,"div",20),h.j41(61,"div",24)(62,"button",25),h.bIt("click",function(){return A.eBV(nt),A.Njj(be.onShowAdvanced())}),h.DNE(63,re,2,0,"p",26)(64,he,2,0,"ng-template",null,0,h.C5r),h.k0s(),h.DNE(66,Oe,2,1,"button",27)(67,ge,2,0,"button",28),h.k0s()()()()()}if(2&Se){const nt=h.sdS(65);h.R7$(),h.Y8G("fxLayoutAlign",null!=be.invoice&&be.invoice.serialized&&""!==(null==be.invoice?null:be.invoice.serialized)?"center start":"center center")("ngClass",h.eq3(33,se,be.screenSize===be.screenSizeEnum.XS||be.screenSize===be.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==be.invoice?null:be.invoice.serialized)&&""!==(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.serialized)||""===(null==be.invoice?null:be.invoice.serialized)),h.R7$(4),h.Y8G("icon",be.faReceipt),h.R7$(2),h.JRh(be.screenSize===be.screenSizeEnum.XS?be.newlyAdded?"Created":"Invoice":be.newlyAdded?"Invoice Created":"Invoice Information"),h.R7$(3),h.Y8G("ngClass",h.eq3(35,pe,be.screenSize===be.screenSizeEnum.XS)),h.R7$(2),h.Y8G("fxLayoutAlign",null!=be.invoice&&be.invoice.serialized&&""!==(null==be.invoice?null:be.invoice.serialized)?"center start":"center center")("ngClass",h.eq3(37,se,be.screenSize!==be.screenSizeEnum.XS&&be.screenSize!==be.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==be.invoice?null:be.invoice.serialized)&&""!==(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.serialized)||""===(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",be.screenSize===be.screenSizeEnum.XS||be.screenSize===be.screenSizeEnum.SM),h.R7$(6),h.SpI("",h.bMT(24,26,(null==be.invoice?null:be.invoice.amount)||0)," Sats"),h.R7$(2),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.amount)||"0"===(null==be.invoice?null:be.invoice.amount)),h.R7$(5),h.Y8G("ngIf",null==be.invoice?null:be.invoice.amountSettled),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.amountSettled)),h.R7$(7),h.JRh(h.i5U(39,28,1e3*(null==be.invoice?null:be.invoice.timestamp),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(h.bMT(45,31,null==be.invoice?null:be.invoice.status)),h.R7$(8),h.JRh((null==be.invoice?null:be.invoice.description)||"-"),h.R7$(7),h.JRh((null==be.invoice?null:be.invoice.serialized)||"N/A"),h.R7$(),h.Y8G("ngIf",be.showAdvanced),h.R7$(),h.Y8G("ngClass",h.l_i(39,Ee,!be.showAdvanced,be.showAdvanced)),h.R7$(2),h.Y8G("ngIf",!be.showAdvanced)("ngIfElse",nt),h.R7$(3),h.Y8G("ngIf",(null==be.invoice?null:be.invoice.serialized)&&""!==(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.serialized)||""===(null==be.invoice?null:be.invoice.serialized))}},dependencies:[M.YU,M.Sq,M.bT,K.aY,j.$z,Z.m2,Z.MM,ee.q,V.LG,Q.DJ,Q.sA,Q.UI,$.PW,ie.Um,_e.U,ye.N,M.QX,M.PV,M.vh],encapsulation:2}))}return Re(),Me})()},190(ke,q,l){"use strict";l.d(q,{$6:()=>ge,$J:()=>U,$Q:()=>Ee,As:()=>ve,Br:()=>d,CK:()=>be,DI:()=>ye,DY:()=>_e,Do:()=>Oe,Dq:()=>ce,Fd:()=>$e,GZ:()=>ae,Gy:()=>f,H2:()=>a,Hm:()=>Pe,J9:()=>pe,Jx:()=>Q,L:()=>x,Lf:()=>re,NS:()=>A,O8:()=>Se,Qj:()=>F,SM:()=>oe,Sn:()=>h,T4:()=>Fe,Uj:()=>nt,Uo:()=>ie,VK:()=>ee,WE:()=>Le,X9:()=>e,XT:()=>rt,Yi:()=>Vt,Zi:()=>Z,_$:()=>Re,aB:()=>qt,ar:()=>t,b1:()=>Qe,cR:()=>C,cU:()=>s,dv:()=>L,e8:()=>p,ed:()=>j,fy:()=>_,ij:()=>tn,jk:()=>hn,kv:()=>tt,lg:()=>o,mh:()=>Me,oX:()=>Xt,p1:()=>D,pL:()=>m,sq:()=>M,t0:()=>yt,t5:()=>fe,tG:()=>Ue,tf:()=>se,uK:()=>_n,vL:()=>T,w0:()=>P,x1:()=>w,yp:()=>$,z2:()=>u,zU:()=>et});var i=l(59640),g=l(4416);const p=(0,i.VP)(g.QP.UPDATE_API_CALL_STATUS_LND,(0,i.xk)()),D=(0,i.VP)(g.QP.RESET_LND_STORE),o=(0,i.VP)(g.QP.FETCH_PAGE_SETTINGS_LND),e=(0,i.VP)(g.QP.UPDATE_SELECTED_NODE_OPTIONS),A=(0,i.VP)(g.QP.SET_PAGE_SETTINGS_LND,(0,i.xk)()),h=(0,i.VP)(g.QP.SAVE_PAGE_SETTINGS_LND,(0,i.xk)()),d=(0,i.VP)(g.QP.FETCH_INFO_LND,(0,i.xk)()),w=(0,i.VP)(g.QP.SET_INFO_LND,(0,i.xk)()),f=(0,i.VP)(g.QP.FETCH_PEERS_LND),F=(0,i.VP)(g.QP.SET_PEERS_LND,(0,i.xk)()),M=(0,i.VP)(g.QP.SAVE_NEW_PEER_LND,(0,i.xk)()),j=((0,i.VP)(g.QP.NEWLY_ADDED_PEER_LND,(0,i.xk)()),(0,i.VP)(g.QP.DETACH_PEER_LND,(0,i.xk)())),Z=(0,i.VP)(g.QP.REMOVE_PEER_LND,(0,i.xk)()),ee=(0,i.VP)(g.QP.SAVE_NEW_INVOICE_LND,(0,i.xk)()),Q=((0,i.VP)(g.QP.NEWLY_SAVED_INVOICE_LND,(0,i.xk)()),(0,i.VP)(g.QP.ADD_INVOICE_LND,(0,i.xk)())),$=(0,i.VP)(g.QP.FETCH_FEES_LND),ie=(0,i.VP)(g.QP.SET_FEES_LND,(0,i.xk)()),_e=(0,i.VP)(g.QP.FETCH_BLOCKCHAIN_BALANCE_LND),ye=(0,i.VP)(g.QP.SET_BLOCKCHAIN_BALANCE_LND,(0,i.xk)()),se=(0,i.VP)(g.QP.FETCH_NETWORK_LND),pe=(0,i.VP)(g.QP.SET_NETWORK_LND,(0,i.xk)()),Ee=(0,i.VP)(g.QP.FETCH_CHANNELS_LND),L=(0,i.VP)(g.QP.SET_CHANNELS_LND,(0,i.xk)()),t=(0,i.VP)(g.QP.FETCH_PENDING_CHANNELS_LND),s=(0,i.VP)(g.QP.SET_PENDING_CHANNELS_LND,(0,i.xk)()),m=(0,i.VP)(g.QP.FETCH_CLOSED_CHANNELS_LND),u=(0,i.VP)(g.QP.SET_CLOSED_CHANNELS_LND,(0,i.xk)()),_=(0,i.VP)(g.QP.UPDATE_CHANNEL_LND,(0,i.xk)()),T=(0,i.VP)(g.QP.SAVE_NEW_CHANNEL_LND,(0,i.xk)()),P=(0,i.VP)(g.QP.CLOSE_CHANNEL_LND,(0,i.xk)()),C=(0,i.VP)(g.QP.REMOVE_CHANNEL_LND,(0,i.xk)()),a=(0,i.VP)(g.QP.BACKUP_CHANNELS_LND,(0,i.xk)()),x=(0,i.VP)(g.QP.VERIFY_CHANNEL_LND,(0,i.xk)()),U=((0,i.VP)(g.QP.BACKUP_CHANNELS_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.VERIFY_CHANNEL_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.RESTORE_CHANNELS_LIST_LND)),fe=(0,i.VP)(g.QP.SET_RESTORE_CHANNELS_LIST_LND,(0,i.xk)()),re=(0,i.VP)(g.QP.RESTORE_CHANNELS_LND,(0,i.xk)()),Oe=((0,i.VP)(g.QP.RESTORE_CHANNELS_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.FETCH_INVOICES_LND,(0,i.xk)())),ge=(0,i.VP)(g.QP.SET_INVOICES_LND,(0,i.xk)()),ce=(0,i.VP)(g.QP.UPDATE_INVOICE_LND,(0,i.xk)()),Re=(0,i.VP)(g.QP.UPDATE_PAYMENT_LND,(0,i.xk)()),Me=(0,i.VP)(g.QP.FETCH_TRANSACTIONS_LND),ve=(0,i.VP)(g.QP.SET_TRANSACTIONS_LND,(0,i.xk)()),oe=(0,i.VP)(g.QP.FETCH_UTXOS_LND),Se=(0,i.VP)(g.QP.SET_UTXOS_LND,(0,i.xk)()),be=(0,i.VP)(g.QP.FETCH_PAYMENTS_LND,(0,i.xk)()),nt=(0,i.VP)(g.QP.SET_PAYMENTS_LND,(0,i.xk)()),$e=(0,i.VP)(g.QP.SEND_PAYMENT_LND,(0,i.xk)()),yt=((0,i.VP)(g.QP.SEND_PAYMENT_STATUS_LND,(0,i.xk)()),(0,i.VP)(g.QP.FETCH_GRAPH_NODE_LND,(0,i.xk)())),rt=((0,i.VP)(g.QP.SET_GRAPH_NODE_LND,(0,i.xk)()),(0,i.VP)(g.QP.GET_NEW_ADDRESS_LND,(0,i.xk)())),qt=((0,i.VP)(g.QP.SET_NEW_ADDRESS_LND,(0,i.xk)()),(0,i.VP)(g.QP.SET_CHANNEL_TRANSACTION_LND,(0,i.xk)())),Xt=((0,i.VP)(g.QP.SET_CHANNEL_TRANSACTION_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.GEN_SEED_LND,(0,i.xk)())),ae=((0,i.VP)(g.QP.GEN_SEED_RESPONSE_LND,(0,i.xk)()),(0,i.VP)(g.QP.INIT_WALLET_LND,(0,i.xk)())),Le=((0,i.VP)(g.QP.INIT_WALLET_RESPONSE_LND,(0,i.xk)()),(0,i.VP)(g.QP.UNLOCK_WALLET_LND,(0,i.xk)())),et=(0,i.VP)(g.QP.PEER_LOOKUP_LND,(0,i.xk)()),tn=(0,i.VP)(g.QP.CHANNEL_LOOKUP_LND,(0,i.xk)()),Vt=(0,i.VP)(g.QP.INVOICE_LOOKUP_LND,(0,i.xk)()),hn=(0,i.VP)(g.QP.PAYMENT_LOOKUP_LND,(0,i.xk)()),_n=((0,i.VP)(g.QP.SET_LOOKUP_LND,(0,i.xk)()),(0,i.VP)(g.QP.GET_FORWARDING_HISTORY_LND,(0,i.xk)())),tt=(0,i.VP)(g.QP.SET_FORWARDING_HISTORY_LND,(0,i.xk)()),Fe=(0,i.VP)(g.QP.GET_QUERY_ROUTES_LND,(0,i.xk)()),Pe=(0,i.VP)(g.QP.SET_QUERY_ROUTES_LND,(0,i.xk)()),Ue=(0,i.VP)(g.QP.GET_ALL_LIGHTNING_TRANSATIONS_LND),Qe=(0,i.VP)(g.QP.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,i.xk)())},69579(ke,q,l){"use strict";l.d(q,{L:()=>pe});var i=l(11747),g=l(21413),p=l(7673),D=l(99437),o=l(96354),e=l(31397),A=l(56977),h=l(53993),d=l(46391),w=l(12462),f=l(4416),F=l(11771),M=l(190),K=l(63536),j=l(2615),Z=l(29330),ee=l(59640),V=l(98570),Q=l(82571),$=l(53202),ie=l(51585),_e=l(43694),ye=l(7879),se=l(57303);let pe=(()=>{var Ee;class L{constructor(s,m,u,_,T,P,C,a,x,Y){this.actions=s,this.httpClient=m,this.store=u,this.logger=_,this.commonService=T,this.sessionService=P,this.dialog=C,this.router=a,this.wsService=x,this.location=Y,this.CHILD_API_URL=f.H$+"/lnd",this.invoicesPageSettings=f.ZC.find(R=>"transactions"===R.pageId)?.tables.find(R=>"invoices"===R.tableId),this.paymentsPageSettings=f.ZC.find(R=>"transactions"===R.pageId)?.tables.find(R=>"payments"===R.tableId),this.flgInitialized=!1,this.unSubs=[new g.B,new g.B],this.infoFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_INFO_LND),(0,e.Z)(R=>(this.flgInitialized=!1,this.store.dispatch((0,F.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.mt)({payload:f.MZ.GET_NODE_INFO})),this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.GETINFO_API).pipe((0,A.Q)(this.actions.pipe((0,i.gp)(f.aU.SET_SELECTED_NODE))),(0,o.T)(U=>(this.logger.info(U),U.chains&&U.chains.length&&U.chains[0]&&("string"==typeof U.chains[0]&&U.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof U.chains[0]&&U.chains[0].hasOwnProperty("chain")&&U.chains[0].chain&&U.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.xO)({payload:{data:{type:f.A$.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:f.aU.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,R.payload.loadPage),this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.Jh)()),{type:f.QP.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.Jh)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:f.QP.SET_INFO_LND,payload:{}}))),(0,D.W)(U=>{if("string"==typeof U.error.error&&U.error.error.includes("Not Found")||"string"==typeof U.error.error&&U.error.error.includes("wallet locked")||502===U.status&&!U.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",f.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",U);else if("string"==typeof U.error.error&&U.error.error.includes("starting up")&&500===U.status)setTimeout(()=>{this.store.dispatch((0,M.Br)({payload:{loadPage:"HOME"}}))},2e3);else{const fe=this.commonService.extractErrorCode(U),re=503===fe?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:fe,errorMessage:re}}),this.handleErrorWithoutAlert("FetchInfo",f.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:fe,error:re})}return(0,p.of)({type:f.aU.VOID})})))))),this.peersFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PEERS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPeers",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PEERS_API).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchPeers",status:f.wn.COMPLETED}})),{type:f.QP.SET_PEERS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchPeers",f.MZ.NO_SPINNER,"Fetching Peers Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.saveNewPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_NEW_PEER_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.CONNECT_PEER})),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewPeer",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.PEERS_API,{pubkey:R.payload.pubkey,host:R.payload.host,perm:R.payload.perm}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewPeer",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.CONNECT_PEER})),this.store.dispatch((0,M.Qj)({payload:U||[]})),{type:f.QP.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",f.MZ.CONNECT_PEER,"Peer Connection Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.detachPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.DETACH_PEER_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+f.rl.PEERS_API+"/"+R.payload.pubkey).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.DISCONNECT_PEER})),this.store.dispatch((0,F.UI)({payload:"Peer Disconnected Successfully."})),{type:f.QP.REMOVE_PEER_LND,payload:{pubkey:R.payload.pubkey}})),(0,D.W)(U=>(this.handleErrorWithAlert("DetachPeer",f.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+f.rl.PEERS_API+"/"+R.payload.pubkey,U),(0,p.of)({type:f.aU.VOID})))))))),this.saveNewInvoice=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_NEW_INVOICE_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewInvoice",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.INVOICES_API,{memo:R.payload.memo,value:R.payload.value,private:R.payload.private,expiry:R.payload.expiry,is_amp:R.payload.is_amp}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewInvoice",status:f.wn.COMPLETED}})),this.store.dispatch((0,M.Do)({payload:{num_max_invoices:R.payload.pageSize,reversed:!0}})),R.payload.openModal?(U.memo=R.payload.memo,U.value=R.payload.value,U.expiry=R.payload.expiry,U.private=R.payload.private,U.is_amp=R.payload.is_amp,U.cltv_expiry="144",U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,F.xO)({payload:{data:{invoice:U,newlyAdded:!0,component:d.H}}}))},200),{type:f.aU.CLOSE_SPINNER,payload:R.payload.uiMessage}):{type:f.QP.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",R.payload.uiMessage,"Add Invoice Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.openNewChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_NEW_CHANNEL_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.OPEN_CHANNEL})),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewChannel",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_API,{node_pubkey:R.payload.selectedPeerPubkey,local_funding_amount:R.payload.fundingAmount,private:R.payload.private,trans_type:R.payload.transType,trans_type_value:R.payload.transTypeValue,spend_unconfirmed:R.payload.spendUnconfirmed,commitment_type:R.payload.commitmentType}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewChannel",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.OPEN_CHANNEL})),this.store.dispatch((0,M.DY)()),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.H2)({payload:{uiMessage:f.MZ.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:f.QP.FETCH_PENDING_CHANNELS_LND})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",f.MZ.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.updateChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.UPDATE_CHANNEL_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_API+"/chanPolicy",{baseFeeMsat:R.payload.baseFeeMsat,feeRate:R.payload.feeRate,timeLockDelta:R.payload.timeLockDelta,max_htlc_msat:R.payload.maxHtlcMsat,min_htlc_msat:R.payload.minHtlcMsat,chanPoint:R.payload.chanPoint}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,F.UI)("all"===R.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:f.QP.FETCH_CHANNELS_LND})),(0,D.W)(U=>(this.handleErrorWithAlert("UpdateChannels",f.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+f.rl.CHANNELS_API+"/chanPolicy",U),(0,p.of)({type:f.aU.VOID})))))))),this.closeChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.CLOSE_CHANNEL_LND),(0,e.Z)(R=>{this.store.dispatch((0,F.mt)({payload:R.payload.forcibly?f.MZ.FORCE_CLOSE_CHANNEL:f.MZ.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+f.rl.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly;return R.payload.targetConf&&(U=U+"&target_conf="+R.payload.targetConf),R.payload.satPerVByte&&(U=U+"&sat_per_vbyte="+R.payload.satPerVByte),this.httpClient.delete(U).pipe((0,o.T)(fe=>(this.logger.info(fe),this.store.dispatch((0,F.y0)({payload:R.payload.forcibly?f.MZ.FORCE_CLOSE_CHANNEL:f.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.ar)()),this.store.dispatch((0,M.H2)({payload:{uiMessage:f.MZ.NO_SPINNER,channelPoint:"ALL",showMessage:fe.message}})),{type:f.aU.VOID})),(0,D.W)(fe=>(this.handleErrorWithAlert("CloseChannel",R.payload.forcibly?f.MZ.FORCE_CLOSE_CHANNEL:f.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly,fe),(0,p.of)({type:f.aU.VOID}))))}))),this.backupChannels=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.BACKUP_CHANNELS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"BackupChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"BackupChannels",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,F.UI)({payload:R.payload.showMessage+" "+U.message})),{type:f.QP.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,D.W)(U=>(this.handleErrorWithAlert("BackupChannels",R.payload.uiMessage,R.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint,U),(0,p.of)({type:f.aU.VOID})))))))),this.verifyChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.VERIFY_CHANNEL_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.VERIFY_CHANNEL})),this.store.dispatch((0,M.e8)({payload:{action:"VerifyChannel",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,{}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"VerifyChannel",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.VERIFY_CHANNEL})),this.store.dispatch((0,F.UI)({payload:U.message})),{type:f.QP.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,D.W)(U=>(this.handleErrorWithAlert("VerifyChannel",f.MZ.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,U),(0,p.of)({type:f.aU.VOID})))))))),this.restoreChannels=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.RESTORE_CHANNELS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.RESTORE_CHANNEL})),this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannels",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,{}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannels",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.RESTORE_CHANNEL})),this.store.dispatch((0,F.UI)({payload:U.message})),this.store.dispatch((0,M.t5)({payload:U.list})),{type:f.QP.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,D.W)(U=>(this.handleErrorWithAlert("RestoreChannels",f.MZ.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,U),(0,p.of)({type:f.aU.VOID})))))))),this.fetchFees=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_FEES_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchFees",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.FEES_API))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchFees",status:f.wn.COMPLETED}})),R.forwarding_events_history&&(this.store.dispatch((0,M.kv)({payload:R.forwarding_events_history})),delete R.forwarding_events_history),{type:f.QP.SET_FEES_LND,payload:R||{}})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchFees",f.MZ.NO_SPINNER,"Fetching Fees Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.balanceBlockchainFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_BLOCKCHAIN_BALANCE_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchBalance",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.BALANCE_API))),(0,o.T)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchBalance",status:f.wn.COMPLETED}})),this.logger.info(R),{type:f.QP.SET_BLOCKCHAIN_BALANCE_LND,payload:R||{total_balance:""}})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchBalance",f.MZ.NO_SPINNER,"Fetching Blockchain Balance Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.networkInfoFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_NETWORK_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchNetwork",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/info"))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchNetwork",status:f.wn.COMPLETED}})),{type:f.QP.SET_NETWORK_LND,payload:R||{}})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchNetwork",f.MZ.NO_SPINNER,"Fetching Network Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.channelsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_API).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchChannels",status:f.wn.COMPLETED}})),{type:f.QP.SET_CHANNELS_LND,payload:R.channels||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchChannels",f.MZ.NO_SPINNER,"Fetching Channels Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.channelsPendingFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PENDING_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPendingChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_API+"/pending").pipe((0,o.T)(R=>{this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchPendingChannels",status:f.wn.COMPLETED}}));const U={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 R&&(U.total_limbo_balance=R.total_limbo_balance,R.pending_closing_channels&&(U.closing.num_channels=R.pending_closing_channels.length,U.total_channels=U.total_channels+R.pending_closing_channels.length,R.pending_closing_channels.forEach(fe=>{U.closing.limbo_balance=+U.closing.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)})),R.pending_force_closing_channels&&(U.force_closing.num_channels=R.pending_force_closing_channels.length,U.total_channels=U.total_channels+R.pending_force_closing_channels.length,R.pending_force_closing_channels.forEach(fe=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)})),R.pending_open_channels&&(U.open.num_channels=R.pending_open_channels.length,U.total_channels=U.total_channels+R.pending_open_channels.length,R.pending_open_channels.forEach(fe=>{U.open.limbo_balance=+U.open.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)})),R.waiting_close_channels&&(U.waiting_close.num_channels=R.waiting_close_channels.length,U.total_channels=U.total_channels+R.waiting_close_channels.length,R.waiting_close_channels.forEach(fe=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)}))),{type:f.QP.SET_PENDING_CHANNELS_LND,payload:R?{pendingChannels:R,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchPendingChannels",f.MZ.NO_SPINNER,"Fetching Pending Channels Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.channelsClosedFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_CLOSED_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchClosedChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_API+"/closed").pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchClosedChannels",status:f.wn.COMPLETED}})),{type:f.QP.SET_CLOSED_CHANNELS_LND,payload:R.channels||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchClosedChannels",f.MZ.NO_SPINNER,"Fetching Closed Channels Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.invoicesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_INVOICES_LND),(0,e.Z)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchInvoices",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.INVOICES_API+"?num_max_invoices="+(R.payload.num_max_invoices?R.payload.num_max_invoices:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,o.T)(he=>(this.logger.info(he),this.store.dispatch((0,M.e8)({payload:{action:"FetchInvoices",status:f.wn.COMPLETED}})),R.payload.reversed&&!R.payload.index_offset&&(he.total_invoices=+(he.last_index_offset||0)),{type:f.QP.SET_INVOICES_LND,payload:he})),(0,D.W)(he=>(this.handleErrorWithoutAlert("FetchInvoices",f.MZ.NO_SPINNER,"Fetching Invoices Failed.",he),(0,p.of)({type:f.aU.VOID})))))))),this.transactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_TRANSACTIONS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchTransactions",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.TRANSACTIONS_API))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchTransactions",status:f.wn.COMPLETED}})),{type:f.QP.SET_TRANSACTIONS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchTransactions",f.MZ.NO_SPINNER,"Fetching Transactions Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.utxosFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_UTXOS_LND),(0,h.E)(this.store.select(K.pI)),(0,e.Z)(([R,U])=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchUTXOs",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchUTXOs",status:f.wn.COMPLETED}})),{type:f.QP.SET_UTXOS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchUTXOs",f.MZ.NO_SPINNER,"Fetching UTXOs Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.paymentsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PAYMENTS_LND),(0,e.Z)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPayments",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PAYMENTS_API+"?max_payments="+(R.payload.max_payments?R.payload.max_payments:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,o.T)(he=>(this.logger.info(he),this.store.dispatch((0,M.e8)({payload:{action:"FetchPayments",status:f.wn.COMPLETED}})),this.commonService.sortByKey(he.payments||[],this.paymentsPageSettings?.sortBy||"creation_date","number",this.paymentsPageSettings?.sortOrder),{type:f.QP.SET_PAYMENTS_LND,payload:he})),(0,D.W)(he=>(this.handleErrorWithoutAlert("FetchPayments",f.MZ.NO_SPINNER,"Fetching Payments Failed.",he),(0,p.of)({type:f.QP.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SEND_PAYMENT_LND),(0,e.Z)(R=>{this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SendPayment",status:f.wn.INITIATED}}));const U=JSON.parse(JSON.stringify(R.payload));return delete U.uiMessage,delete U.fromDialog,this.httpClient.post(this.CHILD_API_URL+f.rl.PAYMENTS_API+"/send",U).pipe((0,o.T)(fe=>{if(this.logger.info(fe),this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SendPayment",status:f.wn.COMPLETED}})),fe.payment_error)return R.payload.allow_self_payment?(this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),{type:f.QP.SEND_PAYMENT_STATUS_LND,payload:fe}):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",fe.payment_error):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+f.rl.CHANNELS_API+"/transactions",fe.payment_error),{type:f.aU.VOID});if(this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SendPayment",status:f.wn.COMPLETED}})),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.CK)({payload:{max_payments:this.paymentsPageSettings?.recordsPerPage,reversed:!0}})),R.payload.allow_self_payment)this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}));else{let re="Payment Sent Successfully.";fe.payment_route&&fe.payment_route.total_fees_msat&&(re="Payment sent successfully with the total fee "+fe.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,F.UI)({payload:re}))}return{type:f.QP.SEND_PAYMENT_STATUS_LND,payload:fe}}),(0,D.W)(fe=>(this.logger.error("Error: "+JSON.stringify(fe)),R.payload.allow_self_payment?(this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",fe),this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),(0,p.of)({type:f.QP.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(fe)}})):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",fe):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+f.rl.CHANNELS_API+"/transactions",fe),(0,p.of)({type:f.aU.VOID})))))}))),this.graphNodeFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_GRAPH_NODE_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.GET_NODE_ADDRESS})),this.store.dispatch((0,M.e8)({payload:{action:"FetchGraphNode",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/node/"+R.payload.pubkey).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.GET_NODE_ADDRESS})),this.store.dispatch((0,M.e8)({payload:{action:"FetchGraphNode",status:f.wn.COMPLETED}})),{type:f.QP.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,D.W)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",f.MZ.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.setGraphNode=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_GRAPH_NODE_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_NEW_ADDRESS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+f.rl.NEW_ADDRESS_API+"?type="+R.payload.addressId).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.GENERATE_NEW_ADDRESS})),{type:f.QP.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,D.W)(U=>(this.handleErrorWithAlert("GetNewAddress",f.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+f.rl.NEW_ADDRESS_API+"?type="+R.payload.addressId,U),(0,p.of)({type:f.aU.VOID})))))))),this.setNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_NEW_ADDRESS_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_CHANNEL_TRANSACTION_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.SEND_FUNDS})),this.store.dispatch((0,M.e8)({payload:{action:"SetChannelTransaction",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.TRANSACTIONS_API,{amount:R.payload.amount,address:R.payload.address,sendAll:R.payload.sendAll,fees:R.payload.fees,blocks:R.payload.blocks}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SetChannelTransaction",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.SEND_FUNDS})),this.store.dispatch((0,M.mh)()),this.store.dispatch((0,M.DY)()),this.store.dispatch((0,M.$Q)()),{type:f.QP.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",f.MZ.SEND_FUNDS,"Sending Fund Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.fetchForwardingHistory=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_FORWARDING_HISTORY_LND),(0,e.Z)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchForwardingHistory",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.SWITCH_API,{num_max_events:R.payload.num_max_events,index_offset:R.payload.index_offset,end_time:R.payload.end_time,start_time:R.payload.start_time}).pipe((0,o.T)(fe=>(this.logger.info(fe),this.store.dispatch((0,M.e8)({payload:{action:"FetchForwardingHistory",status:f.wn.COMPLETED}})),{type:f.QP.SET_FORWARDING_HISTORY_LND,payload:fe})),(0,D.W)(fe=>(this.handleErrorWithAlert("FetchForwardingHistory",f.MZ.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+f.rl.SWITCH_API,fe),(0,p.of)({type:f.aU.VOID})))))))),this.queryRoutesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_QUERY_ROUTES_LND),(0,e.Z)(R=>{let U=this.CHILD_API_URL+f.rl.NETWORK_API+"/routes/"+R.payload.destPubkey+"/"+R.payload.amount;return R.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+R.payload.outgoingChanId),this.httpClient.get(U).pipe((0,o.T)(fe=>(this.logger.info(fe),{type:f.QP.SET_QUERY_ROUTES_LND,payload:fe})),(0,D.W)(fe=>(this.store.dispatch((0,M.Hm)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",f.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+f.rl.NETWORK_API,fe),(0,p.of)({type:f.aU.VOID}))))}))),this.setQueryRoutes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_QUERY_ROUTES_LND),(0,o.T)(R=>R.payload)),{dispatch:!1}),this.genSeed=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GEN_SEED_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+f.rl.WALLET_API+"/genseed/"+R.payload).pipe((0,o.T)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.GEN_SEED})),{type:f.QP.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,D.W)(U=>(this.handleErrorWithAlert("GenSeed",f.MZ.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+f.rl.WALLET_API+"/genseed/"+R.payload,U),(0,p.of)({type:f.aU.VOID})))))))),this.updateSelNodeOptions=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.UPDATE_SELECTED_NODE_OPTIONS),(0,e.Z)(()=>this.httpClient.get(this.CHILD_API_URL+f.rl.WALLET_API+"/updateSelNodeOptions").pipe((0,o.T)(R=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(R),{type:f.aU.VOID})),(0,D.W)(R=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",f.MZ.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",R),(0,p.of)({type:f.aU.VOID}))))))),this.genSeedResponse=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GEN_SEED_RESPONSE_LND),(0,o.T)(R=>R.payload)),{dispatch:!1}),this.initWalletRes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.INIT_WALLET_RESPONSE_LND),(0,o.T)(R=>R.payload)),{dispatch:!1}),this.initWallet=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.INIT_WALLET_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+f.rl.WALLET_API+"/wallet/initwallet",{wallet_password:R.payload.pwd,cipher_seed_mnemonic:R.payload.cipher?R.payload.cipher:"",aezeed_passphrase:R.payload.passphrase?R.payload.passphrase:""}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.INITIALIZE_WALLET})),{type:f.QP.INIT_WALLET_RESPONSE_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithAlert("InitWallet",f.MZ.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+f.rl.WALLET_API+"/initwallet",U),(0,p.of)({type:f.aU.VOID})))))))),this.unlockWallet=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.UNLOCK_WALLET_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+f.rl.WALLET_API+"/wallet/unlockwallet",{wallet_password:R.payload.pwd}).pipe((0,o.T)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,F.y0)({payload:f.MZ.UNLOCK_WALLET})),this.store.dispatch((0,F.mt)({payload:f.MZ.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,F.y0)({payload:f.MZ.WAIT_SYNC_NODE})),this.store.dispatch((0,M.Br)({payload:{loadPage:"HOME"}}))},5e3),{type:f.aU.VOID})),(0,D.W)(U=>(this.handleErrorWithAlert("UnlockWallet",f.MZ.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+f.rl.WALLET_API+"/unlockwallet",U),(0,p.of)({type:f.aU.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.PEER_LOOKUP_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.SEARCHING_NODE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/node/"+R.payload).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.SEARCHING_NODE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),{type:f.QP.SET_LOOKUP_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithAlert("Lookup",f.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+f.rl.NETWORK_API+"/node/"+R.payload,U),(0,p.of)({type:f.aU.VOID})))))))),this.channelLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.CHANNEL_LOOKUP_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/edge/"+R.payload.channelID).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),{type:f.QP.SET_LOOKUP_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithAlert("Lookup",R.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+f.rl.NETWORK_API+"/edge/"+R.payload.channelID,U),(0,p.of)({type:f.aU.VOID})))))))),this.invoiceLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.INVOICE_LOOKUP_LND),(0,e.Z)(R=>{this.store.dispatch((0,F.mt)({payload:f.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}}));let U=this.CHILD_API_URL+f.rl.INVOICES_API+"/lookup";return U=R.payload.paymentAddress&&""!==R.payload.paymentAddress?U+"?payment_addr="+R.payload.paymentAddress:U+"?payment_hash="+R.payload.paymentHash,this.httpClient.get(U).pipe((0,o.T)(fe=>(this.logger.info(fe),this.store.dispatch((0,F.y0)({payload:f.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),this.store.dispatch((0,M.Dq)({payload:fe})),{type:f.QP.SET_LOOKUP_LND,payload:fe})),(0,D.W)(fe=>(this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.ERROR}})),this.handleErrorWithoutAlert("Lookup",f.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",fe),R.payload.openSnackBar&&this.store.dispatch((0,F.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,p.of)({type:f.QP.SET_LOOKUP_LND,payload:{error:fe}}))))}))),this.paymentLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.PAYMENT_LOOKUP_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.SEARCHING_PAYMENT})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PAYMENTS_API+"/lookup/"+R.payload).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.SEARCHING_PAYMENT})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),this.store.dispatch((0,M._$)({payload:U})),{type:f.QP.SET_LOOKUP_LND,payload:U})),(0,D.W)(U=>(this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.ERROR}})),this.handleErrorWithoutAlert("Lookup",f.MZ.SEARCHING_PAYMENT,"Payment Lookup Failed",U),(0,p.of)({type:f.QP.SET_LOOKUP_LND,payload:{error:U}})))))))),this.setLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_LOOKUP_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.RESTORE_CHANNELS_LIST_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannelsList",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/restore/list").pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannelsList",status:f.wn.COMPLETED}})),{type:f.QP.SET_RESTORE_CHANNELS_LIST_LND,payload:R||{all_restore_exists:!1,files:[]}})),(0,D.W)(R=>(this.handleErrorWithAlert("RestoreChannelsList",f.MZ.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API,R),(0,p.of)({type:f.aU.VOID})))))))),this.setRestoreChannelList=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_RESTORE_CHANNELS_LIST_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchLightningTransactions",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PAYMENTS_API+"/alltransactions").pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchLightningTransactions",status:f.wn.COMPLETED}})),{type:f.QP.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:R})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchLightningTransactions",f.MZ.NO_SPINNER,"Fetching All Lightning Transaction Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.pageSettingsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PAGE_SETTINGS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPageSettings",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.PAGE_SETTINGS_API).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchPageSettings",status:f.wn.COMPLETED}})),this.invoicesPageSettings=R&&Object.keys(R).length>0?R.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId):f.ZC.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId),this.paymentsPageSettings=R&&Object.keys(R).length>0?R.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId):f.ZC.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId),{type:f.QP.SET_PAGE_SETTINGS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchPageSettings",f.MZ.NO_SPINNER,"Fetching Page Settings Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.savePageSettings=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_PAGE_SETTINGS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,M.e8)({payload:{action:"SavePageSettings",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.PAGE_SETTINGS_API,R.payload).pipe((0,o.T)(U=>{this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SavePageSettings",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,F.UI)({payload:"Page Layout Updated Successfully!"}));const fe=(U.find(he=>"transactions"===he.pageId)?.tables.find(he=>"invoices"===he.tableId)||f.ZC.find(he=>"transactions"===he.pageId)?.tables.find(he=>"invoices"===he.tableId)).recordsPerPage,re=(U.find(he=>"transactions"===he.pageId)?.tables.find(he=>"payments"===he.tableId)||f.ZC.find(he=>"transactions"===he.pageId)?.tables.find(he=>"payments"===he.tableId)).recordsPerPage;return this.invoicesPageSettings&&fe!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=fe,this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))),this.paymentsPageSettings&&re!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=re),{type:f.QP.SET_PAGE_SETTINGS_LND,payload:U||[]}}),(0,D.W)(U=>(this.handleErrorWithAlert("SavePageSettings",f.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",f.rl.PAGE_SETTINGS_API,U),(0,p.of)({type:f.aU.VOID})))))))),this.store.select(K.ru).pipe((0,A.Q)(this.unSubs[0])).subscribe(R=>{R.FetchInfo.status!==f.wn.COMPLETED&&R.FetchInfo.status!==f.wn.ERROR||R.FetchFees.status!==f.wn.COMPLETED&&R.FetchFees.status!==f.wn.ERROR||R.FetchBalanceBlockchain.status!==f.wn.COMPLETED&&R.FetchBalanceBlockchain.status!==f.wn.ERROR||R.FetchAllChannels.status!==f.wn.COMPLETED&&R.FetchAllChannels.status!==f.wn.ERROR||R.FetchPendingChannels.status!==f.wn.COMPLETED&&R.FetchPendingChannels.status!==f.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,F.y0)({payload:f.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,A.Q)(this.unSubs[1])).subscribe(R=>{this.logger.info("Received new message from the service: "+JSON.stringify(R)),R&&(R.type===f.o1.INVOICE?(this.logger.info(R),R&&R.result&&R.result.payment_request&&this.store.dispatch((0,M.Dq)({payload:R.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(R)))})}initializeRemainingData(s,m){this.sessionService.setItem("lndUnlocked","true");const u={identity_pubkey:s.identity_pubkey,alias:s.alias,testnet:s.testnet,chains:s.chains,uris:s.uris,version:s.version?s.version.split(" ")[0]:""};this.store.dispatch((0,F.mt)({payload:f.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,F.Fl)({payload:u}));let _=this.location.path();_.includes("/cln/")?_=_?.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_?.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===m||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,M.DY)()),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.ar)()),this.store.dispatch((0,M.pL)()),this.store.dispatch((0,M.Gy)()),this.store.dispatch((0,M.tf)()),this.store.dispatch((0,M.yp)()),this.store.dispatch((0,M.CK)({payload:{max_payments:1e5,reversed:!0}})),this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))}handleErrorWithoutAlert(s,m,u,_){this.logger.error("ERROR IN: "+s+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.ri)({payload:"Authentication Failed: "+JSON.stringify(_.error)}))):(this.store.dispatch((0,F.y0)({payload:m})),this.store.dispatch((0,M.e8)({payload:{action:s,status:f.wn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(s,m,u,_,T){if(this.logger.error(T),401===T.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.ri)({payload:"Authentication Failed: "+JSON.stringify(T.error)}));else{this.store.dispatch((0,F.y0)({payload:m}));const P=this.commonService.extractErrorMessage(T);this.store.dispatch((0,F.xO)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:T.status,message:P,URL:_},component:w.f}}})),this.store.dispatch((0,M.e8)({payload:{action:s,status:f.wn.ERROR,statusCode:T.status.toString(),message:P,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(s=>{s.next(null),s.complete()})}static#e=Ee=()=>(this.\u0275fac=function(m){return new(m||L)(j.KVO(i.En),j.KVO(Z.Qq),j.KVO(ee.il),j.KVO(V.gP),j.KVO(Q.h),j.KVO($.Q),j.KVO(ie.bZ),j.KVO(_e.Ix),j.KVO(ye.I),j.KVO(se.aZ))},this.\u0275prov=j.jDH({token:L,factory:L.\u0275fac}))}return Ee(),L})()},63536(ke,q,l){"use strict";l.d(q,{$7:()=>ee,$G:()=>p,BM:()=>M,Bw:()=>Z,Ie:()=>A,KT:()=>h,Uv:()=>j,ah:()=>Q,eO:()=>_e,gN:()=>f,gj:()=>ye,n_:()=>ie,oR:()=>d,os:()=>w,pI:()=>D,rN:()=>F,ru:()=>e,tA:()=>$});var i=l(59640);const g=(0,i.UX)("lnd"),p=(0,i.Mz)(g,se=>({pageSettings:se.pageSettings,apiCallStatus:se.apisCallStatus.FetchPageSettings})),D=(0,i.Mz)(g,se=>se.information),e=((0,i.Mz)(g,se=>({information:se.information,apiCallStatus:se.apisCallStatus.FetchInfo})),(0,i.Mz)(g,se=>se.apisCallStatus)),A=(0,i.Mz)(g,se=>({forwardingHistory:se.forwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistory})),h=(0,i.Mz)(g,se=>({listPayments:se.listPayments,apiCallStatus:se.apisCallStatus.FetchPayments})),d=(0,i.Mz)(g,se=>({fees:se.fees,apiCallStatus:se.apisCallStatus.FetchFees})),w=(0,i.Mz)(g,se=>({peers:se.peers,apiCallStatus:se.apisCallStatus.FetchPeers})),f=(0,i.Mz)(g,se=>({transactions:se.transactions,apiCallStatus:se.apisCallStatus.FetchTransactions})),F=(0,i.Mz)(g,se=>({listInvoices:se.listInvoices,apiCallStatus:se.apisCallStatus.FetchInvoices})),M=(0,i.Mz)(g,se=>({channels:se.channels,channelsSummary:se.channelsSummary,lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),j=((0,i.Mz)(g,se=>({channelsSummary:se.channelsSummary,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,i.Mz)(g,se=>({pendingChannels:se.pendingChannels,pendingChannelsSummary:se.pendingChannelsSummary,apiCallStatus:se.apisCallStatus.FetchPendingChannels}))),Z=(0,i.Mz)(g,se=>({closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchClosedChannels})),ee=(0,i.Mz)(g,se=>({blockchainBalance:se.blockchainBalance,apiCallStatus:se.apisCallStatus.FetchBalanceBlockchain})),Q=((0,i.Mz)(g,se=>({lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,i.Mz)(g,se=>({utxos:se.utxos,apiCallStatus:se.apisCallStatus.FetchUTXOs}))),$=(0,i.Mz)(g,se=>({networkInfo:se.networkInfo,apiCallStatus:se.apisCallStatus.FetchNetwork})),ie=(0,i.Mz)(g,se=>({allLightningTransactions:se.allLightningTransactions,apiCallStatus:se.apisCallStatus.FetchLightningTransactions})),_e=(0,i.Mz)(g,se=>({channels:se.channels,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels})),ye=(0,i.Mz)(g,se=>({information:se.information,apiCallStatus:se.apisCallStatus.FetchInfo}))},46391(ke,q,l){"use strict";l.d(q,{H:()=>qt});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(63536),A=l(2615),h=l(73664),d=l(98570),w=l(82571),f=l(95416),F=l(59640),M=l(72200),K=l(20060),j=l(88834),Z=l(25596),ee=l(9454),V=l(12629),Q=l(71997),$=l(9183),ie=l(52920),_e=l(16038),ye=l(40455),se=l(38288),pe=l(29157),Ee=l(89587);const L=["scrollContainer"],t=S=>({"display-none":S}),s=S=>({"xs-scroll-y":S}),m=S=>({"h-50":S}),u=()=>[],_=S=>({"mr-0":S});function T(S,Xt){if(1&S&&h.nrm(0,"qr-code",33),2&S){const de=h.XpG();h.Y8G("value",null==de.invoice?null:de.invoice.payment_request)("size",de.qrWidth)}}function P(S,Xt){1&S&&(h.j41(0,"span",34),h.EFF(1,"N/A"),h.k0s())}function C(S,Xt){if(1&S&&h.nrm(0,"qr-code",33),2&S){const de=h.XpG();h.Y8G("value",null==de.invoice?null:de.invoice.payment_request)("size",de.qrWidth)}}function a(S,Xt){1&S&&(h.j41(0,"span",35),h.EFF(1,"QR Code Not Applicable"),h.k0s())}function x(S,Xt){1&S&&h.nrm(0,"mat-divider",24),2&S&&h.Y8G("inset",!0)}function Y(S,Xt){1&S&&(h.qex(0),h.EFF(1," (zero amount) "),h.bVm())}function R(S,Xt){1&S&&h.nrm(0,"span",41)}function U(S,Xt){if(1&S&&(h.j41(0,"div",37)(1,"div",38)(2,"span",39),h.EFF(3),h.nI1(4,"number"),h.k0s(),h.DNE(5,R,1,0,"span",40),h.k0s()()),2&S){const de=h.XpG(2);h.R7$(3),h.SpI("",h.bMT(4,2,null==de.invoice?null:de.invoice.amt_paid_sat)," Sats"),h.R7$(2),h.Y8G("ngForOf",h.lJ4(4,u).constructor(35))}}function fe(S,Xt){if(1&S&&(h.j41(0,"div"),h.EFF(1),h.nI1(2,"number"),h.k0s()),2&S){const de=h.XpG(2);h.R7$(),h.SpI("",h.bMT(2,1,null==de.invoice?null:de.invoice.amt_paid_sat)," Sats")}}function re(S,Xt){if(1&S&&(h.qex(0),h.DNE(1,U,6,5,"div",36)(2,fe,3,3,"div",23),h.bVm()),2&S){const de=h.XpG();h.R7$(),h.Y8G("ngIf",de.flgInvoicePaid),h.R7$(),h.Y8G("ngIf",!de.flgInvoicePaid)}}function he(S,Xt){1&S&&(h.j41(0,"span"),h.EFF(1,"-"),h.k0s())}function Oe(S,Xt){1&S&&h.nrm(0,"mat-spinner",43),2&S&&h.Y8G("diameter",20)}function ge(S,Xt){if(1&S&&(h.qex(0),h.DNE(1,he,2,0,"span",23)(2,Oe,1,1,"mat-spinner",42),h.bVm()),2&S){const de=h.XpG();h.R7$(),h.Y8G("ngIf","OPEN"!==(null==de.invoice?null:de.invoice.state)||!de.flgVersionCompatible),h.R7$(),h.Y8G("ngIf","OPEN"===(null==de.invoice?null:de.invoice.state)&&de.flgVersionCompatible)}}function ce(S,Xt){1&S&&h.eu8(0)}function Re(S,Xt){if(1&S&&(h.j41(0,"div"),h.DNE(1,ce,1,0,"ng-container",44),h.k0s()),2&S){h.XpG();const de=h.sdS(79);h.R7$(),h.Y8G("ngTemplateOutlet",de)}}function Me(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"div",45)(1,"button",46),h.bIt("click",function(){A.eBV(de);const me=h.XpG();return A.Njj(me.onScrollDown())}),h.j41(2,"mat-icon",47),h.EFF(3,"arrow_downward"),h.k0s()()()}}function ve(S,Xt){1&S&&(h.j41(0,"p"),h.EFF(1,"Show Advanced"),h.k0s())}function oe(S,Xt){1&S&&(h.j41(0,"p"),h.EFF(1,"Hide Advanced"),h.k0s())}function Se(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"button",48),h.bIt("copied",function(me){A.eBV(de);const Le=h.XpG();return A.Njj(Le.onCopyPayment(me))}),h.EFF(1),h.k0s()}if(2&S){const de=h.XpG();h.Y8G("payload",null==de.invoice?null:de.invoice.payment_request),h.R7$(),h.JRh(de.screenSize===de.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function be(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"button",49),h.bIt("click",function(){A.eBV(de);const me=h.XpG();return A.Njj(me.onClose())}),h.EFF(1,"OK"),h.k0s()}}function nt(S,Xt){if(1&S&&h.nrm(0,"span",64),2&S){const de=h.XpG(4);h.Y8G("ngClass",h.eq3(1,_,de.screenSize===de.screenSizeEnum.XS))}}function $e(S,Xt){if(1&S&&h.nrm(0,"span",65),2&S){const de=h.XpG(4);h.Y8G("ngClass",h.eq3(1,_,de.screenSize===de.screenSizeEnum.XS))}}function dt(S,Xt){if(1&S&&h.nrm(0,"span",66),2&S){const de=h.XpG(4);h.Y8G("ngClass",h.eq3(1,_,de.screenSize===de.screenSizeEnum.XS))}}function yt(S,Xt){if(1&S&&(h.j41(0,"div",53)(1,"div",58)(2,"span",59),h.DNE(3,nt,1,3,"span",60)(4,$e,1,3,"span",61)(5,dt,1,3,"span",62),h.EFF(6),h.k0s(),h.j41(7,"span",63),h.EFF(8),h.nI1(9,"number"),h.k0s()(),h.nrm(10,"mat-divider",24),h.k0s()),2&S){const de=Xt.$implicit,ae=h.XpG(3);h.R7$(3),h.Y8G("ngIf","SETTLED"===de.state),h.R7$(),h.Y8G("ngIf","ACCEPTED"===de.state),h.R7$(),h.Y8G("ngIf","CANCELED"===de.state),h.R7$(),h.SpI(" ",de.chan_id," "),h.R7$(2),h.JRh(h.i5U(9,6,+de.amt_msat/1e3||0,ae.getDecimalFormat(de))),h.R7$(2),h.Y8G("inset",!0)}}function Et(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"div",19)(1,"mat-expansion-panel",51),h.bIt("opened",function(){A.eBV(de);const me=h.XpG(2);return A.Njj(me.flgOpened=!0)})("closed",function(){A.eBV(de);const me=h.XpG(2);return A.Njj(me.onExpansionClosed())}),h.j41(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),h.EFF(5,"HTLCs"),h.k0s()()(),h.j41(6,"div",53)(7,"div",54)(8,"span",55),h.EFF(9,"Channel ID"),h.k0s(),h.j41(10,"span",56),h.EFF(11,"Amount (Sats)"),h.k0s()(),h.nrm(12,"mat-divider",24),h.DNE(13,yt,11,9,"div",57),h.k0s()()()}if(2&S){const de=h.XpG(2);h.R7$(12),h.Y8G("inset",!0),h.R7$(),h.Y8G("ngForOf",null==de.invoice?null:de.invoice.htlcs)}}function rt(S,Xt){1&S&&h.nrm(0,"mat-divider",24),2&S&&h.Y8G("inset",!0)}function Mn(S,Xt){if(1&S&&(h.nrm(0,"mat-divider",24),h.j41(1,"div",19)(2,"div",25)(3,"h4",21),h.EFF(4,"Preimage"),h.k0s(),h.j41(5,"span",26),h.EFF(6),h.k0s()()(),h.nrm(7,"mat-divider",24),h.j41(8,"div",19)(9,"div",20)(10,"h4",21),h.EFF(11,"State"),h.k0s(),h.j41(12,"span",26),h.EFF(13),h.k0s()(),h.j41(14,"div",20)(15,"h4",21),h.EFF(16,"Expiry"),h.k0s(),h.j41(17,"span",26),h.EFF(18),h.nI1(19,"date"),h.k0s()()(),h.nrm(20,"mat-divider",24),h.j41(21,"div",19)(22,"div",20)(23,"h4",21),h.EFF(24,"Private Routing Hints"),h.k0s(),h.j41(25,"span",26),h.EFF(26),h.k0s()(),h.j41(27,"div",20)(28,"h4",21),h.EFF(29,"AMP Invoice"),h.k0s(),h.j41(30,"span",26),h.EFF(31),h.k0s()()(),h.nrm(32,"mat-divider",24),h.DNE(33,Et,14,2,"div",50)(34,rt,1,1,"mat-divider",17)),2&S){const de=h.XpG();h.Y8G("inset",!0),h.R7$(6),h.JRh((null==de.invoice?null:de.invoice.r_preimage)||"-"),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh(null==de.invoice?null:de.invoice.state),h.R7$(5),h.JRh(h.i5U(19,11,1e3*(+(null==de.invoice?null:de.invoice.creation_date)+ +(null==de.invoice?null:de.invoice.expiry)),"dd/MMM/y HH:mm")),h.R7$(2),h.Y8G("inset",!0),h.R7$(6),h.JRh(null!=de.invoice&&de.invoice.private?"Yes":"No"),h.R7$(5),h.JRh(null!=de.invoice&&de.invoice.is_amp?"Yes":"No"),h.R7$(),h.Y8G("inset",!0),h.R7$(),h.Y8G("ngIf",(null==de.invoice?null:de.invoice.htlcs)&&(null==de.invoice?null:de.invoice.htlcs.length)>0),h.R7$(),h.Y8G("ngIf",(null==de.invoice?null:de.invoice.htlcs)&&(null==de.invoice?null:de.invoice.htlcs.length)>0)}}let qt=(()=>{var S;class Xt{set container(ae){ae&&(this.scrollContainer=ae)}constructor(ae,me,Le,et,tn,Vt){this.dialogRef=ae,this.data=me,this.logger=Le,this.commonService=et,this.snackBar=tn,this.store=Vt,this.faReceipt=g.Mf0,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.store.select(e.pI).pipe((0,D.Q)(this.unSubs[0])).subscribe(me=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(me.version,"0.11.0")});const ae=JSON.parse(JSON.stringify(this.invoice));this.store.select(e.rN).pipe((0,D.Q)(this.unSubs[1])).subscribe(me=>{const Le=this.invoice?.state,tn=(me.listInvoices.invoices||[]).find(Vt=>Vt.r_hash===ae.r_hash)||null;tn&&(this.invoice=tn),Le!==this.invoice?.state&&"SETTLED"===this.invoice?.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(me)})}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(ae){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+ae)}getDecimalFormat(ae){return ae.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(ae=>{ae.next(null),ae.complete()})}static#e=S=()=>(this.\u0275fac=function(me){return new(me||Xt)(h.rXU(i.CP),h.rXU(i.Vh),h.rXU(d.gP),h.rXU(w.h),h.rXU(f.UG),h.rXU(F.il))},this.\u0275cmp=h.VBU({type:Xt,selectors:[["rtl-invoice-information"]],viewQuery:function(me,Le){if(1&me&&h.GBs(L,5),2&me){let et;h.mGM(et=h.lsd())&&(Le.container=et.first)}},standalone:!1,decls:80,vars:49,consts:[["scrollContainer",""],["hideAdvancedText",""],["advancedBlock",""],["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"],["errorCorrectionLevel","L",3,"value","size",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 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"],["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"],["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"],["errorCorrectionLevel","L",3,"value","size"],[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,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["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(me,Le){if(1&me){const et=h.RV6();h.j41(0,"div",3)(1,"div",4),h.DNE(2,T,1,2,"qr-code",5)(3,P,2,0,"span",6),h.k0s(),h.j41(4,"div",7)(5,"mat-card-header",8)(6,"div",9),h.nrm(7,"fa-icon",10),h.j41(8,"span",11),h.EFF(9),h.k0s()(),h.j41(10,"button",12),h.bIt("click",function(){return A.eBV(et),A.Njj(Le.onClose())}),h.EFF(11,"X"),h.k0s()(),h.j41(12,"mat-card-content",13)(13,"div",14)(14,"div",15),h.DNE(15,C,1,2,"qr-code",5)(16,a,2,0,"span",16),h.k0s(),h.DNE(17,x,1,1,"mat-divider",17),h.j41(18,"div",18,0)(20,"div",19)(21,"div",20)(22,"h4",21),h.EFF(23),h.k0s(),h.j41(24,"span",22),h.EFF(25),h.nI1(26,"number"),h.DNE(27,Y,2,0,"ng-container",23),h.k0s()(),h.j41(28,"div",20)(29,"h4",21),h.EFF(30,"Amount Settled"),h.k0s(),h.j41(31,"span",22),h.DNE(32,re,3,2,"ng-container",23)(33,ge,3,2,"ng-container",23),h.k0s()()(),h.nrm(34,"mat-divider",24),h.j41(35,"div",19)(36,"div",20)(37,"h4",21),h.EFF(38,"Date Created"),h.k0s(),h.j41(39,"span",22),h.EFF(40),h.nI1(41,"date"),h.k0s()(),h.j41(42,"div",20)(43,"h4",21),h.EFF(44,"Date Settled"),h.k0s(),h.j41(45,"span",22),h.EFF(46),h.nI1(47,"date"),h.k0s()()(),h.nrm(48,"mat-divider",24),h.j41(49,"div",19)(50,"div",25)(51,"h4",21),h.EFF(52,"Memo"),h.k0s(),h.j41(53,"span",22),h.EFF(54),h.k0s()()(),h.nrm(55,"mat-divider",24),h.j41(56,"div",19)(57,"div",25)(58,"h4",21),h.EFF(59,"Payment Request"),h.k0s(),h.j41(60,"span",26),h.EFF(61),h.k0s()()(),h.nrm(62,"mat-divider",24),h.j41(63,"div",19)(64,"div",25)(65,"h4",21),h.EFF(66,"Payment Hash"),h.k0s(),h.j41(67,"span",26),h.EFF(68),h.k0s()()(),h.DNE(69,Re,2,1,"div",23),h.k0s()()(),h.DNE(70,Me,4,0,"div",27),h.j41(71,"div",28)(72,"button",29),h.bIt("click",function(){return A.eBV(et),A.Njj(Le.onShowAdvanced())}),h.DNE(73,ve,2,0,"p",30)(74,oe,2,0,"ng-template",null,1,h.C5r),h.k0s(),h.DNE(76,Se,2,2,"button",31)(77,be,2,0,"button",32),h.k0s()()(),h.DNE(78,Mn,35,14,"ng-template",null,2,h.C5r)}if(2&me){const et=h.sdS(75);h.R7$(),h.Y8G("fxLayoutAlign",null!=Le.invoice&&Le.invoice.payment_request&&""!==(null==Le.invoice?null:Le.invoice.payment_request)?"center start":"center center")("ngClass",h.eq3(41,t,Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(4),h.Y8G("icon",Le.faReceipt),h.R7$(2),h.JRh(Le.screenSize===Le.screenSizeEnum.XS?Le.newlyAdded?"Created":"Invoice":Le.newlyAdded?"Invoice Created":"Invoice Information"),h.R7$(3),h.Y8G("ngClass",h.eq3(43,s,Le.screenSize===Le.screenSizeEnum.XS)),h.R7$(2),h.Y8G("fxLayoutAlign",null!=Le.invoice&&Le.invoice.payment_request&&""!==(null==Le.invoice?null:Le.invoice.payment_request)?"center start":"center center")("ngClass",h.eq3(45,t,Le.screenSize!==Le.screenSizeEnum.XS&&Le.screenSize!==Le.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM),h.R7$(),h.Y8G("ngClass",h.eq3(47,m,(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0&&Le.showAdvanced)),h.R7$(5),h.JRh(Le.screenSize===Le.screenSizeEnum.XS?"Amount":"Amount Requested"),h.R7$(2),h.SpI("",h.bMT(26,33,(null==Le.invoice?null:Le.invoice.value)||0)," Sats"),h.R7$(2),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.value)||"0"===(null==Le.invoice?null:Le.invoice.value)),h.R7$(5),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.amt_paid_sat)&&"OPEN"!==(null==Le.invoice?null:Le.invoice.state)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.amt_paid_sat)||"0"===(null==Le.invoice?null:Le.invoice.amt_paid_sat)),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh(h.i5U(41,35,1e3*(null==Le.invoice?null:Le.invoice.creation_date),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(0!=+(null==Le.invoice?null:Le.invoice.settle_date)?h.i5U(47,38,1e3*+(null==Le.invoice?null:Le.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),h.R7$(2),h.Y8G("inset",!0),h.R7$(6),h.JRh(null==Le.invoice?null:Le.invoice.memo),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh((null==Le.invoice?null:Le.invoice.payment_request)||"N/A"),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh((null==Le.invoice?null:Le.invoice.r_hash)||""),h.R7$(),h.Y8G("ngIf",Le.showAdvanced),h.R7$(),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0&&Le.showAdvanced&&Le.flgOpened),h.R7$(3),h.Y8G("ngIf",!Le.showAdvanced)("ngIfElse",et),h.R7$(3),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request))}},dependencies:[M.YU,M.Sq,M.bT,M.T3,K.aY,j.$z,j.$0,Z.m2,Z.MM,ee.GK,ee.Z2,ee.WN,V.An,Q.q,$.LG,ie.DJ,ie.sA,ie.UI,_e.PW,ye.oV,se.Um,pe.U,Ee.N,M.QX,M.vh],encapsulation:2}))}return S(),Xt})()},1001(ke,q,l){"use strict";l.d(q,{C:()=>g,q:()=>p});var i=l(11514);const g=[(0,i.hZ)("opacityAnimation",[(0,i.kY)(":enter",[(0,i.iF)({opacity:0}),(0,i.i0)("1000ms ease-in",(0,i.iF)({opacity:1}))]),(0,i.kY)(":leave",[(0,i.i0)("0ms",(0,i.iF)({opacity:0}))])])],p=[(0,i.hZ)("fadeIn",[(0,i.kY)("void => *",[]),(0,i.kY)("* => void",[]),(0,i.kY)("* => *",[(0,i.i0)(800,(0,i.i7)([(0,i.iF)({opacity:0,transform:"translateY(100%)"}),(0,i.iF)({opacity:1,transform:"translateY(0%)"})]))])])]},9881(ke,q,l){"use strict";l.d(q,{E:()=>g});var i=l(11514);const g=(0,i.hZ)("routeAnimation",[(0,i.kY)("* => *",[(0,i.P)(":enter, :leave",(0,i.iF)({position:"fixed",width:"100%"}),{optional:!0}),(0,i.Os)([(0,i.P)(":enter",[(0,i.iF)({transform:"translateX(100%)"}),(0,i.i0)("1000ms ease-in-out",(0,i.iF)({transform:"translateX(0%)"}))],{optional:!0}),(0,i.P)(":leave",[(0,i.iF)({transform:"translateX(0%)"}),(0,i.i0)("1000ms ease-in-out",(0,i.iF)({transform:"translateX(-100%)"}))],{optional:!0})])])])},16949(ke,q,l){"use strict";l.d(q,{k:()=>g});var i=l(11514);const g=[(0,i.hZ)("sliderAnimation",[(0,i.wk)("*",(0,i.iF)({transform:"translateX(0)"})),(0,i.kY)("void => backward",[(0,i.iF)({transform:"translateX(-100%"}),(0,i.i0)("800ms")]),(0,i.kY)("backward => void",[(0,i.i0)("0ms",(0,i.iF)({transform:"translateX(100%)"}))]),(0,i.kY)("void => forward",[(0,i.iF)({transform:"translateX(100%"}),(0,i.i0)("800ms")]),(0,i.kY)("forward => void",[(0,i.i0)("0ms",(0,i.iF)({transform:"translateX(-100%)"}))])])]},12462(ke,q,l){"use strict";l.d(q,{f:()=>f});var i=l(51585),g=l(73664),p=l(98570),D=l(72200),o=l(88834),e=l(25596),A=l(71997),h=l(52920),d=l(89587);function w(F,M){if(1&F&&(g.j41(0,"p",14),g.EFF(1),g.k0s()),2&F){const K=g.XpG();g.R7$(),g.JRh(K.data.titleMessage)}}let f=(()=>{var F;class M{constructor(j,Z,ee){this.dialogRef=j,this.data=Z,this.logger=ee,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)}static#e=F=()=>(this.\u0275fac=function(Z){return new(Z||M)(g.rXU(i.CP),g.rXU(i.Vh),g.rXU(p.gP))},this.\u0275cmp=g.VBU({type:M,selectors:[["rtl-error-message"]],standalone:!1,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 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(Z,ee){1&Z&&(g.j41(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),g.EFF(5),g.k0s()(),g.j41(6,"button",5),g.bIt("click",function(){return ee.onClose()}),g.EFF(7,"X"),g.k0s()(),g.j41(8,"mat-card-content",6)(9,"div",7),g.DNE(10,w,2,1,"p",8),g.j41(11,"h4",9),g.EFF(12,"Error Code"),g.k0s(),g.j41(13,"span"),g.EFF(14),g.k0s(),g.nrm(15,"mat-divider",10),g.j41(16,"h4",9),g.EFF(17,"Error Message"),g.k0s(),g.j41(18,"span",11),g.EFF(19),g.k0s(),g.nrm(20,"mat-divider",10),g.j41(21,"h4",9),g.EFF(22,"API URL"),g.k0s(),g.j41(23,"span",11),g.EFF(24),g.k0s(),g.nrm(25,"mat-divider",10),g.j41(26,"div",12)(27,"button",13),g.EFF(28,"OK"),g.k0s()()()()()()),2&Z&&(g.R7$(5),g.JRh(ee.data.alertTitle||"ERROR"),g.R7$(5),g.Y8G("ngIf",ee.data.titleMessage),g.R7$(4),g.JRh(ee.data.message.code),g.R7$(5),g.JRh(ee.errorMessage),g.R7$(5),g.JRh(ee.data.message.URL),g.R7$(3),g.Y8G("mat-dialog-close",!1))},dependencies:[D.bT,i.tx,o.$z,e.m2,e.MM,A.q,h.DJ,h.sA,h.UI,d.N],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}))}return F(),M})()},1092(ke,q,l){"use strict";l.d(q,{D:()=>kt});var i=l(89417),g=l(21413),p=l(56977),D=l(51585),o=l(45383),e=l(1001),A=l(4416),h=l(63536),d=l(73664),w=l(2615),f=l(59640),F=l(4104),M=l(72200),K=l(98570),j=l(43694),Z=l(82571),ee=l(88834),V=l(25596),Q=l(9454),$=l(12629),ie=l(33746),_e=l(69588),ye=l(67575),se=l(5951),pe=l(52920),Ee=l(16038),L=l(30450),t=l(40455),s=l(36013),m=l(89587),u=l(71997);const _=Ot=>({"h-5":Ot});function T(Ot,Ze){1&Ot&&d.eu8(0)}function P(Ot,Ze){1&Ot&&d.eu8(0)}function C(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),d.EFF(4),d.nI1(5,"number"),d.k0s()()(),d.DNE(6,P,1,0,"ng-container",2),d.k0s()),2&Ot){const Ge=d.XpG(),Pt=d.sdS(4);d.Y8G("expanded",Ge.panelExpanded)("ngClass",d.eq3(7,_,!Ge.flgShowPanel)),d.R7$(4),d.Lme("Quote for ",Ge.termCaption," amount (",d.bMT(5,5,Ge.quote.amount)," Sats)"),d.R7$(2),d.Y8G("ngTemplateOutlet",Pt)}}function a(Ot,Ze){if(1&Ot&&(d.j41(0,"div",19)(1,"h4",8),d.EFF(2," Prepay Amount (Sats) "),d.j41(3,"mat-icon",20),d.EFF(4,"info_outline"),d.k0s()(),d.j41(5,"span",10),d.EFF(6),d.nI1(7,"number"),d.k0s()()),2&Ot){const Ge=d.XpG(2);d.R7$(6),d.JRh(d.bMT(7,1,null==Ge.quote?null:Ge.quote.prepay_amt_sat))}}function x(Ot,Ze){1&Ot&&d.nrm(0,"mat-divider",13)}function Y(Ot,Ze){if(1&Ot&&(d.j41(0,"div",6)(1,"div",21)(2,"h4",8),d.EFF(3," Swap Server Node Pubkey "),d.j41(4,"mat-icon",22),d.EFF(5,"info_outline"),d.k0s()(),d.j41(6,"span",10),d.EFF(7),d.k0s()()()),2&Ot){const Ge=d.XpG(2);d.R7$(7),d.JRh(null==Ge.quote?null:Ge.quote.swap_payment_dest)}}function R(Ot,Ze){if(1&Ot&&(d.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),d.EFF(4," Swap Fee (Sats) "),d.j41(5,"mat-icon",9),d.EFF(6,"info_outline"),d.k0s()(),d.j41(7,"span",10),d.EFF(8),d.nI1(9,"number"),d.k0s()(),d.j41(10,"div",7)(11,"h4",8),d.EFF(12),d.j41(13,"mat-icon",11),d.EFF(14,"info_outline"),d.k0s()(),d.j41(15,"span",10),d.EFF(16),d.nI1(17,"number"),d.k0s()(),d.DNE(18,a,8,3,"div",12),d.k0s(),d.nrm(19,"mat-divider",13),d.j41(20,"div",6)(21,"div",14)(22,"h4",8),d.EFF(23," Max Off-chain Swap Routing Fee (Sats) "),d.j41(24,"mat-icon",15),d.EFF(25,"info_outline"),d.k0s()(),d.j41(26,"span",10),d.EFF(27),d.nI1(28,"number"),d.k0s()(),d.j41(29,"div",14)(30,"h4",8),d.EFF(31," Max Off-chain Prepay Routing Fee (Sats) "),d.j41(32,"mat-icon",16),d.EFF(33,"info_outline"),d.k0s()(),d.j41(34,"span",10),d.EFF(35,"36"),d.k0s()()(),d.DNE(36,x,1,0,"mat-divider",17)(37,Y,8,1,"div",18),d.k0s()),2&Ot){const Ge=d.XpG();d.R7$(2),d.Y8G("ngClass",null!=Ge.quote&&Ge.quote.prepay_amt_sat?"flex-30":"flex-50"),d.R7$(6),d.JRh(d.bMT(9,9,null==Ge.quote?null:Ge.quote.swap_fee_sat)),d.R7$(2),d.Y8G("ngClass",null!=Ge.quote&&Ge.quote.prepay_amt_sat?"flex-35":"flex-50"),d.R7$(2),d.SpI(" ",null!=Ge.quote&&Ge.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=Ge.quote&&Ge.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),d.R7$(4),d.JRh(d.bMT(17,11,null!=Ge.quote&&Ge.quote.htlc_sweep_fee_sat?Ge.quote.htlc_sweep_fee_sat:null!=Ge.quote&&Ge.quote.htlc_publish_fee_sat?Ge.quote.htlc_publish_fee_sat:0)),d.R7$(2),d.Y8G("ngIf",null==Ge.quote?null:Ge.quote.prepay_amt_sat),d.R7$(9),d.JRh(d.bMT(28,13,(null==Ge.quote?null:Ge.quote.amount)*((null!=Ge.quote&&Ge.quote.off_chain_swap_routing_fee_percentage?null==Ge.quote?null:Ge.quote.off_chain_swap_routing_fee_percentage:2)/100))),d.R7$(9),d.Y8G("ngIf",""!==(null==Ge.quote?null:Ge.quote.swap_payment_dest)),d.R7$(),d.Y8G("ngIf",""!==(null==Ge.quote?null:Ge.quote.swap_payment_dest))}}let U=(()=>{var Ot;class Ze{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},standalone:!1,decls:5,vars:1,consts:[["informationBlock",""],["quoteDetailsBlock",""],[4,"ngTemplateOutlet"],["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,"ngClass"],["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(Yt,bn){if(1&Yt&&d.DNE(0,T,1,0,"ng-container",2)(1,C,7,9,"ng-template",null,0,d.C5r)(3,R,38,15,"ng-template",null,1,d.C5r),2&Yt){const $n=d.sdS(2),oi=d.sdS(4);d.Y8G("ngTemplateOutlet",bn.showPanel?$n:oi)}},dependencies:[M.YU,M.bT,M.T3,Q.GK,Q.Z2,Q.WN,$.An,u.q,pe.DJ,pe.sA,pe.UI,Ee.PW,t.oV,M.QX],encapsulation:2}))}return Ot(),Ze})();function fe(Ot,Ze){1&Ot&&d.eu8(0)}function re(Ot,Ze){if(1&Ot&&(d.j41(0,"div",3)(1,"span",4),d.EFF(2),d.k0s()()),2&Ot){const Ge=d.XpG();d.R7$(2),d.JRh(null!=Ge.loopStatus&&Ge.loopStatus.error?null==Ge.loopStatus?null:Ge.loopStatus.error:"Unknown Error.")}}function he(Ot,Ze){if(1&Ot&&(d.j41(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),d.EFF(4,"ID"),d.k0s(),d.j41(5,"span",4),d.EFF(6),d.k0s()()(),d.nrm(7,"mat-divider",8),d.j41(8,"div",5)(9,"div",6)(10,"h4",7),d.EFF(11,"HTLC Address"),d.k0s(),d.j41(12,"span",4),d.EFF(13),d.k0s()()()()),2&Ot){const Ge=d.XpG();d.R7$(6),d.JRh(null==Ge.loopStatus?null:Ge.loopStatus.id_bytes),d.R7$(7),d.JRh(null==Ge.loopStatus?null:Ge.loopStatus.htlc_address)}}let Oe=(()=>{var Ot;class Ze{constructor(){}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},standalone:!1,decls:5,vars:1,consts:[["loopFailedBlock",""],["loopSuccessfulBlock",""],[4,"ngTemplateOutlet"],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(Yt,bn){if(1&Yt&&d.DNE(0,fe,1,0,"ng-container",2)(1,re,3,1,"ng-template",null,0,d.C5r)(3,he,14,2,"ng-template",null,1,d.C5r),2&Yt){const $n=d.sdS(2),oi=d.sdS(4);d.Y8G("ngTemplateOutlet",null!=bn.loopStatus&&bn.loopStatus.error?$n:oi)}},dependencies:[M.T3,u.q,pe.DJ,pe.sA,pe.UI],encapsulation:2}))}return Ot(),Ze})();var ge=l(16949);const ce=(Ot,Ze)=>({"small-svg":Ot,"large-svg":Ze});function Re(Ot,Ze){1&Ot&&d.eu8(0)}function Me(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",7)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d.nrm(8,"circle",12)(9,"path",13),d.k0s(),d.j41(10,"g",14),d.nrm(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),d.k0s()()()()(),w.joV(),d.j41(26,"div",30)(27,"mat-card-title"),d.EFF(28,"Loop In explained."),d.k0s()(),d.j41(29,"div",31)(30,"mat-card-subtitle",32),d.EFF(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function ve(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",33)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),d.nrm(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),d.k0s(),d.j41(28,"g",56)(29,"g",57)(30,"g",58),d.nrm(31,"path",59)(32,"rect",60)(33,"polygon",61),d.j41(34,"g",62),d.nrm(35,"path",63),d.k0s(),d.nrm(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),d.k0s(),d.j41(45,"g",73),d.nrm(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),d.k0s(),d.nrm(59,"path",87),d.k0s()()()()()(),w.joV(),d.j41(60,"div",30)(61,"mat-card-title"),d.EFF(62,"Step 1: Deciding to Loop In"),d.k0s()(),d.j41(63,"div",31)(64,"mat-card-subtitle",32),d.EFF(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function oe(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",88)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",89),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),d.nrm(14,"circle",95)(15,"path",96),d.j41(16,"g",97),d.nrm(17,"polygon",98)(18,"polygon",99)(19,"path",100),d.k0s(),d.j41(20,"g",101),d.nrm(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),d.j41(31,"g",112)(32,"g",113),d.nrm(33,"g",114),d.k0s(),d.nrm(34,"g",115),d.k0s()()(),d.j41(35,"g",116)(36,"g",40),d.nrm(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),d.k0s(),d.j41(53,"g",56)(54,"g",57)(55,"g",58),d.nrm(56,"path",59)(57,"rect",60)(58,"polygon",61),d.j41(59,"g",122),d.nrm(60,"path",63),d.k0s(),d.nrm(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),d.k0s(),d.j41(70,"g",73),d.nrm(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),d.k0s(),d.nrm(84,"path",139),d.k0s()()()(),d.nrm(85,"path",140)(86,"path",141),d.k0s()()()(),w.joV(),d.j41(87,"div",30)(88,"mat-card-title"),d.EFF(89,"Step 2: Send payment out"),d.k0s()(),d.j41(90,"div",31)(91,"mat-card-subtitle",32),d.EFF(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function Se(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",142)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),d.nrm(10,"circle",12)(11,"path",147),d.k0s(),d.j41(12,"g",14),d.nrm(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),d.k0s()(),d.j41(28,"g",149),d.nrm(29,"polygon",150)(30,"polygon",99)(31,"path",151),d.k0s(),d.j41(32,"g",152),d.nrm(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),d.j41(43,"g",112)(44,"g",113),d.nrm(45,"g",114),d.k0s(),d.nrm(46,"g",115),d.k0s()()(),d.nrm(47,"path",153),d.k0s()()()(),w.joV(),d.j41(48,"div",30)(49,"mat-card-title"),d.EFF(50,"Step 3: Recieve Funds Off-chain"),d.k0s()(),d.j41(51,"div",31)(52,"mat-card-subtitle",32),d.EFF(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function be(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",154)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),d.nrm(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),d.k0s(),d.j41(28,"g",172),d.nrm(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),d.k0s(),d.nrm(43,"path",187),d.k0s()(),d.nrm(44,"circle",188),d.k0s()()()(),w.joV(),d.j41(45,"div",30)(46,"mat-card-title"),d.EFF(47,"Done!"),d.k0s()(),d.j41(48,"div",31)(49,"mat-card-subtitle",32),d.EFF(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. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}let nt=(()=>{var Ot;class Ze{constructor(Pt){this.commonService=Pt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.bkB,this.screenSize="",this.screenSizeEnum=A.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Pt){2===Pt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Pt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)(d.rXU(Z.h))},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],[4,"ngTemplateOutlet"],["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(Yt,bn){if(1&Yt&&d.DNE(0,Re,1,0,"ng-container",5)(1,Me,32,5,"ng-template",null,0,d.C5r)(3,ve,66,5,"ng-template",null,1,d.C5r)(5,oe,93,5,"ng-template",null,2,d.C5r)(7,Se,54,5,"ng-template",null,3,d.C5r)(9,be,51,5,"ng-template",null,4,d.C5r),2&Yt){const $n=d.sdS(2),oi=d.sdS(4),Ii=d.sdS(6),Ei=d.sdS(8),Nt=d.sdS(10);d.Y8G("ngTemplateOutlet",1===bn.stepNumber?$n:2===bn.stepNumber?oi:3===bn.stepNumber?Ii:4===bn.stepNumber?Ei:Nt)}},dependencies:[M.YU,M.T3,V.Lc,V.dh,pe.DJ,pe.sA,pe.UI,Ee.PW],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:[ge.k]}}))}return Ot(),Ze})();const $e=(Ot,Ze)=>({"small-svg":Ot,"large-svg":Ze});function dt(Ot,Ze){1&Ot&&d.eu8(0)}function yt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",7)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d.nrm(8,"circle",12)(9,"path",13),d.k0s(),d.j41(10,"g",14),d.nrm(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),d.k0s()()()()(),w.joV(),d.j41(26,"div",30)(27,"mat-card-title"),d.EFF(28,"Loop Out explained."),d.k0s()(),d.j41(29,"div",31)(30,"mat-card-subtitle",32),d.EFF(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function Et(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",33)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),d.nrm(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),d.k0s(),d.j41(28,"g",56),d.nrm(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),d.k0s(),d.nrm(43,"path",71),d.k0s()(),d.nrm(44,"circle",72),d.k0s()()()(),w.joV(),d.j41(45,"div",30)(46,"mat-card-title"),d.EFF(47,"Step 1: Deciding to Loop Out"),d.k0s()(),d.j41(48,"div",31)(49,"mat-card-subtitle",32),d.EFF(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function rt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",73)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",74),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",75)(11,"g",76),d.nrm(12,"circle",77)(13,"path",78),d.j41(14,"g",79),d.nrm(15,"polygon",80)(16,"polygon",81)(17,"path",82),d.k0s(),d.j41(18,"g",83),d.nrm(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),d.j41(29,"g",94)(30,"g",95),d.nrm(31,"g",96),d.k0s(),d.nrm(32,"g",97),d.k0s(),d.nrm(33,"path",98),d.k0s(),d.j41(34,"g",99)(35,"g",41)(36,"g",42),d.nrm(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),d.k0s(),d.j41(52,"g",56),d.nrm(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),d.k0s(),d.nrm(67,"path",111),d.k0s()()()()()(),w.joV(),d.j41(68,"div",30)(69,"mat-card-title"),d.EFF(70,"Step 2: Send lightning payment"),d.k0s()(),d.j41(71,"div",31)(72,"mat-card-subtitle",32),d.EFF(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. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function Mn(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",112)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),d.nrm(9,"circle",12)(10,"path",117),d.k0s(),d.j41(11,"g",14),d.nrm(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),d.k0s()(),d.j41(27,"g",119),d.nrm(28,"polygon",80)(29,"polygon",120)(30,"path",82),d.k0s(),d.j41(31,"g",121),d.nrm(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),d.j41(42,"g",94)(43,"g",95),d.nrm(44,"g",96),d.k0s(),d.nrm(45,"g",97),d.k0s(),d.nrm(46,"path",123),d.k0s()()()()(),w.joV(),d.j41(47,"div",30)(48,"mat-card-title"),d.EFF(49,"Step 3: Receive funds back"),d.k0s()(),d.j41(50,"div",31)(51,"mat-card-subtitle",32),d.EFF(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function qt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",124)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),d.nrm(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),d.k0s(),d.j41(28,"g",142)(29,"g",143)(30,"g",144),d.nrm(31,"path",145)(32,"rect",146)(33,"polygon",147),d.j41(34,"g",148),d.nrm(35,"path",149),d.k0s(),d.nrm(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),d.k0s(),d.j41(45,"g",159),d.nrm(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),d.k0s(),d.nrm(59,"path",173),d.k0s()()()()()(),w.joV(),d.j41(60,"div",30)(61,"mat-card-title"),d.EFF(62,"Done!"),d.k0s()(),d.j41(63,"div",31)(64,"mat-card-subtitle",32),d.EFF(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. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}let S=(()=>{var Ot;class Ze{constructor(Pt){this.commonService=Pt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.bkB,this.screenSize="",this.screenSizeEnum=A.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Pt){2===Pt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Pt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)(d.rXU(Z.h))},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],[4,"ngTemplateOutlet"],["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(Yt,bn){if(1&Yt&&d.DNE(0,dt,1,0,"ng-container",5)(1,yt,32,5,"ng-template",null,0,d.C5r)(3,Et,51,5,"ng-template",null,1,d.C5r)(5,rt,74,5,"ng-template",null,2,d.C5r)(7,Mn,53,5,"ng-template",null,3,d.C5r)(9,qt,66,5,"ng-template",null,4,d.C5r),2&Yt){const $n=d.sdS(2),oi=d.sdS(4),Ii=d.sdS(6),Ei=d.sdS(8),Nt=d.sdS(10);d.Y8G("ngTemplateOutlet",1===bn.stepNumber?$n:2===bn.stepNumber?oi:3===bn.stepNumber?Ii:4===bn.stepNumber?Ei:Nt)}},dependencies:[M.YU,M.T3,V.Lc,V.dh,pe.DJ,pe.sA,pe.UI,Ee.PW],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:[ge.k]}}))}return Ot(),Ze})();const Xt=["stepper"],de=()=>[1,2,3,4,5],ae=(Ot,Ze)=>({"dot-primary":Ot,"dot-primary-lighter":Ze});function me(Ot,Ze){if(1&Ot&&(d.j41(0,"div",49)(1,"p",50)(2,"strong"),d.EFF(3,"Channel Peer:\xa0"),d.k0s(),d.EFF(4),d.nI1(5,"titlecase"),d.k0s(),d.j41(6,"p",51)(7,"strong"),d.EFF(8,"Channel ID:\xa0"),d.k0s(),d.EFF(9),d.k0s(),d.nrm(10,"p",51),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(4),d.JRh(d.bMT(5,2,Ge.channel.remote_alias)),d.R7$(5),d.JRh(Ge.channel.chan_id)}}function Le(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(2);d.JRh(Ge.inputFormLabel)}}function et(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Amount is required."),d.k0s())}function tn(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-error"),d.EFF(1),d.nI1(2,"number"),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.SpI("Amount must be greater than or equal to ",d.bMT(2,1,Ge.minQuote.amount),".")}}function Vt(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-error"),d.EFF(1),d.nI1(2,"number"),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.SpI("Amount must be less than or equal to ",d.bMT(2,1,Ge.maxQuote.amount),".")}}function hn(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Confirmation target is required."),d.k0s())}function En(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Confirmation target must be a positive number."),d.k0s())}function _n(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Percentage is required."),d.k0s())}function tt(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Percentage must be a positive number."),d.k0s())}function Fe(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-form-field",51)(1,"mat-label"),d.EFF(2,"Max Off-chain Routing Fee (%)"),d.k0s(),d.nrm(3,"input",52),d.DNE(4,_n,2,0,"mat-error",26)(5,tt,2,0,"mat-error",26),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(3),d.Y8G("step",1),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.routingFeePercent.errors?null:Ge.inputFormGroup.controls.routingFeePercent.errors.required),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.routingFeePercent.errors?null:Ge.inputFormGroup.controls.routingFeePercent.errors.min)}}function Pe(Ot,Ze){1&Ot&&(d.j41(0,"div",53)(1,"mat-slide-toggle",54),d.EFF(2,"Fast"),d.k0s(),d.j41(3,"mat-icon",55),d.EFF(4,"info_outline"),d.k0s()())}function Ue(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(2);d.JRh(Ge.quoteFormLabel)}}function Qe(Ot,Ze){1&Ot&&(d.j41(0,"p",56)(1,"mat-icon",57),d.EFF(2,"close"),d.k0s(),d.EFF(3,"Local balance amount is insufficient for swap."),d.k0s())}function Ie(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",58),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onValidateAmount())}),d.EFF(1,"Next"),d.k0s()}}function le(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",59),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onLoop())}),d.EFF(1),d.k0s()}if(2&Ot){const Ge=d.XpG(2);d.R7$(),d.SpI("Initiate ",Ge.loopDirectionCaption)}}function Ne(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(3);d.JRh(Ge.addressFormLabel)}}function ze(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Address is required."),d.k0s())}function Je(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"mat-step",16)(1,"form",17),d.DNE(2,Ne,1,1,"ng-template",18),d.j41(3,"div",60)(4,"mat-radio-group",61),d.bIt("change",function(Yt){w.eBV(Ge);const bn=d.XpG(2);return w.Njj(bn.onAddressTypeChange(Yt))}),d.j41(5,"mat-radio-button",62),d.EFF(6,"Node Local Address"),d.k0s(),d.j41(7,"mat-radio-button",63),d.EFF(8,"External Address"),d.k0s()(),d.j41(9,"mat-form-field",64)(10,"mat-label"),d.EFF(11,"Address"),d.k0s(),d.nrm(12,"input",65),d.DNE(13,ze,2,0,"mat-error",26),d.k0s()(),d.j41(14,"div",30)(15,"button",66),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onLoop())}),d.EFF(16),d.k0s()()()()}if(2&Ot){const Ge=d.XpG(2);d.Y8G("stepControl",Ge.addressFormGroup)("editable",Ge.flgEditable),d.R7$(),d.Y8G("formGroup",Ge.addressFormGroup),d.R7$(11),d.Y8G("required","external"===Ge.addressFormGroup.controls.addressType.value),d.R7$(),d.Y8G("ngIf",null==Ge.addressFormGroup.controls.address.errors?null:Ge.addressFormGroup.controls.address.errors.required),d.R7$(3),d.SpI("Initiate ",Ge.loopDirectionCaption)}}function gt(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(2);d.SpI("",Ge.loopDirectionCaption," Status")}}function zt(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-icon",67),d.EFF(1),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.JRh(Ge.loopStatus&&null!=Ge.loopStatus&&Ge.loopStatus.id_bytes?"check":"close")}}function Ye(Ot,Ze){1&Ot&&d.nrm(0,"div")}function st(Ot,Ze){1&Ot&&d.nrm(0,"mat-progress-bar",68)}function it(Ot,Ze){if(1&Ot&&(d.j41(0,"h4",69),d.EFF(1),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.JRh(Ge.loopStatus&&Ge.loopStatus.error?Ge.loopDirectionCaption+" failed.":Ge.loopStatus&&Ge.loopStatus.id_bytes&&Ge.channel?Ge.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":Ge.loopDirectionCaption+" request placed successfully.")}}function He(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",70),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.goToLoop())}),d.EFF(1,"Check Status"),d.k0s()}}function Wt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",71),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onRestart())}),d.EFF(1,"Start Again"),d.k0s()}}function we(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),d.EFF(5),d.k0s()(),d.j41(6,"div",9)(7,"button",10),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return w.Njj(Yt.showInfo())}),d.EFF(8,"?"),d.k0s(),d.j41(9,"button",11),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return w.Njj(Yt.onClose())}),d.EFF(10,"X"),d.k0s()()(),d.j41(11,"mat-card-content",12)(12,"div",13),d.DNE(13,me,11,4,"div",14),d.j41(14,"mat-vertical-stepper",15,1),d.bIt("selectionChange",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.stepSelectionChanged(Yt))}),d.j41(16,"mat-step",16)(17,"form",17),d.DNE(18,Le,1,1,"ng-template",18),d.j41(19,"div",19),d.nrm(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",21),d.k0s(),d.j41(22,"div",22)(23,"mat-form-field",23)(24,"mat-label"),d.EFF(25,"Amount"),d.k0s(),d.nrm(26,"input",24),d.j41(27,"mat-hint"),d.EFF(28),d.nI1(29,"number"),d.nI1(30,"number"),d.k0s(),d.j41(31,"span",25),d.EFF(32,"Sats"),d.k0s(),d.DNE(33,et,2,0,"mat-error",26)(34,tn,3,3,"mat-error",26)(35,Vt,3,3,"mat-error",26),d.k0s(),d.j41(36,"mat-form-field",23)(37,"mat-label"),d.EFF(38,"Sweep Confirmation Target"),d.k0s(),d.nrm(39,"input",27),d.DNE(40,hn,2,0,"mat-error",26)(41,En,2,0,"mat-error",26),d.k0s(),d.DNE(42,Fe,6,3,"mat-form-field",28),d.k0s(),d.DNE(43,Pe,5,0,"div",29),d.j41(44,"div",30)(45,"button",31),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return w.Njj(Yt.onEstimateQuote())}),d.EFF(46,"Estimate Quote"),d.k0s()()()(),d.j41(47,"mat-step",16)(48,"form",17),d.DNE(49,Ue,1,1,"ng-template",18),d.nrm(50,"rtl-loop-quote",32),d.DNE(51,Qe,4,0,"p",33),d.j41(52,"div",30),d.DNE(53,Ie,2,0,"button",34)(54,le,2,1,"button",35),d.k0s()()(),d.DNE(55,Je,17,6,"mat-step",36),d.j41(56,"mat-step",37)(57,"form",17),d.DNE(58,gt,1,1,"ng-template",18),d.j41(59,"div",38)(60,"mat-expansion-panel",39)(61,"mat-expansion-panel-header")(62,"mat-panel-title")(63,"span",40),d.EFF(64),d.DNE(65,zt,2,1,"mat-icon",41),d.k0s()()(),d.DNE(66,Ye,1,0,"div",42),d.k0s(),d.DNE(67,st,1,0,"mat-progress-bar",43),d.k0s(),d.DNE(68,it,2,1,"h4",44),d.j41(69,"div",30),d.DNE(70,He,2,0,"button",45)(71,Wt,2,0,"button",46),d.k0s()()()(),d.j41(72,"div",47)(73,"button",48),d.EFF(74,"Close"),d.k0s()()()()()()}if(2&Ot){const Ge=d.XpG(),Pt=d.sdS(2);d.Y8G("@opacityAnimation",void 0),d.R7$(3),d.Y8G("ngClass",Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM?"flex-83":"flex-91"),d.R7$(2),d.JRh(Ge.channel?"Channel "+Ge.loopDirectionCaption:Ge.loopDirectionCaption),d.R7$(),d.Y8G("ngClass",Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM?"flex-17":"flex-9"),d.R7$(7),d.Y8G("ngIf",Ge.channel),d.R7$(),d.Y8G("linear",!0),d.R7$(2),d.Y8G("stepControl",Ge.inputFormGroup)("editable",Ge.flgEditable),d.R7$(),d.Y8G("formGroup",Ge.inputFormGroup),d.R7$(3),d.Y8G("quote",Ge.minQuote)("panelExpanded",!1)("showPanel",!0),d.R7$(),d.Y8G("quote",Ge.maxQuote)("panelExpanded",!1)("showPanel",!0),d.R7$(2),d.Y8G("ngClass",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT?"flex-35":"flex-48"),d.R7$(3),d.Y8G("step",1e3),d.R7$(2),d.Lme("Range: ",d.bMT(29,49,Ge.minQuote.amount),"-",d.bMT(30,51,Ge.maxQuote.amount)),d.R7$(5),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.amount.errors?null:Ge.inputFormGroup.controls.amount.errors.required),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.amount.errors?null:Ge.inputFormGroup.controls.amount.errors.min),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.amount.errors?null:Ge.inputFormGroup.controls.amount.errors.max),d.R7$(),d.Y8G("ngClass",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT?"flex-30":"flex-48"),d.R7$(3),d.Y8G("step",1),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.sweepConfTarget.errors?null:Ge.inputFormGroup.controls.sweepConfTarget.errors.required),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.sweepConfTarget.errors?null:Ge.inputFormGroup.controls.sweepConfTarget.errors.min),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(4),d.Y8G("stepControl",Ge.quoteFormGroup)("editable",Ge.flgEditable),d.R7$(),d.Y8G("formGroup",Ge.quoteFormGroup),d.R7$(2),d.Y8G("quote",Ge.quote)("showPanel",!1),d.R7$(),d.Y8G("ngIf",Ge.inputFormGroup.controls.amount.value>Ge.localBalanceToCompare),d.R7$(2),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_IN),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("stepControl",Ge.statusFormGroup),d.R7$(),d.Y8G("formGroup",Ge.statusFormGroup),d.R7$(3),d.Y8G("expanded",!!Ge.loopStatus),d.R7$(4),d.JRh(Ge.loopStatus?Ge.loopStatus.id_bytes?Ge.loopDirectionCaption+" request details":Ge.loopDirectionCaption+" error details":"Waiting for "+Ge.loopDirectionCaption+" request..."),d.R7$(),d.Y8G("ngIf",Ge.loopStatus),d.R7$(),d.Y8G("ngIf",!Ge.loopStatus)("ngIfElse",Pt),d.R7$(),d.Y8G("ngIf",!Ge.loopStatus),d.R7$(),d.Y8G("ngIf",Ge.loopStatus),d.R7$(2),d.Y8G("ngIf",Ge.loopStatus&&Ge.loopStatus.id_bytes&&Ge.channel),d.R7$(),d.Y8G("ngIf",Ge.loopStatus&&(Ge.loopStatus.error||!Ge.loopStatus.id_bytes)),d.R7$(2),d.Y8G("mat-dialog-close",!1)}}function We(Ot,Ze){if(1&Ot&&d.nrm(0,"rtl-loop-status",72),2&Ot){const Ge=d.XpG();d.Y8G("loopStatus",Ge.loopStatus)}}function Lt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"rtl-loop-out-info-graphics",88),d.mxI("stepNumberChange",function(Yt){w.eBV(Ge);const bn=d.XpG(2);return d.DH7(bn.stepNumber,Yt)||(bn.stepNumber=Yt),w.Njj(Yt)}),d.k0s()}if(2&Ot){const Ge=d.XpG(2);d.Y8G("animationDirection",Ge.animationDirection),d.R50("stepNumber",Ge.stepNumber)}}function St(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"rtl-loop-in-info-graphics",88),d.mxI("stepNumberChange",function(Yt){w.eBV(Ge);const bn=d.XpG(2);return d.DH7(bn.stepNumber,Yt)||(bn.stepNumber=Yt),w.Njj(Yt)}),d.k0s()}if(2&Ot){const Ge=d.XpG(2);d.Y8G("animationDirection",Ge.animationDirection),d.R50("stepNumber",Ge.stepNumber)}}function At(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"span",89),d.bIt("click",function(){const Yt=w.eBV(Ge).$implicit,bn=d.XpG(2);return w.Njj(bn.onStepChanged(Yt))}),d.nrm(1,"p",90),d.k0s()}if(2&Ot){const Ge=Ze.$implicit,Pt=d.XpG(2);d.R7$(),d.Y8G("ngClass",d.l_i(1,ae,Pt.stepNumber===Ge,Pt.stepNumber!==Ge))}}function fn(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",91),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onReadMore())}),d.EFF(1,"Read More"),d.k0s()}}function mt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",92),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onStepChanged(4))}),d.EFF(1,"Back"),d.k0s()}}function It(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",93),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return Yt.flgShowInfo=!1,w.Njj(Yt.stepNumber=1)}),d.EFF(1,"Close"),d.k0s()}}function wn(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",94),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return Yt.flgShowInfo=!1,w.Njj(Yt.stepNumber=1)}),d.EFF(1,"Close"),d.k0s()}}function In(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",95),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onStepChanged(Yt.stepNumber-1))}),d.EFF(1,"Back"),d.k0s()}}function ei(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",96),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onStepChanged(Yt.stepNumber+1))}),d.EFF(1,"Next"),d.k0s()}}function Li(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",73)(1,"div",19)(2,"mat-card-header",74)(3,"div",75),d.nrm(4,"span",8),d.k0s(),d.j41(5,"div",76)(6,"button",11),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return Yt.flgShowInfo=!1,w.Njj(Yt.stepNumber=1)}),d.EFF(7,"X"),d.k0s()()(),d.j41(8,"mat-card-content",77),d.DNE(9,Lt,1,2,"rtl-loop-out-info-graphics",78)(10,St,1,2,"rtl-loop-in-info-graphics",78),d.k0s(),d.j41(11,"div",79),d.DNE(12,At,2,4,"span",80),d.k0s(),d.j41(13,"div",81),d.DNE(14,fn,2,0,"button",82)(15,mt,2,0,"button",83)(16,It,2,0,"button",84)(17,wn,2,0,"button",85)(18,In,2,0,"button",86)(19,ei,2,0,"button",87),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@opacityAnimation",void 0),d.R7$(9),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_IN),d.R7$(2),d.Y8G("ngForOf",d.lJ4(10,de)),d.R7$(2),d.Y8G("ngIf",5===Ge.stepNumber),d.R7$(),d.Y8G("ngIf",5===Ge.stepNumber),d.R7$(),d.Y8G("ngIf",5===Ge.stepNumber),d.R7$(),d.Y8G("ngIf",Ge.stepNumber<5),d.R7$(),d.Y8G("ngIf",Ge.stepNumber>1&&Ge.stepNumber<5),d.R7$(),d.Y8G("ngIf",Ge.stepNumber<5)}}let kt=(()=>{var Ot;class Ze{constructor(Pt,Yt,bn,$n,oi,Ii,Ei,Nt,nn){this.dialogRef=Pt,this.data=Yt,this.store=bn,this.loopService=$n,this.formBuilder=oi,this.decimalPipe=Ii,this.logger=Ei,this.router=Nt,this.commonService=nn,this.faInfoCircle=o.iW_,this.LoopTypeEnum=A.C7,this.direction=A.C7.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=A.f7,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}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||A.C7.LOOP_OUT,this.loopDirectionCaption=this.direction===A.C7.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[i.k0.required,i.k0.min(this.minQuote.amount||0),i.k0.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[i.k0.required,i.k0.min(1)]],routingFeePercent:[2,[i.k0.required,i.k0.min(0)]],fast:[!1,[i.k0.required]]}),this.inputFormGroup.setErrors({Invalid:!0}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[i.k0.required]],address:[{value:"",disabled:!0}]}),this.direction===A.C7.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(h.BM).pipe((0,p.Q)(this.unSubs[6])).subscribe(Pt=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:Pt.lightningBalance&&Pt.lightningBalance.local?+Pt.lightningBalance.local:null})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,p.Q)(this.unSubs[4])).subscribe(Pt=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===A.C7.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,p.Q)(this.unSubs[5])).subscribe(Pt=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(Pt){"external"===Pt.value?(this.addressFormGroup.controls.address.setValidators([i.k0.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(){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===A.C7.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===A.C7.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===A.C7.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,p.Q)(this.unSubs[0])).subscribe({next:Pt=>{this.loopStatus=Pt,this.loopService.listSwaps(),this.flgEditable=!0},error:Pt=>{this.loopStatus={error:Pt},this.flgEditable=!0,this.logger.error(Pt)}});else{const Pt=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),Yt="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",bn=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,Pt,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),bn,Yt).pipe((0,p.Q)(this.unSubs[1])).subscribe({next:$n=>{this.loopStatus=$n,this.loopService.listSwaps(),this.flgEditable=!0},error:$n=>{this.loopStatus={error:$n},this.flgEditable=!0,this.logger.error($n)}})}}onEstimateQuote(){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 Pt=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===A.C7.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Pt).pipe((0,p.Q)(this.unSubs[2])).subscribe(Yt=>{this.quote=Yt,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,Pt).pipe((0,p.Q)(this.unSubs[3])).subscribe(Yt=>{this.quote=Yt,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected?.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(Pt){switch(Pt.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===A.C7.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===A.C7.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===A.C7.LOOP_OUT&&1!==Pt.selectedIndex&&Pt.selectedIndex{Pt.next(null),Pt.complete()})}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)(d.rXU(D.CP),d.rXU(D.Vh),d.rXU(f.il),d.rXU(F.Q),d.rXU(i.ze),d.rXU(M.QX),d.rXU(K.gP),d.rXU(j.Ix),d.rXU(Z.h))},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-modal"]],viewQuery:function(Yt,bn){if(1&Yt&&d.GBs(Xt,5),2&Yt){let $n;d.mGM($n=d.lsd())&&(bn.stepper=$n.first)}},standalone:!1,decls:4,vars:2,consts:[["loopStatusBlock",""],["stepper",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["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,"ngClass"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"ngClass"],["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,"selectionChange","linear"],[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"],["termCaption","min",3,"quote","panelExpanded","showPanel"],["termCaption","max",3,"quote","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"ngClass"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","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","","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"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","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"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","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,"stepNumberChange","animationDirection","stepNumber"],["tabindex","21","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(Yt,bn){1&Yt&&d.DNE(0,we,75,53,"div",2)(1,We,1,1,"ng-template",null,0,d.C5r)(3,Li,20,11,"div",3),2&Yt&&(d.Y8G("ngIf",!bn.flgShowInfo),d.R7$(3),d.Y8G("ngIf",bn.flgShowInfo))},dependencies:[M.YU,M.Sq,M.bT,i.qT,i.me,i.Q0,i.BC,i.cb,i.YS,i.j4,i.JD,D.tx,ee.$z,V.m2,V.MM,Q.GK,Q.Z2,Q.WN,$.An,ie.fg,_e.rl,_e.nJ,_e.MV,_e.TL,_e.yw,ye.HM,se.VT,se._g,pe.DJ,pe.sA,pe.UI,Ee.PW,L.sG,t.oV,s.V5,s.Ti,s.M6,m.N,U,Oe,nt,S,M.QX,M.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[e.C]}}))}return Ot(),Ze})()},90013(ke,q,l){"use strict";l.d(q,{X:()=>h});var i=l(45383),g=l(73664),p=l(43694),D=l(20060),o=l(88834),e=l(25596),A=l(52920);let h=(()=>{var d;class w{constructor(F){this.router=F,this.faTimes=i.GRI}goToHelp(){this.router.navigate(["/help"])}static#e=d=()=>(this.\u0275fac=function(M){return new(M||w)(g.rXU(p.Ix))},this.\u0275cmp=g.VBU({type:w,selectors:[["rtl-not-found"]],standalone:!1,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(M,K){1&M&&(g.j41(0,"div",0),g.nrm(1,"fa-icon",1),g.j41(2,"span",2),g.EFF(3,"Page Not Found"),g.k0s()(),g.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),g.EFF(9,"This page does not exist!"),g.k0s(),g.j41(10,"span",7)(11,"button",8),g.bIt("click",function(){return K.goToHelp()}),g.EFF(12,"Go To Help"),g.k0s()()()()()()),2&M&&(g.R7$(),g.Y8G("icon",K.faTimes))},dependencies:[D.aY,o.$z,e.RN,e.m2,A.DJ,A.sA,A.UI],encapsulation:2}))}return d(),w})()},89587(ke,q,l){"use strict";l.d(q,{N:()=>g});var i=l(73664);let g=(()=>{var p;class D{constructor(e){this.el=e}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}static#e=p=()=>(this.\u0275fac=function(A){return new(A||D)(i.rXU(i.aKT))},this.\u0275dir=i.FsC({type:D,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"},standalone:!1}))}return p(),D})()},29157(ke,q,l){"use strict";l.d(q,{U:()=>g});var i=l(73664);let g=(()=>{var p;class D{constructor(){this.copied=new i.bkB}onClick(e){e.preventDefault(),this.payload&&(navigator.clipboard?this.copyUsingClipboardAPI():this.copyUsingFallbackMethod())}copyUsingFallbackMethod(){const e=document.createElement("textarea");e.value=this.payload,document.body.appendChild(e),e.select();try{document.execCommand("copy")?this.copied.emit(this.payload.toString()):this.copied.emit("Error could not copy text.")}finally{document.body.removeChild(e)}}copyUsingClipboardAPI(){navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())}).catch(e=>{this.copied.emit("Error could not copy text: "+JSON.stringify(e))})}static#e=p=()=>(this.\u0275fac=function(A){return new(A||D)},this.\u0275dir=i.FsC({type:D,selectors:[["","rtlClipboard",""]],hostBindings:function(A,h){1&A&&i.bIt("click",function(w){return h.onClick(w)})},inputs:{payload:"payload"},outputs:{copied:"copied"},standalone:!1}))}return p(),D})()},60092(ke,q,l){"use strict";l.d(q,{z:()=>p});var i=l(89417),g=l(73664);let p=(()=>{var D;class o{validate(A){return this.max?i.k0.max(+this.max)(A):null}static#e=D=()=>(this.\u0275fac=function(h){return new(h||o)},this.\u0275dir=g.FsC({type:o,selectors:[["input","max",""]],inputs:{max:"max"},standalone:!1,features:[g.Jv_([{provide:i.cz,useExisting:o,multi:!0}])]}))}return D(),o})()},56114(ke,q,l){"use strict";l.d(q,{V:()=>p});var i=l(89417),g=l(73664);let p=(()=>{var D;class o{validate(A){return this.min?i.k0.min(+this.min)(A):null}static#e=D=()=>(this.\u0275fac=function(h){return new(h||o)},this.\u0275dir=g.FsC({type:o,selectors:[["input","min",""]],inputs:{min:"min"},standalone:!1,features:[g.Jv_([{provide:i.cz,useExisting:o,multi:!0}])]}))}return D(),o})()},52929(ke,q,l){"use strict";l.d(q,{Qu:()=>D,VD:()=>o,ZE:()=>p,gZ:()=>g});var i=l(73664);let g=(()=>{var e;class A{transform(d,w){return d?.replace(/^[0]+/g,"")}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"removeleadingzeros",type:A,pure:!0,standalone:!1}))}return e(),A})(),p=(()=>{var e;class A{transform(d,w){return d?.replace(/(?:^\w|[A-Z]|\b\w)/g,(f,F)=>f.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"camelcase",type:A,pure:!0,standalone:!1}))}return e(),A})(),D=(()=>{var e;class A{transform(d,w,f){return d.replace(/(?:^\w|[A-Z]|\b\w)/g,(F,M)=>" "+F.toUpperCase())}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"camelCaseWithSpaces",type:A,pure:!0,standalone:!1}))}return e(),A})(),o=(()=>{var e;class A{transform(d,w,f){return d=d?d.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "):"",w&&(d=d.replace(new RegExp(w,"g")," ")),f&&(d=d.replace(new RegExp(f,"g")," ")),d.replace(/(?:^\w|[A-Z]|\b\w)/g,(F,M)=>F.toUpperCase())}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"camelcaseWithReplace",type:A,pure:!0,standalone:!1}))}return e(),A})()},17186(ke,q,l){"use strict";l.d(q,{Wz:()=>A,fe:()=>h,jn:()=>e,q_:()=>o});var i=l(2615),g=l(43694),p=l(53202),D=l(96354);function o(){return()=>{const d=(0,i.WQX)(g.Ix),w=(0,i.WQX)(g.nX),f=(0,i.WQX)(p.Q);return!(!f.getItem("token")||w.snapshot.url&&w.snapshot.url.length&&"settings"!==w.snapshot.url[0].path&&"auth"!==w.snapshot.url[0].path&&"true"===f.getItem("defaultPassword")&&(d.navigate(["/settings/auth"]),1))}}function e(){return()=>!!(0,i.WQX)(p.Q).watchSession().pipe((0,D.T)(w=>w.lndUnlocked))}function A(){return()=>!!(0,i.WQX)(p.Q).watchSession().pipe((0,D.T)(w=>w.clnUnlocked))}function h(){return()=>!!(0,i.WQX)(p.Q).watchSession().pipe((0,D.T)(w=>w.eclUnlocked))}},82571(ke,q,l){"use strict";l.d(q,{h:()=>K});var i=l(21413),g=l(84412),p=l(7673),D=l(18810),o=l(99437),e=l(25558),A=l(56977),h=l(4416),d=l(2615),w=l(51534),f=l(98570),F=l(72200),M=l(345);let K=(()=>{var j;class Z{constructor(V,Q,$,ie){this.dataService=V,this.logger=Q,this.datePipe=$,this.sanitizer=ie,this.currencyUnits=[],this.CurrencyUnitEnum=h.BQ,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=h.wn.UN_INITIATED,this.screenSize=h.f7.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new g.t(this.containerSize),this.unSubs=[new i.B,new i.B,new i.B]}getScreenSize(){return this.screenSize}setScreenSize(V){this.screenSize=V}getContainerSize(){return this.containerSize}setContainerSize(V,Q){this.containerSize={width:V,height:Q},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(V,Q,$,ie="asc"){return V.sort("number"===$?"desc"===ie?(_e,ye)=>+_e[Q]>+ye[Q]?-1:1:(_e,ye)=>+_e[Q]>+ye[Q]?1:-1:"desc"===ie?(_e,ye)=>_e[Q]>ye[Q]?-1:1:(_e,ye)=>_e[Q]>ye[Q]?1:-1)}sortDescByKey(V,Q){return V.sort(($,ie)=>{const _e=+$[Q],ye=+ie[Q];return _e>ye?-1:_e{const _e=+$[Q],ye=+ie[Q];return _eye?1:0})}camelCase(V){return V?.replace(/(?:^\w|[A-Z]|\b\w)/g,(Q,$)=>Q.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(V,Q,$){return Q&&$&&""!==Q&&""!==$&&(V=V?.replace(new RegExp(Q,"g"),$)),V.indexOf("!\n")>0||V.indexOf(".\n")>0?V.split("\n")?.reduce((ie,_e)=>ie+_e.charAt(0).toUpperCase()+_e.substring(1).toLowerCase()+"\n",""):V.indexOf(" ")>0?V.split(" ")?.reduce((ie,_e)=>ie+_e.charAt(0).toUpperCase()+_e.substring(1).toLowerCase()+" ",""):V.charAt(0).toUpperCase()+V.substring(1).toLowerCase()}convertCurrency(V,Q,$,ie,_e){const ye=(new Date).valueOf();try{return _e&&ie&&(Q===h.BQ.OTHER||$===h.BQ.OTHER)?this.ratesAPIStatus!==h.wn.INITIATED?this.conversionData.data&&this.conversionData.last_fetched&&ye(this.ratesAPIStatus=h.wn.COMPLETED,this.conversionData.data=se&&"object"==typeof se?se:se&&"string"==typeof se?JSON.parse(se):{},this.conversionData.last_fetched=ye,(0,p.of)(this.convertWithFiat(V,Q,ie)))),(0,o.W)(se=>(this.ratesAPIStatus=h.wn.ERROR,(0,D.$)(()=>"Currency Conversion Error."))))):(0,p.of)(this.conversionData.data&&this.conversionData.last_fetched&&ye"Currency Conversion Error.")}}convertWithoutFiat(V,Q){const $={};switch($[h.BQ.SATS]=0,$[h.BQ.BTC]=0,Q){case h.BQ.SATS:$[h.BQ.SATS]=V,$[h.BQ.BTC]=1e-8*V;break;case h.BQ.BTC:$[h.BQ.SATS]=1e8*V,$[h.BQ.BTC]=V}return $}convertWithFiat(V,Q,$){const ie={unit:$,iconType:"FA",symbol:null};if($){const _e=(0,h.Zo)(this.conversionData.data[$].symbol);ie.iconType=_e.iconType,ie.symbol=_e&&"SVG"===_e.iconType&&_e.symbol&&"string"==typeof _e.symbol?this.sanitizer.bypassSecurityTrustHtml(_e.symbol):_e.symbol}switch(ie[h.BQ.SATS]=0,ie[h.BQ.BTC]=0,ie[h.BQ.OTHER]=0,Q){case h.BQ.SATS:ie[h.BQ.SATS]=V,ie[h.BQ.BTC]=1e-8*V,ie[h.BQ.OTHER]=1e-8*V*this.conversionData.data[$].last;break;case h.BQ.BTC:ie[h.BQ.SATS]=1e8*V,ie[h.BQ.BTC]=V,ie[h.BQ.OTHER]=V*this.conversionData.data[$].last;break;case h.BQ.OTHER:ie[h.BQ.SATS]=V/this.conversionData.data[$].last*1e8,ie[h.BQ.BTC]=V/this.conversionData.data[$].last,ie[h.BQ.OTHER]=V}return ie}convertTime(V,Q,$){switch(Q){case h.F7.SECS:switch($){case h.F7.MINS:V/=60;break;case h.F7.HOURS:V/=h.bz;break;case h.F7.DAYS:V/=24*h.bz}break;case h.F7.MINS:switch($){case h.F7.SECS:V*=60;break;case h.F7.HOURS:V/=60;break;case h.F7.DAYS:V/=1440}break;case h.F7.HOURS:switch($){case h.F7.SECS:V*=h.bz;break;case h.F7.MINS:V*=60;break;case h.F7.DAYS:V/=24}break;case h.F7.DAYS:switch($){case h.F7.SECS:V=V*h.bz*24;break;case h.F7.MINS:V=60*V*24;break;case h.F7.HOURS:V*=24}}return V}downloadFile(V,Q,$=".json",ie=".csv"){let _e=new Blob;_e=".json"===$?new Blob(["\ufeff"+this.convertToCSV(V)],{type:"text/csv;charset=utf-8;"}):new Blob([V.toString()],{type:"text/plain;charset=utf-8"});const ye=document.createElement("a"),se=URL.createObjectURL(_e);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ye.setAttribute("target","_blank"),ye.setAttribute("href",se),ye.setAttribute("download",Q+ie),ye.style.visibility="hidden",document.body.appendChild(ye),ye.click(),document.body.removeChild(ye)}convertToCSV(V){const Q=[];let $="",ie="",_e="";return"object"!=typeof V&&(V=JSON.parse(V)),V.forEach((se,pe)=>{for(const Ee in se)Q.findIndex(L=>L===Ee)<0&&Q.push(Ee)}),_e=Q.join(",")+"\r\n",V.forEach(se=>{$="",Q.forEach(pe=>{if(se.hasOwnProperty(pe))if(Array.isArray(se[pe]))ie="",se[pe].forEach((Ee,L)=>{ie+="object"==typeof Ee?"("+JSON.stringify(Ee)?.replace(/\,/g,";")+")":"("+Ee+")"}),$+=ie+",";else if("object"==typeof se[pe])$+=JSON.stringify(se[pe])?.replace(/\,/g,";")+",";else if(pe.includes("timestamp")||pe.includes("date"))try{switch(se[pe].toString().length){case 10:$+=this.datePipe.transform(new Date(1e3*se[pe]),"dd/MMM/y HH:mm")+",";break;case 13:$+=this.datePipe.transform(new Date(se[pe]),"dd/MMM/y HH:mm")+",";break;default:$+=se[pe]+","}}catch{$+=se[pe]+","}else $+=se[pe]+",";else $+=","}),_e+=$.slice(0,-1)+"\r\n"}),_e}isVersionCompatible(V,Q){if(V){const $=V.match(/v?(?\d+(?:\.\d+)*)/);if($&&$.groups&&$.groups.version){this.logger.info("Current Version: "+$.groups.version),this.logger.info("Checking Compatiblility with Version: "+Q);const ie=$.groups.version.split(".")||[],_e=Q.split(".");return+ie[0]>+_e[0]||+ie[0]==+_e[0]&&+ie[1]>+_e[1]||+ie[0]==+_e[0]&&+ie[1]==+_e[1]&&+ie[2]>=+_e[2]}return this.logger.error("Invalid Version String: "+V),!1}return!1}extractErrorMessage(V,Q="Unknown Error."){const $=this.titleCase(V.error&&V.error.text&&"string"==typeof V.error.text&&V.error.text.includes('')?"API Route Does Not Exist.":V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.error&&"string"==typeof V.error.error.error.error.error?V.error.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&"string"==typeof V.error.error.error.error?V.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&"string"==typeof V.error.error.error?V.error.error.error:V.error&&V.error.error&&"string"==typeof V.error.error?V.error.error:V.error&&"string"==typeof V.error?V.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.message&&"string"==typeof V.error.error.error.error.message?V.error.error.error.error.message:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.message&&"string"==typeof V.error.error.error.message?V.error.error.error.message:V.error&&V.error.error&&V.error.error.message&&"string"==typeof V.error.error.message?V.error.error.message:V.error&&V.error.message&&"string"==typeof V.error.message?V.error.message:V.message&&"string"==typeof V.message?V.message:Q);return this.logger.info("Error Message: "+$),$}extractErrorCode(V,Q=500){const $=V.error&&V.error.error&&V.error.error.message&&V.error.error.message.code?V.error.error.message.code:V.error&&V.error.error&&V.error.error.code?V.error.error.code:V.error&&V.error.code?V.error.code:V.code?V.code:V.status?V.status:Q;return this.logger.info("Error Code: "+$),$}extractErrorNumber(V,Q=500){const $=V.error&&V.error.error&&V.error.error.errno?V.error.error.errno:V.error&&V.error.errno?V.error.errno:V.errno?V.errno:V.status?V.status:Q;return this.logger.info("Error Number: "+$),$}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)(d.KVO(w.u),d.KVO(f.gP),d.KVO(F.vh),d.KVO(M.up))},this.\u0275prov=d.jDH({token:Z,factory:Z.\u0275fac}))}return j(),Z})()},4416(ke,q,l){"use strict";l.d(q,{A$:()=>Ee,A0:()=>f,Ah:()=>Oe,BQ:()=>m,Bd:()=>R,Bv:()=>ie,C6:()=>tt,C7:()=>Y,F7:()=>t,G:()=>$,H$:()=>d,HW:()=>pe,Hx:()=>x,It:()=>A,Jd:()=>me,Jr:()=>ye,KR:()=>fe,Ld:()=>ee,MZ:()=>ce,NG:()=>e,QP:()=>oe,SY:()=>M,TC:()=>Se,TH:()=>nt,U1:()=>L,UN:()=>u,Uq:()=>$e,Uu:()=>be,WW:()=>Vt,X8:()=>tn,XG:()=>V,Y0:()=>Re,ZC:()=>Le,Zb:()=>a,Zi:()=>En,Zo:()=>_n,_1:()=>et,_U:()=>dt,aG:()=>P,aR:()=>Me,aU:()=>ve,bz:()=>o,ck:()=>_e,f7:()=>_,iI:()=>C,jG:()=>de,k:()=>F,md:()=>j,mu:()=>ae,nv:()=>Q,o1:()=>se,oi:()=>Xt,on:()=>D,q9:()=>U,rl:()=>w,rs:()=>re,tj:()=>T,ul:()=>yt,wn:()=>ge,xk:()=>Et,xp:()=>Z,xv:()=>h});var i=l(17705),g=l(96695),p=l(45383);function D(Fe){const Pe=new g.xX;return Pe.itemsPerPageLabel=Fe+" per page:",Pe}const o=3600,e=31536e3,A=24*o*7,h="0.15.9-beta",d=(0,i.naY)()?"http://localhost:3000/rtl/api":"./api",w={AUTHENTICATE_API:d+"/authenticate",CONF_API:d+"/conf",PAGE_SETTINGS_API:d+"/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=["Sats","BTC"],F={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},M=["SECS","MINS","HOURS","DAYS"],j=10,Z=[5,10,25,100],ee=[{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"}],V=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],Q=[{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 Amount",placeholder:"Percentage Limit"}],$=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom"}],ie={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 _e=function(Fe){return Fe.PAYMENT_RECEIVED="payment-received",Fe.PAYMENT_RELAYED="payment-relayed",Fe.PAYMENT_SENT="payment-sent",Fe.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",Fe.PAYMENT_FAILED="payment-failed",Fe.CHANNEL_OPENED="channel-opened",Fe.CHANNEL_STATE_CHANGED="channel-state-changed",Fe.CHANNEL_CLOSED="channel-closed",Fe}(_e||{}),ye=function(Fe){return Fe.CONNECT="connect",Fe.DISCONNECT="disconnect",Fe.WARNING="warning",Fe.INVOICE_PAYMENT="invoice_payment",Fe.INVOICE_CREATION="invoice_creation",Fe.CHANNEL_OPENED="channel_opened",Fe.CHANNEL_STATE_CHANGED="channel_state_changed",Fe.SENDPAY_SUCCESS="sendpay_success",Fe.SENDPAY_FAILURE="sendpay_failure",Fe.COIN_MOVEMENT="coin_movement",Fe.BALANCE_SNAPSHOT="balance_snapshot",Fe.BLOCK_ADDED="block_added",Fe.OPENCHANNEL_PEER_SIGS="openchannel_peer_sigs",Fe.CHANNEL_OPEN_FAILED="channel_open_failed",Fe}(ye||{}),se=function(Fe){return Fe.INVOICE="invoice",Fe}(se||{}),pe=function(Fe){return Fe.OPERATOR="OPERATOR",Fe.MERCHANT="MERCHANT",Fe.ALL="ALL",Fe}(pe||{}),Ee=function(Fe){return Fe.INFORMATION="Information",Fe.WARNING="Warning",Fe.ERROR="Error",Fe.SUCCESS="Success",Fe.CONFIRM="Confirm",Fe}(Ee||{}),L=function(Fe){return Fe.NOAUTH="NOAUTH",Fe.JWT="JWT",Fe.PASSWORD="PASSWORD",Fe}(L||{}),t=function(Fe){return Fe.SECS="SECS",Fe.MINS="MINS",Fe.HOURS="HOURS",Fe.DAYS="DAYS",Fe}(t||{}),m=function(Fe){return Fe.SATS="Sats",Fe.BTC="BTC",Fe.OTHER="OTHER",Fe}(m||{}),u=function(Fe){return Fe.ARRAY="ARRAY",Fe.NUMBER="NUMBER",Fe.STRING="STRING",Fe.BOOLEAN="BOOLEAN",Fe.PASSWORD="PASSWORD",Fe.DATE="DATE",Fe.DATE_TIME="DATE_TIME",Fe}(u||{}),_=function(Fe){return Fe.XS="XS",Fe.SM="SM",Fe.MD="MD",Fe.LG="LG",Fe.XL="XL",Fe}(_||{});const T={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"}},P={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 C=function(Fe){return Fe.WIRE_INVALID_ONION_VERSION="Invalid Onion Version",Fe.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",Fe.WIRE_INVALID_ONION_KEY="Invalid Onion Key",Fe.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",Fe.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",Fe.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",Fe.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",Fe.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",Fe.WIRE_FEE_INSUFFICIENT="Insufficient Fee",Fe.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Fe.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",Fe.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",Fe.WIRE_CHANNEL_DISABLED="Channel Disabled",Fe.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",Fe.WIRE_INVALID_REALM="Invalid Realm",Fe.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",Fe.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",Fe.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",Fe.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",Fe.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",Fe.WIRE_MPP_TIMEOUT="MPP Timeout",Fe.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Fe.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",Fe}(C||{}),a=function(Fe){return Fe.CHANNELD_NORMAL="Active",Fe.OPENINGD="Opening",Fe.CHANNELD_AWAITING_LOCKIN="Pending Open",Fe.CHANNELD_SHUTTING_DOWN="Shutting Down",Fe.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",Fe.CLOSINGD_COMPLETE="Closed",Fe.AWAITING_UNILATERAL="Awaiting Unilateral Close",Fe.FUNDING_SPEND_SEEN="Funding Spend Seen",Fe.ONCHAIN="Onchain",Fe.DUALOPEND_OPEN_INIT="Dual Open Initialized",Fe.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",Fe}(a||{}),x=function(Fe){return Fe.INITIATED="Initiated",Fe.PREIMAGE_REVEALED="Preimage Revealed",Fe.HTLC_PUBLISHED="HTLC Published",Fe.SUCCESS="Successful",Fe.FAILED="Failed",Fe.INVOICE_SETTLED="Invoice Settled",Fe}(x||{}),Y=function(Fe){return Fe.LOOP_OUT="LOOP_OUT",Fe.LOOP_IN="LOOP_IN",Fe}(Y||{}),R=function(Fe){return Fe.SWAP_OUT="SWAP_OUT",Fe.SWAP_IN="SWAP_IN",Fe}(R||{}),U=function(Fe){return Fe["swap.created"]="Swap Created",Fe["swap.expired"]="Swap Expired",Fe["invoice.set"]="Invoice Set",Fe["invoice.paid"]="Invoice Paid",Fe["invoice.pending"]="Invoice Pending",Fe["invoice.settled"]="Invoice Settled",Fe["invoice.failedToPay"]="Invoice Failed To Pay",Fe["channel.created"]="Channel Created",Fe["transaction.failed"]="Transaction Failed",Fe["transaction.mempool"]="Transaction Mempool",Fe["transaction.claimed"]="Transaction Claimed",Fe["transaction.refunded"]="Transaction Refunded",Fe["transaction.confirmed"]="Transaction Confirmed",Fe["transaction.lockupFailed"]="Lockup Transaction Failed",Fe["swap.refunded"]="Swap Refunded",Fe["swap.abandoned"]="Swap Abandoned",Fe}(U||{});const fe=[{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}],re=["MONTHLY","YEARLY"],Oe=["password","changeme","moneyprintergobrrr"];var ge=function(Fe){return Fe.UN_INITIATED="UN_INITIATED",Fe.INITIATED="INITIATED",Fe.COMPLETED="COMPLETED",Fe.ERROR="ERROR",Fe}(ge||{});const ce={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_APPLICATION_SETTINGS:"Updating Application Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_BOLTZ_INFO:"Getting Boltz Info...",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_INFO:"Getting Loop Info...",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...",REBALANCE_CHANNEL:"Rebalancing Channel...",LOG_OUT:"Logging Out..."};var Re=function(Fe){return Fe.INVOICE="INVOICE",Fe.OFFER="OFFER",Fe.KEYSEND="KEYSEND",Fe}(Re||{}),Me=function(Fe){return Fe.FEES="FEES",Fe.EVENTS="EVENTS",Fe}(Me||{}),ve=function(Fe){return Fe.VOID="VOID",Fe.SET_API_URL_ECL="SET_API_URL_ECL",Fe.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",Fe.RESET_ROOT_STORE="RESET_ROOT_STORE",Fe.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",Fe.OPEN_SNACK_BAR="OPEN_SNACKBAR",Fe.OPEN_SPINNER="OPEN_SPINNER",Fe.CLOSE_SPINNER="CLOSE_SPINNER",Fe.OPEN_ALERT="OPEN_ALERT",Fe.CLOSE_ALERT="CLOSE_ALERT",Fe.OPEN_CONFIRMATION="OPEN_CONFIRMATION",Fe.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",Fe.SHOW_PUBKEY="SHOW_PUBKEY",Fe.FETCH_CONFIG="FETCH_CONFIG",Fe.SHOW_CONFIG="SHOW_CONFIG",Fe.FETCH_STORE="FETCH_STORE",Fe.SET_STORE="SET_STORE",Fe.FETCH_APPLICATION_SETTINGS="FETCH_APPLICATION_SETTINGS",Fe.SET_APPLICATION_SETTINGS="SET_APPLICATION_SETTINGS",Fe.SAVE_SETTINGS="SAVE_SETTINGS",Fe.SET_SELECTED_NODE="SET_SELECTED_NODE",Fe.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",Fe.UPDATE_APPLICATION_SETTINGS="UPDATE_APPLICATION_SETTINGS",Fe.UPDATE_NODE_SETTINGS="UPDATE_NODE_SETTINGS",Fe.SET_SELECTED_NODE_SETTINGS="SET_SELECTED_NODE_SETTINGS",Fe.SET_NODE_DATA="SET_NODE_DATA",Fe.IS_AUTHORIZED="IS_AUTHORIZED",Fe.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",Fe.LOGIN="LOGIN",Fe.VERIFY_TWO_FA="VERIFY_TWO_FA",Fe.LOGOUT="LOGOUT",Fe.RESET_PASSWORD="RESET_PASSWORD",Fe.RESET_PASSWORD_RES="RESET_PASSWORD_RES",Fe.FETCH_FILE="FETCH_FILE",Fe.SHOW_FILE="SHOW_FILE",Fe}(ve||{}),oe=function(Fe){return Fe.RESET_LND_STORE="RESET_LND_STORE",Fe.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",Fe.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",Fe.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",Fe.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",Fe.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",Fe.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",Fe.FETCH_INFO_LND="FETCH_INFO_LND",Fe.SET_INFO_LND="SET_INFO_LND",Fe.FETCH_PEERS_LND="FETCH_PEERS_LND",Fe.SET_PEERS_LND="SET_PEERS_LND",Fe.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",Fe.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",Fe.DETACH_PEER_LND="DETACH_PEER_LND",Fe.REMOVE_PEER_LND="REMOVE_PEER_LND",Fe.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",Fe.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",Fe.ADD_INVOICE_LND="ADD_INVOICE_LND",Fe.FETCH_FEES_LND="FETCH_FEES_LND",Fe.SET_FEES_LND="SET_FEES_LND",Fe.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",Fe.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",Fe.FETCH_NETWORK_LND="FETCH_NETWORK_LND",Fe.SET_NETWORK_LND="SET_NETWORK_LND",Fe.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",Fe.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",Fe.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",Fe.SET_CHANNELS_LND="SET_CHANNELS_LND",Fe.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",Fe.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",Fe.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",Fe.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",Fe.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",Fe.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",Fe.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",Fe.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",Fe.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",Fe.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",Fe.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",Fe.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",Fe.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",Fe.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",Fe.FETCH_INVOICES_LND="FETCH_INVOICES_LND",Fe.SET_INVOICES_LND="SET_INVOICES_LND",Fe.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",Fe.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",Fe.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",Fe.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",Fe.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",Fe.FETCH_UTXOS_LND="FETCH_UTXOS_LND",Fe.SET_UTXOS_LND="SET_UTXOS_LND",Fe.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",Fe.SET_PAYMENTS_LND="SET_PAYMENTS_LND",Fe.SEND_PAYMENT_LND="SEND_PAYMENT_LND",Fe.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",Fe.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",Fe.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",Fe.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",Fe.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",Fe.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",Fe.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",Fe.GEN_SEED_LND="GEN_SEED_LND",Fe.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",Fe.INIT_WALLET_LND="INIT_WALLET_LND",Fe.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",Fe.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",Fe.PEER_LOOKUP_LND="PEER_LOOKUP_LND",Fe.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",Fe.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",Fe.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",Fe.SET_LOOKUP_LND="SET_LOOKUP_LND",Fe.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",Fe.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",Fe.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",Fe.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",Fe.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",Fe.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",Fe}(oe||{}),Se=function(Fe){return Fe.RESET_CLN_STORE="RESET_CLN_STORE",Fe.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",Fe.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",Fe.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",Fe.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",Fe.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",Fe.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",Fe.SET_INFO_CLN="SET_INFO_CLN",Fe.FETCH_FEES_CLN="FETCH_FEES_CLN",Fe.SET_FEES_CLN="SET_FEES_CLN",Fe.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",Fe.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",Fe.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",Fe.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",Fe.FETCH_UTXO_BALANCES_CLN="FETCH_UTXO_BALANCES_CLN",Fe.SET_UTXO_BALANCES_CLN="SET_UTXO_BALANCES_CLN",Fe.FETCH_PEERS_CLN="FETCH_PEERS_CLN",Fe.SET_PEERS_CLN="SET_PEERS_CLN",Fe.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",Fe.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",Fe.ADD_PEER_CLN="ADD_PEER_CLN",Fe.DETACH_PEER_CLN="DETACH_PEER_CLN",Fe.REMOVE_PEER_CLN="REMOVE_PEER_CLN",Fe.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",Fe.SET_CHANNELS_CLN="SET_CHANNELS_CLN",Fe.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",Fe.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",Fe.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",Fe.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",Fe.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",Fe.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",Fe.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",Fe.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",Fe.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",Fe.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",Fe.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",Fe.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",Fe.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",Fe.SET_LOOKUP_CLN="SET_LOOKUP_CLN",Fe.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",Fe.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",Fe.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",Fe.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",Fe.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Fe.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Fe.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",Fe.SET_INVOICES_CLN="SET_INVOICES_CLN",Fe.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",Fe.ADD_INVOICE_CLN="ADD_INVOICE_CLN",Fe.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",Fe.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",Fe.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",Fe.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",Fe.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",Fe.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",Fe.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",Fe.SET_OFFERS_CLN="SET_OFFERS_CLN",Fe.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",Fe.ADD_OFFER_CLN="ADD_OFFER_CLN",Fe.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",Fe.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",Fe.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",Fe.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",Fe.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",Fe.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",Fe.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",Fe}(Se||{}),be=function(Fe){return Fe.RESET_ECL_STORE="RESET_ECL_STORE",Fe.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",Fe.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",Fe.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",Fe.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",Fe.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",Fe.FETCH_INFO_ECL="FETCH_INFO_ECL",Fe.SET_INFO_ECL="SET_INFO_ECL",Fe.FETCH_FEES_ECL="FETCH_FEES_ECL",Fe.SET_FEES_ECL="SET_FEES_ECL",Fe.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",Fe.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",Fe.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",Fe.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",Fe.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",Fe.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",Fe.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",Fe.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",Fe.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",Fe.FETCH_PEERS_ECL="FETCH_PEERS_ECL",Fe.SET_PEERS_ECL="SET_PEERS_ECL",Fe.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",Fe.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",Fe.ADD_PEER_ECL="ADD_PEER_ECL",Fe.DETACH_PEER_ECL="DETACH_PEER_ECL",Fe.REMOVE_PEER_ECL="REMOVE_PEER_ECL",Fe.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",Fe.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",Fe.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",Fe.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",Fe.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",Fe.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",Fe.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",Fe.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",Fe.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",Fe.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",Fe.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",Fe.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",Fe.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",Fe.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",Fe.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",Fe.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",Fe.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",Fe.SET_INVOICES_ECL="SET_INVOICES_ECL",Fe.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",Fe.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",Fe.ADD_INVOICE_ECL="ADD_INVOICE_ECL",Fe.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",Fe.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",Fe.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",Fe.SET_LOOKUP_ECL="SET_LOOKUP_ECL",Fe.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",Fe.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Fe}(be||{});const nt=[{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"},{range:{min:30,max:31},description:"AMP support"},{range:{min:44,max:45},description:"Explicit commitment type"}];var $e=function(Fe){return Fe.gossip_queries_ex="Gossip queries including additional information",Fe.option_anchor_outputs="Anchor outputs",Fe.option_data_loss_protect="Extra channel re-establish fields",Fe.var_onion_optin="Variable-length routing onion payloads",Fe.option_static_remotekey="Static key for remote output",Fe.option_support_large_channel="Create large channels",Fe.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Fe.payment_secret="Payment secret field",Fe.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",Fe.basic_mpp="Basic multi-part payments",Fe.gossip_queries="More sophisticated gossip control",Fe.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",Fe.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Fe.amp="AMP",Fe}($e||{}),dt=function(Fe){return Fe["data-loss-protect"]="Extra channel re-establish fields",Fe["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",Fe["gossip-queries"]="More sophisticated gossip control",Fe["tlv-onion"]="Variable-length routing onion payloads",Fe["ext-gossip-queries"]="Gossip queries can include additional information",Fe["static-remote-key"]="Static key for remote output",Fe["payment-addr"]="Payment secret field",Fe["multi-path-payments"]="Basic multi-part payments",Fe["wumbo-channels"]="Wumbo Channels",Fe.anchors="Anchor outputs",Fe["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",Fe.amp="AMP",Fe}(dt||{});const yt=[{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 Et=function(Fe){return Fe.OFFERED="offered",Fe.SETTLED="settled",Fe.FAILED="failed",Fe.LOCAL_FAILED="local_failed",Fe}(Et||{}),Xt=function(Fe){return Fe.ASCENDING="asc",Fe.DESCENDING="desc",Fe}(Xt||{});const de=["asc","desc"],ae=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:j,sortBy:"blockheight",sortOrder:Xt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:j,sortBy:"blockheight",sortOrder:Xt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:j,sortBy:"msatoshi_to_us",sortOrder:Xt.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:j,sortBy:"state",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]},{tableId:"active_HTLCs",recordsPerPage:j,sortBy:"expiry",sortOrder:Xt.DESCENDING,columnSelectionSM:["amount_msat","direction","expiry"],columnSelection:["amount_msat","direction","expiry","state"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:j,sortBy:"channel_opening_fee",sortOrder:Xt.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:j,sortBy:"created_at",sortOrder:Xt.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:j,sortBy:"expires_at",sortOrder:Xt.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:j,sortBy:"offer_id",sortOrder:Xt.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:j,sortBy:"lastUpdatedAt",sortOrder:Xt.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:j,sortBy:"received_time",sortOrder:Xt.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:j,sortBy:"total_fee",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:j,sortBy:"received_time",sortOrder:Xt.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:j,sortBy:"received_time",sortOrder:Xt.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:j,sortBy:"received_time",sortOrder:Xt.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:j,sortBy:"date",sortOrder:Xt.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:j,sortBy:"msatoshi",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]}],me={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"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount_msat",label:"Amount (Sats)"},{column:"direction"},{column:"id",label:"HTLC ID"},{column:"state"},{column:"expiry"},{column:"payment_hash"},{column:"local_trimmed"}]}},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:"issuer"},{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"}]}}},Le=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:j,sortBy:"tx_id",sortOrder:Xt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:j,sortBy:"time_stamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:j,sortBy:"tx_id",sortOrder:Xt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:j,sortBy:"balancedness",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","local_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","blocks_til_maturity","limbo_balance"],columnSelection:["remote_alias","blocks_til_maturity","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:j,sortBy:"close_type",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:j,sortBy:"incoming",sortOrder:Xt.ASCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:j,sortBy:"creation_date",sortOrder:Xt.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:j,sortBy:"creation_date",sortOrder:Xt.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:j,sortBy:"total_amount",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:j,sortBy:"remote_alias",sortOrder:Xt.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:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:j,sortBy:"date",sortOrder:Xt.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:j,sortBy:"hop_sequence",sortOrder:Xt.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:j,sortBy:"initiation_time",sortOrder:Xt.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:j,sortBy:"status",sortOrder:Xt.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:j,sortBy:"status",sortOrder:Xt.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],et={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"}]}}},tn=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:j,sortBy:"firstPartTimestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:j,sortBy:"receivedAt",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:j,sortBy:"totalFee",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:j,sortBy:"date",sortOrder:Xt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],Vt={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:"isInitiator",label:"Initiator"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{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"}]}}},hn_DKK="\n \n \n \n ",En=[{id:"USD",name:"United States Dollar",iconType:"FA",symbol:p.Vpi},{id:"ARS",name:"Argentina Peso",iconType:"FA",symbol:p.Vpi},{id:"AUD",name:"Australia Dollar",iconType:"FA",symbol:p.Vpi},{id:"BRL",name:"Brazil Real",iconType:"FA",symbol:p.Tq9},{id:"CAD",name:"Canada Dollar",iconType:"FA",symbol:p.Vpi},{id:"CHF",name:"Switzerland Franc",iconType:"FA",symbol:p.zjW},{id:"CLP",name:"Chile Peso",iconType:"FA",symbol:p.Vpi},{id:"CNY",name:"China Yuan Renminbi",iconType:"FA",symbol:p.zPk},{id:"CZK",name:"Czech Republic Koruna",iconType:"SVG",symbol:"\n \n \n \n \n \n \n \n ",class:"currency-icon-x-large"},{id:"DKK",name:"Denmark Krone",iconType:"SVG",symbol:hn_DKK,class:"currency-icon-medium"},{id:"EUR",name:"Euro Member Countries",iconType:"FA",symbol:p.s5m},{id:"GBP",name:"United Kingdom Pound",iconType:"FA",symbol:p.vfE},{id:"HKD",name:"Hong Kong Dollar",iconType:"FA",symbol:p.Vpi},{id:"HRK",name:"Croatia Kuna",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/15766/croatia-kuna-currency-symbol --\x3e\n \n \n \n \n \n ',class:"currency-icon-medium"},{id:"HUF",name:"Hungary Forint",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/183602/forint-business-and-finance --\x3e\n \n \n \n \n \n \n ',class:"currency-icon-small"},{id:"INR",name:"India Rupee",iconType:"FA",symbol:p.FYJ},{id:"ISK",name:"Iceland Krona",iconType:"SVG",symbol:hn_DKK,class:"currency-icon-medium"},{id:"JPY",name:"Japan Yen",iconType:"FA",symbol:p.zPk},{id:"KRW",name:"Korea (South) Won",iconType:"FA",symbol:p.JKM},{id:"NZD",name:"New Zealand Dollar",iconType:"FA",symbol:p.Vpi},{id:"PLN",name:"Poland Zloty",iconType:"SVG",symbol:"\n \n \n \n \n \n \n ",class:"currency-icon-large"},{id:"RON",name:"Romania Leu",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/64526/romania-lei-currency --\x3e\n \n \n \n \n \n ',class:"currency-icon-medium"},{id:"RUB",name:"Russia Ruble",iconType:"FA",symbol:p.f6_},{id:"SEK",name:"Sweden Krona",iconType:"SVG",symbol:hn_DKK,class:"currency-icon-medium"},{id:"SGD",name:"Singapore Dollar",iconType:"FA",symbol:p.Vpi},{id:"THB",name:"Thailand Baht",iconType:"FA",symbol:p.Kcb},{id:"TRY",name:"Turkey Lira",iconType:"FA",symbol:p.hb3},{id:"TWD",name:"Taiwan New Dollar",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/142061/new-taiwan-dollar --\x3e\n \n \n \n \n \n \n ',class:"currency-icon-small"}];function _n(Fe){const Pe=En.find(Ue=>Ue.id===Fe);return"SVG"===Pe.iconType&&"string"==typeof Pe.symbol&&(Pe.symbol=Pe.symbol.replace('ye});var i=l(29330),g=l(21413),p=l(84412),D=l(7673),o=l(18810),e=l(99437),A=l(61594),h=l(96354),d=l(31397),w=l(56977),f=l(53993),F=l(4416),M=l(12462),K=l(11771),j=l(190),Z=l(63536),ee=l(59584),V=l(2615),Q=l(59640),$=l(98570),ie=l(95416),_e=l(72200);let ye=(()=>{var se;class pe{constructor(L,t,s,m,u){this.httpClient=L,this.store=t,this.logger=s,this.snackBar=m,this.titleCasePipe=u,this.APIUrl=F.H$,this.lnImplementation="",this.lnImplementationUpdated=new p.t(null),this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.mapAliases=(_,T)=>(_&&_.length>0?_.forEach((P,C)=>{if(T&&T.length>0)for(let a=0;a{let m;return this.store.dispatch((0,K.mt)({payload:F.MZ.DECODE_PAYMENT})),m="cln"===s?this.httpClient.post(this.APIUrl+"/"+s+F.rl.UTILITY_API+"/decode",{string:L},{headers:{"Content-Type":"application/json"}}):this.httpClient.get(this.APIUrl+"/"+s+F.rl.PAYMENTS_API+"/decode/"+L),m.pipe((0,w.Q)(this.unSubs[0]),(0,h.T)(u=>(this.store.dispatch((0,K.y0)({payload:F.MZ.DECODE_PAYMENT})),u)),(0,e.W)(u=>(t?this.handleErrorWithoutAlert("Decode Payment",F.MZ.DECODE_PAYMENT,u):this.handleErrorWithAlert("decodePaymentData",F.MZ.DECODE_PAYMENT,"Decode Payment Failed",this.APIUrl+"/"+s+("cln"===s?F.rl.UTILITY_API+"/decode":F.rl.PAYMENTS_API+"/decode/"+L),u),(0,o.$)(()=>new Error(this.extractErrorMessage(u))))))}))}decodePayments(L){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(t=>{let s="",m="",u=null;return"ecl"===t?(s=this.APIUrl+"/"+t+F.rl.PAYMENTS_API+"/getsentinfos",u={payments:L},m=F.MZ.GET_SENT_PAYMENTS):"cln"===t?(s=this.APIUrl+"/"+t+F.rl.UTILITY_API+"/decode",u={string:L},m=F.MZ.DECODE_PAYMENTS):(s=this.APIUrl+"/"+t+F.rl.PAYMENTS_API,u={payments:L},m=F.MZ.DECODE_PAYMENTS),this.store.dispatch((0,K.mt)({payload:m})),this.httpClient.post(s,u).pipe((0,w.Q)(this.unSubs[1]),(0,h.T)(_=>(this.store.dispatch((0,K.y0)({payload:m})),_)),(0,e.W)(_=>(this.handleErrorWithAlert("decodePaymentsData",m,m+" Failed",s,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}))}getAliasesFromPubkeys(L,t){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(s=>{if(t){const m=(new i.Nl).set("pubkeys",L);return this.httpClient.get(this.APIUrl+"/"+s+F.rl.NETWORK_API+"/nodes",{params:m})}return this.httpClient.get(this.APIUrl+"/"+s+F.rl.NETWORK_API+"/node/"+L)}))}signMessage(L){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(t=>{let s=this.APIUrl+"/"+t+F.rl.MESSAGE_API+"/sign";return"cln"===t&&(s=this.APIUrl+"/"+t+F.rl.UTILITY_API+"/sign"),this.store.dispatch((0,K.mt)({payload:F.MZ.SIGN_MESSAGE})),this.httpClient.post(s,{message:L}).pipe((0,w.Q)(this.unSubs[2]),(0,h.T)(m=>(this.store.dispatch((0,K.y0)({payload:F.MZ.SIGN_MESSAGE})),m)),(0,e.W)(m=>(this.handleErrorWithAlert("signMessageData",F.MZ.SIGN_MESSAGE,"Sign Message Failed",s,m),(0,o.$)(()=>new Error(this.extractErrorMessage(m))))))}))}verifyMessage(L,t){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(s=>{let m="",u=null;return"cln"===s?(m=this.APIUrl+"/"+s+F.rl.UTILITY_API+"/verify",u={message:L,zbase:t}):(m=this.APIUrl+"/"+s+F.rl.MESSAGE_API+"/verify",u={message:L,signature:t}),this.store.dispatch((0,K.mt)({payload:F.MZ.VERIFY_MESSAGE})),this.httpClient.post(m,u).pipe((0,w.Q)(this.unSubs[3]),(0,h.T)(_=>(this.store.dispatch((0,K.y0)({payload:F.MZ.VERIFY_MESSAGE})),_)),(0,e.W)(_=>(this.handleErrorWithAlert("verifyMessageData",F.MZ.VERIFY_MESSAGE,"Verify Message Failed",m,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}))}bumpFee(L,t,s,m){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(u=>{const _={txid:L,outputIndex:t};return s&&(_.targetConf=s),m&&(_.satPerVByte=m),this.store.dispatch((0,K.mt)({payload:F.MZ.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+u+F.rl.WALLET_API+"/bumpfee",_).pipe((0,w.Q)(this.unSubs[4]),(0,h.T)(T=>(this.store.dispatch((0,K.y0)({payload:F.MZ.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),T)),(0,e.W)(T=>(this.handleErrorWithoutAlert("Bump Fee",F.MZ.BUMP_FEE,T),(0,o.$)(()=>new Error(this.extractErrorMessage(T))))))}))}labelUTXO(L,t,s=!0){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(m=>{const u={txid:L,label:t,overwrite:s};return this.store.dispatch((0,K.mt)({payload:F.MZ.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+m+F.rl.WALLET_API+"/label",u).pipe((0,w.Q)(this.unSubs[5]),(0,h.T)(_=>(this.store.dispatch((0,K.y0)({payload:F.MZ.LABEL_UTXO})),_)),(0,e.W)(_=>(this.handleErrorWithoutAlert("Label UTXO",F.MZ.LABEL_UTXO,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}))}leaseUTXO(L,t){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(s=>{const m={txid:L,outputIndex:t};return this.store.dispatch((0,K.mt)({payload:F.MZ.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+s+F.rl.WALLET_API+"/lease",m).pipe((0,w.Q)(this.unSubs[6]),(0,h.T)(u=>{this.store.dispatch((0,K.y0)({payload:F.MZ.LEASE_UTXO})),this.store.dispatch((0,j.mh)()),this.store.dispatch((0,j.SM)());const _=new Date(1e3*u.expiration);return Math.round(_.getTime())-60*_.getTimezoneOffset()}),(0,e.W)(u=>(this.handleErrorWithoutAlert("Lease UTXO",F.MZ.LEASE_UTXO,u),(0,o.$)(()=>new Error(this.extractErrorMessage(u))))))}))}getForwardingHistory(L,t,s,m){if("LND"===L){const u={end_time:s,start_time:t};return this.store.dispatch((0,K.mt)({payload:F.MZ.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+F.rl.SWITCH_API,u).pipe((0,w.Q)(this.unSubs[7]),(0,f.E)(this.store.select(Z.eO)),(0,d.Z)(([_,T])=>{if(_.forwarding_events){const P=[...T.channels,...T.closedChannels];_.forwarding_events.forEach(C=>{if(P&&P.length>0)for(let a=0;a(this.handleErrorWithAlert("getForwardingHistoryData",F.MZ.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+F.rl.SWITCH_API,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}return"CLN"===L?(this.store.dispatch((0,K.mt)({payload:F.MZ.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/cln"+F.rl.CHANNELS_API+"/listForwards",{status:m||"settled"}).pipe((0,w.Q)(this.unSubs[8]),(0,f.E)(this.store.select(ee.BM)),(0,d.Z)(([u,_])=>{const T=this.mapAliases(u,[..._.activeChannels,..._.pendingChannels,..._.inactiveChannels]);return this.store.dispatch((0,K.y0)({payload:F.MZ.GET_FORWARDING_HISTORY})),(0,D.of)(T)}),(0,e.W)(u=>(this.handleErrorWithAlert("getForwardingHistoryData",F.MZ.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+F.rl.CHANNELS_API+"/listForwards",u),(0,o.$)(()=>new Error(this.extractErrorMessage(u))))))):(0,D.of)({})}listNetworkNodes(L){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(t=>(this.store.dispatch((0,K.mt)({payload:F.MZ.LIST_NETWORK_NODES})),this.httpClient.post(this.APIUrl+"/"+t+F.rl.NETWORK_API+"/listNodes",L).pipe((0,w.Q)(this.unSubs[9]),(0,d.Z)(s=>(this.store.dispatch((0,K.y0)({payload:F.MZ.LIST_NETWORK_NODES})),(0,D.of)(s))),(0,e.W)(s=>(this.handleErrorWithoutAlert("List Network Nodes",F.MZ.LIST_NETWORK_NODES,s),(0,o.$)(()=>this.extractErrorMessage(s))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(L=>(this.store.dispatch((0,K.mt)({payload:F.MZ.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+L+F.rl.UTILITY_API+"/listConfigs").pipe((0,w.Q)(this.unSubs[10]),(0,d.Z)(t=>(this.store.dispatch((0,K.y0)({payload:F.MZ.GET_LIST_CONFIGS})),(0,D.of)(t))),(0,e.W)(t=>(this.handleErrorWithoutAlert("List Configurations",F.MZ.GET_LIST_CONFIGS,t),(0,o.$)(()=>this.extractErrorMessage(t))))))))}getOrUpdateFunderPolicy(L,t,s,m,u,_){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(T=>{const P=L?{policy:L,policy_mod:t,lease_fee_base_msat:s,lease_fee_basis:m,channel_fee_max_base_msat:u,channel_fee_max_proportional_thousandths:_}:null;return this.store.dispatch((0,K.mt)({payload:F.MZ.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+T+F.rl.CHANNELS_API+"/funderUpdate",P).pipe((0,w.Q)(this.unSubs[11]),(0,h.T)(C=>(this.store.dispatch((0,K.y0)({payload:F.MZ.GET_FUNDER_POLICY})),P&&this.store.dispatch((0,K.UI)({payload:"Funder Policy Updated Successfully with Compact Lease: "+C.compact_lease+"!"})),C)),(0,e.W)(C=>(this.handleErrorWithoutAlert("Funder Policy",F.MZ.GET_FUNDER_POLICY,C),(0,o.$)(()=>new Error(this.extractErrorMessage(C))))))}))}circularRebalance(L,t="",s="",m="",u="",_=[],T="shortChannelId"){return this.httpClient.post(this.APIUrl+"/"+this.lnImplementation+F.rl.CHANNELS_API+"/circularRebalance",{amountMsat:L,sourceShortChannelId:t,sourceNodeId:s,targetShortChannelId:m,targetNodeId:u,ignoreNodeIds:_,format:T}).pipe((0,w.Q)(this.unSubs[12]),(0,h.T)(a=>a),(0,e.W)(a=>(this.handleErrorWithoutAlert("Rebalance Channel",F.MZ.REBALANCE_CHANNEL,a),(0,o.$)(()=>a.error))))}extractErrorMessage(L,t="Unknown Error."){return this.titleCasePipe.transform(L.error.text&&"string"==typeof L.error.text&&L.error.text.includes('')?"API Route Does Not Exist.":L.error&&L.error.error&&L.error.error.error&&L.error.error.error.error&&L.error.error.error.error.error&&"string"==typeof L.error.error.error.error.error?L.error.error.error.error.error:L.error&&L.error.error&&L.error.error.error&&L.error.error.error.error&&"string"==typeof L.error.error.error.error?L.error.error.error.error:L.error&&L.error.error&&L.error.error.error&&"string"==typeof L.error.error.error?L.error.error.error:L.error&&L.error.error&&"string"==typeof L.error.error?L.error.error:L.error&&"string"==typeof L.error?L.error:L.error&&L.error.error&&L.error.error.error&&L.error.error.error.error&&L.error.error.error.error.message&&"string"==typeof L.error.error.error.error.message?L.error.error.error.error.message:L.error&&L.error.error&&L.error.error.error&&L.error.error.error.message&&"string"==typeof L.error.error.error.message?L.error.error.error.message:L.error&&L.error.error&&L.error.error.message&&"string"==typeof L.error.error.message?L.error.error.message:L.error&&L.error.message&&"string"==typeof L.error.message?L.error.message:L.message&&"string"==typeof L.message?L.message:t)}handleErrorWithoutAlert(L,t,s){s.error.text&&"string"==typeof s.error.text&&s.error.text.includes('')&&(s={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+L+"\n"+JSON.stringify(s)),401===s.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,K.Jh)()),this.store.dispatch((0,K.ri)({payload:"Authentication Failed: "+JSON.stringify(s.error)}))):(this.store.dispatch((0,K.y0)({payload:t})),this.store.dispatch((0,K.Gd)({payload:{action:L,status:F.wn.ERROR,statusCode:s.status.toString(),message:this.extractErrorMessage(s)}})))}handleErrorWithAlert(L,t,s,m,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,K.Jh)()),this.store.dispatch((0,K.ri)({payload:"Authentication Failed: "+JSON.stringify(u.error)}));else{this.store.dispatch((0,K.y0)({payload:t}));const _=this.extractErrorMessage(u);this.store.dispatch((0,K.xO)({payload:{data:{type:"ERROR",alertTitle:s,message:{code:u.status?u.status:"Unknown Error",message:_,URL:m},component:M.f}}})),this.store.dispatch((0,K.Gd)({payload:{action:L,status:F.wn.ERROR,statusCode:u.status.toString(),message:_,URL:m}}))}}ngOnDestroy(){this.unSubs.forEach(L=>{L.next(null),L.complete()})}static#e=se=()=>(this.\u0275fac=function(t){return new(t||pe)(V.KVO(i.Qq),V.KVO(Q.il),V.KVO($.gP),V.KVO(ie.UG),V.KVO(_e.PV))},this.\u0275prov=V.jDH({token:pe,factory:pe.\u0275fac}))}return se(),pe})()},98570(ke,q,l){"use strict";l.d(q,{gP:()=>e,tU:()=>A});var i=l(17705),g=l(2615);const p=(0,i.naY)(),D=()=>null;let e=(()=>{var h;class d{invokeConsoleMethod(f,F){}static#e=h=()=>(this.\u0275fac=function(F){return new(F||d)},this.\u0275prov=g.jDH({token:d,factory:d.\u0275fac}))}return h(),d})(),A=(()=>{var h;class d{get info(){return p?console.log.bind(console):D}get warn(){return p?console.warn.bind(console):D}get error(){return p?console.error.bind(console):D}invokeConsoleMethod(f,F){(console[f]||console.log||D).apply(console,[F])}static#e=h=()=>(this.\u0275fac=function(F){return new(F||d)},this.\u0275prov=g.jDH({token:d,factory:d.\u0275fac}))}return h(),d})()},4104(ke,q,l){"use strict";l.d(q,{Q:()=>Z});var i=l(29330),g=l(21413),p=l(84412),D=l(7673),o=l(18810),e=l(99437),A=l(96354),h=l(56977),d=l(4416),w=l(12462),f=l(11771),F=l(2615),M=l(98570),K=l(59640),j=l(82571);let Z=(()=>{var ee;class V{constructor($,ie,_e,ye){this.httpClient=$,this.logger=ie,this.store=_e,this.commonService=ye,this.loopUrl="",this.swaps=[],this.swapsChanged=new p.t([]),this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}getLoopInfo(){return this.loopUrl=d.H$+d.rl.LOOP_API+"/info",this.httpClient.get(this.loopUrl)}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,f.mt)({payload:d.MZ.GET_LOOP_SWAPS})),this.loopUrl=d.H$+d.rl.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,h.Q)(this.unSubs[0])).subscribe({next:$=>{this.store.dispatch((0,f.y0)({payload:d.MZ.GET_LOOP_SWAPS})),this.swaps=$,this.swapsChanged.next(this.swaps)},error:$=>this.swapsChanged.error(this.handleErrorWithAlert(d.MZ.GET_LOOP_SWAPS,this.loopUrl,$))})}loopOut($,ie,_e,ye,se,pe,Ee,L,t,s){const m={amount:$,targetConf:_e,swapRoutingFee:ye,minerFee:se,prepayRoutingFee:pe,prepayAmt:Ee,swapFee:L,swapPublicationDeadline:t,destAddress:s};return""!==ie&&(m.chanId=ie),this.loopUrl=d.H$+d.rl.LOOP_API+"/out",this.httpClient.post(this.loopUrl,m).pipe((0,e.W)(u=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ie,d.MZ.NO_SPINNER,u)))}getLoopOutTerms(){return this.loopUrl=d.H$+d.rl.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,e.W)($=>this.handleErrorWithoutAlert("Loop Out Terms",d.MZ.NO_SPINNER,$)))}getLoopOutQuote($,ie,_e){let ye=new i.Nl;return ye=ye.append("targetConf",ie.toString()),ye=ye.append("swapPublicationDeadline",_e.toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/out/quote/"+$,this.store.dispatch((0,f.mt)({payload:d.MZ.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ye}).pipe((0,h.Q)(this.unSubs[1]),(0,A.T)(se=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_QUOTE})),se)),(0,e.W)(se=>this.handleErrorWithoutAlert("Loop Out Quote",d.MZ.GET_QUOTE,se)))}getLoopOutTermsAndQuotes($){let ie=new i.Nl;return ie=ie.append("targetConf",$.toString()),ie=ie.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,f.mt)({payload:d.MZ.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,h.Q)(this.unSubs[2]),(0,A.T)(_e=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_TERMS_QUOTES})),_e)),(0,e.W)(_e=>(0,D.of)(this.handleErrorWithAlert(d.MZ.GET_TERMS_QUOTES,this.loopUrl,_e))))}loopIn($,ie,_e,ye,se){const pe={amount:$,swapFee:ie,minerFee:_e,lastHop:ye,externalHtlc:se};return this.loopUrl=d.H$+d.rl.LOOP_API+"/in",this.httpClient.post(this.loopUrl,pe).pipe((0,e.W)(Ee=>this.handleErrorWithoutAlert("Loop In",d.MZ.NO_SPINNER,Ee)))}getLoopInTerms(){return this.loopUrl=d.H$+d.rl.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,e.W)($=>this.handleErrorWithoutAlert("Loop In Terms",d.MZ.NO_SPINNER,$)))}getLoopInQuote($,ie,_e){let ye=new i.Nl;return ye=ye.append("targetConf",ie.toString()),ye=ye.append("swapPublicationDeadline",_e.toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/in/quote/"+$,this.store.dispatch((0,f.mt)({payload:d.MZ.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ye}).pipe((0,h.Q)(this.unSubs[3]),(0,A.T)(se=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_QUOTE})),se)),(0,e.W)(se=>this.handleErrorWithoutAlert("Loop In Qoute",d.MZ.GET_QUOTE,se)))}getLoopInTermsAndQuotes($){let ie=new i.Nl;return ie=ie.append("targetConf",$.toString()),ie=ie.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,f.mt)({payload:d.MZ.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,h.Q)(this.unSubs[4]),(0,A.T)(_e=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_TERMS_QUOTES})),_e)),(0,e.W)(_e=>(0,D.of)(this.handleErrorWithAlert(d.MZ.GET_TERMS_QUOTES,this.loopUrl,_e))))}getSwap($){return this.loopUrl=d.H$+d.rl.LOOP_API+"/swap/"+$,this.httpClient.get(this.loopUrl).pipe((0,e.W)(ie=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+$,d.MZ.NO_SPINNER,ie)))}handleErrorWithoutAlert($,ie,_e){let ye="";return this.logger.error("ERROR IN: "+$+"\n"+JSON.stringify(_e)),this.store.dispatch((0,f.y0)({payload:ie})),401===_e.status?(ye="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.ri)({payload:ye}))):503===_e.status?(ye="Unable to Connect to Loop Server.",this.store.dispatch((0,f.xO)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:$},component:w.f}}}))):ye=this.commonService.extractErrorMessage(_e),(0,o.$)(()=>new Error(ye))}handleErrorWithAlert($,ie,_e){let ye="";if(this.logger.error(_e),this.store.dispatch((0,f.y0)({payload:$})),401===_e.status)ye="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.ri)({payload:ye}));else if(503===_e.status)ye="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:ie},component:w.f}}}))},100);else{ye=this.commonService.extractErrorMessage(_e);const se=_e.error&&_e.error.error&&_e.error.error.code?_e.error.error.code:_e.error&&_e.error.code?_e.error.code:_e.code?_e.code:_e.status;setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{type:d.A$.ERROR,alertTitle:"ERROR",message:{code:se,message:ye,URL:ie},component:w.f}}}))},100)}return{message:ye}}ngOnDestroy(){this.unSubs.forEach($=>{$.next(null),$.complete()})}static#e=ee=()=>(this.\u0275fac=function(ie){return new(ie||V)(F.KVO(i.Qq),F.KVO(M.gP),F.KVO(K.il),F.KVO(j.h))},this.\u0275prov=F.jDH({token:V,factory:V.\u0275fac}))}return ee(),V})()},53202(ke,q,l){"use strict";l.d(q,{Q:()=>p});var i=l(21413),g=l(2615);let p=(()=>{var D;class o{constructor(){this.sessionSub=new i.B}watchSession(){return this.sessionSub.asObservable()}getItem(A){return sessionStorage.getItem(A)}getAllItems(){return sessionStorage}setItem(A,h){sessionStorage.setItem(A,h),this.sessionSub.next(sessionStorage)}removeItem(A){sessionStorage.removeItem(A),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}static#e=D=()=>(this.\u0275fac=function(h){return new(h||o)},this.\u0275prov=g.jDH({token:o,factory:o.\u0275fac}))}return D(),o})()},7879(ke,q,l){"use strict";l.d(q,{I:()=>K});var i=l(84412),g=l(21413),p=l(56977),D=l(47707),o=l(71985),e=l(18359),A=l(92771);const h={url:"",deserializer:j=>JSON.parse(j.data),serializer:j=>JSON.stringify(j)};class w extends g.k{constructor(Z,ee){if(super(),this._socket=null,Z instanceof o.c)this.destination=ee,this.source=Z;else{const V=this._config=Object.assign({},h);if(this._output=new g.B,"string"==typeof Z)V.url=Z;else for(const Q in Z)Z.hasOwnProperty(Q)&&(V[Q]=Z[Q]);if(!V.WebSocketCtor&&WebSocket)V.WebSocketCtor=WebSocket;else if(!V.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new A.m}}lift(Z){const ee=new w(this._config,this.destination);return ee.operator=Z,ee.source=this,ee}_resetState(){this._socket=null,this.source||(this.destination=new A.m),this._output=new g.B}multiplex(Z,ee,V){const Q=this;return new o.c($=>{try{Q.next(Z())}catch(_e){$.error(_e)}const ie=Q.subscribe({next:_e=>{try{V(_e)&&$.next(_e)}catch(ye){$.error(ye)}},error:_e=>$.error(_e),complete:()=>$.complete()});return()=>{try{Q.next(ee())}catch(_e){$.error(_e)}ie.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Z,protocol:ee,url:V,binaryType:Q}=this._config,$=this._output;let ie=null;try{ie=ee?new Z(V,ee):new Z(V),this._socket=ie,Q&&(this._socket.binaryType=Q)}catch(ye){return void $.error(ye)}const _e=new e.yU(()=>{this._socket=null,ie&&1===ie.readyState&&ie.close()});ie.onopen=ye=>{const{_socket:se}=this;if(!se)return ie.close(),void this._resetState();const{openObserver:pe}=this._config;pe&&pe.next(ye);const Ee=this.destination;this.destination=D.vU.create(L=>{if(1===ie.readyState)try{const{serializer:t}=this._config;ie.send(t(L))}catch(t){this.destination.error(t)}},L=>{const{closingObserver:t}=this._config;t&&t.next(void 0),L&&L.code?ie.close(L.code,L.reason):$.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:L}=this._config;L&&L.next(void 0),ie.close(),this._resetState()}),Ee&&Ee instanceof A.m&&_e.add(Ee.subscribe(this.destination))},ie.onerror=ye=>{this._resetState(),$.error(ye)},ie.onclose=ye=>{ie===this._socket&&this._resetState();const{closeObserver:se}=this._config;se&&se.next(ye),ye.wasClean?$.complete():$.error(ye)},ie.onmessage=ye=>{try{const{deserializer:se}=this._config;$.next(se(ye))}catch(se){$.error(se)}}}_subscribe(Z){const{source:ee}=this;return ee?ee.subscribe(Z):(this._socket||this._connectSocket(),this._output.subscribe(Z),Z.add(()=>{const{_socket:V}=this;0===this._output.observers.length&&(V&&(1===V.readyState||0===V.readyState)&&V.close(),this._resetState())}),Z)}unsubscribe(){const{_socket:Z}=this;Z&&(1===Z.readyState||0===Z.readyState)&&Z.close(),this._resetState(),super.unsubscribe()}}var f=l(2615),F=l(98570),M=l(53202);let K=(()=>{var j;class Z{constructor(V,Q){this.logger=V,this.sessionService=Q,this.clWSMessages=new i.t(null),this.eclWSMessages=new i.t(null),this.lndWSMessages=new i.t(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}connectWebSocket(V,Q){(!this.socket||this.socket.closed)&&(this.wsUrl=V,this.nodeIndex=Q,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new w({url:V,protocol:[this.sessionService.getItem("token")||"",Q]}),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(){this.socket?.pipe((0,p.Q)(this.unSubs[1])).subscribe({next:V=>{if((V="string"==typeof V?JSON.parse(V):V).error)this.handleError(V.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(V)),V.source){case"LND":this.lndWSMessages.next(V);break;case"CLN":this.clWSMessages.next(V);break;case"ECL":this.eclWSMessages.next(V)}},error:V=>this.handleError(V),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(V){this.logger.error(V),this.clWSMessages.error(V),this.eclWSMessages.error(V),this.lndWSMessages.error(V),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()}static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)(f.KVO(F.gP),f.KVO(M.Q))},this.\u0275prov=f.jDH({token:Z,factory:Z.\u0275fac}))}return j(),Z})()},19029(ke,q,l){"use strict";l.d(q,{G:()=>Er});var i=l(72200),g=l(38132),p=l(89417),D=l(20060),o=l(99327),e=l(3),A=l(19945),h=l(51585),d=l(22628),w=l(1975),f=l(88834),F=l(89726),M=l(76838),V=(l(61577),l(83869),l(67336),l(10438),l(88968)),Q=l(73664),$=l(2615),ie=l(17705),_e=l(12496),ye=l(63386),se=l(31804),pe=l(32046),Ee=l(22466),L=l(26881);const t=["button"],s=["*"];function m(Kt,Vn){if(1&Kt&&(Q.j41(0,"div",2),Q.nrm(1,"mat-pseudo-checkbox",6),Q.k0s()),2&Kt){const _t=Q.XpG();Q.R7$(),Q.Y8G("disabled",_t.disabled)}}const u=new $.nKC("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:function _(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}}),T=new $.nKC("MatButtonToggleGroup");class C{source;value;constructor(Vn,_t){this.source=Vn,this.value=_t}}let x=(()=>{class Kt{_changeDetectorRef=(0,$.WQX)(ie.gRc);_elementRef=(0,$.WQX)(Q.aKT);_focusMonitor=(0,$.WQX)(M.FN);_idGenerator=(0,$.WQX)(F.g);_animationDisabled=(0,se.Rc)();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(_t){this._tabIndex.set(_t)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(_t){this._appearance=_t}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(_t){_t!==this._checked&&(this._checked=_t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(_t){this._disabled=_t}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||null!==this.buttonToggleGroup&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(_t){this._disabledInteractive=_t}_disabledInteractive;change=new Q.bkB;constructor(){(0,$.WQX)(V.l).load(pe.A);const _t=(0,$.WQX)(T,{optional:!0}),xn=(0,$.WQX)(new ie.ES_("tabindex"),{optional:!0})||"",Bn=(0,$.WQX)(u,{optional:!0});this._tabIndex=(0,$.vPA)(parseInt(xn)||0),this.buttonToggleGroup=_t,this.appearance=Bn&&Bn.appearance?Bn.appearance:"standard",this.disabledInteractive=Bn?.disabledInteractive??!1}ngOnInit(){const _t=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),_t&&(_t._isPrechecked(this)?this.checked=!0:_t._isSelected(this)!==this._checked&&_t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const _t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),_t&&_t._isSelected(this)&&_t._syncButtonToggle(this,!1,!1,!0)}focus(_t){this._buttonElement.nativeElement.focus(_t)}_onButtonClick(){if(this.disabled)return;const _t=!!this.isSingleSelector()||!this._checked;if(_t!==this._checked&&(this._checked=_t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){const xn=this.buttonToggleGroup._buttonToggles.find(Bn=>0===Bn.tabIndex);xn&&(xn.tabIndex=-1),this.tabIndex=0}this.change.emit(new C(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(xn){return new(xn||Kt)};static \u0275cmp=Q.VBU({type:Kt,selectors:[["mat-button-toggle"]],viewQuery:function(xn,Bn){if(1&xn&&Q.GBs(t,5),2&xn){let wi;Q.mGM(wi=Q.lsd())&&(Bn._buttonElement=wi.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(xn,Bn){1&xn&&Q.bIt("focus",function(){return Bn.focus()}),2&xn&&(Q.BMQ("aria-label",null)("aria-labelledby",null)("id",Bn.id)("name",null),Q.AVh("mat-button-toggle-standalone",!Bn.buttonToggleGroup)("mat-button-toggle-checked",Bn.checked)("mat-button-toggle-disabled",Bn.disabled)("mat-button-toggle-disabled-interactive",Bn.disabledInteractive)("mat-button-toggle-appearance-standard","standard"===Bn.appearance))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",ie.L39],appearance:"appearance",checked:[2,"checked","checked",ie.L39],disabled:[2,"disabled","disabled",ie.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",ie.L39]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:s,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(xn,Bn){if(1&xn){const wi=Q.RV6();Q.NAR(),Q.j41(0,"button",1,0),Q.bIt("click",function(){return $.eBV(wi),$.Njj(Bn._onButtonClick())}),Q.nVh(2,m,2,1,"div",2),Q.j41(3,"span",3),Q.SdG(4),Q.k0s()(),Q.nrm(5,"span",4)(6,"span",5)}if(2&xn){const wi=Q.sdS(1);Q.Y8G("id",Bn.buttonId)("disabled",Bn.disabled&&!Bn.disabledInteractive||null),Q.BMQ("role",Bn.isSingleSelector()?"radio":"button")("tabindex",Bn.disabled&&!Bn.disabledInteractive?-1:Bn.tabIndex)("aria-pressed",Bn.isSingleSelector()?null:Bn.checked)("aria-checked",Bn.isSingleSelector()?Bn.checked:null)("name",Bn._getButtonName())("aria-label",Bn.ariaLabel)("aria-labelledby",Bn.ariaLabelledby)("aria-disabled",Bn.disabled&&Bn.disabledInteractive?"true":null),Q.R7$(2),Q.vxM(Bn.buttonToggleGroup&&(!Bn.buttonToggleGroup.multiple&&!Bn.buttonToggleGroup.hideSingleSelectionIndicator||Bn.buttonToggleGroup.multiple&&!Bn.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),Q.R7$(4),Q.Y8G("matRippleTrigger",wi)("matRippleDisabled",Bn.disableRipple||Bn.disabled)}},dependencies:[_e.r6,ye.w],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}\n"],encapsulation:2,changeDetection:0})}return Kt})(),Y=(()=>{class Kt{static \u0275fac=function(xn){return new(xn||Kt)};static \u0275mod=Q.$C({type:Kt});static \u0275inj=$.G2t({imports:[Ee.y,L.p,x,Ee.y]})}return Kt})();var R=l(25596),U=l(82765),fe=l(25084),re=l(9454),he=l(82885),Oe=l(12629),ge=l(33746),ce=l(3902),Re=l(59115),Me=l(96695),ve=l(67575),oe=l(9183),Se=l(5951),be=l(96183),nt=l(90882),$e=l(30450),dt=l(39842);l(21413);let It=(()=>{class Kt{static \u0275fac=function(xn){return new(xn||Kt)};static \u0275mod=Q.$C({type:Kt});static \u0275inj=$.G2t({imports:[Ee.y,L.p]})}return Kt})();var wn=l(95416),In=l(2042),ei=l(36013),Li=l(19295),kt=l(96850),Ot=l(55911),Ze=l(86156),Ge=l(47358),Pt=l(36471),Yt=l(29340),bn=l(16038),$n=l(52920);l(14085);let Aa=(()=>{class Kt{}return Kt.\u0275fac=function(_t){return new(_t||Kt)},Kt.\u0275mod=Q.$C({type:Kt}),Kt.\u0275inj=$.G2t({imports:[Yt.Ui]}),Kt})();var Ha=l(60177);let ks=(()=>{class Kt{constructor(_t,xn){(0,Ha.Vy)(xn)&&!_t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(_t,xn=[]){return{ngModule:Kt,providers:_t.serverLoaded?[{provide:Yt.EA,useValue:{...Yt.PV,..._t}},{provide:Yt.SL,useValue:xn,multi:!0},{provide:Yt.Ce,useValue:!0}]:[{provide:Yt.EA,useValue:{...Yt.PV,..._t}},{provide:Yt.SL,useValue:xn,multi:!0}]}}}return Kt.\u0275fac=function(_t){return new(_t||Kt)($.KVO(Yt.Ce),$.KVO(Q.Agw))},Kt.\u0275mod=Q.$C({type:Kt}),Kt.\u0275inj=$.G2t({imports:[$n.w2,bn.Cc,Aa,$n.w2,bn.Cc,Aa]}),Kt})();var Rs=l(51993),Nr=l(38288),Ws=l(10497),Qr=l(49338);let Es=(()=>{var Kt;class Vn extends Qr.Sf{constructor(xn,Bn){super(xn,Bn)}_createContainer(){super._createContainer(),this._containerElement&&(document.querySelector("#rtl-container")||document.body).appendChild(this._containerElement)}ngOnDestroy(){super.ngOnDestroy()}static#e=Kt=()=>(this.\u0275fac=function(Bn){return new(Bn||Vn)(Q.rXU($.qQL),Q.rXU(dt.O))},this.\u0275dir=Q.FsC({type:Vn,features:[Q.Vt3]}))}return Kt(),Vn})();var ct=l(98570),pt=l(4416),Ve=l(52929),Rt=l(29330);const vn={suppressScrollX:!1,suppressScrollY:!1};let Ni=(()=>{var Kt;class Vn extends e.xW{constructor(xn){super(xn)}format(xn,Bn){if("input"===Bn){let wi=xn.getDate().toString();return wi=+wi<10?"0"+wi:wi,wi+"/"+pt.KR[xn.getMonth()].name.toUpperCase()+"/"+xn.getFullYear()}return pt.KR[xn.getMonth()].name.toUpperCase()+" "+xn.getFullYear()}static#e=Kt=()=>(this.\u0275fac=function(Bn){return new(Bn||Vn)($.KVO(A.Ju,8))},this.\u0275prov=$.jDH({token:Vn,factory:Vn.\u0275fac}))}return Kt(),Vn})();const ca={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 Er=(()=>{var Kt;class Vn{static#e=Kt=()=>(this.\u0275fac=function(Bn){return new(Bn||Vn)},this.\u0275mod=Q.$C({type:Vn}),this.\u0275inj=$.G2t({providers:[{provide:ct.gP,useClass:ct.tU},{provide:Ws.kU,useValue:vn},{provide:wn.x6,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:h.di,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog"}},{provide:A.MJ,useClass:Ni},{provide:A.de,useValue:ca},{provide:Qr.Sf,useClass:Es},i.QX,i.PV,i.vh,Ve.gZ,Ve.ZE,Ve.VD,Ve.Qu],imports:[i.MD,Rt.q1,p.YN,p.X1,D.dX,o.RH,h.hM,f.Hl,Y,R.Hu,U.g7,re.MY,he.Fe,fe.X6,e.WX,Oe.m_,ge.fS,ce.Fg,Re.Cn,ve.PO,oe.D6,Se.Wk,Ge.jH,ks,Pt.YN,be.Ve,nt.vg,$e.mV,In.NQ,Li.tP,Ot.s5,Ze.u,w.Y,Me.Ou,ei.aP,It,kt.RI,wn._T,d.jL,Rs.dV,Nr.XK,g.iI,Ws.U$,p.YN,p.X1,D.dX,o.RH,h.hM,f.Hl,Y,R.Hu,U.g7,re.MY,he.Fe,fe.X6,e.WX,Oe.m_,ge.fS,ce.Fg,Re.Cn,ve.PO,oe.D6,Se.Wk,Ge.jH,ks,Pt.YN,be.Ve,nt.vg,$e.mV,In.NQ,Li.tP,Ot.s5,Ze.u,w.Y,Me.Ou,ei.aP,It,kt.RI,wn._T,d.jL,Rs.dV,Nr.XK,Ws.U$]}))}return Kt(),Vn})()},11771(ke,q,l){"use strict";l.d(q,{Dz:()=>j,Fl:()=>se,Gd:()=>o,I1:()=>F,IK:()=>Q,Jh:()=>e,My:()=>D,NU:()=>V,Np:()=>_e,OP:()=>K,Qi:()=>$,R$:()=>f,T$:()=>ie,Tn:()=>ee,UI:()=>A,iD:()=>m,mt:()=>h,oz:()=>t,rc:()=>ye,ri:()=>pe,t2:()=>_,uP:()=>M,xO:()=>w,xw:()=>Ee,y0:()=>d});var i=l(59640),g=l(4416);(0,i.VP)(g.aU.VOID);const D=(0,i.VP)(g.aU.SET_API_URL_ECL,(0,i.xk)()),o=(0,i.VP)(g.aU.UPDATE_API_CALL_STATUS_ROOT,(0,i.xk)()),e=(0,i.VP)(g.aU.CLOSE_ALL_DIALOGS),A=(0,i.VP)(g.aU.OPEN_SNACK_BAR,(0,i.xk)()),h=(0,i.VP)(g.aU.OPEN_SPINNER,(0,i.xk)()),d=(0,i.VP)(g.aU.CLOSE_SPINNER,(0,i.xk)()),w=(0,i.VP)(g.aU.OPEN_ALERT,(0,i.xk)()),f=(0,i.VP)(g.aU.CLOSE_ALERT,(0,i.xk)()),F=(0,i.VP)(g.aU.OPEN_CONFIRMATION,(0,i.xk)()),M=(0,i.VP)(g.aU.CLOSE_CONFIRMATION,(0,i.xk)()),K=(0,i.VP)(g.aU.SHOW_PUBKEY),j=(0,i.VP)(g.aU.FETCH_CONFIG,(0,i.xk)()),ee=((0,i.VP)(g.aU.SHOW_CONFIG,(0,i.xk)()),(0,i.VP)(g.aU.RESET_ROOT_STORE,(0,i.xk)())),V=(0,i.VP)(g.aU.FETCH_APPLICATION_SETTINGS),Q=(0,i.VP)(g.aU.SET_APPLICATION_SETTINGS,(0,i.xk)()),$=(0,i.VP)(g.aU.SET_SELECTED_NODE,(0,i.xk)()),ie=(0,i.VP)(g.aU.UPDATE_NODE_SETTINGS,(0,i.xk)()),_e=(0,i.VP)(g.aU.SET_SELECTED_NODE_SETTINGS,(0,i.xk)()),ye=(0,i.VP)(g.aU.UPDATE_APPLICATION_SETTINGS,(0,i.xk)()),se=(0,i.VP)(g.aU.SET_NODE_DATA,(0,i.xk)()),pe=(0,i.VP)(g.aU.LOGOUT,(0,i.xk)()),Ee=(0,i.VP)(g.aU.RESET_PASSWORD,(0,i.xk)()),t=((0,i.VP)(g.aU.RESET_PASSWORD_RES,(0,i.xk)()),(0,i.VP)(g.aU.IS_AUTHORIZED,(0,i.xk)())),m=((0,i.VP)(g.aU.IS_AUTHORIZED_RES,(0,i.xk)()),(0,i.VP)(g.aU.LOGIN,(0,i.xk)())),_=((0,i.VP)(g.aU.VERIFY_TWO_FA,(0,i.xk)()),(0,i.VP)(g.aU.FETCH_FILE,(0,i.xk)()));(0,i.VP)(g.aU.SHOW_FILE,(0,i.xk)())},37541(ke,q,l){"use strict";l.d(q,{H:()=>ui});var i=l(17705),g=l(11747),p=l(21413),D=l(7673),o=l(96354),e=l(96697),A=l(53993),h=l(31397),d=l(99437),w=l(56977),f=l(4416),F=l(51585),M=l(73664),K=l(9183),j=l(52920);let Z=(()=>{var gn;class zn{constructor(Kn,ci){this.dialogRef=Kn,this.data=ci}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-spinner-dialog"]],standalone:!1,decls:4,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"spinner-container"],["color","primary","mode","indeterminate",1,"modal-spinner-message"]],template:function(ci,Xn){1&ci&&(M.j41(0,"div",0),M.nrm(1,"mat-progress-spinner",1),M.j41(2,"h2"),M.EFF(3),M.k0s()()),2&ci&&(M.R7$(3),M.JRh(Xn.data.titleMessage))},dependencies:[K.LG,j.DJ,j.sA],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]}))}return gn(),zn})();var ee=l(45383),V=l(79647),Q=l(2615),$=l(98570),ie=l(95416),_e=l(82571),ye=l(43694),se=l(59640),pe=l(72200),Ee=l(20060),L=l(88834),t=l(25596),s=l(12629),m=l(71997),u=l(16038),_=l(40455),T=l(38288),P=l(10497),C=l(29157),a=l(89587);const x=["scrollContainer"],Y=gn=>({"display-none":gn}),R=gn=>({"h-40":gn}),U=gn=>({"failed-status":gn});function fe(gn,zn){if(1&gn&&M.nrm(0,"qr-code",19),2&gn){const kn=M.XpG();M.Y8G("value",kn.showQRField)("size",200)}}function re(gn,zn){1&gn&&M.eu8(0)}function he(gn,zn){if(1&gn&&(M.qex(0),M.j41(1,"mat-card-content",20,1),M.DNE(3,re,1,0,"ng-container",21),M.k0s(),M.bVm()),2&gn){const kn=M.XpG(),Kn=M.sdS(20);M.R7$(),M.Y8G("ngClass",M.eq3(2,R,kn.data.scrollable)),M.R7$(2),M.Y8G("ngTemplateOutlet",Kn)}}function Oe(gn,zn){1&gn&&M.eu8(0)}function ge(gn,zn){if(1&gn&&(M.qex(0),M.j41(1,"mat-card-content",22),M.DNE(2,Oe,1,0,"ng-container",21),M.k0s(),M.bVm()),2&gn){M.XpG();const kn=M.sdS(20);M.R7$(2),M.Y8G("ngTemplateOutlet",kn)}}function ce(gn,zn){1&gn&&(M.j41(0,"mat-icon",27),M.EFF(1,"arrow_downward"),M.k0s())}function Re(gn,zn){1&gn&&(M.j41(0,"mat-icon",28),M.EFF(1,"arrow_upward"),M.k0s())}function Me(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"div",23)(1,"button",24),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onScroll())}),M.DNE(2,ce,2,0,"mat-icon",25)(3,Re,2,0,"mat-icon",26),M.k0s()()}if(2&gn){const kn=M.XpG();M.R7$(2),M.Y8G("ngIf","DOWN"===kn.scrollDirection),M.R7$(),M.Y8G("ngIf","UP"===kn.scrollDirection)}}function ve(gn,zn){1&gn&&(M.j41(0,"button",29),M.EFF(1,"OK"),M.k0s()),2&gn&&M.Y8G("mat-dialog-close",!1)}function oe(gn,zn){1&gn&&(M.j41(0,"button",30),M.EFF(1,"Close"),M.k0s()),2&gn&&M.Y8G("mat-dialog-close",!1)}function Se(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",31),M.bIt("copied",function(ci){Q.eBV(kn);const Xn=M.XpG();return Q.Njj(Xn.onCopyField(ci))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.Y8G("payload",kn.showCopyField),M.R7$(),M.SpI("Copy ",kn.showCopyName)}}function be(gn,zn){1&gn&&(M.j41(0,"button",30),M.EFF(1,"Close"),M.k0s()),2&gn&&M.Y8G("mat-dialog-close",!1)}function nt(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",31),M.bIt("copied",function(ci){Q.eBV(kn);const Xn=M.XpG();return Q.Njj(Xn.onCopyField(ci))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.Y8G("payload",kn.showQRField),M.R7$(),M.SpI("Copy ",kn.showQRName)}}function $e(gn,zn){if(1&gn&&M.nrm(0,"qr-code",19),2&gn){const kn=M.XpG(2);M.Y8G("value",kn.showQRField)("size",200)}}function dt(gn,zn){if(1&gn&&(M.j41(0,"p",37),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG(2);M.R7$(),M.JRh(kn.data.titleMessage)}}function yt(gn,zn){1&gn&&M.nrm(0,"span",51),2&gn&&M.Y8G("innerHTML",zn.$implicit,M.npT)}function Et(gn,zn){if(1&gn&&(M.qex(0),M.j41(1,"span",34),M.DNE(2,yt,1,1,"span",50),M.k0s(),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(2),M.Y8G("ngForOf",kn.value)}}function rt(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"date"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,1e3*kn.value,"dd/MMM/y HH:mm"))}}function Mn(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"number"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,kn.value,kn.digitsInfo?kn.digitsInfo:"1.0-3"))}}function qt(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(kn.value?"True":"False")}}function S(gn,zn){1&gn&&(M.j41(0,"mat-icon",55),M.EFF(1,"info"),M.k0s())}function Xt(gn,zn){if(1&gn&&(M.j41(0,"p",53),M.EFF(1),M.DNE(2,S,2,0,"mat-icon",54),M.k0s()),2&gn){const kn=M.XpG(3).$implicit,Kn=M.XpG(4);M.Y8G("ngClass",M.eq3(3,U,kn.value===Kn.LoopStateEnum.FAILED)),M.R7$(),M.SpI(" ",kn.value," "),M.R7$(),M.Y8G("ngIf",kn.value===Kn.LoopStateEnum.FAILED)}}function de(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"p",57),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG(8);return Q.Njj(ci.onGoToLink())}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG(4).$implicit,Kn=M.XpG(4);M.Y8G("matTooltip",M.mNQ("Go To "+Kn.goToName)),M.R7$(),M.SpI(" ",kn.value," ")}}function ae(gn,zn){if(1&gn&&M.EFF(0),2&gn){const kn=M.XpG(4).$implicit;M.SpI(" ",kn.value," ")}}function me(gn,zn){if(1&gn&&M.DNE(0,de,2,3,"p",56)(1,ae,1,1,"ng-template",null,4,M.C5r),2&gn){const kn=M.sdS(2),Kn=M.XpG(3).$implicit,ci=M.XpG(4);M.Y8G("ngIf",Kn.value===ci.goToFieldValue)("ngIfElse",kn)}}function Le(gn,zn){if(1&gn&&(M.qex(0),M.DNE(1,Xt,3,5,"p",52)(2,me,3,2,"ng-template",null,3,M.C5r),M.bVm()),2&gn){const kn=M.sdS(3),Kn=M.XpG(2).$implicit,ci=M.XpG(4);M.R7$(),M.Y8G("ngIf","SWAP"===ci.data.openedBy&&"state"===Kn.key)("ngIfElse",kn)}}function et(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"fa-icon",58),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG(2).$implicit,Xn=M.XpG(4);return Q.Njj(Xn.onExplorerClicked(ci))}),M.k0s()}if(2&gn){const kn=M.XpG(6);M.Y8G("matTooltip",M.mNQ("Link to "+kn.selNode.settings.blockExplorerUrl))("icon",kn.faUpRightFromSquare)}}function tn(gn,zn){if(1&gn&&(M.j41(0,"span")(1,"span",46),M.DNE(2,Et,3,1,"ng-container",47)(3,rt,3,4,"ng-container",47)(4,Mn,3,4,"ng-container",47)(5,qt,2,1,"ng-container",47)(6,Le,4,2,"ng-container",48),M.j41(7,"span"),M.DNE(8,et,1,3,"fa-icon",49),M.k0s()()()),2&gn){const kn=M.XpG().$implicit,Kn=M.XpG(4);M.R7$(),M.Y8G("ngSwitch",kn.type),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.ARRAY),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.DATE_TIME),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.NUMBER),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.BOOLEAN),M.R7$(3),M.Y8G("ngIf",kn.explorerLink&&""!==kn.explorerLink)}}function Vt(gn,zn){1&gn&&(M.j41(0,"span",59),M.EFF(1,"\xa0"),M.k0s())}function hn(gn,zn){if(1&gn&&(M.j41(0,"div",42)(1,"h4",43),M.EFF(2),M.k0s(),M.DNE(3,tn,9,6,"span",44)(4,Vt,2,0,"ng-template",null,2,M.C5r),M.nrm(6,"mat-divider",45),M.k0s()),2&gn){const kn=zn.$implicit,Kn=M.sdS(5);M.Y8G("fxFlex.gt-md",M.mNQ(kn.width)),M.R7$(2),M.JRh(kn.title),M.R7$(),M.Y8G("ngIf",kn&&(!!kn.value||0===kn.value))("ngIfElse",Kn)}}function En(gn,zn){if(1&gn&&(M.j41(0,"div")(1,"div",40),M.DNE(2,hn,7,5,"div",41),M.k0s()()),2&gn){const kn=zn.$implicit;M.R7$(2),M.Y8G("ngForOf",kn)}}function _n(gn,zn){if(1&gn&&(M.j41(0,"div",38),M.DNE(1,En,3,1,"div",39),M.k0s()),2&gn){const kn=M.XpG(2);M.R7$(),M.Y8G("ngForOf",kn.messageObjs)}}function tt(gn,zn){if(1&gn&&(M.j41(0,"div",32)(1,"div",33),M.DNE(2,$e,1,2,"qr-code",7),M.k0s(),M.j41(3,"div",34),M.DNE(4,dt,2,1,"p",35)(5,_n,2,1,"div",36),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("ngClass",M.eq3(4,Y,""===kn.showQRField||kn.screenSize!==kn.screenSizeEnum.XS&&kn.screenSize!==kn.screenSizeEnum.SM)),M.R7$(),M.Y8G("ngIf",""!==kn.showQRField),M.R7$(2),M.Y8G("ngIf",kn.data.titleMessage),M.R7$(),M.Y8G("ngIf",(null==kn.messageObjs?null:kn.messageObjs.length)>0)}}let Fe=(()=>{var gn;class zn{set container(Kn){Kn&&(this.scrollContainer=Kn,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",ci=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",ci=>{this.scrollDirection="DOWN"})))}constructor(Kn,ci,Xn,aa,sa,ma,ua,dn){this.dialogRef=Kn,this.data=ci,this.logger=Xn,this.snackBar=aa,this.commonService=sa,this.renderer=ma,this.router=ua,this.store=dn,this.faUpRightFromSquare=ee.k02,this.LoopStateEnum=f.Hx,this.goToFieldValue="",this.goToName="",this.goToLink="",this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=f.A$,this.dataTypeEnum=f.UN,this.screenSize="",this.screenSizeEnum=f.f7,this.scrollDirection="DOWN",this.shouldScroll=!0,this.unSubs=[new p.B,new p.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.goToFieldValue=this.data.goToFieldValue?this.data.goToFieldValue:"",this.goToName=this.data.goToName?this.data.goToName:"",this.goToLink=this.data.goToLink?this.data.goToLink:"",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===f.A$.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs),this.store.select(V._c).pipe((0,w.Q)(this.unSubs[0])).subscribe(Kn=>{this.selNode=Kn,this.logger.info(this.selNode)})}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(Kn){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+Kn)}onClose(){this.dialogRef.close(!1)}onGoToLink(){this.router.navigateByUrl(this.goToLink,{state:{lookupType:"0",lookupValue:this.goToFieldValue}}),this.onClose()}onExplorerClicked(Kn){window.open(this.selNode.settings.blockExplorerUrl+"/"+Kn.explorerLink+"/"+Kn.value,"_blank")}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd(),this.unSubs.forEach(Kn=>{Kn.next(null),Kn.complete()})}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh),M.rXU($.gP),M.rXU(ie.UG),M.rXU(_e.h),M.rXU(M.sFG),M.rXU(ye.Ix),M.rXU(se.il))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-alert-message"]],viewQuery:function(ci,Xn){if(1&ci&&M.GBs(x,5),2&ci){let aa;M.mGM(aa=M.lsd())&&(Xn.container=aa.first)}},standalone:!1,decls:21,vars:14,consts:[["contentBlock",""],["scrollContainer",""],["emptyField",""],["noStyleBlock",""],["noStyleChild",""],["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"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],[3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center 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"],["errorCorrectionLevel","L",3,"value","size"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],[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"],["class","arrow-downward","fxLayoutAlign","center center",4,"ngIf"],["class","arrow-upward","fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center",1,"arrow-downward"],["fxLayoutAlign","center center",1,"arrow-upward"],["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,"copied","payload"],["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"],[1,"w-100","my-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","ml-1 fa-icon-primary",3,"matTooltip","icon","click",4,"ngIf"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxLayout","row","class","go-to-link","tabindex","4",3,"matTooltip","click",4,"ngIf","ngIfElse"],["fxLayout","row","tabindex","4",1,"go-to-link",3,"click","matTooltip"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(ci,Xn){if(1&ci){const aa=M.RV6();M.j41(0,"div",5)(1,"div",6),M.DNE(2,fe,1,2,"qr-code",7),M.k0s(),M.j41(3,"div",8)(4,"mat-card-header",9)(5,"div",10)(6,"span",11),M.EFF(7),M.k0s()(),M.j41(8,"button",12),M.bIt("click",function(){return Q.eBV(aa),Q.Njj(Xn.onClose())}),M.EFF(9,"X"),M.k0s()(),M.DNE(10,he,4,4,"ng-container",13)(11,ge,3,1,"ng-container",13)(12,Me,4,2,"div",14),M.j41(13,"div",15),M.DNE(14,ve,2,1,"button",16)(15,oe,2,1,"button",17)(16,Se,2,2,"button",18)(17,be,2,1,"button",17)(18,nt,2,2,"button",18),M.k0s()()(),M.DNE(19,tt,6,6,"ng-template",null,0,M.C5r)}2&ci&&(M.R7$(),M.Y8G("ngClass",M.eq3(12,Y,""===Xn.showQRField||Xn.screenSize===Xn.screenSizeEnum.XS||Xn.screenSize===Xn.screenSizeEnum.SM)),M.R7$(),M.Y8G("ngIf",""!==Xn.showQRField),M.R7$(),M.Y8G("ngClass",""===Xn.showQRField||Xn.screenSize===Xn.screenSizeEnum.XS||Xn.screenSize===Xn.screenSizeEnum.SM?"flex-100":"flex-70"),M.R7$(4),M.JRh(Xn.data.alertTitle||Xn.alertTypeEnum[Xn.data.type]),M.R7$(3),M.Y8G("ngIf",Xn.data.scrollable),M.R7$(),M.Y8G("ngIf",!Xn.data.scrollable),M.R7$(),M.Y8G("ngIf",Xn.data.scrollable&&Xn.shouldScroll),M.R7$(2),M.Y8G("ngIf",(!Xn.showQRField||""===Xn.showQRField)&&""===Xn.showCopyName),M.R7$(),M.Y8G("ngIf",""!==Xn.showCopyName),M.R7$(),M.Y8G("ngIf",""!==Xn.showCopyName),M.R7$(),M.Y8G("ngIf",""!==Xn.showQRField),M.R7$(),M.Y8G("ngIf",""!==Xn.showQRField))},dependencies:[pe.YU,pe.Sq,pe.bT,pe.T3,pe.ux,pe.e1,pe.fG,Ee.aY,F.tx,L.$z,L.$0,t.m2,t.MM,s.An,m.q,j.DJ,j.sA,j.UI,u.PW,_.oV,T.Um,P.Ld,C.U,a.N,pe.QX,pe.vh],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}))}return gn(),zn})();var Pe=l(11771),Ue=l(89417),Qe=l(33746),Ie=l(69588),le=l(56114);function Ne(gn,zn){if(1&gn&&(M.j41(0,"div",20),M.nrm(1,"fa-icon",21),M.j41(2,"span"),M.EFF(3),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("icon",kn.faExclamationTriangle),M.R7$(2),M.JRh(kn.warningMessage)}}function ze(gn,zn){if(1&gn&&(M.j41(0,"div",22),M.nrm(1,"fa-icon",21),M.j41(2,"span"),M.EFF(3),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("icon",kn.faInfoCircle),M.R7$(2),M.JRh(kn.informationMessage)}}function Je(gn,zn){if(1&gn&&(M.j41(0,"p",23),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG();M.R7$(),M.JRh(kn.data.titleMessage)}}function gt(gn,zn){1&gn&&M.nrm(0,"div",37),2&gn&&M.Y8G("innerHTML",zn.$implicit,M.npT)}function zt(gn,zn){if(1&gn&&(M.qex(0,35),M.DNE(1,gt,1,1,"div",36),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.Y8G("ngForOf",kn.value)}}function Ye(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"date"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,1e3*kn.value,"dd/MMM/y HH:mm"))}}function st(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"number"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,kn.value,"1.0-3"))}}function it(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(!0===kn.value?"True":"False")}}function He(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(kn.value)}}function Wt(gn,zn){if(1&gn&&(M.j41(0,"span")(1,"span",31),M.DNE(2,zt,2,1,"ng-container",32)(3,Ye,3,4,"ng-container",33)(4,st,3,4,"ng-container",33)(5,it,2,1,"ng-container",33)(6,He,2,1,"ng-container",34),M.k0s()()),2&gn){const kn=M.XpG().$implicit,Kn=M.XpG(3);M.R7$(),M.Y8G("ngSwitch",kn.type),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.ARRAY),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.DATE_TIME),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.NUMBER),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.BOOLEAN)}}function we(gn,zn){1&gn&&(M.j41(0,"span",38),M.EFF(1,"\xa0"),M.k0s())}function We(gn,zn){if(1&gn&&(M.j41(0,"div",27)(1,"h4",28),M.EFF(2),M.k0s(),M.DNE(3,Wt,7,5,"span",29)(4,we,2,0,"ng-template",null,0,M.C5r),M.nrm(6,"mat-divider",30),M.k0s()),2&gn){const kn=zn.$implicit,Kn=M.sdS(5);M.Y8G("fxFlex.gt-md",M.mNQ(kn.width)),M.R7$(2),M.JRh(kn.title),M.R7$(),M.Y8G("ngIf",kn&&(!!kn.value||0===kn.value))("ngIfElse",Kn)}}function Lt(gn,zn){if(1&gn&&(M.j41(0,"div")(1,"div",25),M.DNE(2,We,7,5,"div",26),M.k0s()()),2&gn){const kn=zn.$implicit;M.R7$(2),M.Y8G("ngForOf",kn)}}function St(gn,zn){if(1&gn&&(M.j41(0,"div"),M.DNE(1,Lt,3,1,"div",24),M.k0s()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("ngForOf",kn.messageObjs)}}function At(gn,zn){if(1&gn&&(M.j41(0,"p",23),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG(2);M.R7$(),M.JRh(kn.data.titleMessage)}}function fn(gn,zn){if(1&gn&&(M.j41(0,"mat-error"),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.SpI("",kn.placeholder," is required.")}}function mt(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"mat-form-field",42)(1,"mat-label"),M.EFF(2),M.k0s(),M.j41(3,"input",43),M.nI1(4,"lowercase"),M.mxI("ngModelChange",function(ci){Q.eBV(kn);const Xn=M.XpG().$implicit;return M.DH7(Xn.inputValue,ci)||(Xn.inputValue=ci),Q.Njj(ci)}),M.k0s(),M.DNE(5,fn,2,1,"mat-error",13),M.j41(6,"mat-hint"),M.EFF(7),M.k0s()()}if(2&gn){const kn=M.XpG(),Kn=kn.$implicit,ci=kn.index;M.Y8G("ngClass",Kn.width),M.R7$(2),M.JRh(Kn.placeholder),M.R7$(),M.Y8G("name",M.VkB("input",ci))("autoFocus",0===ci)("min",Kn.min)("step",Kn.step)("type",M.bMT(4,12,Kn.inputType))("tabindex",ci+1),M.R50("ngModel",Kn.inputValue),M.R7$(2),M.Y8G("ngIf",!Kn.inputValue),M.R7$(2),M.JRh(Kn.hintFunction?Kn.hintFunction(Kn.inputValue):Kn.hintText)}}function It(gn,zn){if(1&gn&&(M.qex(0),M.DNE(1,mt,8,14,"mat-form-field",41),M.bVm()),2&gn){const kn=zn.$implicit,Kn=M.XpG(2);M.R7$(),M.Y8G("ngIf",!kn.advancedField||Kn.showAdvanced)}}function wn(gn,zn){if(1&gn&&(M.j41(0,"div",39),M.DNE(1,At,2,1,"p",12),M.j41(2,"div",40),M.DNE(3,It,2,1,"ng-container",24),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("ngIf",kn.data.titleMessage),M.R7$(2),M.Y8G("ngForOf",kn.getInputs)}}function In(gn,zn){1&gn&&(M.j41(0,"p"),M.EFF(1,"Show Advanced"),M.k0s())}function ei(gn,zn){1&gn&&(M.j41(0,"p"),M.EFF(1,"Hide Advanced"),M.k0s())}function Li(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",44),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onShowAdvanced())}),M.DNE(1,In,2,0,"p",29)(2,ei,2,0,"ng-template",null,1,M.C5r),M.k0s()}if(2&gn){const kn=M.sdS(3),Kn=M.XpG();M.R7$(),M.Y8G("ngIf",!Kn.showAdvanced)("ngIfElse",kn)}}function kt(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",45),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onClose(ci.getInputs))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.R7$(),M.JRh(kn.yesBtnText)}}function Ot(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",46),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onClose(!0))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.R7$(),M.JRh(kn.yesBtnText)}}let Ze=(()=>{var gn;class zn{constructor(Kn,ci,Xn,aa){this.dialogRef=Kn,this.data=ci,this.logger=Xn,this.store=aa,this.faInfoCircle=ee.iW_,this.faExclamationTriangle=ee.zpE,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=f.A$,this.dataTypeEnum=f.UN,this.getInputs=[{placeholder:"",inputType:f.UN.STRING,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===f.A$.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(Kn){if(Kn&&this.getInputs&&this.getInputs.some(ci=>typeof ci.inputValue>"u"))return!0;!this.showAdvanced&&Kn.length&&(Kn=Kn?.reduce((ci,Xn)=>(Xn.advancedField||ci.push(Xn),ci),[])),this.store.dispatch((0,Pe.uP)({payload:Kn}))}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh),M.rXU($.gP),M.rXU(se.il))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-confirmation-message"]],standalone:!1,decls:21,vars:10,consts:[["emptyField",""],["hideAdvancedText",""],["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 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"],[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,"ngClass",4,"ngIf"],[3,"ngClass"],["matInput","","required","",3,"ngModelChange","name","autoFocus","min","step","type","tabindex","ngModel"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["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(ci,Xn){1&ci&&(M.j41(0,"div",2)(1,"div",3)(2,"mat-card-header",4)(3,"div",5)(4,"span",6),M.EFF(5),M.k0s()(),M.j41(6,"button",7),M.bIt("click",function(){return Xn.onClose(!1)}),M.EFF(7,"X"),M.k0s()(),M.j41(8,"mat-card-content",8)(9,"form",9),M.DNE(10,Ne,4,2,"div",10)(11,ze,4,2,"div",11)(12,Je,2,1,"p",12)(13,St,2,1,"div",13)(14,wn,4,2,"div",14),M.j41(15,"div",15)(16,"button",16),M.bIt("click",function(){return Xn.onClose(!1)}),M.EFF(17),M.k0s(),M.DNE(18,Li,4,2,"button",17)(19,kt,2,1,"button",18)(20,Ot,2,1,"button",19),M.k0s()()()()()),2&ci&&(M.R7$(5),M.JRh(Xn.data.alertTitle||Xn.alertTypeEnum[Xn.data.type]),M.R7$(5),M.Y8G("ngIf",Xn.warningMessage&&""!==Xn.warningMessage),M.R7$(),M.Y8G("ngIf",Xn.informationMessage&&""!==Xn.informationMessage),M.R7$(),M.Y8G("ngIf",Xn.data.titleMessage&&!Xn.flgShowInput),M.R7$(),M.Y8G("ngIf",(null==Xn.messageObjs?null:Xn.messageObjs.length)>0),M.R7$(),M.Y8G("ngIf",Xn.flgShowInput),M.R7$(3),M.JRh(Xn.noBtnText),M.R7$(),M.Y8G("ngIf",Xn.hasAdvanced),M.R7$(),M.Y8G("ngIf",Xn.flgShowInput),M.R7$(),M.Y8G("ngIf",!Xn.flgShowInput))},dependencies:[pe.YU,pe.Sq,pe.bT,pe.ux,pe.e1,pe.fG,Ue.qT,Ue.me,Ue.BC,Ue.cb,Ue.YS,Ue.vS,Ue.cV,Ee.aY,L.$z,t.m2,t.MM,Qe.fg,Ie.rl,Ie.nJ,Ie.MV,Ie.TL,m.q,j.DJ,j.sA,j.UI,u.PW,a.N,le.V,pe.GH,pe.QX,pe.vh],encapsulation:2}))}return gn(),zn})();var Ge=l(12462),Pt=l(96183),Yt=l(23029);const bn=gn=>({"display-none":gn});function $n(gn,zn){if(1&gn&&(M.j41(0,"mat-option",23),M.EFF(1),M.k0s()),2&gn){const kn=zn.$implicit;M.Y8G("value",kn),M.R7$(),M.SpI(" ",kn.infoName," ")}}function oi(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"div",13)(1,"mat-form-field",20)(2,"mat-label"),M.EFF(3,"Info Type"),M.k0s(),M.j41(4,"mat-select",21),M.mxI("valueChange",function(ci){Q.eBV(kn);const Xn=M.XpG();return M.DH7(Xn.selInfoType,ci)||(Xn.selInfoType=ci),Q.Njj(ci)}),M.DNE(5,$n,2,2,"mat-option",22),M.k0s()()()}if(2&gn){const kn=M.XpG();M.R7$(4),M.R50("value",kn.selInfoType),M.R7$(),M.Y8G("ngForOf",kn.infoTypes)}}let Ii=(()=>{var gn;class zn{constructor(Kn,ci,Xn,aa,sa){this.dialogRef=Kn,this.data=ci,this.logger=Xn,this.snackBar=aa,this.commonService=sa,this.faReceipt=ee.Mf0,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=f.f7}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((Kn,ci)=>{this.infoTypes.push({infoID:ci+1,infoKey:"node URI "+(ci+1),infoName:"Node URI "+(ci+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(Kn){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+Kn)}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh),M.rXU($.gP),M.rXU(ie.UG),M.rXU(_e.h))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-show-pubkey"]],standalone:!1,decls:26,vars:20,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"],["errorCorrectionLevel","L",3,"value","size"],["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"],["fxFlex","5","fxLayoutAlign","center 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","type","submit","rtlClipboard","",3,"copied","payload"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(ci,Xn){1&ci&&(M.j41(0,"div",0)(1,"div",1),M.nrm(2,"qr-code",2),M.k0s(),M.j41(3,"div",3)(4,"mat-card-header",4)(5,"div",5),M.nrm(6,"fa-icon",6),M.j41(7,"span",7),M.EFF(8),M.k0s()(),M.j41(9,"button",8),M.bIt("click",function(){return Xn.onClose()}),M.EFF(10,"X"),M.k0s()(),M.j41(11,"mat-card-content",9)(12,"div",10)(13,"div",11),M.nrm(14,"qr-code",2),M.k0s(),M.DNE(15,oi,6,2,"div",12),M.j41(16,"div",13)(17,"div",14)(18,"h4",15),M.EFF(19),M.k0s(),M.j41(20,"span",16),M.EFF(21),M.k0s()()(),M.nrm(22,"mat-divider",17),M.j41(23,"div",18)(24,"button",19),M.bIt("copied",function(sa){return Xn.onCopyPubkey(sa)}),M.EFF(25),M.k0s()()()()()()),2&ci&&(M.R7$(),M.Y8G("ngClass",M.eq3(16,bn,Xn.screenSize===Xn.screenSizeEnum.XS||Xn.screenSize===Xn.screenSizeEnum.SM)),M.R7$(),M.Y8G("value",M.mNQ(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1]))("size",Xn.qrWidth),M.R7$(4),M.Y8G("icon",Xn.faReceipt),M.R7$(2),M.JRh(Xn.selInfoType.infoName),M.R7$(5),M.Y8G("ngClass",M.eq3(18,bn,Xn.screenSize!==Xn.screenSizeEnum.XS&&Xn.screenSize!==Xn.screenSizeEnum.SM)),M.R7$(),M.Y8G("value",M.mNQ(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1]))("size",Xn.qrWidth),M.R7$(),M.Y8G("ngIf",Xn.information.uris&&Xn.information.uris.length>0),M.R7$(4),M.JRh(Xn.selInfoType.infoName),M.R7$(2),M.JRh(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1]),M.R7$(3),M.Y8G("payload",M.mNQ(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1])),M.R7$(),M.SpI("Copy ",Xn.selInfoType.infoKey))},dependencies:[pe.YU,pe.Sq,pe.bT,Ee.aY,L.$z,t.m2,t.MM,Ie.rl,Ie.nJ,m.q,j.DJ,j.sA,j.UI,u.PW,Pt.VO,Yt.wT,T.Um,C.U,a.N],encapsulation:2}))}return gn(),zn})();var Ei=l(190),Nt=l(28430),nn=l(95428),en=l(29330),Nn=l(7879),jn=l(53202),Un=l(51534);let ui=(()=>{var gn;class zn{constructor(Kn,ci,Xn,aa,sa,ma,ua,dn,Ln,Zn,hi){this.actions=Kn,this.httpClient=ci,this.store=Xn,this.logger=aa,this.wsService=sa,this.sessionService=ma,this.commonService=ua,this.dataService=dn,this.dialog=Ln,this.snackBar=Zn,this.router=hi,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new p.B,new p.B],this.closeAllDialogs=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_ALL_DIALOGS),(0,o.T)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_SNACK_BAR),(0,o.T)(Gn=>{"string"==typeof Gn.payload?this.snackBar.open(Gn.payload):this.snackBar.open(Gn.payload.message,"","ERROR"===Gn.payload.type?{duration:Gn.payload.duration?Gn.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Gn.payload.type?{duration:Gn.payload.duration?Gn.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Gn.payload.duration?Gn.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_SPINNER),(0,o.T)(Gn=>{Gn.payload!==f.MZ.NO_SPINNER&&(this.dialogRef=this.dialog.open(Z,{panelClass:"spinner-dialog-panel",data:{titleMessage:Gn.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_SPINNER),(0,o.T)(Gn=>{if(Gn.payload!==f.MZ.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Gn.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Jn=>{Jn.componentInstance&&Jn.componentInstance.data&&Jn.componentInstance.data.titleMessage&&Jn.componentInstance.data.titleMessage===Gn.payload&&Jn.close()})}catch(Jn){this.logger.error(Jn)}})),{dispatch:!1}),this.openAlert=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_ALERT),(0,o.T)(Gn=>{const Jn=JSON.parse(JSON.stringify(Gn.payload));Jn.width||(Jn.width=this.alertWidth),this.dialogRef=this.dialog.open(Gn.payload.data.component?Gn.payload.data.component:Fe,Jn)})),{dispatch:!1}),this.closeAlert=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_ALERT),(0,o.T)(Gn=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Gn.payload),Gn.payload))),{dispatch:!1}),this.openConfirm=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_CONFIRMATION),(0,o.T)(Gn=>{const Jn=JSON.parse(JSON.stringify(Gn.payload));Jn.width||(Jn.width=this.confirmWidth),this.dialogRef=this.dialog.open(Ze,Jn)})),{dispatch:!1}),this.closeConfirm=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_CONFIRMATION),(0,e.s)(1),(0,o.T)(Gn=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Gn.payload),Gn.payload))),{dispatch:!1}),this.showNodePubkey=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SHOW_PUBKEY),(0,A.E)(this.store.select(V.N)),(0,h.Z)(([Gn,Jn])=>(this.sessionService.getItem("token")&&Jn.identity_pubkey?this.store.dispatch((0,Pe.xO)({payload:{data:{information:Jn,component:Ii}}})):this.snackBar.open("Node Pubkey does not exist."),(0,D.of)({type:f.aU.VOID}))))),this.appConfigFetch=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.FETCH_APPLICATION_SETTINGS),(0,h.Z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.f7.XS||this.screenSize===f.f7.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===f.f7.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="50%",this.confirmWidth="53%"),this.store.dispatch((0,Pe.mt)({payload:f.MZ.GET_RTL_CONFIG})),this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchRTLConfig",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.CONF_API))),(0,o.T)(Gn=>{this.logger.info(Gn),this.store.dispatch((0,Pe.y0)({payload:f.MZ.GET_RTL_CONFIG})),this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchRTLConfig",status:f.wn.COMPLETED}}));let Jn=null;return Gn.nodes.forEach(Bi=>{Bi.settings.currencyUnits=[...f.A0,Bi.settings?.currencyUnit?Bi.settings?.currencyUnit:""],+(Bi.index||-1)===Gn.selectedNodeIndex&&(Jn=Bi)}),Jn?(this.store.dispatch((0,Pe.Qi)({payload:{uiMessage:f.MZ.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Jn,isInitialSetup:!0}})),{type:f.aU.SET_APPLICATION_SETTINGS,payload:Gn}):{type:f.aU.VOID}}),(0,d.W)(Gn=>(this.handleErrorWithAlert("FetchRTLConfig",f.MZ.GET_RTL_CONFIG,"Fetch RTL Config Failed!",f.rl.CONF_API,Gn),(0,D.of)({type:f.aU.VOID}))))),this.updateNodeSettings=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.UPDATE_NODE_SETTINGS),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.UPDATE_NODE_SETTINGS})),this.store.dispatch((0,Pe.Gd)({payload:{action:"updateNodeSettings",status:f.wn.INITIATED}})),Gn.payload.settings.fiatConversion||delete Gn.payload.settings.currencyUnit,delete Gn.payload.settings.currencyUnits,this.httpClient.post(f.rl.CONF_API+"/node",Gn.payload).pipe((0,o.T)(Jn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"updateNodeSettings",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.UPDATE_NODE_SETTINGS})),Jn.settings.currencyUnits=[...f.A0,Jn.settings?.currencyUnit?Jn.settings?.currencyUnit:""],this.store.dispatch((0,Pe.Np)({payload:Jn})),{type:f.aU.OPEN_SNACK_BAR,payload:"Node settings updated successfully!"})),(0,d.W)(Jn=>(this.handleErrorWithAlert("updateNodeSettings",f.MZ.UPDATE_NODE_SETTINGS,"Update Node Settings Failed!",f.rl.CONF_API+"/node",Jn),(0,D.of)({type:f.aU.VOID})))))))),this.updateApplicationSettings=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.UPDATE_APPLICATION_SETTINGS),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.UPDATE_APPLICATION_SETTINGS})),this.store.dispatch((0,Pe.Gd)({payload:{action:"updateApplicationSettings",status:f.wn.INITIATED}})),Gn.payload.config.nodes.forEach(Jn=>{delete Jn.settings.currencyUnits}),this.httpClient.post(f.rl.CONF_API+"/application",Gn.payload.config).pipe((0,o.T)(Jn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"updateApplicationSettings",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.UPDATE_APPLICATION_SETTINGS})),Gn.payload.showSnackBar&&this.store.dispatch((0,Pe.UI)({payload:Gn.payload.message})),{type:f.aU.SET_APPLICATION_SETTINGS,payload:Jn})),(0,d.W)(Jn=>(this.handleErrorWithAlert("updateApplicationSettings",f.MZ.UPDATE_APPLICATION_SETTINGS,"Update Application Settings Failed!",f.rl.CONF_API+"/application",Jn),(0,D.of)({type:f.aU.VOID})))))))),this.configFetch=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.FETCH_CONFIG),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.OPEN_CONFIG_FILE})),this.store.dispatch((0,Pe.Gd)({payload:{action:"fetchConfig",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.CONF_API+"/config/"+Gn.payload).pipe((0,o.T)(Jn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"fetchConfig",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.OPEN_CONFIG_FILE})),{type:f.aU.SHOW_CONFIG,payload:Jn})),(0,d.W)(Jn=>(this.handleErrorWithAlert("fetchConfig",f.MZ.OPEN_CONFIG_FILE,"Fetch Config Failed!",f.rl.CONF_API+"/config/"+Gn.payload,Jn),(0,D.of)({type:f.aU.VOID})))))))),this.showLnConfig=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SHOW_CONFIG),(0,o.T)(Gn=>Gn.payload)),{dispatch:!1}),this.isAuthorized=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.IS_AUTHORIZED),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"IsAuthorized",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API,{authenticateWith:Gn.payload&&""!==Gn.payload.trim()?f.U1.PASSWORD:f.U1.JWT,authenticationValue:Gn.payload&&""!==Gn.payload.trim()?Gn.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,o.T)(Jn=>(this.logger.info(Jn),this.store.dispatch((0,Pe.Gd)({payload:{action:"IsAuthorized",status:f.wn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:f.aU.IS_AUTHORIZED_RES,payload:Jn})),(0,d.W)(Jn=>(this.handleErrorWithAlert("IsAuthorized",f.MZ.NO_SPINNER,"Authorization Failed",f.rl.AUTHENTICATE_API,Jn),(0,D.of)({type:f.aU.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.IS_AUTHORIZED_RES),(0,o.T)(Gn=>Gn.payload)),{dispatch:!1}),this.authLogin=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.LOGIN),(0,A.E)(this.store.select(V.qv)),(0,h.Z)(([Gn,Jn])=>(this.store.dispatch((0,Ei.p1)()),this.store.dispatch((0,Nt.gf)()),this.store.dispatch((0,nn.Hh)()),this.store.dispatch((0,Pe.Gd)({payload:{action:"Login",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API,{authenticateWith:"disabledAuth"===Gn.payload.password?f.U1.NOAUTH:Gn.payload.password?f.U1.PASSWORD:f.U1.JWT,authenticationValue:Gn.payload.password?Gn.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Gn.payload.twoFAToken?Gn.payload.twoFAToken:""}).pipe((0,o.T)(Bi=>{this.logger.info(Bi),this.store.dispatch((0,Pe.Gd)({payload:{action:"Login",status:f.wn.COMPLETED}})),this.setLoggedInDetails(Gn.payload.defaultPassword,Bi)}),(0,d.W)(Bi=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",f.MZ.NO_SPINNER,Bi),+Jn.SSO.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:Bi.error&&Bi.error.error?Bi.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"],{state:{logoutReason:Bi.error&&Bi.error.error?Bi.error.error:"Single Sign On Failed!"}}),(0,D.of)({type:f.aU.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.VERIFY_TWO_FA),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.VERIFY_TOKEN})),this.store.dispatch((0,Pe.Gd)({payload:{action:"VerifyToken",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API+"/token",{authentication2FA:Gn.payload.token}).pipe((0,o.T)(Jn=>{this.logger.info(Jn),this.store.dispatch((0,Pe.y0)({payload:f.MZ.VERIFY_TOKEN})),this.store.dispatch((0,Pe.Gd)({payload:{action:"VerifyToken",status:f.wn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Gn.payload.authResponse)}),(0,d.W)(Jn=>(this.handleErrorWithAlert("VerifyToken",f.MZ.VERIFY_TOKEN,"Authorization Failed!",f.rl.AUTHENTICATE_API+"/token",Jn),(0,D.of)({type:f.aU.VOID}))))))),{dispatch:!1}),this.logOut=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.LOGOUT),(0,A.E)(this.store.select(V.qv)),(0,h.Z)(([Gn,Jn])=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.LOG_OUT})),Jn.SSO&&+Jn.SSO.rtlSSO?window.location.href=Jn.SSO.logoutRedirectLink:this.router.navigate(["./login"],{state:{logoutReason:Gn.payload}}),this.sessionService.clearAll(),this.store.dispatch((0,Pe.Fl)({payload:{}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.LOG_OUT})),this.logger.info("Logged out from browser"),this.httpClient.get(f.rl.AUTHENTICATE_API+"/logout").pipe((0,o.T)(Bi=>{this.logger.info(Bi),this.store.dispatch((0,Pe.y0)({payload:f.MZ.LOG_OUT})),this.logger.info("Logged out from server")}))))),{dispatch:!1}),this.resetPassword=(0,g.EH)(()=>this.actions.pipe((0,w.Q)(this.unSubs[1]),(0,g.gp)(f.aU.RESET_PASSWORD),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"ResetPassword",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API+"/reset",{currPassword:Gn.payload.currPassword,newPassword:Gn.payload.newPassword}).pipe((0,w.Q)(this.unSubs[0]),(0,o.T)(Jn=>(this.logger.info(Jn),this.store.dispatch((0,Pe.Gd)({payload:{action:"ResetPassword",status:f.wn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Pe.UI)({payload:"Password Reset Successful!"})),this.SetToken(Jn.token),{type:f.aU.RESET_PASSWORD_RES,payload:Jn.token})),(0,d.W)(Jn=>(this.handleErrorWithAlert("ResetPassword",f.MZ.NO_SPINNER,"Password Reset Failed!",f.rl.AUTHENTICATE_API+"/reset",Jn),(0,D.of)({type:f.aU.VOID})))))))),this.setSelectedNode=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SET_SELECTED_NODE),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:Gn.payload.uiMessage})),this.store.dispatch((0,Pe.Gd)({payload:{action:"UpdateSelNode",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.CONF_API+"/updateSelNode/"+Gn.payload.currentLnNode?.index+"/"+Gn.payload.prevLnNodeIndex).pipe((0,o.T)(Jn=>(this.logger.info(Jn),this.store.dispatch((0,Pe.Gd)({payload:{action:"UpdateSelNode",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:Gn.payload.uiMessage})),this.initializeNode(Jn,Gn.payload.isInitialSetup),{type:f.aU.VOID})),(0,d.W)(Jn=>(this.handleErrorWithAlert("UpdateSelNode",Gn.payload.uiMessage,"Update Selected Node Failed!",f.rl.CONF_API+"/updateSelNode",Jn),(0,D.of)({type:f.aU.VOID})))))))),this.fetchFile=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.FETCH_FILE),(0,h.Z)(Gn=>{this.store.dispatch((0,Pe.mt)({payload:f.MZ.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchFile",status:f.wn.INITIATED}}));const Jn="?channel="+Gn.payload.channelPoint+(Gn.payload.path?"&path="+Gn.payload.path:"");return this.httpClient.get(f.rl.CONF_API+"/file"+Jn).pipe((0,o.T)(Bi=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchFile",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.DOWNLOAD_BACKUP_FILE})),{type:f.aU.SHOW_FILE,payload:Bi})),(0,d.W)(Bi=>(this.handleErrorWithAlert("fetchFile",f.MZ.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",f.rl.CONF_API+"/file"+Jn,{status:this.commonService.extractErrorNumber(Bi),error:{error:this.commonService.extractErrorCode(Bi)}}),(0,D.of)({type:f.aU.VOID}))))}))),this.showFile=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SHOW_FILE),(0,o.T)(Gn=>Gn.payload)),{dispatch:!1})}initializeNode(Kn,ci){this.logger.info("Initializing node from RTL Effects.");const Xn=ci?"":"HOME";if(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clnUnlocked"),this.sessionService.removeItem("eclUnlocked"),Kn.settings.currencyUnits=[...f.A0,Kn.settings?.currencyUnit?Kn.settings?.currencyUnit:""],this.store.dispatch((0,Pe.Tn)({payload:Kn})),this.store.dispatch((0,Ei.p1)()),this.store.dispatch((0,Nt.gf)()),this.store.dispatch((0,nn.Hh)()),this.sessionService.getItem("token")){const aa=Kn.lnImplementation?Kn.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(aa);const sa=!(0,i.naY)()&&window.location.origin?window.location.origin+"/rtl/api":f.H$;switch(this.wsService.connectWebSocket(sa?.replace(/^http/,"ws")+f.rl.Web_SOCKET_API,Kn.index?Kn.index.toString():"-1"),aa){case"CLN":this.store.dispatch((0,Nt.lg)()),this.store.dispatch((0,Nt.Aw)({payload:{loadPage:Xn}}));break;case"ECL":this.store.dispatch((0,nn.lg)()),this.store.dispatch((0,nn.zR)({payload:{loadPage:Xn}}));break;default:this.store.dispatch((0,Ei.lg)()),this.store.dispatch((0,Ei.Br)({payload:{loadPage:Xn}}))}}}SetToken(Kn){Kn?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",Kn)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(Kn,ci){this.logger.info("Successfully Authorized!"),this.SetToken(ci.token),this.sessionService.setItem("defaultPassword",Kn),Kn?(this.store.dispatch((0,Pe.UI)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Pe.NU)())}handleErrorWithoutAlert(Kn,ci,Xn){this.logger.error("ERROR IN: "+Kn+"\n"+JSON.stringify(Xn)),401===Xn.status&&"Login"!==Kn?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Pe.Jh)()),this.store.dispatch((0,Pe.ri)({payload:"Authentication Failed: "+JSON.stringify(Xn.error)}))):(this.store.dispatch((0,Pe.y0)({payload:ci})),this.store.dispatch((0,Pe.Gd)({payload:{action:Kn,status:f.wn.ERROR,statusCode:Xn.status?Xn.status.toString():"",message:this.commonService.extractErrorMessage(Xn)}})))}handleErrorWithAlert(Kn,ci,Xn,aa,sa){if(this.logger.error(sa),0===sa.status&&sa.statusText&&"Unknown Error"===sa.statusText&&(sa={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===sa.status&&"Login"!==Kn)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Pe.Jh)()),this.store.dispatch((0,Pe.ri)({payload:"Authentication Failed: "+JSON.stringify(sa.error)}));else{this.store.dispatch((0,Pe.y0)({payload:ci}));const ma=this.commonService.extractErrorMessage(sa);this.store.dispatch((0,Pe.xO)({payload:{data:{type:"ERROR",alertTitle:Xn,message:{code:sa.status?sa.status:"Unknown Error",message:ma,URL:aa},component:Ge.f}}})),this.store.dispatch((0,Pe.Gd)({payload:{action:Kn,status:f.wn.ERROR,statusCode:sa.status?sa.status.toString():"",message:ma,URL:aa}}))}}ngOnDestroy(){this.unSubs.forEach(Kn=>{Kn.next(null),Kn.complete()})}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(Q.KVO(g.En),Q.KVO(en.Qq),Q.KVO(se.il),Q.KVO($.gP),Q.KVO(Nn.I),Q.KVO(jn.Q),Q.KVO(_e.h),Q.KVO(Un.u),Q.KVO(F.bZ),Q.KVO(ie.UG),Q.KVO(ye.Ix))},this.\u0275prov=Q.jDH({token:zn,factory:zn.\u0275fac}))}return gn(),zn})()},79647(ke,q,l){"use strict";l.d(q,{Az:()=>d,E2:()=>h,Kq:()=>A,N:()=>e,_c:()=>D,qv:()=>o});var i=l(59640);const g=(0,i.UX)("root"),D=((0,i.Mz)(g,w=>w.apiURL),(0,i.Mz)(g,w=>w.selNode)),o=(0,i.Mz)(g,w=>w.appConfig),e=(0,i.Mz)(g,w=>w.nodeData),A=(0,i.Mz)(g,w=>w.apisCallStatus.Login),h=(0,i.Mz)(g,w=>w.apisCallStatus.IsAuthorized),d=(0,i.Mz)(g,w=>({nodeDate:w.nodeData,selNode:w.selNode}))},67947(ke,q,l){"use strict";var i=l(57303),g=l(52512),p=l(2615),D=l(60177),o=l(72200),e=l(73664),A=l(17705),h=l(93393);class f extends i.qj{supportsDOMEvents=!0;static makeCurrent(){(0,i.ig)(new f)}onAndCancel(N,I,H,J){return N.addEventListener(I,H,J),()=>{N.removeEventListener(I,H,J)}}dispatchEvent(N,I){N.dispatchEvent(I)}remove(N){N.remove()}createElement(N,I){return(I=I||this.getDefaultDocument()).createElement(N)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(N){return N.nodeType===Node.ELEMENT_NODE}isShadowRoot(N){return N instanceof DocumentFragment}getGlobalEventTarget(N,I){return"window"===I?window:"document"===I?N:"body"===I?N.body:null}getBaseHref(N){const I=function M(){return F=F||document.head.querySelector("base"),F?F.getAttribute("href"):null}();return null==I?null:function K(z){return new URL(z,document.baseURI).pathname}(I)}resetBaseElement(){F=null}getUserAgent(){return window.navigator.userAgent}getCookie(N){return(0,g.b)(document.cookie,N)}}let F=null,Z=(()=>{class z{build(){return new XMLHttpRequest}static \u0275fac=function(H){return new(H||z)};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})();const ee=["alt","control","meta","shift"],V={"\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"},Q={alt:z=>z.altKey,control:z=>z.ctrlKey,meta:z=>z.metaKey,shift:z=>z.shiftKey};let $=(()=>{class z extends h.Hl{constructor(I){super(I)}supports(I){return null!=z.parseEventName(I)}addEventListener(I,H,J,ne){const ot=z.parseEventName(H),jt=z.eventCallback(ot.fullKey,J,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.rb)().onAndCancel(I,ot.domEventName,jt,ne))}static parseEventName(I){const H=I.toLowerCase().split("."),J=H.shift();if(0===H.length||"keydown"!==J&&"keyup"!==J)return null;const ne=z._normalizeKey(H.pop());let ot="",jt=H.indexOf("code");if(jt>-1&&(H.splice(jt,1),ot="code."),ee.forEach(Tn=>{const ii=H.indexOf(Tn);ii>-1&&(H.splice(ii,1),ot+=Tn+".")}),ot+=ne,0!=H.length||0===ne.length)return null;const $t={};return $t.domEventName=J,$t.fullKey=ot,$t}static matchEventFullKeyCode(I,H){let J=V[I.key]||I.key,ne="";return H.indexOf("code.")>-1&&(J=I.code,ne="code."),!(null==J||!J)&&(J=J.toLowerCase()," "===J?J="space":"."===J&&(J="dot"),ee.forEach(ot=>{ot!==J&&(0,Q[ot])(I)&&(ne+=ot+".")}),ne+=J,ne===H)}static eventCallback(I,H,J){return ne=>{z.matchEventFullKeyCode(ne,I)&&J.runGuarded(()=>H(ne))}}static _normalizeKey(I){return"esc"===I?"escape":I}static \u0275fac=function(H){return new(H||z)(p.KVO(p.qQL))};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})();const s=(0,A.oH4)(A.fpN,"browser",[{provide:e.Agw,useValue:D.AJ},{provide:e.PLl,useValue:function pe(){f.makeCurrent()},multi:!0},{provide:p.qQL,useFactory:function L(){return(0,e._9u)(document),document}}]),u=[{provide:e.$Ln,useClass:class j{addToWindow(N){p.laP.getAngularTestability=(H,J=!0)=>{const ne=N.findTestabilityInTree(H,J);if(null==ne)throw new p.buA(5103,!1);return ne},p.laP.getAllAngularTestabilities=()=>N.getAllTestabilities(),p.laP.getAllAngularRootElements=()=>N.getAllRootElements(),p.laP.frameworkStabilizers||(p.laP.frameworkStabilizers=[]),p.laP.frameworkStabilizers.push(H=>{const J=p.laP.getAllAngularTestabilities();let ne=J.length;const ot=function(){ne--,0==ne&&H()};J.forEach(jt=>{jt.whenStable(ot)})})}findTestabilityInTree(N,I,H){return null==I?null:N.getTestability(I)??(H?(0,i.rb)().isShadowRoot(I)?this.findTestabilityInTree(N,I.host,!0):this.findTestabilityInTree(N,I.parentElement,!0):null)}}},{provide:e.dOL,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]},{provide:e.NYb,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]}],_=[{provide:p.GBX,useValue:"root"},{provide:p.zcH,useFactory:function Ee(){return new p.zcH}},{provide:h.Q5,useClass:h.jd,multi:!0,deps:[p.qQL]},{provide:h.Q5,useClass:$,multi:!0,deps:[p.qQL]},h.mE,h.CI,h.EU,{provide:e._9s,useExisting:h.mE},{provide:g.N,useClass:Z},[]];let T=(()=>{class z{constructor(){}static \u0275fac=function(H){return new(H||z)};static \u0275mod=e.$C({type:z});static \u0275inj=p.G2t({providers:[..._,...u],imports:[o.MD,A.Hbi]})}return z})();var P=l(345),C=l(11514);function Y(z){return new p.buA(3e3,!1)}function Me(z){return new p.buA(3002,!1)}function tt(z){switch(z.length){case 0:return new C.sf;case 1:return z[0];default:return new C.PZ(z)}}function Fe(z,N,I=new Map,H=new Map){const J=[],ne=[];let ot=-1,jt=null;if(N.forEach($t=>{const Tn=$t.get("offset"),ii=Tn==ot,Qn=ii&&jt||new Map;$t.forEach((Vi,Qi)=>{let Di=Qi,Fi=Vi;if("offset"!==Qi)switch(Di=z.normalizePropertyName(Di,J),Fi){case C.FX:Fi=I.get(Qi);break;case C.kp:Fi=H.get(Qi);break;default:Fi=z.normalizeStyleValue(Qi,Di,Fi,J)}Qn.set(Di,Fi)}),ii||ne.push(Qn),jt=Qn,ot=Tn}),J.length)throw function S(){return new p.buA(3502,!1)}();return ne}function Pe(z,N,I,H){switch(N){case"start":z.onStart(()=>H(I&&Ue(I,"start",z)));break;case"done":z.onDone(()=>H(I&&Ue(I,"done",z)));break;case"destroy":z.onDestroy(()=>H(I&&Ue(I,"destroy",z)))}}function Ue(z,N,I){const ne=Qe(z.element,z.triggerName,z.fromState,z.toState,N||z.phaseName,I.totalTime??z.totalTime,!!I.disabled),ot=z._data;return null!=ot&&(ne._data=ot),ne}function Qe(z,N,I,H,J="",ne=0,ot){return{element:z,triggerName:N,fromState:I,toState:H,phaseName:J,totalTime:ne,disabled:!!ot}}function Ie(z,N,I){let H=z.get(N);return H||z.set(N,H=I),H}function le(z){const N=z.indexOf(":");return[z.substring(1,N),z.slice(N+1)]}const Ne=typeof document>"u"?null:document.documentElement;function ze(z){const N=z.parentNode||z.host||null;return N===Ne?null:N}let gt=null,zt=!1;function He(z,N){for(;N;){if(N===z)return!0;N=ze(N)}return!1}function Wt(z,N,I){if(I)return Array.from(z.querySelectorAll(N));const H=z.querySelector(N);return H?[H]:[]}const St="ng-enter",At="ng-leave",fn="ng-trigger",mt=".ng-trigger",It="ng-animating",wn=".ng-animating";function In(z){if("number"==typeof z)return z;const N=z.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:ei(parseFloat(N[1]),N[2])}function ei(z,N){return"s"===N?1e3*z:z}function Li(z,N,I){return z.hasOwnProperty("duration")?z:function Ot(z,N,I){let H,J=0,ne="";if("string"==typeof z){const ot=z.match(kt);if(null===ot)return N.push(Y()),{duration:0,delay:0,easing:""};H=ei(parseFloat(ot[1]),ot[2]);const jt=ot[3];null!=jt&&(J=ei(parseFloat(jt),ot[4]));const $t=ot[5];$t&&(ne=$t)}else H=z;if(!I){let ot=!1,jt=N.length;H<0&&(N.push(function R(){return new p.buA(3100,!1)}()),ot=!0),J<0&&(N.push(function U(){return new p.buA(3101,!1)}()),ot=!0),ot&&N.splice(jt,0,Y())}return{duration:H,delay:J,easing:ne}}(z,N,I)}const kt=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Pt(z,N,I){N.forEach((H,J)=>{const ne=nn(J);I&&!I.has(J)&&I.set(J,z.style[ne]),z.style[ne]=H})}function Yt(z,N){N.forEach((I,H)=>{const J=nn(H);z.style[J]=""})}function bn(z){return Array.isArray(z)?1==z.length?z[0]:(0,C.K2)(z):z}const oi=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ii(z){let N=[];if("string"==typeof z){let I;for(;I=oi.exec(z);)N.push(I[1]);oi.lastIndex=0}return N}function Ei(z,N,I){const H=`${z}`,J=H.replace(oi,(ne,ot)=>{let jt=N[ot];return null==jt&&(I.push(function re(){return new p.buA(3003,!1)}()),jt=""),jt.toString()});return J==H?z:J}const Nt=/-+([a-z0-9])/g;function nn(z){return z.replace(Nt,(...N)=>N[1].toUpperCase())}function Un(z,N,I){switch(N.type){case C.If.Trigger:return z.visitTrigger(N,I);case C.If.State:return z.visitState(N,I);case C.If.Transition:return z.visitTransition(N,I);case C.If.Sequence:return z.visitSequence(N,I);case C.If.Group:return z.visitGroup(N,I);case C.If.Animate:return z.visitAnimate(N,I);case C.If.Keyframes:return z.visitKeyframes(N,I);case C.If.Style:return z.visitStyle(N,I);case C.If.Reference:return z.visitReference(N,I);case C.If.AnimateChild:return z.visitAnimateChild(N,I);case C.If.AnimateRef:return z.visitAnimateRef(N,I);case C.If.Query:return z.visitQuery(N,I);case C.If.Stagger:return z.visitStagger(N,I);default:throw function he(){return new p.buA(3004,!1)}()}}function ui(z,N){return window.getComputedStyle(z)[N]}let Xn=(()=>{class z{validateStyleProperty(I){return function Ye(z){gt||(gt=function it(){return typeof document<"u"?document.body:null}()||{},zt=!!gt.style&&"WebkitAppearance"in gt.style);let N=!0;return gt.style&&!function Je(z){return"ebkit"==z.substring(1,6)}(z)&&(N=z in gt.style,!N&&zt&&(N="Webkit"+z.charAt(0).toUpperCase()+z.slice(1)in gt.style)),N}(I)}containsElement(I,H){return He(I,H)}getParentElement(I){return ze(I)}query(I,H,J){return Wt(I,H,J)}computeStyle(I,H,J){return J||""}animate(I,H,J,ne,ot,jt=[],$t){return new C.sf(J,ne)}static \u0275fac=function(H){return new(H||z)};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})();class aa{static NOOP=new Xn}class sa{}const ua=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class dn extends sa{normalizePropertyName(N,I){return nn(N)}normalizeStyleValue(N,I,H,J){let ne="";const ot=H.toString().trim();if(ua.has(I)&&0!==H&&"0"!==H)if("number"==typeof H)ne="px";else{const jt=H.match(/^[+-]?[\d\.]+([a-z]*)$/);jt&&0==jt[1].length&&J.push(function Oe(){return new p.buA(3005,!1)}())}return ot+ne}}const Sn=new Set(["true","1"]),fi=new Set(["false","0"]);function Dn(z,N){const I=Sn.has(z)||fi.has(z),H=Sn.has(N)||fi.has(N);return(J,ne)=>{let ot="*"==z||z==J,jt="*"==N||N==ne;return!ot&&I&&"boolean"==typeof J&&(ot=J?Sn.has(z):fi.has(z)),!jt&&H&&"boolean"==typeof ne&&(jt=ne?Sn.has(N):fi.has(N)),ot&&jt}}const Ci=new RegExp("s*:selfs*,?","g");function Xi(z,N,I,H){return new lt(z).build(N,I,H)}class lt{_driver;constructor(N){this._driver=N}build(N,I,H){const J=new Gt(I);return this._resetContextStyleTimingState(J),Un(this,bn(N),J)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles=new Map,N.collectedStyles.set("",new Map),N.currentTime=0}visitTrigger(N,I){let H=I.queryCount=0,J=I.depCount=0;const ne=[],ot=[];return"@"==N.name.charAt(0)&&I.errors.push(function ge(){return new p.buA(3006,!1)}()),N.definitions.forEach(jt=>{if(this._resetContextStyleTimingState(I),jt.type==C.If.State){const $t=jt,Tn=$t.name;Tn.toString().split(/\s*,\s*/).forEach(ii=>{$t.name=ii,ne.push(this.visitState($t,I))}),$t.name=Tn}else if(jt.type==C.If.Transition){const $t=this.visitTransition(jt,I);H+=$t.queryCount,J+=$t.depCount,ot.push($t)}else I.errors.push(function ce(){return new p.buA(3007,!1)}())}),{type:C.If.Trigger,name:N.name,states:ne,transitions:ot,queryCount:H,depCount:J,options:null}}visitState(N,I){const H=this.visitStyle(N.styles,I),J=N.options&&N.options.params||null;if(H.containsDynamicStyles){const ne=new Set,ot=J||{};H.styles.forEach(jt=>{jt instanceof Map&&jt.forEach($t=>{Ii($t).forEach(Tn=>{ot.hasOwnProperty(Tn)||ne.add(Tn)})})}),ne.size&&I.errors.push(function Re(){return new p.buA(3008,!1)}(0,ne.values()))}return{type:C.If.State,name:N.name,style:H,options:J?{params:J}:null}}visitTransition(N,I){I.queryCount=0,I.depCount=0;const H=Un(this,bn(N.animation),I),J=function _a(z,N){const I=[];return"string"==typeof z?z.split(/\s*,\s*/).forEach(H=>function Sa(z,N,I){if(":"==z[0]){const $t=function un(z,N){switch(z){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(I,H)=>parseFloat(H)>parseFloat(I);case":decrement":return(I,H)=>parseFloat(H) *"}}(z,I);if("function"==typeof $t)return void N.push($t);z=$t}const H=z.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==H||H.length<4)return I.push(function yt(){return new p.buA(3015,!1)}()),N;const J=H[1],ne=H[2],ot=H[3];N.push(Dn(J,ot)),"<"==ne[0]&&("*"!=J||"*"!=ot)&&N.push(Dn(ot,J))}(H,I,N)):I.push(z),I}(N.expr,I.errors);return{type:C.If.Transition,matchers:J,animation:H,queryCount:I.queryCount,depCount:I.depCount,options:pi(N.options)}}visitSequence(N,I){return{type:C.If.Sequence,steps:N.steps.map(H=>Un(this,H,I)),options:pi(N.options)}}visitGroup(N,I){const H=I.currentTime;let J=0;const ne=N.steps.map(ot=>{I.currentTime=H;const jt=Un(this,ot,I);return J=Math.max(J,I.currentTime),jt});return I.currentTime=J,{type:C.If.Group,steps:ne,options:pi(N.options)}}visitAnimate(N,I){const H=function si(z,N){if(z.hasOwnProperty("duration"))return z;if("number"==typeof z)return Oi(Li(z,N).duration,0,"");const I=z;if(I.split(/\s+/).some(ne=>"{"==ne.charAt(0)&&"{"==ne.charAt(1))){const ne=Oi(0,0,"");return ne.dynamic=!0,ne.strValue=I,ne}const J=Li(I,N);return Oi(J.duration,J.delay,J.easing)}(N.timings,I.errors);I.currentAnimateTimings=H;let J,ne=N.styles?N.styles:(0,C.iF)({});if(ne.type==C.If.Keyframes)J=this.visitKeyframes(ne,I);else{let ot=N.styles,jt=!1;if(!ot){jt=!0;const Tn={};H.easing&&(Tn.easing=H.easing),ot=(0,C.iF)(Tn)}I.currentTime+=H.duration+H.delay;const $t=this.visitStyle(ot,I);$t.isEmptyStep=jt,J=$t}return I.currentAnimateTimings=null,{type:C.If.Animate,timings:H,style:J,options:null}}visitStyle(N,I){const H=this._makeStyleAst(N,I);return this._validateStyleAst(H,I),H}_makeStyleAst(N,I){const H=[],J=Array.isArray(N.styles)?N.styles:[N.styles];for(let jt of J)"string"==typeof jt?jt===C.kp?H.push(jt):I.errors.push(Me()):H.push(new Map(Object.entries(jt)));let ne=!1,ot=null;return H.forEach(jt=>{if(jt instanceof Map&&(jt.has("easing")&&(ot=jt.get("easing"),jt.delete("easing")),!ne))for(let $t of jt.values())if($t.toString().indexOf("{{")>=0){ne=!0;break}}),{type:C.If.Style,styles:H,easing:ot,offset:N.offset,containsDynamicStyles:ne,options:null}}_validateStyleAst(N,I){const H=I.currentAnimateTimings;let J=I.currentTime,ne=I.currentTime;H&&ne>0&&(ne-=H.duration+H.delay),N.styles.forEach(ot=>{"string"!=typeof ot&&ot.forEach((jt,$t)=>{const Tn=I.collectedStyles.get(I.currentQuerySelector),ii=Tn.get($t);let Qn=!0;ii&&(ne!=J&&ne>=ii.startTime&&J<=ii.endTime&&(I.errors.push(function ve(){return new p.buA(3010,!1)}()),Qn=!1),ne=ii.startTime),Qn&&Tn.set($t,{startTime:ne,endTime:J}),I.options&&function $n(z,N,I){const H=N.params||{},J=Ii(z);J.length&&J.forEach(ne=>{H.hasOwnProperty(ne)||I.push(function fe(){return new p.buA(3001,!1)}())})}(jt,I.options,I.errors)})})}visitKeyframes(N,I){const H={type:C.If.Keyframes,styles:[],options:null};if(!I.currentAnimateTimings)return I.errors.push(function oe(){return new p.buA(3011,!1)}()),H;let ne=0;const ot=[];let jt=!1,$t=!1,Tn=0;const ii=N.steps.map(Oa=>{const sr=this._makeStyleAst(Oa,I);let vs=null!=sr.offset?sr.offset:function cn(z){if("string"==typeof z)return null;let N=null;if(Array.isArray(z))z.forEach(I=>{if(I instanceof Map&&I.has("offset")){const H=I;N=parseFloat(H.get("offset")),H.delete("offset")}});else if(z instanceof Map&&z.has("offset")){const I=z;N=parseFloat(I.get("offset")),I.delete("offset")}return N}(sr.styles),xa=0;return null!=vs&&(ne++,xa=sr.offset=vs),$t=$t||xa<0||xa>1,jt=jt||xa0&&ne{const vs=Vi>0?sr==Qi?1:Vi*sr:ot[sr],xa=vs*ya;I.currentTime=Di+Fi.delay+xa,Fi.duration=xa,this._validateStyleAst(Oa,I),Oa.offset=vs,H.styles.push(Oa)}),H}visitReference(N,I){return{type:C.If.Reference,animation:Un(this,bn(N.animation),I),options:pi(N.options)}}visitAnimateChild(N,I){return I.depCount++,{type:C.If.AnimateChild,options:pi(N.options)}}visitAnimateRef(N,I){return{type:C.If.AnimateRef,animation:this.visitReference(N.animation,I),options:pi(N.options)}}visitQuery(N,I){const H=I.currentQuerySelector,J=N.options||{};I.queryCount++,I.currentQuery=N;const[ne,ot]=function an(z){const N=!!z.split(/\s*,\s*/).find(I=>":self"==I);return N&&(z=z.replace(Ci,"")),z=z.replace(/@\*/g,mt).replace(/@\w+/g,I=>mt+"-"+I.slice(1)).replace(/:animating/g,wn),[z,N]}(N.selector);I.currentQuerySelector=H.length?H+" "+ne:ne,Ie(I.collectedStyles,I.currentQuerySelector,new Map);const jt=Un(this,bn(N.animation),I);return I.currentQuery=null,I.currentQuerySelector=H,{type:C.If.Query,selector:ne,limit:J.limit||0,optional:!!J.optional,includeSelf:ot,animation:jt,originalSelector:N.selector,options:pi(N.options)}}visitStagger(N,I){I.currentQuery||I.errors.push(function $e(){return new p.buA(3013,!1)}());const H="full"===N.timings?{duration:0,delay:0,easing:"full"}:Li(N.timings,I.errors,!0);return{type:C.If.Stagger,animation:Un(this,bn(N.animation),I),timings:H,options:null}}}class Gt{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(N){this.errors=N}}function pi(z){return z?(z={...z}).params&&(z.params=function ht(z){return z?{...z}:null}(z.params)):z={},z}function Oi(z,N,I){return{duration:z,delay:N,easing:I}}function la(z,N,I,H,J,ne,ot=null,jt=!1){return{type:1,element:z,keyframes:N,preStyleProps:I,postStyleProps:H,duration:J,delay:ne,totalTime:J+ne,easing:ot,subTimeline:jt}}class mn{_map=new Map;get(N){return this._map.get(N)||[]}append(N,I){let H=this._map.get(N);H||this._map.set(N,H=[]),H.push(...I)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const xt=new RegExp(":enter","g"),rn=new RegExp(":leave","g");function Wn(z,N,I,H,J,ne=new Map,ot=new Map,jt,$t,Tn=[]){return(new Yi).buildKeyframes(z,N,I,H,J,ne,ot,jt,$t,Tn)}class Yi{buildKeyframes(N,I,H,J,ne,ot,jt,$t,Tn,ii=[]){Tn=Tn||new mn;const Qn=new Va(N,I,Tn,J,ne,ii,[]);Qn.options=$t;const Vi=$t.delay?In($t.delay):0;Qn.currentTimeline.delayNextStep(Vi),Qn.currentTimeline.setStyles([ot],null,Qn.errors,$t),Un(this,H,Qn);const Qi=Qn.timelines.filter(Di=>Di.containsAnimation());if(Qi.length&&jt.size){let Di;for(let Fi=Qi.length-1;Fi>=0;Fi--){const ya=Qi[Fi];if(ya.element===I){Di=ya;break}}Di&&!Di.allowOnlyTimelineStyles()&&Di.setStyles([jt],null,Qn.errors,$t)}return Qi.length?Qi.map(Di=>Di.buildKeyframes()):[la(I,[],[],[],0,Vi,"",!1)]}visitTrigger(N,I){}visitState(N,I){}visitTransition(N,I){}visitAnimateChild(N,I){const H=I.subInstructions.get(I.element);if(H){const J=I.createSubContext(N.options),ne=I.currentTimeline.currentTime,ot=this._visitSubInstructions(H,J,J.options);ne!=ot&&I.transformIntoNewTimeline(ot)}I.previousNode=N}visitAnimateRef(N,I){const H=I.createSubContext(N.options);H.transformIntoNewTimeline(),this._applyAnimationRefDelays([N.options,N.animation.options],I,H),this.visitReference(N.animation,H),I.transformIntoNewTimeline(H.currentTimeline.currentTime),I.previousNode=N}_applyAnimationRefDelays(N,I,H){for(const J of N){const ne=J?.delay;if(ne){const ot="number"==typeof ne?ne:In(Ei(ne,J?.params??{},I.errors));H.delayNextStep(ot)}}}_visitSubInstructions(N,I,H){let ne=I.currentTimeline.currentTime;const ot=null!=H.duration?In(H.duration):null,jt=null!=H.delay?In(H.delay):null;return 0!==ot&&N.forEach($t=>{const Tn=I.appendInstructionToTimeline($t,ot,jt);ne=Math.max(ne,Tn.duration+Tn.delay)}),ne}visitReference(N,I){I.updateOptions(N.options,!0),Un(this,N.animation,I),I.previousNode=N}visitSequence(N,I){const H=I.subContextCount;let J=I;const ne=N.options;if(ne&&(ne.params||ne.delay)&&(J=I.createSubContext(ne),J.transformIntoNewTimeline(),null!=ne.delay)){J.previousNode.type==C.If.Style&&(J.currentTimeline.snapshotCurrentStyles(),J.previousNode=va);const ot=In(ne.delay);J.delayNextStep(ot)}N.steps.length&&(N.steps.forEach(ot=>Un(this,ot,J)),J.currentTimeline.applyStylesToKeyframe(),J.subContextCount>H&&J.transformIntoNewTimeline()),I.previousNode=N}visitGroup(N,I){const H=[];let J=I.currentTimeline.currentTime;const ne=N.options&&N.options.delay?In(N.options.delay):0;N.steps.forEach(ot=>{const jt=I.createSubContext(N.options);ne&&jt.delayNextStep(ne),Un(this,ot,jt),J=Math.max(J,jt.currentTimeline.currentTime),H.push(jt.currentTimeline)}),H.forEach(ot=>I.currentTimeline.mergeTimelineCollectedStyles(ot)),I.transformIntoNewTimeline(J),I.previousNode=N}_visitTiming(N,I){if(N.dynamic){const H=N.strValue;return Li(I.params?Ei(H,I.params,I.errors):H,I.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,I){const H=I.currentAnimateTimings=this._visitTiming(N.timings,I),J=I.currentTimeline;H.delay&&(I.incrementTime(H.delay),J.snapshotCurrentStyles());const ne=N.style;ne.type==C.If.Keyframes?this.visitKeyframes(ne,I):(I.incrementTime(H.duration),this.visitStyle(ne,I),J.applyStylesToKeyframe()),I.currentAnimateTimings=null,I.previousNode=N}visitStyle(N,I){const H=I.currentTimeline,J=I.currentAnimateTimings;!J&&H.hasCurrentStyleProperties()&&H.forwardFrame();const ne=J&&J.easing||N.easing;N.isEmptyStep?H.applyEmptyStep(ne):H.setStyles(N.styles,ne,I.errors,I.options),I.previousNode=N}visitKeyframes(N,I){const H=I.currentAnimateTimings,J=I.currentTimeline.duration,ne=H.duration,jt=I.createSubContext().currentTimeline;jt.easing=H.easing,N.styles.forEach($t=>{jt.forwardTime(($t.offset||0)*ne),jt.setStyles($t.styles,$t.easing,I.errors,I.options),jt.applyStylesToKeyframe()}),I.currentTimeline.mergeTimelineCollectedStyles(jt),I.transformIntoNewTimeline(J+ne),I.previousNode=N}visitQuery(N,I){const H=I.currentTimeline.currentTime,J=N.options||{},ne=J.delay?In(J.delay):0;ne&&(I.previousNode.type===C.If.Style||0==H&&I.currentTimeline.hasCurrentStyleProperties())&&(I.currentTimeline.snapshotCurrentStyles(),I.previousNode=va);let ot=H;const jt=I.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!J.optional,I.errors);I.currentQueryTotal=jt.length;let $t=null;jt.forEach((Tn,ii)=>{I.currentQueryIndex=ii;const Qn=I.createSubContext(N.options,Tn);ne&&Qn.delayNextStep(ne),Tn===I.element&&($t=Qn.currentTimeline),Un(this,N.animation,Qn),Qn.currentTimeline.applyStylesToKeyframe(),ot=Math.max(ot,Qn.currentTimeline.currentTime)}),I.currentQueryIndex=0,I.currentQueryTotal=0,I.transformIntoNewTimeline(ot),$t&&(I.currentTimeline.mergeTimelineCollectedStyles($t),I.currentTimeline.snapshotCurrentStyles()),I.previousNode=N}visitStagger(N,I){const H=I.parentContext,J=I.currentTimeline,ne=N.timings,ot=Math.abs(ne.duration),jt=ot*(I.currentQueryTotal-1);let $t=ot*I.currentQueryIndex;switch(ne.duration<0?"reverse":ne.easing){case"reverse":$t=jt-$t;break;case"full":$t=H.currentStaggerTime}const ii=I.currentTimeline;$t&&ii.delayNextStep($t);const Qn=ii.currentTime;Un(this,N.animation,I),I.previousNode=N,H.currentStaggerTime=J.currentTime-Qn+(J.startTime-H.currentTimeline.startTime)}}const va={};class Va{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=va;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(N,I,H,J,ne,ot,jt,$t){this._driver=N,this.element=I,this.subInstructions=H,this._enterClassName=J,this._leaveClassName=ne,this.errors=ot,this.timelines=jt,this.currentTimeline=$t||new $a(this._driver,I,0),jt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,I){if(!N)return;const H=N;let J=this.options;null!=H.duration&&(J.duration=In(H.duration)),null!=H.delay&&(J.delay=In(H.delay));const ne=H.params;if(ne){let ot=J.params;ot||(ot=this.options.params={}),Object.keys(ne).forEach(jt=>{(!I||!ot.hasOwnProperty(jt))&&(ot[jt]=Ei(ne[jt],ot,this.errors))})}}_copyOptions(){const N={};if(this.options){const I=this.options.params;if(I){const H=N.params={};Object.keys(I).forEach(J=>{H[J]=I[J]})}}return N}createSubContext(N=null,I,H){const J=I||this.element,ne=new Va(this._driver,J,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(J,H||0));return ne.previousNode=this.previousNode,ne.currentAnimateTimings=this.currentAnimateTimings,ne.options=this._copyOptions(),ne.updateOptions(N),ne.currentQueryIndex=this.currentQueryIndex,ne.currentQueryTotal=this.currentQueryTotal,ne.parentContext=this,this.subContextCount++,ne}transformIntoNewTimeline(N){return this.previousNode=va,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,I,H){const J={duration:I??N.duration,delay:this.currentTimeline.currentTime+(H??0)+N.delay,easing:""},ne=new ir(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,J,N.stretchStartingKeyframe);return this.timelines.push(ne),J}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,I,H,J,ne,ot){let jt=[];if(J&&jt.push(this.element),N.length>0){N=(N=N.replace(xt,"."+this._enterClassName)).replace(rn,"."+this._leaveClassName);let Tn=this._driver.query(this.element,N,1!=H);0!==H&&(Tn=H<0?Tn.slice(Tn.length+H,Tn.length):Tn.slice(0,H)),jt.push(...Tn)}return!ne&&0==jt.length&&ot.push(function dt(){return new p.buA(3014,!1)}()),jt}}class $a{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(N,I,H,J){this._driver=N,this.element=I,this.startTime=H,this._elementTimelineStylesLookup=J,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(I),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(I,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(N){const I=1===this._keyframes.size&&this._pendingStyles.size;this.duration||I?(this.forwardTime(this.currentTime+N),I&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,I){return this.applyStylesToKeyframe(),new $a(this._driver,N,I||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,I){this._localTimelineStyles.set(N,I),this._globalTimelineStyles.set(N,I),this._styleSummary.set(N,{time:this.currentTime,value:I})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&this._previousKeyframe.set("easing",N);for(let[I,H]of this._globalTimelineStyles)this._backFill.set(I,H||C.kp),this._currentKeyframe.set(I,C.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,I,H,J){I&&this._previousKeyframe.set("easing",I);const ne=J&&J.params||{},ot=function Ar(z,N){const I=new Map;let H;return z.forEach(J=>{if("*"===J){H??=N.keys();for(let ne of H)I.set(ne,C.kp)}else for(let[ne,ot]of J)I.set(ne,ot)}),I}(N,this._globalTimelineStyles);for(let[jt,$t]of ot){const Tn=Ei($t,ne,H);this._pendingStyles.set(jt,Tn),this._localTimelineStyles.has(jt)||this._backFill.set(jt,this._globalTimelineStyles.get(jt)??C.kp),this._updateStyle(jt,Tn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((N,I)=>{this._currentKeyframe.set(I,N)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((N,I)=>{this._currentKeyframe.has(I)||this._currentKeyframe.set(I,N)}))}snapshotCurrentStyles(){for(let[N,I]of this._localTimelineStyles)this._pendingStyles.set(N,I),this._updateStyle(N,I)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let I in this._currentKeyframe)N.push(I);return N}mergeTimelineCollectedStyles(N){N._styleSummary.forEach((I,H)=>{const J=this._styleSummary.get(H);(!J||I.time>J.time)&&this._updateStyle(H,I.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,I=new Set,H=1===this._keyframes.size&&0===this.duration;let J=[];this._keyframes.forEach((jt,$t)=>{const Tn=new Map([...this._backFill,...jt]);Tn.forEach((ii,Qn)=>{ii===C.FX?N.add(Qn):ii===C.kp&&I.add(Qn)}),H||Tn.set("offset",$t/this.duration),J.push(Tn)});const ne=[...N.values()],ot=[...I.values()];if(H){const jt=J[0],$t=new Map(jt);jt.set("offset",0),$t.set("offset",1),J=[jt,$t]}return la(this.element,J,ne,ot,this.duration,this.startTime,this.easing,!1)}}class ir extends $a{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(N,I,H,J,ne,ot,jt=!1){super(N,I,ot.delay),this.keyframes=H,this.preStyleProps=J,this.postStyleProps=ne,this._stretchStartingKeyframe=jt,this.timings={duration:ot.duration,delay:ot.delay,easing:ot.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:I,duration:H,easing:J}=this.timings;if(this._stretchStartingKeyframe&&I){const ne=[],ot=H+I,jt=I/ot,$t=new Map(N[0]);$t.set("offset",0),ne.push($t);const Tn=new Map(N[0]);Tn.set("offset",Ga(jt)),ne.push(Tn);const ii=N.length-1;for(let Qn=1;Qn<=ii;Qn++){let Vi=new Map(N[Qn]);const Qi=Vi.get("offset");Vi.set("offset",Ga((I+Qi*H)/ot)),ne.push(Vi)}H=ot,I=0,J="",N=ne}return la(this.element,N,this.preStyleProps,this.postStyleProps,H,I,J,!0)}}function Ga(z,N=3){const I=Math.pow(10,N-1);return Math.round(z*I)/I}function ds(z,N,I,H,J,ne,ot,jt,$t,Tn,ii,Qn,Vi){return{type:0,element:z,triggerName:N,isRemovalTransition:J,fromState:I,fromStyles:ne,toState:H,toStyles:ot,timelines:jt,queriedElements:$t,preStyleProps:Tn,postStyleProps:ii,totalTime:Qn,errors:Vi}}const us={};class hs{_triggerName;ast;_stateStyles;constructor(N,I,H){this._triggerName=N,this.ast=I,this._stateStyles=H}match(N,I,H,J){return function fs(z,N,I,H,J){return z.some(ne=>ne(N,I,H,J))}(this.ast.matchers,N,I,H,J)}buildStyles(N,I,H){let J=this._stateStyles.get("*");return void 0!==N&&(J=this._stateStyles.get(N?.toString())||J),J?J.buildStyles(I,H):new Map}build(N,I,H,J,ne,ot,jt,$t,Tn,ii){const Qn=[],Vi=this.ast.options&&this.ast.options.params||us,Di=this.buildStyles(H,jt&&jt.params||us,Qn),Fi=$t&&$t.params||us,ya=this.buildStyles(J,Fi,Qn),Oa=new Set,sr=new Map,vs=new Map,xa="void"===J,br={params:ms(Fi,Vi),delay:this.ast.options?.delay},Ba=ii?[]:Wn(N,I,this.ast.animation,ne,ot,Di,ya,br,Tn,Qn);let Vr=0;return Ba.forEach(Dr=>{Vr=Math.max(Dr.duration+Dr.delay,Vr)}),Qn.length?ds(I,this._triggerName,H,J,xa,Di,ya,[],[],sr,vs,Vr,Qn):(Ba.forEach(Dr=>{const ll=Dr.element,Xc=Ie(sr,ll,new Set);Dr.preStyleProps.forEach(hd=>Xc.add(hd));const $f=Ie(vs,ll,new Set);Dr.postStyleProps.forEach(hd=>$f.add(hd)),ll!==I&&Oa.add(ll)}),ds(I,this._triggerName,H,J,xa,Di,ya,Ba,[...Oa.values()],sr,vs,Vr))}}function ms(z,N){const I={...N};return Object.entries(z).forEach(([H,J])=>{null!=J&&(I[H]=J)}),I}class bo{styles;defaultParams;normalizer;constructor(N,I,H){this.styles=N,this.defaultParams=I,this.normalizer=H}buildStyles(N,I){const H=new Map,J=ms(N,this.defaultParams);return this.styles.styles.forEach(ne=>{"string"!=typeof ne&&ne.forEach((ot,jt)=>{ot&&(ot=Ei(ot,J,I));const $t=this.normalizer.normalizePropertyName(jt,I);ot=this.normalizer.normalizeStyleValue(jt,$t,ot,I),H.set(jt,ot)})}),H}}class js{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(N,I,H){this.name=N,this.ast=I,this._normalizer=H,I.states.forEach(J=>{this.states.set(J.name,new bo(J.style,J.options&&J.options.params||{},H))}),Ka(this.states,"true","1"),Ka(this.states,"false","0"),I.transitions.forEach(J=>{this.transitionFactories.push(new hs(N,J,this.states))}),this.fallbackTransition=function Cs(z,N){return new hs(z,{type:C.If.Transition,animation:{type:C.If.Sequence,steps:[],options:null},matchers:[(ot,jt)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,I,H,J){return this.transitionFactories.find(ot=>ot.match(N,I,H,J))||null}matchStyles(N,I,H){return this.fallbackTransition.buildStyles(N,I,H)}}function Ka(z,N,I){z.has(N)?z.has(I)||z.set(I,z.get(N)):z.has(I)&&z.set(N,z.get(I))}const Pr=new mn;class Is{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(N,I,H){this.bodyNode=N,this._driver=I,this._normalizer=H}register(N,I){const H=[],ne=Xi(this._driver,I,H,[]);if(H.length)throw function Xt(){return new p.buA(3503,!1)}();this._animations.set(N,ne)}_buildPlayer(N,I,H){const J=N.element,ne=Fe(this._normalizer,N.keyframes,I,H);return this._driver.animate(J,ne,N.duration,N.delay,N.easing,[],!0)}create(N,I,H={}){const J=[],ne=this._animations.get(N);let ot;const jt=new Map;if(ne?(ot=Wn(this._driver,I,ne,St,At,new Map,new Map,H,Pr,J),ot.forEach(ii=>{const Qn=Ie(jt,ii.element,new Map);ii.postStyleProps.forEach(Vi=>Qn.set(Vi,null))})):(J.push(function de(){return new p.buA(3300,!1)}()),ot=[]),J.length)throw function ae(){return new p.buA(3504,!1)}();jt.forEach((ii,Qn)=>{ii.forEach((Vi,Qi)=>{ii.set(Qi,this._driver.computeStyle(Qn,Qi,C.kp))})});const Tn=tt(ot.map(ii=>{const Qn=jt.get(ii.element);return this._buildPlayer(ii,new Map,Qn)}));return this._playersById.set(N,Tn),Tn.onDestroy(()=>this.destroy(N)),this.players.push(Tn),Tn}destroy(N){const I=this._getPlayer(N);I.destroy(),this._playersById.delete(N);const H=this.players.indexOf(I);H>=0&&this.players.splice(H,1)}_getPlayer(N){const I=this._playersById.get(N);if(!I)throw function me(){return new p.buA(3301,!1)}();return I}listen(N,I,H,J){const ne=Qe(I,"","","");return Pe(this._getPlayer(N),H,ne,J),()=>{}}command(N,I,H,J){if("register"==H)return void this.register(N,J[0]);if("create"==H)return void this.create(N,I,J[0]||{});const ne=this._getPlayer(N);switch(H){case"play":ne.play();break;case"pause":ne.pause();break;case"reset":ne.reset();break;case"restart":ne.restart();break;case"finish":ne.finish();break;case"init":ne.init();break;case"setPosition":ne.setPosition(parseFloat(J[0]));break;case"destroy":this.destroy(N)}}}const Wr="ng-animate-queued",Js="ng-animate-disabled",Jr=[],ps={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dr="__ng_removed";class ar{namespaceId;value;options;get params(){return this.options.params}constructor(N,I=""){this.namespaceId=I;const H=N&&N.hasOwnProperty("value");if(this.value=function qr(z){return z??null}(H?N.value:N),H){const{value:ne,...ot}=N;this.options=ot}else this.options={};this.options.params||(this.options.params={})}absorbOptions(N){const I=N.params;if(I){const H=this.options.params;Object.keys(I).forEach(J=>{null==H[J]&&(H[J]=I[J])})}}}const Xr="void",Kr=new ar(Xr);class Ms{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(N,I,H){this.id=N,this.hostElement=I,this._engine=H,this._hostClassName="ng-tns-"+N,Ha(I,this._hostClassName)}listen(N,I,H,J){if(!this._triggers.has(I))throw function Le(){return new p.buA(3302,!1)}();if(null==H||0==H.length)throw function et(){return new p.buA(3303,!1)}();if(!function _s(z){return"start"==z||"done"==z}(H))throw function tn(){return new p.buA(3400,!1)}();const ne=Ie(this._elementListeners,N,[]),ot={name:I,phase:H,callback:J};ne.push(ot);const jt=Ie(this._engine.statesByElement,N,new Map);return jt.has(I)||(Ha(N,fn),Ha(N,fn+"-"+I),jt.set(I,Kr)),()=>{this._engine.afterFlush(()=>{const $t=ne.indexOf(ot);$t>=0&&ne.splice($t,1),this._triggers.has(I)||jt.delete(I)})}}register(N,I){return!this._triggers.has(N)&&(this._triggers.set(N,I),!0)}_getTrigger(N){const I=this._triggers.get(N);if(!I)throw function Vt(){return new p.buA(3401,!1)}();return I}trigger(N,I,H,J=!0){const ne=this._getTrigger(I),ot=new Mr(this.id,I,N);let jt=this._engine.statesByElement.get(N);jt||(Ha(N,fn),Ha(N,fn+"-"+I),this._engine.statesByElement.set(N,jt=new Map));let $t=jt.get(I);const Tn=new ar(H,this.id);if(!(H&&H.hasOwnProperty("value"))&&$t&&Tn.absorbOptions($t.options),jt.set(I,Tn),$t||($t=Kr),Tn.value!==Xr&&$t.value===Tn.value){if(!function Ws(z,N){const I=Object.keys(z),H=Object.keys(N);if(I.length!=H.length)return!1;for(let J=0;J{Yt(N,ya),Pt(N,Oa)})}return}const Vi=Ie(this._engine.playersByElement,N,[]);Vi.forEach(Fi=>{Fi.namespaceId==this.id&&Fi.triggerName==I&&Fi.queued&&Fi.destroy()});let Qi=ne.matchTransition($t.value,Tn.value,N,Tn.params),Di=!1;if(!Qi){if(!J)return;Qi=ne.fallbackTransition,Di=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:I,transition:Qi,fromState:$t,toState:Tn,player:ot,isFallbackTransition:Di}),Di||(Ha(N,Wr),ot.onStart(()=>{Za(N,Wr)})),ot.onDone(()=>{let Fi=this.players.indexOf(ot);Fi>=0&&this.players.splice(Fi,1);const ya=this._engine.playersByElement.get(N);if(ya){let Oa=ya.indexOf(ot);Oa>=0&&ya.splice(Oa,1)}}),this.players.push(ot),Vi.push(ot),ot}deregister(N){this._triggers.delete(N),this._engine.statesByElement.forEach(I=>I.delete(N)),this._elementListeners.forEach((I,H)=>{this._elementListeners.set(H,I.filter(J=>J.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const I=this._engine.playersByElement.get(N);I&&(I.forEach(H=>H.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,I){const H=this._engine.driver.query(N,mt,!0);H.forEach(J=>{if(J[dr])return;const ne=this._engine.fetchNamespacesByElement(J);ne.size?ne.forEach(ot=>ot.triggerLeaveAnimation(J,I,!1,!0)):this.clearElementCache(J)}),this._engine.afterFlushAnimationsDone(()=>H.forEach(J=>this.clearElementCache(J)))}triggerLeaveAnimation(N,I,H,J){const ne=this._engine.statesByElement.get(N),ot=new Map;if(ne){const jt=[];if(ne.forEach(($t,Tn)=>{if(ot.set(Tn,$t.value),this._triggers.has(Tn)){const ii=this.trigger(N,Tn,Xr,J);ii&&jt.push(ii)}}),jt.length)return this._engine.markElementAsRemoved(this.id,N,!0,I,ot),H&&tt(jt).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const I=this._elementListeners.get(N),H=this._engine.statesByElement.get(N);if(I&&H){const J=new Set;I.forEach(ne=>{const ot=ne.name;if(J.has(ot))return;J.add(ot);const $t=this._triggers.get(ot).fallbackTransition,Tn=H.get(ot)||Kr,ii=new ar(Xr),Qn=new Mr(this.id,ot,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:ot,transition:$t,fromState:Tn,toState:ii,player:Qn,isFallbackTransition:!0})})}}removeNode(N,I){const H=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,I),this.triggerLeaveAnimation(N,I,!0))return;let J=!1;if(H.totalAnimations){const ne=H.players.length?H.playersByQueriedElement.get(N):[];if(ne&&ne.length)J=!0;else{let ot=N;for(;ot=ot.parentNode;)if(H.statesByElement.get(ot)){J=!0;break}}}if(this.prepareLeaveAnimationListeners(N),J)H.markElementAsRemoved(this.id,N,!1,I);else{const ne=N[dr];(!ne||ne===ps)&&(H.afterFlush(()=>this.clearElementCache(N)),H.destroyInnerAnimations(N),H._onRemovalComplete(N,I))}}insertNode(N,I){Ha(N,this._hostClassName)}drainQueuedTransitions(N){const I=[];return this._queue.forEach(H=>{const J=H.player;if(J.destroyed)return;const ne=H.element,ot=this._elementListeners.get(ne);ot&&ot.forEach(jt=>{if(jt.name==H.triggerName){const $t=Qe(ne,H.triggerName,H.fromState.value,H.toState.value);$t._data=N,Pe(H.player,jt.phase,$t,jt.callback)}}),J.markedForDestroy?this._engine.afterFlush(()=>{J.destroy()}):I.push(H)}),this._queue=[],I.sort((H,J)=>{const ne=H.transition.ast.depCount,ot=J.transition.ast.depCount;return 0==ne||0==ot?ne-ot:this._engine.driver.containsElement(H.element,J.element)?1:-1})}destroy(N){this.players.forEach(I=>I.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}}class Hi{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(N,I)=>{};_onRemovalComplete(N,I){this.onRemovalComplete(N,I)}constructor(N,I,H){this.bodyNode=N,this.driver=I,this._normalizer=H}get queuedPlayers(){const N=[];return this._namespaceList.forEach(I=>{I.players.forEach(H=>{H.queued&&N.push(H)})}),N}createNamespace(N,I){const H=new Ms(N,I,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,I)?this._balanceNamespaceList(H,I):(this.newHostElements.set(I,H),this.collectEnterElement(I)),this._namespaceLookup[N]=H}_balanceNamespaceList(N,I){const H=this._namespaceList,J=this.namespacesByHostElement;if(H.length-1>=0){let ot=!1,jt=this.driver.getParentElement(I);for(;jt;){const $t=J.get(jt);if($t){const Tn=H.indexOf($t);H.splice(Tn+1,0,N),ot=!0;break}jt=this.driver.getParentElement(jt)}ot||H.unshift(N)}else H.push(N);return J.set(I,N),N}register(N,I){let H=this._namespaceLookup[N];return H||(H=this.createNamespace(N,I)),H}registerTrigger(N,I,H){let J=this._namespaceLookup[N];J&&J.register(I,H)&&this.totalAnimations++}destroy(N,I){N&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const H=this._fetchNamespace(N);this.namespacesByHostElement.delete(H.hostElement);const J=this._namespaceList.indexOf(H);J>=0&&this._namespaceList.splice(J,1),H.destroy(I),delete this._namespaceLookup[N]}))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const I=new Set,H=this.statesByElement.get(N);if(H)for(let J of H.values())if(J.namespaceId){const ne=this._fetchNamespace(J.namespaceId);ne&&I.add(ne)}return I}trigger(N,I,H,J){if(Pa(I)){const ne=this._fetchNamespace(N);if(ne)return ne.trigger(I,H,J),!0}return!1}insertNode(N,I,H,J){if(!Pa(I))return;const ne=I[dr];if(ne&&ne.setForRemoval){ne.setForRemoval=!1,ne.setForMove=!0;const ot=this.collectedLeaveElements.indexOf(I);ot>=0&&this.collectedLeaveElements.splice(ot,1)}if(N){const ot=this._fetchNamespace(N);ot&&ot.insertNode(I,H)}J&&this.collectEnterElement(I)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,I){I?this.disabledNodes.has(N)||(this.disabledNodes.add(N),Ha(N,Js)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),Za(N,Js))}removeNode(N,I,H){if(Pa(I)){const J=N?this._fetchNamespace(N):null;J?J.removeNode(I,H):this.markElementAsRemoved(N,I,!1,H);const ne=this.namespacesByHostElement.get(I);ne&&ne.id!==N&&ne.removeNode(I,H)}else this._onRemovalComplete(I,H)}markElementAsRemoved(N,I,H,J,ne){this.collectedLeaveElements.push(I),I[dr]={namespaceId:N,setForRemoval:J,hasAnimation:H,removedBeforeQueried:!1,previousTriggersValues:ne}}listen(N,I,H,J,ne){return Pa(I)?this._fetchNamespace(N).listen(I,H,J,ne):()=>{}}_buildInstruction(N,I,H,J,ne){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,H,J,N.fromState.options,N.toState.options,I,ne)}destroyInnerAnimations(N){let I=this.driver.query(N,mt,!0);I.forEach(H=>this.destroyActiveAnimationsForElement(H)),0!=this.playersByQueriedElement.size&&(I=this.driver.query(N,wn,!0),I.forEach(H=>this.finishActiveQueriedAnimationOnElement(H)))}destroyActiveAnimationsForElement(N){const I=this.playersByElement.get(N);I&&I.forEach(H=>{H.queued?H.markedForDestroy=!0:H.destroy()})}finishActiveQueriedAnimationOnElement(N){const I=this.playersByQueriedElement.get(N);I&&I.forEach(H=>H.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return tt(this.players).onDone(()=>N());N()})}processLeaveNode(N){const I=N[dr];if(I&&I.setForRemoval){if(N[dr]=ps,I.namespaceId){this.destroyInnerAnimations(N);const H=this._fetchNamespace(I.namespaceId);H&&H.clearElementCache(N)}this._onRemovalComplete(N,I.setForRemoval)}N.classList?.contains(Js)&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(H=>{this.markElementAsDisabled(H,!1)})}flush(N=-1){let I=[];if(this.newHostElements.size&&(this.newHostElements.forEach((H,J)=>this._balanceNamespaceList(H,J)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let H=0;HH()),this._flushFns=[],this._whenQuietFns.length){const H=this._whenQuietFns;this._whenQuietFns=[],I.length?tt(I).onDone(()=>{H.forEach(J=>J())}):H.forEach(J=>J())}}reportError(N){throw function hn(){return new p.buA(3402,!1)}()}_flushAnimations(N,I){const H=new mn,J=[],ne=new Map,ot=[],jt=new Map,$t=new Map,Tn=new Map,ii=new Set;this.disabledNodes.forEach(ea=>{ii.add(ea);const ha=this.driver.query(ea,".ng-animate-queued",!0);for(let da=0;da{const da=St+Fi++;Di.set(ha,da),ea.forEach(er=>Ha(er,da))});const ya=[],Oa=new Set,sr=new Set;for(let ea=0;eaOa.add(er)):sr.add(ha))}const vs=new Map,xa=Aa(Vi,Array.from(Oa));xa.forEach((ea,ha)=>{const da=At+Fi++;vs.set(ha,da),ea.forEach(er=>Ha(er,da))}),N.push(()=>{Qi.forEach((ea,ha)=>{const da=Di.get(ha);ea.forEach(er=>Za(er,da))}),xa.forEach((ea,ha)=>{const da=vs.get(ha);ea.forEach(er=>Za(er,da))}),ya.forEach(ea=>{this.processLeaveNode(ea)})});const br=[],Ba=[];for(let ea=this._namespaceList.length-1;ea>=0;ea--)this._namespaceList[ea].drainQueuedTransitions(I).forEach(da=>{const er=da.player,Us=da.element;if(br.push(er),this.collectedEnterElements.length){const ys=Us[dr];if(ys&&ys.setForMove){if(ys.previousTriggersValues&&ys.previousTriggersValues.has(da.triggerName)){const Ac=ys.previousTriggersValues.get(da.triggerName),_l=this.statesByElement.get(da.element);if(_l&&_l.has(da.triggerName)){const n2=_l.get(da.triggerName);n2.value=Ac,_l.set(da.triggerName,n2)}}return void er.destroy()}}const uc=!Qn||!this.driver.containsElement(Qn,Us),Vs=vs.get(Us),Nl=Di.get(Us),Gr=this._buildInstruction(da,H,Nl,Vs,uc);if(Gr.errors&&Gr.errors.length)return void Ba.push(Gr);if(uc)return er.onStart(()=>Yt(Us,Gr.fromStyles)),er.onDestroy(()=>Pt(Us,Gr.toStyles)),void J.push(er);if(da.isFallbackTransition)return er.onStart(()=>Yt(Us,Gr.fromStyles)),er.onDestroy(()=>Pt(Us,Gr.toStyles)),void J.push(er);const fd=[];Gr.timelines.forEach(ys=>{ys.stretchStartingKeyframe=!0,this.disabledNodes.has(ys.element)||fd.push(ys)}),Gr.timelines=fd,H.append(Us,Gr.timelines),ot.push({instruction:Gr,player:er,element:Us}),Gr.queriedElements.forEach(ys=>Ie(jt,ys,[]).push(er)),Gr.preStyleProps.forEach((ys,Ac)=>{if(ys.size){let _l=$t.get(Ac);_l||$t.set(Ac,_l=new Set),ys.forEach((n2,i2)=>_l.add(i2))}}),Gr.postStyleProps.forEach((ys,Ac)=>{let _l=Tn.get(Ac);_l||Tn.set(Ac,_l=new Set),ys.forEach((n2,i2)=>_l.add(i2))})});if(Ba.length){const ea=[];Ba.forEach(ha=>{ea.push(function En(){return new p.buA(3505,!1)}())}),br.forEach(ha=>ha.destroy()),this.reportError(ea)}const Vr=new Map,Dr=new Map;ot.forEach(ea=>{const ha=ea.element;H.has(ha)&&(Dr.set(ha,ha),this._beforeAnimationBuild(ea.player.namespaceId,ea.instruction,Vr))}),J.forEach(ea=>{const ha=ea.element;this._getPreviousPlayers(ha,!1,ea.namespaceId,ea.triggerName,null).forEach(er=>{Ie(Vr,ha,[]).push(er),er.destroy()})});const ll=ya.filter(ea=>Qr(ea,$t,Tn)),Xc=new Map;Yr(Xc,this.driver,sr,Tn,C.kp).forEach(ea=>{Qr(ea,$t,Tn)&&ll.push(ea)});const hd=new Map;Qi.forEach((ea,ha)=>{Yr(hd,this.driver,new Set(ea),$t,C.FX)}),ll.forEach(ea=>{const ha=Xc.get(ea),da=hd.get(ea);Xc.set(ea,new Map([...ha?.entries()??[],...da?.entries()??[]]))});const Zu=[],B1=[],Kc={};ot.forEach(ea=>{const{element:ha,player:da,instruction:er}=ea;if(H.has(ha)){if(ii.has(ha))return da.onDestroy(()=>Pt(ha,er.toStyles)),da.disabled=!0,da.overrideTotalTime(er.totalTime),void J.push(da);let Us=Kc;if(Dr.size>1){let Vs=ha;const Nl=[];for(;Vs=Vs.parentNode;){const Gr=Dr.get(Vs);if(Gr){Us=Gr;break}Nl.push(Vs)}Nl.forEach(Gr=>Dr.set(Gr,Us))}const uc=this._buildAnimation(da.namespaceId,er,Vr,ne,hd,Xc);if(da.setRealPlayer(uc),Us===Kc)Zu.push(da);else{const Vs=this.playersByElement.get(Us);Vs&&Vs.length&&(da.parentPlayer=tt(Vs)),J.push(da)}}else Yt(ha,er.fromStyles),da.onDestroy(()=>Pt(ha,er.toStyles)),B1.push(da),ii.has(ha)&&J.push(da)}),B1.forEach(ea=>{const ha=ne.get(ea.element);if(ha&&ha.length){const da=tt(ha);ea.setRealPlayer(da)}}),J.forEach(ea=>{ea.parentPlayer?ea.syncPlayerEvents(ea.parentPlayer):ea.destroy()});for(let ea=0;ea!uc.destroyed);Us.length?ks(this,ha,Us):this.processLeaveNode(ha)}return ya.length=0,Zu.forEach(ea=>{this.players.push(ea),ea.onDone(()=>{ea.destroy();const ha=this.players.indexOf(ea);this.players.splice(ha,1)}),ea.play()}),Zu}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,I,H,J,ne){let ot=[];if(I){const jt=this.playersByQueriedElement.get(N);jt&&(ot=jt)}else{const jt=this.playersByElement.get(N);if(jt){const $t=!ne||ne==Xr;jt.forEach(Tn=>{Tn.queued||!$t&&Tn.triggerName!=J||ot.push(Tn)})}}return(H||J)&&(ot=ot.filter(jt=>!(H&&H!=jt.namespaceId||J&&J!=jt.triggerName))),ot}_beforeAnimationBuild(N,I,H){const ne=I.element,ot=I.isRemovalTransition?void 0:N,jt=I.isRemovalTransition?void 0:I.triggerName;for(const $t of I.timelines){const Tn=$t.element,ii=Tn!==ne,Qn=Ie(H,Tn,[]);this._getPreviousPlayers(Tn,ii,ot,jt,I.toState).forEach(Qi=>{const Di=Qi.getRealPlayer();Di.beforeDestroy&&Di.beforeDestroy(),Qi.destroy(),Qn.push(Qi)})}Yt(ne,I.fromStyles)}_buildAnimation(N,I,H,J,ne,ot){const jt=I.triggerName,$t=I.element,Tn=[],ii=new Set,Qn=new Set,Vi=I.timelines.map(Di=>{const Fi=Di.element;ii.add(Fi);const ya=Fi[dr];if(ya&&ya.removedBeforeQueried)return new C.sf(Di.duration,Di.delay);const Oa=Fi!==$t,sr=function Rs(z){const N=[];return Nr(z,N),N}((H.get(Fi)||Jr).map(Vr=>Vr.getRealPlayer())).filter(Vr=>!!Vr.element&&Vr.element===Fi),vs=ne.get(Fi),xa=ot.get(Fi),br=Fe(this._normalizer,Di.keyframes,vs,xa),Ba=this._buildPlayer(Di,br,sr);if(Di.subTimeline&&J&&Qn.add(Fi),Oa){const Vr=new Mr(N,jt,Fi);Vr.setRealPlayer(Ba),Tn.push(Vr)}return Ba});Tn.forEach(Di=>{Ie(this.playersByQueriedElement,Di.element,[]).push(Di),Di.onDone(()=>function gs(z,N,I){let H=z.get(N);if(H){if(H.length){const J=H.indexOf(I);H.splice(J,1)}0==H.length&&z.delete(N)}return H}(this.playersByQueriedElement,Di.element,Di))}),ii.forEach(Di=>Ha(Di,It));const Qi=tt(Vi);return Qi.onDestroy(()=>{ii.forEach(Di=>Za(Di,It)),Pt($t,I.toStyles)}),Qn.forEach(Di=>{Ie(J,Di,[]).push(Qi)}),Qi}_buildPlayer(N,I,H){return I.length>0?this.driver.animate(N.element,I,N.duration,N.delay,N.easing,H):new C.sf(N.duration,N.delay)}}class Mr{namespaceId;triggerName;element;_player=new C.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(N,I,H){this.namespaceId=N,this.triggerName=I,this.element=H}setRealPlayer(N){this._containsRealPlayer||(this._player=N,this._queuedCallbacks.forEach((I,H)=>{I.forEach(J=>Pe(N,H,void 0,J))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const I=this._player;I.triggerCallback&&N.onStart(()=>I.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,I){Ie(this._queuedCallbacks,N,[]).push(I)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}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(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const I=this._player;I.triggerCallback&&I.triggerCallback(N)}}function Pa(z){return z&&1===z.nodeType}function es(z,N){const I=z.style.display;return z.style.display=N??"none",I}function Yr(z,N,I,H,J){const ne=[];I.forEach($t=>ne.push(es($t)));const ot=[];H.forEach(($t,Tn)=>{const ii=new Map;$t.forEach(Qn=>{const Vi=N.computeStyle(Tn,Qn,J);ii.set(Qn,Vi),(!Vi||0==Vi.length)&&(Tn[dr]=lr,ot.push(Tn))}),z.set(Tn,ii)});let jt=0;return I.forEach($t=>es($t,ne[jt++])),ot}function Aa(z,N){const I=new Map;if(z.forEach(jt=>I.set(jt,[])),0==N.length)return I;const J=new Set(N),ne=new Map;function ot(jt){if(!jt)return 1;let $t=ne.get(jt);if($t)return $t;const Tn=jt.parentNode;return $t=I.has(Tn)?Tn:J.has(Tn)?1:ot(Tn),ne.set(jt,$t),$t}return N.forEach(jt=>{const $t=ot(jt);1!==$t&&I.get($t).push(jt)}),I}function Ha(z,N){z.classList?.add(N)}function Za(z,N){z.classList?.remove(N)}function ks(z,N,I){tt(I).onDone(()=>z.processLeaveNode(N))}function Nr(z,N){for(let I=0;IJ.add(ne)):N.set(z,H),I.delete(z),!0}class Es{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(N,I)=>{};constructor(N,I,H){this._driver=I,this._normalizer=H,this._transitionEngine=new Hi(N.body,I,H),this._timelineEngine=new Is(N.body,I,H),this._transitionEngine.onRemovalComplete=(J,ne)=>this.onRemovalComplete(J,ne)}registerTrigger(N,I,H,J,ne){const ot=N+"-"+J;let jt=this._triggerCache[ot];if(!jt){const $t=[],ii=Xi(this._driver,ne,$t,[]);if($t.length)throw function qt(){return new p.buA(3404,!1)}();jt=function Zr(z,N,I){return new js(z,N,I)}(J,ii,this._normalizer),this._triggerCache[ot]=jt}this._transitionEngine.registerTrigger(I,J,jt)}register(N,I){this._transitionEngine.register(N,I)}destroy(N,I){this._transitionEngine.destroy(N,I)}onInsert(N,I,H,J){this._transitionEngine.insertNode(N,I,H,J)}onRemove(N,I,H){this._transitionEngine.removeNode(N,I,H)}disableAnimations(N,I){this._transitionEngine.markElementAsDisabled(N,I)}process(N,I,H,J){if("@"==H.charAt(0)){const[ne,ot]=le(H);this._timelineEngine.command(ne,I,ot,J)}else this._transitionEngine.trigger(N,I,H,J)}listen(N,I,H,J,ne){if("@"==H.charAt(0)){const[ot,jt]=le(H);return this._timelineEngine.listen(ot,I,jt,ne)}return this._transitionEngine.listen(N,I,H,J,ne)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(N){this._transitionEngine.afterFlushAnimationsDone(N)}}let pt=(()=>{class z{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(I,H,J){this._element=I,this._startStyles=H,this._endStyles=J;let ne=z.initialStylesByElement.get(I);ne||z.initialStylesByElement.set(I,ne=new Map),this._initialStyles=ne}start(){this._state<1&&(this._startStyles&&Pt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pt(this._element,this._initialStyles),this._endStyles&&(Pt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(z.initialStylesByElement.delete(this._element),this._startStyles&&(Yt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yt(this._element,this._endStyles),this._endStyles=null),Pt(this._element,this._initialStyles),this._state=3)}}return z})();function Ve(z){let N=null;return z.forEach((I,H)=>{(function Rt(z){return"display"===z||"position"===z})(H)&&(N=N||new Map,N.set(H,I))}),N}class vn{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(N,I,H,J){this.element=N,this.keyframes=I,this.options=H,this._specialStyles=J,this._duration=H.duration,this._delay=H.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;const N=this.keyframes,I=this._triggerWebAnimation(this.element,N,this.options);if(!I)return this._onFinish(),null;this.domPlayer=I,this._finalKeyframe=N.length?N[N.length-1]:new Map;const H=()=>this._onFinish();return I.addEventListener("finish",H),this.onDestroy(()=>{I.removeEventListener("finish",H)}),I}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(N){const I=[];return N.forEach(H=>{I.push(Object.fromEntries(H))}),I}_triggerWebAnimation(N,I,H){const J=this._convertKeyframesToObject(I);try{return N.animate(J,H)}catch{return null}}onStart(N){this._originalOnStartFns.push(N),this._onStartFns.push(N)}onDone(N){this._originalOnDoneFns.push(N),this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){const N=this._buildPlayer();N&&(this.hasStarted()||(this._onStartFns.forEach(I=>I()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),N.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.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(N=>N()),this._onDestroyFns=[])}setPosition(N){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=N*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N=new Map;this.hasStarted()&&this._finalKeyframe.forEach((H,J)=>{"offset"!==J&&N.set(J,this._finished?H:ui(this.element,J))}),this.currentSnapshot=N}triggerCallback(N){const I="start"===N?this._onStartFns:this._onDoneFns;I.forEach(H=>H()),I.length=0}}class Ni{validateStyleProperty(N){return!0}validateAnimatableStyleProperty(N){return!0}containsElement(N,I){return He(N,I)}getParentElement(N){return ze(N)}query(N,I,H){return Wt(N,I,H)}computeStyle(N,I,H){return ui(N,I)}animate(N,I,H,J,ne,ot=[]){const $t={duration:H,delay:J,fill:0==J?"both":"forwards"};ne&&($t.easing=ne);const Tn=new Map,ii=ot.filter(Qi=>Qi instanceof vn);(function Nn(z,N){return 0===z||0===N})(H,J)&&ii.forEach(Qi=>{Qi.currentSnapshot.forEach((Di,Fi)=>Tn.set(Fi,Di))});let Qn=function Ze(z){return z.length?z[0]instanceof Map?z:z.map(N=>new Map(Object.entries(N))):[]}(I).map(Qi=>new Map(Qi));Qn=function jn(z,N,I){if(I.size&&N.length){let H=N[0],J=[];if(I.forEach((ne,ot)=>{H.has(ot)||J.push(ot),H.set(ot,ne)}),J.length)for(let ne=1;neot.set(jt,ui(z,jt)))}}return N}(N,Qn,Tn);const Vi=function ct(z,N){let I=null,H=null;return Array.isArray(N)&&N.length?(I=Ve(N[0]),N.length>1&&(H=Ve(N[N.length-1]))):N instanceof Map&&(I=Ve(N)),I||H?new pt(z,I,H):null}(N,Qn);return new vn(N,Qn,$t,Vi)}}const Vn="@.disabled";class _t{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(N,I,H,J){this.namespaceId=N,this.delegate=I,this.engine=H,this._onDestroy=J}get data(){return this.delegate.data}destroyNode(N){this.delegate.destroyNode?.(N)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(N,I){return this.delegate.createElement(N,I)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,I){this.delegate.appendChild(N,I),this.engine.onInsert(this.namespaceId,I,N,!1)}insertBefore(N,I,H,J=!0){this.delegate.insertBefore(N,I,H),this.engine.onInsert(this.namespaceId,I,N,J)}removeChild(N,I,H,J){J?this.delegate.removeChild(N,I,H,J):this.parentNode(I)&&this.engine.onRemove(this.namespaceId,I,this.delegate)}selectRootElement(N,I){return this.delegate.selectRootElement(N,I)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,I,H,J){this.delegate.setAttribute(N,I,H,J)}removeAttribute(N,I,H){this.delegate.removeAttribute(N,I,H)}addClass(N,I){this.delegate.addClass(N,I)}removeClass(N,I){this.delegate.removeClass(N,I)}setStyle(N,I,H,J){this.delegate.setStyle(N,I,H,J)}removeStyle(N,I,H){this.delegate.removeStyle(N,I,H)}setProperty(N,I,H){"@"==I.charAt(0)&&I==Vn?this.disableAnimations(N,!!H):this.delegate.setProperty(N,I,H)}setValue(N,I){this.delegate.setValue(N,I)}listen(N,I,H,J){return this.delegate.listen(N,I,H,J)}disableAnimations(N,I){this.engine.disableAnimations(N,I)}}class xn extends _t{factory;constructor(N,I,H,J,ne){super(I,H,J,ne),this.factory=N,this.namespaceId=I}setProperty(N,I,H){"@"==I.charAt(0)?"."==I.charAt(1)&&I==Vn?this.disableAnimations(N,H=void 0===H||!!H):this.engine.process(this.namespaceId,N,I.slice(1),H):this.delegate.setProperty(N,I,H)}listen(N,I,H,J){if("@"==I.charAt(0)){const ne=function Bn(z){switch(z){case"body":return document.body;case"document":return document;case"window":return window;default:return z}}(N);let ot=I.slice(1),jt="";return"@"!=ot.charAt(0)&&([ot,jt]=function wi(z){const N=z.indexOf(".");return[z.substring(0,N),z.slice(N+1)]}(ot)),this.engine.listen(this.namespaceId,ne,ot,jt,$t=>{this.factory.scheduleListenerCallback($t._data||-1,H,$t)})}return this.delegate.listen(N,I,H,J)}}class Ea{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(N,I,H){this.delegate=N,this.engine=I,this._zone=H,I.onRemovalComplete=(J,ne)=>{ne?.removeChild(null,J)}}createRenderer(N,I){const J=this.delegate.createRenderer(N,I);if(!N||!I?.data?.animation){const Tn=this._rendererCache;let ii=Tn.get(J);return ii||(ii=new _t("",J,this.engine,()=>Tn.delete(J)),Tn.set(J,ii)),ii}const ne=I.id,ot=I.id+"-"+this._currentId;this._currentId++,this.engine.register(ot,N);const jt=Tn=>{Array.isArray(Tn)?Tn.forEach(jt):this.engine.registerTrigger(ne,ot,N,Tn.name,Tn)};return I.data.animation.forEach(jt),new xn(this,ot,J,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(N,I,H){if(N>=0&&NI(H));const J=this._animationCallbacksBuffer;0==J.length&&queueMicrotask(()=>{this._zone.run(()=>{J.forEach(ne=>{const[ot,jt]=ne;ot(jt)}),this._animationCallbacksBuffer=[]})}),J.push([I,H])}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()}componentReplaced(N){this.engine.flush(),this.delegate.componentReplaced?.(N)}}const Sr=[{provide:sa,useFactory:function qo(){return new dn}},{provide:Es,useClass:(()=>{class z extends Es{constructor(I,H,J){super(I,H,J)}ngOnDestroy(){this.flush()}static \u0275fac=function(H){return new(H||z)(p.KVO(p.qQL),p.KVO(aa),p.KVO(sa))};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})()},{provide:e._9s,useFactory:function yl(z,N,I){return new Ea(z,N,I)},deps:[h.mE,Es,e.SKi]}],ts=[{provide:aa,useClass:Xn},{provide:e.bc$,useValue:"NoopAnimations"},...Sr],Mo=[{provide:aa,useFactory:()=>new Ni},{provide:e.bc$,useFactory:()=>"BrowserAnimations"},...Sr];let Eo=(()=>{class z{static withConfig(I){return{ngModule:z,providers:I.disableAnimations?ts:Mo}}static \u0275fac=function(H){return new(H||z)};static \u0275mod=e.$C({type:z});static \u0275inj=p.G2t({providers:Mo,imports:[T]})}return z})();var hr=l(99327),ns=l(29330),vi=l(59640),Vo=l(11747),Go=l(983),fl=l(71985),ws=l(7673),Ho=l(57786),fo=l(47242),xl=l(92771),zl=l(97647),za=l(5964),fr=l(96354),Cl=l(70274),to=l(43236),wo=l(28211),mo=l(39974),So=l(58750),jo=l(81853),ml=l(54360),no=l(45225);const Ml=(0,jo.L)(z=>function(I=null){z(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=I});function El(z){throw new Ml(z)}var ao=l(70152),$r=l(99437),Ss=l(96697),mi=l(56977),Xs=l(25558),ro=l(65245),Os=l(40941),so=l(53993),el=l(31943),Ul=l(89079);const To="PERFORM_ACTION",is="ROLLBACK",tl="TOGGLE_ACTION",je="JUMP_TO_STATE",Be="JUMP_TO_ACTION",Ke="IMPORT_STATE",bt="LOCK_CHANGES",Ht="PAUSE_RECORDING";class sn{constructor(N,I){if(this.action=N,this.timestamp=I,this.type=To,typeof N.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Rn{constructor(){this.type="REFRESH"}}class di{constructor(N){this.timestamp=N,this.type="RESET"}}class ji{constructor(N){this.timestamp=N,this.type=is}}class Ia{constructor(N){this.timestamp=N,this.type="COMMIT"}}class rr{constructor(){this.type="SWEEP"}}class Fr{constructor(N){this.id=N,this.type=tl}}class as{constructor(N){this.index=N,this.type=je}}class oo{constructor(N){this.actionId=N,this.type=Be}}class lo{constructor(N){this.nextLiftedState=N,this.type=Ke}}class Sl{constructor(N){this.status=N,this.type=bt}}class mc{constructor(N){this.status=N,this.type=Ht}}const Tl=new p.nKC("@ngrx/store-devtools Options"),qc=new p.nKC("@ngrx/store-devtools Initial Config");function po(){return null}function gc(z){const N={maxAge:!1,monitor:po,actionSanitizer:void 0,stateSanitizer:void 0,name:"NgRx Store DevTools",serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},I="function"==typeof z?z():z,J=I.features||!!I.logOnly&&{pause:!0,export:!0,test:!0}||N.features;!0===J.import&&(J.import="custom");const ne=Object.assign({},N,{features:J},I);if(ne.maxAge&&ne.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${ne.maxAge}`);return ne}function Ps(z,N){return z.filter(I=>N.indexOf(I)<0)}function Do(z){const{computedStates:N,currentStateIndex:I}=z;if(I>=N.length){const{state:J}=N[N.length-1];return J}const{state:H}=N[I];return H}function Ao(z){return new sn(z,+Date.now())}function kc(z,N){return Object.keys(N).reduce((I,H)=>{const J=Number(H);return I[J]=pl(z,N[J],J),I},{})}function pl(z,N,I){return{...N,action:z(N.action,I)}}function il(z,N){return N.map((I,H)=>({state:Lo(z,I.state,H),error:I.error}))}function Lo(z,N,I){return z(N,I)}function Dl(z){return z.predicate||z.actionsSafelist||z.actionsBlocklist}function Gl(z,N,I,H,J){const ne=I&&!I(z,N.action),ot=H&&!N.action.type.match(H.map($t=>Hl($t)).join("|")),jt=J&&N.action.type.match(J.map($t=>Hl($t)).join("|"));return ne||ot||jt}function Hl(z){return z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Al(z){return{ngZone:z?(0,p.WQX)(e.SKi):null,connectInZone:z}}let Io=(()=>{var z;class N extends vi.SS{static#e=z=()=>(this.\u0275fac=(()=>{let H;return function(ne){return(H||(H=e.xGo(N)))(ne||N)}})(),this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();const jl=new p.nKC("@ngrx/store-devtools Redux Devtools Extension");let rs=(()=>{var z;class N{constructor(H,J,ne){this.config=J,this.dispatcher=ne,this.zoneConfig=Al(this.config.connectInZone),this.devtoolsExtension=H,this.createActionStreams()}notify(H,J){if(this.devtoolsExtension)if(H.type===To){if(J.isLocked||J.isPaused)return;const ne=Do(J);if(Dl(this.config)&&Gl(ne,H,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const ot=this.config.stateSanitizer?Lo(this.config.stateSanitizer,ne,J.currentStateIndex):ne,jt=this.config.actionSanitizer?pl(this.config.actionSanitizer,H,J.nextActionId):H;this.sendToReduxDevtools(()=>this.extensionConnection.send(jt,ot))}else{const ne={...J,stagedActionIds:J.stagedActionIds,actionsById:this.config.actionSanitizer?kc(this.config.actionSanitizer,J.actionsById):J.actionsById,computedStates:this.config.stateSanitizer?il(this.config.stateSanitizer,J.computedStates):J.computedStates};this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,ne,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new fl.c(H=>{const J=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=J,J.init(),J.subscribe(ne=>H.next(ne)),J.unsubscribe}):Go.w}createActionStreams(){const H=this.createChangesObservable().pipe((0,zl.u)()),J=H.pipe((0,za.p)(ii=>"START"===ii.type)),ne=H.pipe((0,za.p)(ii=>"STOP"===ii.type)),ot=H.pipe((0,za.p)(ii=>"DISPATCH"===ii.type),(0,fr.T)(ii=>this.unwrapAction(ii.payload)),(0,Cl.H)(ii=>ii.type===Ke?this.dispatcher.pipe((0,za.p)(Qn=>Qn.type===vi.q6),function io(z,N){const{first:I,each:H,with:J=El,scheduler:ne=N??to.E,meta:ot=null}=(0,wo.v)(z)?{first:z}:"number"==typeof z?{each:z}:z;if(null==I&&null==H)throw new TypeError("No timeout provided.");return(0,mo.N)((jt,$t)=>{let Tn,ii,Qn=null,Vi=0;const Qi=Di=>{ii=(0,no.N)($t,ne,()=>{try{Tn.unsubscribe(),(0,So.Tg)(J({meta:ot,lastValue:Qn,seen:Vi})).subscribe($t)}catch(Fi){$t.error(Fi)}},Di)};Tn=jt.subscribe((0,ml._)($t,Di=>{ii?.unsubscribe(),Vi++,$t.next(Qn=Di),H>0&&Qi(H)},void 0,void 0,()=>{ii?.closed||ii?.unsubscribe(),Qn=null})),!Vi&&Qi(null!=I?"number"==typeof I?I:+I-ne.now():H)})}(1e3),(0,ao.B)(1e3),(0,fr.T)(()=>ii),(0,$r.W)(()=>(0,ws.of)(ii)),(0,Ss.s)(1)):(0,ws.of)(ii))),$t=H.pipe((0,za.p)(ii=>"ACTION"===ii.type),(0,fr.T)(ii=>this.unwrapAction(ii.payload))).pipe((0,mi.Q)(ne)),Tn=ot.pipe((0,mi.Q)(ne));this.start$=J.pipe((0,mi.Q)(ne)),this.actions$=this.start$.pipe((0,Xs.n)(()=>$t)),this.liftedActions$=this.start$.pipe((0,Xs.n)(()=>Tn))}unwrapAction(H){return"string"==typeof H?(0,eval)(`(${H})`):H}getExtensionConfig(H){const J={name:H.name,features:H.features,serialize:H.serialize,autoPause:H.autoPause??!1,trace:H.trace??!1,traceLimit:H.traceLimit??75};return!1!==H.maxAge&&(J.maxAge=H.maxAge),J}sendToReduxDevtools(H){try{H()}catch(J){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",J)}}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(jl),p.KVO(Tl),p.KVO(Io))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();const Tr={type:vi.Zz},ft={type:"@ngrx/store-devtools/recompute"};function Tt(z,N,I,H,J){if(H)return{state:I,error:"Interrupted by an error up the chain"};let ot,ne=I;try{ne=z(I,N)}catch(jt){ot=jt.toString(),J.handleError(jt)}return{state:ne,error:ot}}function on(z,N,I,H,J,ne,ot,jt,$t){if(N>=z.length&&z.length===ne.length)return z;const Tn=z.slice(0,N),ii=ne.length-($t?1:0);for(let Qn=N;Qn-1?Di:Tt(I,Qi,Fi,ya,jt);Tn.push(sr)}return $t&&Tn.push(z[z.length-1]),Tn}let Mi=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t,Tn,ii){const Qn=function Hn(z,N){return{monitorState:N(void 0,{}),nextActionId:1,actionsById:{0:Ao(Tr)},stagedActionIds:[0],skippedActionIds:[],committedState:z,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}(Tn,ii.monitor),Vi=function ni(z,N,I,H,J={}){return ne=>(ot,jt)=>{let{monitorState:$t,actionsById:Tn,nextActionId:ii,stagedActionIds:Qn,skippedActionIds:Vi,committedState:Qi,currentStateIndex:Di,computedStates:Fi,isLocked:ya,isPaused:Oa}=ot||N;function sr(br){let Ba=br,Vr=Qn.slice(1,Ba+1);for(let Dr=0;Dr-1===Vr.indexOf(Dr)),Qn=[0,...Qn.slice(Ba+1)],Qi=Fi[Ba].state,Fi=Fi.slice(Ba),Di=Di>Ba?Di-Ba:0}function vs(){Tn={0:Ao(Tr)},ii=1,Qn=[0],Vi=[],Qi=Fi[Di].state,Di=0,Fi=[]}ot||(Tn=Object.create(Tn));let xa=0;switch(jt.type){case bt:ya=jt.status,xa=1/0;break;case Ht:Oa=jt.status,Oa?(Qn=[...Qn,ii],Tn[ii]=new sn({type:"@ngrx/devtools/pause"},+Date.now()),ii++,xa=Qn.length-1,Fi=Fi.concat(Fi[Fi.length-1]),Di===Qn.length-2&&Di++,xa=1/0):vs();break;case"RESET":Tn={0:Ao(Tr)},ii=1,Qn=[0],Vi=[],Qi=z,Di=0,Fi=[];break;case"COMMIT":vs();break;case is:Tn={0:Ao(Tr)},ii=1,Qn=[0],Vi=[],Di=0,Fi=[];break;case tl:{const{id:br}=jt;Vi=-1===Vi.indexOf(br)?[br,...Vi]:Vi.filter(Vr=>Vr!==br),xa=Qn.indexOf(br);break}case"SET_ACTIONS_ACTIVE":{const{start:br,end:Ba,active:Vr}=jt,Dr=[];for(let ll=br;llJ.maxAge&&(Fi=on(Fi,xa,ne,Qi,Tn,Qn,Vi,I,Oa),sr(Qn.length-J.maxAge),xa=1/0);break;case vi.q6:if(Fi.filter(Ba=>Ba.error).length>0)xa=0,J.maxAge&&Qn.length>J.maxAge&&(Fi=on(Fi,xa,ne,Qi,Tn,Qn,Vi,I,Oa),sr(Qn.length-J.maxAge),xa=1/0);else{if(!Oa&&!ya){Di===Qn.length-1&&Di++;const Ba=ii++;Tn[Ba]=new sn(jt,+Date.now()),Qn=[...Qn,Ba],xa=Qn.length-1,Fi=on(Fi,xa,ne,Qi,Tn,Qn,Vi,I,Oa)}Fi=Fi.map(Ba=>({...Ba,state:ne(Ba.state,ft)})),Di=Qn.length-1,J.maxAge&&Qn.length>J.maxAge&&sr(Qn.length-J.maxAge),xa=1/0}break;default:xa=1/0}return Fi=on(Fi,xa,ne,Qi,Tn,Qn,Vi,I,Oa),$t=H($t,jt),{monitorState:$t,actionsById:Tn,nextActionId:ii,stagedActionIds:Qn,skippedActionIds:Vi,committedState:Qi,currentStateIndex:Di,computedStates:Fi,isLocked:ya,isPaused:Oa}}}(Tn,Qn,$t,ii.monitor,ii),Qi=(0,Ho.h)((0,Ho.h)(J.asObservable().pipe((0,ro.i)(1)),ot.actions$).pipe((0,fr.T)(Ao)),H,ot.liftedActions$).pipe((0,Os.Q)(fo.T)),Di=ne.pipe((0,fr.T)(Vi)),Fi=Al(ii.connectInZone),ya=new xl.m(1);this.liftedStateSubscription=Qi.pipe((0,so.E)(Di),ki(Fi),(0,el.S)(({state:vs},[xa,br])=>{let Ba=br(vs,xa);return xa.type!==To&&Dl(ii)&&(Ba=function Vl(z,N,I,H){const J=[],ne={},ot=[];return z.stagedActionIds.forEach((jt,$t)=>{const Tn=z.actionsById[jt];Tn&&($t&&Gl(z.computedStates[$t],Tn,N,I,H)||(ne[jt]=Tn,J.push(jt),ot.push(z.computedStates[$t])))}),{...z,stagedActionIds:J,actionsById:ne,computedStates:ot}}(Ba,ii.predicate,ii.actionsSafelist,ii.actionsBlocklist)),ot.notify(xa,Ba),{state:Ba,action:xa}},{state:Qn,action:null})).subscribe(({state:vs,action:xa})=>{ya.next(vs),xa.type===To&&jt.next(xa.action)}),this.extensionStartSubscription=ot.start$.pipe(ki(Fi)).subscribe(()=>{this.refresh()});const Oa=ya.asObservable(),sr=Oa.pipe((0,fr.T)(Do));Object.defineProperty(sr,"state",{value:(0,Ul.ot)(sr,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=H,this.liftedState=Oa,this.state=sr}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(H){this.dispatcher.next(H)}next(H){this.dispatcher.next(H)}error(H){}complete(){}performAction(H){this.dispatch(new sn(H,+Date.now()))}refresh(){this.dispatch(new Rn)}reset(){this.dispatch(new di(+Date.now()))}rollback(){this.dispatch(new ji(+Date.now()))}commit(){this.dispatch(new Ia(+Date.now()))}sweep(){this.dispatch(new rr)}toggleAction(H){this.dispatch(new Fr(H))}jumpToAction(H){this.dispatch(new oo(H))}jumpToState(H){this.dispatch(new as(H))}importState(H){this.dispatch(new lo(H))}lockChanges(H){this.dispatch(new Sl(H))}pauseRecording(H){this.dispatch(new mc(H))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(Io),p.KVO(vi.SS),p.KVO(vi.QU),p.KVO(rs),p.KVO(vi.sA),p.KVO(p.zcH),p.KVO(vi.N_),p.KVO(Tl))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();function ki({ngZone:z,connectInZone:N}){return I=>N?new fl.c(H=>I.subscribe({next:J=>z.run(()=>H.next(J)),error:J=>z.run(()=>H.error(J)),complete:()=>z.run(()=>H.complete())})):I}const $i=new p.nKC("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function ra(z,N){return!!z||N.monitor!==po}function ba(){const z="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[z]<"u"?window[z]:null}function oa(z){return z.state}function mr(z={}){return(0,p.EmA)([rs,Io,Mi,{provide:qc,useValue:z},{provide:$i,deps:[jl,Tl],useFactory:ra},{provide:jl,useFactory:ba},{provide:Tl,deps:[qc],useFactory:gc},{provide:vi.h1,deps:[Mi],useFactory:oa},{provide:vi.Bh,useExisting:Io}])}let Lr=(()=>{var z;class N{static instrument(H={}){return{ngModule:N,providers:[mr(H)]}}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275mod=e.$C({type:N}),this.\u0275inj=p.G2t({}))}return z(),N})();var bi=l(21413),Ns=l(33726),Fs=l(22806),Xo=l(1807);function Ro(z=0,N=to.E){return z<0&&(z=0),(0,Xo.O)(z,z,N)}var Ll=l(18359),gl=l(57908),Ks=l(9326),Wl=l(88141),ed=l(70980),_d=l(23294);class td{}function tc(z){return(0,p.EmA)([{provide:td,useValue:z}])}let vd=(()=>{class z{constructor(I,H){this._ngZone=H,this.timerStart$=new bi.B,this.idleDetected$=new bi.B,this.timeout$=new bi.B,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,I&&this.setConfig(I)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,Ho.h)((0,Ns.R)(window,"mousemove"),(0,Ns.R)(window,"resize"),(0,Ns.R)(document,"keydown"))),this.idle$=(0,Fs.H)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function ec(z,...N){var I,H;const J=null!==(I=(0,Ks.lI)(N))&&void 0!==I?I:to.E,ne=null!==(H=N[0])&&void 0!==H?H:null,ot=N[1]||1/0;return(0,mo.N)((jt,$t)=>{let Tn=[],ii=!1;const Qn=Di=>{const{buffer:Fi,subs:ya}=Di;ya.unsubscribe(),(0,gl.o)(Tn,Di),$t.next(Fi),ii&&Vi()},Vi=()=>{if(Tn){const Di=new Ll.yU;$t.add(Di);const ya={buffer:[],subs:Di};Tn.push(ya),(0,no.N)(Di,J,()=>Qn(ya),z)}};null!==ne&&ne>=0?(0,no.N)($t,J,Vi,ne,!0):ii=!0,Vi();const Qi=(0,ml._)($t,Di=>{const Fi=Tn.slice();for(const ya of Fi){const{buffer:Oa}=ya;Oa.push(Di),ot<=Oa.length&&Qn(ya)}},()=>{for(;Tn?.length;)$t.next(Tn.shift().buffer);Qi?.unsubscribe(),$t.complete(),$t.unsubscribe()},void 0,()=>Tn=null);jt.subscribe(Qi)})}(this.idleSensitivityMillisec),(0,za.p)(I=>!I.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,Wl.M)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,Xs.n)(()=>this._ngZone.runOutsideAngular(()=>Ro(1e3).pipe((0,mi.Q)((0,Ho.h)(this.activityEvents$,(0,Xo.O)(this.idleMillisec).pipe((0,Wl.M)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,ed.j)(()=>{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,_d.F)(),(0,Xs.n)(I=>I?this.timer$:(0,ws.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,za.p)(I=>!!I),(0,Wl.M)(()=>this.isTimeout=!0),(0,fr.T)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(I){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(I):console.error("Call stopWatching() before set config values")}setConfig(I){I.idle&&(this.idleMillisec=1e3*I.idle),I.ping&&(this.pingMillisec=1e3*I.ping),I.idleSensitivity&&(this.idleSensitivityMillisec=1e3*I.idleSensitivity),I.timeout&&(this.timeout=I.timeout)}setCustomActivityEvents(I){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=I:console.error("Call stopWatching() before set custom activity events")}setupTimer(I){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,ws.of)(()=>new Date).pipe((0,fr.T)(H=>H()),(0,Xs.n)(H=>Ro(1e3).pipe((0,fr.T)(()=>Math.round(((new Date).valueOf()-H.valueOf())/1e3)),(0,Wl.M)(J=>{J>=I&&this.timeout$.next(!0)}))))})}setupPing(I){this.ping$=Ro(I).pipe((0,za.p)(()=>!this.isTimeout))}}return z.\u0275fac=function(I){return new(I||z)(p.KVO(td,8),p.KVO(e.SKi))},z.\u0275prov=p.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var co=l(38132),ja=l(43694),Ti=l(45383),Ra=l(79647),cr=l(20060),De=l(25596),at=l(52920),Jt=l(96850);const Yn=()=>({initial:!1});function gi(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[1].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[1].link))("active",I.activeLink===I.links[1].link)("state",e.lJ4(5,Yn)),e.R7$(),e.JRh(I.links[1].name)}}function Pi(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[2].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[2].link))("active",I.activeLink===I.links[2].link),e.R7$(),e.JRh(I.links[2].name)}}let Wa=(()=>{var z;class N{constructor(H,J){this.store=H,this.router=J,this.faUserCog=Ti.McB,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){const H=this.links.find(J=>this.router.url.includes(J.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeLink=ne?ne.link:this.links[0].link}}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{this.appConfig=J}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[2])).subscribe(J=>{this.showBitcoind=!1,this.selNode=J,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-settings"]],standalone:!1,decls:16,vars:8,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","state","click",4,"ngIf"],["role","tab","tabindex","3","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active","state"],["role","tab","tabindex","3","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Settings"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6)(8,"div",7),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.activeLink=ne.links[0].link)}),e.EFF(9),e.k0s(),e.DNE(10,gi,2,6,"div",8)(11,Pi,2,4,"div",9),e.k0s(),e.nrm(12,"mat-tab-nav-panel",null,0),e.j41(14,"div",10),e.nrm(15,"router-outlet"),e.k0s()()()()}if(2&J){const ot=e.sdS(13);e.R7$(),e.Y8G("icon",ne.faUserCog),e.R7$(6),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("routerLink",e.mNQ(ne.links[0].link))("active",ne.activeLink===ne.links[0].link),e.R7$(),e.JRh(ne.links[0].name),e.R7$(),e.Y8G("ngIf",!+ne.appConfig.SSO.rtlSSO),e.R7$(),e.Y8G("ngIf",ne.showBitcoind)}},dependencies:[o.bT,cr.aY,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,ja.n3,co.Wk],encapsulation:2}))}return z(),N})();var Ui=l(11771),La=l(98570),_i=l(89417),tr=l(88834),wa=l(69588),al=l(96183),ic=l(23029),go=l(10497),Xl=l(89587);function Z1(z,N){if(1&z&&(e.j41(0,"mat-option",15),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I.index),e.R7$(),e.Lme(" ",I.lnNode," (",I.lnImplementation,") ")}}function Eh(z,N){if(1&z){const I=e.RV6();e.j41(0,"form",3,0)(2,"div",4),e.nrm(3,"fa-icon",5),e.j41(4,"span",6),e.EFF(5,"Default Node"),e.k0s()(),e.j41(6,"div",7)(7,"div",8)(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10,"Default Node"),e.k0s(),e.j41(11,"mat-select",10),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.appConfig.defaultNodeIndex,J)||(ne.appConfig.defaultNodeIndex=J),p.Njj(J)}),e.DNE(12,Z1,2,3,"mat-option",11),e.k0s()()(),e.j41(13,"div",12)(14,"div",8)(15,"button",13),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onResetSettings())}),e.EFF(16,"Reset"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onUpdateApplicationSettings())}),e.EFF(18,"Update"),e.k0s()()()()()}if(2&z){const I=e.XpG();e.R7$(3),e.Y8G("icon",I.faWindowRestore),e.R7$(8),e.R50("ngModel",I.appConfig.defaultNodeIndex),e.R7$(),e.Y8G("ngForOf",I.appConfig.nodes)}}let nd=(()=>{var z;class N{constructor(H,J){this.logger=H,this.store=J,this.faWindowRestore=Ti.aFw,this.faPlus=Ti.QLR,this.previousDefaultNode=0,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(H)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateApplicationSettings(){this.appConfig.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,this.store.dispatch((0,Ui.rc)({payload:{showSnackBar:!0,message:"Default Node Updated.",config:this.appConfig}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-app-settings"]],standalone:!1,decls:2,vars:1,consts:[["form","ngForm"],["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"],["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","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start start"],["autoFocus","","name","defaultNode",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary",1,"mr-1",3,"click"],["mat-flat-button","","color","primary",3,"click"],[3,"value"]],template:function(J,ne){1&J&&(e.j41(0,"div",1),e.DNE(1,Eh,19,3,"form",2),e.k0s()),2&J&&(e.R7$(),e.Y8G("ngIf",ne.appConfig.nodes&&ne.appConfig.nodes.length&&ne.appConfig.nodes.length>0))},dependencies:[o.Sq,o.bT,_i.qT,_i.BC,_i.cb,_i.vS,_i.cV,cr.aY,tr.$z,wa.rl,wa.nJ,at.DJ,at.sA,at.UI,al.VO,ic.wT,go.Ld,Xl.N],encapsulation:2}))}return z(),N})();var vc=l(82852),Oo=l(51585),yc=l(31264),Ko=l(37541),J1=l(95416),Br=l(33746),uo=l(36013),bc=l(38288),ac=l(29157);const q1=["stepper"];function Il(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG();e.JRh(I.passwordFormLabel)}}function yd(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function t1(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.secretFormLabel)}}function e0(z,N){if(1&z&&e.nrm(0,"qr-code",33),2&z){const I=e.XpG(2);e.Y8G("value",I.otpauth)("size",180)}}function T2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Secret Code is required."),e.k0s())}function Rc(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-step",10)(1,"form",22),e.DNE(2,t1,1,1,"ng-template",23),e.j41(3,"div",24),e.DNE(4,e0,1,2,"qr-code",25),e.k0s(),e.j41(5,"div",26),e.nrm(6,"fa-icon",27),e.j41(7,"span"),e.EFF(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.k0s()(),e.j41(9,"div",28)(10,"mat-form-field",13)(11,"mat-label"),e.EFF(12,"Secret Code"),e.k0s(),e.nrm(13,"input",29),e.j41(14,"fa-icon",30),e.bIt("copied",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onCopySecret(J))}),e.k0s(),e.DNE(15,T2,2,0,"mat-error",15),e.k0s()(),e.j41(16,"div",31)(17,"button",32),e.EFF(18,"Next"),e.k0s()()()()}if(2&z){const I=e.XpG();e.Y8G("stepControl",I.secretFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.secretFormGroup),e.R7$(3),e.Y8G("ngIf",I.otpauth),e.R7$(2),e.Y8G("icon",I.faInfoCircle),e.R7$(8),e.Y8G("icon",I.faCopy)("payload",null==I.secretFormGroup||null==I.secretFormGroup.controls||null==I.secretFormGroup.controls.secret?null:I.secretFormGroup.controls.secret.value),e.R7$(),e.Y8G("ngIf",null==I.secretFormGroup||null==I.secretFormGroup.controls||null==I.secretFormGroup.controls.secret||null==I.secretFormGroup.controls.secret.errors?null:I.secretFormGroup.controls.secret.errors.required)}}function wh(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.tokenFormLabel)}}function D2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Token is required."),e.k0s())}function A2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Token is invalid."),e.k0s())}function qe(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",8)(1,"div",28)(2,"mat-form-field",13)(3,"mat-label"),e.EFF(4,"Token"),e.k0s(),e.nrm(5,"input",37),e.DNE(6,D2,2,0,"mat-error",15)(7,A2,2,0,"mat-error",15),e.k0s()(),e.j41(8,"div",31)(9,"button",38),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onVerifyToken())}),e.EFF(10),e.k0s()()()}if(2&z){const I=e.XpG(2);e.R7$(6),e.Y8G("ngIf",null==I.tokenFormGroup||null==I.tokenFormGroup.controls||null==I.tokenFormGroup.controls.token||null==I.tokenFormGroup.controls.token.errors?null:I.tokenFormGroup.controls.token.errors.required),e.R7$(),e.Y8G("ngIf",null==I.tokenFormGroup||null==I.tokenFormGroup.controls||null==I.tokenFormGroup.controls.token||null==I.tokenFormGroup.controls.token.errors?null:I.tokenFormGroup.controls.token.errors.notValid),e.R7$(3),e.JRh(null!=I.tokenFormGroup&&null!=I.tokenFormGroup.controls&&null!=I.tokenFormGroup.controls.token&&null!=I.tokenFormGroup.controls.token.errors&&I.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function Dt(z,N){1&z&&(e.j41(0,"div")(1,"strong"),e.EFF(2,"Success! You are all set."),e.k0s()())}function wt(z,N){if(1&z&&(e.j41(0,"mat-step",34)(1,"form",35),e.DNE(2,wh,1,1,"ng-template",12)(3,qe,11,3,"div",36)(4,Dt,3,0,"div",15),e.k0s()()),2&z){const I=e.XpG();e.Y8G("stepControl",I.tokenFormGroup),e.R7$(),e.Y8G("formGroup",I.tokenFormGroup),e.R7$(2),e.Y8G("ngIf",!I.flgValidated||!I.isTokenValid),e.R7$(),e.Y8G("ngIf",I.flgValidated&&I.isTokenValid)}}function Ft(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.disableFormLabel)}}function ln(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",8)(1,"div",39),e.nrm(2,"fa-icon",27),e.j41(3,"span"),e.EFF(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.k0s()(),e.j41(5,"div",31)(6,"button",38),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onVerifyToken())}),e.EFF(7,"Disable"),e.k0s()()()}if(2&z){const I=e.XpG(2);e.R7$(2),e.Y8G("icon",I.faExclamationTriangle)}}function An(z,N){1&z&&(e.j41(0,"div")(1,"strong"),e.EFF(2,"Two factor authentication removed from RTL."),e.k0s()())}function On(z,N){if(1&z&&(e.j41(0,"mat-step",34)(1,"form",35),e.DNE(2,Ft,1,1,"ng-template",12)(3,ln,8,1,"div",36)(4,An,3,0,"div",15),e.k0s()()),2&z){const I=e.XpG();e.Y8G("stepControl",I.disableFormGroup),e.R7$(),e.Y8G("formGroup",I.disableFormGroup),e.R7$(2),e.Y8G("ngIf",!I.flgValidated||!I.isTokenValid),e.R7$(),e.Y8G("ngIf",I.flgValidated&&I.isTokenValid)}}let ai=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.dialogRef=H,this.data=J,this.store=ne,this.formBuilder=ot,this.rtlEffects=jt,this.snackBar=$t,this.faExclamationTriangle=Ti.zpE,this.faCopy=Ti.jPR,this.faInfoCircle=Ti.iW_,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:["",[_i.k0.required]],password:["",[_i.k0.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},_i.k0.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",_i.k0.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!this.appConfig?.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig?.enable2FA?"":this.generateSecret(),disabled:!0},_i.k0.required]})}generateSecret(){const H=yc.authenticator.generateSecret();return this.otpauth=yc.authenticator.keyuri("","Ride The Lightning (RTL)",H),H}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Ui.oz)({payload:vc(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Ss.s)(1)).subscribe(H=>{"ERROR"!==H?(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(H){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig?.enable2FA)this.appConfig.enable2FA=!1,this.appConfig.secret2FA="",this.store.dispatch((0,Ui.rc)({payload:{showSnackBar:!1,message:"Two factor authentication disabled successfully.",config:this.appConfig}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=yc.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.appConfig.enable2FA=!0,this.appConfig.secret2FA=this.secretFormGroup.controls.secret.value,this.store.dispatch((0,Ui.rc)({payload:{showSnackBar:!1,message:"Two factor authentication enabled successfully.",config:this.appConfig}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0}stepSelectionChanged(H){switch(H.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}H.selectedIndex{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(Oo.Vh),e.rXU(vi.il),e.rXU(_i.ze),e.rXU(Ko.H),e.rXU(J1.UG))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-two-factor-auth"]],viewQuery:function(J,ne){if(1&J&&e.GBs(q1,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.stepper=ot.first)}},standalone:!1,decls:30,vars:11,consts:[["stepper",""],["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 center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","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"],["errorCorrectionLevel","L",3,"value","size",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","","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"copied","icon","payload"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],["errorCorrectionLevel","L",3,"value","size"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Setup Two Factor Authentication"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),e.bIt("selectionChange",function($t){return p.eBV(ot),p.Njj(ne.stepSelectionChanged($t))}),e.j41(12,"mat-step",10)(13,"form",11),e.DNE(14,Il,1,1,"ng-template",12),e.j41(15,"div",1)(16,"mat-form-field",13)(17,"mat-label"),e.EFF(18,"Password"),e.k0s(),e.nrm(19,"input",14),e.DNE(20,yd,2,0,"mat-error",15),e.k0s()(),e.j41(21,"div",16)(22,"button",17),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onAuthenticate())}),e.EFF(23,"Confirm"),e.k0s()()()(),e.DNE(24,Rc,19,8,"mat-step",18)(25,wt,5,4,"mat-step",19)(26,On,5,4,"mat-step",19),e.k0s(),e.j41(27,"div",20)(28,"button",21),e.EFF(29),e.k0s()()()()()()}2&J&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(4),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",ne.passwordFormGroup)("editable",ne.flgEditable),e.R7$(),e.Y8G("formGroup",ne.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==ne.passwordFormGroup||null==ne.passwordFormGroup.controls||null==ne.passwordFormGroup.controls.password||null==ne.passwordFormGroup.controls.password.errors?null:ne.passwordFormGroup.controls.password.errors.required),e.R7$(4),e.Y8G("ngIf",!ne.showDisableStepper),e.R7$(),e.Y8G("ngIf",!ne.showDisableStepper),e.R7$(),e.Y8G("ngIf",ne.showDisableStepper),e.R7$(2),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(ne.flgValidated&&ne.isTokenValid?"Close":"Cancel"))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.j4,_i.JD,cr.aY,Oo.tx,tr.$z,De.m2,De.MM,Br.fg,wa.rl,wa.nJ,wa.TL,wa.yw,at.DJ,at.sA,at.UI,uo.V5,uo.Ti,uo.M6,uo.F7,bc.Um,ac.U,Xl.N],encapsulation:2}))}return z(),N})();var Mt=l(4416),zi=l(53202),Wi=l(71997);const Zi=["authForm"];function Ja(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Current password is required."),e.k0s())}function Fa(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.errorMsg)}}function Ts(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.errorConfirmMsg)}}function _r(z,N){if(1&z){const I=e.RV6();e.j41(0,"form",12,0)(2,"div",13),e.nrm(3,"fa-icon",6),e.j41(4,"span",7),e.EFF(5,"Password"),e.k0s()(),e.j41(6,"mat-form-field")(7,"mat-label"),e.EFF(8,"Current Password"),e.k0s(),e.j41(9,"input",14),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.currPassword,J)||(ne.currPassword=J),p.Njj(J)}),e.k0s(),e.DNE(10,Ja,2,0,"mat-error",15),e.k0s(),e.j41(11,"mat-form-field")(12,"mat-label"),e.EFF(13,"New Password"),e.k0s(),e.j41(14,"input",16),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.newPassword,J)||(ne.newPassword=J),p.Njj(J)}),e.k0s(),e.DNE(15,Fa,2,1,"mat-error",15),e.k0s(),e.j41(16,"mat-form-field")(17,"mat-label"),e.EFF(18,"Confirm New Password"),e.k0s(),e.j41(19,"input",17),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.confirmPassword,J)||(ne.confirmPassword=J),p.Njj(J)}),e.k0s(),e.DNE(20,Ts,2,1,"mat-error",15),e.k0s(),e.j41(21,"div",18)(22,"button",19),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onResetPassword())}),e.EFF(23,"Reset"),e.k0s(),e.j41(24,"button",20),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onChangePassword())}),e.EFF(25,"Change Password"),e.k0s()()()}if(2&z){const I=e.XpG();e.R7$(3),e.Y8G("icon",I.faLock),e.R7$(6),e.R50("ngModel",I.currPassword),e.R7$(),e.Y8G("ngIf",!I.currPassword),e.R7$(4),e.R50("ngModel",I.newPassword),e.R7$(),e.Y8G("ngIf",I.matchOldAndNewPasswords()),e.R7$(4),e.R50("ngModel",I.confirmPassword),e.R7$(),e.Y8G("ngIf",I.matchNewPasswords())}}let vr=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.logger=H,this.store=J,this.actions=ne,this.router=ot,this.sessionService=jt,this.faInfoCircle=Ti.iW_,this.faUserLock=Ti.aAJ,this.faUserClock=Ti.ld_,this.faLock=Ti.DW4,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.logger.info(this.appConfig)}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.selNode=H}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(H=>H.type===Mt.aU.RESET_PASSWORD_RES)).subscribe(H=>{if(Mt.Ah.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation?.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||Mt.Ah.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Ui.xw)({payload:{currPassword:vc(this.currPassword).toString(),newPassword:vc(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let H=!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.",H=!0):Mt.Ah.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=Mt.Ah?.reduce((J,ne,ot)=>ot{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il),e.rXU(Vo.En),e.rXU(ja.Ix),e.rXU(zi.Q))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-auth-settings"]],viewQuery:function(J,ne){if(1&J&&e.GBs(Zi,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.form=ot.first)}},standalone:!1,decls:15,vars:4,consts:[["authForm","ngForm"],["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"],[1,"my-2"],["fxLayout","column","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"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["matInput","","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModelChange","ngModel"],["matInput","","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModelChange","ngModel"],["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"]],template:function(J,ne){1&J&&(e.j41(0,"div",1),e.DNE(1,_r,26,7,"form",2),e.nrm(2,"mat-divider",3),e.j41(3,"div",4)(4,"div",5),e.nrm(5,"fa-icon",6),e.j41(6,"span",7),e.EFF(7,"Two Factor Authentication"),e.k0s()(),e.j41(8,"div",8),e.nrm(9,"fa-icon",9),e.j41(10,"span"),e.EFF(11,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.k0s()(),e.j41(12,"div",10)(13,"button",11),e.bIt("click",function(){return ne.on2FAuth()}),e.EFF(14),e.k0s()()()()),2&J&&(e.R7$(),e.Y8G("ngIf",null==ne.appConfig?null:ne.appConfig.allowPasswordUpdate),e.R7$(4),e.Y8G("icon",ne.faUserClock),e.R7$(4),e.Y8G("icon",ne.faInfoCircle),e.R7$(5),e.JRh(ne.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,wa.TL,Wi.q,at.DJ,at.sA,at.UI,Xl.N],encapsulation:2}))}return z(),N})();var yr=l(3902);function Bs(z,N){1&z&&e.nrm(0,"mat-divider",7)}function rl(z,N){if(1&z&&(e.j41(0,"div",4)(1,"pre",5),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.DNE(4,Bs,1,0,"mat-divider",6),e.k0s()),2&z){const I=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,I.configData)),e.R7$(2),e.Y8G("ngIf",""!==I.configData)}}function Ys(z,N){if(1&z&&(e.j41(0,"h2"),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function rc(z,N){if(1&z&&(e.j41(0,"h4",14),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function sl(z,N){1&z&&e.nrm(0,"mat-divider",15),2&z&&e.Y8G("inset",!0)}function Sh(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-card-subtitle",7),e.DNE(2,Ys,2,1,"h2",10),e.k0s(),e.j41(3,"mat-card-subtitle",11),e.DNE(4,rc,2,1,"h4",12),e.k0s(),e.DNE(5,sl,1,1,"mat-divider",13),e.k0s()),2&z){const I=N.$implicit;e.R7$(2),e.Y8G("ngIf",I.indexOf("[")>=0),e.R7$(2),e.Y8G("ngIf",I.indexOf("[")<0),e.R7$(),e.Y8G("ngIf",I.indexOf("[")<0)}}function xc(z,N){if(1&z&&(e.j41(0,"div",8)(1,"mat-list"),e.DNE(2,Sh,6,3,"mat-list-item",9),e.k0s()()),2&z){const I=e.XpG();e.R7$(2),e.Y8G("ngForOf",I.configData)}}let t0=(()=>{var z;class N{constructor(H,J,ne){this.store=H,this.rtlEffects=J,this.router=ne,this.configData="",this.fileFormat="INI",this.faCog=Ti.dB,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.dispatch((0,Ui.Dz)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{const J=H.data;this.fileFormat=H.format,this.configData=""===J||!J||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==J&&J&&"JSON"===this.fileFormat?J:"":J.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(Ko.H),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-bitcoin-config"]],standalone:!1,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(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,rl,5,4,"div",2)(3,xc,3,1,"div",3),e.k0s()()),2&J&&(e.R7$(2),e.Y8G("ngIf",""!==ne.configData&&"JSON"===ne.fileFormat),e.R7$(),e.Y8G("ngIf",""!==ne.configData&&("INI"===ne.fileFormat||"HOCON"===ne.fileFormat)))},dependencies:[o.Sq,o.bT,De.Lc,yr.jt,yr.YE,Wi.q,at.DJ,at.sA,at.UI,o.TG],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})();function Nm(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}let K4=(()=>{var z;class N{constructor(H,J,ne){this.dialogRef=H,this.store=J,this.rtlEffects=ne,this.password="",this.isAuthenticated=!1,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,Ss.s)(1)).subscribe(H=>{"ERROR"!==H?(this.isAuthenticated=!0,this.store.dispatch((0,Ui.R$)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Ui.oz)({payload:vc(this.password)}))}onClose(){this.store.dispatch((0,Ui.R$)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(vi.il),e.rXU(Ko.H))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-is-authorized"]],standalone:!1,decls:18,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 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","","type","password","id","password","name","password","tabindex","1","required","",3,"ngModelChange","ngModel"],[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(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e.EFF(5,"Authenticate with your RTL Password"),e.k0s()(),e.j41(6,"button",5),e.bIt("click",function(){return ne.onClose()}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"mat-label"),e.EFF(12,"Password"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(jt){return e.DH7(ne.password,jt)||(ne.password=jt),jt}),e.k0s(),e.DNE(14,Nm,2,0,"mat-error",9),e.k0s(),e.j41(15,"div",10)(16,"button",11),e.bIt("click",function(){return ne.onAuthenticate()}),e.EFF(17,"Confirm"),e.k0s()()()()()()),2&J&&(e.R7$(13),e.R50("ngModel",ne.password),e.R7$(),e.Y8G("ngIf",!ne.password))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,tr.$z,De.m2,De.MM,Br.fg,wa.rl,wa.nJ,wa.TL,at.DJ,at.sA,at.UI,Xl.N],encapsulation:2}))}return z(),N})();const n0=()=>({initial:!1});function i0(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[2].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[2].link))("active",I.activeLink===I.links[2].link)("state",e.lJ4(5,n0)),e.R7$(),e.JRh(I.links[2].name)}}function n1(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[3].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[3].link))("active",I.activeLink===I.links[3].link),e.R7$(),e.JRh(I.links[3].name)}}function bd(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",15),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.showLnConfigClicked())}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("active",I.activeLink===I.links[4].link),e.R7$(),e.JRh(I.links[4].name)}}let Th=(()=>{var z;class N{constructor(H,J,ne,ot){this.store=H,this.router=J,this.rtlEffects=ne,this.activatedRoute=ot,this.faTools=Ti.nsx,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodesettings",name:"Node Settings"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){const H=this.links.find(J=>this.router.url.includes(J.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeLink=ne?ne.link:this.links[0].link}}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{this.appConfig=J}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[2])).subscribe(J=>{switch(this.showLnConfig=!1,this.selNode=J,this.selNode.lnImplementation?.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.appConfig.SSO.rtlSSO?(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})):(this.store.dispatch((0,Ui.xO)({payload:{maxWidth:"50rem",data:{component:K4}}})),this.rtlEffects.closeAlert.pipe((0,mi.Q)(this.unSubs[3])).subscribe(H=>{H&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(ja.Ix),e.rXU(Ko.H),e.rXU(ja.nX))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-node-config"]],standalone:!1,decls:19,vars:13,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","3","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","state","click",4,"ngIf"],["tabindex","4","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","5","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"],["tabindex","3","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active","state"],["tabindex","4","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","5","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","active"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Node Config"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6)(8,"div",7),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.activeLink=ne.links[0].link)}),e.EFF(9),e.k0s(),e.j41(10,"div",8),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.activeLink=ne.links[1].link)}),e.EFF(11),e.k0s(),e.DNE(12,i0,2,6,"div",9)(13,n1,2,4,"div",10)(14,bd,2,2,"div",11),e.k0s(),e.nrm(15,"mat-tab-nav-panel",null,0),e.j41(17,"div",12),e.nrm(18,"router-outlet"),e.k0s()()()()}if(2&J){const ot=e.sdS(16);e.R7$(),e.Y8G("icon",ne.faTools),e.R7$(6),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("routerLink",e.mNQ(ne.links[0].link))("active",ne.activeLink===ne.links[0].link),e.R7$(),e.JRh(ne.links[0].name),e.R7$(),e.Y8G("routerLink",e.mNQ(ne.links[1].link))("active",ne.activeLink===ne.links[1].link),e.R7$(),e.JRh(ne.links[1].name),e.R7$(),e.Y8G("ngIf","ECL"!==(null==ne.selNode||null==ne.selNode.lnImplementation?null:ne.selNode.lnImplementation.toUpperCase())),e.R7$(),e.Y8G("ngIf","CLN"===(null==ne.selNode||null==ne.selNode.lnImplementation?null:ne.selNode.lnImplementation.toUpperCase())),e.R7$(),e.Y8G("ngIf",ne.showLnConfig)}},dependencies:[o.bT,cr.aY,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,ja.n3,co.Wk],encapsulation:2}))}return z(),N})();function L2(z,N){1&z&&e.nrm(0,"mat-divider",7)}function zs(z,N){if(1&z&&(e.j41(0,"div",4)(1,"pre",5),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.DNE(4,L2,1,0,"mat-divider",6),e.k0s()),2&z){const I=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,I.configData)),e.R7$(2),e.Y8G("ngIf",""!==I.configData)}}function I2(z,N){if(1&z&&(e.j41(0,"h2"),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function Dh(z,N){if(1&z&&(e.j41(0,"h4",14),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function Xa(z,N){1&z&&e.nrm(0,"mat-divider",15),2&z&&e.Y8G("inset",!0)}function k2(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-card-subtitle",7),e.DNE(2,I2,2,1,"h2",10),e.k0s(),e.j41(3,"mat-card-subtitle",11),e.DNE(4,Dh,2,1,"h4",12),e.k0s(),e.DNE(5,Xa,1,1,"mat-divider",13),e.k0s()),2&z){const I=N.$implicit;e.R7$(2),e.Y8G("ngIf",I.indexOf("[")>=0),e.R7$(2),e.Y8G("ngIf",I.indexOf("[")<0),e.R7$(),e.Y8G("ngIf",I.indexOf("[")<0)}}function Cc(z,N){if(1&z&&(e.j41(0,"div",8)(1,"mat-list"),e.DNE(2,k2,6,3,"mat-list-item",9),e.k0s()()),2&z){const I=e.XpG();e.R7$(2),e.Y8G("ngForOf",I.configData)}}let id=(()=>{var z;class N{constructor(H,J,ne){this.store=H,this.rtlEffects=J,this.router=ne,this.configData="",this.fileFormat="INI",this.faCog=Ti.dB,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.dispatch((0,Ui.Dz)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{const J=H.data;this.fileFormat=H.format,this.configData=""===J||!J||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==J&&J&&"JSON"===this.fileFormat?J:"":J.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(Ko.H),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-lnp-config"]],standalone:!1,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(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,zs,5,4,"div",2)(3,Cc,3,1,"div",3),e.k0s()()),2&J&&(e.R7$(2),e.Y8G("ngIf",""!==ne.configData&&"JSON"===ne.fileFormat),e.R7$(),e.Y8G("ngIf",""!==ne.configData&&("INI"===ne.fileFormat||"HOCON"===ne.fileFormat)))},dependencies:[o.Sq,o.bT,De.Lc,yr.jt,yr.YE,Wi.q,at.DJ,at.sA,at.UI,o.TG],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})();var _o=l(82571),ss=l(9454),i1=l(5951),ol=l(16038),xd=l(30450);const a1=z=>({skin:!0,"selected-color":z});function r1(z,N){if(1&z&&(e.j41(0,"span",41),e.nrm(1,"fa-icon",42),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("icon",I.symbol)}}function R2(z,N){if(1&z&&(e.j41(0,"span",41),e.nrm(1,"span",43),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("innerHTML",I.symbol,e.npT)}}function a0(z,N){if(1&z&&(e.j41(0,"mat-option",39),e.DNE(1,r1,2,1,"span",40)(2,R2,2,1,"span",40),e.EFF(3),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I.id),e.R7$(),e.Y8G("ngIf",I&&"FA"===I.iconType),e.R7$(),e.Y8G("ngIf",I&&"SVG"===I.iconType),e.R7$(),e.Lme(" ",I.name," (",I.id,") ")}}function s1(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Currency unit is required."),e.k0s())}function Mc(z,N){if(1&z&&(e.j41(0,"mat-radio-button",44),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("value",I)("checked",H.selNode.settings.userPersona===I),e.R7$(),e.SpI(" ",e.bMT(2,3,I)," ")}}function O2(z,N){if(1&z&&(e.j41(0,"mat-radio-button",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI("",I.name," ")}}function r0(z,N){if(1&z){const I=e.RV6();e.j41(0,"span",46)(1,"div",47),e.nI1(2,"lowercase"),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.changeThemeColor(J.id))}),e.k0s(),e.EFF(3),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.HbH(e.bMT(2,4,I.id)),e.Y8G("ngClass",e.eq3(6,a1,H.selectedThemeColor===I.id)),e.R7$(2),e.SpI(" ",I.name," ")}}let Cd=(()=>{var z;class N{constructor(H,J,ne,ot){this.logger=H,this.commonService=J,this.store=ne,this.sanitizer=ot,this.faBarsStaggered=Ti.o97,this.faExclamationTriangle=Ti.zpE,this.faMoneyBillAlt=Ti.iy8,this.faPaintBrush=Ti._eQ,this.faInfoCircle=Ti.iW_,this.faEyeSlash=Ti.k6j,this.userPersonas=[Mt.HW.OPERATOR,Mt.HW.MERCHANT],this.currencyUnits=Mt.Zi,this.themeModes=Mt.Bv.modes,this.themeColors=Mt.Bv.themes,this.selectedThemeMode=Mt.Bv.modes[0],this.selectedThemeColor=Mt.Bv.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Mt.f7,this.unSubs=[new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.currencyUnits.map(H=>("SVG"===H.iconType&&"string"==typeof H.symbol&&(H.symbol=H.symbol.replace('{this.selNode=JSON.parse(JSON.stringify(H)),this.selectedThemeMode=this.themeModes.find(J=>this.selNode.settings.themeMode===J.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(H)})}toggleSettings(H,J){this.selNode.settings[H]=!this.selNode.settings[H]}changeThemeColor(H){this.selectedThemeColor=H,this.selNode.settings.themeColor=H}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onFiatConversionChange(H){this.selNode.settings.fiatConversion||delete this.selNode.settings.currencyUnit}onUpdateNodeSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.selNode.settings.blockExplorerUrl=this.selNode.settings.blockExplorerUrl.replace(/\/$/,""),this.logger.info(this.selNode.settings),this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}onResetSettings(){const H=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(J=>J.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Ui.Qi)({payload:{uiMessage:Mt.MZ.NO_SPINNER,prevLnNodeIndex:+H,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(P.up))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-node-settings"]],standalone:!1,decls:100,vars:21,consts:[["form","ngForm"],["currencyUnit","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container"],["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"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://mempool.space/","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["matInput","","name","blockExplorerUrl",3,"ngModelChange","ngModel"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModelChange","change","ngModel"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["tabindex","2","color","primary","name","fiatConversion",1,"mr-2",3,"ngModelChange","change","ngModel"],["fxFlex","25"],["autoFocus","","tabindex","3","name","currencyUnit",3,"ngModelChange","disabled","required","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",1,"radio-group",3,"ngModelChange","ngModel"],["class","radio-text mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["color","primary","name","themeMode",1,"radio-group",3,"ngModelChange","change","ngModel"],["tabindex","5","class","radio-text mr-4",3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["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","column","fxLayoutAlign","start start",1,"mt-1"],["fxLayout","row"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],["class","mr-1",4,"ngIf"],[1,"mr-1"],[3,"icon"],["fxLayoutAlign","center center",3,"innerHTML"],[1,"radio-text","mr-4",3,"value","checked"],["tabindex","5",1,"radio-text","mr-4",3,"value"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"click","ngClass"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"mat-accordion",4)(4,"mat-expansion-panel",5)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e.nrm(7,"fa-icon",6),e.j41(8,"span",7),e.EFF(9,"Block Explorer"),e.k0s()()(),e.j41(10,"div",8)(11,"div",9),e.nrm(12,"fa-icon",10),e.j41(13,"span"),e.EFF(14,"Configure your own blockchain explorer url or "),e.j41(15,"strong")(16,"a",11),e.EFF(17,"mempool.space"),e.k0s()(),e.EFF(18," will be used."),e.k0s()(),e.j41(19,"div",12)(20,"mat-form-field",13)(21,"mat-label"),e.EFF(22,"Block Explorer URL"),e.k0s(),e.j41(23,"input",14),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.blockExplorerUrl,$t)||(ne.selNode.settings.blockExplorerUrl=$t),p.Njj($t)}),e.k0s(),e.j41(24,"mat-hint"),e.EFF(25,"Blockchain explorer URL, eg. https://mempool.space or https://blockstream.info"),e.k0s()()()()(),e.j41(26,"mat-expansion-panel",5)(27,"mat-expansion-panel-header")(28,"mat-panel-title"),e.nrm(29,"fa-icon",6),e.j41(30,"span",7),e.EFF(31,"Open Unannounced Channels"),e.k0s()()(),e.j41(32,"div",8)(33,"div",15),e.nrm(34,"fa-icon",10),e.j41(35,"span"),e.EFF(36,"Use this control to toggle setting which defaults to opening unannounced channels only."),e.k0s()(),e.j41(37,"div",12)(38,"mat-slide-toggle",16),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.unannouncedChannels,$t)||(ne.selNode.settings.unannouncedChannels=$t),p.Njj($t)}),e.bIt("change",function(){return p.eBV(ot),p.Njj(!ne.selNode.settings.unannouncedChannels)}),e.EFF(39,"Open Unannounced Channels"),e.k0s()()()(),e.j41(40,"mat-expansion-panel",5)(41,"mat-expansion-panel-header")(42,"mat-panel-title"),e.nrm(43,"fa-icon",6),e.j41(44,"span",7),e.EFF(45,"Balance Display"),e.k0s()()(),e.j41(46,"div",8)(47,"div",9),e.nrm(48,"fa-icon",10),e.j41(49,"span"),e.EFF(50,"Fiat conversion calls "),e.j41(51,"strong")(52,"a",17),e.EFF(53,"Blockchain.com"),e.k0s()(),e.EFF(54," API to get conversion rates."),e.k0s()(),e.j41(55,"div",12)(56,"mat-slide-toggle",18),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.fiatConversion,$t)||(ne.selNode.settings.fiatConversion=$t),p.Njj($t)}),e.bIt("change",function($t){return p.eBV(ot),p.Njj(ne.onFiatConversionChange($t))}),e.EFF(57,"Enable Fiat Conversion"),e.k0s(),e.j41(58,"mat-form-field",19)(59,"mat-label"),e.EFF(60,"Fiat Currency"),e.k0s(),e.j41(61,"mat-select",20,1),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.currencyUnit,$t)||(ne.selNode.settings.currencyUnit=$t),p.Njj($t)}),e.DNE(63,a0,4,5,"mat-option",21),e.k0s(),e.DNE(64,s1,2,0,"mat-error",22),e.k0s()()()(),e.j41(65,"mat-expansion-panel",5)(66,"mat-expansion-panel-header")(67,"mat-panel-title"),e.nrm(68,"fa-icon",6),e.j41(69,"span",7),e.EFF(70,"Customization"),e.k0s()()(),e.j41(71,"div",8)(72,"div",23),e.nrm(73,"fa-icon",10),e.j41(74,"span"),e.EFF(75,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.k0s()(),e.j41(76,"div",24)(77,"h4"),e.EFF(78,"Dashboard Layout"),e.k0s(),e.j41(79,"mat-radio-group",25),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.userPersona,$t)||(ne.selNode.settings.userPersona=$t),p.Njj($t)}),e.DNE(80,Mc,3,5,"mat-radio-button",26),e.k0s()(),e.nrm(81,"mat-divider",27),e.j41(82,"div",28)(83,"h4"),e.EFF(84,"Mode"),e.k0s(),e.j41(85,"mat-radio-group",29),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selectedThemeMode,$t)||(ne.selectedThemeMode=$t),p.Njj($t)}),e.bIt("change",function(){return p.eBV(ot),p.Njj(ne.chooseThemeMode())}),e.DNE(86,O2,2,2,"mat-radio-button",30),e.k0s()(),e.nrm(87,"mat-divider",27),e.j41(88,"div",31)(89,"div",32)(90,"h4"),e.EFF(91,"Themes"),e.k0s(),e.j41(92,"div",33),e.DNE(93,r0,4,8,"span",34),e.k0s()()()()()()(),e.j41(94,"div",35)(95,"div",36)(96,"button",37),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onResetSettings())}),e.EFF(97,"Reset"),e.k0s(),e.j41(98,"button",38),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdateNodeSettings())}),e.EFF(99,"Update"),e.k0s()()()()}2&J&&(e.R7$(7),e.Y8G("icon",ne.faBarsStaggered),e.R7$(5),e.Y8G("icon",ne.faExclamationTriangle),e.R7$(11),e.R50("ngModel",ne.selNode.settings.blockExplorerUrl),e.R7$(6),e.Y8G("icon",ne.faEyeSlash),e.R7$(5),e.Y8G("icon",ne.faInfoCircle),e.R7$(4),e.R50("ngModel",ne.selNode.settings.unannouncedChannels),e.R7$(5),e.Y8G("icon",ne.faMoneyBillAlt),e.R7$(5),e.Y8G("icon",ne.faExclamationTriangle),e.R7$(8),e.R50("ngModel",ne.selNode.settings.fiatConversion),e.R7$(5),e.Y8G("disabled",!ne.selNode.settings.fiatConversion)("required",ne.selNode.settings.fiatConversion),e.R50("ngModel",ne.selNode.settings.currencyUnit),e.R7$(2),e.Y8G("ngForOf",ne.currencyUnits),e.R7$(),e.Y8G("ngIf",ne.selNode.settings.fiatConversion&&!ne.selNode.settings.currencyUnit),e.R7$(4),e.Y8G("icon",ne.faPaintBrush),e.R7$(5),e.Y8G("icon",ne.faInfoCircle),e.R7$(6),e.R50("ngModel",ne.selNode.settings.userPersona),e.R7$(),e.Y8G("ngForOf",ne.userPersonas),e.R7$(5),e.R50("ngModel",ne.selectedThemeMode),e.R7$(),e.Y8G("ngForOf",ne.themeModes),e.R7$(7),e.Y8G("ngForOf",ne.themeColors))},dependencies:[o.YU,o.Sq,o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,ss.BS,ss.GK,ss.Z2,ss.WN,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,Wi.q,i1.VT,i1._g,at.DJ,at.sA,at.UI,ol.PW,al.VO,ic.wT,xd.sG,go.Ld,Xl.N,o.GH,o.PV],styles:["h4[_ngcontent-%COMP%]{margin:.75rem 0 .5rem}.theme-name[_ngcontent-%COMP%]{min-width:10rem}@media only screen and (max-width:37.5em){.theme-name[_ngcontent-%COMP%]{min-width:unset}}.skin[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;border-radius:50%;cursor:pointer;margin-right:.5rem}.skin.selected-color[_ngcontent-%COMP%]{width:1rem;height:1rem;border:2px solid}.skin.purple[_ngcontent-%COMP%]{background-color:#5e4ea5}.skin.indigo[_ngcontent-%COMP%]{background-color:#3f51b5}.skin.teal[_ngcontent-%COMP%]{background-color:#00695c}.skin.pink[_ngcontent-%COMP%]{background-color:#d81b60}.skin.yellow[_ngcontent-%COMP%]{background-color:#a1842c}"]}))}return z(),N})();var s0=l(59584),o0=l(63536),zr=l(28430),Ur=l(190),Ah=l(72730),Ta=l(95428),sc=l(22598),Oc=l(12629),o1=l(40455),l1=l(52929);const kl=z=>({error:z}),l0=z=>({"error-border":z}),c0=z=>({"ml-minus-1":z}),P2=z=>({"error-border p-2":z});function d0(z,N){if(1&z&&e.eu8(0,14),2&z){const I=e.XpG(),H=e.sdS(18);e.Y8G("ngTemplateOutlet",H)("ngTemplateOutletContext",e.eq3(2,kl,I.errorMessage))}}function u0(z,N){if(1&z&&(e.j41(0,"mat-option",31),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI(" ",I," ")}}function Lh(z,N){if(1&z&&(e.j41(0,"mat-option",31),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG(3);e.Y8G("value",I),e.R7$(),e.SpI(" ","ECL"===H.selNode.lnImplementation?e.bMT(2,2,I):e.i5U(3,4,I,"_")," ")}}function N2(z,N){if(1&z&&(e.j41(0,"mat-option",31),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI(" ","desc"===I?"Descending":"Ascending"," ")}}function Ih(z,N){if(1&z&&(e.j41(0,"mat-option",34),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG(2).$implicit,J=e.XpG(2);e.Y8G("value",I.column)("disabled",H.columnSelection.length<=2&&H.columnSelection.includes(I.column)),e.R7$(),e.SpI(" ",I.label?I.label:"ECL"===J.selNode.lnImplementation?e.bMT(2,3,I.column):e.i5U(3,5,I.column,"_")," ")}}function F2(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-form-field",32)(1,"mat-label"),e.EFF(2,"Column selection (Desktop Resolution)"),e.k0s(),e.j41(3,"mat-select",33),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG().$implicit;return e.DH7(ne.columnSelection,J)||(ne.columnSelection=J),p.Njj(J)}),e.bIt("selectionChange",function(){p.eBV(I);const J=e.XpG().$implicit,ne=e.XpG(2);return p.Njj(ne.oncolumnSelectionChange(J))}),e.DNE(4,Ih,4,8,"mat-option",28),e.k0s()()}if(2&z){const I=e.XpG().$implicit,H=e.XpG().$implicit,J=e.XpG();e.R7$(3),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-columns-selection")),e.R50("ngModel",I.columnSelection),e.R7$(),e.Y8G("ngForOf",J.nodePageDefs[H.pageId][I.tableId].allowedColumns)}}function B2(z,N){if(1&z&&(e.j41(0,"mat-option",34),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG().$implicit,J=e.XpG(2);e.Y8G("value",I.column)("disabled",H.columnSelectionSM.length<=1&&H.columnSelectionSM.includes(I.column)||H.columnSelectionSM.length>=3&&!H.columnSelectionSM.includes(I.column)),e.R7$(),e.SpI(" ",I.label?I.label:"ECL"===J.selNode.lnImplementation?e.bMT(2,3,I.column):e.i5U(3,5,I.column,"_")," ")}}function Y4(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",17)(1,"div",18)(2,"span",19),e.EFF(3),e.nI1(4,"camelcaseWithReplace"),e.k0s(),e.j41(5,"mat-form-field",20)(6,"mat-label"),e.EFF(7,"Records/Page"),e.k0s(),e.j41(8,"mat-select",21),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.recordsPerPage,J)||(ne.recordsPerPage=J),p.Njj(J)}),e.DNE(9,u0,2,2,"mat-option",22),e.k0s()(),e.j41(10,"mat-form-field",20)(11,"mat-label"),e.EFF(12,"Sort By"),e.k0s(),e.j41(13,"mat-select",23),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.sortBy,J)||(ne.sortBy=J),p.Njj(J)}),e.DNE(14,Lh,4,7,"mat-option",22),e.k0s()(),e.j41(15,"mat-form-field",20)(16,"mat-label"),e.EFF(17,"Sort Order"),e.k0s(),e.j41(18,"mat-select",24),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.sortOrder,J)||(ne.sortOrder=J),p.Njj(J)}),e.DNE(19,N2,2,2,"mat-option",22),e.k0s()(),e.DNE(20,F2,5,5,"mat-form-field",25),e.j41(21,"mat-form-field",26)(22,"mat-label"),e.EFF(23,"Column Selection (Mobile Resolution)"),e.k0s(),e.j41(24,"mat-select",27),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.columnSelectionSM,J)||(ne.columnSelectionSM=J),p.Njj(J)}),e.DNE(25,B2,4,8,"mat-option",28),e.k0s()(),e.j41(26,"button",29),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG().$implicit,ot=e.XpG();return p.Njj(ot.onTableReset(ne.pageId,J))}),e.j41(27,"mat-icon",30),e.EFF(28,"restore"),e.k0s()()()()}if(2&z){const I=N.$implicit,H=e.XpG().$implicit,J=e.XpG();e.R7$(3),e.SpI("",e.i5U(4,24,I.tableId,"_"),":"),e.R7$(5),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-page-size-options"))("disabled",J.nodePageDefs[H.pageId][I.tableId].disablePageSize),e.R50("ngModel",I.recordsPerPage),e.R7$(),e.Y8G("ngForOf",J.pageSizeOptions),e.R7$(4),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-sort-by")),e.R50("ngModel",I.sortBy),e.R7$(),e.Y8G("ngForOf",I.columnSelection),e.R7$(4),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-sort-order")),e.R50("ngModel",I.sortOrder),e.R7$(),e.Y8G("ngForOf",J.sortOrders),e.R7$(),e.Y8G("ngIf",J.screenSize!==J.screenSizeEnum.XS),e.R7$(4),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-columns-selection-sm")),e.R50("ngModel",I.columnSelectionSM),e.R7$(),e.Y8G("ngForOf",J.nodePageDefs[H.pageId][I.tableId].allowedColumns),e.R7$(2),e.Y8G("ngClass",e.eq3(27,c0,J.screenSize===J.screenSizeEnum.XS||J.screenSize===J.screenSizeEnum.SM))}}function Md(z,N){if(1&z&&e.eu8(0,14),2&z){const I=e.XpG(2),H=e.sdS(18);e.Y8G("ngTemplateOutlet",H)("ngTemplateOutletContext",e.eq3(2,kl,I.errorMessage))}}function z2(z,N){if(1&z&&(e.j41(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e.EFF(3),e.nI1(4,"camelcaseWithReplace"),e.k0s()(),e.DNE(5,Y4,29,29,"div",16)(6,Md,1,4,"ng-container",7),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("ngClass",e.eq3(7,l0,(null==H.errorMessage?null:H.errorMessage.page)===I.pageId)),e.R7$(3),e.JRh(e.i5U(4,4,I.pageId,"_")),e.R7$(2),e.Y8G("ngForOf",I.tables),e.R7$(),e.Y8G("ngIf",H.errorMessage&&(null==H.errorMessage?null:H.errorMessage.page)===I.pageId)}}function c1(z,N){if(1&z&&(e.j41(0,"mat-panel-title"),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&z){const I=e.XpG().error;e.R7$(),e.SpI("Page ",e.bMT(2,1,I.page))}}function U2(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-icon",39),e.EFF(2,"close"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&z){const I=e.XpG().error;e.R7$(4),e.JRh(I.message)}}function h0(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-icon",39),e.EFF(2,"close"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"titlecase"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(4),e.Lme("Table ",e.bMT(5,2,I.table)," ",I.message)}}function kh(z,N){if(1&z&&(e.j41(0,"div",35),e.DNE(1,c1,3,3,"mat-panel-title",36),e.j41(2,"mat-list",37),e.DNE(3,U2,5,1,"mat-list-item",36)(4,h0,6,4,"mat-list-item",38),e.k0s()()),2&z){const I=N.error,H=e.XpG();e.Y8G("ngClass",e.eq3(4,P2,"unknown"===H.errorMessage.page)),e.R7$(),e.Y8G("ngIf","unknown"===H.errorMessage.page),e.R7$(2),e.Y8G("ngIf",I.message),e.R7$(),e.Y8G("ngForOf",I.tables)}}let V2=(()=>{var z;class N{constructor(H,J,ne,ot){this.logger=H,this.commonService=J,this.store=ne,this.actions=ot,this.faPenRuler=Ti.$$g,this.faExclamationTriangle=Ti.zpE,this.screenSize="",this.screenSizeEnum=Mt.f7,this.pageSizeOptions=Mt.xp,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=Mt.jG,this.apiCallStatus=null,this.apiCallStatusEnum=Mt.wn,this.errorMessage=null,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{switch(this.selNode=H,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],Mt.mu),this.defaultSettings=Object.assign([],Mt.mu),this.nodePageDefs=Mt.Jd,this.store.select(s0.av).pipe((0,mi.Q)(this.unSubs[1]),(0,so.E)(this.store.select(Ra._c))).subscribe(([J,ne])=>{const ot=JSON.parse(JSON.stringify(J.pageSettings));if(this.errorMessage=null,this.apiCallStatus=J.apiCallStatus,this.apiCallStatus.status===Mt.wn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ot,this.initialPageSettings=ot;else{if(!ne?.settings.enableOffers){const jt=ot.find(ii=>"transactions"===ii.pageId),$t=jt?.tables.findIndex(ii=>"offers"===ii.tableId),Tn=jt?.tables.findIndex(ii=>"offer_bookmarks"===ii.tableId);$t>-1&&jt?.tables.splice($t,1),Tn>-1&&jt?.tables.splice(Tn,1)}if(!ne?.settings.enablePeerswap){const jt=ot.findIndex($t=>"peerswap"===$t.pageId);jt>-1&&ot.splice(jt,1)}this.pageSettings=ot,this.initialPageSettings=ot}this.logger.info(ot)}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(J=>J.type===Mt.TC.UPDATE_API_CALL_STATUS_CLN||J.type===Mt.TC.SAVE_PAGE_SETTINGS_CLN)).subscribe(J=>{J.type===Mt.TC.UPDATE_API_CALL_STATUS_CLN&&J.payload.status===Mt.wn.ERROR&&"SavePageSettings"===J.payload.action&&(this.errorMessage=JSON.parse(J.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],Mt.X8),this.defaultSettings=Object.assign([],Mt.X8),this.nodePageDefs=Mt.WW,this.store.select(Ah.jZ).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{const ne=JSON.parse(JSON.stringify(J.pageSettings));this.errorMessage=null,this.apiCallStatus=J.apiCallStatus,this.apiCallStatus.status===Mt.wn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ne,this.initialPageSettings=ne):(this.pageSettings=ne,this.initialPageSettings=ne),this.logger.info(ne)}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(J=>J.type===Mt.Uu.UPDATE_API_CALL_STATUS_ECL||J.type===Mt.Uu.SAVE_PAGE_SETTINGS_ECL)).subscribe(J=>{J.type===Mt.Uu.UPDATE_API_CALL_STATUS_ECL&&J.payload.status===Mt.wn.ERROR&&"SavePageSettings"===J.payload.action&&(this.errorMessage=JSON.parse(J.payload.message))});break;default:this.initialPageSettings=Object.assign([],Mt.ZC),this.defaultSettings=Object.assign([],Mt.ZC),this.nodePageDefs=Mt._1,this.store.select(o0.$G).pipe((0,mi.Q)(this.unSubs[1]),(0,so.E)(this.store.select(Ra._c))).subscribe(([J,ne])=>{const ot=JSON.parse(JSON.stringify(J.pageSettings));if(this.errorMessage=null,this.apiCallStatus=J.apiCallStatus,this.apiCallStatus.status===Mt.wn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ot,this.initialPageSettings=ot;else{if(!ne?.settings.swapServerUrl||""===ne.settings.swapServerUrl.trim()){const jt=ot.findIndex($t=>"loop"===$t.pageId);jt>-1&&ot.splice(jt,1)}if(!ne?.settings.boltzServerUrl||""===ne.settings.boltzServerUrl.trim()){const jt=ot.findIndex($t=>"boltz"===$t.pageId);jt>-1&&ot.splice(jt,1)}if(!ne?.settings.enablePeerswap){const jt=ot.findIndex($t=>"peerswap"===$t.pageId);jt>-1&&ot.splice(jt,1)}this.pageSettings=ot,this.initialPageSettings=ot}this.logger.info(ot)}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(J=>J.type===Mt.QP.UPDATE_API_CALL_STATUS_LND||J.type===Mt.QP.SAVE_PAGE_SETTINGS_LND)).subscribe(J=>{J.type===Mt.QP.UPDATE_API_CALL_STATUS_LND&&J.payload.status===Mt.wn.ERROR&&"SavePageSettings"===J.payload.action&&(this.errorMessage=JSON.parse(J.payload.message))})}})}oncolumnSelectionChange(H){H.columnSelection&&(!H.sortBy||!H.columnSelection.includes(H.sortBy))&&(H.sortBy=H.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((H,J)=>H||J.tables.reduce((ne,ot)=>!(ot.recordsPerPage&&ot.sortBy&&ot.sortOrder&&ot.columnSelection&&ot.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,zr.Sn)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,Ta.Sn)({payload:this.pageSettings}));break;default:this.store.dispatch((0,Ur.Sn)({payload:this.pageSettings}))}}onTableReset(H,J){const ne=this.pageSettings.findIndex($t=>$t.pageId===H),ot=this.pageSettings[ne].tables.findIndex($t=>$t.tableId===J.tableId),jt=this.defaultSettings.find($t=>$t.pageId===H)?.tables.find($t=>$t.tableId===J.tableId)||this.pageSettings.find($t=>$t.pageId===H)?.tables.find($t=>$t.tableId===J.tableId);this.pageSettings[ne].tables.splice(ot,1,jt)}onResetPageSettings(H){"current"===H?(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(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(Vo.En))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-page-settings"]],standalone:!1,decls:19,vars:3,consts:[["form","ngForm"],["errorObjectBlock",""],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["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"],[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","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","10",1,"mb-2"],["fxLayout","column","fxFlex","10"],["tabindex","2","required","",3,"ngModelChange","name","disabled","ngModel"],[3,"value",4,"ngFor","ngForOf"],["tabindex","3","required","",3,"ngModelChange","name","ngModel"],["tabindex","4","required","",3,"ngModelChange","name","ngModel"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxLayout","column","fxFlex","15","matTooltip","Select between 1 and 3 columns"],["tabindex","5","multiple","","required","",3,"ngModelChange","name","ngModel"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",1,"mb-2",3,"click"],["color","primary",3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["tabindex","6","multiple","","required","",3,"ngModelChange","selectionChange","name","ngModel"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"div",4),e.nrm(4,"fa-icon",5),e.j41(5,"span",6),e.EFF(6,"Grid Settings"),e.k0s()(),e.DNE(7,d0,1,4,"ng-container",7),e.j41(8,"mat-accordion",8),e.DNE(9,z2,7,9,"mat-expansion-panel",9),e.k0s()(),e.j41(10,"div",10)(11,"button",11),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onResetPageSettings("current"))}),e.EFF(12,"Reset"),e.k0s(),e.j41(13,"button",12),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onResetPageSettings("default"))}),e.EFF(14,"Reset to Default"),e.k0s(),e.j41(15,"button",13),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdatePageSettings())}),e.EFF(16,"Save"),e.k0s()()(),e.DNE(17,kh,5,6,"ng-template",null,1,e.C5r)}2&J&&(e.R7$(4),e.Y8G("icon",ne.faPenRuler),e.R7$(3),e.Y8G("ngIf",ne.errorMessage&&"unknown"===ne.errorMessage.page),e.R7$(2),e.Y8G("ngForOf",ne.pageSettings))},dependencies:[o.YU,o.Sq,o.bT,o.T3,_i.qT,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,sc.iY,ss.BS,ss.GK,ss.Z2,ss.WN,Oc.An,wa.rl,wa.nJ,yr.jt,yr.YE,at.DJ,at.sA,at.UI,ol.PW,al.VO,ic.wT,o1.oV,go.Ld,o.PV,l1.VD,l1.Qu],styles:[".table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:.5rem 0}"]}))}return z(),N})();function Q4(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.setActiveLink(J.links[0].link))}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[0].link))("active",I.activeLink===I.links[0].link),e.R7$(),e.JRh(I.links[0].name)}}function Rh(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.setActiveLink(J.links[1].link))}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[1].link))("active",I.activeLink===I.links[1].link),e.R7$(),e.JRh(I.links[1].name)}}function Oh(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.setActiveLink(J.links[2].link))}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[2].link))("active",I.activeLink===I.links[2].link),e.R7$(),e.JRh(I.links[2].name)}}let Ph=(()=>{var z;class N{constructor(H,J,ne){this.store=H,this.router=J,this.activatedRoute=ne,this.faLayerGroup=Ti.qIE,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"noservice",name:"No Service"}],this.activeLink="",this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){this.setActiveLink(),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.selNode=H,this.setActiveLink(),this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})})}setActiveLink(H){if(H&&""!==H)this.activeLink=H;else{const J=this.links.find(ne=>this.router.url.includes(ne.link));this.activeLink=J?this.selNode&&"CLN"===this.selNode.lnImplementation?this.links[1].link:J.link:this.links[this.links.length-1].link}}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(ja.Ix),e.rXU(ja.nX))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-services-settings"]],standalone:!1,decls:16,vars:5,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","my-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","2","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","3","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","3","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(J,ne){if(1&J&&(e.j41(0,"div",1)(1,"div",2),e.nrm(2,"fa-icon",3),e.j41(3,"span",4),e.EFF(4,"Services"),e.k0s()()(),e.j41(5,"div",5)(6,"mat-card")(7,"mat-card-content",5)(8,"nav",6),e.DNE(9,Q4,2,4,"div",7)(10,Rh,2,4,"div",8)(11,Oh,2,4,"div",9),e.k0s(),e.nrm(12,"mat-tab-nav-panel",null,0),e.j41(14,"div",10),e.nrm(15,"router-outlet"),e.k0s()()()()),2&J){const ot=e.sdS(13);e.R7$(2),e.Y8G("icon",ne.faLayerGroup),e.R7$(6),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("ngIf","LND"===ne.selNode.lnImplementation),e.R7$(),e.Y8G("ngIf","ECL"!==ne.selNode.lnImplementation),e.R7$(),e.Y8G("ngIf","ECL"===ne.selNode.lnImplementation)}},dependencies:[o.bT,cr.aY,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,ja.n3,co.Wk],encapsulation:2}))}return z(),N})();const G2=["form"];function Nh(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Loop server URL is required."),e.k0s())}function H2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Specify the loop server url with 'https://'."),e.k0s())}function Fh(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Loop macaroon path is required."),e.k0s())}let d1=(()=>{var z;class N{constructor(H,J){this.logger=H,this.store=J,this.faInfoCircle=Ti.iW_,this.enableLoop=!1,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableLoop=!(!H.settings.swapServerUrl||""===H.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(H)})}onEnableServiceChanged(H){this.enableLoop=H.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.enableLoop||(delete this.selNode.settings.swapServerUrl,delete this.selNode.authentication.swapMacaroonPath),this.logger.info(this.selNode),this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-loop-service-settings"]],viewQuery:function(J,ne){if(1&J&&e.GBs(G2,7),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.form=ot.first)}},standalone:!1,decls:38,vars:11,consts:[["form","ngForm"],["srvrUrl","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[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"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"mb-2"],["matInput","","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModelChange","required","disabled","ngModel"],[4,"ngIf"],["matInput","","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModelChange","required","disabled","ngModel"],["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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"loopd"),e.k0s(),e.EFF(7," is running and accessible to RTL before enabling this service. Click "),e.j41(8,"strong")(9,"a",5),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about the installation."),e.k0s()(),e.j41(12,"form",6,0)(14,"div",7)(15,"mat-slide-toggle",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.enableLoop,$t)||(ne.enableLoop=$t),p.Njj($t)}),e.bIt("change",function($t){return p.eBV(ot),p.Njj(ne.onEnableServiceChanged($t))}),e.EFF(16,"Enable Loop Service"),e.k0s(),e.j41(17,"mat-form-field",9)(18,"mat-label"),e.EFF(19,"Loop Server URL"),e.k0s(),e.j41(20,"input",10,1),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.swapServerUrl,$t)||(ne.selNode.settings.swapServerUrl=$t),p.Njj($t)}),e.k0s(),e.j41(22,"mat-hint"),e.EFF(23,"Service url for loop server REST APIs, eg. https://127.0.0.1:8081"),e.k0s(),e.DNE(24,Nh,2,0,"mat-error",11)(25,H2,2,0,"mat-error",11),e.k0s(),e.j41(26,"mat-form-field")(27,"mat-label"),e.EFF(28,"Loop Macaroon Path"),e.k0s(),e.j41(29,"input",12),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.authentication.swapMacaroonPath,$t)||(ne.selNode.authentication.swapMacaroonPath=$t),p.Njj($t)}),e.k0s(),e.j41(30,"mat-hint"),e.EFF(31,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.k0s(),e.DNE(32,Fh,2,0,"mat-error",11),e.k0s()()(),e.j41(33,"div",13)(34,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onReset())}),e.EFF(35,"Reset"),e.k0s(),e.j41(36,"button",15),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdateService())}),e.EFF(37,"Update"),e.k0s()()()}if(2&J){const ot=e.sdS(21);e.R7$(2),e.Y8G("icon",ne.faInfoCircle),e.R7$(13),e.R50("ngModel",ne.enableLoop),e.R7$(5),e.Y8G("required",ne.enableLoop)("disabled",!ne.enableLoop),e.R50("ngModel",ne.selNode.settings.swapServerUrl),e.R7$(4),e.Y8G("ngIf",!ne.selNode.settings.swapServerUrl&&ne.enableLoop),e.R7$(),e.Y8G("ngIf",(null==ot||null==ot.errors?null:ot.errors.invalid)&&ne.enableLoop),e.R7$(4),e.Y8G("required",ne.enableLoop)("disabled",!ne.enableLoop),e.R50("ngModel",ne.selNode.authentication.swapMacaroonPath),e.R7$(3),e.Y8G("ngIf",!ne.selNode.authentication.swapMacaroonPath&&ne.enableLoop)}},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,at.DJ,at.sA,at.UI,xd.sG,go.Ld,Xl.N],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})();const ad=["form"];function Kl(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Boltz server URL is required."),e.k0s())}function j2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Specify the boltz server url with 'https://'."),e.k0s())}function Bh(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Boltz macaroon path is required."),e.k0s())}let W2=(()=>{var z;class N{constructor(H,J){this.logger=H,this.store=J,this.faInfoCircle=Ti.iW_,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableBoltz=!(!H.settings.boltzServerUrl||""===H.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(H)})}onEnableServiceChanged(H){this.enableBoltz=H.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.enableBoltz?(this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath):(delete this.selNode.settings.boltzServerUrl,delete this.selNode.authentication.boltzMacaroonPath),this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}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(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(J,ne){if(1&J&&e.GBs(ad,7),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.form=ot.first)}},standalone:!1,decls:38,vars:11,consts:[["form","ngForm"],["srvrUrl","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://docs.boltz.exchange/v/boltz-client/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"mb-2"],["matInput","","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModelChange","required","disabled","ngModel"],[4,"ngIf"],["matInput","","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModelChange","required","disabled","ngModel"],["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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"boltzd"),e.k0s(),e.EFF(7," is running and accessible to RTL before enabling this service. Click "),e.j41(8,"strong")(9,"a",5),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about the installation."),e.k0s()(),e.j41(12,"form",6,0)(14,"div",7)(15,"mat-slide-toggle",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.enableBoltz,$t)||(ne.enableBoltz=$t),p.Njj($t)}),e.bIt("change",function($t){return p.eBV(ot),p.Njj(ne.onEnableServiceChanged($t))}),e.EFF(16,"Enable Boltz Service"),e.k0s(),e.j41(17,"mat-form-field",9)(18,"mat-label"),e.EFF(19,"Boltz Server URL"),e.k0s(),e.j41(20,"input",10,1),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.serverUrl,$t)||(ne.serverUrl=$t),p.Njj($t)}),e.k0s(),e.j41(22,"mat-hint"),e.EFF(23,"Service url for boltz server REST APIs, eg. https://127.0.0.1:9003"),e.k0s(),e.DNE(24,Kl,2,0,"mat-error",11)(25,j2,2,0,"mat-error",11),e.k0s(),e.j41(26,"mat-form-field")(27,"mat-label"),e.EFF(28,"Boltz Macaroon Path"),e.k0s(),e.j41(29,"input",12),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.macaroonPath,$t)||(ne.macaroonPath=$t),p.Njj($t)}),e.k0s(),e.j41(30,"mat-hint"),e.EFF(31,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.k0s(),e.DNE(32,Bh,2,0,"mat-error",11),e.k0s()()(),e.j41(33,"div",13)(34,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onReset())}),e.EFF(35,"Reset"),e.k0s(),e.j41(36,"button",15),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdateService())}),e.EFF(37,"Update"),e.k0s()()()}if(2&J){const ot=e.sdS(21);e.R7$(2),e.Y8G("icon",ne.faInfoCircle),e.R7$(13),e.R50("ngModel",ne.enableBoltz),e.R7$(5),e.Y8G("required",ne.enableBoltz)("disabled",!ne.enableBoltz),e.R50("ngModel",ne.serverUrl),e.R7$(4),e.Y8G("ngIf",(!ne.serverUrl||""===ne.serverUrl.trim())&&ne.enableBoltz),e.R7$(),e.Y8G("ngIf",(null==ot||null==ot.errors?null:ot.errors.invalid)&&ne.enableBoltz),e.R7$(4),e.Y8G("required",ne.enableBoltz)("disabled",!ne.enableBoltz),e.R50("ngModel",ne.macaroonPath),e.R7$(3),e.Y8G("ngIf",!ne.macaroonPath&&ne.enableBoltz)}},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,at.DJ,at.sA,at.UI,xd.sG,go.Ld,Xl.N],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})(),$4=(()=>{var z;class N{constructor(){}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-ln-services"]],standalone:!1,decls:1,vars:0,template:function(J,ne){1&J&&e.nrm(0,"router-outlet")},dependencies:[ja.n3],encapsulation:2}))}return z(),N})();var zh=l(1092),u1=l(4104),Ec=l(96695),Pc=l(2042),Ya=l(19295),oc=l(67575);const X2=()=>["all"],f0=z=>({"overflow-auto error-border":z,"overflow-auto":!0}),Uh=()=>["no_swap"],h1=z=>({width:z}),Rl=z=>({"display-none":z});function K2(z,N){if(1&z&&(e.j41(0,"mat-option",37),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("value",I),e.R7$(),e.JRh(H.getLabel(I))}}function Vh(z,N){1&z&&e.nrm(0,"mat-progress-bar",38)}function m0(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"State"),e.k0s())}function Gh(z,N){if(1&z&&(e.j41(0,"td",40),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.JRh(H.LoopStateEnum[null==I?null:I.state])}}function Z4(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"Initiation Time"),e.k0s())}function Y2(z,N){if(1&z&&(e.j41(0,"td",40),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(e.i5U(2,1,(null==I?null:I.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function p0(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"Last Update Time"),e.k0s())}function Hh(z,N){if(1&z&&(e.j41(0,"td",40),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(e.i5U(2,1,(null==I?null:I.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function jh(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Amount (Sats)"),e.k0s())}function Wh(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.amt))}}function qa(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Cost Server (Sats)"),e.k0s())}function wc(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.cost_server))}}function g0(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Cost Offchain (Sats)"),e.k0s())}function Q2(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.cost_offchain))}}function Ed(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Cost Onchain (Sats)"),e.k0s())}function Xh(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,null==I?null:I.cost_onchain)," ")}}function wd(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"HTLC Address"),e.k0s())}function Sd(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,h1,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.htlc_address)}}function f1(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"ID"),e.k0s())}function rd(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,h1,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.id)}}function Kh(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"ID (Bytes)"),e.k0s())}function Td(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,h1,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.id_bytes)}}function Dd(z,N){if(1&z){const I=e.RV6();e.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",48),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Ad(z,N){if(1&z){const I=e.RV6();e.j41(0,"td",49)(1,"button",50),e.bIt("click",function(J){const ne=p.eBV(I).$implicit,ot=e.XpG();return p.Njj(ot.onSwapClick(ne,J))}),e.EFF(2,"View Info"),e.k0s()()}}function m1(z,N){if(1&z&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.emptyTableMessage)}}function _0(z,N){if(1&z&&(e.j41(0,"td",51),e.DNE(1,m1,2,1,"p",52),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.Y8G("ngIf",!(null!=I.listSwaps&&I.listSwaps.data)||(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)<1)}}function Yh(z,N){if(1&z&&e.nrm(0,"tr",53),2&z){const I=e.XpG();e.Y8G("ngClass",e.eq3(1,Rl,(null==I.listSwaps?null:I.listSwaps.data)&&(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)>0))}}function Nc(z,N){1&z&&e.nrm(0,"tr",54)}function Sc(z,N){1&z&&e.nrm(0,"tr",55)}let $2=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.logger=H,this.commonService=J,this.store=ne,this.loopService=ot,this.datePipe=jt,this.camelCaseWithReplace=$t,this.selectedSwapType=Mt.C7.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Mt._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:Mt.md,sortBy:"initiation_time",sortOrder:Mt.oi.DESCENDING},this.LoopStateEnum=Mt.Hx,this.faHistory=Ti.Int,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new Ya.I6([]),this.selFilter="",this.pageSize=Mt.md,this.pageSizeOptions=Mt.xp,this.screenSize="",this.screenSizeEnum=Mt.f7,this.unSubs=[new bi.B,new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(H){this.swapCaption=this.selectedSwapType===Mt.C7.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}ngOnInit(){this.store.select(o0.$G).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.tableSetting=H.pageSettings.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSetting.tableId)||Mt.ZC.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===Mt.f7.XS||this.screenSize===Mt.f7.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:Mt.md,this.swapsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(H){const J=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(ne=>ne.column===H);return J?J.label?J.label:this.camelCaseWithReplace.transform(J.column,"_"):this.commonService.titleCase(H)}setFilterPredicate(){this.listSwaps.filterPredicate=(H,J)=>{let ne="";switch(this.selFilterBy){case"all":ne=JSON.stringify(H).toLowerCase();break;case"state":ne=H?.state?this.LoopStateEnum[H?.state]:"";break;case"initiation_time":case"last_update_time":ne=this.datePipe.transform(new Date((H[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:ne=typeof H[this.selFilterBy]>"u"?"":"string"==typeof H[this.selFilterBy]?H[this.selFilterBy].toLowerCase():"boolean"==typeof H[this.selFilterBy]?H[this.selFilterBy]?"yes":"no":H[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===ne.indexOf(J):ne.includes(J)}}onSwapClick(H,J){this.loopService.getSwap(H.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,mi.Q)(this.unSubs[1])).subscribe(ne=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:Mt.Hx[ne.state||""],title:"Status",width:50,type:Mt.UN.STRING},{key:"amt",value:ne.amt,title:"Amount (Sats)",width:50,type:Mt.UN.NUMBER}],[{key:"initiation_time",value:(ne.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:Mt.UN.DATE_TIME},{key:"last_update_time",value:(ne.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:Mt.UN.DATE_TIME}],[{key:"cost_server",value:ne.cost_server,title:"Server Cost (Sats)",width:33,type:Mt.UN.NUMBER},{key:"cost_offchain",value:ne.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Mt.UN.NUMBER},{key:"cost_onchain",value:ne.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Mt.UN.NUMBER}],[{key:"id_bytes",value:ne.id_bytes,title:"ID",width:100,type:Mt.UN.STRING}],[{key:"htlc_address",value:ne.htlc_address,title:"HTLC Address",width:100,type:Mt.UN.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new Ya.I6([...H]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(J,ne)=>J[ne]&&isNaN(J[ne])?J[ne].toLocaleLowerCase():J[ne]?+J[ne]:null,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===Mt.C7.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(u1.Q),e.rXU(o.vh),e.rXU(l1.VD))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-swaps"]],viewQuery:function(J,ne){if(1&J&&(e.GBs(Pc.B4,5),e.GBs(Ec.iy,5)),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.sort=ot.first),e.mGM(ot=e.lsd())&&(ne.paginator=ot.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},standalone:!1,features:[e.Jv_([{provide:al.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Ec.xX,useValue:(0,Mt.on)("Swaps")}]),e.OA$],decls:61,vars:20,consts:[["table",""],["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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["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.gt-xs","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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilterBy,$t)||(ne.selFilterBy=$t),p.Njj($t)}),e.bIt("selectionChange",function(){return p.eBV(ot),ne.selFilter="",p.Njj(ne.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,K2,2,2,"mat-option",9),e.k0s()()(),e.j41(13,"mat-form-field",7)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",10),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilter,$t)||(ne.selFilter=$t),p.Njj($t)}),e.bIt("input",function(){return p.eBV(ot),p.Njj(ne.applyFilter())})("keyup",function(){return p.eBV(ot),p.Njj(ne.applyFilter())}),e.k0s()()()(),e.j41(17,"div",11)(18,"div",12),e.DNE(19,Vh,1,0,"mat-progress-bar",13),e.j41(20,"table",14,0),e.qex(22,15),e.DNE(23,m0,2,0,"th",16)(24,Gh,2,1,"td",17),e.bVm(),e.qex(25,18),e.DNE(26,Z4,2,0,"th",16)(27,Y2,3,4,"td",17),e.bVm(),e.qex(28,19),e.DNE(29,p0,2,0,"th",16)(30,Hh,3,4,"td",17),e.bVm(),e.qex(31,20),e.DNE(32,jh,2,0,"th",21)(33,Wh,4,3,"td",17),e.bVm(),e.qex(34,22),e.DNE(35,qa,2,0,"th",21)(36,wc,4,3,"td",17),e.bVm(),e.qex(37,23),e.DNE(38,g0,2,0,"th",21)(39,Q2,4,3,"td",17),e.bVm(),e.qex(40,24),e.DNE(41,Ed,2,0,"th",21)(42,Xh,4,3,"td",17),e.bVm(),e.qex(43,25),e.DNE(44,wd,2,0,"th",16)(45,Sd,4,4,"td",17),e.bVm(),e.qex(46,26),e.DNE(47,f1,2,0,"th",16)(48,rd,4,4,"td",17),e.bVm(),e.qex(49,27),e.DNE(50,Kh,2,0,"th",16)(51,Td,4,4,"td",17),e.bVm(),e.qex(52,28),e.DNE(53,Dd,6,0,"th",29)(54,Ad,3,0,"td",30),e.bVm(),e.qex(55,31),e.DNE(56,_0,2,1,"td",32),e.bVm(),e.DNE(57,Yh,1,3,"tr",33)(58,Nc,1,0,"tr",34)(59,Sc,1,0,"tr",35),e.k0s(),e.nrm(60,"mat-paginator",36),e.k0s()()()}2&J&&(e.R7$(3),e.Y8G("icon",ne.faHistory),e.R7$(2),e.SpI("",ne.swapCaption," History"),e.R7$(5),e.R50("ngModel",ne.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,X2).concat(ne.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",ne.selFilter),e.R7$(3),e.Y8G("ngIf",!0===ne.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",ne.tableSetting.sortBy)("matSortDirection",ne.tableSetting.sortOrder)("dataSource",ne.listSwaps)("ngClass",e.eq3(17,f0,"error"===ne.flgLoading[0])),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(19,Uh)),e.R7$(),e.Y8G("matHeaderRowDef",ne.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",ne.displayedColumns),e.R7$(),e.Y8G("pageSize",ne.pageSize)("pageSizeOptions",ne.pageSizeOptions)("showFirstLastButtons",ne.screenSize!==ne.screenSizeEnum.XS))},dependencies:[o.YU,o.Sq,o.bT,o.B3,_i.me,_i.BC,_i.vS,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,oc.HM,at.DJ,at.sA,at.UI,ol.PW,ol.eI,al.VO,al.$2,ic.wT,Pc.B4,Pc.aE,Ya.Zl,Ya.tL,Ya.ji,Ya.cC,Ya.YV,Ya.iL,Ya.Zq,Ya.xW,Ya.KS,Ya.$R,Ya.Qo,Ya.YZ,Ya.NB,Ya.iF,Ec.iy,go.ZF,go.Ld,o.QX,o.vh],encapsulation:2}))}return z(),N})();const p1=z=>["../",z];function Tc(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.onSelectedIndexChange(J))}),e.EFF(1),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG();e.Y8G("active",H.activeTab.link===I.link)("routerLink",e.eq3(3,p1,I.link)),e.R7$(),e.JRh(I.name)}}let Z2=(()=>{var z;class N{constructor(H,J,ne){this.router=H,this.loopService=J,this.store=ne,this.faInfinity=Ti.C8j,this.loopInfo=null,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Mt.C7,this.selectedSwapType=Mt.C7.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 bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_LOOP_INFO})),this.loopService.getLoopInfo().pipe((0,mi.Q)(this.unSubs[4])).subscribe({next:J=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_LOOP_INFO})),this.loopInfo=J,this.loopInfo&&this.loopInfo.version&&(this.loopInfo.version=this.loopInfo.version.split(" ")[0])},error:J=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_LOOP_INFO})),this.loopInfo.version=" Unknown"}}),this.loopService.listSwaps();const H=this.links.find(J=>this.router.url.includes(J.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"loopin"===H.link?Mt.C7.LOOP_IN:Mt.C7.LOOP_OUT,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeTab=ne||this.links[0],this.selectedSwapType=ne&&"loopin"===ne.link?Mt.C7.LOOP_IN:Mt.C7.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,mi.Q)(this.unSubs[1])).subscribe({next:J=>{this.flgLoading[0]=!1,this.storedSwaps=J,this.filteredSwaps=this.storedSwaps?.filter(ne=>ne.type===this.selectedSwapType)},error:J=>{this.flgLoading[0]="error",this.emptyTableMessage=J.message?J.message:"No loop "+(this.selectedSwapType===Mt.C7.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){this.selectedSwapType="loopin"===H.link?Mt.C7.LOOP_IN:Mt.C7.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(J=>J.type===this.selectedSwapType)}onLoop(H){H===Mt.C7.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,mi.Q)(this.unSubs[2])).subscribe({next:J=>{this.store.dispatch((0,Ui.xO)({payload:{data:{minQuote:J[0],maxQuote:J[1],direction:H,component:zh.D}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,mi.Q)(this.unSubs[3])).subscribe({next:J=>{this.store.dispatch((0,Ui.xO)({payload:{data:{minQuote:J[0],maxQuote:J[1],direction:H,component:zh.D}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(ja.Ix),e.rXU(u1.Q),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-loop"]],standalone:!1,decls:15,vars:9,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","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","2",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Tc,2,5,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8)(12,"button",9),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onLoop(ne.selectedSwapType))}),e.EFF(13),e.k0s()(),e.nrm(14,"rtl-swaps",10),e.k0s()()()}if(2&J){const ot=e.sdS(10);e.R7$(),e.Y8G("icon",ne.faInfinity),e.R7$(2),e.SpI("Loop (v",(null==ne.loopInfo?null:ne.loopInfo.version)||" Unknown",")"),e.R7$(4),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("ngForOf",ne.links),e.R7$(5),e.SpI("Start ",ne.activeTab.name),e.R7$(),e.Y8G("selectedSwapType",ne.selectedSwapType)("swapsData",ne.filteredSwaps)("flgLoading",ne.flgLoading)("emptyTableMessage",ne.emptyTableMessage)}},dependencies:[o.Sq,cr.aY,tr.$z,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,co.Wk,$2],encapsulation:2}))}return z(),N})();var J2=l(1001),v0=l(84412),Qh=l(18810),Yo=l(12462);let sd=(()=>{var z;class N{constructor(H,J,ne,ot){this.httpClient=H,this.logger=J,this.store=ne,this.commonService=ot,this.swapUrl="",this.swaps={},this.boltzInfo=null,this.boltzInfoChanged=new v0.t(null),this.swapsChanged=new v0.t({}),this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_BOLTZ_SWAPS})),this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,mi.Q)(this.unSubs[0])).subscribe({next:H=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_BOLTZ_SWAPS})),this.swaps=H,this.swapsChanged.next(this.swaps)},error:H=>this.swapsChanged.error(this.handleErrorWithAlert(Mt.MZ.GET_BOLTZ_SWAPS,this.swapUrl,H))})}swapInfo(H){return this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/swapInfo/"+H,this.httpClient.get(this.swapUrl).pipe((0,$r.W)(J=>(0,ws.of)(this.handleErrorWithAlert(Mt.MZ.NO_SPINNER,this.swapUrl,J))))}getBoltzInfo(){this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_BOLTZ_INFO})),this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/info",this.httpClient.get(this.swapUrl).pipe((0,mi.Q)(this.unSubs[1])).subscribe({next:H=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_BOLTZ_INFO})),this.boltzInfo=H,this.boltzInfoChanged.next(this.boltzInfo)},error:H=>(this.boltzInfo={version:"2.0.0"},this.boltzInfoChanged.next(this.boltzInfo),(0,ws.of)(this.handleErrorWithoutAlert(Mt.MZ.GET_BOLTZ_INFO,this.swapUrl,H)))})}serviceInfo(){return this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_SERVICE_INFO})),this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,mi.Q)(this.unSubs[2]),(0,fr.T)(H=>(this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_SERVICE_INFO})),H)),(0,$r.W)(H=>(0,ws.of)(this.handleErrorWithAlert(Mt.MZ.GET_SERVICE_INFO,this.swapUrl,H))))}swapOut(H,J,ne){const ot={amount:H,address:J,acceptZeroConf:ne};return this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,ot).pipe((0,$r.W)(jt=>this.handleErrorWithoutAlert("Swap Out for Address: "+J,Mt.MZ.NO_SPINNER,jt)))}swapIn(H,J,ne){const ot={amount:H,sendFromInternal:J,refundAddress:ne};return this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,ot).pipe((0,$r.W)(jt=>this.handleErrorWithoutAlert("Swap In for Amount: "+H,Mt.MZ.NO_SPINNER,jt)))}handleErrorWithoutAlert(H,J,ne){let ot="";return this.logger.error("ERROR IN: "+H+"\n"+JSON.stringify(ne)),this.store.dispatch((0,Ui.y0)({payload:J})),401===ne.status?(ot="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ui.ri)({payload:ot}))):503===ne.status?(ot="Unable to Connect to Boltz Server.",this.store.dispatch((0,Ui.xO)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:ne.status,message:"Unable to Connect to Boltz Server",URL:H},component:Yo.f}}}))):ot=this.commonService.extractErrorMessage(ne),(0,Qh.$)(()=>new Error(ot))}handleErrorWithAlert(H,J,ne){let ot="";if(401===ne.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ui.ri)({payload:"Authentication Failed: "+JSON.stringify(ne.error)}))),this.logger.error(ne),this.store.dispatch((0,Ui.y0)({payload:H})),401===ne.status)ot="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ui.ri)({payload:ot}));else if(503===ne.status)ot="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:ne.status,message:"Unable to Connect to Boltz Server",URL:J},component:Yo.f}}}))},100);else{ot=this.commonService.extractErrorMessage(ne);const jt=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,Ui.xO)({payload:{data:{type:Mt.A$.ERROR,alertTitle:"ERROR",message:{code:jt,message:ot,URL:J},component:Yo.f}}}))},100)}return{message:ot}}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(ns.Qq),p.KVO(La.gP),p.KVO(vi.il),p.KVO(_o.h))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();const Fc=z=>({"display-none":z});function g1(z,N){1&z&&e.eu8(0)}function Qs(z,N){if(1&z&&(e.j41(0,"div",4)(1,"span",5),e.EFF(2),e.k0s()()),2&z){const I=e.XpG();e.R7$(2),e.JRh(null!=I.swapStatus&&I.swapStatus.error?null==I.swapStatus?null:I.swapStatus.error:"Unknown Error.")}}function od(z,N){if(1&z&&(e.j41(0,"div",7)(1,"h4",8),e.EFF(2,"Routing Fee (mSats)"),e.k0s(),e.j41(3,"span",5),e.EFF(4),e.nI1(5,"number"),e.k0s()()),2&z){const I=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,1,null==I.swapStatus?null:I.swapStatus.routingFeeMilliSat))}}function q2(z,N){if(1&z&&(e.j41(0,"div",7)(1,"h4",8),e.EFF(2,"Claim Transaction ID"),e.k0s(),e.j41(3,"span",5),e.EFF(4),e.k0s()()),2&z){const I=e.XpG(2);e.R7$(4),e.JRh(null==I.swapStatus?null:I.swapStatus.claimTransactionId)}}function lc(z,N){if(1&z&&(e.j41(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e.EFF(4,"ID"),e.k0s(),e.j41(5,"span",5),e.EFF(6),e.k0s()(),e.DNE(7,od,6,3,"div",9)(8,q2,5,1,"div",9),e.k0s(),e.nrm(9,"mat-divider",10),e.j41(10,"div",6)(11,"div",11)(12,"h4",8),e.EFF(13,"Lockup Address"),e.k0s(),e.j41(14,"span",5),e.EFF(15),e.k0s()()()()),2&z){const I=e.XpG();e.R7$(6),e.JRh(null==I.swapStatus?null:I.swapStatus.id),e.R7$(),e.Y8G("ngIf",I.acceptZeroConf),e.R7$(),e.Y8G("ngIf",I.acceptZeroConf),e.R7$(7),e.JRh(null==I.swapStatus?null:I.swapStatus.lockupAddress)}}function Ld(z,N){1&z&&(e.j41(0,"span",22),e.EFF(1,"N/A"),e.k0s())}function y0(z,N){1&z&&(e.j41(0,"span",23),e.EFF(1,"QR Code Not Applicable"),e.k0s())}function $h(z,N){1&z&&e.nrm(0,"mat-divider",24),2&z&&e.Y8G("inset",!0)}function b0(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"Transaction ID"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.txId)}}function _1(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",25)(2,"h4",8),e.EFF(3,"ID"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",25)(7,"h4",8),e.EFF(8,"Expected Amount (Sats)"),e.k0s(),e.j41(9,"span",5),e.EFF(10),e.nI1(11,"number"),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.id),e.R7$(5),e.JRh(e.bMT(11,2,null==I.swapStatus?null:I.swapStatus.expectedAmount))}}function Zh(z,N){1&z&&e.nrm(0,"mat-divider",10)}function pr(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"Address"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.address)}}function Jh(z,N){1&z&&e.nrm(0,"mat-divider",10)}function cc(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"BIP 21"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.bip21)}}function eu(z,N){if(1&z&&(e.j41(0,"div",12)(1,"div",13),e.nrm(2,"qr-code",14),e.DNE(3,Ld,2,0,"span",15),e.k0s(),e.j41(4,"div",16)(5,"div",4)(6,"div",17),e.nrm(7,"qr-code",14),e.DNE(8,y0,2,0,"span",18),e.k0s(),e.DNE(9,$h,1,1,"mat-divider",19)(10,b0,6,1,"div",20)(11,_1,12,4,"div",20)(12,Zh,1,0,"mat-divider",21)(13,pr,6,1,"div",20)(14,Jh,1,0,"mat-divider",21)(15,cc,6,1,"div",20),e.k0s()()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("fxLayoutAlign",""!==((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))?"center start":"center center")("ngClass",e.eq3(17,Fc,I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM)),e.R7$(),e.Y8G("value",(null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))("size",I.qrWidth),e.R7$(),e.Y8G("ngIf",""===((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))),e.R7$(3),e.Y8G("fxLayoutAlign",""!==((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))?"center start":"center center")("ngClass",e.eq3(19,Fc,I.screenSize!==I.screenSizeEnum.XS&&I.screenSize!==I.screenSizeEnum.SM)),e.R7$(),e.Y8G("value",(null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))("size",I.qrWidth),e.R7$(),e.Y8G("ngIf",""===((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))),e.R7$(),e.Y8G("ngIf",I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM),e.R7$(),e.Y8G("ngIf",I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal)}}let tu=(()=>{var z;class N{constructor(H){this.commonService=H,this.swapStatus=null,this.direction=Mt.Bd.SWAP_OUT,this.acceptZeroConf=!1,this.sendFromInternal=!0,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=Mt.f7,this.swapTypeEnum=Mt.Bd}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===Mt.f7.XS&&(this.qrWidth=180)}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction",acceptZeroConf:"acceptZeroConf",sendFromInternal:"sendFromInternal"},standalone:!1,decls:7,vars:1,consts:[["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],[4,"ngTemplateOutlet"],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","33"],["fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","33",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["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"],["class","w-100 my-1",4,"ngIf"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","50"]],template:function(J,ne){if(1&J&&e.DNE(0,g1,1,0,"ng-container",3)(1,Qs,3,1,"ng-template",null,0,e.C5r)(3,lc,16,4,"ng-template",null,1,e.C5r)(5,eu,16,21,"ng-template",null,2,e.C5r),2&J){const ot=e.sdS(2),jt=e.sdS(4),$t=e.sdS(6);e.Y8G("ngTemplateOutlet",null!=ne.swapStatus&&ne.swapStatus.error?ot:ne.direction===ne.swapTypeEnum.SWAP_OUT?jt:$t)}},dependencies:[o.YU,o.bT,o.T3,Wi.q,at.DJ,at.sA,at.UI,ol.PW,bc.Um,o.QX],encapsulation:2}))}return z(),N})(),nu=(()=>{var z;class N{constructor(){this.serviceInfo={},this.direction=Mt.Bd.SWAP_OUT,this.swapTypeEnum=Mt.Bd}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},standalone:!1,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(J,ne){1&J&&(e.j41(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e.EFF(4,"Service Information"),e.k0s()()(),e.j41(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e.EFF(9,"Minimum Amount (Sats)"),e.k0s(),e.j41(10,"span",6),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div",4)(14,"h4",5),e.EFF(15,"Maximum Amount (Sats)"),e.k0s(),e.j41(16,"span",6),e.EFF(17),e.nI1(18,"number"),e.k0s()()(),e.nrm(19,"mat-divider",7),e.j41(20,"div",3)(21,"div",4)(22,"h4",5),e.EFF(23,"Fee Percentage"),e.k0s(),e.j41(24,"span",6),e.EFF(25),e.nI1(26,"number"),e.k0s()(),e.j41(27,"div",4)(28,"h4",5),e.EFF(29,"Miner Fee (Sats)"),e.k0s(),e.j41(30,"span",6),e.EFF(31),e.nI1(32,"number"),e.k0s()()()()()),2&J&&(e.Y8G("expanded",!0),e.R7$(11),e.JRh(e.bMT(12,5,null==ne.serviceInfo||null==ne.serviceInfo.limits?null:ne.serviceInfo.limits.minimal)),e.R7$(6),e.JRh(e.bMT(18,7,null==ne.serviceInfo||null==ne.serviceInfo.limits?null:ne.serviceInfo.limits.maximal)),e.R7$(8),e.JRh(e.bMT(26,9,null==ne.serviceInfo||null==ne.serviceInfo.fees?null:ne.serviceInfo.fees.percentage)),e.R7$(6),e.JRh(e.bMT(32,11,ne.direction===ne.swapTypeEnum.SWAP_OUT?null==ne.serviceInfo||null==ne.serviceInfo.fees||null==ne.serviceInfo.fees.miner?null:ne.serviceInfo.fees.miner.reverse:null==ne.serviceInfo||null==ne.serviceInfo.fees||null==ne.serviceInfo.fees.miner?null:ne.serviceInfo.fees.miner.normal)))},dependencies:[ss.GK,ss.Z2,ss.WN,Wi.q,at.DJ,at.sA,at.UI,o.QX],encapsulation:2}))}return z(),N})();var ld=l(16949);const Bc=(z,N)=>({"small-svg":z,"large-svg":N});function v1(z,N){1&z&&e.eu8(0)}function iu(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",7),e.nrm(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.k0s(),p.joV(),e.j41(12,"div",18)(13,"mat-card-title"),e.EFF(14,"Boltz Submarine Swaps explained."),e.k0s()(),e.j41(15,"div",19)(16,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function x0(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",21),e.nrm(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.k0s(),p.joV(),e.j41(9,"div",18)(10,"mat-card-title"),e.EFF(11,"Step 1: Deciding to Submarine Swap"),e.k0s()(),e.j41(12,"div",19)(13,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function y1(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.j41(9,"defs")(10,"pattern",37),e.nrm(11,"use",38),e.k0s(),e.nrm(12,"image",39),e.k0s()(),p.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 2: Sending the on-chain funds"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function zc(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",40)(2,"g",41),e.nrm(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.k0s(),e.j41(8,"defs")(9,"clipPath",47),e.nrm(10,"rect",48),e.k0s()()(),p.joV(),e.j41(11,"div",18)(12,"mat-card-title"),e.EFF(13,"Step 3: Receiving the funds on Lightning"),e.k0s()(),e.j41(14,"div",19)(15,"mat-card-subtitle",20),e.EFF(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function b1(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",49),e.nrm(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.k0s(),p.joV(),e.j41(7,"div",18)(8,"mat-card-title"),e.EFF(9,"Done!"),e.k0s()(),e.j41(10,"div",19)(11,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}let C0=(()=>{var z;class N{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=Mt.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],[4,"ngTemplateOutlet"],["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(J,ne){if(1&J&&e.DNE(0,v1,1,0,"ng-container",5)(1,iu,18,5,"ng-template",null,0,e.C5r)(3,x0,15,5,"ng-template",null,1,e.C5r)(5,y1,19,5,"ng-template",null,2,e.C5r)(7,zc,17,5,"ng-template",null,3,e.C5r)(9,b1,13,5,"ng-template",null,4,e.C5r),2&J){const ot=e.sdS(2),jt=e.sdS(4),$t=e.sdS(6),Tn=e.sdS(8),ii=e.sdS(10);e.Y8G("ngTemplateOutlet",1===ne.stepNumber?ot:2===ne.stepNumber?jt:3===ne.stepNumber?$t:4===ne.stepNumber?Tn:ii)}},dependencies:[o.YU,o.T3,De.Lc,De.dh,at.DJ,at.sA,at.UI,ol.PW],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:[ld.k]}}))}return z(),N})();const Uc=(z,N)=>({"small-svg":z,"large-svg":N});function au(z,N){1&z&&e.eu8(0)}function ru(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",7),e.nrm(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.k0s(),p.joV(),e.j41(12,"div",18)(13,"mat-card-title"),e.EFF(14,"Boltz Reverse Submarine Swap explained."),e.k0s()(),e.j41(15,"div",19)(16,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function M0(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",21)(2,"g",22),e.nrm(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.k0s(),e.nrm(9,"path",29),e.j41(10,"defs")(11,"clipPath",30),e.nrm(12,"rect",31),e.k0s()()(),p.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 1: Deciding to Reverse Submarine Swap"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function su(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",32),e.nrm(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.j41(9,"defs")(10,"pattern",40),e.nrm(11,"use",41),e.k0s(),e.nrm(12,"image",42),e.k0s()(),p.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 2: Paying the Lightning Invoice"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function ou(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",43)(2,"g",22),e.nrm(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.k0s(),e.j41(8,"defs")(9,"clipPath",30),e.nrm(10,"rect",49),e.k0s()()(),p.joV(),e.j41(11,"div",18)(12,"mat-card-title"),e.EFF(13,"Step 3: Receiving the funds on-chain"),e.k0s()(),e.j41(14,"div",19)(15,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function lu(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",50),e.nrm(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.k0s(),p.joV(),e.j41(7,"div",18)(8,"mat-card-title"),e.EFF(9,"Done!"),e.k0s()(),e.j41(10,"div",19)(11,"mat-card-subtitle",20),e.EFF(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.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}let Id=(()=>{var z;class N{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=Mt.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],[4,"ngTemplateOutlet"],["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(J,ne){if(1&J&&e.DNE(0,au,1,0,"ng-container",5)(1,ru,18,5,"ng-template",null,0,e.C5r)(3,M0,19,5,"ng-template",null,1,e.C5r)(5,su,19,5,"ng-template",null,2,e.C5r)(7,ou,17,5,"ng-template",null,3,e.C5r)(9,lu,13,5,"ng-template",null,4,e.C5r),2&J){const ot=e.sdS(2),jt=e.sdS(4),$t=e.sdS(6),Tn=e.sdS(8),ii=e.sdS(10);e.Y8G("ngTemplateOutlet",1===ne.stepNumber?ot:2===ne.stepNumber?jt:3===ne.stepNumber?$t:4===ne.stepNumber?Tn:ii)}},dependencies:[o.YU,o.T3,De.Lc,De.dh,at.DJ,at.sA,at.UI,ol.PW],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:[ld.k]}}))}return z(),N})();const cu=["stepper"],J4=()=>[1,2,3,4,5],qh=(z,N)=>({"dot-primary":z,"dot-primary-lighter":N});function E0(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.inputFormLabel)}}function kd(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function X(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.SpI("Amount must be greater than or equal to ",e.bMT(2,1,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.minimal),".")}}function Rd(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.SpI("Amount must be less than or equal to ",e.bMT(2,1,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.maximal),".")}}function ef(z,N){1&z&&(e.j41(0,"div",44)(1,"div",45)(2,"mat-slide-toggle",46),e.EFF(3,"Accept Zero Conf"),e.k0s(),e.j41(4,"mat-icon",47),e.EFF(5,"info_outline"),e.k0s()()())}function q4(z,N){1&z&&(e.j41(0,"div",44)(1,"div",45)(2,"mat-slide-toggle",48),e.EFF(3,"Send from Internal Wallet"),e.k0s(),e.j41(4,"mat-icon",49),e.EFF(5,"info_outline"),e.k0s()()())}function tf(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1," Refund address is required when not using internal wallet. "),e.k0s())}function e3(z,N){1&z&&(e.j41(0,"button",50),e.EFF(1,"Next"),e.k0s())}function w0(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",51),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onSwap())}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG(2);e.R7$(),e.SpI("Initiate ",I.swapDirectionCaption)}}function x1(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(3);e.JRh(I.addressFormLabel)}}function S0(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Address is required."),e.k0s())}function du(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-step",15)(1,"form",16),e.DNE(2,x1,1,1,"ng-template",17),e.j41(3,"div",52)(4,"mat-radio-group",53),e.bIt("change",function(J){p.eBV(I);const ne=e.XpG(2);return p.Njj(ne.onAddressTypeChange(J))}),e.j41(5,"mat-radio-button",54),e.EFF(6,"Node Local Address"),e.k0s(),e.j41(7,"mat-radio-button",55),e.EFF(8,"External Address"),e.k0s()(),e.j41(9,"mat-form-field",56)(10,"mat-label"),e.EFF(11,"Address"),e.k0s(),e.nrm(12,"input",57),e.DNE(13,S0,2,0,"mat-error",24),e.k0s()(),e.j41(14,"div",29)(15,"button",58),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onSwap())}),e.EFF(16),e.k0s()()()()}if(2&z){const I=e.XpG(2);e.Y8G("stepControl",I.addressFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.addressFormGroup),e.R7$(11),e.Y8G("required","external"===I.addressFormGroup.controls.addressType.value),e.R7$(),e.Y8G("ngIf",null==I.addressFormGroup.controls.address.errors?null:I.addressFormGroup.controls.address.errors.required),e.R7$(3),e.SpI("Initiate ",I.swapDirectionCaption)}}function t3(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.SpI("",I.swapDirectionCaption," Status")}}function nf(z,N){if(1&z&&(e.j41(0,"mat-icon",59),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.swapStatus&&null!=I.swapStatus&&I.swapStatus.id?"check":"close")}}function T0(z,N){1&z&&e.nrm(0,"div")}function D0(z,N){1&z&&e.nrm(0,"mat-progress-bar",60)}function uu(z,N){if(1&z&&(e.j41(0,"h4",61),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.swapStatus&&I.swapStatus.error?I.swapDirectionCaption+" failed.":I.swapStatus&&I.swapStatus.id?I.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":I.swapDirectionCaption+" request placed successfully.")}}function af(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onRestart())}),e.EFF(1,"Start Again"),e.k0s()}}function rf(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),e.EFF(5),e.k0s()(),e.j41(6,"div",9)(7,"button",10),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.showInfo())}),e.EFF(8,"?"),e.k0s(),e.j41(9,"button",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onClose())}),e.EFF(10,"X"),e.k0s()()(),e.j41(11,"mat-card-content",12)(12,"div",13)(13,"mat-vertical-stepper",14,1),e.bIt("selectionChange",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.stepSelectionChanged(J))}),e.j41(15,"mat-step",15)(16,"form",16),e.DNE(17,E0,1,1,"ng-template",17),e.j41(18,"div",18),e.nrm(19,"rtl-boltz-service-info",19),e.k0s(),e.j41(20,"div",20)(21,"mat-form-field",21)(22,"mat-label"),e.EFF(23,"Amount"),e.k0s(),e.nrm(24,"input",22),e.j41(25,"mat-hint"),e.EFF(26),e.nI1(27,"number"),e.nI1(28,"number"),e.k0s(),e.j41(29,"span",23),e.EFF(30,"Sats"),e.k0s(),e.DNE(31,kd,2,0,"mat-error",24)(32,X,3,3,"mat-error",24)(33,Rd,3,3,"mat-error",24),e.k0s(),e.DNE(34,ef,6,0,"div",25)(35,q4,6,0,"div",25),e.j41(36,"div",26)(37,"mat-form-field",27)(38,"mat-label"),e.EFF(39,"Refund Address"),e.k0s(),e.nrm(40,"input",28),e.j41(41,"mat-hint"),e.EFF(42,"The address where funds will be returned in case of a failed swap"),e.k0s(),e.DNE(43,tf,2,0,"mat-error",24),e.k0s()()(),e.j41(44,"div",29),e.DNE(45,e3,2,0,"button",30)(46,w0,2,1,"button",31),e.k0s()()(),e.DNE(47,du,17,6,"mat-step",32),e.j41(48,"mat-step",33)(49,"form",16),e.DNE(50,t3,1,1,"ng-template",17),e.j41(51,"div",34)(52,"mat-expansion-panel",35)(53,"mat-expansion-panel-header")(54,"mat-panel-title")(55,"span",36),e.EFF(56),e.DNE(57,nf,2,1,"mat-icon",37),e.k0s()()(),e.DNE(58,T0,1,0,"div",38),e.k0s(),e.DNE(59,D0,1,0,"mat-progress-bar",39),e.k0s(),e.DNE(60,uu,2,1,"h4",40),e.j41(61,"div",29),e.DNE(62,af,2,0,"button",41),e.k0s()()()(),e.j41(63,"div",42)(64,"button",43),e.EFF(65,"Close"),e.k0s()()()()()()}if(2&z){const I=e.XpG(),H=e.sdS(2);e.Y8G("@opacityAnimation",void 0),e.R7$(3),e.Y8G("ngClass",I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM?"flex-83":"flex-91"),e.R7$(2),e.JRh(I.swapDirectionCaption),e.R7$(),e.Y8G("ngClass",I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM?"flex-17":"flex-9"),e.R7$(7),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",I.inputFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.inputFormGroup),e.R7$(3),e.Y8G("serviceInfo",I.serviceInfo)("direction",I.direction),e.R7$(5),e.Y8G("step",1e3),e.R7$(2),e.Lme("Range: ",e.bMT(27,34,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.minimal),"-",e.bMT(28,36,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.maximal)),e.R7$(5),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.amount||null==I.inputFormGroup.controls.amount.errors?null:I.inputFormGroup.controls.amount.errors.required),e.R7$(),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.amount||null==I.inputFormGroup.controls.amount.errors?null:I.inputFormGroup.controls.amount.errors.min),e.R7$(),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.amount||null==I.inputFormGroup.controls.amount.errors?null:I.inputFormGroup.controls.amount.errors.max),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_IN&&I.isSendFromInternalCompatible),e.R7$(5),e.Y8G("required",!(null!=I.inputFormGroup&&null!=I.inputFormGroup.controls&&I.inputFormGroup.controls.sendFromInternal.value)),e.R7$(3),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.refundAddress||null==I.inputFormGroup.controls.refundAddress.errors?null:I.inputFormGroup.controls.refundAddress.errors.required),e.R7$(2),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_IN),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("stepControl",I.statusFormGroup),e.R7$(),e.Y8G("formGroup",I.statusFormGroup),e.R7$(3),e.Y8G("expanded",!!I.swapStatus),e.R7$(4),e.JRh(I.swapStatus?I.swapStatus.id?I.swapDirectionCaption+" request details":I.swapDirectionCaption+" error details":"Waiting for "+I.swapDirectionCaption+" request..."),e.R7$(),e.Y8G("ngIf",I.swapStatus),e.R7$(),e.Y8G("ngIf",!I.swapStatus)("ngIfElse",H),e.R7$(),e.Y8G("ngIf",!I.swapStatus),e.R7$(),e.Y8G("ngIf",I.swapStatus),e.R7$(2),e.Y8G("ngIf",I.swapStatus&&(I.swapStatus.error||!I.swapStatus.id)),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}function hu(z,N){if(1&z&&e.nrm(0,"rtl-boltz-swap-status",63),2&z){const I=e.XpG();e.Y8G("swapStatus",I.swapStatus)("direction",I.direction)("acceptZeroConf",null==I.inputFormGroup||null==I.inputFormGroup.controls?null:I.inputFormGroup.controls.acceptZeroConf.value)("sendFromInternal",null==I.inputFormGroup||null==I.inputFormGroup.controls?null:I.inputFormGroup.controls.sendFromInternal.value)}}function fu(z,N){if(1&z){const I=e.RV6();e.j41(0,"rtl-boltz-swapout-info-graphics",79),e.mxI("stepNumberChange",function(J){p.eBV(I);const ne=e.XpG(2);return e.DH7(ne.stepNumber,J)||(ne.stepNumber=J),p.Njj(J)}),e.k0s()}if(2&z){const I=e.XpG(2);e.Y8G("animationDirection",I.animationDirection),e.R50("stepNumber",I.stepNumber)}}function sf(z,N){if(1&z){const I=e.RV6();e.j41(0,"rtl-boltz-swapin-info-graphics",79),e.mxI("stepNumberChange",function(J){p.eBV(I);const ne=e.XpG(2);return e.DH7(ne.stepNumber,J)||(ne.stepNumber=J),p.Njj(J)}),e.k0s()}if(2&z){const I=e.XpG(2);e.Y8G("animationDirection",I.animationDirection),e.R50("stepNumber",I.stepNumber)}}function mu(z,N){if(1&z){const I=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG(2);return p.Njj(ne.onStepChanged(J))}),e.nrm(1,"p",81),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(1,qh,H.stepNumber===I,H.stepNumber!==I))}}function Vc(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",82),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onReadMore())}),e.EFF(1,"Read More"),e.k0s()}}function of(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onStepChanged(4))}),e.EFF(1,"Back"),e.k0s()}}function C1(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return J.flgShowInfo=!1,p.Njj(J.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function pu(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",85),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return J.flgShowInfo=!1,p.Njj(J.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function A0(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onStepChanged(J.stepNumber-1))}),e.EFF(1,"Back"),e.k0s()}}function n3(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",87),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onStepChanged(J.stepNumber+1))}),e.EFF(1,"Next"),e.k0s()}}function lf(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",64)(1,"div",18)(2,"mat-card-header",65)(3,"div",66),e.nrm(4,"span",8),e.k0s(),e.j41(5,"div",67)(6,"button",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return J.flgShowInfo=!1,p.Njj(J.stepNumber=1)}),e.EFF(7,"X"),e.k0s()()(),e.j41(8,"mat-card-content",68),e.DNE(9,fu,1,2,"rtl-boltz-swapout-info-graphics",69)(10,sf,1,2,"rtl-boltz-swapin-info-graphics",69),e.k0s(),e.j41(11,"div",70),e.DNE(12,mu,2,4,"span",71),e.k0s(),e.j41(13,"div",72),e.DNE(14,Vc,2,0,"button",73)(15,of,2,0,"button",74)(16,C1,2,0,"button",75)(17,pu,2,0,"button",76)(18,A0,2,0,"button",77)(19,n3,2,0,"button",78),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@opacityAnimation",void 0),e.R7$(9),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_IN),e.R7$(2),e.Y8G("ngForOf",e.lJ4(10,J4)),e.R7$(2),e.Y8G("ngIf",5===I.stepNumber),e.R7$(),e.Y8G("ngIf",5===I.stepNumber),e.R7$(),e.Y8G("ngIf",5===I.stepNumber),e.R7$(),e.Y8G("ngIf",I.stepNumber<5),e.R7$(),e.Y8G("ngIf",I.stepNumber>1&&I.stepNumber<5),e.R7$(),e.Y8G("ngIf",I.stepNumber<5)}}let L0=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t,Tn){this.dialogRef=H,this.data=J,this.boltzService=ne,this.formBuilder=ot,this.decimalPipe=jt,this.logger=$t,this.commonService=Tn,this.faInfoCircle=Ti.iW_,this.boltzInfo=null,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Mt.Bd,this.direction=Mt.Bd.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=Mt.f7,this.animationDirection="forward",this.flgEditable=!0,this.isSendFromInternalCompatible=!0,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||Mt.Bd.SWAP_OUT,this.swapDirectionCaption=this.direction===Mt.Bd.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[_i.k0.required,_i.k0.min(this.serviceInfo.limits?.minimal||0),_i.k0.max(this.serviceInfo.limits?.maximal||0)]],acceptZeroConf:[!1],sendFromInternal:[!0],refundAddress:[{value:"",disabled:!0}]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[_i.k0.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.boltzService.boltzInfoChanged.pipe((0,mi.Q)(this.unSubs[0])).subscribe({next:H=>{this.boltzInfo=H,this.isSendFromInternalCompatible=this.commonService.isVersionCompatible(this.boltzInfo.version,"2.0.0")},error:H=>{this.boltzInfo={version:"2.0.0"},this.logger.error(H)}})}ngAfterViewInit(){this.direction===Mt.Bd.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Mt.Bd.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.addressFormGroup.setErrors({Invalid:!0})}),this.direction===Mt.Bd.SWAP_IN&&this.inputFormGroup.controls.sendFromInternal.valueChanges.pipe((0,mi.Q)(this.unSubs[4])).subscribe(()=>{this.onSendFromInternalChange()})}onSendFromInternalChange(){this.inputFormGroup.controls.sendFromInternal.value?(this.inputFormGroup.controls.refundAddress.disable(),this.inputFormGroup.controls.refundAddress.clearValidators(),this.inputFormGroup.controls.refundAddress.updateValueAndValidity()):(this.inputFormGroup.controls.refundAddress.enable(),this.inputFormGroup.controls.refundAddress.setValidators([_i.k0.required]),this.inputFormGroup.controls.refundAddress.updateValueAndValidity())}onAddressTypeChange(H){"external"===H.value?(this.addressFormGroup.controls.address.setValidators([_i.k0.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.serviceInfo.limits?.minimal&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.serviceInfo.limits?.maximal&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Mt.Bd.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===Mt.Bd.SWAP_IN){const H=this.inputFormGroup.controls.sendFromInternal.value?null:this.inputFormGroup.controls.refundAddress.value,J=this.isSendFromInternalCompatible?this.inputFormGroup.controls.sendFromInternal.value:null;if(!J&&!H)return this.stepper.selected?.stepControl.setErrors({Invalid:!0}),void(this.flgEditable=!0);this.boltzService.swapIn(this.inputFormGroup.controls.amount.value,J,H).pipe((0,mi.Q)(this.unSubs[2])).subscribe({next:ne=>{this.swapStatus=ne,this.boltzService.listSwaps(),this.flgEditable=!0},error:ne=>{this.swapStatus={error:ne},this.flgEditable=!0,this.logger.error(ne)}})}else this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",this.inputFormGroup.controls.acceptZeroConf.value).pipe((0,mi.Q)(this.unSubs[3])).subscribe({next:J=>{this.swapStatus=J,this.boltzService.listSwaps(),this.flgEditable=!0},error:J=>{this.swapStatus={error:J},this.flgEditable=!0,this.logger.error(J)}})}stepSelectionChanged(H){switch(H.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:if(this.inputFormGroup.controls.amount.value)if(this.direction===Mt.Bd.SWAP_IN){let J=this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Send from Internal Wallet: "+(this.inputFormGroup.controls.sendFromInternal.value?"Yes":"No");!this.inputFormGroup.controls.sendFromInternal.value&&this.inputFormGroup.controls.refundAddress.value&&(J+=" | Refund Address: "+this.inputFormGroup.controls.refundAddress.value),this.inputFormLabel=J}else this.inputFormLabel=this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Zero Conf: "+(this.inputFormGroup.controls.acceptZeroConf.value?"Yes":"No");else this.inputFormLabel="Amount to "+this.swapDirectionCaption;this.addressFormLabel="Withdrawal Address"}H.selectedIndex{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(Oo.Vh),e.rXU(sd),e.rXU(_i.ze),e.rXU(o.QX),e.rXU(La.gP),e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(J,ne){if(1&J&&e.GBs(cu,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.stepper=ot.first)}},standalone:!1,decls:4,vars:2,consts:[["swapStatusBlock",""],["stepper",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["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,"ngClass"],[1,"page-title"],["fxLayoutAlign","end end",3,"ngClass"],["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,"selectionChange","linear"],[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"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start stretch",4,"ngIf"],["disabled","direction === swapTypeEnum.SWAP_IN && isSendFromInternalCompatible && !inputFormGroup?.controls?.sendFromInternal.value","fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"mt-1"],["fxLayout","column","fxFlex","100"],["matInput","","type","text","tabindex","3","formControlName","refundAddress",3,"required"],["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"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayoutAlign","start center","tabindex","2","color","primary","formControlName","acceptZeroConf","name","acceptZeroConf"],["matTooltip","Only recommended for smaller payments, involves trust in Boltz","matTooltipPosition","above",1,"info-icon","mt-2"],["fxLayoutAlign","start center","tabindex","2","color","primary","formControlName","sendFromInternal","name","sendFromInternal"],["matTooltip","Pay from the node's onchain wallet","matTooltipPosition","above",1,"info-icon","mt-2"],["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"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","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","acceptZeroConf","sendFromInternal"],["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"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","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,"stepNumberChange","animationDirection","stepNumber"],["tabindex","21","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(J,ne){1&J&&e.DNE(0,rf,66,38,"div",2)(1,hu,1,4,"ng-template",null,0,e.C5r)(3,lf,20,11,"div",3),2&J&&(e.Y8G("ngIf",!ne.flgShowInfo),e.R7$(3),e.Y8G("ngIf",ne.flgShowInfo))},dependencies:[o.YU,o.Sq,o.bT,_i.qT,_i.me,_i.Q0,_i.BC,_i.cb,_i.YS,_i.j4,_i.JD,Oo.tx,tr.$z,De.m2,De.MM,ss.GK,ss.Z2,ss.WN,Oc.An,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,wa.yw,oc.HM,i1.VT,i1._g,at.DJ,at.sA,at.UI,ol.PW,xd.sG,o1.oV,uo.V5,uo.Ti,uo.M6,uo.F7,Xl.N,tu,nu,C0,Id,o.QX],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[J2.C]}}))}return z(),N})();const cf=()=>["all"],df=z=>({"overflow-auto error-border":z,"overflow-auto":!0}),I0=()=>["no_swap"],Ol=z=>({width:z}),i3=z=>({"display-none":z});function gu(z,N){if(1&z&&(e.j41(0,"mat-option",42),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("value",I),e.R7$(),e.JRh(H.getLabel(I))}}function _u(z,N){1&z&&e.nrm(0,"mat-progress-bar",43)}function vu(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Status"),e.k0s())}function a3(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.JRh(H.swapStateEnum[null==I?null:I.status])}}function yu(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Swap ID"),e.k0s())}function k0(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.id)}}function R0(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Claim Address"),e.k0s())}function O0(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.claimAddress)}}function P0(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Lockup Address"),e.k0s())}function uf(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.lockupAddress)}}function hf(z,N){1&z&&(e.j41(0,"th",48),e.EFF(1,"Onchain Amount (Sats)"),e.k0s())}function ff(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.onchainAmount))}}function bu(z,N){1&z&&(e.j41(0,"th",48),e.EFF(1,"Expected Amount (Sats)"),e.k0s())}function N0(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.expectedAmount))}}function mf(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Error"),e.k0s())}function M1(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.error)}}function pf(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Private Key"),e.k0s())}function E1(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.privateKey)}}function w1(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Preimage"),e.k0s())}function r3(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.preimage)}}function xu(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Redeem Script"),e.k0s())}function Od(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.redeemScript)}}function S1(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Invoice"),e.k0s())}function gf(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.invoice)}}function F0(z,N){1&z&&(e.j41(0,"th",48),e.EFF(1,"Timeout Block Height"),e.k0s())}function _f(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.timeoutBlockHeight))}}function T1(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Lockup Tx ID"),e.k0s())}function vf(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.lockupTransactionId)}}function dc(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Claim Tx ID"),e.k0s())}function Gc(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.claimTransactionId)}}function s3(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Refund Tx ID"),e.k0s())}function o3(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.refundTransactionId)}}function Pd(z,N){if(1&z){const I=e.RV6();e.j41(0,"th",50)(1,"div",51)(2,"mat-select",52),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",53),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function yf(z,N){if(1&z){const I=e.RV6();e.j41(0,"td",54)(1,"button",55),e.bIt("click",function(J){const ne=p.eBV(I).$implicit,ot=e.XpG();return p.Njj(ot.onSwapClick(ne,J))}),e.EFF(2,"View Info"),e.k0s()()}}function Cu(z,N){if(1&z&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.emptyTableMessage)}}function Mu(z,N){if(1&z&&(e.j41(0,"td",56),e.DNE(1,Cu,2,1,"p",57),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.Y8G("ngIf",!(null!=I.listSwaps&&I.listSwaps.data)||(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)<1)}}function Eu(z,N){if(1&z&&e.nrm(0,"tr",58),2&z){const I=e.XpG();e.Y8G("ngClass",e.eq3(1,i3,(null==I.listSwaps?null:I.listSwaps.data)&&(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)>0))}}function bf(z,N){1&z&&e.nrm(0,"tr",59)}function wu(z,N){1&z&&e.nrm(0,"tr",60)}let xf=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.logger=H,this.commonService=J,this.store=ne,this.boltzService=ot,this.camelCaseWithReplace=jt,this.selectedSwapType=Mt.Bd.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Mt._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:Mt.md,sortBy:"status",sortOrder:Mt.oi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:Mt.md,sortBy:"status",sortOrder:Mt.oi.DESCENDING},this.swapStateEnum=Mt.q9,this.swapTypeEnum=Mt.Bd,this.faHistory=Ti.Int,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new Ya.I6([]),this.selFilter="",this.pageSize=Mt.md,this.pageSizeOptions=Mt.xp,this.screenSize="",this.screenSizeEnum=Mt.f7,this.unSubs=[new bi.B,new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(H){H.selectedSwapType&&!H.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Mt.Bd.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}ngOnInit(){this.store.select(o0.$G).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.tableSettingSwapOut=H.pageSettings.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapOut.tableId)||Mt.ZC.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=H.pageSettings.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapIn.tableId)||Mt.ZC.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapIn.tableId),this.setTableColumns(),this.swapsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===Mt.Bd.SWAP_IN?(this.displayedColumns=this.screenSize===Mt.f7.XS||this.screenSize===Mt.f7.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:Mt.md):(this.displayedColumns=this.screenSize===Mt.f7.XS||this.screenSize===Mt.f7.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:Mt.md)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(H){const ne=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===Mt.Bd.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(ot=>ot.column===H);return ne?ne.label?ne.label:this.camelCaseWithReplace.transform(ne.column,"_"):this.commonService.titleCase(H)}setFilterPredicate(){this.listSwaps.filterPredicate=(H,J)=>{let ne="";switch(this.selFilterBy){case"all":ne=JSON.stringify(H).toLowerCase();break;case"status":ne=H?.status?this.swapStateEnum[H?.status]:"";break;default:ne=typeof H[this.selFilterBy]>"u"?"":"string"==typeof H[this.selFilterBy]?H[this.selFilterBy].toLowerCase():"boolean"==typeof H[this.selFilterBy]?H[this.selFilterBy]?"yes":"no":H[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===ne.indexOf(J):ne.includes(J)}}onSwapClick(H,J){this.boltzService.swapInfo(H.id||"").pipe((0,mi.Q)(this.unSubs[1])).subscribe(ne=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:Mt.q9[(ne=this.selectedSwapType===Mt.Bd.SWAP_IN?ne.swap:ne.reverseSwap).status],title:"Status",width:50,type:Mt.UN.STRING},{key:"id",value:ne.id,title:"ID",width:50,type:Mt.UN.STRING}],[{key:"amount",value:ne.onchainAmount?ne.onchainAmount:ne.expectedAmount?ne.expectedAmount:0,title:ne.onchainAmount?"Onchain Amount (Sats)":ne.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Mt.UN.NUMBER},{key:"timeoutBlockHeight",value:ne.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Mt.UN.NUMBER}],[{key:"address",value:ne.claimAddress?ne.claimAddress:ne.lockupAddress?ne.lockupAddress:"",title:ne.claimAddress?"Claim Address":ne.lockupAddress?"Lockup Address":"Address",width:100,type:Mt.UN.STRING}],[{key:"invoice",value:ne.invoice,title:"Invoice",width:100,type:Mt.UN.STRING}],[{key:"privateKey",value:ne.privateKey,title:"Private Key",width:100,type:Mt.UN.STRING}],[{key:"preimage",value:ne.preimage,title:"Preimage",width:100,type:Mt.UN.STRING}],[{key:"redeemScript",value:ne.redeemScript,title:"Redeem Script",width:100,type:Mt.UN.STRING}],[{key:"lockupTransactionId",value:ne.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Mt.UN.STRING},{key:"transactionId",value:ne.claimTransactionId?ne.claimTransactionId:ne.refundTransactionId?ne.refundTransactionId:"",title:ne.claimTransactionId?"Claim Transaction ID":ne.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Mt.UN.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new Ya.I6(H?[...H]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(J,ne)=>J[ne]&&isNaN(J[ne])?J[ne].toLocaleLowerCase():J[ne]?+J[ne]:null,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===Mt.Bd.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(sd),e.rXU(l1.VD))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swaps"]],viewQuery:function(J,ne){if(1&J&&(e.GBs(Pc.B4,5),e.GBs(Ec.iy,5)),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.sort=ot.first),e.mGM(ot=e.lsd())&&(ne.paginator=ot.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},standalone:!1,features:[e.Jv_([{provide:al.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Ec.xX,useValue:(0,Mt.on)("Swaps")}]),e.OA$],decls:76,vars:20,consts:[["table",""],["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.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["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.gt-xs","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(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilterBy,$t)||(ne.selFilterBy=$t),p.Njj($t)}),e.bIt("selectionChange",function(){return p.eBV(ot),ne.selFilter="",p.Njj(ne.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,gu,2,2,"mat-option",9),e.k0s()()(),e.j41(13,"mat-form-field",7)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",10),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilter,$t)||(ne.selFilter=$t),p.Njj($t)}),e.bIt("input",function(){return p.eBV(ot),p.Njj(ne.applyFilter())})("keyup",function(){return p.eBV(ot),p.Njj(ne.applyFilter())}),e.k0s()()()(),e.j41(17,"div",11)(18,"div",12),e.DNE(19,_u,1,0,"mat-progress-bar",13),e.j41(20,"table",14,0),e.qex(22,15),e.DNE(23,vu,2,0,"th",16)(24,a3,2,1,"td",17),e.bVm(),e.qex(25,18),e.DNE(26,yu,2,0,"th",16)(27,k0,2,1,"td",17),e.bVm(),e.qex(28,19),e.DNE(29,R0,2,0,"th",16)(30,O0,4,4,"td",17),e.bVm(),e.qex(31,20),e.DNE(32,P0,2,0,"th",16)(33,uf,4,4,"td",17),e.bVm(),e.qex(34,21),e.DNE(35,hf,2,0,"th",22)(36,ff,4,3,"td",17),e.bVm(),e.qex(37,23),e.DNE(38,bu,2,0,"th",22)(39,N0,4,3,"td",17),e.bVm(),e.qex(40,24),e.DNE(41,mf,2,0,"th",16)(42,M1,4,4,"td",17),e.bVm(),e.qex(43,25),e.DNE(44,pf,2,0,"th",16)(45,E1,4,4,"td",17),e.bVm(),e.qex(46,26),e.DNE(47,w1,2,0,"th",16)(48,r3,4,4,"td",17),e.bVm(),e.qex(49,27),e.DNE(50,xu,2,0,"th",16)(51,Od,4,4,"td",17),e.bVm(),e.qex(52,28),e.DNE(53,S1,2,0,"th",16)(54,gf,4,4,"td",17),e.bVm(),e.qex(55,29),e.DNE(56,F0,2,0,"th",22)(57,_f,4,3,"td",17),e.bVm(),e.qex(58,30),e.DNE(59,T1,2,0,"th",16)(60,vf,2,1,"td",17),e.bVm(),e.qex(61,31),e.DNE(62,dc,2,0,"th",16)(63,Gc,2,1,"td",17),e.bVm(),e.qex(64,32),e.DNE(65,s3,2,0,"th",16)(66,o3,2,1,"td",17),e.bVm(),e.qex(67,33),e.DNE(68,Pd,6,0,"th",34)(69,yf,3,0,"td",35),e.bVm(),e.qex(70,36),e.DNE(71,Mu,2,1,"td",37),e.bVm(),e.DNE(72,Eu,1,3,"tr",38)(73,bf,1,0,"tr",39)(74,wu,1,0,"tr",40),e.k0s(),e.nrm(75,"mat-paginator",41),e.k0s()()()}2&J&&(e.R7$(3),e.Y8G("icon",ne.faHistory),e.R7$(2),e.SpI("",ne.swapCaption," History"),e.R7$(5),e.R50("ngModel",ne.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,cf).concat(ne.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",ne.selFilter),e.R7$(3),e.Y8G("ngIf",!0===ne.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",ne.selectedSwapType===ne.swapTypeEnum.SWAP_IN?ne.tableSettingSwapIn.sortBy:ne.tableSettingSwapOut.sortBy)("matSortDirection",ne.selectedSwapType===ne.swapTypeEnum.SWAP_IN?ne.tableSettingSwapIn.sortOrder:ne.tableSettingSwapOut.sortOrder)("dataSource",ne.listSwaps)("ngClass",e.eq3(17,df,"error"===ne.flgLoading[0])),e.R7$(52),e.Y8G("matFooterRowDef",e.lJ4(19,I0)),e.R7$(),e.Y8G("matHeaderRowDef",ne.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",ne.displayedColumns),e.R7$(),e.Y8G("pageSize",ne.pageSize)("pageSizeOptions",ne.pageSizeOptions)("showFirstLastButtons",ne.screenSize!==ne.screenSizeEnum.XS))},dependencies:[o.YU,o.Sq,o.bT,o.B3,_i.me,_i.BC,_i.vS,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,oc.HM,at.DJ,at.sA,at.UI,ol.PW,ol.eI,al.VO,al.$2,ic.wT,Pc.B4,Pc.aE,Ya.Zl,Ya.tL,Ya.ji,Ya.cC,Ya.YV,Ya.iL,Ya.Zq,Ya.xW,Ya.KS,Ya.$R,Ya.Qo,Ya.YZ,Ya.NB,Ya.iF,Ec.iy,go.ZF,go.Ld,o.QX],encapsulation:2}))}return z(),N})();const Su=z=>["../",z];function Cf(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.onSelectedIndexChange(J))}),e.EFF(1),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG();e.Y8G("active",H.activeTab.link===I.link)("routerLink",e.eq3(3,Su,I.link)),e.R7$(),e.JRh(I.name)}}let B0=(()=>{var z;class N{constructor(H,J,ne){this.router=H,this.store=J,this.boltzService=ne,this.swapTypeEnum=Mt.Bd,this.selectedSwapType=Mt.Bd.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 bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.boltzService.getBoltzInfo(),this.boltzService.listSwaps();const H=this.links.find(J=>this.router.url.includes(J.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"swapin"===H.link?Mt.Bd.SWAP_IN:Mt.Bd.SWAP_OUT,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeTab=ne||this.links[0],this.selectedSwapType=ne&&"swapin"===ne.link?Mt.Bd.SWAP_IN:Mt.Bd.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,mi.Q)(this.unSubs[1])).subscribe({next:J=>{this.swaps=J,this.swapsData=this.selectedSwapType===Mt.Bd.SWAP_IN&&J.swaps?J.swaps:this.selectedSwapType===Mt.Bd.SWAP_OUT&&J.reverseSwaps?J.reverseSwaps:[],this.flgLoading[0]=!1},error:J=>{this.flgLoading[0]="error",this.emptyTableMessage=J.message?J.message:"No swap "+(this.selectedSwapType===Mt.Bd.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){"swapin"===H.link?(this.selectedSwapType=Mt.Bd.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=Mt.Bd.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(H){this.boltzService.serviceInfo().pipe((0,mi.Q)(this.unSubs[2])).subscribe({next:J=>{this.store.dispatch((0,Ui.xO)({payload:{data:{serviceInfo:J,direction:H,component:L0}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(ja.Ix),e.rXU(vi.il),e.rXU(sd))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-root"]],standalone:!1,decls:20,vars:7,consts:[["tabPanel",""],["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","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","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","2",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),p.qSk(),e.j41(1,"svg",2)(2,"g",3)(3,"g",4),e.nrm(4,"circle",5)(5,"path",6)(6,"path",7),e.k0s()()(),p.joV(),e.j41(7,"span",8),e.EFF(8,"Boltz"),e.k0s()(),e.j41(9,"div",9)(10,"mat-card")(11,"mat-card-content",10)(12,"nav",11),e.DNE(13,Cf,2,5,"div",12),e.k0s(),e.nrm(14,"mat-tab-nav-panel",null,0),e.j41(16,"div",13)(17,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onSwap(ne.selectedSwapType))}),e.EFF(18),e.k0s()(),e.nrm(19,"rtl-boltz-swaps",15),e.k0s()()()}if(2&J){const ot=e.sdS(15);e.R7$(12),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("ngForOf",ne.links),e.R7$(5),e.SpI("Start ",ne.activeTab.name),e.R7$(),e.Y8G("selectedSwapType",ne.selectedSwapType)("swapsData",ne.swapsData)("flgLoading",ne.flgLoading)("emptyTableMessage",ne.emptyTableMessage)}},dependencies:[o.Sq,tr.$z,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,co.Wk,xf],encapsulation:2}))}return z(),N})();class ho{constructor(N){this.help=N}}function Du(z,N){if(1&z&&(e.j41(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e.EFF(3),e.k0s()(),e.j41(4,"mat-panel-description",9),e.nrm(5,"span",10),e.j41(6,"a",11),e.EFF(7),e.k0s()()()),2&z){const I=e.XpG().$implicit,H=e.XpG();e.R7$(3),e.JRh(I.help.question),e.R7$(2),e.Y8G("innerHTML",I.help.answer,e.npT),e.R7$(),e.Y8G("routerLink",H.flgLoggedIn?I.help.link:"/login"),e.R7$(),e.JRh(H.flgLoggedIn?I.help.linkCaption:"Login to go to the page")}}function Au(z,N){if(1&z&&(e.j41(0,"div",6),e.DNE(1,Du,8,4,"mat-expansion-panel",7),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngIf","ALL"===I.help.lnImplementation||I.help.lnImplementation===H.selNode.lnImplementation)}}let Mf=(()=>{var z;class N{constructor(H,J){this.store=H,this.sessionService=J,this.helpTopics=[],this.faQuestion=Ti.EvL,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.flgLoggedIn=!!H.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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. issuer - issuer 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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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 ho({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/nodesettings",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new ho({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(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(zi.Q))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-help"]],standalone:!1,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(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"fa-icon",2),e.j41(3,"span",3),e.EFF(4,"Help"),e.k0s()(),e.j41(5,"div",4)(6,"div",0),e.DNE(7,Au,2,1,"div",5),e.k0s()()()),2&J&&(e.R7$(2),e.Y8G("icon",ne.faQuestion),e.R7$(5),e.Y8G("ngForOf",ne.helpTopics))},dependencies:[o.Sq,o.bT,cr.aY,ss.GK,ss.Z2,ss.WN,ss.Q6,at.DJ,at.sA,at.UI,co.Wk],styles:[".mat-mdc-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}))}return z(),N})();var cd=l(84572);function Lu(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Token is required."),e.k0s())}let V0=(()=>{var z;class N{constructor(H,J){this.dialogRef=H,this.store=J,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Ui.R$)({payload:{twoFAToken:this.token}}))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-login-token"]],standalone:!1,decls:19,vars:2,consts:[["tokenForm","ngForm"],["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 center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["autoFocus","","matInput","","type","text","id","token","name","token","tabindex","2","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Two Factor Token"),e.k0s()(),e.j41(6,"button",6),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0),e.bIt("ngSubmit",function(){return p.eBV(ot),p.Njj(ne.onVerifyToken())}),e.j41(11,"mat-form-field")(12,"mat-label"),e.EFF(13,"Token"),e.k0s(),e.j41(14,"input",9),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.token,$t)||(ne.token=$t),p.Njj($t)}),e.k0s(),e.DNE(15,Lu,2,0,"mat-error",10),e.k0s(),e.j41(16,"div",11)(17,"button",12),e.EFF(18,"Verify Token"),e.k0s()()()()()()}2&J&&(e.R7$(14),e.R50("ngModel",ne.token),e.R7$(),e.Y8G("ngIf",!ne.token))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,tr.$z,De.m2,De.MM,Br.fg,wa.rl,wa.nJ,wa.TL,at.DJ,at.sA,at.UI,Xl.N],encapsulation:2}))}return z(),N})();const Iu=z=>({"padding-gap-large":z}),Ef=(z,N)=>({"font-size-200":z,"font-size-300":N});function dd(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function ku(z,N){if(1&z&&(e.j41(0,"p",21)(1,"mat-icon",22),e.EFF(2,"close"),e.k0s(),e.EFF(3),e.k0s()),2&z){const I=e.XpG();e.R7$(3),e.SpI(" ",I.loginErrorMessage," ")}}function Ru(z,N){if(1&z&&(e.j41(0,"p",23)(1,"mat-icon",22),e.EFF(2,"close"),e.k0s(),e.EFF(3),e.k0s()),2&z){const I=e.XpG();e.R7$(3),e.SpI(" ",I.logoutReason," ")}}let Hc=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.actions=H,this.logger=J,this.store=ne,this.rtlEffects=ot,this.commonService=jt,this.faUnlockAlt=Ti.HEq,this.logoutReason="",this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Mt.f7,this.loginErrorMessage="",this.apiCallStatusEnum=Mt.wn,this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,cd.z)([this.store.select(Ra.Kq),this.store.select(Ra.E2)]).pipe((0,mi.Q)(this.unSubs[0])).subscribe(([H,J])=>{this.loginErrorMessage="",H.status===Mt.wn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof H.message?JSON.stringify(H.message):H.message),this.logger.error(H.message)),J.status===Mt.wn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof J.message?JSON.stringify(J.message):J.message),this.logger.error(J.message))}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.appConfig=H,this.logger.info(H)}),this.actions.pipe((0,za.p)(H=>H.type===Mt.aU.LOGOUT),(0,Ss.s)(1)).subscribe(H=>{this.logoutReason=H.payload})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.logoutReason="",this.appConfig.enable2FA?(this.store.dispatch((0,Ui.xO)({payload:{maxWidth:"35rem",data:{component:V0}}})),this.rtlEffects.closeAlert.pipe((0,Ss.s)(1)).subscribe(H=>{H&&this.store.dispatch((0,Ui.iD)({payload:{password:vc(this.password),defaultPassword:Mt.Ah.includes(this.password.toLowerCase()),twoFAToken:H.twoFAToken}}))})):this.store.dispatch((0,Ui.iD)({payload:{password:vc(this.password),defaultPassword:Mt.Ah.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.logoutReason="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Vo.En),e.rXU(La.gP),e.rXU(vi.il),e.rXU(Ko.H),e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-login"]],standalone:!1,decls:29,vars:14,consts:[["loginForm","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"login-container"],["fxLayout","row","fxFlex.gt-sm","35","fxLayoutAlign","center center"],["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"],["alt","RTL Logo","src","assets/images/RTL-Horse-BY.svg",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","mt-2","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"pb-2"],["fxLayout","column","fxLayoutAlign","start space-between"],["autoFocus","","matInput","","id","password","name","password","tabindex","1","required","",3,"ngModelChange","type","ngModel"],["mat-icon-button","","matSuffix","","tabindex","2","type","button",3,"click"],[4,"ngIf"],["class","color-warn pre-wrap","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","color-warn pre-wrap","fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1","mb-2",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","pre-wrap"],["fxLayoutAlign","center center",1,"mr-3px","icon-small"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"color-warn","pre-wrap"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card",3)(3,"div",4)(4,"div",5),e.nrm(5,"img",6),e.k0s(),e.j41(6,"div",7)(7,"mat-card-header",8)(8,"mat-card-title",9)(9,"span",10),e.EFF(10,"Welcome"),e.k0s()()(),e.j41(11,"mat-card-content",11)(12,"form",12,0)(14,"mat-form-field")(15,"mat-label"),e.EFF(16,"Password"),e.k0s(),e.j41(17,"input",13),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.password,$t)||(ne.password=$t),p.Njj($t)}),e.k0s(),e.j41(18,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.flgShow=!ne.flgShow)}),e.j41(19,"mat-icon"),e.EFF(20),e.k0s()(),e.DNE(21,dd,2,0,"mat-error",15),e.k0s(),e.DNE(22,ku,4,1,"p",16)(23,Ru,4,1,"p",17),e.j41(24,"div",18)(25,"button",19),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.resetData())}),e.EFF(26,"Clear"),e.k0s(),e.j41(27,"button",20),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onLogin())}),e.EFF(28,"Login"),e.k0s()()()()()()()()()}2&J&&(e.R7$(6),e.Y8G("ngClass",e.eq3(9,Iu,ne.screenSize===ne.screenSizeEnum.XS)),e.R7$(2),e.Y8G("ngClass",e.l_i(11,Ef,ne.screenSize===ne.screenSizeEnum.XS,ne.screenSize!==ne.screenSizeEnum.XS)),e.R7$(9),e.Y8G("type",ne.flgShow?"text":"password"),e.R50("ngModel",ne.password),e.R7$(),e.BMQ("aria-label","Hide password"),e.R7$(2),e.JRh(ne.flgShow?"visibility_off":"visibility"),e.R7$(),e.Y8G("ngIf",!ne.password),e.R7$(),e.Y8G("ngIf",""!==ne.loginErrorMessage),e.R7$(),e.Y8G("ngIf",""!==ne.logoutReason))},dependencies:[o.YU,o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,tr.$z,sc.iY,De.RN,De.m2,De.MM,De.dh,Oc.An,Br.fg,wa.rl,wa.nJ,wa.TL,wa.yw,at.DJ,at.sA,at.UI,ol.PW,Xl.N],styles:[".login-container[_ngcontent-%COMP%]{height:60vh;margin-top:15%}.login-container[_ngcontent-%COMP%] .mat-mdc-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:90%;cursor:pointer}"]}))}return z(),N})();var G0=l(90013);let Nd=(()=>{var z;class N{constructor(H,J){this.activatedRoute=H,this.router=J,this.error={errorCode:"",errorMessage:""},this.faTimes=Ti.GRI,this.unsubs=[new bi.B,new bi.B]}ngOnInit(){this.activatedRoute.paramMap.pipe((0,mi.Q)(this.unsubs[0])).subscribe(H=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(ja.nX),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-error"]],standalone:!1,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(J,ne){1&J&&(e.j41(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e.nrm(4,"fa-icon",4),e.j41(5,"span",5),e.EFF(6),e.k0s()()(),e.j41(7,"mat-card-content",6)(8,"div",7),e.EFF(9),e.k0s(),e.j41(10,"span",8)(11,"button",9),e.bIt("click",function(){return ne.goToHelp()}),e.EFF(12,"Go To Help"),e.k0s()()()()()),2&J&&(e.R7$(4),e.Y8G("icon",ne.faTimes),e.R7$(2),e.SpI("Error ",ne.error.errorCode),e.R7$(3),e.JRh(ne.error.errorMessage))},dependencies:[cr.aY,tr.$z,De.RN,De.m2,De.MM,De.dh,at.DJ,at.sA,at.UI],encapsulation:2}))}return z(),N})();var vo=l(17186),H0=l(51534),Fd=l(60092),c3=l(56114);const d3=(z,N)=>({"alert-danger":z,"alert-info":N});function Bd(z,N){1&z&&e.nrm(0,"span",17)}function wf(z,N){1&z&&e.nrm(0,"span",18)}function D1(z,N){if(1&z){const I=e.RV6();e.j41(0,"form",19,0)(2,"div",20),e.nrm(3,"fa-icon",4),e.j41(4,"span"),e.EFF(5,"Please ensure that "),e.j41(6,"strong"),e.EFF(7,"experimental-offers"),e.k0s(),e.EFF(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.j41(9,"strong")(10,"a",21),e.EFF(11,"here"),e.k0s()(),e.EFF(12," to learn more about Core Lightning offers."),e.k0s()(),e.j41(13,"h4",22),e.EFF(14,"Description"),e.k0s(),e.j41(15,"span"),e.EFF(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.k0s(),e.j41(17,"h4",22),e.EFF(18,"Links"),e.k0s(),e.j41(19,"span")(20,"a",23),e.EFF(21,"Core lightning Bolt12"),e.k0s()(),e.nrm(22,"mat-divider",24),e.j41(23,"div",25),e.nrm(24,"fa-icon",4),e.j41(25,"span"),e.EFF(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.k0s()(),e.j41(27,"mat-slide-toggle",26),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(2);return e.DH7(ne.enableOffers,J)||(ne.enableOffers=J),p.Njj(J)}),e.bIt("change",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onUpdateFeature())}),e.EFF(28),e.k0s()()}if(2&z){const I=e.XpG(2);e.R7$(3),e.Y8G("icon",I.faInfoCircle),e.R7$(19),e.Y8G("inset",!0),e.R7$(2),e.Y8G("icon",I.faExclamationTriangle),e.R7$(3),e.R50("ngModel",I.enableOffers),e.R7$(),e.SpI("Enable Offers ",I.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"")}}function j0(z,N){if(1&z&&(e.j41(0,"div")(1,"div",29),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"experimental-dual-fund"),e.k0s(),e.EFF(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.j41(8,"strong")(9,"a",30),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about Core Lightning Liquidity Ads."),e.k0s()()()),2&z){const I=e.XpG(3);e.R7$(2),e.Y8G("icon",I.faExclamationTriangle)}}function Sf(z,N){if(1&z&&(e.j41(0,"mat-option",47),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI(" ",e.bMT(2,2,I.id)," ")}}function Tf(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(4);e.R7$(),e.SpI("",I.selPolicyType.placeholder," is required.")}}function u3(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(4);e.R7$(),e.Lme("",I.selPolicyType.placeholder," must be greater than or equal to ",I.selPolicyType.min,".")}}function Df(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(4);e.R7$(),e.Lme("",I.selPolicyType.placeholder," must be less than or equal to ",I.selPolicyType.max,".")}}function Af(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Lease base fee is required."),e.k0s())}function h3(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Lease base basis is required."),e.k0s())}function Bm(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Max channel routing base fee is required."),e.k0s())}function Lf(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Max channel routing fee rate is required."),e.k0s())}function If(z,N){if(1&z&&(e.j41(0,"h4",48)(1,"span",49),e.EFF(2),e.k0s()()),2&z){const I=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,d3,!!I.updateMsg.error,!!I.updateMsg.data)),e.R7$(),e.SpI(" ",I.updateMsg.error&&""!==I.updateMsg.error?`Error: ${I.updateMsg.error||"Unknown Error"}`:I.updateMsg.data&&""!==I.updateMsg.data?I.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function ud(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",31)(1,"div",32),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(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.k0s()(),e.j41(5,"div",33)(6,"mat-form-field",34)(7,"mat-label"),e.EFF(8,"Policy"),e.k0s(),e.j41(9,"mat-select",35),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.selPolicyType,J)||(ne.selPolicyType=J),p.Njj(J)}),e.bIt("selectionChange",function(){p.eBV(I);const J=e.XpG(3);return p.Njj(J.policyMod=null)}),e.DNE(10,Sf,3,4,"mat-option",36),e.k0s()(),e.j41(11,"mat-form-field",37)(12,"mat-label"),e.EFF(13),e.k0s(),e.j41(14,"input",38,1),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.policyMod,J)||(ne.policyMod=J),p.Njj(J)}),e.k0s(),e.j41(16,"mat-hint"),e.EFF(17),e.k0s(),e.DNE(18,Tf,2,1,"mat-error",27)(19,u3,2,2,"mat-error",27)(20,Df,2,2,"mat-error",27),e.k0s()(),e.j41(21,"div",33)(22,"mat-form-field",37)(23,"mat-label"),e.EFF(24,"Lease Base Fee (Sats)"),e.k0s(),e.j41(25,"input",39),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.lease_fee_base_sat,J)||(ne.lease_fee_base_sat=J),p.Njj(J)}),e.k0s(),e.DNE(26,Af,2,0,"mat-error",27),e.k0s(),e.j41(27,"mat-form-field",37)(28,"mat-label"),e.EFF(29,"Lease Base Basis (bps)"),e.k0s(),e.j41(30,"input",40),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.lease_fee_basis,J)||(ne.lease_fee_basis=J),p.Njj(J)}),e.k0s(),e.DNE(31,h3,2,0,"mat-error",27),e.k0s()(),e.j41(32,"div",33)(33,"mat-form-field",37)(34,"mat-label"),e.EFF(35,"Max Channel Routing Base Fee (Sats)"),e.k0s(),e.j41(36,"input",41),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.channelFeeMaxBaseSat,J)||(ne.channelFeeMaxBaseSat=J),p.Njj(J)}),e.k0s(),e.DNE(37,Bm,2,0,"mat-error",27),e.k0s(),e.j41(38,"mat-form-field",37)(39,"mat-label"),e.EFF(40,"Max Channel Routing Fee Rate (ppm)"),e.k0s(),e.j41(41,"input",42),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.channelFeeMaxProportional,J)||(ne.channelFeeMaxProportional=J),p.Njj(J)}),e.k0s(),e.DNE(42,Lf,2,0,"mat-error",27),e.k0s()(),e.DNE(43,If,3,5,"h4",43),e.j41(44,"div",44)(45,"button",45),e.bIt("click",function(){p.eBV(I);const J=e.XpG(3);return p.Njj(J.onResetPolicy())}),e.EFF(46,"Reset"),e.k0s(),e.j41(47,"button",46),e.bIt("click",function(){p.eBV(I);const J=e.XpG(3);return p.Njj(J.onUpdateFundingPolicy())}),e.EFF(48,"Update"),e.k0s()()()}if(2&z){const I=e.XpG(3);e.R7$(2),e.Y8G("icon",I.faExclamationTriangle),e.R7$(7),e.R50("ngModel",I.selPolicyType),e.R7$(),e.Y8G("ngForOf",I.policyTypes),e.R7$(3),e.JRh(I.selPolicyType.placeholder),e.R7$(),e.Y8G("step","fixed"===I.selPolicyType.id?1e3:10)("min",I.selPolicyType.min)("max",I.selPolicyType.max),e.R50("ngModel",I.policyMod),e.R7$(3),e.E5c("",I.selPolicyType.placeholder," should be between ",I.selPolicyType.min," and ",I.selPolicyType.max),e.R7$(),e.Y8G("ngIf",!I.policyMod),e.R7$(),e.Y8G("ngIf",I.policyModI.selPolicyType.max),e.R7$(5),e.R50("ngModel",I.lease_fee_base_sat),e.R7$(),e.Y8G("ngIf",!I.lease_fee_base_sat),e.R7$(4),e.R50("ngModel",I.lease_fee_basis),e.R7$(),e.Y8G("ngIf",!I.lease_fee_basis),e.R7$(5),e.R50("ngModel",I.channelFeeMaxBaseSat),e.R7$(),e.Y8G("ngIf",!I.channelFeeMaxBaseSat),e.R7$(4),e.R50("ngModel",I.channelFeeMaxProportional),e.R7$(),e.Y8G("ngIf",!I.channelFeeMaxProportional),e.R7$(),e.Y8G("ngIf",I.flgUpdateCalled)}}function f3(z,N){if(1&z&&(e.j41(0,"form",19,0),e.DNE(2,j0,12,1,"div",27)(3,ud,49,23,"div",28),e.k0s()),2&z){const I=e.XpG(2);e.R7$(2),e.Y8G("ngIf",!I.features[1].enabled),e.R7$(),e.Y8G("ngIf",I.features[1].enabled)}}function W0(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-expansion-panel",10),e.bIt("opened",function(){const J=p.eBV(I).index,ne=e.XpG();return p.Njj(ne.onPanelExpanded(J))}),e.j41(1,"mat-expansion-panel-header")(2,"mat-panel-title",11)(3,"h4",12),e.EFF(4),e.k0s(),e.j41(5,"h4",12),e.DNE(6,Bd,1,0,"span",13)(7,wf,1,0,"span",14),e.EFF(8),e.k0s()()(),e.j41(9,"div",15),e.DNE(10,D1,29,5,"form",16)(11,f3,4,2,"form",16),e.k0s()()}if(2&z){const I=N.$implicit,H=N.index;e.Y8G("expanded",!1),e.R7$(4),e.JRh(I.name),e.R7$(2),e.Y8G("ngIf",I.enabled),e.R7$(),e.Y8G("ngIf",!I.enabled),e.R7$(),e.SpI(" ",I.enabled?"Enabled":"Disabled"," "),e.R7$(2),e.Y8G("ngIf",0===H),e.R7$(),e.Y8G("ngIf",1===H)}}let A1=(()=>{var z;class N{constructor(H,J,ne,ot){this.logger=H,this.store=J,this.dataService=ne,this.commonService=ot,this.faInfoCircle=Ti.iW_,this.faExclamationTriangle=Ti.zpE,this.faCode=Ti.jTw,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=Mt.ul,this.selPolicyType=Mt.ul[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.dataService.listConfigs().pipe((0,mi.Q)(this.unSubs[0])).subscribe({next:H=>{this.logger.info("Received List Configs: "+JSON.stringify(H)),this.features[1].enabled=!!H.configs["experimental-dual-fund"].set},error:H=>{this.logger.error("List Configs Error: "+JSON.stringify(H)),this.features[1].enabled=!1}}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.selNode=H,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(s0.Al).pipe((0,mi.Q)(this.unSubs[2])).subscribe(H=>{this.policyTypes[2].max=H.balance.totalBalance||1e3})}onPanelExpanded(H){1===H&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,mi.Q)(this.unSubs[3])).subscribe(J=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(J)),this.fundingPolicy=J,this.fundingPolicy.policy&&(this.selPolicyType=Mt.ul.find(ne=>ne.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,Ui.T$)({payload:this.selNode}))}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,mi.Q)(this.unSubs[4])).subscribe({next:H=>{this.logger.info(H),this.fundingPolicy=H,this.updateMsg={data:"Compact Lease: "+H.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:H=>{this.logger.error(H),this.updateMsg={error:this.commonService.extractErrorMessage(H,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?Mt.ul.find(H=>H.id===this.fundingPolicy.policy)||this.policyTypes[0]:Mt.ul[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(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il),e.rXU(H0.u),e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-experimental-settings"]],standalone:!1,decls:13,vars:3,consts:[["form","ngForm"],["plcMod","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[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"],["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,"opened","expanded"],["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,"ngModelChange","change","ngModel"],[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"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","name","policy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModelChange","step","min","max","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModelChange","ngModel"],["matInput","","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModelChange","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModelChange","ngModel"],["matInput","","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModelChange","ngModel"],["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(J,ne){1&J&&(e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(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.k0s()(),e.j41(5,"form",5,0)(7,"div",6),e.nrm(8,"fa-icon",7),e.j41(9,"span",8),e.EFF(10,"Features"),e.k0s()(),e.j41(11,"mat-accordion"),e.DNE(12,W0,12,7,"mat-expansion-panel",9),e.k0s()()()),2&J&&(e.R7$(2),e.Y8G("icon",ne.faInfoCircle),e.R7$(6),e.Y8G("icon",ne.faCode),e.R7$(4),e.Y8G("ngForOf",ne.features))},dependencies:[o.YU,o.Sq,o.bT,_i.qT,_i.me,_i.Q0,_i.BC,_i.cb,_i.YS,_i.VZ,_i.zX,_i.vS,_i.cV,cr.aY,tr.$z,ss.BS,ss.GK,ss.Z2,ss.WN,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,Wi.q,at.DJ,at.sA,at.UI,ol.PW,al.VO,ic.wT,xd.sG,go.Ld,Xl.N,Fd.z,c3.V,o.PV],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})(),X0=(()=>{var z;class N{constructor(){}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-no-service-found"]],standalone:!1,decls:6,vars:0,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"]],template:function(J,ne){1&J&&(e.j41(0,"div",0)(1,"mat-card")(2,"mat-card-content",1)(3,"div",2)(4,"div",3),e.EFF(5,"No Service Found!"),e.k0s()()()()())},dependencies:[De.RN,De.m2,at.DJ,at.sA],encapsulation:2}))}return z(),N})();const K0=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([l.e(193),l.e(190)]).then(l.bind(l,39190)).then(z=>z.LNDModule),canActivate:[(0,vo.q_)()]},{path:"cln",loadChildren:()=>Promise.all([l.e(193),l.e(853)]).then(l.bind(l,94853)).then(z=>z.CLNModule),canActivate:[(0,vo.q_)()]},{path:"ecl",loadChildren:()=>Promise.all([l.e(193),l.e(17)]).then(l.bind(l,89017)).then(z=>z.ECLModule),canActivate:[(0,vo.q_)()]},{path:"settings",component:Wa,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:nd,canActivate:[(0,vo.q_)()]},{path:"auth",component:vr,canActivate:[(0,vo.q_)()]},{path:"bconfig",component:t0,canActivate:[(0,vo.q_)()]}]},{path:"config",component:Th,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:Cd,canActivate:[(0,vo.q_)()]},{path:"pglayout",component:V2,canActivate:[(0,vo.q_)()]},{path:"services",component:Ph,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:d1,canActivate:[(0,vo.q_)()]},{path:"boltz",component:W2,canActivate:[(0,vo.q_)()]},{path:"noservice",component:X0}]},{path:"experimental",component:A1,canActivate:[(0,vo.q_)()]},{path:"lnconfig",component:id,canActivate:[(0,vo.q_)()]}]},{path:"services",component:$4,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Z2},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:B0}]},{path:"help",component:Mf},{path:"login",component:Hc},{path:"error",component:Nd},{path:"**",component:G0.X}],Y0=co.iI.forRoot(K0,{onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"});var L1=l(19029),Ou=l(9881),m3=l(34330),I1=l(9183),k1=l(90882),Pu=l(55911),Yl=l(72279),Pl=l(47358);const Dc={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/lnd/home",userPersona:Mt.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/lnd/onchain",userPersona:Mt.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/lnd/connections",userPersona:Mt.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/lnd/connections",userPersona:Mt.HW.ALL,children:[]},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/lnd/transactions",userPersona:Mt.HW.ALL,children:[]},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/lnd/routing",userPersona:Mt.HW.ALL,children:[]},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/lnd/reports",userPersona:Mt.HW.ALL,children:[]},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/lnd/graph",userPersona:Mt.HW.ALL,children:[]},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ti.pCJ,link:"/lnd/messages",userPersona:Mt.HW.ALL,children:[]},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:Ti.cbP,link:"/lnd/channelbackup",userPersona:Mt.HW.ALL,children:[]},{id:38,parentId:3,name:"Network",iconType:"FA",icon:Ti.qFF,link:"/lnd/network",userPersona:Mt.HW.OPERATOR,children:[]},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:Ti.D6w,link:"/lnd/network",userPersona:Mt.HW.MERCHANT,children:[]}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ti.qIE,link:"/services/loop",userPersona:Mt.HW.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:Ti.C8j,link:"/services/loop",userPersona:Mt.HW.ALL,children:[]},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Mt.HW.ALL,children:[]}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:Mt.HW.ALL,children:[]},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:Mt.HW.ALL,children:[]}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/cln/home",userPersona:Mt.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/cln/onchain",userPersona:Mt.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/cln/connections",userPersona:Mt.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/cln/connections",userPersona:Mt.HW.ALL,children:[]},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:Ti.e4L,link:"/cln/liquidityads",userPersona:Mt.HW.ALL,children:[]},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/cln/transactions",userPersona:Mt.HW.ALL,children:[]},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/cln/routing",userPersona:Mt.HW.ALL,children:[]},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/cln/reports",userPersona:Mt.HW.ALL,children:[]},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/cln/graph",userPersona:Mt.HW.ALL,children:[]},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ti.pCJ,link:"/cln/messages",userPersona:Mt.HW.ALL,children:[]},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:Ti.WKo,link:"/cln/rates",userPersona:Mt.HW.OPERATOR,children:[]},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:Ti.D6w,link:"/cln/rates",userPersona:Mt.HW.MERCHANT,children:[]}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ti.qIE,link:"/services/loop",userPersona:Mt.HW.ALL,children:[{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Mt.HW.ALL,children:[]}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:Mt.HW.ALL,children:[]},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:Mt.HW.ALL,children:[]}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/ecl/home",userPersona:Mt.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/ecl/onchain",userPersona:Mt.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/ecl/connections",userPersona:Mt.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/ecl/connections",userPersona:Mt.HW.ALL,children:[]},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/ecl/transactions",userPersona:Mt.HW.ALL,children:[]},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/ecl/routing",userPersona:Mt.HW.ALL,children:[]},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/ecl/reports",userPersona:Mt.HW.ALL,children:[]},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/ecl/graph",userPersona:Mt.HW.ALL,children:[]}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:Mt.HW.ALL,children:[]},{id:5,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:Mt.HW.ALL,children:[]}]};function kf(z,N){if(1&z&&(e.j41(0,"mat-option",12),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I.index),e.R7$(),e.Lme(" ",I.lnNode," (",I.lnImplementation,") ")}}function Rf(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-select",10),e.bIt("selectionChange",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onNodeSelectionChange(J.value))}),e.j41(1,"perfect-scrollbar"),e.DNE(2,kf,2,3,"mat-option",11),e.k0s()()}if(2&z){const I=e.XpG();e.Y8G("value",I.selConfigNodeIndex),e.R7$(2),e.Y8G("ngForOf",I.appConfig.nodes)}}function Of(z,N){if(1&z&&(e.j41(0,"span",21),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.XpG(2);const H=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet","boltzIconBlock"===I.icon?H:null)}}function Pf(z,N){if(1&z&&e.nrm(0,"fa-icon",23),2&z){const I=e.XpG().$implicit;e.Y8G("icon",I.icon)}}function R1(z,N){if(1&z&&(e.j41(0,"mat-icon",24),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I.icon)}}function Nf(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-tree-node",15)(1,"div",16),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG(2);return p.Njj(ne.onChildNavClicked(J))}),e.j41(2,"div",17),e.DNE(3,Of,2,1,"span",18)(4,Pf,1,1,"fa-icon",19)(5,R1,2,1,"mat-icon",20),e.j41(6,"span"),e.EFF(7),e.k0s()()()()}if(2&z){const I=N.$implicit;e.Y8G("routerLink",e.mNQ(I.link)),e.R7$(3),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(),e.Y8G("ngIf",!I.iconType),e.R7$(2),e.JRh(I.name)}}function Ff(z,N){if(1&z&&(e.j41(0,"span",32),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",I.icon)}}function Bf(z,N){if(1&z&&e.nrm(0,"fa-icon",23),2&z){const I=e.XpG().$implicit;e.Y8G("icon",I.icon)}}function Q0(z,N){if(1&z&&(e.j41(0,"mat-icon",24),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I.icon)}}function Fu(z,N){if(1&z&&(e.j41(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.DNE(3,Ff,2,1,"span",28)(4,Bf,1,1,"fa-icon",19)(5,Q0,2,1,"mat-icon",20),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.j41(8,"button",29)(9,"mat-icon"),e.EFF(10),e.k0s()()(),e.j41(11,"div",30),e.eu8(12,31),e.k0s()()),2&z){const I=N.$implicit,H=e.XpG(2);e.R7$(3),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(),e.Y8G("ngIf",!I.iconType),e.R7$(2),e.JRh(I.name),e.R7$(),e.BMQ("aria-label","toggle "+I.name),e.R7$(2),e.JRh(H.treeControlNested.isExpanded(I)?"arrow_drop_up":"arrow_drop_down"),e.R7$(),e.AVh("tree-children-invisible",!H.treeControlNested.isExpanded(I))}}function Bu(z,N){if(1&z&&(e.j41(0,"mat-tree",7,1),e.DNE(2,Nf,8,6,"mat-tree-node",13)(3,Fu,13,8,"mat-nested-tree-node",14),e.k0s()),2&z){const I=e.XpG();e.Y8G("dataSource",I.navMenus)("treeControl",I.treeControlNested),e.R7$(3),e.Y8G("matTreeNodeDefWhen",I.hasChild)}}function zf(z,N){if(1&z&&(e.j41(0,"span",37),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",I.icon)}}function Uf(z,N){if(1&z&&e.nrm(0,"fa-icon",38),2&z){const I=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(I.name))("icon",I.icon)}}function Vf(z,N){if(1&z&&(e.j41(0,"mat-icon",39),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(I.name)),e.R7$(),e.JRh(I.icon)}}function $0(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-tree-node",33),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.onShowData(J))}),e.DNE(1,zf,2,1,"span",34)(2,Uf,1,3,"fa-icon",35)(3,Vf,2,3,"mat-icon",36),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&z){const I=N.$implicit;e.R7$(),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(),e.Y8G("ngIf",!I.iconType),e.R7$(2),e.JRh(I.name)}}function O1(z,N){if(1&z&&(e.j41(0,"span",32),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",I.icon)}}function Gf(z,N){if(1&z&&e.nrm(0,"fa-icon",38),2&z){const I=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(I.name))("icon",I.icon)}}function p3(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-tree-node",33),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG(2);return p.Njj(ne.onClick(J))}),e.DNE(1,O1,2,1,"span",28)(2,Gf,1,3,"fa-icon",35),e.j41(3,"span"),e.EFF(4),e.k0s()()}if(2&z){const I=N.$implicit;e.R7$(),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(2),e.JRh(I.name)}}function Hf(z,N){if(1&z&&(e.j41(0,"mat-tree",7),e.DNE(1,p3,5,3,"mat-tree-node",8),e.k0s()),2&z){const I=e.XpG();e.Y8G("dataSource",I.navMenusLogout)("treeControl",I.treeControlLogout)}}function Z0(z,N){1&z&&(p.qSk(),e.j41(0,"svg",40)(1,"g",41)(2,"g",42),e.nrm(3,"circle",43)(4,"path",44)(5,"path",45),e.k0s()()())}let g3=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.logger=H,this.commonService=J,this.sessionService=ne,this.store=ot,this.actions=jt,this.rtlEffects=$t,this.ChildNavClicked=new e.bkB,this.faEject=Ti.njF,this.faEye=Ti.pS3,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:Ti.njF,children:[]}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:Ti.pS3,children:[]}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=Mt.HW,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B],this.treeControlNested=new Yl.XO(Tn=>Tn.children),this.treeControlLogout=new Yl.XO(Tn=>Tn.children),this.treeControlShowData=new Yl.XO(Tn=>Tn.children),this.navMenus=new Pl.Zh,this.navMenusLogout=new Pl.Zh,this.navMenusShowData=new Pl.Zh,this.hasChild=(Tn,ii)=>!!ii.children&&ii.children.length>0,this.version=Mt.xv,Dc.LNDChildren&&200===Dc.LNDChildren[Dc.LNDChildren.length-1].id&&Dc.LNDChildren.pop(),this.navMenus.data=Dc.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const H=this.sessionService.getItem("token");this.showLogout=!!H,this.flgLoading=!!H,this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[0])).subscribe(J=>{this.appConfig=J}),this.store.select(Ra.Az).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{if(this.information=J.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 ne=this.information.chains[0];this.informationChain.chain=ne.chain,this.informationChain.network=ne.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=J.selNode,this.selConfigNodeIndex=+(J.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(J)}),this.sessionService.watchSession().pipe((0,mi.Q)(this.unSubs[2])).subscribe(J=>{this.showLogout=!!J.token,this.flgLoading=!!J.token}),this.actions.pipe((0,mi.Q)(this.unSubs[3]),(0,za.p)(J=>J.type===Mt.aU.LOGOUT)).subscribe(J=>{this.showLogout=!1})}onClick(H){"Logout"===H.name&&(this.store.dispatch((0,Ui.I1)({payload:{data:{type:Mt.A$.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,mi.Q)(this.unSubs[4])).subscribe(J=>{J&&(this.showLogout=!1,this.store.dispatch((0,Ui.ri)({payload:""})))})),this.ChildNavClicked.emit(H)}onChildNavClicked(H){this.ChildNavClicked.emit(H)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){const H=JSON.parse(JSON.stringify(Dc.LNDChildren));this.navMenus.data=H?.filter(J=>J.children&&J.children.length?(J.children=J.children?.filter(ne=>(ne.userPersona===Mt.HW.ALL||ne.userPersona===this.selNode.settings.userPersona)&&"/services/loop"!==ne.link&&"/services/boltz"!==ne.link||"/services/loop"===ne.link&&this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()||"/services/boltz"===ne.link&&this.selNode.settings.boltzServerUrl&&""!==this.selNode.settings.boltzServerUrl.trim()),J.children.length>0):J.userPersona===Mt.HW.ALL||J.userPersona===this.selNode.settings.userPersona)}loadCLNMenu(){const H=JSON.parse(JSON.stringify(Dc.CLNChildren));this.navMenus.data=H?.filter(J=>J.children&&J.children.length?(J.children=J.children?.filter(ne=>(ne.userPersona===Mt.HW.ALL||ne.userPersona===this.selNode.settings.userPersona)&&(!ne.link.includes("/services")||"/services/peerswap"===ne.link&&this.selNode.settings.enablePeerswap||"/services/boltz"===ne.link&&this.selNode.settings.boltzServerUrl&&""!==this.selNode.settings.boltzServerUrl.trim())),J.children.length>0):J.userPersona===Mt.HW.ALL||J.userPersona===this.selNode.settings.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Dc.ECLChildren))}onShowData(H){this.store.dispatch((0,Ui.OP)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(H){const J=this.selConfigNodeIndex;this.selConfigNodeIndex=H;const ne=this.appConfig.nodes.find(ot=>+ot.index===H);this.store.dispatch((0,Ui.Qi)({payload:{uiMessage:Mt.MZ.UPDATE_SELECTED_NODE,prevLnNodeIndex:+J,currentLnNode:ne||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(zi.Q),e.rXU(vi.il),e.rXU(Vo.En),e.rXU(Ko.H))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-side-navigation"]],viewQuery:function(J,ne){if(1&J&&e.GBs(Pl.lQ,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.tree=ot.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},standalone:!1,decls:12,vars:5,consts:[["boltzIconBlock",""],["tree",""],["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"],[1,"m-2","multi-node-select",3,"selectionChange","value"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["routerLinkActive","active-link","matTreeNodeToggle","",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["routerLinkActive","active-link","matTreeNodeToggle","",3,"routerLink"],["tabindex","2",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2","fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",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","80","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","20","mat-icon-button","","fxLayoutAlign","end center",1,"btn-icon-small"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],[3,"click"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"matTooltip","icon",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"fa-icon-small","mr-2"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"matTooltip","icon"],["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(J,ne){1&J&&(e.j41(0,"div",2)(1,"div",3),e.DNE(2,Rf,3,2,"mat-select",4),e.nrm(3,"mat-divider",5),e.DNE(4,Bu,4,3,"mat-tree",6),e.nrm(5,"mat-divider",5),e.j41(6,"mat-tree",7),e.DNE(7,$0,6,4,"mat-tree-node",8),e.k0s()(),e.j41(8,"div",9),e.DNE(9,Hf,2,2,"mat-tree",6),e.k0s()(),e.DNE(10,Z0,6,0,"ng-template",null,0,e.C5r)),2&J&&(e.R7$(2),e.Y8G("ngIf",ne.appConfig.nodes.length>1),e.R7$(2),e.Y8G("ngIf",null==ne.selNode.settings?null:ne.selNode.settings.lnServerUrl),e.R7$(2),e.Y8G("dataSource",ne.navMenusShowData)("treeControl",ne.treeControlShowData),e.R7$(3),e.Y8G("ngIf",ne.showLogout))},dependencies:[o.Sq,o.bT,o.T3,cr.aY,sc.iY,Oc.An,Wi.q,Pl.q1,Pl.yI,Pl.pO,Pl.lQ,Pl.d6,Pl.wx,at.DJ,at.sA,at.UI,al.VO,ic.wT,o1.oV,co.Wk,co.wQ,go.ZF,go.Ld],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}))}return z(),N})();var zu=l(59115);function J0(z,N){if(1&z&&(e.j41(0,"p",14),e.nrm(1,"fa-icon",3),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faCode),e.R7$(2),e.SpI("API Version: ",null==I.information?null:I.information.api_version)}}function _3(z,N){if(1&z&&(e.j41(0,"p",15),e.nrm(1,"fa-icon",3),e.j41(2,"span",16),e.EFF(3,"Settings"),e.k0s()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faUserCog)}}function zd(z,N){if(1&z&&(e.j41(0,"p",17),e.nrm(1,"fa-icon",3),e.j41(2,"span",18),e.EFF(3,"Help"),e.k0s()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faQuestion)}}function jf(z,N){if(1&z){const I=e.RV6();e.j41(0,"p",19),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onClick())}),e.nrm(1,"fa-icon",3),e.j41(2,"span"),e.EFF(3,"Logout"),e.k0s()()}if(2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faEject)}}let v3=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.logger=H,this.sessionService=J,this.store=ne,this.rtlEffects=ot,this.actions=jt,this.faUserCog=Ti.McB,this.faCodeBranch=Ti.Xbc,this.faCode=Ti.jTw,this.faCog=Ti.dB,this.faQuestion=Ti.EvL,this.faEject=Ti.njF,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B],this.version=Mt.xv}ngOnInit(){this.store.select(Ra.N).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{if(this.information=H,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 J=this.information.chains[0];this.informationChain.chain=J.chain,this.informationChain.network=J.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(H)}),this.sessionService.watchSession().pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.showLogout=!!H.token,this.flgLoading=!!H.token}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(H=>H.type===Mt.aU.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Ui.I1)({payload:{data:{type:Mt.A$.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,mi.Q)(this.unSubs[3])).subscribe(H=>{H&&(this.showLogout=!1,this.store.dispatch((0,Ui.ri)({payload:""})))})}onDonate(){window.open("https://www.ridethelightning.info/donate/","_blank")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(zi.Q),e.rXU(vi.il),e.rXU(Ko.H),e.rXU(Vo.En))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-top-menu"]],standalone:!1,decls:20,vars:8,consts:[["topMenu","matMenu"],[1,"top-menu",3,"overlapTrigger"],["tabindex","1","mat-menu-item","",1,"cursor-default"],[1,"fa-icon-small","mr-1",3,"icon"],["tabindex","2","mat-menu-item","","class","cursor-default",4,"ngIf"],["tabindex","3","mat-menu-item","","routerLink","/settings",4,"ngIf"],["tabindex","4","mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","","tabindex","5","fxLayoutAlign","start center",3,"click"],["fill","currentColor","version","1.1","viewBox","0 0 64 64",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"svg-donation"],["d","M62.519,17.698l-12-14c-0.659-0.768-1.786-0.923-2.628-0.362l-8.712,5.808l-16.688,4.172 c-2.485,0.622-4.537,2.412-5.487,4.791L12.21,30.09C10.206,32.512,9,35.618,9,39c0,2.974,0.939,5.73,2.527,8H5 c-2.206,0-4,1.794-4,4v6c0,2.206,1.794,4,4,4h36c2.206,0,4-1.794,4-4v-6c0-2.206-1.794-4-4-4h-6.522 c0.375-0.535,0.713-1.1,1.013-1.691l4.291-2.452l3.378-0.965c2.619-0.749,4.903-2.269,6.604-4.395 c1.39-1.736,2.317-3.813,2.682-6.006l0.412-2.472l9.48-8.532C63.145,19.76,63.225,18.523,62.519,17.698z M34.428,30.929 c-1.487-2.094-3.517-3.732-5.842-4.75L29.207,25h7.058l0.588,4.11L34.428,30.929z M31.225,33.331l-0.373,0.28 c-1.772,1.329-2.889,3.273-3.146,5.473c-0.257,2.2,0.382,4.348,1.8,6.048l0.667,0.8C28.315,47.845,25.742,49,23,49 c-5.514,0-10-4.486-10-10s4.486-10,10-10C26.299,29,29.376,30.663,31.225,33.331z M41,57H5v-6h10.826c2.101,1.261,4.55,2,7.174,2 c2.571,0,5.041-0.723,7.176-2H41V57z M49.662,26.513c-0.336,0.303-0.561,0.711-0.635,1.158L48.5,30.833 c-0.253,1.521-0.896,2.96-1.86,4.165c-1.18,1.475-2.763,2.529-4.579,3.048l-3.61,1.031c-0.155,0.044-0.303,0.106-0.443,0.187 l-5.541,3.166c-0.63-0.826-0.909-1.843-0.788-2.882c0.128-1.1,0.687-2.072,1.573-2.737l6.001-4.5 c1.169-0.877,1.767-2.32,1.56-3.766l-0.587-4.11C39.946,22.477,38.244,21,36.266,21h-7.059c-1.489,0-2.845,0.818-3.539,2.136 l-1.037,1.969C24.093,25.041,23.549,25,23,25c-1.685,0-3.294,0.314-4.791,0.862l2.509-6.271c0.476-1.189,1.501-2.084,2.743-2.395 l17.024-4.256c0.223-0.056,0.434-0.149,0.625-0.276l7.525-5.017l9.576,11.172L49.662,26.513z"],["tabindex","6","mat-menu-item","",3,"click",4,"ngIf"],["tabindex","7","mat-icon-button","",3,"matMenuTriggerFor"],["alt","RTL Logo","src","assets/images/RTL-Horse-BY.svg",1,"rtl-log-top"],[1,"rtl-logo-dropdown","color-white"],["tabindex","2","mat-menu-item","",1,"cursor-default"],["tabindex","3","mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["tabindex","4","mat-menu-item","","routerLink","/help"],["routerLink","/help"],["tabindex","6","mat-menu-item","",3,"click"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"mat-menu",1,0)(2,"p",2),e.nrm(3,"fa-icon",3),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.DNE(6,J0,4,2,"p",4)(7,_3,4,1,"p",5)(8,zd,4,1,"p",6),e.j41(9,"p",7),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onDonate())}),p.qSk(),e.j41(10,"svg",8)(11,"g"),e.nrm(12,"path",9),e.k0s()(),p.joV(),e.j41(13,"span"),e.EFF(14,"Donate"),e.k0s()(),e.DNE(15,jf,4,1,"p",10),e.k0s(),e.j41(16,"button",11),e.nrm(17,"img",12),e.j41(18,"mat-icon",13),e.EFF(19,"arrow_drop_down"),e.k0s()()}if(2&J){const ot=e.sdS(1);e.Y8G("overlapTrigger",!1),e.R7$(3),e.Y8G("icon",ne.faCodeBranch),e.R7$(2),e.SpI("Version: ",ne.version),e.R7$(),e.Y8G("ngIf",null==ne.information?null:ne.information.api_version),e.R7$(),e.Y8G("ngIf",ne.showLogout),e.R7$(),e.Y8G("ngIf",ne.showLogout),e.R7$(7),e.Y8G("ngIf",ne.showLogout),e.R7$(),e.Y8G("matMenuTriggerFor",ot)}},dependencies:[o.bT,cr.aY,sc.iY,Oc.An,zu.kk,zu.fb,zu.Cp,at.sA,co.Wk],styles:[".mat-mdc-icon-button img.rtl-log-top{width:2rem;height:2rem}.mat-icon.material-icons.mat-icon-no-color.rtl-logo-dropdown{height:2rem}\n"],encapsulation:2}))}return z(),N})();const P1=["sideNavigation"],N1=["sideNavContent"],Um=(z,N)=>[z,N];function Wf(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.sideNavToggle())}),e.j41(1,"mat-icon",16),e.EFF(2,"menu"),e.k0s()()}if(2&z){const I=e.XpG();e.Y8G("matTooltip",I.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",I.smallScreen)}}function Uu(z,N){1&z&&(p.qSk(),e.nrm(0,"path",21))}function q0(z,N){1&z&&(p.qSk(),e.nrm(0,"path",22))}function e2(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.flgSidenavPinned=!J.flgSidenavPinned)}),p.qSk(),e.j41(1,"svg",18),e.DNE(2,Uu,1,0,"path",19)(3,q0,1,0,"path",20),e.k0s()()}if(2&z){const I=e.XpG();e.Y8G("matTooltip",I.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.R7$(2),e.Y8G("ngIf",!I.flgSidenavPinned),e.R7$(),e.Y8G("ngIf",I.flgSidenavPinned)}}function Vu(z,N){if(1&z&&(e.j41(0,"span",23),e.EFF(1),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.JRh(I.information.alias?"RTL - "+I.information.alias:"RTL")}}function y3(z,N){if(1&z&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.JRh(I.information.alias?"Ride The Lightning - "+I.information.alias:"Ride The Lightning")}}function b3(z,N){1&z&&(e.j41(0,"div",25),e.nrm(1,"mat-spinner",26),e.j41(2,"h4"),e.EFF(3,"Loading RTL..."),e.k0s()())}let Gu=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t,Tn,ii,Qn){this.logger=H,this.commonService=J,this.store=ne,this.actions=ot,this.userIdle=jt,this.router=$t,this.sessionService=Tn,this.breakpointObserver=ii,this.renderer=Qn,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 bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.router.events.subscribe(H=>{H instanceof ja.wF&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([hr.Rp.XSmall,hr.Rp.TabletPortrait,hr.Rp.Small,hr.Rp.Medium,hr.Rp.Large,hr.Rp.XLarge]).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{H.breakpoints[hr.Rp.XSmall]?(this.commonService.setScreenSize(Mt.f7.XS),this.smallScreen=!0):H.breakpoints[hr.Rp.TabletPortrait]?(this.commonService.setScreenSize(Mt.f7.SM),this.smallScreen=!0):H.breakpoints[hr.Rp.Small]||H.breakpoints[hr.Rp.Medium]?(this.commonService.setScreenSize(Mt.f7.MD),this.smallScreen=!1):H.breakpoints[hr.Rp.Large]?(this.commonService.setScreenSize(Mt.f7.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Mt.f7.XL),this.smallScreen=!1)}),this.store.dispatch((0,Ui.NU)()),this.accessKey=this.readAccessKey()||"",this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1),this.selNode=H}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[2])).subscribe(H=>{this.appConfig=H}),this.store.select(Ra.N).pipe((0,mi.Q)(this.unSubs[3])).subscribe(H=>{this.information=H,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,mi.Q)(this.unSubs[4]),(0,za.p)(H=>H.type===Mt.aU.SET_APPLICATION_SETTINGS||H.type===Mt.aU.LOGIN||H.type===Mt.aU.LOGOUT)).subscribe(H=>{H.type===Mt.aU.SET_APPLICATION_SETTINGS&&(this.sessionService.getItem("token")||(H.payload.disableAuth?this.store.dispatch((0,Ui.iD)({payload:{password:"disabledAuth",defaultPassword:!1}})):+H.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,Ui.iD)({payload:{password:vc(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"],{state:{logoutReason:"Access key too short. It should be at least 32 characters long."}}))),H.type===Mt.aU.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)),H.type===Mt.aU.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,mi.Q)(this.unSubs[5])).subscribe(H=>{this.logger.info("Counting Down: "+(11-H))}),this.userIdle.onTimeout().pipe((0,mi.Q)(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,Ui.Jh)()),this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Ui.ri)({payload:"Logging Out. Time limit exceeded for session inactivity."})))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const H=window.location.href;return H.includes("access-key=")?H.substring(H.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(H){this.smallScreen&&(this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.close())}backdropClicked(){(!this.flgSidenavPinned||this.smallScreen)&&(this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.close())}copiedText(H){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+H)}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(Vo.En),e.rXU(vd),e.rXU(ja.Ix),e.rXU(zi.Q),e.rXU(m3.Q),e.rXU(e.sFG))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-app"]],viewQuery:function(J,ne){if(1&J&&(e.GBs(P1,5),e.GBs(N1,5)),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.sideNavigation=ot.first),e.mGM(ot=e.lsd())&&(ne.sideNavContent=ot.first)}},standalone:!1,decls:22,vars:15,consts:[["sideNavigation",""],["sideNavContent",""],["outlet","outlet"],["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"bg-primary","rtl-top-toolbar"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],["class","font-weight-500",4,"ngIf"],["class","font-size-120 font-weight-500",4,"ngIf"],[3,"backdropClick"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip","matTooltipDisabled"],[1,"color-white"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip"],["width","20","height","20","viewBox","0 0 24 24",1,"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,"font-weight-500"],[1,"font-size-120","font-weight-500"],[1,"rtl-spinner"],["color","accent"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",3),e.nI1(1,"lowercase"),e.nI1(2,"lowercase"),e.j41(3,"mat-toolbar",4)(4,"div"),e.DNE(5,Wf,3,2,"button",5)(6,e2,4,3,"button",6),e.k0s(),e.j41(7,"div"),e.DNE(8,Vu,2,1,"span",7)(9,y3,2,1,"span",8),e.k0s(),e.j41(10,"div"),e.nrm(11,"rtl-top-menu"),e.k0s()(),e.j41(12,"mat-sidenav-container",9),e.bIt("backdropClick",function(){return p.eBV(ot),p.Njj(ne.backdropClicked())}),e.j41(13,"mat-sidenav",10,0)(15,"rtl-side-navigation",11),e.bIt("ChildNavClicked",function($t){return p.eBV(ot),p.Njj(ne.onNavigationClicked($t))}),e.k0s()(),e.j41(16,"mat-sidenav-content",12,1)(18,"div",13),e.nrm(19,"router-outlet",null,2),e.k0s()()(),e.DNE(21,b3,4,0,"div",14),e.k0s()}2&J&&(e.Y8G("ngClass",e.l_i(12,Um,e.bMT(1,8,ne.selNode.settings.themeColor),e.bMT(2,10,ne.selNode.settings.themeMode))),e.R7$(5),e.Y8G("ngIf",ne.flgLoggedIn),e.R7$(),e.Y8G("ngIf",!ne.smallScreen&&ne.flgLoggedIn),e.R7$(2),e.Y8G("ngIf",ne.smallScreen),e.R7$(),e.Y8G("ngIf",!ne.smallScreen),e.R7$(4),e.Y8G("opened",ne.flgSideNavOpened&&ne.flgLoggedIn)("mode",ne.flgSidenavPinned&&!ne.smallScreen?"side":"over"),e.R7$(8),e.Y8G("ngIf",!ne.selNode.settings.themeColor))},dependencies:[o.YU,o.bT,sc.iY,Oc.An,I1.LG,at.DJ,at.sA,at.UI,ol.PW,k1.LG,k1.US,k1.El,Pu.KQ,o1.oV,go.Ld,g3,v3,ja.n3,o.GH],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Ou.E]}}))}return z(),N})(),Hu=(()=>{var z;class N{constructor(H){this.sessionService=H}intercept(H,J){if(this.sessionService.getItem("token")){const ne=H.clone({headers:H.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return J.handle(ne)}return J.handle(H)}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(zi.Q))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();var ju=l(7879),x3=l(69579),Wu=l(283),Xf=l(13017);const Kf={userPersona:Mt.HW.OPERATOR,themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1,logLevel:"ERROR",lnServerUrl:"",swapServerUrl:"",boltzServerUrl:"",currencyUnit:"USD",blockExplorerUrl:"https://mempool.space"},Yf={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},Xu={apiURL:"",apisCallStatus:{Login:{status:Mt.wn.UN_INITIATED},IsAuthorized:{status:Mt.wn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Kf,authentication:Yf,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,SSO:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,secret2FA:"",disableAuth:!1,allowPasswordUpdate:!0,nodes:[{settings:Kf,authentication:Yf}]},nodeData:{}},Ku=(0,vi.vy)(Xu,(0,vi.on)(Ui.Gd,(z,{payload:N})=>{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(Ui.Tn,(z,{payload:N})=>({...Xu,apisCallStatus:z.apisCallStatus,appConfig:z.appConfig,selNode:N})),(0,vi.on)(Ui.Np,(z,{payload:N})=>({...z,selNode:N})),(0,vi.on)(Ui.Fl,(z,{payload:N})=>({...z,nodeData:N})),(0,vi.on)(Ui.IK,(z,{payload:N})=>({...z,appConfig:N}))),C3={apisCallStatus:{FetchPageSettings:{status:Mt.wn.UN_INITIATED},FetchInfo:{status:Mt.wn.UN_INITIATED},FetchFees:{status:Mt.wn.UN_INITIATED},FetchPeers:{status:Mt.wn.UN_INITIATED},FetchClosedChannels:{status:Mt.wn.UN_INITIATED},FetchPendingChannels:{status:Mt.wn.UN_INITIATED},FetchAllChannels:{status:Mt.wn.UN_INITIATED},FetchBalanceBlockchain:{status:Mt.wn.UN_INITIATED},FetchInvoices:{status:Mt.wn.UN_INITIATED},FetchPayments:{status:Mt.wn.UN_INITIATED},FetchForwardingHistory:{status:Mt.wn.UN_INITIATED},FetchUTXOs:{status:Mt.wn.UN_INITIATED},FetchTransactions:{status:Mt.wn.UN_INITIATED},FetchLightningTransactions:{status:Mt.wn.UN_INITIATED},FetchNetwork:{status:Mt.wn.UN_INITIATED}},pageSettings:Mt.ZC,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 t2=!1,Yu=!1;const M3=(0,vi.vy)(C3,(0,vi.on)(Ur.e8,(z,{payload:N})=>{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(Ur.p1,z=>({...C3})),(0,vi.on)(Ur.x1,(z,{payload:N})=>({...z,information:N})),(0,vi.on)(Ur.Qj,(z,{payload:N})=>({...z,peers:N})),(0,vi.on)(Ur.Zi,(z,{payload:N})=>{const I=[...z.peers],H=z.peers.findIndex(J=>J.pub_key===N.pubkey);return H>-1&&I.splice(H,1),{...z,peers:I}}),(0,vi.on)(Ur.Jx,(z,{payload:N})=>{const I=z.listInvoices;return I.invoices?.unshift(N),{...z,listInvoices:I}}),(0,vi.on)(Ur.Dq,(z,{payload:N})=>{const I=z.listInvoices;return I.invoices=I.invoices?.map(H=>H.payment_request===N.payment_request?N:H),{...z,listInvoices:I}}),(0,vi.on)(Ur._$,(z,{payload:N})=>{const I=z.listPayments;return I.payments=I.payments?.map(H=>H.payment_hash===N.payment_hash?N:H),{...z,listPayments:I}}),(0,vi.on)(Ur.Uo,(z,{payload:N})=>({...z,fees:N})),(0,vi.on)(Ur.z2,(z,{payload:N})=>({...z,closedChannels:N})),(0,vi.on)(Ur.cU,(z,{payload:N})=>({...z,pendingChannels:N.pendingChannels,pendingChannelsSummary:N.pendingChannelsSummary})),(0,vi.on)(Ur.dv,(z,{payload:N})=>{let I=0,H=0,J=0,ne=0,ot=0,jt=0;return N&&N.forEach($t=>{$t.local_balance||($t.local_balance=0),!0===$t.active?(ot+=+$t.local_balance,J+=1,$t.local_balance?I=+I+ +$t.local_balance:$t.local_balance=0,$t.remote_balance?H=+H+ +$t.remote_balance:$t.remote_balance=0):(jt+=+$t.local_balance,ne+=1)}),{...z,channels:N,channelsSummary:{active:{num_channels:J,capacity:ot},inactive:{num_channels:ne,capacity:jt}},lightningBalance:{local:I,remote:H}}}),(0,vi.on)(Ur.cR,(z,{payload:N})=>{const I=[...z.channels],H=z.channels.findIndex(J=>J.channel_point===N.channelPoint);return H>-1&&I.splice(H,1),{...z,channels:I}}),(0,vi.on)(Ur.DI,(z,{payload:N})=>({...z,blockchainBalance:N})),(0,vi.on)(Ur.J9,(z,{payload:N})=>({...z,networkInfo:N})),(0,vi.on)(Ur.$6,(z,{payload:N})=>(N.total_invoices||(N.total_invoices=z.listInvoices.total_invoices),{...z,listInvoices:N})),(0,vi.on)(Ur.As,(z,{payload:N})=>{if(t2=!0,N.length&&Yu){const I=[...z.utxos];return I.forEach(H=>{const J=N.find(ne=>ne.tx_hash===H.outpoint?.txid_str);H.label=J&&J.label?J.label:""}),{...z,utxos:I,transactions:N}}return{...z,transactions:N}}),(0,vi.on)(Ur.O8,(z,{payload:N})=>{if(Yu=!0,N.length&&t2){const I=[...z.transactions];N.forEach(H=>{const J=I.find(ne=>ne.tx_hash===H.outpoint?.txid_str);H.label=J&&J.label?J.label:""})}return{...z,utxos:N}}),(0,vi.on)(Ur.Uj,(z,{payload:N})=>{const I={listInvoicesAll:z.allLightningTransactions.listInvoicesAll,listPaymentsAll:N};return{...z,listPayments:N,allLightningTransactions:I}}),(0,vi.on)(Ur.b1,(z,{payload:N})=>{const I={listInvoicesAll:N.listInvoicesAll,listPaymentsAll:z.listPayments};return{...z,allLightningTransactions:I}}),(0,vi.on)(Ur.kv,(z,{payload:N})=>{const I=[...z.channels,...z.closedChannels];let H=N.forwarding_events?JSON.parse(JSON.stringify(N)):{};return H.forwarding_events&&(H=Qu(H,I)),{...z,forwardingHistory:H}}),(0,vi.on)(Ur.NS,(z,{payload:N})=>{const I=[];return Mt.ZC.forEach(H=>{const J=N&&N.length&&N.length>0?N.find(ne=>ne.pageId===H.pageId):null;if(J){const ne=JSON.parse(JSON.stringify(J.tables));J.tables=[],H.tables.forEach(ot=>{const jt=ne.find($t=>$t.tableId===ot.tableId)||null;J.tables.push(jt||JSON.parse(JSON.stringify(ot)))}),I.push(J)}else I.push(JSON.parse(JSON.stringify(H)))}),{...z,pageSettings:I}})),Qu=(z,N)=>(z.forwarding_events.forEach(I=>{if(N&&N.length>0)for(let H=0;H{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(zr.gf,z=>({...jc})),(0,vi.on)(zr.x1,(z,{payload:N})=>({...z,information:N,fees:{feeCollected:N.fees_collected_msat}})),(0,vi.on)(zr.C2,(z,{payload:N})=>N.perkb?{...z,feeRatesPerKB:N}:N.perkw?{...z,feeRatesPerKW:N}:{...z}),(0,vi.on)(zr.EM,(z,{payload:N})=>({...z,utxos:N.utxos||[],balance:N.balance,localRemoteBalance:N.localRemoteBalance})),(0,vi.on)(zr.Qj,(z,{payload:N})=>({...z,peers:N})),(0,vi.on)(zr.We,(z,{payload:N})=>({...z,peers:[...z.peers,N]})),(0,vi.on)(zr.Zi,(z,{payload:N})=>{const I=[...z.peers],H=z.peers.findIndex(J=>J.id===N.id);return H>-1&&I.splice(H,1),{...z,peers:I}}),(0,vi.on)(zr.dv,(z,{payload:N})=>({...z,activeChannels:N.activeChannels,pendingChannels:N.pendingChannels,inactiveChannels:N.inactiveChannels})),(0,vi.on)(zr.cR,(z,{payload:N})=>{const I=[...z.peers];return I.forEach(H=>{H.id===N.id&&(H.connected=!1,delete H.netaddr)}),{...z,peers:I}}),(0,vi.on)(zr.Uj,(z,{payload:N})=>({...z,payments:N})),(0,vi.on)(zr.kv,(z,{payload:N})=>{const I=[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels],H=$u(N.listForwards,I);switch(N.listForwards=H,N.status){case Mt.xk.SETTLED:const J=z.fees;return J.totalTxCount=N.totalForwards||0,{...z,fees:J,forwardingHistory:N};case Mt.xk.FAILED:return{...z,failedForwardingHistory:N};case Mt.xk.LOCAL_FAILED:return{...z,localFailedForwardingHistory:N};default:return{...z}}}),(0,vi.on)(zr.Jx,(z,{payload:N})=>{const I=z.invoices;return I.invoices?.unshift(N),{...z,invoices:I}}),(0,vi.on)(zr.$6,(z,{payload:N})=>({...z,invoices:N})),(0,vi.on)(zr.Dq,(z,{payload:N})=>{const I=z.invoices;return I.invoices=I.invoices?.map(H=>(H.label===N.label&&(H.amount_received_msat=N.msat,H.payment_preimage=N.preimage,H.status="paid"),H)),{...z,invoices:I}}),(0,vi.on)(zr.qw,(z,{payload:N})=>({...z,offers:N})),(0,vi.on)(zr.kQ,(z,{payload:N})=>{const I=z.offers;return I?.unshift(N),{...z,offers:I}}),(0,vi.on)(zr.Gz,(z,{payload:N})=>{const I=[...z.offers],H=z.offers.findIndex(J=>J.offer_id===N.offer.offer_id);return H>-1&&I.splice(H,1,N.offer),{...z,offers:I}}),(0,vi.on)(zr.Qv,(z,{payload:N})=>({...z,offersBookmarks:N})),(0,vi.on)(zr.Db,(z,{payload:N})=>{const I=[...z.offersBookmarks],H=I.findIndex(J=>J.bolt12===N.bolt12);if(H<0)I?.unshift(N);else{const J={...I[H]};J.title=N.title,J.amountMSat=N.amountMSat,J.lastUpdatedAt=N.lastUpdatedAt,J.description=N.description,J.issuer=N.issuer,I.splice(H,1,J)}return{...z,offersBookmarks:I}}),(0,vi.on)(zr.NU,(z,{payload:N})=>{const I=[...z.offersBookmarks],H=z.offersBookmarks.findIndex(J=>J.bolt12===N.bolt12);return H>-1&&I.splice(H,1),{...z,offersBookmarks:I}}),(0,vi.on)(zr.NS,(z,{payload:N})=>{const I=[];return Mt.mu.forEach(H=>{const J=N&&N.length&&N.length>0?N.find(ne=>ne.pageId===H.pageId):null;if(J){const ne=JSON.parse(JSON.stringify(J.tables));J.tables=[],H.tables.forEach(ot=>{const jt=ne.find($t=>$t.tableId===ot.tableId)||null;J.tables.push(jt||JSON.parse(JSON.stringify(ot)))}),I.push(J)}else I.push(JSON.parse(JSON.stringify(H)))}),{...z,pageSettings:I}})),$u=(z,N)=>(z&&z.length>0?z.forEach((I,H)=>{if(N&&N.length>0)for(let J=0;J{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(Ta.Hh,z=>({...F1})),(0,vi.on)(Ta.x1,(z,{payload:N})=>({...z,information:N})),(0,vi.on)(Ta.Uo,(z,{payload:N})=>({...z,fees:N})),(0,vi.on)(Ta.Tp,(z,{payload:N})=>({...z,activeChannels:N})),(0,vi.on)(Ta.cU,(z,{payload:N})=>({...z,pendingChannels:N})),(0,vi.on)(Ta.I6,(z,{payload:N})=>({...z,inactiveChannels:N})),(0,vi.on)(Ta.ZE,(z,{payload:N})=>({...z,channelsStatus:N})),(0,vi.on)(Ta.Xx,(z,{payload:N})=>({...z,onchainBalance:N})),(0,vi.on)(Ta.N8,(z,{payload:N})=>({...z,lightningBalance:N})),(0,vi.on)(Ta.Qj,(z,{payload:N})=>({...z,peers:N})),(0,vi.on)(Ta.Zi,(z,{payload:N})=>{const I=[...z.peers],H=z.peers.findIndex(J=>J.nodeId===N.nodeId);return H>-1&&I.splice(H,1),{...z,peers:I}}),(0,vi.on)(Ta.cR,(z,{payload:N})=>{const I=[...z.activeChannels],H=z.activeChannels.findIndex(J=>J.channelId===N.channelId);return H>-1&&I.splice(H,1),{...z,activeChannels:I}}),(0,vi.on)(Ta.Uj,(z,{payload:N})=>{if(N&&N.sent){const I=[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels];N.sent?.map(H=>{const J=z.peers.find(ne=>ne.nodeId===H.recipientNodeId);return H.recipientNodeAlias=J?J.alias:H.recipientNodeId,H.parts&&H.parts?.map(ne=>{const ot=I.find(jt=>jt.channelId===ne.toChannelId);return ne.toChannelAlias=ot?ot.alias:ne.toChannelId,H.parts}),N.sent})}if(N&&N.relayed){const I=[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels];N.relayed.forEach(H=>{H=Wc(H,I)})}return{...z,payments:N}}),(0,vi.on)(Ta.As,(z,{payload:N})=>({...z,transactions:N})),(0,vi.on)(Ta.Jx,(z,{payload:N})=>{const I=z.invoices;return I?.unshift(N),{...z,invoices:I}}),(0,vi.on)(Ta.$6,(z,{payload:N})=>({...z,invoices:N})),(0,vi.on)(Ta.Dq,(z,{payload:N})=>{let I=z.invoices;return I=I?.map(H=>{if(H.paymentHash===N.paymentHash){if(N.hasOwnProperty("type")){const J=JSON.parse(JSON.stringify(H));return J.amountSettled=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].amount?(N.parts[0].amount||0)/1e3:0,J.receivedAt=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].timestamp?Math.round((N.parts[0].timestamp||0)/1e3):0,J.status="received",J}return N}return H}),{...z,invoices:I}}),(0,vi.on)(Ta.gZ,(z,{payload:N})=>{let I=z.pendingChannels;return I=I?.map(H=>(H.channelId===N.channelId&&H.nodeId===N.remoteNodeId&&(N.currentState=N.currentState?.replace(/_/g," "),H.state=N.currentState),H)),{...z,pendingChannels:I}}),(0,vi.on)(Ta.yn,(z,{payload:N})=>{const I=z.payments,H=Wc(N,[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels]);I.relayed?.unshift(H);const J=(N.amountIn||0)-(N.amountOut||0),ne={localBalance:z.lightningBalance.localBalance+J,remoteBalance:z.lightningBalance.remoteBalance-J},ot=z.channelsStatus;ot.active&&(ot.active.capacity=(z.channelsStatus?.active?.capacity||0)+J);const jt={daily_fee:(z.fees.daily_fee||0)+J,daily_txs:(z.fees.daily_txs||0)+1,weekly_fee:(z.fees.weekly_fee||0)+J,weekly_txs:(z.fees.weekly_txs||0)+1,monthly_fee:(z.fees.monthly_fee||0)+J,monthly_txs:(z.fees.monthly_txs||0)+1},$t=z.activeChannels;let Tn=!1,ii=!1;for(const Qn of $t){if(Qn.channelId===N.fromChannelId){Tn=!0;const Vi=(Qn.toLocal||0)+(Qn.toRemote||0);Qn.toLocal=(Qn.toLocal||0)+H.amountIn,Qn.toRemote=(Qn.toRemote||0)-H.amountIn,Qn.balancedness=0===Vi?1:+(1-Math.abs((Qn.toLocal-Qn.toRemote)/Vi)).toFixed(3)}if(Qn.channelId===N.toChannelId){ii=!0;const Vi=(Qn.toLocal||0)+(Qn.toRemote||0);Qn.toLocal=(Qn.toLocal||0)-H.amountOut,Qn.toRemote=(Qn.toRemote||0)+H.amountOut,Qn.balancedness=0===Vi?1:+(1-Math.abs((Qn.toLocal-Qn.toRemote)/Vi)).toFixed(3)}if(ii&&Tn)break}return{...z,payments:I,lightningBalance:ne,channelStatus:ot,fees:jt,activeChannels:$t}}),(0,vi.on)(Ta.NS,(z,{payload:N})=>{const I=[];return Mt.X8.forEach(H=>{const J=N&&N.length&&N.length>0?N.find(ne=>ne.pageId===H.pageId):null;if(J){const ne=JSON.parse(JSON.stringify(J.tables));J.tables=[],H.tables.forEach(ot=>{const jt=ne.find($t=>$t.tableId===ot.tableId)||null;J.tables.push(jt||JSON.parse(JSON.stringify(ot)))}),I.push(J)}else I.push(JSON.parse(JSON.stringify(H)))}),{...z,pageSettings:I}})),Wc=(z,N)=>{if("payment-relayed"===z.type)if(N&&N.length>0)for(let I=0;I0)for(let J=0;J{N[J].channelId?.toString()===ne.channelId&&(ne.channelAlias=N[J].alias?N[J].alias:ne.channelId,ne.shortChannelId=N[J].shortChannelId?N[J].shortChannelId:"")}),z.outgoing?.forEach(ne=>{N[J].channelId?.toString()===ne.channelId&&(ne.channelAlias=N[J].alias?N[J].alias:ne.channelId,ne.shortChannelId=N[J].shortChannelId?N[J].shortChannelId:"")}),J===N.length-1&&(z.incoming&&z.incoming.length&&z.incoming.length>0&&!z.incoming[0].channelAlias&&z.incoming?.forEach(ne=>{ne.channelAlias=ne.channelId?.substring(0,17)+"...",ne.shortChannelId=""}),z.outgoing&&z.outgoing.length&&z.outgoing.length>0&&!z.outgoing[0].channelAlias&&z.outgoing?.forEach(ne=>{ne.channelAlias=ne.channelId?.substring(0,17)+"...",ne.shortChannelId=""}));else z.incoming?.forEach(J=>{J.channelAlias=J.channelId?.substring(0,17)+"...",J.shortChannelId=""}),z.outgoing?.forEach(J=>{J.channelAlias=J.channelId?.substring(0,17)+"...",J.shortChannelId=""});const I=z.incoming?.reduce((J,ne)=>J+ne.amount,0)||0;z.amountIn=Math.round(I/1e3),z.fromChannelId=z.incoming&&z.incoming.length?z.incoming[0].channelId:"",z.fromChannelAlias=z.incoming&&z.incoming.length?z.incoming[0].channelAlias:"",z.fromShortChannelId=z.incoming&&z.incoming.length?z.incoming[0].shortChannelId:"";const H=z.outgoing?.reduce((J,ne)=>J+ne.amount,0)||0;z.amountOut=Math.round(H/1e3),z.toChannelId=z.outgoing&&z.outgoing.length?z.outgoing[0].channelId:"",z.toChannelAlias=z.outgoing&&z.outgoing.length?z.outgoing[0].channelAlias:"",z.toShortChannelId=z.outgoing&&z.outgoing.length?z.outgoing[0].shortChannelId:""}return z};let Vd=!1;(0,A.naY)()&&(Vd=!0);let E3=(()=>{var z;class N{static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275mod=e.$C({type:N,bootstrap:[Gu]}),this.\u0275inj=p.G2t({providers:[(0,ns.$R)((0,ns.ZZ)(),(0,ns.Sx)()),tc({idle:Mt.bz-10,timeout:10,ping:12e3}),{provide:ns.a7,useClass:Hu,multi:!0},zi.Q,H0.u,ju.I,u1.Q,_o.h,sd],imports:[Eo,L1.G,Y0,hr.RH,P.fM,vi.md.forRoot({root:Ku,lnd:M3,cln:Ud,ecl:Qf},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),Vo.Vm.forRoot([Ko.H,x3.L,Wu.i,Xf.B]),Vd?Lr.instrument({connectInZone:!0}):[]]}))}return z(),N})();s().bootstrapModule(E3).catch(z=>console.error(z))},60426(ke,q){"use strict";function l(ce){return Object.keys(ce).map(Re=>ce[Re])}var ce;Object.defineProperty(q,"__esModule",{value:!0}),(ce=q.HashAlgorithms||(q.HashAlgorithms={})).SHA1="sha1",ce.SHA256="sha256",ce.SHA512="sha512";const i=l(q.HashAlgorithms);!function(ce){ce.ASCII="ascii",ce.BASE64="base64",ce.HEX="hex",ce.LATIN1="latin1",ce.UTF8="utf8"}(q.KeyEncodings||(q.KeyEncodings={}));const g=l(q.KeyEncodings);!function(ce){ce.HOTP="hotp",ce.TOTP="totp"}(q.Strategy||(q.Strategy={}));const p=l(q.Strategy),D=()=>{throw new Error("Please provide an options.createDigest implementation.")};function o(ce){return/^(\d+)$/.test(ce)}function e(ce,Re,Me){return ce.length>=Re?ce:`${Array(Re+1).join(Me)}${ce}`.slice(-1*Re)}function A(ce){const Re=`otpauth://${ce.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Me=[];if(p.indexOf(ce.type)<0)throw new Error(`Expecting options.type to be one of ${p.join(", ")}. Received ${ce.type}.`);if("hotp"===ce.type){if(null==ce.counter||"number"!=typeof ce.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Me.push(`&counter=${ce.counter}`)}return"totp"===ce.type&&ce.step&&Me.push(`&period=${ce.step}`),ce.digits&&Me.push(`&digits=${ce.digits}`),ce.algorithm&&Me.push(`&algorithm=${ce.algorithm.toUpperCase()}`),ce.issuer&&Me.push(`&issuer=${encodeURIComponent(ce.issuer)}`),Re.replace("{labelPrefix}",encodeURIComponent(ce.issuer||ce.accountName)).replace("{accountName}",encodeURIComponent(ce.accountName)).replace("{secret}",ce.secret).replace("{query}",Me.join(""))}class h{constructor(Re={}){this._defaultOptions=Object.freeze({...Re}),this._options=Object.freeze({})}create(Re={}){return new h(Re)}clone(Re={}){const Me=this.create({...this._defaultOptions,...Re});return Me.options=this._options,Me}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(Re){this._options=Object.freeze({...this._options,...Re})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function d(ce){if("function"!=typeof ce.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof ce.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof ce.digits)throw new Error("Expecting options.digits to be a number.");if(!ce.algorithm||i.indexOf(ce.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${i.join(", ")}. Received ${ce.algorithm}.`);if(!ce.encoding||g.indexOf(ce.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${g.join(", ")}. Received ${ce.encoding}.`)}const w=(ce,Re,Me)=>Buffer.from(Re,Me).toString("hex");function f(){return{algorithm:q.HashAlgorithms.SHA1,createHmacKey:w,createDigest:D,digits:6,encoding:q.KeyEncodings.ASCII}}function F(ce){const Re={...f(),...ce};return d(Re),Object.freeze(Re)}function M(ce){return e(ce.toString(16),16,"0")}function K(ce,Re){const Me=Buffer.from(ce,"hex"),ve=15&Me[Me.length-1],Se=((127&Me[ve])<<24|(255&Me[ve+1])<<16|(255&Me[ve+2])<<8|255&Me[ve+3])%Math.pow(10,Re);return e(String(Se),Re,"0")}function Z(ce,Re,Me){const ve=Me.digest||function j(ce,Re,Me){const ve=M(Re),oe=Me.createHmacKey(Me.algorithm,ce,Me.encoding);return Me.createDigest(Me.algorithm,oe,ve)}(ce,Re,Me);return K(ve,Me.digits)}function ee(ce,Re,Me,ve){return!!o(ce)&&ce===Z(Re,Me,ve)}function V(ce,Re,Me,ve,oe){return A({algorithm:oe.algorithm,digits:oe.digits,type:q.Strategy.HOTP,accountName:ce,counter:ve,issuer:Re,secret:Me})}class Q extends h{create(Re={}){return new Q(Re)}allOptions(){return F(this.options)}generate(Re,Me){return Z(Re,Me,this.allOptions())}check(Re,Me,ve){return ee(Re,Me,ve,this.allOptions())}verify(Re){if("object"!=typeof Re)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Re.token,Re.secret,Re.counter)}keyuri(Re,Me,ve,oe){return V(Re,Me,ve,oe,this.allOptions())}}function $(ce){if("number"==typeof ce)return[Math.abs(ce),Math.abs(ce)];if(Array.isArray(ce)){const[Re,Me]=ce;if("number"==typeof Re&&"number"==typeof Me)return[Math.abs(Re),Math.abs(Me)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ie(ce){if(d(ce),$(ce.window),"number"!=typeof ce.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof ce.step)throw new Error("Expecting options.step to be a number.")}const _e=(ce,Re,Me)=>{const ve=ce.length,oe=Buffer.from(ce,Re).toString("hex");if(ve{switch(ce){case q.HashAlgorithms.SHA1:return _e(Re,Me,20);case q.HashAlgorithms.SHA256:return _e(Re,Me,32);case q.HashAlgorithms.SHA512:return _e(Re,Me,64);default:throw new Error(`Expecting algorithm to be one of ${i.join(", ")}. Received ${ce}.`)}};function se(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:D,createHmacKey:ye,digits:6,encoding:q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function pe(ce){const Re={...se(),...ce};return ie(Re),Object.freeze(Re)}function Ee(ce,Re){return Math.floor(ce/Re/1e3)}function L(ce,Re){return Z(ce,Ee(Re.epoch,Re.step),Re)}function t(ce,Re,Me,ve){const oe=[];if(0===ve)return oe;for(let Se=1;Se<=ve;Se++)oe.push(ce+Re*Se*Me);return oe}function s(ce,Re,Me){const ve=$(Me),oe=1e3*Re;return{current:ce,past:t(ce,-1,oe,ve[0]),future:t(ce,1,oe,ve[1])}}function m(ce,Re,Me){return!!o(ce)&&ce===L(Re,Me)}function u(ce,Re,Me,ve){let oe=null;return ce.some((Se,be)=>!!m(Re,Me,{...ve,epoch:Se})&&(oe=be+1,!0)),oe}function _(ce,Re,Me){if(m(ce,Re,Me))return 0;const ve=s(Me.epoch,Me.step,Me.window),oe=u(ve.past,ce,Re,Me);return null!==oe?-1*oe:u(ve.future,ce,Re,Me)}function T(ce,Re){return Math.floor(ce/1e3)%Re}function P(ce,Re){return Re-T(ce,Re)}function C(ce,Re,Me,ve){return A({algorithm:ve.algorithm,digits:ve.digits,step:ve.step,type:q.Strategy.TOTP,accountName:ce,issuer:Re,secret:Me})}class a extends Q{create(Re={}){return new a(Re)}allOptions(){return pe(this.options)}generate(Re){return L(Re,this.allOptions())}checkDelta(Re,Me){return _(Re,Me,this.allOptions())}check(Re,Me){return"number"==typeof this.checkDelta(Re,Me)}verify(Re){if("object"!=typeof Re)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Re.token,Re.secret)}timeRemaining(){const Re=this.allOptions();return P(Re.epoch,Re.step)}timeUsed(){const Re=this.allOptions();return T(Re.epoch,Re.step)}keyuri(Re,Me,ve){return C(Re,Me,ve,this.allOptions())}}function x(ce){if(ie(ce),"function"!=typeof ce.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(ce.keyEncoder&&"function"!=typeof ce.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function Y(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:D,createHmacKey:ye,digits:6,encoding:q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function R(ce){const Re={...Y(),...ce};return x(Re),Object.freeze(Re)}function U(ce,Re){return Re.keyEncoder(ce,Re.encoding)}function fe(ce,Re){return Re.keyDecoder(ce,Re.encoding)}function re(ce,Re){return U(Re.createRandomBytes(ce,Re.encoding),Re)}function he(ce,Re){return L(fe(ce,Re),Re)}function Oe(ce,Re,Me){return _(ce,fe(Re,Me),Me)}class ge extends a{create(Re={}){return new ge(Re)}allOptions(){return R(this.options)}generate(Re){return he(Re,this.allOptions())}checkDelta(Re,Me){return Oe(Re,Me,this.allOptions())}encode(Re){return U(Re,this.allOptions())}decode(Re){return fe(Re,this.allOptions())}generateSecret(Re=10){return re(Re,this.allOptions())}}q.Authenticator=ge,q.HASH_ALGORITHMS=i,q.HOTP=Q,q.KEY_ENCODINGS=g,q.OTP=h,q.STRATEGY=p,q.TOTP=a,q.authenticatorCheckWithWindow=Oe,q.authenticatorDecoder=fe,q.authenticatorDefaultOptions=Y,q.authenticatorEncoder=U,q.authenticatorGenerateSecret=re,q.authenticatorOptionValidator=x,q.authenticatorOptions=R,q.authenticatorToken=he,q.createDigestPlaceholder=D,q.hotpCheck=ee,q.hotpCounter=M,q.hotpCreateHmacKey=w,q.hotpDefaultOptions=f,q.hotpDigestToToken=K,q.hotpKeyuri=V,q.hotpOptions=F,q.hotpOptionsValidator=d,q.hotpToken=Z,q.isTokenValid=o,q.keyuri=A,q.objectValues=l,q.padStart=e,q.totpCheck=m,q.totpCheckByEpoch=u,q.totpCheckWithWindow=_,q.totpCounter=Ee,q.totpCreateHmacKey=ye,q.totpDefaultOptions=se,q.totpEpochAvailable=s,q.totpKeyuri=C,q.totpOptions=pe,q.totpOptionsValidator=ie,q.totpPadSecret=_e,q.totpTimeRemaining=P,q.totpTimeUsed=T,q.totpToken=L},97840(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var g=function i(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(l(91426));q.createDigest=(o,e,A)=>g.createHmac(o,Buffer.from(e,"hex")).update(Buffer.from(A,"hex")).digest().toString("hex"),q.createRandomBytes=(o,e)=>g.randomBytes(o).toString(e)},15526(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var g=function i(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(l(47851));q.keyDecoder=(o,e)=>g.decode(o).toString(e),q.keyEncoder=(o,e)=>g.encode(Buffer.from(o,e).toString("ascii")).toString().replace(/=/g,"")},94478(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var i=l(97840),g=l(15526),p=l(60426);const D=new p.HOTP({createDigest:i.createDigest}),o=new p.TOTP({createDigest:i.createDigest}),e=new p.Authenticator({createDigest:i.createDigest,createRandomBytes:i.createRandomBytes,keyDecoder:g.keyDecoder,keyEncoder:g.keyEncoder});q.authenticator=e,q.hotp=D,q.totp=o},49609(ke,q,l){var i=q;i.bignum=l(96867),i.define=l(16626).define,i.base=l(15066),i.constants=l(47740),i.decoders=l(91558),i.encoders=l(22714)},16626(ke,q,l){var i=l(49609),g=l(71993);function D(o,e){this.name=o,this.body=e,this.decoders={},this.encoders={}}q.define=function(e,A){return new D(e,A)},D.prototype._createNamed=function(e){var A;try{A=l(68326).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch{A=function(d){this._initNamed(d)}}return g(A,e),A.prototype._initNamed=function(d){e.call(this,d)},new A(this)},D.prototype._getDecoder=function(e){return this.decoders.hasOwnProperty(e=e||"der")||(this.decoders[e]=this._createNamed(i.decoders[e])),this.decoders[e]},D.prototype.decode=function(e,A,h){return this._getDecoder(A).decode(e,h)},D.prototype._getEncoder=function(e){return this.encoders.hasOwnProperty(e=e||"der")||(this.encoders[e]=this._createNamed(i.encoders[e])),this.encoders[e]},D.prototype.encode=function(e,A,h){return this._getEncoder(A).encode(e,h)}},97290(ke,q,l){var i=l(71993),g=l(15066).Reporter,p=l(83838).Buffer;function D(e,A){g.call(this,A),p.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,A){if(Array.isArray(e))this.length=0,this.value=e.map(function(h){return h instanceof o||(h=new o(h,A)),this.length+=h.length,h},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return A.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=p.byteLength(e);else{if(!p.isBuffer(e))return A.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(D,g),q.t=D,D.prototype.save=function(){return{offset:this.offset,reporter:g.prototype.save.call(this)}},D.prototype.restore=function(A){var h=new D(this.base);return h.offset=A.offset,h.length=this.offset,this.offset=A.offset,g.prototype.restore.call(this,A.reporter),h},D.prototype.isEmpty=function(){return this.offset===this.length},D.prototype.readUInt8=function(A){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(A||"DecoderBuffer overrun")},D.prototype.skip=function(A,h){if(!(this.offset+A<=this.length))return this.error(h||"DecoderBuffer overrun");var d=new D(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+A,this.offset+=A,d},D.prototype.raw=function(A){return this.base.slice(A?A.offset:this.offset,this.length)},q.d=o,o.prototype.join=function(A,h){return A||(A=new p(this.length)),h||(h=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(A,h),h+=d.length}):("number"==typeof this.value?A[h]=this.value:"string"==typeof this.value?A.write(this.value,h):p.isBuffer(this.value)&&this.value.copy(A,h),h+=this.length)),A}},15066(ke,q,l){var i=q;i.Reporter=l(85697).a,i.DecoderBuffer=l(97290).t,i.EncoderBuffer=l(97290).d,i.Node=l(34320)},34320(ke,q,l){var i=l(15066).Reporter,g=l(15066).EncoderBuffer,p=l(15066).DecoderBuffer,D=l(39210),o=["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"],e=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function h(w,f){var F={};this._baseState=F,F.enc=w,F.parent=f||null,F.children=null,F.tag=null,F.args=null,F.reverseArgs=null,F.choice=null,F.optional=!1,F.any=!1,F.obj=!1,F.use=null,F.useDecoder=null,F.key=null,F.default=null,F.explicit=null,F.implicit=null,F.contains=null,F.parent||(F.children=[],this._wrap())}ke.exports=h;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var f=this._baseState,F={};d.forEach(function(K){F[K]=f[K]});var M=new this.constructor(F.parent);return M._baseState=F,M},h.prototype._wrap=function(){var f=this._baseState;e.forEach(function(F){this[F]=function(){var K=new this.constructor(this);return f.children.push(K),K[F].apply(K,arguments)}},this)},h.prototype._init=function(f){var F=this._baseState;D(null===F.parent),f.call(this),F.children=F.children.filter(function(M){return M._baseState.parent===this},this),D.equal(F.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(f){var F=this._baseState,M=f.filter(function(K){return K instanceof this.constructor},this);f=f.filter(function(K){return!(K instanceof this.constructor)},this),0!==M.length&&(D(null===F.children),F.children=M,M.forEach(function(K){K._baseState.parent=this},this)),0!==f.length&&(D(null===F.args),F.args=f,F.reverseArgs=f.map(function(K){if("object"!=typeof K||K.constructor!==Object)return K;var j={};return Object.keys(K).forEach(function(Z){Z==(0|Z)&&(Z|=0),j[K[Z]]=Z}),j}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(w){h.prototype[w]=function(){throw new Error(w+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(w){h.prototype[w]=function(){var F=this._baseState,M=Array.prototype.slice.call(arguments);return D(null===F.tag),F.tag=w,this._useArgs(M),this}}),h.prototype.use=function(f){D(f);var F=this._baseState;return D(null===F.use),F.use=f,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(f){var F=this._baseState;return D(null===F.default),F.default=f,F.optional=!0,this},h.prototype.explicit=function(f){var F=this._baseState;return D(null===F.explicit&&null===F.implicit),F.explicit=f,this},h.prototype.implicit=function(f){var F=this._baseState;return D(null===F.explicit&&null===F.implicit),F.implicit=f,this},h.prototype.obj=function(){var f=this._baseState,F=Array.prototype.slice.call(arguments);return f.obj=!0,0!==F.length&&this._useArgs(F),this},h.prototype.key=function(f){var F=this._baseState;return D(null===F.key),F.key=f,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(f){var F=this._baseState;return D(null===F.choice),F.choice=f,this._useArgs(Object.keys(f).map(function(M){return f[M]})),this},h.prototype.contains=function(f){var F=this._baseState;return D(null===F.use),F.contains=f,this},h.prototype._decode=function(f,F){var M=this._baseState;if(null===M.parent)return f.wrapResult(M.children[0]._decode(f,F));var Q,K=M.default,j=!0,Z=null;if(null!==M.key&&(Z=f.enterKey(M.key)),M.optional){var ee=null;if(null!==M.explicit?ee=M.explicit:null!==M.implicit?ee=M.implicit:null!==M.tag&&(ee=M.tag),null!==ee||M.any){if(j=this._peekTag(f,ee,M.any),f.isError(j))return j}else{var V=f.save();try{null===M.choice?this._decodeGeneric(M.tag,f,F):this._decodeChoice(f,F),j=!0}catch{j=!1}f.restore(V)}}if(M.obj&&j&&(Q=f.enterObject()),j){if(null!==M.explicit){var $=this._decodeTag(f,M.explicit);if(f.isError($))return $;f=$}var ie=f.offset;if(null===M.use&&null===M.choice){M.any&&(V=f.save());var _e=this._decodeTag(f,null!==M.implicit?M.implicit:M.tag,M.any);if(f.isError(_e))return _e;M.any?K=f.raw(V):f=_e}if(F&&F.track&&null!==M.tag&&F.track(f.path(),ie,f.length,"tagged"),F&&F.track&&null!==M.tag&&F.track(f.path(),f.offset,f.length,"content"),M.any||(K=null===M.choice?this._decodeGeneric(M.tag,f,F):this._decodeChoice(f,F)),f.isError(K))return K;if(!M.any&&null===M.choice&&null!==M.children&&M.children.forEach(function(pe){pe._decode(f,F)}),M.contains&&("octstr"===M.tag||"bitstr"===M.tag)){var ye=new p(K);K=this._getUse(M.contains,f._reporterState.obj)._decode(ye,F)}}return M.obj&&j&&(K=f.leaveObject(Q)),null===M.key||null===K&&!0!==j?null!==Z&&f.exitKey(Z):f.leaveKey(Z,M.key,K),K},h.prototype._decodeGeneric=function(f,F,M){var K=this._baseState;return"seq"===f||"set"===f?null:"seqof"===f||"setof"===f?this._decodeList(F,f,K.args[0],M):/str$/.test(f)?this._decodeStr(F,f,M):"objid"===f&&K.args?this._decodeObjid(F,K.args[0],K.args[1],M):"objid"===f?this._decodeObjid(F,null,null,M):"gentime"===f||"utctime"===f?this._decodeTime(F,f,M):"null_"===f?this._decodeNull(F,M):"bool"===f?this._decodeBool(F,M):"objDesc"===f?this._decodeStr(F,f,M):"int"===f||"enum"===f?this._decodeInt(F,K.args&&K.args[0],M):null!==K.use?this._getUse(K.use,F._reporterState.obj)._decode(F,M):F.error("unknown tag: "+f)},h.prototype._getUse=function(f,F){var M=this._baseState;return M.useDecoder=this._use(f,F),D(null===M.useDecoder._baseState.parent),M.useDecoder=M.useDecoder._baseState.children[0],M.implicit!==M.useDecoder._baseState.implicit&&(M.useDecoder=M.useDecoder.clone(),M.useDecoder._baseState.implicit=M.implicit),M.useDecoder},h.prototype._decodeChoice=function(f,F){var M=this._baseState,K=null,j=!1;return Object.keys(M.choice).some(function(Z){var ee=f.save(),V=M.choice[Z];try{var Q=V._decode(f,F);if(f.isError(Q))return!1;K={type:Z,value:Q},j=!0}catch{return f.restore(ee),!1}return!0},this),j?K:f.error("Choice not matched")},h.prototype._createEncoderBuffer=function(f){return new g(f,this.reporter)},h.prototype._encode=function(f,F,M){var K=this._baseState;if(null===K.default||K.default!==f){var j=this._encodeValue(f,F,M);if(void 0!==j&&!this._skipDefault(j,F,M))return j}},h.prototype._encodeValue=function(f,F,M){var K=this._baseState;if(null===K.parent)return K.children[0]._encode(f,F||new i);var V=null;if(this.reporter=F,K.optional&&void 0===f){if(null===K.default)return;f=K.default}var j=null,Z=!1;if(K.any)V=this._createEncoderBuffer(f);else if(K.choice)V=this._encodeChoice(f,F);else if(K.contains)j=this._getUse(K.contains,M)._encode(f,F),Z=!0;else if(K.children)j=K.children.map(function(ie){if("null_"===ie._baseState.tag)return ie._encode(null,F,f);if(null===ie._baseState.key)return F.error("Child should have a key");var _e=F.enterKey(ie._baseState.key);if("object"!=typeof f)return F.error("Child expected, but input is not object");var ye=ie._encode(f[ie._baseState.key],F,f);return F.leaveKey(_e),ye},this).filter(function(ie){return ie}),j=this._createEncoderBuffer(j);else if("seqof"===K.tag||"setof"===K.tag){if(!K.args||1!==K.args.length)return F.error("Too many args for : "+K.tag);if(!Array.isArray(f))return F.error("seqof/setof, but data is not Array");var ee=this.clone();ee._baseState.implicit=null,j=this._createEncoderBuffer(f.map(function(ie){return this._getUse(this._baseState.args[0],f)._encode(ie,F)},ee))}else null!==K.use?V=this._getUse(K.use,M)._encode(f,F):(j=this._encodePrimitive(K.tag,f),Z=!0);if(!K.any&&null===K.choice){var Q=null!==K.implicit?K.implicit:K.tag,$=null===K.implicit?"universal":"context";null===Q?null===K.use&&F.error("Tag could be omitted only for .use()"):null===K.use&&(V=this._encodeComposite(Q,Z,$,j))}return null!==K.explicit&&(V=this._encodeComposite(K.explicit,!1,"context",V)),V},h.prototype._encodeChoice=function(f,F){var M=this._baseState,K=M.choice[f.type];return K||D(!1,f.type+" not found in "+JSON.stringify(Object.keys(M.choice))),K._encode(f.value,F)},h.prototype._encodePrimitive=function(f,F){var M=this._baseState;if(/str$/.test(f))return this._encodeStr(F,f);if("objid"===f&&M.args)return this._encodeObjid(F,M.reverseArgs[0],M.args[1]);if("objid"===f)return this._encodeObjid(F,null,null);if("gentime"===f||"utctime"===f)return this._encodeTime(F,f);if("null_"===f)return this._encodeNull();if("int"===f||"enum"===f)return this._encodeInt(F,M.args&&M.reverseArgs[0]);if("bool"===f)return this._encodeBool(F);if("objDesc"===f)return this._encodeStr(F,f);throw new Error("Unsupported tag: "+f)},h.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},h.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(f)}},85697(ke,q,l){var i=l(71993);function g(D){this._reporterState={obj:null,path:[],options:D||{},errors:[]}}function p(D,o){this.path=D,this.rethrow(o)}q.a=g,g.prototype.isError=function(o){return o instanceof p},g.prototype.save=function(){var o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},g.prototype.restore=function(o){var e=this._reporterState;e.obj=o.obj,e.path=e.path.slice(0,o.pathLen)},g.prototype.enterKey=function(o){return this._reporterState.path.push(o)},g.prototype.exitKey=function(o){var e=this._reporterState;e.path=e.path.slice(0,o-1)},g.prototype.leaveKey=function(o,e,A){var h=this._reporterState;this.exitKey(o),null!==h.obj&&(h.obj[e]=A)},g.prototype.path=function(){return this._reporterState.path.join("/")},g.prototype.enterObject=function(){var o=this._reporterState,e=o.obj;return o.obj={},e},g.prototype.leaveObject=function(o){var e=this._reporterState,A=e.obj;return e.obj=o,A},g.prototype.error=function(o){var e,A=this._reporterState,h=o instanceof p;if(e=h?o:new p(A.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),o.message||o,o.stack),!A.options.partial)throw e;return h||A.errors.push(e),e},g.prototype.wrapResult=function(o){var e=this._reporterState;return e.options.partial?{result:this.isError(o)?null:o,errors:e.errors}:o},i(p,Error),p.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,p),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},36283(ke,q,l){var i=l(47740);q.tagClass={0:"universal",1:"application",2:"context",3:"private"},q.tagClassByName=i._reverse(q.tagClass),q.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"},q.tagByName=i._reverse(q.tag)},47740(ke,q,l){var i=q;i._reverse=function(p){var D={};return Object.keys(p).forEach(function(o){(0|o)==o&&(o|=0),D[p[o]]=o}),D},i.der=l(36283)},55941(ke,q,l){var i=l(71993),g=l(49609),p=g.base,D=g.bignum,o=g.constants.der;function e(w){this.enc="der",this.name=w.name,this.entity=w,this.tree=new A,this.tree._init(w.body)}function A(w){p.Node.call(this,"der",w)}function h(w,f){var F=w.readUInt8(f);if(w.isError(F))return F;var M=o.tagClass[F>>6],K=!(32&F);if(31&~F)F&=31;else{var j=F;for(F=0;!(128&~j);){if(j=w.readUInt8(f),w.isError(j))return j;F<<=7,F|=127&j}}return{cls:M,primitive:K,tag:F,tagStr:o.tag[F]}}function d(w,f,F){var M=w.readUInt8(F);if(w.isError(M))return M;if(!f&&128===M)return null;if(!(128&M))return M;var K=127&M;if(K>4)return w.error("length octect is too long");M=0;for(var j=0;j=31?M.error("Multi-octet tag encoding unsupported"):(f||(K|=32),K|=o.tagClassByName[F||"universal"]<<6)}(f,F,M,this.reporter);if(K.length<128)return(V=new g(2))[0]=j,V[1]=K.length,this._createEncoderBuffer([V,K]);for(var Z=1,ee=K.length;ee>=256;ee>>=8)Z++;(V=new g(2+Z))[0]=j,V[1]=128|Z,ee=1+Z;for(var Q=K.length;Q>0;ee--,Q>>=8)V[ee]=255&Q;return this._createEncoderBuffer([V,K])},A.prototype._encodeStr=function(f,F){if("bitstr"===F)return this._createEncoderBuffer([0|f.unused,f.data]);if("bmpstr"===F){for(var M=new g(2*f.length),K=0;K=40)return this.reporter.error("Second objid identifier OOB");f.splice(0,2,40*f[0]+f[1])}var j=0;for(K=0;K=128;Z>>=7)j++}var ee=new g(j),V=ee.length-1;for(K=f.length-1;K>=0;K--)for(ee[V--]=127&(Z=f[K]);(Z>>=7)>0;)ee[V--]=128|127&Z;return this._createEncoderBuffer(ee)},A.prototype._encodeTime=function(f,F){var M,K=new Date(f);return"gentime"===F?M=[h(K.getFullYear()),h(K.getUTCMonth()+1),h(K.getUTCDate()),h(K.getUTCHours()),h(K.getUTCMinutes()),h(K.getUTCSeconds()),"Z"].join(""):"utctime"===F?M=[h(K.getFullYear()%100),h(K.getUTCMonth()+1),h(K.getUTCDate()),h(K.getUTCHours()),h(K.getUTCMinutes()),h(K.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+F+" time is not supported yet"),this._encodeStr(M,"octstr")},A.prototype._encodeNull=function(){return this._createEncoderBuffer("")},A.prototype._encodeInt=function(f,F){if("string"==typeof f){if(!F)return this.reporter.error("String int or enum given, but no values map");if(!F.hasOwnProperty(f))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(f));f=F[f]}if("number"!=typeof f&&!g.isBuffer(f)){var M=f.toArray();!f.sign&&128&M[0]&&M.unshift(0),f=new g(M)}if(g.isBuffer(f)){var K=f.length;0===f.length&&K++;var Z=new g(K);return f.copy(Z),0===f.length&&(Z[0]=0),this._createEncoderBuffer(Z)}if(f<128)return this._createEncoderBuffer(f);if(f<256)return this._createEncoderBuffer([0,f]);K=1;for(var j=f;j>=256;j>>=8)K++;for(j=(Z=new Array(K)).length-1;j>=0;j--)Z[j]=255&f,f>>=8;return 128&Z[0]&&Z.unshift(0),this._createEncoderBuffer(new g(Z))},A.prototype._encodeBool=function(f){return this._createEncoderBuffer(f?255:0)},A.prototype._use=function(f,F){return"function"==typeof f&&(f=f(F)),f._getEncoder("der").tree},A.prototype._skipDefault=function(f,F,M){var j,K=this._baseState;if(null===K.default)return!1;var Z=f.join();if(void 0===K.defaultBuffer&&(K.defaultBuffer=this._encodeValue(K.default,F,M).join()),Z.length!==K.defaultBuffer.length)return!1;for(j=0;j=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},13981(ke,q){"use strict";q.byteLength=function A(M){var K=e(M),Z=K[1];return 3*(K[0]+Z)/4-Z},q.toByteArray=function d(M){var K,ie,j=e(M),Z=j[0],ee=j[1],V=new g(function h(M,K,j){return 3*(K+j)/4-j}(0,Z,ee)),Q=0,$=ee>0?Z-4:Z;for(ie=0;ie<$;ie+=4)K=i[M.charCodeAt(ie)]<<18|i[M.charCodeAt(ie+1)]<<12|i[M.charCodeAt(ie+2)]<<6|i[M.charCodeAt(ie+3)],V[Q++]=K>>16&255,V[Q++]=K>>8&255,V[Q++]=255&K;return 2===ee&&(K=i[M.charCodeAt(ie)]<<2|i[M.charCodeAt(ie+1)]>>4,V[Q++]=255&K),1===ee&&(K=i[M.charCodeAt(ie)]<<10|i[M.charCodeAt(ie+1)]<<4|i[M.charCodeAt(ie+2)]>>2,V[Q++]=K>>8&255,V[Q++]=255&K),V},q.fromByteArray=function F(M){for(var K,j=M.length,Z=j%3,ee=[],V=16383,Q=0,$=j-Z;Q<$;Q+=V)ee.push(f(M,Q,Q+V>$?$:Q+V));return 1===Z?ee.push(l[(K=M[j-1])>>2]+l[K<<4&63]+"=="):2===Z&&ee.push(l[(K=(M[j-2]<<8)+M[j-1])>>10]+l[K>>4&63]+l[K<<2&63]+"="),ee.join("")};for(var l=[],i=[],g=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=0;D<64;++D)l[D]=p[D],i[p.charCodeAt(D)]=D;function e(M){var K=M.length;if(K%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var j=M.indexOf("=");return-1===j&&(j=K),[j,j===K?0:4-j%4]}function w(M){return l[M>>18&63]+l[M>>12&63]+l[M>>6&63]+l[63&M]}function f(M,K,j){for(var ee=[],V=K;V=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void p(!1,"Invalid character in "+m)}function h(m,u,_){var T=A(m,_);return _-1>=u&&(T|=A(m,_-1)<<4),T}function d(m,u,_,T){for(var P=0,C=0,a=Math.min(m.length,_),x=u;x=49?Y-49+10:Y>=17?Y-17+10:Y,p(Y>=0&&C0?u:_},o.min=function(u,_){return u.cmp(_)<0?u:_},o.prototype._init=function(u,_,T){if("number"==typeof u)return this._initNumber(u,_,T);if("object"==typeof u)return this._initArray(u,_,T);"hex"===_&&(_=16),p(_===(0|_)&&_>=2&&_<=36);var P=0;"-"===(u=u.toString().replace(/\s+/g,""))[0]&&(P++,this.negative=1),P=0;P-=3)this.words[C]|=(a=u[P]|u[P-1]<<8|u[P-2]<<16)<>>26-x&67108863,(x+=24)>=26&&(x-=26,C++);else if("le"===T)for(P=0,C=0;P>>26-x&67108863,(x+=24)>=26&&(x-=26,C++);return this._strip()},o.prototype._parseHex=function(u,_,T){this.length=Math.ceil((u.length-_)/6),this.words=new Array(this.length);for(var P=0;P=_;P-=2)x=h(u,_,P)<=18?(C-=18,this.words[a+=1]|=x>>>26):C+=8;else for(P=(u.length-_)%2==0?_+1:_;P=18?(C-=18,this.words[a+=1]|=x>>>26):C+=8;this._strip()},o.prototype._parseBase=function(u,_,T){this.words=[0],this.length=1;for(var P=0,C=1;C<=67108863;C*=_)P++;P--,C=C/_|0;for(var a=u.length-T,x=a%P,Y=Math.min(a,a-x)+T,R=0,U=T;U1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch{o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?""}var F=["","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"],M=[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 ee(m,u,_){_.negative=u.negative^m.negative;var T=m.length+u.length|0;_.length=T,T=T-1|0;var P=0|m.words[0],C=0|u.words[0],a=P*C,Y=a/67108864|0;_.words[0]=67108863&a;for(var R=1;R>>26,fe=67108863&Y,re=Math.min(R,u.length-1),he=Math.max(0,R-m.length+1);he<=re;he++)U+=(a=(P=0|m.words[R-he|0])*(C=0|u.words[he])+fe)/67108864|0,fe=67108863&a;_.words[R]=0|fe,Y=0|U}return 0!==Y?_.words[R]=0|Y:_.length--,_._strip()}o.prototype.toString=function(u,_){var T;if(_=0|_||1,16===(u=u||10)||"hex"===u){T="";for(var P=0,C=0,a=0;a>>24-P&16777215,(P+=2)>=26&&(P-=26,a--),T=0!==C||a!==this.length-1?F[6-Y.length]+Y+T:Y+T}for(0!==C&&(T=C.toString(16)+T);T.length%_!==0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}if(u===(0|u)&&u>=2&&u<=36){var R=M[u],U=K[u];T="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var re=fe.modrn(U).toString(u);T=(fe=fe.idivn(U)).isZero()?re+T:F[R-re.length]+re+T}for(this.isZero()&&(T="0"+T);T.length%_!==0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var u=this.words[0];return 2===this.length?u+=67108864*this.words[1]:3===this.length&&1===this.words[2]?u+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-u:u},o.prototype.toJSON=function(){return this.toString(16,2)},e&&(o.prototype.toBuffer=function(u,_){return this.toArrayLike(e,u,_)}),o.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},o.prototype.toArrayLike=function(u,_,T){this._strip();var P=this.byteLength(),C=T||Math.max(1,P);p(P<=C,"byte array longer than desired length"),p(C>0,"Requested array length <= 0");var a=function(u,_){return u.allocUnsafe?u.allocUnsafe(_):new u(_)}(u,C);return this["_toArrayLike"+("le"===_?"LE":"BE")](a,P),a},o.prototype._toArrayLikeLE=function(u,_){for(var T=0,P=0,C=0,a=0;C>8&255),T>16&255),6===a?(T>24&255),P=0,a=0):(P=x>>>24,a+=2)}if(T=0&&(u[T--]=x>>8&255),T>=0&&(u[T--]=x>>16&255),6===a?(T>=0&&(u[T--]=x>>24&255),P=0,a=0):(P=x>>>24,a+=2)}if(T>=0)for(u[T--]=P;T>=0;)u[T--]=0},o.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,T=0;return _>=4096&&(T+=13,_>>>=13),_>=64&&(T+=7,_>>>=7),_>=8&&(T+=4,_>>>=4),_>=2&&(T+=2,_>>>=2),T+_},o.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,T=0;return!(8191&_)&&(T+=13,_>>>=13),!(127&_)&&(T+=7,_>>>=7),!(15&_)&&(T+=4,_>>>=4),!(3&_)&&(T+=2,_>>>=2),!(1&_)&&T++,T},o.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,_=0;_u.length?this.clone().ior(u):u.clone().ior(this)},o.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},o.prototype.iuand=function(u){var _;_=this.length>u.length?u:this;for(var T=0;T<_.length;T++)this.words[T]=this.words[T]&u.words[T];return this.length=_.length,this._strip()},o.prototype.iand=function(u){return p(0===(this.negative|u.negative)),this.iuand(u)},o.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},o.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},o.prototype.iuxor=function(u){var _,T;this.length>u.length?(_=this,T=u):(_=u,T=this);for(var P=0;Pu.length?this.clone().ixor(u):u.clone().ixor(this)},o.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},o.prototype.inotn=function(u){p("number"==typeof u&&u>=0);var _=0|Math.ceil(u/26),T=u%26;this._expand(_),T>0&&_--;for(var P=0;P<_;P++)this.words[P]=67108863&~this.words[P];for(T>0&&(this.words[P]=~this.words[P]&67108863>>26-T,P++);P=0);var T=u/26|0,P=u%26;return this._expand(T+1),this.words[T]=_?this.words[T]|1<u.length?(T=this,P=u):(T=u,P=this);for(var C=0,a=0;a>>26;for(;0!==C&&a>>26;if(this.length=T.length,0!==C)this.words[this.length]=C,this.length++;else if(T!==this)for(;au.length?this.clone().iadd(u):u.clone().iadd(this)},o.prototype.isub=function(u){if(0!==u.negative){u.negative=0;var _=this.iadd(u);return u.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var P,C,T=this.cmp(u);if(0===T)return this.negative=0,this.length=1,this.words[0]=0,this;T>0?(P=this,C=u):(P=u,C=this);for(var a=0,x=0;x>26,this.words[x]=67108863&_;for(;0!==a&&x>26,this.words[x]=67108863&_;if(0===a&&x>>13,Oe=0|P[1],ge=8191&Oe,ce=Oe>>>13,Re=0|P[2],Me=8191&Re,ve=Re>>>13,oe=0|P[3],Se=8191&oe,be=oe>>>13,nt=0|P[4],$e=8191&nt,dt=nt>>>13,yt=0|P[5],Et=8191&yt,rt=yt>>>13,Mn=0|P[6],qt=8191&Mn,S=Mn>>>13,Xt=0|P[7],de=8191&Xt,ae=Xt>>>13,me=0|P[8],Le=8191&me,et=me>>>13,tn=0|P[9],Vt=8191&tn,hn=tn>>>13,En=0|C[0],_n=8191&En,tt=En>>>13,Fe=0|C[1],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|C[2],Ie=8191&Qe,le=Qe>>>13,Ne=0|C[3],ze=8191&Ne,Je=Ne>>>13,gt=0|C[4],zt=8191>,Ye=gt>>>13,st=0|C[5],it=8191&st,He=st>>>13,Wt=0|C[6],we=8191&Wt,We=Wt>>>13,Lt=0|C[7],St=8191&Lt,At=Lt>>>13,fn=0|C[8],mt=8191&fn,It=fn>>>13,wn=0|C[9],In=8191&wn,ei=wn>>>13;T.negative=u.negative^_.negative,T.length=19;var Li=(x+(Y=Math.imul(re,_n))|0)+((8191&(R=(R=Math.imul(re,tt))+Math.imul(he,_n)|0))<<13)|0;x=((U=Math.imul(he,tt))+(R>>>13)|0)+(Li>>>26)|0,Li&=67108863,Y=Math.imul(ge,_n),R=(R=Math.imul(ge,tt))+Math.imul(ce,_n)|0,U=Math.imul(ce,tt);var kt=(x+(Y=Y+Math.imul(re,Pe)|0)|0)+((8191&(R=(R=R+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0))<<13)|0;x=((U=U+Math.imul(he,Ue)|0)+(R>>>13)|0)+(kt>>>26)|0,kt&=67108863,Y=Math.imul(Me,_n),R=(R=Math.imul(Me,tt))+Math.imul(ve,_n)|0,U=Math.imul(ve,tt),Y=Y+Math.imul(ge,Pe)|0,R=(R=R+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,U=U+Math.imul(ce,Ue)|0;var Ot=(x+(Y=Y+Math.imul(re,Ie)|0)|0)+((8191&(R=(R=R+Math.imul(re,le)|0)+Math.imul(he,Ie)|0))<<13)|0;x=((U=U+Math.imul(he,le)|0)+(R>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,Y=Math.imul(Se,_n),R=(R=Math.imul(Se,tt))+Math.imul(be,_n)|0,U=Math.imul(be,tt),Y=Y+Math.imul(Me,Pe)|0,R=(R=R+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,U=U+Math.imul(ve,Ue)|0,Y=Y+Math.imul(ge,Ie)|0,R=(R=R+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,U=U+Math.imul(ce,le)|0;var Ze=(x+(Y=Y+Math.imul(re,ze)|0)|0)+((8191&(R=(R=R+Math.imul(re,Je)|0)+Math.imul(he,ze)|0))<<13)|0;x=((U=U+Math.imul(he,Je)|0)+(R>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,Y=Math.imul($e,_n),R=(R=Math.imul($e,tt))+Math.imul(dt,_n)|0,U=Math.imul(dt,tt),Y=Y+Math.imul(Se,Pe)|0,R=(R=R+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,U=U+Math.imul(be,Ue)|0,Y=Y+Math.imul(Me,Ie)|0,R=(R=R+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,U=U+Math.imul(ve,le)|0,Y=Y+Math.imul(ge,ze)|0,R=(R=R+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,U=U+Math.imul(ce,Je)|0;var Ge=(x+(Y=Y+Math.imul(re,zt)|0)|0)+((8191&(R=(R=R+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0))<<13)|0;x=((U=U+Math.imul(he,Ye)|0)+(R>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,Y=Math.imul(Et,_n),R=(R=Math.imul(Et,tt))+Math.imul(rt,_n)|0,U=Math.imul(rt,tt),Y=Y+Math.imul($e,Pe)|0,R=(R=R+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,U=U+Math.imul(dt,Ue)|0,Y=Y+Math.imul(Se,Ie)|0,R=(R=R+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,U=U+Math.imul(be,le)|0,Y=Y+Math.imul(Me,ze)|0,R=(R=R+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,U=U+Math.imul(ve,Je)|0,Y=Y+Math.imul(ge,zt)|0,R=(R=R+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,U=U+Math.imul(ce,Ye)|0;var Pt=(x+(Y=Y+Math.imul(re,it)|0)|0)+((8191&(R=(R=R+Math.imul(re,He)|0)+Math.imul(he,it)|0))<<13)|0;x=((U=U+Math.imul(he,He)|0)+(R>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,Y=Math.imul(qt,_n),R=(R=Math.imul(qt,tt))+Math.imul(S,_n)|0,U=Math.imul(S,tt),Y=Y+Math.imul(Et,Pe)|0,R=(R=R+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,U=U+Math.imul(rt,Ue)|0,Y=Y+Math.imul($e,Ie)|0,R=(R=R+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,U=U+Math.imul(dt,le)|0,Y=Y+Math.imul(Se,ze)|0,R=(R=R+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,U=U+Math.imul(be,Je)|0,Y=Y+Math.imul(Me,zt)|0,R=(R=R+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,U=U+Math.imul(ve,Ye)|0,Y=Y+Math.imul(ge,it)|0,R=(R=R+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,U=U+Math.imul(ce,He)|0;var Yt=(x+(Y=Y+Math.imul(re,we)|0)|0)+((8191&(R=(R=R+Math.imul(re,We)|0)+Math.imul(he,we)|0))<<13)|0;x=((U=U+Math.imul(he,We)|0)+(R>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,Y=Math.imul(de,_n),R=(R=Math.imul(de,tt))+Math.imul(ae,_n)|0,U=Math.imul(ae,tt),Y=Y+Math.imul(qt,Pe)|0,R=(R=R+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,U=U+Math.imul(S,Ue)|0,Y=Y+Math.imul(Et,Ie)|0,R=(R=R+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,U=U+Math.imul(rt,le)|0,Y=Y+Math.imul($e,ze)|0,R=(R=R+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,U=U+Math.imul(dt,Je)|0,Y=Y+Math.imul(Se,zt)|0,R=(R=R+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,U=U+Math.imul(be,Ye)|0,Y=Y+Math.imul(Me,it)|0,R=(R=R+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,U=U+Math.imul(ve,He)|0,Y=Y+Math.imul(ge,we)|0,R=(R=R+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,U=U+Math.imul(ce,We)|0;var bn=(x+(Y=Y+Math.imul(re,St)|0)|0)+((8191&(R=(R=R+Math.imul(re,At)|0)+Math.imul(he,St)|0))<<13)|0;x=((U=U+Math.imul(he,At)|0)+(R>>>13)|0)+(bn>>>26)|0,bn&=67108863,Y=Math.imul(Le,_n),R=(R=Math.imul(Le,tt))+Math.imul(et,_n)|0,U=Math.imul(et,tt),Y=Y+Math.imul(de,Pe)|0,R=(R=R+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,U=U+Math.imul(ae,Ue)|0,Y=Y+Math.imul(qt,Ie)|0,R=(R=R+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,U=U+Math.imul(S,le)|0,Y=Y+Math.imul(Et,ze)|0,R=(R=R+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,U=U+Math.imul(rt,Je)|0,Y=Y+Math.imul($e,zt)|0,R=(R=R+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,U=U+Math.imul(dt,Ye)|0,Y=Y+Math.imul(Se,it)|0,R=(R=R+Math.imul(Se,He)|0)+Math.imul(be,it)|0,U=U+Math.imul(be,He)|0,Y=Y+Math.imul(Me,we)|0,R=(R=R+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,U=U+Math.imul(ve,We)|0,Y=Y+Math.imul(ge,St)|0,R=(R=R+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,U=U+Math.imul(ce,At)|0;var $n=(x+(Y=Y+Math.imul(re,mt)|0)|0)+((8191&(R=(R=R+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;x=((U=U+Math.imul(he,It)|0)+(R>>>13)|0)+($n>>>26)|0,$n&=67108863,Y=Math.imul(Vt,_n),R=(R=Math.imul(Vt,tt))+Math.imul(hn,_n)|0,U=Math.imul(hn,tt),Y=Y+Math.imul(Le,Pe)|0,R=(R=R+Math.imul(Le,Ue)|0)+Math.imul(et,Pe)|0,U=U+Math.imul(et,Ue)|0,Y=Y+Math.imul(de,Ie)|0,R=(R=R+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,U=U+Math.imul(ae,le)|0,Y=Y+Math.imul(qt,ze)|0,R=(R=R+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,U=U+Math.imul(S,Je)|0,Y=Y+Math.imul(Et,zt)|0,R=(R=R+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,U=U+Math.imul(rt,Ye)|0,Y=Y+Math.imul($e,it)|0,R=(R=R+Math.imul($e,He)|0)+Math.imul(dt,it)|0,U=U+Math.imul(dt,He)|0,Y=Y+Math.imul(Se,we)|0,R=(R=R+Math.imul(Se,We)|0)+Math.imul(be,we)|0,U=U+Math.imul(be,We)|0,Y=Y+Math.imul(Me,St)|0,R=(R=R+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,U=U+Math.imul(ve,At)|0,Y=Y+Math.imul(ge,mt)|0,R=(R=R+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0,U=U+Math.imul(ce,It)|0;var oi=(x+(Y=Y+Math.imul(re,In)|0)|0)+((8191&(R=(R=R+Math.imul(re,ei)|0)+Math.imul(he,In)|0))<<13)|0;x=((U=U+Math.imul(he,ei)|0)+(R>>>13)|0)+(oi>>>26)|0,oi&=67108863,Y=Math.imul(Vt,Pe),R=(R=Math.imul(Vt,Ue))+Math.imul(hn,Pe)|0,U=Math.imul(hn,Ue),Y=Y+Math.imul(Le,Ie)|0,R=(R=R+Math.imul(Le,le)|0)+Math.imul(et,Ie)|0,U=U+Math.imul(et,le)|0,Y=Y+Math.imul(de,ze)|0,R=(R=R+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,U=U+Math.imul(ae,Je)|0,Y=Y+Math.imul(qt,zt)|0,R=(R=R+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,U=U+Math.imul(S,Ye)|0,Y=Y+Math.imul(Et,it)|0,R=(R=R+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,U=U+Math.imul(rt,He)|0,Y=Y+Math.imul($e,we)|0,R=(R=R+Math.imul($e,We)|0)+Math.imul(dt,we)|0,U=U+Math.imul(dt,We)|0,Y=Y+Math.imul(Se,St)|0,R=(R=R+Math.imul(Se,At)|0)+Math.imul(be,St)|0,U=U+Math.imul(be,At)|0,Y=Y+Math.imul(Me,mt)|0,R=(R=R+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0,U=U+Math.imul(ve,It)|0;var Ii=(x+(Y=Y+Math.imul(ge,In)|0)|0)+((8191&(R=(R=R+Math.imul(ge,ei)|0)+Math.imul(ce,In)|0))<<13)|0;x=((U=U+Math.imul(ce,ei)|0)+(R>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,Y=Math.imul(Vt,Ie),R=(R=Math.imul(Vt,le))+Math.imul(hn,Ie)|0,U=Math.imul(hn,le),Y=Y+Math.imul(Le,ze)|0,R=(R=R+Math.imul(Le,Je)|0)+Math.imul(et,ze)|0,U=U+Math.imul(et,Je)|0,Y=Y+Math.imul(de,zt)|0,R=(R=R+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,U=U+Math.imul(ae,Ye)|0,Y=Y+Math.imul(qt,it)|0,R=(R=R+Math.imul(qt,He)|0)+Math.imul(S,it)|0,U=U+Math.imul(S,He)|0,Y=Y+Math.imul(Et,we)|0,R=(R=R+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,U=U+Math.imul(rt,We)|0,Y=Y+Math.imul($e,St)|0,R=(R=R+Math.imul($e,At)|0)+Math.imul(dt,St)|0,U=U+Math.imul(dt,At)|0,Y=Y+Math.imul(Se,mt)|0,R=(R=R+Math.imul(Se,It)|0)+Math.imul(be,mt)|0,U=U+Math.imul(be,It)|0;var Ei=(x+(Y=Y+Math.imul(Me,In)|0)|0)+((8191&(R=(R=R+Math.imul(Me,ei)|0)+Math.imul(ve,In)|0))<<13)|0;x=((U=U+Math.imul(ve,ei)|0)+(R>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,Y=Math.imul(Vt,ze),R=(R=Math.imul(Vt,Je))+Math.imul(hn,ze)|0,U=Math.imul(hn,Je),Y=Y+Math.imul(Le,zt)|0,R=(R=R+Math.imul(Le,Ye)|0)+Math.imul(et,zt)|0,U=U+Math.imul(et,Ye)|0,Y=Y+Math.imul(de,it)|0,R=(R=R+Math.imul(de,He)|0)+Math.imul(ae,it)|0,U=U+Math.imul(ae,He)|0,Y=Y+Math.imul(qt,we)|0,R=(R=R+Math.imul(qt,We)|0)+Math.imul(S,we)|0,U=U+Math.imul(S,We)|0,Y=Y+Math.imul(Et,St)|0,R=(R=R+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,U=U+Math.imul(rt,At)|0,Y=Y+Math.imul($e,mt)|0,R=(R=R+Math.imul($e,It)|0)+Math.imul(dt,mt)|0,U=U+Math.imul(dt,It)|0;var Nt=(x+(Y=Y+Math.imul(Se,In)|0)|0)+((8191&(R=(R=R+Math.imul(Se,ei)|0)+Math.imul(be,In)|0))<<13)|0;x=((U=U+Math.imul(be,ei)|0)+(R>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,Y=Math.imul(Vt,zt),R=(R=Math.imul(Vt,Ye))+Math.imul(hn,zt)|0,U=Math.imul(hn,Ye),Y=Y+Math.imul(Le,it)|0,R=(R=R+Math.imul(Le,He)|0)+Math.imul(et,it)|0,U=U+Math.imul(et,He)|0,Y=Y+Math.imul(de,we)|0,R=(R=R+Math.imul(de,We)|0)+Math.imul(ae,we)|0,U=U+Math.imul(ae,We)|0,Y=Y+Math.imul(qt,St)|0,R=(R=R+Math.imul(qt,At)|0)+Math.imul(S,St)|0,U=U+Math.imul(S,At)|0,Y=Y+Math.imul(Et,mt)|0,R=(R=R+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0,U=U+Math.imul(rt,It)|0;var nn=(x+(Y=Y+Math.imul($e,In)|0)|0)+((8191&(R=(R=R+Math.imul($e,ei)|0)+Math.imul(dt,In)|0))<<13)|0;x=((U=U+Math.imul(dt,ei)|0)+(R>>>13)|0)+(nn>>>26)|0,nn&=67108863,Y=Math.imul(Vt,it),R=(R=Math.imul(Vt,He))+Math.imul(hn,it)|0,U=Math.imul(hn,He),Y=Y+Math.imul(Le,we)|0,R=(R=R+Math.imul(Le,We)|0)+Math.imul(et,we)|0,U=U+Math.imul(et,We)|0,Y=Y+Math.imul(de,St)|0,R=(R=R+Math.imul(de,At)|0)+Math.imul(ae,St)|0,U=U+Math.imul(ae,At)|0,Y=Y+Math.imul(qt,mt)|0,R=(R=R+Math.imul(qt,It)|0)+Math.imul(S,mt)|0,U=U+Math.imul(S,It)|0;var en=(x+(Y=Y+Math.imul(Et,In)|0)|0)+((8191&(R=(R=R+Math.imul(Et,ei)|0)+Math.imul(rt,In)|0))<<13)|0;x=((U=U+Math.imul(rt,ei)|0)+(R>>>13)|0)+(en>>>26)|0,en&=67108863,Y=Math.imul(Vt,we),R=(R=Math.imul(Vt,We))+Math.imul(hn,we)|0,U=Math.imul(hn,We),Y=Y+Math.imul(Le,St)|0,R=(R=R+Math.imul(Le,At)|0)+Math.imul(et,St)|0,U=U+Math.imul(et,At)|0,Y=Y+Math.imul(de,mt)|0,R=(R=R+Math.imul(de,It)|0)+Math.imul(ae,mt)|0,U=U+Math.imul(ae,It)|0;var Nn=(x+(Y=Y+Math.imul(qt,In)|0)|0)+((8191&(R=(R=R+Math.imul(qt,ei)|0)+Math.imul(S,In)|0))<<13)|0;x=((U=U+Math.imul(S,ei)|0)+(R>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,Y=Math.imul(Vt,St),R=(R=Math.imul(Vt,At))+Math.imul(hn,St)|0,U=Math.imul(hn,At),Y=Y+Math.imul(Le,mt)|0,R=(R=R+Math.imul(Le,It)|0)+Math.imul(et,mt)|0,U=U+Math.imul(et,It)|0;var jn=(x+(Y=Y+Math.imul(de,In)|0)|0)+((8191&(R=(R=R+Math.imul(de,ei)|0)+Math.imul(ae,In)|0))<<13)|0;x=((U=U+Math.imul(ae,ei)|0)+(R>>>13)|0)+(jn>>>26)|0,jn&=67108863,Y=Math.imul(Vt,mt),R=(R=Math.imul(Vt,It))+Math.imul(hn,mt)|0,U=Math.imul(hn,It);var Un=(x+(Y=Y+Math.imul(Le,In)|0)|0)+((8191&(R=(R=R+Math.imul(Le,ei)|0)+Math.imul(et,In)|0))<<13)|0;x=((U=U+Math.imul(et,ei)|0)+(R>>>13)|0)+(Un>>>26)|0,Un&=67108863;var ui=(x+(Y=Math.imul(Vt,In))|0)+((8191&(R=(R=Math.imul(Vt,ei))+Math.imul(hn,In)|0))<<13)|0;return x=((U=Math.imul(hn,ei))+(R>>>13)|0)+(ui>>>26)|0,ui&=67108863,a[0]=Li,a[1]=kt,a[2]=Ot,a[3]=Ze,a[4]=Ge,a[5]=Pt,a[6]=Yt,a[7]=bn,a[8]=$n,a[9]=oi,a[10]=Ii,a[11]=Ei,a[12]=Nt,a[13]=nn,a[14]=en,a[15]=Nn,a[16]=jn,a[17]=Un,a[18]=ui,0!==x&&(a[19]=x,T.length++),T};function Q(m,u,_){_.negative=u.negative^m.negative,_.length=m.length+u.length;for(var T=0,P=0,C=0;C<_.length-1;C++){var a=P;P=0;for(var x=67108863&T,Y=Math.min(C,u.length-1),R=Math.max(0,C-m.length+1);R<=Y;R++){var he=(0|m.words[C-R])*(0|u.words[R]),Oe=67108863&he;x=67108863&(Oe=Oe+x|0),P+=(a=(a=a+(he/67108864|0)|0)+(Oe>>>26)|0)>>>26,a&=67108863}_.words[C]=x,T=a,a=P}return 0!==T?_.words[C]=T:_.length--,_._strip()}function $(m,u,_){return Q(m,u,_)}function ie(m,u){this.x=m,this.y=u}Math.imul||(V=ee),o.prototype.mulTo=function(u,_){var P=this.length+u.length;return 10===this.length&&10===u.length?V(this,u,_):P<63?ee(this,u,_):P<1024?Q(this,u,_):$(this,u,_)},ie.prototype.makeRBT=function(u){for(var _=new Array(u),T=o.prototype._countBits(u)-1,P=0;P>=1;return P},ie.prototype.permute=function(u,_,T,P,C,a){for(var x=0;x>>=1)C++;return 1<>>=13),C>>>=13;for(a=2*_;a>=26,T+=C/67108864|0,T+=a>>>26,this.words[P]=67108863&a}return 0!==T&&(this.words[P]=T,this.length++),0===u&&(this.length=1,this._normSign()),_?this.ineg():this},o.prototype.muln=function(u){return this.clone().imuln(u)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(u){var _=function Z(m){for(var u=new Array(m.bitLength()),_=0;_>>_%26&1;return u}(u);if(0===_.length)return new o(1);for(var T=this,P=0;P<_.length&&0===_[P];P++,T=T.sqr());if(++P<_.length)for(var C=T.sqr();P<_.length;P++,C=C.sqr())0!==_[P]&&(T=T.mul(C));return T},o.prototype.iushln=function(u){p("number"==typeof u&&u>=0);var C,_=u%26,T=(u-_)/26,P=67108863>>>26-_<<26-_;if(0!==_){var a=0;for(C=0;C>>26-_}a&&(this.words[C]=a,this.length++)}if(0!==T){for(C=this.length-1;C>=0;C--)this.words[C+T]=this.words[C];for(C=0;C=0),P=_?(_-_%26)/26:0;var C=u%26,a=Math.min((u-C)/26,this.length),x=67108863^67108863>>>C<a)for(this.length-=a,R=0;R=0&&(0!==U||R>=P);R--){var fe=0|this.words[R];this.words[R]=U<<26-C|fe>>>C,U=fe&x}return Y&&0!==U&&(Y.words[Y.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(u,_,T){return p(0===this.negative),this.iushrn(u,_,T)},o.prototype.shln=function(u){return this.clone().ishln(u)},o.prototype.ushln=function(u){return this.clone().iushln(u)},o.prototype.shrn=function(u){return this.clone().ishrn(u)},o.prototype.ushrn=function(u){return this.clone().iushrn(u)},o.prototype.testn=function(u){p("number"==typeof u&&u>=0);var _=u%26,T=(u-_)/26;return!(this.length<=T||!(this.words[T]&1<<_))},o.prototype.imaskn=function(u){p("number"==typeof u&&u>=0);var _=u%26,T=(u-_)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=T?this:(0!==_&&T++,this.length=Math.min(T,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),0===this.length&&(this.words[0]=0,this.length=1),this._strip())},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return p("number"==typeof u),p(u<67108864),u<0?this.isubn(-u):0!==this.negative?1===this.length&&(0|this.words[0])<=u?(this.words[0]=u-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},o.prototype._iaddn=function(u){this.words[0]+=u;for(var _=0;_=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},o.prototype.isubn=function(u){if(p("number"==typeof u),p(u<67108864),u<0)return this.iaddn(-u);if(0!==this.negative)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_>26)-(Y/67108864|0),this.words[C+T]=67108863&a}for(;C>26,this.words[C+T]=67108863&a;if(0===x)return this._strip();for(p(-1===x),x=0,C=0;C>26,this.words[C]=67108863&a;return this.negative=1,this._strip()},o.prototype._wordDiv=function(u,_){var T,P=this.clone(),C=u,a=0|C.words[C.length-1];0!=(T=26-this._countBits(a))&&(C=C.ushln(T),P.iushln(T),a=0|C.words[C.length-1]);var R,Y=P.length-C.length;if("mod"!==_){(R=new o(null)).length=Y+1,R.words=new Array(R.length);for(var U=0;U=0;re--){var he=67108864*(0|P.words[C.length+re])+(0|P.words[C.length+re-1]);for(he=Math.min(he/a|0,67108863),P._ishlnsubmul(C,he,re);0!==P.negative;)he--,P.negative=0,P._ishlnsubmul(C,1,re),P.isZero()||(P.negative^=1);R&&(R.words[re]=he)}return R&&R._strip(),P._strip(),"div"!==_&&0!==T&&P.iushrn(T),{div:R||null,mod:P}},o.prototype.divmod=function(u,_,T){return p(!u.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===u.negative?(a=this.neg().divmod(u,_),"mod"!==_&&(P=a.div.neg()),"div"!==_&&(C=a.mod.neg(),T&&0!==C.negative&&C.iadd(u)),{div:P,mod:C}):0===this.negative&&0!==u.negative?(a=this.divmod(u.neg(),_),"mod"!==_&&(P=a.div.neg()),{div:P,mod:a.mod}):0!==(this.negative&u.negative)?(a=this.neg().divmod(u.neg(),_),"div"!==_&&(C=a.mod.neg(),T&&0!==C.negative&&C.isub(u)),{div:a.div,mod:C}):u.length>this.length||this.cmp(u)<0?{div:new o(0),mod:this}:1===u.length?"div"===_?{div:this.divn(u.words[0]),mod:null}:"mod"===_?{div:null,mod:new o(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new o(this.modrn(u.words[0]))}:this._wordDiv(u,_);var P,C,a},o.prototype.div=function(u){return this.divmod(u,"div",!1).div},o.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},o.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},o.prototype.divRound=function(u){var _=this.divmod(u);if(_.mod.isZero())return _.div;var T=_.mod.abs(),P=u.abs().iushrn(1),C=1&u.words[0],a=T.cmp(P);if(a<0||1===C&&0===a)return _.div;var x=new o(1);return x.negative=this.negative^u.negative,_.div.iadd(x)},o.prototype.modrn=function(u){var _=u<0;_&&(u=-u),p(u<=67108863);for(var T=(1<<26)%u,P=0,C=this.length-1;C>=0;C--)P=(T*P+(0|this.words[C]))%u;return _?-P:P},o.prototype.modn=function(u){return this.modrn(u)},o.prototype.idivn=function(u){var _=u<0;_&&(u=-u),p(u<=67108863);for(var T=0,P=this.length-1;P>=0;P--){var C=(0|this.words[P])+67108864*T;this.words[P]=C/u|0,T=C%u}return this._strip(),_?this.ineg():this},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){p(0===u.negative),p(!u.isZero());var _=this,T=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var P=new o(1),C=new o(0),a=new o(0),x=new o(1),Y=0;_.isEven()&&T.isEven();)_.iushrn(1),T.iushrn(1),++Y;for(var R=T.clone(),U=_.clone();!_.isZero();){for(var fe=0,re=1;0===(_.words[0]&re)&&fe<26;++fe,re<<=1);if(fe>0)for(_.iushrn(fe);fe-- >0;)(P.isOdd()||C.isOdd())&&(P.iadd(R),C.isub(U)),P.iushrn(1),C.iushrn(1);for(var he=0,Oe=1;0===(T.words[0]&Oe)&&he<26;++he,Oe<<=1);if(he>0)for(T.iushrn(he);he-- >0;)(a.isOdd()||x.isOdd())&&(a.iadd(R),x.isub(U)),a.iushrn(1),x.iushrn(1);_.cmp(T)>=0?(_.isub(T),P.isub(a),C.isub(x)):(T.isub(_),a.isub(P),x.isub(C))}return{a,b:x,gcd:T.iushln(Y)}},o.prototype._invmp=function(u){p(0===u.negative),p(!u.isZero());var fe,_=this,T=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var P=new o(1),C=new o(0),a=T.clone();_.cmpn(1)>0&&T.cmpn(1)>0;){for(var x=0,Y=1;0===(_.words[0]&Y)&&x<26;++x,Y<<=1);if(x>0)for(_.iushrn(x);x-- >0;)P.isOdd()&&P.iadd(a),P.iushrn(1);for(var R=0,U=1;0===(T.words[0]&U)&&R<26;++R,U<<=1);if(R>0)for(T.iushrn(R);R-- >0;)C.isOdd()&&C.iadd(a),C.iushrn(1);_.cmp(T)>=0?(_.isub(T),P.isub(C)):(T.isub(_),C.isub(P))}return(fe=0===_.cmpn(1)?P:C).cmpn(0)<0&&fe.iadd(u),fe},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),T=u.clone();_.negative=0,T.negative=0;for(var P=0;_.isEven()&&T.isEven();P++)_.iushrn(1),T.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;T.isEven();)T.iushrn(1);var C=_.cmp(T);if(C<0){var a=_;_=T,T=a}else if(0===C||0===T.cmpn(1))break;_.isub(T)}return T.iushln(P)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){p("number"==typeof u);var _=u%26,T=(u-_)/26,P=1<<_;if(this.length<=T)return this._expand(T+1),this.words[T]|=P,this;for(var C=P,a=T;0!==C&&a>>26,this.words[a]=x&=67108863}return 0!==C&&(this.words[a]=C,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(u){var T,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)T=1;else{_&&(u=-u),p(u<=67108863,"Number is too big");var P=0|this.words[0];T=P===u?0:Pu.length)return 1;if(this.length=0;T--){var P=0|this.words[T],C=0|u.words[T];if(P!==C){PC&&(_=1);break}}return _},o.prototype.gtn=function(u){return 1===this.cmpn(u)},o.prototype.gt=function(u){return 1===this.cmp(u)},o.prototype.gten=function(u){return this.cmpn(u)>=0},o.prototype.gte=function(u){return this.cmp(u)>=0},o.prototype.ltn=function(u){return-1===this.cmpn(u)},o.prototype.lt=function(u){return-1===this.cmp(u)},o.prototype.lten=function(u){return this.cmpn(u)<=0},o.prototype.lte=function(u){return this.cmp(u)<=0},o.prototype.eqn=function(u){return 0===this.cmpn(u)},o.prototype.eq=function(u){return 0===this.cmp(u)},o.red=function(u){return new t(u)},o.prototype.toRed=function(u){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(u){return this.red=u,this},o.prototype.forceRed=function(u){return p(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return p(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var _e={k256:null,p224:null,p192:null,p25519:null};function ye(m,u){this.name=m,this.p=new o(u,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function se(){ye.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function pe(){ye.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Ee(){ye.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function L(){ye.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(m){if("string"==typeof m){var u=o._prime(m);this.m=u.p,this.prime=u}else p(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}function s(m){t.call(this,m),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ye.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},ye.prototype.ireduce=function(u){var T,_=u;do{this.split(_,this.tmp),T=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(T>this.n);var P=T0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},ye.prototype.split=function(u,_){u.iushrn(this.n,0,_)},ye.prototype.imulK=function(u){return u.imul(this.k)},D(se,ye),se.prototype.split=function(u,_){for(var T=4194303,P=Math.min(u.length,9),C=0;C>>22,a=x}u.words[C-10]=a>>>=22,u.length-=0===a&&u.length>10?10:9},se.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,T=0;T>>=26,u.words[T]=C,_=P}return 0!==_&&(u.words[u.length++]=_),u},o._prime=function(u){if(_e[u])return _e[u];var _;if("k256"===u)_=new se;else if("p224"===u)_=new pe;else if("p192"===u)_=new Ee;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new L}return _e[u]=_,_},t.prototype._verify1=function(u){p(0===u.negative,"red works only with positives"),p(u.red,"red works only with red numbers")},t.prototype._verify2=function(u,_){p(0===(u.negative|_.negative),"red works only with positives"),p(u.red&&u.red===_.red,"red works only with red numbers")},t.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(w(u,u.umod(this.m)._forceRed(this)),u)},t.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},t.prototype.add=function(u,_){this._verify2(u,_);var T=u.add(_);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},t.prototype.iadd=function(u,_){this._verify2(u,_);var T=u.iadd(_);return T.cmp(this.m)>=0&&T.isub(this.m),T},t.prototype.sub=function(u,_){this._verify2(u,_);var T=u.sub(_);return T.cmpn(0)<0&&T.iadd(this.m),T._forceRed(this)},t.prototype.isub=function(u,_){this._verify2(u,_);var T=u.isub(_);return T.cmpn(0)<0&&T.iadd(this.m),T},t.prototype.shl=function(u,_){return this._verify1(u),this.imod(u.ushln(_))},t.prototype.imul=function(u,_){return this._verify2(u,_),this.imod(u.imul(_))},t.prototype.mul=function(u,_){return this._verify2(u,_),this.imod(u.mul(_))},t.prototype.isqr=function(u){return this.imul(u,u.clone())},t.prototype.sqr=function(u){return this.mul(u,u)},t.prototype.sqrt=function(u){if(u.isZero())return u.clone();var _=this.m.andln(3);if(p(_%2==1),3===_){var T=this.m.add(new o(1)).iushrn(2);return this.pow(u,T)}for(var P=this.m.subn(1),C=0;!P.isZero()&&0===P.andln(1);)C++,P.iushrn(1);p(!P.isZero());var a=new o(1).toRed(this),x=a.redNeg(),Y=this.m.subn(1).iushrn(1),R=this.m.bitLength();for(R=new o(2*R*R).toRed(this);0!==this.pow(R,Y).cmp(x);)R.redIAdd(x);for(var U=this.pow(R,P),fe=this.pow(u,P.addn(1).iushrn(1)),re=this.pow(u,P),he=C;0!==re.cmp(a);){for(var Oe=re,ge=0;0!==Oe.cmp(a);ge++)Oe=Oe.redSqr();p(ge=0;C--){for(var U=_.words[C],fe=R-1;fe>=0;fe--){var re=U>>fe&1;a!==P[0]&&(a=this.sqr(a)),0!==re||0!==x?(x<<=1,x|=re,(4===++Y||0===C&&0===fe)&&(a=this.mul(a,P[x]),Y=0,x=0)):Y=0}R=26}return a},t.prototype.convertTo=function(u){var _=u.umod(this.m);return _===u?_.clone():_},t.prototype.convertFrom=function(u){var _=u.clone();return _.red=null,_},o.mont=function(u){return new s(u)},D(s,t),s.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},s.prototype.convertFrom=function(u){var _=this.imod(u.mul(this.rinv));return _.red=null,_},s.prototype.imul=function(u,_){if(u.isZero()||_.isZero())return u.words[0]=0,u.length=1,u;var T=u.imul(_),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=T.isub(P).iushrn(this.shift),a=C;return C.cmp(this.m)>=0?a=C.isub(this.m):C.cmpn(0)<0&&(a=C.iadd(this.m)),a._forceRed(this)},s.prototype.mul=function(u,_){if(u.isZero()||_.isZero())return new o(0)._forceRed(this);var T=u.mul(_),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=T.isub(P).iushrn(this.shift),a=C;return C.cmp(this.m)>=0?a=C.isub(this.m):C.cmpn(0)<0&&(a=C.iadd(this.m)),a._forceRed(this)},s.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},35294(ke,q,l){var i;function g(D){this.rand=D}if(ke.exports=function(o){return i||(i=new g(null)),i.generate(o)},ke.exports.Rand=g,g.prototype.generate=function(o){return this._rand(o)},g.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var e=new Uint8Array(o),A=0;A>>24]^K[V>>>16&255]^j[Q>>>8&255]^Z[255&$]^d[pe++],_e=M[V>>>24]^K[Q>>>16&255]^j[$>>>8&255]^Z[255&ee]^d[pe++],ye=M[Q>>>24]^K[$>>>16&255]^j[ee>>>8&255]^Z[255&V]^d[pe++],se=M[$>>>24]^K[ee>>>16&255]^j[V>>>8&255]^Z[255&Q]^d[pe++],ee=ie,V=_e,Q=ye,$=se;return ie=(f[ee>>>24]<<24|f[V>>>16&255]<<16|f[Q>>>8&255]<<8|f[255&$])^d[pe++],_e=(f[V>>>24]<<24|f[Q>>>16&255]<<16|f[$>>>8&255]<<8|f[255&ee])^d[pe++],ye=(f[Q>>>24]<<24|f[$>>>16&255]<<16|f[ee>>>8&255]<<8|f[255&V])^d[pe++],se=(f[$>>>24]<<24|f[ee>>>16&255]<<16|f[V>>>8&255]<<8|f[255&Q])^d[pe++],[ie>>>=0,_e>>>=0,ye>>>=0,se>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],e=function(){for(var h=new Array(256),d=0;d<256;d++)h[d]=d<128?d<<1:d<<1^283;for(var w=[],f=[],F=[[],[],[],[]],M=[[],[],[],[]],K=0,j=0,Z=0;Z<256;++Z){var ee=j^j<<1^j<<2^j<<3^j<<4;w[K]=ee=ee>>>8^255&ee^99,f[ee]=K;var V=h[K],Q=h[V],$=h[Q],ie=257*h[ee]^16843008*ee;F[0][K]=ie<<24|ie>>>8,F[1][K]=ie<<16|ie>>>16,F[2][K]=ie<<8|ie>>>24,F[3][K]=ie,M[0][ee]=(ie=16843009*$^65537*Q^257*V^16843008*K)<<24|ie>>>8,M[1][ee]=ie<<16|ie>>>16,M[2][ee]=ie<<8|ie>>>24,M[3][ee]=ie,0===K?K=j=1:(K=V^h[h[h[$^V]]],j^=h[h[j]])}return{SBOX:w,INV_SBOX:f,SUB_MIX:F,INV_SUB_MIX:M}}();function A(h){this._key=g(h),this._reset()}A.blockSize=16,A.keySize=32,A.prototype.blockSize=A.blockSize,A.prototype.keySize=A.keySize,A.prototype._reset=function(){for(var h=this._key,d=h.length,w=d+6,f=4*(w+1),F=[],M=0;M>>24)>>>24]<<24|e.SBOX[K>>>16&255]<<16|e.SBOX[K>>>8&255]<<8|e.SBOX[255&K],K^=o[M/d|0]<<24):d>6&&M%d===4&&(K=e.SBOX[K>>>24]<<24|e.SBOX[K>>>16&255]<<16|e.SBOX[K>>>8&255]<<8|e.SBOX[255&K]),F[M]=F[M-d]^K}for(var j=[],Z=0;Z>>24]]^e.INV_SUB_MIX[1][e.SBOX[V>>>16&255]]^e.INV_SUB_MIX[2][e.SBOX[V>>>8&255]]^e.INV_SUB_MIX[3][e.SBOX[255&V]]}this._nRounds=w,this._keySchedule=F,this._invKeySchedule=j},A.prototype.encryptBlockRaw=function(h){return D(h=g(h),this._keySchedule,e.SUB_MIX,e.SBOX,this._nRounds)},A.prototype.encryptBlock=function(h){var d=this.encryptBlockRaw(h),w=i.allocUnsafe(16);return w.writeUInt32BE(d[0],0),w.writeUInt32BE(d[1],4),w.writeUInt32BE(d[2],8),w.writeUInt32BE(d[3],12),w},A.prototype.decryptBlock=function(h){var d=(h=g(h))[1];h[1]=h[3],h[3]=d;var w=D(h,this._invKeySchedule,e.INV_SUB_MIX,e.INV_SBOX,this._nRounds),f=i.allocUnsafe(16);return f.writeUInt32BE(w[0],0),f.writeUInt32BE(w[3],4),f.writeUInt32BE(w[2],8),f.writeUInt32BE(w[1],12),f},A.prototype.scrub=function(){p(this._keySchedule),p(this._invKeySchedule),p(this._key)},ke.exports.AES=A},19307(ke,q,l){var i=l(12375),g=l(27054).Buffer,p=l(3247),D=l(71993),o=l(85917),e=l(13546),A=l(95725);function w(f,F,M,K){p.call(this);var j=g.alloc(4,0);this._cipher=new i.AES(F);var Z=this._cipher.encryptBlock(j);this._ghash=new o(Z),M=function d(f,F,M){if(12===F.length)return f._finID=g.concat([F,g.from([0,0,0,1])]),g.concat([F,g.from([0,0,0,2])]);var K=new o(M),j=F.length,Z=j%16;K.update(F),Z&&K.update(g.alloc(Z=16-Z,0)),K.update(g.alloc(8,0));var ee=8*j,V=g.alloc(8);V.writeUIntBE(ee,0,8),K.update(V),f._finID=K.state;var Q=g.from(f._finID);return A(Q),Q}(this,M,Z),this._prev=g.from(M),this._cache=g.allocUnsafe(0),this._secCache=g.allocUnsafe(0),this._decrypt=K,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}D(w,p),w.prototype._update=function(f){if(!this._called&&this._alen){var F=16-this._alen%16;F<16&&(F=g.alloc(F,0),this._ghash.update(F))}this._called=!0;var M=this._mode.encrypt(this,f);return this._ghash.update(this._decrypt?f:M),this._len+=f.length,M},w.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=e(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function h(f,F){var M=0;f.length!==F.length&&M++;for(var K=Math.min(f.length,F.length),j=0;j16)throw new Error("unable to decrypt data");for(var Z=-1;++Z16)return j=this.cache.slice(0,16),this.cache=this.cache.slice(16),j}else if(this.cache.length>=16)return j=this.cache.slice(0,16),this.cache=this.cache.slice(16),j;return null},w.prototype.flush=function(){if(this.cache.length)return this.cache},q.createDecipher=function M(K,j){var Z=p[K.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");var ee=A(j,!1,Z.key,Z.iv);return F(K,ee.key,ee.iv)},q.createDecipheriv=F},350(ke,q,l){var i=l(60503),g=l(19307),p=l(27054).Buffer,D=l(91821),o=l(3247),e=l(12375),A=l(18211);function d(K,j,Z){o.call(this),this._cache=new f,this._cipher=new e.AES(j),this._prev=p.from(Z),this._mode=K,this._autopadding=!0}l(71993)(d,o),d.prototype._update=function(K){this._cache.add(K);for(var j,Z,ee=[];j=this._cache.get();)Z=this._mode.encrypt(this,j),ee.push(Z);return p.concat(ee)};var w=p.alloc(16,16);function f(){this.cache=p.allocUnsafe(0)}function F(K,j,Z){var ee=i[K.toLowerCase()];if(!ee)throw new TypeError("invalid suite type");if("string"==typeof j&&(j=p.from(j)),j.length!==ee.key/8)throw new TypeError("invalid key length "+j.length);if("string"==typeof Z&&(Z=p.from(Z)),"GCM"!==ee.mode&&Z.length!==ee.iv)throw new TypeError("invalid iv length "+Z.length);return"stream"===ee.type?new D(ee.module,j,Z):"auth"===ee.type?new g(ee.module,j,Z):new d(ee.module,j,Z)}d.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(w))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(K){return this._autopadding=!!K,this},f.prototype.add=function(K){this.cache=p.concat([this.cache,K])},f.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},f.prototype.flush=function(){for(var K=16-this.cache.length,j=p.allocUnsafe(K),Z=-1;++Z>>0,0),A.writeUInt32BE(e[1]>>>0,4),A.writeUInt32BE(e[2]>>>0,8),A.writeUInt32BE(e[3]>>>0,12),A}function o(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}o.prototype.ghash=function(e){for(var A=-1;++A0;h--)e[h]=e[h]>>>1|(1&e[h-1])<<31;e[0]=e[0]>>>1,w&&(e[0]=e[0]^225<<24)}this.state=D(A)},o.prototype.update=function(e){this.cache=i.concat([this.cache,e]);for(var A;this.cache.length>=16;)A=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(A)},o.prototype.final=function(e,A){return this.cache.length&&this.ghash(i.concat([this.cache,g],16)),this.ghash(D([0,e,0,A])),this.state},ke.exports=o},95725(ke){ke.exports=function q(l){for(var g,i=l.length;i--;){if(255!==(g=l.readUInt8(i))){g++,l.writeUInt8(g,i);break}l.writeUInt8(0,i)}}},34133(ke,q,l){var i=l(13546);q.encrypt=function(g,p){var D=i(p,g._prev);return g._prev=g._cipher.encryptBlock(D),g._prev},q.decrypt=function(g,p){var D=g._prev;g._prev=p;var o=g._cipher.decryptBlock(p);return i(o,D)}},17090(ke,q,l){var i=l(27054).Buffer,g=l(13546);function p(D,o,e){var A=o.length,h=g(o,D._cache);return D._cache=D._cache.slice(A),D._prev=i.concat([D._prev,e?o:h]),h}q.encrypt=function(D,o,e){for(var h,A=i.allocUnsafe(0);o.length;){if(0===D._cache.length&&(D._cache=D._cipher.encryptBlock(D._prev),D._prev=i.allocUnsafe(0)),!(D._cache.length<=o.length)){A=i.concat([A,p(D,o,e)]);break}A=i.concat([A,p(D,o.slice(0,h=D._cache.length),e)]),o=o.slice(h)}return A}},71039(ke,q,l){var i=l(27054).Buffer;function g(D,o,e){for(var f,F,h=-1,w=0;++h<8;)w+=(128&(F=D._cipher.encryptBlock(D._prev)[0]^(f=o&1<<7-h?128:0)))>>h%8,D._prev=p(D._prev,e?f:F);return w}function p(D,o){var e=D.length,A=-1,h=i.allocUnsafe(D.length);for(D=i.concat([D,i.from([o])]);++A>7;return h}q.encrypt=function(D,o,e){for(var A=o.length,h=i.allocUnsafe(A),d=-1;++d=0||!d.umod(A.prime1)||!d.umod(A.prime2));return d}function e(A,h){var d=function o(A){var h=D(A);return{blinder:h.toRed(i.mont(A.modulus)).redPow(new i(A.publicExponent)).fromRed(),unblinder:h.invm(A.modulus)}}(h),w=h.modulus.byteLength(),f=new i(A).mul(d.blinder).umod(h.modulus),F=f.toRed(i.mont(h.prime1)),M=f.toRed(i.mont(h.prime2)),K=h.coefficient,j=h.prime1,Z=h.prime2,ee=F.redPow(h.exponent1).fromRed(),V=M.redPow(h.exponent2).fromRed(),Q=ee.isub(V).imul(K).umod(j).imul(Z);return V.iadd(Q).imul(d.unblinder).umod(h.modulus).toArrayLike(p,"be",w)}e.getr=D,ke.exports=e},99560(ke,q,l){"use strict";ke.exports=l(62951)},79143(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(67211),p=l(5942),D=l(71993),o=l(43150),e=l(74754),A=l(62951);function h(F){p.Writable.call(this);var M=A[F];if(!M)throw new Error("Unknown message digest");this._hashType=M.hash,this._hash=g(M.hash),this._tag=M.id,this._signType=M.sign}function d(F){p.Writable.call(this);var M=A[F];if(!M)throw new Error("Unknown message digest");this._hash=g(M.hash),this._tag=M.id,this._signType=M.sign}function w(F){return new h(F)}function f(F){return new d(F)}Object.keys(A).forEach(function(F){A[F].id=i.from(A[F].id,"hex"),A[F.toLowerCase()]=A[F]}),D(h,p.Writable),h.prototype._write=function(M,K,j){this._hash.update(M),j()},h.prototype.update=function(M,K){return this._hash.update("string"==typeof M?i.from(M,K):M),this},h.prototype.sign=function(M,K){this.end();var j=this._hash.digest(),Z=o(j,M,this._hashType,this._signType,this._tag);return K?Z.toString(K):Z},D(d,p.Writable),d.prototype._write=function(M,K,j){this._hash.update(M),j()},d.prototype.update=function(M,K){return this._hash.update("string"==typeof M?i.from(M,K):M),this},d.prototype.verify=function(M,K,j){var Z="string"==typeof K?i.from(K,j):K;this.end();var ee=this._hash.digest();return e(Z,ee,M,this._signType,this._tag)},ke.exports={Sign:w,Verify:f,createSign:w,createVerify:f}},43150(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(56432),p=l(14105),D=l(90518).ec,o=l(917),e=l(65667),A=l(64589);function M(V,Q,$,ie){if((V=i.from(V.toArray())).length0&&$.ishrn(ie),$}function Z(V,Q,$){var ie,_e;do{for(ie=i.alloc(0);8*ie.length=0)throw new Error("invalid sig")}ke.exports=function e(w,f,F,M,K){var j=D(F);if("ec"===j.type){if("ecdsa"!==M&&"ecdsa/rsa"!==M)throw new Error("wrong public key type");return function A(w,f,F){var M=o[F.data.algorithm.curve.join(".")];if(!M)throw new Error("unknown curve "+F.data.algorithm.curve.join("."));return new p(M).verify(f,w,F.data.subjectPrivateKey.data)}(w,f,j)}if("dsa"===j.type){if("dsa"!==M)throw new Error("wrong public key type");return function h(w,f,F){var M=F.data.p,K=F.data.q,j=F.data.g,Z=F.data.pub_key,ee=D.signature.decode(w,"der"),V=ee.s,Q=ee.r;d(V,K),d(Q,K);var $=g.mont(M),ie=V.invm(K);return 0===j.toRed($).redPow(new g(f).mul(ie).mod(K)).fromRed().mul(Z.toRed($).redPow(Q.mul(ie).mod(K)).fromRed()).mod(M).mod(K).cmp(Q)}(w,f,j)}if("rsa"!==M&&"ecdsa/rsa"!==M)throw new Error("wrong public key type");f=i.concat([K,f]);for(var Z=j.modulus.byteLength(),ee=[1],V=0;f.length+ee.length+2D)throw new RangeError('The value "'+de+'" is invalid for option "size"');const ae=new Uint8Array(de);return Object.setPrototypeOf(ae,A.prototype),ae}function A(de,ae,me){if("number"==typeof de){if("string"==typeof ae)throw new TypeError('The "string" argument must be of type string. Received type number');return f(de)}return h(de,ae,me)}function h(de,ae,me){if("string"==typeof de)return function F(de,ae){if(("string"!=typeof ae||""===ae)&&(ae="utf8"),!A.isEncoding(ae))throw new TypeError("Unknown encoding: "+ae);const me=0|Q(de,ae);let Le=e(me);const et=Le.write(de,ae);return et!==me&&(Le=Le.slice(0,et)),Le}(de,ae);if(ArrayBuffer.isView(de))return function K(de){if(rt(de,Uint8Array)){const ae=new Uint8Array(de);return j(ae.buffer,ae.byteOffset,ae.byteLength)}return M(de)}(de);if(null==de)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de);if(rt(de,ArrayBuffer)||de&&rt(de.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(rt(de,SharedArrayBuffer)||de&&rt(de.buffer,SharedArrayBuffer)))return j(de,ae,me);if("number"==typeof de)throw new TypeError('The "value" argument must not be of type number. Received type number');const Le=de.valueOf&&de.valueOf();if(null!=Le&&Le!==de)return A.from(Le,ae,me);const et=function Z(de){if(A.isBuffer(de)){const ae=0|ee(de.length),me=e(ae);return 0===me.length||de.copy(me,0,0,ae),me}return void 0!==de.length?"number"!=typeof de.length||Mn(de.length)?e(0):M(de):"Buffer"===de.type&&Array.isArray(de.data)?M(de.data):void 0}(de);if(et)return et;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof de[Symbol.toPrimitive])return A.from(de[Symbol.toPrimitive]("string"),ae,me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de)}function d(de){if("number"!=typeof de)throw new TypeError('"size" argument must be of type number');if(de<0)throw new RangeError('The value "'+de+'" is invalid for option "size"')}function f(de){return d(de),e(de<0?0:0|ee(de))}function M(de){const ae=de.length<0?0:0|ee(de.length),me=e(ae);for(let Le=0;Le=D)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D.toString(16)+" bytes");return 0|de}function Q(de,ae){if(A.isBuffer(de))return de.length;if(ArrayBuffer.isView(de)||rt(de,ArrayBuffer))return de.byteLength;if("string"!=typeof de)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof de);const me=de.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===me)return 0;let et=!1;for(;;)switch(ae){case"ascii":case"latin1":case"binary":return me;case"utf8":case"utf-8":return nt(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*me;case"hex":return me>>>1;case"base64":return yt(de).length;default:if(et)return Le?-1:nt(de).length;ae=(""+ae).toLowerCase(),et=!0}}function $(de,ae,me){let Le=!1;if((void 0===ae||ae<0)&&(ae=0),ae>this.length||((void 0===me||me>this.length)&&(me=this.length),me<=0)||(me>>>=0)<=(ae>>>=0))return"";for(de||(de="utf8");;)switch(de){case"hex":return C(this,ae,me);case"utf8":case"utf-8":return m(this,ae,me);case"ascii":return T(this,ae,me);case"latin1":case"binary":return P(this,ae,me);case"base64":return s(this,ae,me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a(this,ae,me);default:if(Le)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),Le=!0}}function ie(de,ae,me){const Le=de[ae];de[ae]=de[me],de[me]=Le}function _e(de,ae,me,Le,et){if(0===de.length)return-1;if("string"==typeof me?(Le=me,me=0):me>2147483647?me=2147483647:me<-2147483648&&(me=-2147483648),Mn(me=+me)&&(me=et?0:de.length-1),me<0&&(me=de.length+me),me>=de.length){if(et)return-1;me=de.length-1}else if(me<0){if(!et)return-1;me=0}if("string"==typeof ae&&(ae=A.from(ae,Le)),A.isBuffer(ae))return 0===ae.length?-1:ye(de,ae,me,Le,et);if("number"==typeof ae)return ae&=255,"function"==typeof Uint8Array.prototype.indexOf?et?Uint8Array.prototype.indexOf.call(de,ae,me):Uint8Array.prototype.lastIndexOf.call(de,ae,me):ye(de,[ae],me,Le,et);throw new TypeError("val must be string, number or Buffer")}function ye(de,ae,me,Le,et){let _n,tn=1,Vt=de.length,hn=ae.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(de.length<2||ae.length<2)return-1;tn=2,Vt/=2,hn/=2,me/=2}function En(tt,Fe){return 1===tn?tt[Fe]:tt.readUInt16BE(Fe*tn)}if(et){let tt=-1;for(_n=me;_nVt&&(me=Vt-hn),_n=me;_n>=0;_n--){let tt=!0;for(let Fe=0;Feet&&(Le=et):Le=et;const tn=ae.length;let Vt;for(Le>tn/2&&(Le=tn/2),Vt=0;Vt>8,et=me%256,tn.push(et),tn.push(Le);return tn}(ae,de.length-me),de,me,Le)}function s(de,ae,me){return i.fromByteArray(0===ae&&me===de.length?de:de.slice(ae,me))}function m(de,ae,me){me=Math.min(de.length,me);const Le=[];let et=ae;for(;et239?4:tn>223?3:tn>191?2:1;if(et+hn<=me){let En,_n,tt,Fe;switch(hn){case 1:tn<128&&(Vt=tn);break;case 2:En=de[et+1],128==(192&En)&&(Fe=(31&tn)<<6|63&En,Fe>127&&(Vt=Fe));break;case 3:En=de[et+1],_n=de[et+2],128==(192&En)&&128==(192&_n)&&(Fe=(15&tn)<<12|(63&En)<<6|63&_n,Fe>2047&&(Fe<55296||Fe>57343)&&(Vt=Fe));break;case 4:En=de[et+1],_n=de[et+2],tt=de[et+3],128==(192&En)&&128==(192&_n)&&128==(192&tt)&&(Fe=(15&tn)<<18|(63&En)<<12|(63&_n)<<6|63&tt,Fe>65535&&Fe<1114112&&(Vt=Fe))}}null===Vt?(Vt=65533,hn=1):Vt>65535&&(Vt-=65536,Le.push(Vt>>>10&1023|55296),Vt=56320|1023&Vt),Le.push(Vt),et+=hn}return function _(de){const ae=de.length;if(ae<=u)return String.fromCharCode.apply(String,de);let me="",Le=0;for(;Leet.length?(A.isBuffer(Vt)||(Vt=A.from(Vt)),Vt.copy(et,tn)):Uint8Array.prototype.set.call(et,Vt,tn);else{if(!A.isBuffer(Vt))throw new TypeError('"list" argument must be an Array of Buffers');Vt.copy(et,tn)}tn+=Vt.length}return et},A.byteLength=Q,A.prototype._isBuffer=!0,A.prototype.swap16=function(){const ae=this.length;if(ae%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let me=0;meme&&(ae+=" ... "),""},p&&(A.prototype[p]=A.prototype.inspect),A.prototype.compare=function(ae,me,Le,et,tn){if(rt(ae,Uint8Array)&&(ae=A.from(ae,ae.offset,ae.byteLength)),!A.isBuffer(ae))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ae);if(void 0===me&&(me=0),void 0===Le&&(Le=ae?ae.length:0),void 0===et&&(et=0),void 0===tn&&(tn=this.length),me<0||Le>ae.length||et<0||tn>this.length)throw new RangeError("out of range index");if(et>=tn&&me>=Le)return 0;if(et>=tn)return-1;if(me>=Le)return 1;if(this===ae)return 0;let Vt=(tn>>>=0)-(et>>>=0),hn=(Le>>>=0)-(me>>>=0);const En=Math.min(Vt,hn),_n=this.slice(et,tn),tt=ae.slice(me,Le);for(let Fe=0;Fe>>=0,isFinite(Le)?(Le>>>=0,void 0===et&&(et="utf8")):(et=Le,Le=void 0)}const tn=this.length-me;if((void 0===Le||Le>tn)&&(Le=tn),ae.length>0&&(Le<0||me<0)||me>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");let Vt=!1;for(;;)switch(et){case"hex":return se(this,ae,me,Le);case"utf8":case"utf-8":return pe(this,ae,me,Le);case"ascii":case"latin1":case"binary":return Ee(this,ae,me,Le);case"base64":return L(this,ae,me,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,ae,me,Le);default:if(Vt)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),Vt=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const u=4096;function T(de,ae,me){let Le="";me=Math.min(de.length,me);for(let et=ae;etLe)&&(me=Le);let et="";for(let tn=ae;tnme)throw new RangeError("Trying to access beyond buffer length")}function Y(de,ae,me,Le,et,tn){if(!A.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if(ae>et||aede.length)throw new RangeError("Index out of range")}function R(de,ae,me,Le,et){Me(ae,Le,et,de,me,7);let tn=Number(ae&BigInt(4294967295));de[me++]=tn,tn>>=8,de[me++]=tn,tn>>=8,de[me++]=tn,tn>>=8,de[me++]=tn;let Vt=Number(ae>>BigInt(32)&BigInt(4294967295));return de[me++]=Vt,Vt>>=8,de[me++]=Vt,Vt>>=8,de[me++]=Vt,Vt>>=8,de[me++]=Vt,me}function U(de,ae,me,Le,et){Me(ae,Le,et,de,me,7);let tn=Number(ae&BigInt(4294967295));de[me+7]=tn,tn>>=8,de[me+6]=tn,tn>>=8,de[me+5]=tn,tn>>=8,de[me+4]=tn;let Vt=Number(ae>>BigInt(32)&BigInt(4294967295));return de[me+3]=Vt,Vt>>=8,de[me+2]=Vt,Vt>>=8,de[me+1]=Vt,Vt>>=8,de[me]=Vt,me+8}function fe(de,ae,me,Le,et,tn){if(me+Le>de.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("Index out of range")}function re(de,ae,me,Le,et){return ae=+ae,me>>>=0,et||fe(de,0,me,4),g.write(de,ae,me,Le,23,4),me+4}function he(de,ae,me,Le,et){return ae=+ae,me>>>=0,et||fe(de,0,me,8),g.write(de,ae,me,Le,52,8),me+8}A.prototype.slice=function(ae,me){const Le=this.length;(ae=~~ae)<0?(ae+=Le)<0&&(ae=0):ae>Le&&(ae=Le),(me=void 0===me?Le:~~me)<0?(me+=Le)<0&&(me=0):me>Le&&(me=Le),me>>=0,me>>>=0,Le||x(ae,me,this.length);let et=this[ae],tn=1,Vt=0;for(;++Vt>>=0,me>>>=0,Le||x(ae,me,this.length);let et=this[ae+--me],tn=1;for(;me>0&&(tn*=256);)et+=this[ae+--me]*tn;return et},A.prototype.readUint8=A.prototype.readUInt8=function(ae,me){return ae>>>=0,me||x(ae,1,this.length),this[ae]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(ae,me){return ae>>>=0,me||x(ae,2,this.length),this[ae]|this[ae+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(ae,me){return ae>>>=0,me||x(ae,2,this.length),this[ae]<<8|this[ae+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),(this[ae]|this[ae+1]<<8|this[ae+2]<<16)+16777216*this[ae+3]},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),16777216*this[ae]+(this[ae+1]<<16|this[ae+2]<<8|this[ae+3])},A.prototype.readBigUInt64LE=S(function(ae){ve(ae>>>=0,"offset");const me=this[ae],Le=this[ae+7];(void 0===me||void 0===Le)&&oe(ae,this.length-8);const et=me+256*this[++ae]+65536*this[++ae]+this[++ae]*2**24,tn=this[++ae]+256*this[++ae]+65536*this[++ae]+Le*2**24;return BigInt(et)+(BigInt(tn)<>>=0,"offset");const me=this[ae],Le=this[ae+7];(void 0===me||void 0===Le)&&oe(ae,this.length-8);const et=me*2**24+65536*this[++ae]+256*this[++ae]+this[++ae],tn=this[++ae]*2**24+65536*this[++ae]+256*this[++ae]+Le;return(BigInt(et)<>>=0,me>>>=0,Le||x(ae,me,this.length);let et=this[ae],tn=1,Vt=0;for(;++Vt=tn&&(et-=Math.pow(2,8*me)),et},A.prototype.readIntBE=function(ae,me,Le){ae>>>=0,me>>>=0,Le||x(ae,me,this.length);let et=me,tn=1,Vt=this[ae+--et];for(;et>0&&(tn*=256);)Vt+=this[ae+--et]*tn;return tn*=128,Vt>=tn&&(Vt-=Math.pow(2,8*me)),Vt},A.prototype.readInt8=function(ae,me){return ae>>>=0,me||x(ae,1,this.length),128&this[ae]?-1*(255-this[ae]+1):this[ae]},A.prototype.readInt16LE=function(ae,me){ae>>>=0,me||x(ae,2,this.length);const Le=this[ae]|this[ae+1]<<8;return 32768&Le?4294901760|Le:Le},A.prototype.readInt16BE=function(ae,me){ae>>>=0,me||x(ae,2,this.length);const Le=this[ae+1]|this[ae]<<8;return 32768&Le?4294901760|Le:Le},A.prototype.readInt32LE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),this[ae]|this[ae+1]<<8|this[ae+2]<<16|this[ae+3]<<24},A.prototype.readInt32BE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),this[ae]<<24|this[ae+1]<<16|this[ae+2]<<8|this[ae+3]},A.prototype.readBigInt64LE=S(function(ae){ve(ae>>>=0,"offset");const me=this[ae],Le=this[ae+7];return(void 0===me||void 0===Le)&&oe(ae,this.length-8),(BigInt(this[ae+4]+256*this[ae+5]+65536*this[ae+6]+(Le<<24))<>>=0,"offset");const me=this[ae],Le=this[ae+7];(void 0===me||void 0===Le)&&oe(ae,this.length-8);const et=(me<<24)+65536*this[++ae]+256*this[++ae]+this[++ae];return(BigInt(et)<>>=0,me||x(ae,4,this.length),g.read(this,ae,!0,23,4)},A.prototype.readFloatBE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),g.read(this,ae,!1,23,4)},A.prototype.readDoubleLE=function(ae,me){return ae>>>=0,me||x(ae,8,this.length),g.read(this,ae,!0,52,8)},A.prototype.readDoubleBE=function(ae,me){return ae>>>=0,me||x(ae,8,this.length),g.read(this,ae,!1,52,8)},A.prototype.writeUintLE=A.prototype.writeUIntLE=function(ae,me,Le,et){ae=+ae,me>>>=0,Le>>>=0,et||Y(this,ae,me,Le,Math.pow(2,8*Le)-1,0);let tn=1,Vt=0;for(this[me]=255&ae;++Vt>>=0,Le>>>=0,et||Y(this,ae,me,Le,Math.pow(2,8*Le)-1,0);let tn=Le-1,Vt=1;for(this[me+tn]=255&ae;--tn>=0&&(Vt*=256);)this[me+tn]=ae/Vt&255;return me+Le},A.prototype.writeUint8=A.prototype.writeUInt8=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,1,255,0),this[me]=255&ae,me+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,65535,0),this[me]=255&ae,this[me+1]=ae>>>8,me+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,65535,0),this[me]=ae>>>8,this[me+1]=255&ae,me+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,4294967295,0),this[me+3]=ae>>>24,this[me+2]=ae>>>16,this[me+1]=ae>>>8,this[me]=255&ae,me+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,4294967295,0),this[me]=ae>>>24,this[me+1]=ae>>>16,this[me+2]=ae>>>8,this[me+3]=255&ae,me+4},A.prototype.writeBigUInt64LE=S(function(ae,me=0){return R(this,ae,me,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=S(function(ae,me=0){return U(this,ae,me,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(ae,me,Le,et){if(ae=+ae,me>>>=0,!et){const En=Math.pow(2,8*Le-1);Y(this,ae,me,Le,En-1,-En)}let tn=0,Vt=1,hn=0;for(this[me]=255&ae;++tn>>=0,!et){const En=Math.pow(2,8*Le-1);Y(this,ae,me,Le,En-1,-En)}let tn=Le-1,Vt=1,hn=0;for(this[me+tn]=255&ae;--tn>=0&&(Vt*=256);)ae<0&&0===hn&&0!==this[me+tn+1]&&(hn=1),this[me+tn]=(ae/Vt|0)-hn&255;return me+Le},A.prototype.writeInt8=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,1,127,-128),ae<0&&(ae=255+ae+1),this[me]=255&ae,me+1},A.prototype.writeInt16LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,32767,-32768),this[me]=255&ae,this[me+1]=ae>>>8,me+2},A.prototype.writeInt16BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,32767,-32768),this[me]=ae>>>8,this[me+1]=255&ae,me+2},A.prototype.writeInt32LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,2147483647,-2147483648),this[me]=255&ae,this[me+1]=ae>>>8,this[me+2]=ae>>>16,this[me+3]=ae>>>24,me+4},A.prototype.writeInt32BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,2147483647,-2147483648),ae<0&&(ae=4294967295+ae+1),this[me]=ae>>>24,this[me+1]=ae>>>16,this[me+2]=ae>>>8,this[me+3]=255&ae,me+4},A.prototype.writeBigInt64LE=S(function(ae,me=0){return R(this,ae,me,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=S(function(ae,me=0){return U(this,ae,me,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeFloatLE=function(ae,me,Le){return re(this,ae,me,!0,Le)},A.prototype.writeFloatBE=function(ae,me,Le){return re(this,ae,me,!1,Le)},A.prototype.writeDoubleLE=function(ae,me,Le){return he(this,ae,me,!0,Le)},A.prototype.writeDoubleBE=function(ae,me,Le){return he(this,ae,me,!1,Le)},A.prototype.copy=function(ae,me,Le,et){if(!A.isBuffer(ae))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!et&&0!==et&&(et=this.length),me>=ae.length&&(me=ae.length),me||(me=0),et>0&&et=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),ae.length-me>>=0,Le=void 0===Le?this.length:Le>>>0,ae||(ae=0),"number"==typeof ae)for(tn=me;tn=Le+4;me-=3)ae=`_${de.slice(me-3,me)}${ae}`;return`${de.slice(0,me)}${ae}`}function Me(de,ae,me,Le,et,tn){if(de>me||de3?0===ae||ae===BigInt(0)?`>= 0${Vt} and < 2${Vt} ** ${8*(tn+1)}${Vt}`:`>= -(2${Vt} ** ${8*(tn+1)-1}${Vt}) and < 2 ** ${8*(tn+1)-1}${Vt}`:`>= ${ae}${Vt} and <= ${me}${Vt}`,new Oe.ERR_OUT_OF_RANGE("value",hn,de)}!function Re(de,ae,me){ve(ae,"offset"),(void 0===de[ae]||void 0===de[ae+me])&&oe(ae,de.length-(me+1))}(Le,et,tn)}function ve(de,ae){if("number"!=typeof de)throw new Oe.ERR_INVALID_ARG_TYPE(ae,"number",de)}function oe(de,ae,me){throw Math.floor(de)!==de?(ve(de,me),new Oe.ERR_OUT_OF_RANGE(me||"offset","an integer",de)):ae<0?new Oe.ERR_BUFFER_OUT_OF_BOUNDS:new Oe.ERR_OUT_OF_RANGE(me||"offset",`>= ${me?1:0} and <= ${ae}`,de)}ge("ERR_BUFFER_OUT_OF_BOUNDS",function(de){return de?`${de} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ge("ERR_INVALID_ARG_TYPE",function(de,ae){return`The "${de}" argument must be of type number. Received type ${typeof ae}`},TypeError),ge("ERR_OUT_OF_RANGE",function(de,ae,me){let Le=`The value of "${de}" is out of range.`,et=me;return Number.isInteger(me)&&Math.abs(me)>2**32?et=ce(String(me)):"bigint"==typeof me&&(et=String(me),(me>BigInt(2)**BigInt(32)||me<-(BigInt(2)**BigInt(32)))&&(et=ce(et)),et+="n"),Le+=` It must be ${ae}. Received ${et}`,Le},RangeError);const Se=/[^+/0-9A-Za-z-_]/g;function nt(de,ae){let me;ae=ae||1/0;const Le=de.length;let et=null;const tn=[];for(let Vt=0;Vt55295&&me<57344){if(!et){if(me>56319){(ae-=3)>-1&&tn.push(239,191,189);continue}if(Vt+1===Le){(ae-=3)>-1&&tn.push(239,191,189);continue}et=me;continue}if(me<56320){(ae-=3)>-1&&tn.push(239,191,189),et=me;continue}me=65536+(et-55296<<10|me-56320)}else et&&(ae-=3)>-1&&tn.push(239,191,189);if(et=null,me<128){if((ae-=1)<0)break;tn.push(me)}else if(me<2048){if((ae-=2)<0)break;tn.push(me>>6|192,63&me|128)}else if(me<65536){if((ae-=3)<0)break;tn.push(me>>12|224,me>>6&63|128,63&me|128)}else{if(!(me<1114112))throw new Error("Invalid code point");if((ae-=4)<0)break;tn.push(me>>18|240,me>>12&63|128,me>>6&63|128,63&me|128)}}return tn}function yt(de){return i.toByteArray(function be(de){if((de=(de=de.split("=")[0]).trim().replace(Se,"")).length<2)return"";for(;de.length%4!=0;)de+="=";return de}(de))}function Et(de,ae,me,Le){let et;for(et=0;et=ae.length||et>=de.length);++et)ae[et+me]=de[et];return et}function rt(de,ae){return de instanceof ae||null!=de&&null!=de.constructor&&null!=de.constructor.name&&de.constructor.name===ae.name}function Mn(de){return de!=de}const qt=function(){const de="0123456789abcdef",ae=new Array(256);for(let me=0;me<16;++me){const Le=16*me;for(let et=0;et<16;++et)ae[Le+et]=de[me]+de[et]}return ae}();function S(de){return typeof BigInt>"u"?Xt:de}function Xt(){throw new Error("BigInt not supported")}},95731(ke,q,l){"use strict";var i=l(65992),g=l(79477),p=l(59705),D=l(52910);ke.exports=D||i.call(p,g)},98910(ke,q,l){"use strict";var i=l(65992),g=l(79477),p=l(95731);ke.exports=function(){return p(i,g,arguments)}},79477(ke){"use strict";ke.exports=Function.prototype.apply},59705(ke){"use strict";ke.exports=Function.prototype.call},61885(ke,q,l){"use strict";var i=l(65992),g=l(46758),p=l(59705),D=l(95731);ke.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new g("a function is required");return D(i,p,e)}},52910(ke){"use strict";ke.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},48128(ke,q,l){"use strict";var i=l(31358),g=l(4570),p=l(61885),D=l(98910);ke.exports=function(e){var A=p(arguments),h=1+e.length-(arguments.length-1);return i(A,h>0?h:0,!0)},g?g(ke.exports,"apply",{value:D}):ke.exports.apply=D},12773(ke,q,l){"use strict";var i=l(90258),g=l(61885),p=g([i("%String.prototype.indexOf%")]);ke.exports=function(o,e){var A=i(o,!!e);return"function"==typeof A&&p(o,".prototype.")>-1?g([A]):A}},3247(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(7045).Transform,p=l(78454).I,D=l(71993),o=l(41090);function e(A){g.call(this),this.hashMode="string"==typeof A,this.hashMode?this[A]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}D(e,g),e.prototype.update=function(A,h,d){var w=o(A,h),f=this._update(w);return this.hashMode?this:(d&&(f=this._toString(f,d)),f)},e.prototype.setAutoPadding=function(){},e.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},e.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},e.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},e.prototype._transform=function(A,h,d){var w;try{this.hashMode?this._update(A):this.push(this._update(A))}catch(f){w=f}finally{d(w)}},e.prototype._flush=function(A){var h;try{this.push(this.__final())}catch(d){h=d}A(h)},e.prototype._finalOrDigest=function(A){var h=this.__final()||i.alloc(0);return A&&(h=this._toString(h,A,!0)),h},e.prototype._toString=function(A,h,d){if(this._decoder||(this._decoder=new p(h),this._encoding=h),this._encoding!==h)throw new Error("can\u2019t switch encodings");var w=this._decoder.write(A);return d&&(w+=this._decoder.end()),w},ke.exports=e},24740(ke){!function(q){"use strict";var l={bytesToHex:function(p){return function i(p){return p.map(function(D){return function g(p,D){return p.length>D?p:Array(D-p.length+1).join("0")+p}(D.toString(16),2)}).join("")}(p)},hexToBytes:function(p){if(p.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===p.indexOf("0x")&&(p=p.slice(2)),p.match(/../g).map(function(D){return parseInt(D,16)})}};ke.exports?ke.exports=l:q.convertHex=l}(this)},10820(ke){!function(q){"use strict";var l={bytesToString:function(i){return i.map(function(g){return String.fromCharCode(g)}).join("")},stringToBytes:function(i){return i.split("").map(function(g){return g.charCodeAt(0)})}};l.UTF8={bytesToString:function(i){return decodeURIComponent(escape(l.bytesToString(i)))},stringToBytes:function(i){return l.stringToBytes(unescape(encodeURIComponent(i)))}},ke.exports?ke.exports=l:q.convertString=l}(this)},27637(ke,q,l){function j(Z){return Object.prototype.toString.call(Z)}q.isArray=function i(Z){return Array.isArray?Array.isArray(Z):"[object Array]"===j(Z)},q.isBoolean=function g(Z){return"boolean"==typeof Z},q.isNull=function p(Z){return null===Z},q.isNullOrUndefined=function D(Z){return null==Z},q.isNumber=function o(Z){return"number"==typeof Z},q.isString=function e(Z){return"string"==typeof Z},q.isSymbol=function A(Z){return"symbol"==typeof Z},q.isUndefined=function h(Z){return void 0===Z},q.isRegExp=function d(Z){return"[object RegExp]"===j(Z)},q.isObject=function w(Z){return"object"==typeof Z&&null!==Z},q.isDate=function f(Z){return"[object Date]"===j(Z)},q.isError=function F(Z){return"[object Error]"===j(Z)||Z instanceof Error},q.isFunction=function M(Z){return"function"==typeof Z},q.isPrimitive=function K(Z){return null===Z||"boolean"==typeof Z||"number"==typeof Z||"string"==typeof Z||"symbol"==typeof Z||typeof Z>"u"},q.isBuffer=l(83838).Buffer.isBuffer},87303(ke,q,l){var i=l(90518),g=l(89606);ke.exports=function(A){return new D(A)};var p={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 D(e){this.curveType=p[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function o(e,A,h){Array.isArray(e)||(e=e.toArray());var d=new Buffer(e);if(h&&d.length=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},67211(ke,q,l){"use strict";var i=l(71993),g=l(34725),p=l(36636),D=l(25443),o=l(3247);function e(A){o.call(this,"digest"),this._hash=A}i(e,o),e.prototype._update=function(A){this._hash.update(A)},e.prototype._final=function(){return this._hash.digest()},ke.exports=function(h){return"md5"===(h=h.toLowerCase())?new g:"rmd160"===h||"ripemd160"===h?new p:new e(D(h))}},83407(ke,q,l){var i=l(34725);ke.exports=function(g){return(new i).update(g).digest()}},56432(ke,q,l){"use strict";var i=l(71993),g=l(90509),p=l(3247),D=l(27054).Buffer,o=l(83407),e=l(36636),A=l(25443),h=D.alloc(128);function d(w,f){p.call(this,"digest"),"string"==typeof f&&(f=D.from(f));var F="sha512"===w||"sha384"===w?128:64;this._alg=w,this._key=f,f.length>F?f=("rmd160"===w?new e:A(w)).update(f).digest():f.lengtho?h=A(h):h.length3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new p("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new p("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new p("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new p("`loose`, if provided, must be a boolean");var d=arguments.length>3?arguments[3]:null,w=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,F=arguments.length>6&&arguments[6],M=!!D&&D(e,A);if(i)i(e,A,{configurable:null===f&&M?M.configurable:!f,enumerable:null===d&&M?M.enumerable:!d,value:h,writable:null===w&&M?M.writable:!w});else{if(!F&&(d||w||f))throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[A]=h}}},71549(ke,q,l){"use strict";q.utils=l(85671),q.Cipher=l(10219),q.DES=l(64166),q.CBC=l(88800),q.EDE=l(62122)},88800(ke,q,l){"use strict";var i=l(39210),g=l(71993),p={};function D(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var A=0;A0;A--)o+=this._buffer(D,o),e+=this._flushBuffer(h,e);return o+=this._buffer(D,o),h},g.prototype.final=function(D){var o,e;return D&&(o=this.update(D)),e="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),o?o.concat(e):e},g.prototype._pad=function(D,o){if(0===o)return!1;for(;o>>1];f=p.r28shl(f,K),F=p.r28shl(F,K),p.pc2(f,F,d.keys,M)}},e.prototype._update=function(d,w,f,F){var M=this._desState,K=p.readUInt32BE(d,w),j=p.readUInt32BE(d,w+4);p.ip(K,j,M.tmp,0),K=M.tmp[0],j=M.tmp[1],"encrypt"===this.type?this._encrypt(M,K,j,M.tmp,0):this._decrypt(M,K,j,M.tmp,0),j=M.tmp[1],p.writeUInt32BE(f,K=M.tmp[0],F),p.writeUInt32BE(f,j,F+4)},e.prototype._pad=function(d,w){if(!1===this.padding)return!1;for(var f=d.length-w,F=w;F>>0,K=ie}p.rip(j,K,F,M)},e.prototype._decrypt=function(d,w,f,F,M){for(var K=f,j=w,Z=d.keys.length-2;Z>=0;Z-=2){var ee=d.keys[Z],V=d.keys[Z+1];p.expand(K,d.tmp,0);var Q=p.substitute(ee^=d.tmp[0],V^=d.tmp[1]),ie=K;K=(j^p.permute(Q))>>>0,j=ie}p.rip(K,j,F,M)}},62122(ke,q,l){"use strict";var i=l(39210),g=l(71993),p=l(10219),D=l(64166);function o(A,h){i.equal(h.length,24,"Invalid key length");var d=h.slice(0,8),w=h.slice(8,16),f=h.slice(16,24);this.ciphers="encrypt"===A?[D.create({type:"encrypt",key:d}),D.create({type:"decrypt",key:w}),D.create({type:"encrypt",key:f})]:[D.create({type:"decrypt",key:f}),D.create({type:"encrypt",key:w}),D.create({type:"decrypt",key:d})]}function e(A){p.call(this,A);var h=new o(this.type,this.options.key);this._edeState=h}g(e,p),ke.exports=e,e.create=function(h){return new e(h)},e.prototype._update=function(h,d,w,f){var F=this._edeState;F.ciphers[0]._update(h,d,w,f),F.ciphers[1]._update(w,f,w,f),F.ciphers[2]._update(w,f,w,f)},e.prototype._pad=D.prototype._pad,e.prototype._unpad=D.prototype._unpad},85671(ke,q){"use strict";q.readUInt32BE=function(D,o){return(D[0+o]<<24|D[1+o]<<16|D[2+o]<<8|D[3+o])>>>0},q.writeUInt32BE=function(D,o,e){D[0+e]=o>>>24,D[1+e]=o>>>16&255,D[2+e]=o>>>8&255,D[3+e]=255&o},q.ip=function(D,o,e,A){for(var h=0,d=0,w=6;w>=0;w-=2){for(var f=0;f<=24;f+=8)h<<=1,h|=o>>>f+w&1;for(f=0;f<=24;f+=8)h<<=1,h|=D>>>f+w&1}for(w=6;w>=0;w-=2){for(f=1;f<=25;f+=8)d<<=1,d|=o>>>f+w&1;for(f=1;f<=25;f+=8)d<<=1,d|=D>>>f+w&1}e[A+0]=h>>>0,e[A+1]=d>>>0},q.rip=function(D,o,e,A){for(var h=0,d=0,w=0;w<4;w++)for(var f=24;f>=0;f-=8)h<<=1,h|=o>>>f+w&1,h<<=1,h|=D>>>f+w&1;for(w=4;w<8;w++)for(f=24;f>=0;f-=8)d<<=1,d|=o>>>f+w&1,d<<=1,d|=D>>>f+w&1;e[A+0]=h>>>0,e[A+1]=d>>>0},q.pc1=function(D,o,e,A){for(var h=0,d=0,w=7;w>=5;w--){for(var f=0;f<=24;f+=8)h<<=1,h|=o>>f+w&1;for(f=0;f<=24;f+=8)h<<=1,h|=D>>f+w&1}for(f=0;f<=24;f+=8)h<<=1,h|=o>>f+w&1;for(w=1;w<=3;w++){for(f=0;f<=24;f+=8)d<<=1,d|=o>>f+w&1;for(f=0;f<=24;f+=8)d<<=1,d|=D>>f+w&1}for(f=0;f<=24;f+=8)d<<=1,d|=D>>f+w&1;e[A+0]=h>>>0,e[A+1]=d>>>0},q.r28shl=function(D,o){return D<>>28-o};var l=[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];q.pc2=function(D,o,e,A){for(var h=0,d=0,w=l.length>>>1,f=0;f>>l[f]&1;for(f=w;f>>l[f]&1;e[A+0]=h>>>0,e[A+1]=d>>>0},q.expand=function(D,o,e){var A=0,h=0;A=(1&D)<<5|D>>>27;for(var d=23;d>=15;d-=4)A<<=6,A|=D>>>d&63;for(d=11;d>=3;d-=4)h|=D>>>d&63,h<<=6;h|=(31&D)<<1|D>>>31,o[e+0]=A>>>0,o[e+1]=h>>>0};var i=[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];q.substitute=function(D,o){for(var e=0,A=0;A<4;A++)e<<=4,e|=i[64*A+(D>>>18-6*A&63)];for(A=0;A<4;A++)e<<=4,e|=i[256+64*A+(o>>>18-6*A&63)];return e>>>0};var g=[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];q.permute=function(D){for(var o=0,e=0;e>>g[e]&1;return o>>>0},q.padSplit=function(D,o,e){for(var A=D.toString(2);A.length_e;)se.ishrn(1);if(se.isEven()&&se.iadd(e),se.testn(1)||se.iadd(A),ye.cmp(A)){if(!ye.cmp(h))for(;se.mod(f).cmp(F);)se.iadd(j)}else for(;se.mod(p).cmp(K);)se.iadd(j);if(Q(pe=se.shrn(1))&&Q(se)&&$(pe)&&$(se)&&o.test(pe)&&o.test(se))return se}}},38280(ke,q,l){!function(i,g){"use strict";function p(L,t){if(!L)throw new Error(t||"Assertion failed")}function D(L,t){L.super_=t;var s=function(){};s.prototype=t.prototype,L.prototype=new s,L.prototype.constructor=L}function o(L,t,s){if(o.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,null!==L&&(("le"===t||"be"===t)&&(s=t,t=10),this._init(L||0,t||10,s||"be"))}var e;"object"==typeof i?i.exports=o:g.BN=o,o.BN=o,o.wordSize=26;try{e=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:l(66089).Buffer}catch{}function A(L,t){var s=L.charCodeAt(t);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},80243(ke){"use strict";var q={single_source_shortest_paths:function(l,i,g){var p={},D={};D[i]=0;var e,A,h,d,w,F,o=q.PriorityQueue.make();for(o.push(i,0);!o.empty();)for(h in d=(e=o.pop()).cost,w=l[A=e.value]||{})w.hasOwnProperty(h)&&(F=d+w[h],(typeof D[h]>"u"||D[h]>F)&&(D[h]=F,o.push(h,F),p[h]=A));if(typeof g<"u"&&typeof D[g]>"u"){var j=["Could not find a path from ",i," to ",g,"."].join("");throw new Error(j)}return p},extract_shortest_path_from_predecessor_list:function(l,i){for(var g=[],p=i;p;)g.push(p),p=l[p];return g.reverse(),g},find_path:function(l,i,g){var p=q.single_source_shortest_paths(l,i,g);return q.extract_shortest_path_from_predecessor_list(p,g)},PriorityQueue:{make:function(l){var p,i=q.PriorityQueue,g={};for(p in l=l||{},i)i.hasOwnProperty(p)&&(g[p]=i[p]);return g.queue=[],g.sorter=l.sorter||i.default_sorter,g},default_sorter:function(l,i){return l.cost-i.cost},push:function(l,i){this.queue.push({value:l,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};ke.exports=q},63361(ke,q,l){"use strict";var p,i=l(61885),g=l(83798);try{p=[].__proto__===Array.prototype}catch(A){if(!A||"object"!=typeof A||!("code"in A)||"ERR_PROTO_ACCESS"!==A.code)throw A}var D=!!p&&g&&g(Object.prototype,"__proto__"),o=Object,e=o.getPrototypeOf;ke.exports=D&&"function"==typeof D.get?i([D.get]):"function"==typeof e&&function(h){return e(null==h?h:o(h))}},90518(ke,q,l){"use strict";var i=q;i.version=l(1636).rE,i.utils=l(3136),i.rand=l(35294),i.curve=l(8729),i.curves=l(23401),i.ec=l(29042),i.eddsa=l(83045)},98828(ke,q,l){"use strict";var i=l(88723),g=l(3136),p=g.getNAF,D=g.getJSF,o=g.assert;function e(h,d){this.type=h,this.p=new i(d.p,16),this.red=d.prime?i.red(d.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=d.n&&new i(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.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 w=this.n&&this.p.div(this.n);!w||w.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function A(h,d){this.curve=h,this.type=d,this.precomputed=null}ke.exports=e,e.prototype.point=function(){throw new Error("Not implemented")},e.prototype.validate=function(){throw new Error("Not implemented")},e.prototype._fixedNafMul=function(d,w){o(d.precomputed);var f=d._getDoubles(),F=p(w,1,this._bitLength),M=(1<=j;ee--)Z=(Z<<1)+F[ee];K.push(Z)}for(var V=this.jpoint(null,null,null),Q=this.jpoint(null,null,null),$=M;$>0;$--){for(j=0;j=0;Z--){for(var ee=0;Z>=0&&0===K[Z];Z--)ee++;if(Z>=0&&ee++,j=j.dblp(ee),Z<0)break;var V=K[Z];o(0!==V),j="affine"===d.type?j.mixedAdd(V>0?M[V-1>>1]:M[-V-1>>1].neg()):j.add(V>0?M[V-1>>1]:M[-V-1>>1].neg())}return"affine"===d.type?j.toP():j},e.prototype._wnafMulAdd=function(d,w,f,F,M){var V,Q,$,K=this._wnafT1,j=this._wnafT2,Z=this._wnafT3,ee=0;for(V=0;V=1;V-=2){var _e=V-1,ye=V;if(1===K[_e]&&1===K[ye]){var se=[w[_e],null,null,w[ye]];0===w[_e].y.cmp(w[ye].y)?(se[1]=w[_e].add(w[ye]),se[2]=w[_e].toJ().mixedAdd(w[ye].neg())):0===w[_e].y.cmp(w[ye].y.redNeg())?(se[1]=w[_e].toJ().mixedAdd(w[ye]),se[2]=w[_e].add(w[ye].neg())):(se[1]=w[_e].toJ().mixedAdd(w[ye]),se[2]=w[_e].toJ().mixedAdd(w[ye].neg()));var pe=[-3,-1,-5,-7,0,7,5,1,3],Ee=D(f[_e],f[ye]);for(ee=Math.max(Ee[0].length,ee),Z[_e]=new Array(ee),Z[ye]=new Array(ee),Q=0;Q=0;V--){for(var u=0;V>=0;){var _=!0;for(Q=0;Q=0&&u++,s=s.dblp(u),V<0)break;for(Q=0;Q0?$=j[Q][T-1>>1]:T<0&&($=j[Q][-T-1>>1].neg()),s="affine"===$.type?s.mixedAdd($):s.add($))}}for(V=0;V=Math.ceil((d.bitLength()+1)/w.step)},A.prototype._getDoubles=function(d,w){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var f=[this],F=this,M=0;M":""},A.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},A.prototype._extDbl=function(){var d=this.x.redSqr(),w=this.y.redSqr(),f=this.z.redSqr();f=f.redIAdd(f);var F=this.curve._mulA(d),M=this.x.redAdd(this.y).redSqr().redISub(d).redISub(w),K=F.redAdd(w),j=K.redSub(f),Z=F.redSub(w),ee=M.redMul(j),V=K.redMul(Z),Q=M.redMul(Z),$=j.redMul(K);return this.curve.point(ee,V,$,Q)},A.prototype._projDbl=function(){var F,M,K,j,Z,ee,d=this.x.redAdd(this.y).redSqr(),w=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var V=(j=this.curve._mulA(w)).redAdd(f);this.zOne?(F=d.redSub(w).redSub(f).redMul(V.redSub(this.curve.two)),M=V.redMul(j.redSub(f)),K=V.redSqr().redSub(V).redSub(V)):(Z=this.z.redSqr(),ee=V.redSub(Z).redISub(Z),F=d.redSub(w).redISub(f).redMul(ee),M=V.redMul(j.redSub(f)),K=V.redMul(ee))}else j=w.redAdd(f),Z=this.curve._mulC(this.z).redSqr(),ee=j.redSub(Z).redSub(Z),F=this.curve._mulC(d.redISub(j)).redMul(ee),M=this.curve._mulC(j).redMul(w.redISub(f)),K=j.redMul(ee);return this.curve.point(F,M,K)},A.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},A.prototype._extAdd=function(d){var w=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),f=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),F=this.t.redMul(this.curve.dd).redMul(d.t),M=this.z.redMul(d.z.redAdd(d.z)),K=f.redSub(w),j=M.redSub(F),Z=M.redAdd(F),ee=f.redAdd(w),V=K.redMul(j),Q=Z.redMul(ee),$=K.redMul(ee),ie=j.redMul(Z);return this.curve.point(V,Q,ie,$)},A.prototype._projAdd=function(d){var Q,$,w=this.z.redMul(d.z),f=w.redSqr(),F=this.x.redMul(d.x),M=this.y.redMul(d.y),K=this.curve.d.redMul(F).redMul(M),j=f.redSub(K),Z=f.redAdd(K),ee=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(F).redISub(M),V=w.redMul(j).redMul(ee);return this.curve.twisted?(Q=w.redMul(Z).redMul(M.redSub(this.curve._mulA(F))),$=j.redMul(Z)):(Q=w.redMul(Z).redMul(M.redSub(F)),$=this.curve._mulC(j).redMul(Z)),this.curve.point(V,Q,$)},A.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},A.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},A.prototype.mulAdd=function(d,w,f){return this.curve._wnafMulAdd(1,[this,w],[d,f],2,!1)},A.prototype.jmulAdd=function(d,w,f){return this.curve._wnafMulAdd(1,[this,w],[d,f],2,!0)},A.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},A.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},A.prototype.getX=function(){return this.normalize(),this.x.fromRed()},A.prototype.getY=function(){return this.normalize(),this.y.fromRed()},A.prototype.eq=function(d){return this===d||0===this.getX().cmp(d.getX())&&0===this.getY().cmp(d.getY())},A.prototype.eqXToP=function(d){var w=d.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(w))return!0;for(var f=d.clone(),F=this.curve.redN.redMul(this.z);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(w.redIAdd(F),0===this.x.cmp(w))return!0}},A.prototype.toP=A.prototype.normalize,A.prototype.mixedAdd=A.prototype.add},8729(ke,q,l){"use strict";var i=q;i.base=l(98828),i.short=l(68075),i.mont=l(64947),i.edwards=l(55537)},64947(ke,q,l){"use strict";var i=l(88723),g=l(71993),p=l(98828),D=l(3136);function o(A){p.call(this,"mont",A),this.a=new i(A.a,16).toRed(this.red),this.b=new i(A.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function e(A,h,d){p.BasePoint.call(this,A,"projective"),null===h&&null===d?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(h,16),this.z=new i(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}g(o,p),ke.exports=o,o.prototype.validate=function(h){var d=h.normalize().x,w=d.redSqr(),f=w.redMul(d).redAdd(w.redMul(this.a)).redAdd(d);return 0===f.redSqrt().redSqr().cmp(f)},g(e,p.BasePoint),o.prototype.decodePoint=function(h,d){return this.point(D.toArray(h,d),1)},o.prototype.point=function(h,d){return new e(this,h,d)},o.prototype.pointFromJSON=function(h){return e.fromJSON(this,h)},e.prototype.precompute=function(){},e.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},e.fromJSON=function(h,d){return new e(h,d[0],d[1]||h.one)},e.prototype.inspect=function(){return this.isInfinity()?"":""},e.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},e.prototype.dbl=function(){var d=this.x.redAdd(this.z).redSqr(),f=this.x.redSub(this.z).redSqr(),F=d.redSub(f),M=d.redMul(f),K=F.redMul(f.redAdd(this.curve.a24.redMul(F)));return this.curve.point(M,K)},e.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.diffAdd=function(h,d){var w=this.x.redAdd(this.z),f=this.x.redSub(this.z),F=h.x.redAdd(h.z),K=h.x.redSub(h.z).redMul(w),j=F.redMul(f),Z=d.z.redMul(K.redAdd(j).redSqr()),ee=d.x.redMul(K.redISub(j).redSqr());return this.curve.point(Z,ee)},e.prototype.mul=function(h){for(var d=h.clone(),w=this,f=this.curve.point(null,null),M=[];0!==d.cmpn(0);d.iushrn(1))M.push(d.andln(1));for(var K=M.length-1;K>=0;K--)0===M[K]?(w=w.diffAdd(f,this),f=f.dbl()):(f=w.diffAdd(f,this),w=w.dbl());return f},e.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.eq=function(h){return 0===this.getX().cmp(h.getX())},e.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},e.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},68075(ke,q,l){"use strict";var i=l(3136),g=l(88723),p=l(71993),D=l(98828),o=i.assert;function e(d){D.call(this,"short",d),this.a=new g(d.a,16).toRed(this.red),this.b=new g(d.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(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function A(d,w,f,F){D.BasePoint.call(this,d,"affine"),null===w&&null===f?(this.x=null,this.y=null,this.inf=!0):(this.x=new g(w,16),this.y=new g(f,16),F&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(d,w,f,F){D.BasePoint.call(this,d,"jacobian"),null===w&&null===f&&null===F?(this.x=this.curve.one,this.y=this.curve.one,this.z=new g(0)):(this.x=new g(w,16),this.y=new g(f,16),this.z=new g(F,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}p(e,D),ke.exports=e,e.prototype._getEndomorphism=function(w){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var f,F;if(w.beta)f=new g(w.beta,16).toRed(this.red);else{var M=this._getEndoRoots(this.p);f=(f=M[0].cmp(M[1])<0?M[0]:M[1]).toRed(this.red)}if(w.lambda)F=new g(w.lambda,16);else{var K=this._getEndoRoots(this.n);0===this.g.mul(K[0]).x.cmp(this.g.x.redMul(f))?F=K[0]:o(0===this.g.mul(F=K[1]).x.cmp(this.g.x.redMul(f)))}return{beta:f,lambda:F,basis:w.basis?w.basis.map(function(Z){return{a:new g(Z.a,16),b:new g(Z.b,16)}}):this._getEndoBasis(F)}}},e.prototype._getEndoRoots=function(w){var f=w===this.p?this.red:g.mont(w),F=new g(2).toRed(f).redInvm(),M=F.redNeg(),K=new g(3).toRed(f).redNeg().redSqrt().redMul(F);return[M.redAdd(K).fromRed(),M.redSub(K).fromRed()]},e.prototype._getEndoBasis=function(w){for(var V,Q,$,ie,_e,ye,se,Ee,L,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),F=w,M=this.n.clone(),K=new g(1),j=new g(0),Z=new g(0),ee=new g(1),pe=0;0!==F.cmpn(0);){var t=M.div(F);Ee=M.sub(t.mul(F)),L=Z.sub(t.mul(K));var s=ee.sub(t.mul(j));if(!$&&Ee.cmp(f)<0)V=se.neg(),Q=K,$=Ee.neg(),ie=L;else if($&&2===++pe)break;se=Ee,M=F,F=Ee,Z=K,K=L,ee=j,j=s}_e=Ee.neg(),ye=L;var m=$.sqr().add(ie.sqr());return _e.sqr().add(ye.sqr()).cmp(m)>=0&&(_e=V,ye=Q),$.negative&&($=$.neg(),ie=ie.neg()),_e.negative&&(_e=_e.neg(),ye=ye.neg()),[{a:$,b:ie},{a:_e,b:ye}]},e.prototype._endoSplit=function(w){var f=this.endo.basis,F=f[0],M=f[1],K=M.b.mul(w).divRound(this.n),j=F.b.neg().mul(w).divRound(this.n),Z=K.mul(F.a),ee=j.mul(M.a),V=K.mul(F.b),Q=j.mul(M.b);return{k1:w.sub(Z).sub(ee),k2:V.add(Q).neg()}},e.prototype.pointFromX=function(w,f){(w=new g(w,16)).red||(w=w.toRed(this.red));var F=w.redSqr().redMul(w).redIAdd(w.redMul(this.a)).redIAdd(this.b),M=F.redSqrt();if(0!==M.redSqr().redSub(F).cmp(this.zero))throw new Error("invalid point");var K=M.fromRed().isOdd();return(f&&!K||!f&&K)&&(M=M.redNeg()),this.point(w,M)},e.prototype.validate=function(w){if(w.inf)return!0;var f=w.x,F=w.y,M=this.a.redMul(f),K=f.redSqr().redMul(f).redIAdd(M).redIAdd(this.b);return 0===F.redSqr().redISub(K).cmpn(0)},e.prototype._endoWnafMulAdd=function(w,f,F){for(var M=this._endoWnafT1,K=this._endoWnafT2,j=0;j":""},A.prototype.isInfinity=function(){return this.inf},A.prototype.add=function(w){if(this.inf)return w;if(w.inf)return this;if(this.eq(w))return this.dbl();if(this.neg().eq(w))return this.curve.point(null,null);if(0===this.x.cmp(w.x))return this.curve.point(null,null);var f=this.y.redSub(w.y);0!==f.cmpn(0)&&(f=f.redMul(this.x.redSub(w.x).redInvm()));var F=f.redSqr().redISub(this.x).redISub(w.x),M=f.redMul(this.x.redSub(F)).redISub(this.y);return this.curve.point(F,M)},A.prototype.dbl=function(){if(this.inf)return this;var w=this.y.redAdd(this.y);if(0===w.cmpn(0))return this.curve.point(null,null);var f=this.curve.a,F=this.x.redSqr(),M=w.redInvm(),K=F.redAdd(F).redIAdd(F).redIAdd(f).redMul(M),j=K.redSqr().redISub(this.x.redAdd(this.x)),Z=K.redMul(this.x.redSub(j)).redISub(this.y);return this.curve.point(j,Z)},A.prototype.getX=function(){return this.x.fromRed()},A.prototype.getY=function(){return this.y.fromRed()},A.prototype.mul=function(w){return w=new g(w,16),this.isInfinity()?this:this._hasDoubles(w)?this.curve._fixedNafMul(this,w):this.curve.endo?this.curve._endoWnafMulAdd([this],[w]):this.curve._wnafMul(this,w)},A.prototype.mulAdd=function(w,f,F){var M=[this,f],K=[w,F];return this.curve.endo?this.curve._endoWnafMulAdd(M,K):this.curve._wnafMulAdd(1,M,K,2)},A.prototype.jmulAdd=function(w,f,F){var M=[this,f],K=[w,F];return this.curve.endo?this.curve._endoWnafMulAdd(M,K,!0):this.curve._wnafMulAdd(1,M,K,2,!0)},A.prototype.eq=function(w){return this===w||this.inf===w.inf&&(this.inf||0===this.x.cmp(w.x)&&0===this.y.cmp(w.y))},A.prototype.neg=function(w){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(w&&this.precomputed){var F=this.precomputed,M=function(K){return K.neg()};f.precomputed={naf:F.naf&&{wnd:F.naf.wnd,points:F.naf.points.map(M)},doubles:F.doubles&&{step:F.doubles.step,points:F.doubles.points.map(M)}}}return f},A.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},p(h,D.BasePoint),e.prototype.jpoint=function(w,f,F){return new h(this,w,f,F)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var w=this.z.redInvm(),f=w.redSqr(),F=this.x.redMul(f),M=this.y.redMul(f).redMul(w);return this.curve.point(F,M)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(w){if(this.isInfinity())return w;if(w.isInfinity())return this;var f=w.z.redSqr(),F=this.z.redSqr(),M=this.x.redMul(f),K=w.x.redMul(F),j=this.y.redMul(f.redMul(w.z)),Z=w.y.redMul(F.redMul(this.z)),ee=M.redSub(K),V=j.redSub(Z);if(0===ee.cmpn(0))return 0!==V.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Q=ee.redSqr(),$=Q.redMul(ee),ie=M.redMul(Q),_e=V.redSqr().redIAdd($).redISub(ie).redISub(ie),ye=V.redMul(ie.redISub(_e)).redISub(j.redMul($)),se=this.z.redMul(w.z).redMul(ee);return this.curve.jpoint(_e,ye,se)},h.prototype.mixedAdd=function(w){if(this.isInfinity())return w.toJ();if(w.isInfinity())return this;var f=this.z.redSqr(),F=this.x,M=w.x.redMul(f),K=this.y,j=w.y.redMul(f).redMul(this.z),Z=F.redSub(M),ee=K.redSub(j);if(0===Z.cmpn(0))return 0!==ee.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var V=Z.redSqr(),Q=V.redMul(Z),$=F.redMul(V),ie=ee.redSqr().redIAdd(Q).redISub($).redISub($),_e=ee.redMul($.redISub(ie)).redISub(K.redMul(Q)),ye=this.z.redMul(Z);return this.curve.jpoint(ie,_e,ye)},h.prototype.dblp=function(w){if(0===w)return this;if(this.isInfinity())return this;if(!w)return this.dbl();var f;if(this.curve.zeroA||this.curve.threeA){var F=this;for(f=0;f=0)return!1;if(F.redIAdd(K),0===this.x.cmp(F))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},23401(ke,q,l){"use strict";var h,i=q,g=l(52529),p=l(8729),o=l(3136).assert;function e(d){this.curve="short"===d.type?new p.short(d):"edwards"===d.type?new p.edwards(d):new p.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function A(d,w){Object.defineProperty(i,d,{configurable:!0,enumerable:!0,get:function(){var f=new e(w);return Object.defineProperty(i,d,{configurable:!0,enumerable:!0,value:f}),f}})}i.PresetCurve=e,A("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:g.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),A("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:g.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),A("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:g.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),A("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:g.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"]}),A("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:g.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"]}),A("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:g.sha256,gRed:!1,g:["9"]}),A("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:g.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{h=l(51416)}catch{h=void 0}A("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:g.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",h]})},29042(ke,q,l){"use strict";var i=l(88723),g=l(33556),p=l(3136),D=l(23401),o=l(35294),e=p.assert,A=l(60541),h=l(40484);function d(w){if(!(this instanceof d))return new d(w);"string"==typeof w&&(e(Object.prototype.hasOwnProperty.call(D,w),"Unknown curve "+w),w=D[w]),w instanceof D.PresetCurve&&(w={curve:w}),this.curve=w.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=w.curve.g,this.g.precompute(w.curve.n.bitLength()+1),this.hash=w.hash||w.curve.hash}ke.exports=d,d.prototype.keyPair=function(f){return new A(this,f)},d.prototype.keyFromPrivate=function(f,F){return A.fromPrivate(this,f,F)},d.prototype.keyFromPublic=function(f,F){return A.fromPublic(this,f,F)},d.prototype.genKeyPair=function(f){f||(f={});for(var F=new g({hash:this.hash,pers:f.pers,persEnc:f.persEnc||"utf8",entropy:f.entropy||o(this.hash.hmacStrength),entropyEnc:f.entropy&&f.entropyEnc||"utf8",nonce:this.n.toArray()}),M=this.n.byteLength(),K=this.n.sub(new i(2));;){var j=new i(F.generate(M));if(!(j.cmp(K)>0))return j.iaddn(1),this.keyFromPrivate(j)}},d.prototype._truncateToN=function(f,F,M){var K;if(i.isBN(f)||"number"==typeof f)K=(f=new i(f,16)).byteLength();else if("object"==typeof f)K=f.length,f=new i(f,16);else{var j=f.toString();K=j.length+1>>>1,f=new i(j,16)}"number"!=typeof M&&(M=8*K);var Z=M-this.n.bitLength();return Z>0&&(f=f.ushrn(Z)),!F&&f.cmp(this.n)>=0?f.sub(this.n):f},d.prototype.sign=function(f,F,M,K){if("object"==typeof M&&(K=M,M=null),K||(K={}),"string"!=typeof f&&"number"!=typeof f&&!i.isBN(f)){e("object"==typeof f&&f&&"number"==typeof f.length,"Expected message to be an array-like, a hex string, or a BN instance"),e(f.length>>>0===f.length);for(var j=0;j=0)){var ye=this.g.mul(_e);if(!ye.isInfinity()){var se=ye.getX(),pe=se.umod(this.n);if(0!==pe.cmpn(0)){var Ee=_e.invm(this.n).mul(pe.mul(F.getPrivate()).iadd(f));if(0!==(Ee=Ee.umod(this.n)).cmpn(0)){var L=(ye.getY().isOdd()?1:0)|(0!==se.cmp(pe)?2:0);return K.canonical&&Ee.cmp(this.nh)>0&&(Ee=this.n.sub(Ee),L^=1),new h({r:pe,s:Ee,recoveryParam:L})}}}}}},d.prototype.verify=function(f,F,M,K,j){j||(j={}),f=this._truncateToN(f,!1,j.msgBitLength),M=this.keyFromPublic(M,K);var Z=(F=new h(F,"hex")).r,ee=F.s;if(Z.cmpn(1)<0||Z.cmp(this.n)>=0||ee.cmpn(1)<0||ee.cmp(this.n)>=0)return!1;var ie,V=ee.invm(this.n),Q=V.mul(f).umod(this.n),$=V.mul(Z).umod(this.n);return this.curve._maxwellTrick?!(ie=this.g.jmulAdd(Q,M.getPublic(),$)).isInfinity()&&ie.eqXToP(Z):!(ie=this.g.mulAdd(Q,M.getPublic(),$)).isInfinity()&&0===ie.getX().umod(this.n).cmp(Z)},d.prototype.recoverPubKey=function(w,f,F,M){e((3&F)===F,"The recovery param is more than two bits"),f=new h(f,M);var K=this.n,j=new i(w),Z=f.r,ee=f.s,V=1&F,Q=F>>1;if(Z.cmp(this.curve.p.umod(this.curve.n))>=0&&Q)throw new Error("Unable to find sencond key candinate");Z=this.curve.pointFromX(Q?Z.add(this.curve.n):Z,V);var $=f.r.invm(K),ie=K.sub(j).mul($).umod(K),_e=ee.mul($).umod(K);return this.g.mulAdd(ie,Z,_e)},d.prototype.getKeyRecoveryParam=function(w,f,F,M){if(null!==(f=new h(f,M)).recoveryParam)return f.recoveryParam;for(var K=0;K<4;K++){var j;try{j=this.recoverPubKey(w,f,K)}catch{continue}if(j.eq(F))return K}throw new Error("Unable to find valid recovery factor")}},60541(ke,q,l){"use strict";var i=l(88723),p=l(3136).assert;function D(o,e){this.ec=o,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}ke.exports=D,D.fromPublic=function(e,A,h){return A instanceof D?A:new D(e,{pub:A,pubEnc:h})},D.fromPrivate=function(e,A,h){return A instanceof D?A:new D(e,{priv:A,privEnc:h})},D.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}},D.prototype.getPublic=function(e,A){return"string"==typeof e&&(A=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),A?this.pub.encode(A,e):this.pub},D.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},D.prototype._importPrivate=function(e,A){this.priv=new i(e,A||16),this.priv=this.priv.umod(this.ec.curve.n)},D.prototype._importPublic=function(e,A){if(e.x||e.y)return"mont"===this.ec.curve.type?p(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&p(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,A)},D.prototype.derive=function(e){return e.validate()||p(e.validate(),"public point not validated"),e.mul(this.priv).getX()},D.prototype.sign=function(e,A,h){return this.ec.sign(e,this,A,h)},D.prototype.verify=function(e,A,h){return this.ec.verify(e,A,this,void 0,h)},D.prototype.inspect=function(){return""}},40484(ke,q,l){"use strict";var i=l(88723),g=l(3136),p=g.assert;function D(d,w){if(d instanceof D)return d;this._importDER(d,w)||(p(d.r&&d.s,"Signature without r or s"),this.r=new i(d.r,16),this.s=new i(d.s,16),this.recoveryParam=void 0===d.recoveryParam?null:d.recoveryParam)}function o(){this.place=0}function e(d,w){var f=d[w.place++];if(!(128&f))return f;var F=15&f;if(0===F||F>4||0===d[w.place])return!1;for(var M=0,K=0,j=w.place;K>>=0;return!(M<=127)&&(w.place=j,M)}function A(d){for(var w=0,f=d.length-1;!d[w]&&!(128&d[w+1])&&w>>3);for(d.push(128|f);--f;)d.push(w>>>(f<<3)&255);d.push(w)}}ke.exports=D,D.prototype._importDER=function(w,f){w=g.toArray(w,f);var F=new o;if(48!==w[F.place++])return!1;var M=e(w,F);if(!1===M||M+F.place!==w.length||2!==w[F.place++])return!1;var K=e(w,F);if(!1===K||128&w[F.place])return!1;var j=w.slice(F.place,K+F.place);if(F.place+=K,2!==w[F.place++])return!1;var Z=e(w,F);if(!1===Z||w.length!==Z+F.place||128&w[F.place])return!1;var ee=w.slice(F.place,Z+F.place);if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}if(0===ee[0]){if(!(128&ee[1]))return!1;ee=ee.slice(1)}return this.r=new i(j),this.s=new i(ee),this.recoveryParam=null,!0},D.prototype.toDER=function(w){var f=this.r.toArray(),F=this.s.toArray();for(128&f[0]&&(f=[0].concat(f)),128&F[0]&&(F=[0].concat(F)),f=A(f),F=A(F);!(F[0]||128&F[1]);)F=F.slice(1);var M=[2];h(M,f.length),(M=M.concat(f)).push(2),h(M,F.length);var K=M.concat(F),j=[48];return h(j,K.length),j=j.concat(K),g.encode(j,w)}},83045(ke,q,l){"use strict";var i=l(52529),g=l(23401),p=l(3136),D=p.assert,o=p.parseBytes,e=l(87222),A=l(5451);function h(d){if(D("ed25519"===d,"only tested with ed25519 so far"),!(this instanceof h))return new h(d);this.curve=d=g[d].curve,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=i.sha512}ke.exports=h,h.prototype.sign=function(w,f){w=o(w);var F=this.keyFromSecret(f),M=this.hashInt(F.messagePrefix(),w),K=this.g.mul(M),j=this.encodePoint(K),Z=this.hashInt(j,F.pubBytes(),w).mul(F.priv()),ee=M.add(Z).umod(this.curve.n);return this.makeSignature({R:K,S:ee,Rencoded:j})},h.prototype.verify=function(w,f,F){if(w=o(w),(f=this.makeSignature(f)).S().gte(f.eddsa.curve.n)||f.S().isNeg())return!1;var M=this.keyFromPublic(F),K=this.hashInt(f.Rencoded(),M.pubBytes(),w),j=this.g.mul(f.S());return f.R().add(M.pub().mul(K)).eq(j)},h.prototype.hashInt=function(){for(var w=this.hash(),f=0;f(j>>1)-1?(j>>1)-V:V):ee=0,M[K]=ee,Z.iushrn(1)}return M},i.getJSF=function e(w,f){var F=[[],[]];w=w.clone(),f=f.clone();for(var j,M=0,K=0;w.cmpn(-M)>0||f.cmpn(-K)>0;){var V,Q,Z=w.andln(3)+M&3,ee=f.andln(3)+K&3;3===Z&&(Z=-1),3===ee&&(ee=-1),V=1&Z?3!=(j=w.andln(7)+M&7)&&5!==j||2!==ee?Z:-Z:0,F[0].push(V),Q=1&ee?3!=(j=f.andln(7)+K&7)&&5!==j||2!==Z?ee:-ee:0,F[1].push(Q),2*M===V+1&&(M=1-M),2*K===Q+1&&(K=1-K),w.iushrn(1),f.iushrn(1)}return F},i.cachedProperty=function A(w,f,F){var M="_"+f;w.prototype[f]=function(){return void 0!==this[M]?this[M]:this[M]=F.call(this)}},i.parseBytes=function h(w){return"string"==typeof w?i.toArray(w,"hex"):w},i.intFromLE=function d(w){return new g(w,"hex","le")}},88723(ke,q,l){!function(i,g){"use strict";function p(L,t){if(!L)throw new Error(t||"Assertion failed")}function D(L,t){L.super_=t;var s=function(){};s.prototype=t.prototype,L.prototype=new s,L.prototype.constructor=L}function o(L,t,s){if(o.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,null!==L&&(("le"===t||"be"===t)&&(s=t,t=10),this._init(L||0,t||10,s||"be"))}var e;"object"==typeof i?i.exports=o:g.BN=o,o.BN=o,o.wordSize=26;try{e=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:l(79368).Buffer}catch{}function A(L,t){var s=L.charCodeAt(t);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},4570(ke){"use strict";var q=Object.defineProperty||!1;if(q)try{q({},"a",{value:1})}catch{q=!1}ke.exports=q},1756(ke){"use strict";ke.exports=EvalError},37640(ke){"use strict";ke.exports=Error},77933(ke){"use strict";ke.exports=RangeError},6613(ke){"use strict";ke.exports=ReferenceError},58413(ke){"use strict";ke.exports=SyntaxError},46758(ke){"use strict";ke.exports=TypeError},5286(ke){"use strict";ke.exports=URIError},65891(ke){"use strict";ke.exports=Object},44356(ke){"use strict";var i,q="object"==typeof Reflect?Reflect:null,l=q&&"function"==typeof q.apply?q.apply:function($,ie,_e){return Function.prototype.apply.call($,ie,_e)};i=q&&"function"==typeof q.ownKeys?q.ownKeys:Object.getOwnPropertySymbols?function($){return Object.getOwnPropertyNames($).concat(Object.getOwnPropertySymbols($))}:function($){return Object.getOwnPropertyNames($)};var p=Number.isNaN||function($){return $!=$};function D(){D.init.call(this)}ke.exports=D,ke.exports.once=function Z(Q,$){return new Promise(function(ie,_e){function ye(pe){Q.removeListener($,se),_e(pe)}function se(){"function"==typeof Q.removeListener&&Q.removeListener("error",ye),ie([].slice.call(arguments))}V(Q,$,se,{once:!0}),"error"!==$&&function ee(Q,$,ie){"function"==typeof Q.on&&V(Q,"error",$,ie)}(Q,ye,{once:!0})})},D.EventEmitter=D,D.prototype._events=void 0,D.prototype._eventsCount=0,D.prototype._maxListeners=void 0;var o=10;function e(Q){if("function"!=typeof Q)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Q)}function A(Q){return void 0===Q._maxListeners?D.defaultMaxListeners:Q._maxListeners}function h(Q,$,ie,_e){var ye,se,pe;if(e(ie),void 0===(se=Q._events)?(se=Q._events=Object.create(null),Q._eventsCount=0):(void 0!==se.newListener&&(Q.emit("newListener",$,ie.listener?ie.listener:ie),se=Q._events),pe=se[$]),void 0===pe)pe=se[$]=ie,++Q._eventsCount;else if("function"==typeof pe?pe=se[$]=_e?[ie,pe]:[pe,ie]:_e?pe.unshift(ie):pe.push(ie),(ye=A(Q))>0&&pe.length>ye&&!pe.warned){pe.warned=!0;var Ee=new Error("Possible EventEmitter memory leak detected. "+pe.length+" "+String($)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ee.name="MaxListenersExceededWarning",Ee.emitter=Q,Ee.type=$,Ee.count=pe.length,function g(Q){console&&console.warn&&console.warn(Q)}(Ee)}return Q}function d(){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 w(Q,$,ie){var _e={fired:!1,wrapFn:void 0,target:Q,type:$,listener:ie},ye=d.bind(_e);return ye.listener=ie,_e.wrapFn=ye,ye}function f(Q,$,ie){var _e=Q._events;if(void 0===_e)return[];var ye=_e[$];return void 0===ye?[]:"function"==typeof ye?ie?[ye.listener||ye]:[ye]:ie?function j(Q){for(var $=new Array(Q.length),ie=0;ie<$.length;++ie)$[ie]=Q[ie].listener||Q[ie];return $}(ye):M(ye,ye.length)}function F(Q){var $=this._events;if(void 0!==$){var ie=$[Q];if("function"==typeof ie)return 1;if(void 0!==ie)return ie.length}return 0}function M(Q,$){for(var ie=new Array($),_e=0;_e<$;++_e)ie[_e]=Q[_e];return ie}function V(Q,$,ie,_e){if("function"==typeof Q.on)_e.once?Q.once($,ie):Q.on($,ie);else{if("function"!=typeof Q.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Q);Q.addEventListener($,function ye(se){_e.once&&Q.removeEventListener($,ye),ie(se)})}}Object.defineProperty(D,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(Q){if("number"!=typeof Q||Q<0||p(Q))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Q+".");o=Q}}),D.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},D.prototype.setMaxListeners=function($){if("number"!=typeof $||$<0||p($))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+$+".");return this._maxListeners=$,this},D.prototype.getMaxListeners=function(){return A(this)},D.prototype.emit=function($){for(var ie=[],_e=1;_e0&&(pe=ie[0]),pe instanceof Error)throw pe;var Ee=new Error("Unhandled error."+(pe?" ("+pe.message+")":""));throw Ee.context=pe,Ee}var L=se[$];if(void 0===L)return!1;if("function"==typeof L)l(L,this,ie);else{var t=L.length,s=M(L,t);for(_e=0;_e=0;pe--)if(_e[pe]===ie||_e[pe].listener===ie){Ee=_e[pe].listener,se=pe;break}if(se<0)return this;0===se?_e.shift():function K(Q,$){for(;$+1=0;ye--)this.removeListener($,ie[ye]);return this},D.prototype.listeners=function($){return f(this,$,!0)},D.prototype.rawListeners=function($){return f(this,$,!1)},D.listenerCount=function(Q,$){return"function"==typeof Q.listenerCount?Q.listenerCount($):F.call(Q,$)},D.prototype.listenerCount=F,D.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},18211(ke,q,l){var i=l(27054).Buffer,g=l(34725);ke.exports=function p(D,o,e,A){if(i.isBuffer(D)||(D=i.from(D,"binary")),o&&(i.isBuffer(o)||(o=i.from(o,"binary")),8!==o.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var h=e/8,d=i.alloc(h),w=i.alloc(A||0),f=i.alloc(0);h>0||A>0;){var F=new g;F.update(f),F.update(D),o&&F.update(o),f=F.digest();var M=0;if(h>0){var K=d.length-h;M=Math.min(h,f.length),f.copy(d,K,0,M),h-=M}if(M0){var j=w.length-A,Z=Math.min(A,f.length-M);f.copy(w,j,M,M+Z),A-=Z}}return f.fill(0),{key:d,iv:w}}},89999(ke,q,l){"use strict";var i=l(58239),g=Object.prototype.toString,p=Object.prototype.hasOwnProperty;ke.exports=function(d,w,f){if(!i(w))throw new TypeError("iterator must be a function");var F;arguments.length>=3&&(F=f),function A(h){return"[object Array]"===g.call(h)}(d)?function(d,w,f){for(var F=0,M=d.length;F"u"||!se?i:se(Uint8Array),u={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?i:ArrayBuffer,"%ArrayIteratorPrototype%":ye&&se?se([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":s,"%AsyncGenerator%":s,"%AsyncGeneratorFunction%":s,"%AsyncIteratorPrototype%":s,"%Atomics%":typeof Atomics>"u"?i:Atomics,"%BigInt%":typeof BigInt>"u"?i:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?i:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":p,"%eval%":eval,"%EvalError%":D,"%Float16Array%":typeof Float16Array>"u"?i:Float16Array,"%Float32Array%":typeof Float32Array>"u"?i:Float32Array,"%Float64Array%":typeof Float64Array>"u"?i:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?i:FinalizationRegistry,"%Function%":ee,"%GeneratorFunction%":s,"%Int8Array%":typeof Int8Array>"u"?i:Int8Array,"%Int16Array%":typeof Int16Array>"u"?i:Int16Array,"%Int32Array%":typeof Int32Array>"u"?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ye&&se?se(se([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":typeof Map>"u"?i:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ye||!se?i:se((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":g,"%Object.getOwnPropertyDescriptor%":Q,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?i:Promise,"%Proxy%":typeof Proxy>"u"?i:Proxy,"%RangeError%":o,"%ReferenceError%":e,"%Reflect%":typeof Reflect>"u"?i:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?i:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ye||!se?i:se((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ye&&se?se(""[Symbol.iterator]()):i,"%Symbol%":ye?Symbol:i,"%SyntaxError%":A,"%ThrowTypeError%":_e,"%TypedArray%":m,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?i:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?i:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?i:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?i:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?i:WeakMap,"%WeakRef%":typeof WeakRef>"u"?i:WeakRef,"%WeakSet%":typeof WeakSet>"u"?i:WeakSet,"%Function.prototype.call%":t,"%Function.prototype.apply%":L,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":pe,"%Math.abs%":w,"%Math.floor%":f,"%Math.max%":F,"%Math.min%":M,"%Math.pow%":K,"%Math.round%":j,"%Math.sign%":Z,"%Reflect.getPrototypeOf%":Ee};if(se)try{null.error}catch(ce){var _=se(se(ce));u["%Error.prototype%"]=_}var T=function ce(Re){var Me;if("%AsyncFunction%"===Re)Me=V("async function () {}");else if("%GeneratorFunction%"===Re)Me=V("function* () {}");else if("%AsyncGeneratorFunction%"===Re)Me=V("async function* () {}");else if("%AsyncGenerator%"===Re){var ve=ce("%AsyncGeneratorFunction%");ve&&(Me=ve.prototype)}else if("%AsyncIteratorPrototype%"===Re){var oe=ce("%AsyncGenerator%");oe&&se&&(Me=se(oe.prototype))}return u[Re]=Me,Me},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=l(65992),a=l(78368),x=C.call(t,Array.prototype.concat),Y=C.call(L,Array.prototype.splice),R=C.call(t,String.prototype.replace),U=C.call(t,String.prototype.slice),fe=C.call(t,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,he=/\\(\\)?/g,ge=function(Re,Me){var oe,ve=Re;if(a(P,ve)&&(ve="%"+(oe=P[ve])[0]+"%"),a(u,ve)){var Se=u[ve];if(Se===s&&(Se=T(ve)),typeof Se>"u"&&!Me)throw new h("intrinsic "+Re+" exists, but is not available. Please file an issue!");return{alias:oe,name:ve,value:Se}}throw new A("intrinsic "+Re+" does not exist!")};ke.exports=function(Re,Me){if("string"!=typeof Re||0===Re.length)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof Me)throw new h('"allowMissing" argument must be a boolean');if(null===fe(/^%?[^%]*%?$/,Re))throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ve=function(Re){var Me=U(Re,0,1),ve=U(Re,-1);if("%"===Me&&"%"!==ve)throw new A("invalid intrinsic syntax, expected closing `%`");if("%"===ve&&"%"!==Me)throw new A("invalid intrinsic syntax, expected opening `%`");var oe=[];return R(Re,re,function(Se,be,nt,$e){oe[oe.length]=nt?R($e,he,"$1"):be||Se}),oe}(Re),oe=ve.length>0?ve[0]:"",Se=ge("%"+oe+"%",Me),be=Se.name,nt=Se.value,$e=!1,dt=Se.alias;dt&&(oe=dt[0],Y(ve,x([0,1],dt)));for(var yt=1,Et=!0;yt=ve.length){var S=Q(nt,rt);nt=(Et=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:nt[rt]}else Et=a(nt,rt),nt=nt[rt];Et&&!$e&&(u[be]=nt)}}return nt}},27203(ke,q,l){"use strict";var i=l(65891);ke.exports=i.getPrototypeOf||null},97669(ke){"use strict";ke.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},91627(ke,q,l){"use strict";var i=l(97669),g=l(27203),p=l(63361);ke.exports=i?function(o){return i(o)}:g?function(o){if(!o||"object"!=typeof o&&"function"!=typeof o)throw new TypeError("getProto: not an object");return g(o)}:p?function(o){return p(o)}:null},52786(ke){"use strict";ke.exports=Object.getOwnPropertyDescriptor},83798(ke,q,l){"use strict";var i=l(52786);if(i)try{i([],"length")}catch{i=null}ke.exports=i},35861(ke,q,l){"use strict";var i=l(4570),g=function(){return!!i};g.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch{return!0}},ke.exports=g},19900(ke,q,l){"use strict";var i=typeof Symbol<"u"&&Symbol,g=l(45310);ke.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&g()}},45310(ke){"use strict";ke.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var l={},i=Symbol("test"),g=Object(i);if("string"==typeof i||"[object Symbol]"!==Object.prototype.toString.call(i)||"[object Symbol]"!==Object.prototype.toString.call(g))return!1;for(var D in l[i]=42,l)return!1;if("function"==typeof Object.keys&&0!==Object.keys(l).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(l).length)return!1;var o=Object.getOwnPropertySymbols(l);if(1!==o.length||o[0]!==i||!Object.prototype.propertyIsEnumerable.call(l,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var e=Object.getOwnPropertyDescriptor(l,i);if(42!==e.value||!0!==e.enumerable)return!1}return!0}},88779(ke,q,l){"use strict";var i=l(45310);ke.exports=function(){return i()&&!!Symbol.toStringTag}},13686(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(7045).Transform;function D(h){g.call(this),this._block=i.allocUnsafe(h),this._blockSize=h,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}l(71993)(D,g),D.prototype._transform=function(h,d,w){var f=null;try{this.update(h,d)}catch(F){f=F}w(f)},D.prototype._flush=function(h){var d=null;try{this.push(this.digest())}catch(w){d=w}h(d)};var o=typeof Uint8Array<"u",e=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);D.prototype.update=function(h,d){if(this._finalized)throw new Error("Digest already called");h=function A(h,d){if(h instanceof i)return h;if("string"==typeof h)return i.from(h,d);if(e&&ArrayBuffer.isView(h)){if(0===h.byteLength)return i.alloc(0);var w=i.from(h.buffer,h.byteOffset,h.byteLength);if(w.byteLength===h.byteLength)return w}if(o&&h instanceof Uint8Array||i.isBuffer(h)&&h.constructor&&"function"==typeof h.constructor.isBuffer&&h.constructor.isBuffer(h))return i.from(h);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(h,d);for(var w=this._block,f=0;this._blockOffset+h.length-f>=this._blockSize;){for(var F=this._blockOffset;F0;++M)this._length[M]+=K,(K=this._length[M]/4294967296|0)>0&&(this._length[M]-=4294967296*K);return this},D.prototype._update=function(){throw new Error("_update is not implemented")},D.prototype.digest=function(h){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==h&&(d=d.toString(h)),this._block.fill(0),this._blockOffset=0;for(var w=0;w<4;++w)this._length[w]=0;return d},D.prototype._digest=function(){throw new Error("_digest is not implemented")},ke.exports=D},52529(ke,q,l){var i=q;i.utils=l(68283),i.common=l(12901),i.sha=l(78528),i.ripemd=l(15283),i.hmac=l(37163),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},12901(ke,q,l){"use strict";var i=l(68283),g=l(39210);function p(){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}q.BlockHash=p,p.prototype.update=function(o,e){if(o=i.toArray(o,e),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var A=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-A,o.length),0===this.pending.length&&(this.pending=null),o=i.join32(o,0,o.length-A,this.endian);for(var h=0;h>>24&255,h[d++]=o>>>16&255,h[d++]=o>>>8&255,h[d++]=255&o}else for(h[d++]=255&o,h[d++]=o>>>8&255,h[d++]=o>>>16&255,h[d++]=o>>>24&255,h[d++]=0,h[d++]=0,h[d++]=0,h[d++]=0,w=8;wthis.blockSize&&(o=(new this.Hash).update(o).digest()),g(o.length<=this.blockSize);for(var e=o.length;e>>3},q.g1_256=function w(f){return g(f,17)^g(f,19)^f>>>10}},68283(ke,q,l){"use strict";var i=l(39210),g=l(71993);function p(s,m){return!(55296!=(64512&s.charCodeAt(m))||m<0||m+1>=s.length)&&56320==(64512&s.charCodeAt(m+1))}function e(s){return(s>>>24|s>>>8&65280|s<<8&16711680|(255&s)<<24)>>>0}function h(s){return 1===s.length?"0"+s:s}function d(s){return 7===s.length?"0"+s:6===s.length?"00"+s:5===s.length?"000"+s:4===s.length?"0000"+s:3===s.length?"00000"+s:2===s.length?"000000"+s:1===s.length?"0000000"+s:s}q.inherits=g,q.toArray=function D(s,m){if(Array.isArray(s))return s.slice();if(!s)return[];var u=[];if("string"==typeof s)if(m){if("hex"===m)for((s=s.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(s="0"+s),T=0;T>6|192,u[_++]=63&P|128):p(s,T)?(P=65536+((1023&P)<<10)+(1023&s.charCodeAt(++T)),u[_++]=P>>18|240,u[_++]=P>>12&63|128,u[_++]=P>>6&63|128,u[_++]=63&P|128):(u[_++]=P>>12|224,u[_++]=P>>6&63|128,u[_++]=63&P|128)}else for(T=0;T>>0;return P},q.split32=function f(s,m){for(var u=new Array(4*s.length),_=0,T=0;_>>24,u[T+1]=P>>>16&255,u[T+2]=P>>>8&255,u[T+3]=255&P):(u[T+3]=P>>>24,u[T+2]=P>>>16&255,u[T+1]=P>>>8&255,u[T]=255&P)}return u},q.rotr32=function F(s,m){return s>>>m|s<<32-m},q.rotl32=function M(s,m){return s<>>32-m},q.sum32=function K(s,m){return s+m>>>0},q.sum32_3=function j(s,m,u){return s+m+u>>>0},q.sum32_4=function Z(s,m,u,_){return s+m+u+_>>>0},q.sum32_5=function ee(s,m,u,_,T){return s+m+u+_+T>>>0},q.sum64=function V(s,m,u,_){var C=_+s[m+1]>>>0;s[m]=(C<_?1:0)+u+s[m]>>>0,s[m+1]=C},q.sum64_hi=function Q(s,m,u,_){return(m+_>>>0>>0},q.sum64_lo=function $(s,m,u,_){return m+_>>>0},q.sum64_4_hi=function ie(s,m,u,_,T,P,C,a){var x=0,Y=m;return x+=(Y=Y+_>>>0)>>0)>>0)>>0},q.sum64_4_lo=function _e(s,m,u,_,T,P,C,a){return m+_+P+a>>>0},q.sum64_5_hi=function ye(s,m,u,_,T,P,C,a,x,Y){var R=0,U=m;return R+=(U=U+_>>>0)>>0)>>0)>>0)>>0},q.sum64_5_lo=function se(s,m,u,_,T,P,C,a,x,Y){return m+_+P+a+Y>>>0},q.rotr64_hi=function pe(s,m,u){return(m<<32-u|s>>>u)>>>0},q.rotr64_lo=function Ee(s,m,u){return(s<<32-u|m>>>u)>>>0},q.shr64_hi=function L(s,m,u){return s>>>u},q.shr64_lo=function t(s,m,u){return(s<<32-u|m>>>u)>>>0}},78368(ke,q,l){"use strict";var i=Function.prototype.call,g=Object.prototype.hasOwnProperty,p=l(65992);ke.exports=p.call(i,g)},33556(ke,q,l){"use strict";var i=l(52529),g=l(21832),p=l(39210);function D(o){if(!(this instanceof D))return new D(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=g.toArray(o.entropy,o.entropyEnc||"hex"),A=g.toArray(o.nonce,o.nonceEnc||"hex"),h=g.toArray(o.pers,o.persEnc||"hex");p(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,A,h)}ke.exports=D,D.prototype._init=function(e,A,h){var d=e.concat(A).concat(h);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var w=0;w=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(h||[])),this._reseed=1},D.prototype.generate=function(e,A,h,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof A&&(d=h,h=A,A=null),h&&(h=g.toArray(h,d||"hex"),this._update(h));for(var w=[];w.length>1,w=-7,f=g?D-1:0,F=g?-1:1,M=l[i+f];for(f+=F,o=M&(1<<-w)-1,M>>=-w,w+=A;w>0;o=256*o+l[i+f],f+=F,w-=8);for(e=o&(1<<-w)-1,o>>=-w,w+=p;w>0;e=256*e+l[i+f],f+=F,w-=8);if(0===o)o=1-d;else{if(o===h)return e?NaN:1/0*(M?-1:1);e+=Math.pow(2,p),o-=d}return(M?-1:1)*e*Math.pow(2,o-p)},q.write=function(l,i,g,p,D,o){var e,A,h,d=8*o-D-1,w=(1<>1,F=23===D?Math.pow(2,-24)-Math.pow(2,-77):0,M=p?0:o-1,K=p?1:-1,j=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(A=isNaN(i)?1:0,e=w):(e=Math.floor(Math.log(i)/Math.LN2),i*(h=Math.pow(2,-e))<1&&(e--,h*=2),(i+=e+f>=1?F/h:F*Math.pow(2,1-f))*h>=2&&(e++,h/=2),e+f>=w?(A=0,e=w):e+f>=1?(A=(i*h-1)*Math.pow(2,D),e+=f):(A=i*Math.pow(2,f-1)*Math.pow(2,D),e=0));D>=8;l[g+M]=255&A,M+=K,A/=256,D-=8);for(e=e<0;l[g+M]=255&e,M+=K,e/=256,d-=8);l[g+M-K]|=128*j}},71993(ke){ke.exports="function"==typeof Object.create?function(l,i){i&&(l.super_=i,l.prototype=Object.create(i.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}))}:function(l,i){if(i){l.super_=i;var g=function(){};g.prototype=i.prototype,l.prototype=new g,l.prototype.constructor=l}}},58239(ke){"use strict";var i,g,q=Function.prototype.toString,l="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof l&&"function"==typeof Object.defineProperty)try{i=Object.defineProperty({},"length",{get:function(){throw g}}),g={},l(function(){throw 42},null,i)}catch(ee){ee!==g&&(l=null)}else l=null;var p=/^\s*class\b/,D=function(V){try{var Q=q.call(V);return p.test(Q)}catch{return!1}},o=function(V){try{return!D(V)&&(q.call(V),!0)}catch{return!1}},e=Object.prototype.toString,M="function"==typeof Symbol&&!!Symbol.toStringTag,K=!(0 in[,]),j=function(){return!1};if("object"==typeof document){var Z=document.all;e.call(Z)===e.call(document.all)&&(j=function(V){if((K||!V)&&(typeof V>"u"||"object"==typeof V))try{var Q=e.call(V);return("[object HTMLAllCollection]"===Q||"[object HTML document.all class]"===Q||"[object HTMLCollection]"===Q||"[object Object]"===Q)&&null==V("")}catch{}return!1})}ke.exports=l?function(V){if(j(V))return!0;if(!V||"function"!=typeof V&&"object"!=typeof V)return!1;try{l(V,null,i)}catch(Q){if(Q!==g)return!1}return!D(V)&&o(V)}:function(V){if(j(V))return!0;if(!V||"function"!=typeof V&&"object"!=typeof V)return!1;if(M)return o(V);if(D(V))return!1;var Q=e.call(V);return!("[object Function]"!==Q&&"[object GeneratorFunction]"!==Q&&!/^\[object HTML/.test(Q))&&o(V)}},4729(ke,q,l){"use strict";var i=l(44068);ke.exports=function(p){return!!i(p)}},20053(ke){var q={}.toString;ke.exports=Array.isArray||function(l){return"[object Array]"==q.call(l)}},70837(ke){"use strict";ke.exports=Math.abs},3383(ke){"use strict";ke.exports=Math.floor},85488(ke){"use strict";ke.exports=Number.isNaN||function(l){return l!=l}},79039(ke){"use strict";ke.exports=Math.max},14981(ke){"use strict";ke.exports=Math.min},80975(ke){"use strict";ke.exports=Math.pow},5337(ke){"use strict";ke.exports=Math.round},4912(ke,q,l){"use strict";var i=l(85488);ke.exports=function(p){return i(p)||0===p?p:p<0?-1:1}},34725(ke,q,l){"use strict";var i=l(71993),g=l(13686),p=l(27054).Buffer,D=new Array(16);function o(){g.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function e(f,F){return f<>>32-F}function A(f,F,M,K,j,Z,ee){return e(f+(F&M|~F&K)+j+Z|0,ee)+F|0}function h(f,F,M,K,j,Z,ee){return e(f+(F&K|M&~K)+j+Z|0,ee)+F|0}function d(f,F,M,K,j,Z,ee){return e(f+(F^M^K)+j+Z|0,ee)+F|0}function w(f,F,M,K,j,Z,ee){return e(f+(M^(F|~K))+j+Z|0,ee)+F|0}i(o,g),o.prototype._update=function(){for(var f=D,F=0;F<16;++F)f[F]=this._block.readInt32LE(4*F);var M=this._a,K=this._b,j=this._c,Z=this._d;M=A(M,K,j,Z,f[0],3614090360,7),Z=A(Z,M,K,j,f[1],3905402710,12),j=A(j,Z,M,K,f[2],606105819,17),K=A(K,j,Z,M,f[3],3250441966,22),M=A(M,K,j,Z,f[4],4118548399,7),Z=A(Z,M,K,j,f[5],1200080426,12),j=A(j,Z,M,K,f[6],2821735955,17),K=A(K,j,Z,M,f[7],4249261313,22),M=A(M,K,j,Z,f[8],1770035416,7),Z=A(Z,M,K,j,f[9],2336552879,12),j=A(j,Z,M,K,f[10],4294925233,17),K=A(K,j,Z,M,f[11],2304563134,22),M=A(M,K,j,Z,f[12],1804603682,7),Z=A(Z,M,K,j,f[13],4254626195,12),j=A(j,Z,M,K,f[14],2792965006,17),M=h(M,K=A(K,j,Z,M,f[15],1236535329,22),j,Z,f[1],4129170786,5),Z=h(Z,M,K,j,f[6],3225465664,9),j=h(j,Z,M,K,f[11],643717713,14),K=h(K,j,Z,M,f[0],3921069994,20),M=h(M,K,j,Z,f[5],3593408605,5),Z=h(Z,M,K,j,f[10],38016083,9),j=h(j,Z,M,K,f[15],3634488961,14),K=h(K,j,Z,M,f[4],3889429448,20),M=h(M,K,j,Z,f[9],568446438,5),Z=h(Z,M,K,j,f[14],3275163606,9),j=h(j,Z,M,K,f[3],4107603335,14),K=h(K,j,Z,M,f[8],1163531501,20),M=h(M,K,j,Z,f[13],2850285829,5),Z=h(Z,M,K,j,f[2],4243563512,9),j=h(j,Z,M,K,f[7],1735328473,14),M=d(M,K=h(K,j,Z,M,f[12],2368359562,20),j,Z,f[5],4294588738,4),Z=d(Z,M,K,j,f[8],2272392833,11),j=d(j,Z,M,K,f[11],1839030562,16),K=d(K,j,Z,M,f[14],4259657740,23),M=d(M,K,j,Z,f[1],2763975236,4),Z=d(Z,M,K,j,f[4],1272893353,11),j=d(j,Z,M,K,f[7],4139469664,16),K=d(K,j,Z,M,f[10],3200236656,23),M=d(M,K,j,Z,f[13],681279174,4),Z=d(Z,M,K,j,f[0],3936430074,11),j=d(j,Z,M,K,f[3],3572445317,16),K=d(K,j,Z,M,f[6],76029189,23),M=d(M,K,j,Z,f[9],3654602809,4),Z=d(Z,M,K,j,f[12],3873151461,11),j=d(j,Z,M,K,f[15],530742520,16),M=w(M,K=d(K,j,Z,M,f[2],3299628645,23),j,Z,f[0],4096336452,6),Z=w(Z,M,K,j,f[7],1126891415,10),j=w(j,Z,M,K,f[14],2878612391,15),K=w(K,j,Z,M,f[5],4237533241,21),M=w(M,K,j,Z,f[12],1700485571,6),Z=w(Z,M,K,j,f[3],2399980690,10),j=w(j,Z,M,K,f[10],4293915773,15),K=w(K,j,Z,M,f[1],2240044497,21),M=w(M,K,j,Z,f[8],1873313359,6),Z=w(Z,M,K,j,f[15],4264355552,10),j=w(j,Z,M,K,f[6],2734768916,15),K=w(K,j,Z,M,f[13],1309151649,21),M=w(M,K,j,Z,f[4],4149444226,6),Z=w(Z,M,K,j,f[11],3174756917,10),j=w(j,Z,M,K,f[2],718787259,15),K=w(K,j,Z,M,f[9],3951481745,21),this._a=this._a+M|0,this._b=this._b+K|0,this._c=this._c+j|0,this._d=this._d+Z|0},o.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 f=p.allocUnsafe(16);return f.writeInt32LE(this._a,0),f.writeInt32LE(this._b,4),f.writeInt32LE(this._c,8),f.writeInt32LE(this._d,12),f},ke.exports=o},53459(ke,q,l){var i=l(57223),g=l(35294);function p(D){this.rand=D||new g.Rand}ke.exports=p,p.create=function(o){return new p(o)},p.prototype._randbelow=function(o){var e=o.bitLength(),A=Math.ceil(e/8);do{var h=new i(this.rand.generate(A))}while(h.cmp(o)>=0);return h},p.prototype._randrange=function(o,e){var A=e.sub(o);return o.add(this._randbelow(A))},p.prototype.test=function(o,e,A){var h=o.bitLength(),d=i.mont(o),w=new i(1).toRed(d);e||(e=Math.max(1,h/48|0));for(var f=o.subn(1),F=0;!f.testn(F);F++);for(var M=o.shrn(F),K=f.toRed(d);e>0;e--){var Z=this._randrange(new i(2),f);A&&A(Z);var ee=Z.toRed(d).redPow(M);if(0!==ee.cmp(w)&&0!==ee.cmp(K)){for(var V=1;V0;e--){var K=this._randrange(new i(2),w),j=o.gcd(K);if(0!==j.cmpn(1))return j;var Z=K.toRed(h).redPow(F);if(0!==Z.cmp(d)&&0!==Z.cmp(M)){for(var ee=1;ee=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},39210(ke){function q(l,i){if(!l)throw new Error(i||"Assertion failed")}ke.exports=q,q.equal=function(i,g,p){if(i!=g)throw new Error(p||"Assertion failed: "+i+" != "+g)}},21832(ke,q){"use strict";var l=q;function g(D){return 1===D.length?"0"+D:D}function p(D){for(var o="",e=0;e>8,w=255&h;d?e.push(d,w):e.push(w)}return e},l.zero2=g,l.toHex=p,l.encode=function(o,e){return"hex"===e?p(o):o}},31264(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var i=l(94478);Object.keys(i).forEach(function(g){"default"!==g&&Object.defineProperty(q,g,{enumerable:!0,get:function(){return i[g]}})})},83138(ke,q,l){"use strict";var i=l(49609);q.certificate=l(94772);var g=i.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())});q.RSAPrivateKey=g;var p=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});q.RSAPublicKey=p;var D=i.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())}),o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(D),this.key("subjectPublicKey").bitstr())});q.PublicKey=o;var e=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(D),this.key("subjectPrivateKey").octstr())});q.PrivateKey=e;var A=i.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())});q.EncryptedPrivateKey=A;var h=i.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())});q.DSAPrivateKey=h,q.DSAparam=i.define("DSAparam",function(){this.int()});var d=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),w=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});q.ECPrivateKey=w,q.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},94772(ke,q,l){"use strict";var i=l(49609),g=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),p=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),D=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(D),this.key("subjectPublicKey").bitstr())}),e=i.define("RelativeDistinguishedName",function(){this.setof(p)}),A=i.define("RDNSequence",function(){this.seqof(e)}),h=i.define("Name",function(){this.choice({rdnSequence:this.use(A)})}),d=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(g),this.key("notAfter").use(g))}),w=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(D),this.key("issuer").use(h),this.key("validity").use(d),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(w).optional())}),F=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(D),this.key("signatureValue").bitstr())});ke.exports=F},89472(ke,q,l){"use strict";var i=/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,g=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,p=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,D=l(18211),o=l(43388),e=l(27054).Buffer;ke.exports=function(A,h){var f,d=A.toString(),w=d.match(i);if(w){var M="aes"+w[1],K=e.from(w[2],"hex"),j=e.from(w[3].replace(/[\r\n]/g,""),"base64"),Z=D(h,K.slice(0,8),parseInt(w[1],10)).key,ee=[],V=o.createDecipheriv(M,Z,K);ee.push(V.update(j)),ee.push(V.final()),f=e.concat(ee)}else{var F=d.match(p);f=e.from(F[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(g)[1],data:f}}},65667(ke,q,l){"use strict";var i=l(83138),g=l(15579),p=l(89472),D=l(43388),o=l(93397).pbkdf2Sync,e=l(27054).Buffer;function h(d){var w;"object"==typeof d&&!e.isBuffer(d)&&(w=d.passphrase,d=d.key),"string"==typeof d&&(d=e.from(d));var K,j,f=p(d,w),F=f.tag,M=f.data;switch(F){case"CERTIFICATE":j=i.certificate.decode(M,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(j||(j=i.PublicKey.decode(M,"der")),K=j.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(j.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return j.subjectPrivateKey=j.subjectPublicKey,{type:"ec",data:j};case"1.2.840.10040.4.1":return j.algorithm.params.pub_key=i.DSAparam.decode(j.subjectPublicKey.data,"der"),{type:"dsa",data:j.algorithm.params};default:throw new Error("unknown key id "+K)}case"ENCRYPTED PRIVATE KEY":M=function A(d,w){var f=d.algorithm.decrypt.kde.kdeparams.salt,F=parseInt(d.algorithm.decrypt.kde.kdeparams.iters.toString(),10),M=g[d.algorithm.decrypt.cipher.algo.join(".")],K=d.algorithm.decrypt.cipher.iv,j=d.subjectPrivateKey,Z=parseInt(M.split("-")[1],10)/8,ee=o(w,f,F,Z,"sha1"),V=D.createDecipheriv(M,ee,K),Q=[];return Q.push(V.update(j)),Q.push(V.final()),e.concat(Q)}(M=i.EncryptedPrivateKey.decode(M,"der"),w);case"PRIVATE KEY":switch(K=(j=i.PrivateKey.decode(M,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(j.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:j.algorithm.curve,privateKey:i.ECPrivateKey.decode(j.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return j.algorithm.params.priv_key=i.DSAparam.decode(j.subjectPrivateKey,"der"),{type:"dsa",params:j.algorithm.params};default:throw new Error("unknown key id "+K)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(M,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(M,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(M,"der")};case"EC PRIVATE KEY":return{curve:(M=i.ECPrivateKey.decode(M,"der")).parameters.value,privateKey:M.privateKey};default:throw new Error("unknown key type "+F)}}h.signature=i.signature,ke.exports=h},93397(ke,q,l){"use strict";q.pbkdf2=l(82685),q.pbkdf2Sync=l(59111)},82685(ke,q,l){"use strict";var e,w,i=l(27054).Buffer,g=l(86111),p=l(45392),D=l(59111),o=l(76643),A=global.crypto&&global.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function f(){return w||(w=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function F(j,Z,ee,V,Q){return A.importKey("raw",j,{name:"PBKDF2"},!1,["deriveBits"]).then(function($){return A.deriveBits({name:"PBKDF2",salt:Z,iterations:ee,hash:{name:Q}},$,V<<3)}).then(function($){return i.from($)})}ke.exports=function(j,Z,ee,V,Q,$){if("function"==typeof Q&&($=Q,Q=void 0),V=g(ee,V),j=o(j,p,"Password"),Z=o(Z,p,"Salt"),"function"!=typeof $)throw new Error("No callback provided to pbkdf2");var ie=h[(Q=Q||"sha1").toLowerCase()];ie&&"function"==typeof global.Promise?function K(j,Z){j.then(function(ee){f()(function(){Z(null,ee)})},function(ee){f()(function(){Z(ee)})})}(function M(j){if(global.process&&!global.process.browser||!A||!A.importKey||!A.deriveBits)return Promise.resolve(!1);if(void 0!==d[j])return d[j];var Z=F(e=e||i.alloc(8),e,10,128,j).then(function(){return!0},function(){return!1});return d[j]=Z,Z}(ie).then(function(_e){return _e?F(j,Z,ee,V,ie):D(j,Z,ee,V,Q)}),$):f()(function(){var _e;try{_e=D(j,Z,ee,V,Q)}catch(ye){return void $(ye)}$(null,_e)})}},45392(ke){"use strict";var q;q=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",ke.exports=q},86111(ke){"use strict";var q=isFinite,l=Math.pow(2,30)-1;ke.exports=function(i,g){if("number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0||!q(i))throw new TypeError("Bad iterations");if("number"!=typeof g)throw new TypeError("Key length not a number");if(g<0||g>l||g!=g)throw new TypeError("Bad key length");return g+0}},59111(ke,q,l){"use strict";var i=l(83407),g=l(36636),p=l(25443),D=l(27054).Buffer,o=l(86111),e=l(45392),A=l(76643),h=D.alloc(128),d={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},w={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function f(j){return(new g).update(j).digest()}function M(j,Z,ee){var V=function F(j){return"rmd160"===j||"ripemd160"===j?f:"md5"===j?i:function Z(ee){return p(j).update(ee).digest()}}(j),Q="sha512"===j||"sha384"===j?128:64;Z.length>Q?Z=V(Z):Z.length"u"||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?{nextTick:function q(l,i,g,p){if("function"!=typeof l)throw new TypeError('"callback" argument must be a function');var o,e,D=arguments.length;switch(D){case 0:case 1:return process.nextTick(l);case 2:return process.nextTick(function(){l.call(null,i)});case 3:return process.nextTick(function(){l.call(null,i,g)});case 4:return process.nextTick(function(){l.call(null,i,g,p)});default:for(o=new Array(D-1),e=0;e=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var w=["","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"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var $n=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+($n>>>26)|0,$n&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=$n,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},98613(ke,q,l){var i=l(65667),g=l(30715),p=l(37196),D=l(16508),o=l(14105),e=l(67211),A=l(10568),h=l(27054).Buffer;ke.exports=function(M,K,j){var Z;Z=M.padding?M.padding:j?1:4;var Q,ee=i(M),V=ee.modulus.byteLength();if(K.length>V||new D(K).cmp(ee.modulus)>=0)throw new Error("decryption error");Q=j?A(new D(K),ee):o(K,ee);var $=h.alloc(V-Q.length);if(Q=h.concat([$,Q],V),4===Z)return function d(F,M){var K=F.modulus.byteLength(),j=e("sha1").update(h.alloc(0)).digest(),Z=j.length;if(0!==M[0])throw new Error("decryption error");var ee=M.slice(1,Z+1),V=M.slice(Z+1),Q=p(ee,g(V,Z)),$=p(V,g(Q,K-Z-1));if(function f(F,M){F=h.from(F),M=h.from(M);var K=0,j=F.length;F.length!==M.length&&(K++,j=Math.min(F.length,M.length));for(var Z=-1;++Z=M.length){ee++;break}var V=M.slice(2,Z-1);if(("0002"!==j.toString("hex")&&!K||"0001"!==j.toString("hex")&&K)&&ee++,V.length<8&&ee++,ee)throw new Error("decryption error");return M.slice(Z)}(0,Q,j);if(3===Z)return Q;throw new Error("unknown padding")}},87267(ke,q,l){var i=l(65667),g=l(3342),p=l(67211),D=l(30715),o=l(37196),e=l(16508),A=l(10568),h=l(14105),d=l(27054).Buffer;ke.exports=function(K,j,Z){var ee;ee=K.padding?K.padding:Z?1:4;var Q,V=i(K);if(4===ee)Q=function w(M,K){var j=M.modulus.byteLength(),Z=K.length,ee=p("sha1").update(d.alloc(0)).digest(),V=ee.length,Q=2*V;if(Z>j-Q-2)throw new Error("message too long");var $=d.alloc(j-Z-Q-2),ie=j-V-1,_e=g(V),ye=o(d.concat([ee,$,d.alloc(1,1),K],ie),D(_e,ie)),se=o(_e,D(ye,V));return new e(d.concat([d.alloc(1),se,ye],j))}(V,j);else if(1===ee)Q=function f(M,K,j){var V,Z=K.length,ee=M.modulus.byteLength();if(Z>ee-11)throw new Error("message too long");return V=j?d.alloc(ee-Z-3,255):function F(M){for(var V,K=d.allocUnsafe(M),j=0,Z=g(2*M),ee=0;j=0)throw new Error("data too long for modulus")}return Z?h(Q,V):A(Q,V)}},10568(ke,q,l){var i=l(16508),g=l(27054).Buffer;ke.exports=function p(D,o){return g.from(D.toRed(i.mont(o.modulus)).redPow(new i(o.publicExponent)).fromRed().toArray())}},37196(ke){ke.exports=function(l,i){for(var g=l.length,p=-1;++p"u"?(w=d,d=void 0):(w=d,d=h,h=A,A=void 0));try{const K=g.create(h,d);w(null,e(K,A,d))}catch(K){w(K)}}q.create=g.create,q.toCanvas=o.bind(null,p.render),q.toDataURL=o.bind(null,p.renderToDataURL),q.toString=o.bind(null,function(e,A,h){return D.render(e,h)})},72836(ke){ke.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},96214(ke,q,l){const i=l(19089).getSymbolSize;q.getRowColCoords=function(p){if(1===p)return[];const D=Math.floor(p/7)+2,o=i(p),e=145===o?26:2*Math.ceil((o-13)/(2*D-2)),A=[o-7];for(let h=1;h>>7-l%8&1)},put:function(l,i){for(let g=0;g>>i-g-1&1))},getLengthInBits:function(){return this.length},putBit:function(l){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),l&&(this.buffer[i]|=128>>>this.length%8),this.length++}},ke.exports=q},35941(ke){function q(l){if(!l||l<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=l,this.data=new Uint8Array(l*l),this.reservedBit=new Uint8Array(l*l)}q.prototype.set=function(l,i,g,p){const D=l*this.size+i;this.data[D]=g,p&&(this.reservedBit[D]=!0)},q.prototype.get=function(l,i){return this.data[l*this.size+i]},q.prototype.xor=function(l,i,g){this.data[l*this.size+i]^=g},q.prototype.isReserved=function(l,i){return this.reservedBit[l*this.size+i]},ke.exports=q},54969(ke,q,l){const i=l(91677);function g(p){this.mode=i.BYTE,this.data="string"==typeof p?(new TextEncoder).encode(p):new Uint8Array(p)}g.getBitsLength=function(D){return 8*D},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(p){for(let D=0,o=this.data.length;D=0&&g.bit<4},q.from=function(g,p){if(q.isValid(g))return g;try{return function l(i){if("string"!=typeof i)throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return q.L;case"m":case"medium":return q.M;case"q":case"quartile":return q.Q;case"h":case"high":return q.H;default:throw new Error("Unknown EC Level: "+i)}}(g)}catch{return p}}},76269(ke,q,l){const i=l(19089).getSymbolSize;q.getPositions=function(D){const o=i(D);return[[0,0],[o-7,0],[0,o-7]]}},26254(ke,q,l){const i=l(19089),D=i.getBCHDigit(1335);q.getEncodedBits=function(e,A){const h=e.bit<<3|A;let d=h<<10;for(;i.getBCHDigit(d)-D>=0;)d^=1335<=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),D.put(e,13)}},ke.exports=p},3361(ke,q){q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function i(g,p,D){switch(g){case q.Patterns.PATTERN000:return(p+D)%2==0;case q.Patterns.PATTERN001:return p%2==0;case q.Patterns.PATTERN010:return D%3==0;case q.Patterns.PATTERN011:return(p+D)%3==0;case q.Patterns.PATTERN100:return(Math.floor(p/2)+Math.floor(D/3))%2==0;case q.Patterns.PATTERN101:return p*D%2+p*D%3==0;case q.Patterns.PATTERN110:return(p*D%2+p*D%3)%2==0;case q.Patterns.PATTERN111:return(p*D%3+(p+D)%2)%2==0;default:throw new Error("bad maskPattern:"+g)}}q.isValid=function(p){return null!=p&&""!==p&&!isNaN(p)&&p>=0&&p<=7},q.from=function(p){return q.isValid(p)?parseInt(p,10):void 0},q.getPenaltyN1=function(p){const D=p.size;let o=0,e=0,A=0,h=null,d=null;for(let w=0;w=5&&(o+=e-5+3),h=F,e=1),F=p.get(f,w),F===d?A++:(A>=5&&(o+=A-5+3),d=F,A=1)}e>=5&&(o+=e-5+3),A>=5&&(o+=A-5+3)}return o},q.getPenaltyN2=function(p){const D=p.size;let o=0;for(let e=0;e=10&&(1488===e||93===e)&&o++,A=A<<1&2047|p.get(d,h),d>=10&&(1488===A||93===A)&&o++}return 40*o},q.getPenaltyN4=function(p){let D=0;const o=p.data.length;for(let A=0;A=1&&e<10?o.ccBits[0]:e<27?o.ccBits[1]:o.ccBits[2]},q.getBestModeForData=function(o){return g.testNumeric(o)?q.NUMERIC:g.testAlphanumeric(o)?q.ALPHANUMERIC:g.testKanji(o)?q.KANJI:q.BYTE},q.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},q.isValid=function(o){return o&&o.bit&&o.ccBits},q.from=function(o,e){if(q.isValid(o))return o;try{return function p(D){if("string"!=typeof D)throw new Error("Param is not a string");switch(D.toLowerCase()){case"numeric":return q.NUMERIC;case"alphanumeric":return q.ALPHANUMERIC;case"kanji":return q.KANJI;case"byte":return q.BYTE;default:throw new Error("Unknown mode: "+D)}}(o)}catch{return e}}},96628(ke,q,l){const i=l(91677);function g(p){this.mode=i.NUMERIC,this.data=p.toString()}g.getBitsLength=function(D){return 10*Math.floor(D/3)+(D%3?D%3*3+1:0)},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(D){let o,e,A;for(o=0;o+3<=this.data.length;o+=3)e=this.data.substr(o,3),A=parseInt(e,10),D.put(A,10);const h=this.data.length-o;h>0&&(e=this.data.substr(o),A=parseInt(e,10),D.put(A,3*h+1))},ke.exports=g},81744(ke,q,l){const i=l(66686);q.mul=function(p,D){const o=new Uint8Array(p.length+D.length-1);for(let e=0;e=0;){const e=o[0];for(let h=0;h>t&1),ye.set(t<6?t:t<8?t+1:Ee-15+t,8,s,!0),ye.set(8,t<8?Ee-t-1:t<9?15-t-1+1:15-t-1,s,!0);ye.set(Ee-8,8,1,!0)}function _e(ye,se,pe,Ee){let L;if(Array.isArray(ye))L=M.fromArray(ye);else{if("string"!=typeof ye)throw new Error("Invalid data");{let _=se;if(!_){const T=M.rawSplit(ye);_=w.getBestVersionForData(T,pe)}L=M.fromString(ye,_||40)}}const t=w.getBestVersionForData(L,pe);if(!t)throw new Error("The amount of data is too big to be stored in a QR Code");if(se){if(se=0&&m<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===m||6===m)||m>=2&&m<=4&&u>=2&&u<=4,!0)}}(u,se),function j(ye){const se=ye.size;for(let pe=8;pe=7&&function ee(ye,se){const pe=ye.size,Ee=w.getEncodedBits(se);let L,t,s;for(let m=0;m<18;m++)L=Math.floor(m/3),t=m%3+pe-8-3,s=1==(Ee>>m&1),ye.set(L,t,s,!0),ye.set(t,L,s,!0)}(u,se),function Q(ye,se){const pe=ye.size;let Ee=-1,L=pe-1,t=7,s=0;for(let m=pe-1;m>0;m-=2)for(6===m&&m--;;){for(let u=0;u<2;u++)if(!ye.isReserved(L,m-u)){let _=!1;s>>t&1)),ye.set(L,m-u,_),t--,-1===t&&(s++,t=7)}if(L+=Ee,L<0||pe<=L){L-=Ee,Ee=-Ee;break}}}(u,s),isNaN(Ee)&&(Ee=A.getBestMask(u,V.bind(null,u,pe))),A.applyMask(Ee,u),V(u,pe,Ee),{modules:u,version:se,errorCorrectionLevel:pe,maskPattern:Ee,segments:L}}q.create=function(se,pe){if(typeof se>"u"||""===se)throw new Error("No input text");let L,t,Ee=g.M;return typeof pe<"u"&&(Ee=g.from(pe.errorCorrectionLevel,g.M),L=w.from(pe.version),t=A.from(pe.maskPattern),pe.toSJISFunc&&i.setToSJISFunction(pe.toSJISFunc)),_e(se,L,Ee,t)}},86289(ke,q,l){const i=l(81744);function g(p){this.genPoly=void 0,this.degree=p,this.degree&&this.initialize(this.degree)}g.prototype.initialize=function(D){this.degree=D,this.genPoly=i.generateECPolynomial(this.degree)},g.prototype.encode=function(D){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(D.length+this.degree);o.set(D);const e=i.mod(o,this.genPoly),A=this.degree-e.length;if(A>0){const h=new Uint8Array(this.degree);return h.set(e,A),h}return e},ke.exports=g},99359(ke,q){const l="[0-9]+";let g="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";g=g.replace(/u/g,"\\u");const p="(?:(?![A-Z0-9 $%*+\\-./:]|"+g+")(?:.|[\r\n]))+";q.KANJI=new RegExp(g,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(p,"g"),q.NUMERIC=new RegExp(l,"g"),q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const D=new RegExp("^"+g+"$"),o=new RegExp("^"+l+"$"),e=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(h){return D.test(h)},q.testNumeric=function(h){return o.test(h)},q.testAlphanumeric=function(h){return e.test(h)}},22868(ke,q,l){const i=l(91677),g=l(96628),p=l(1018),D=l(54969),o=l(83264),e=l(99359),A=l(19089),h=l(80243);function d(ee){return unescape(encodeURIComponent(ee)).length}function w(ee,V,Q){const $=[];let ie;for(;null!==(ie=ee.exec(Q));)$.push({data:ie[0],index:ie.index,mode:V,length:ie[0].length});return $}function f(ee){const V=w(e.NUMERIC,i.NUMERIC,ee),Q=w(e.ALPHANUMERIC,i.ALPHANUMERIC,ee);let $,ie;return A.isKanjiModeEnabled()?($=w(e.BYTE,i.BYTE,ee),ie=w(e.KANJI,i.KANJI,ee)):($=w(e.BYTE_KANJI,i.BYTE,ee),ie=[]),V.concat(Q,$,ie).sort(function(ye,se){return ye.index-se.index}).map(function(ye){return{data:ye.data,mode:ye.mode,length:ye.length}})}function F(ee,V){switch(V){case i.NUMERIC:return g.getBitsLength(ee);case i.ALPHANUMERIC:return p.getBitsLength(ee);case i.KANJI:return o.getBitsLength(ee);case i.BYTE:return D.getBitsLength(ee)}}function Z(ee,V){let Q;const $=i.getBestModeForData(ee);if(Q=i.from(V,$),Q!==i.BYTE&&Q.bit<$.bit)throw new Error('"'+ee+'" cannot be encoded with mode '+i.toString(Q)+".\n Suggested mode is: "+i.toString($));switch(Q===i.KANJI&&!A.isKanjiModeEnabled()&&(Q=i.BYTE),Q){case i.NUMERIC:return new g(ee);case i.ALPHANUMERIC:return new p(ee);case i.KANJI:return new o(ee);case i.BYTE:return new D(ee)}}q.fromArray=function(V){return V.reduce(function(Q,$){return"string"==typeof $?Q.push(Z($,null)):$.data&&Q.push(Z($.data,$.mode)),Q},[])},q.fromString=function(V,Q){const ie=function K(ee){const V=[];for(let Q=0;Q=0?V[V.length-1]:null;return $&&$.mode===Q.mode?(V[V.length-1].data+=Q.data,V):(V.push(Q),V)},[])}(se))},q.rawSplit=function(V){return q.fromArray(f(V,A.isKanjiModeEnabled()))}},19089(ke,q){let l;const i=[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];q.getSymbolSize=function(p){if(!p)throw new Error('"version" cannot be null or undefined');if(p<1||p>40)throw new Error('"version" should be in range from 1 to 40');return 4*p+17},q.getSymbolTotalCodewords=function(p){return i[p]},q.getBCHDigit=function(g){let p=0;for(;0!==g;)p++,g>>>=1;return p},q.setToSJISFunction=function(p){if("function"!=typeof p)throw new Error('"toSJISFunc" is not a valid function.');l=p},q.isKanjiModeEnabled=function(){return typeof l<"u"},q.toSJIS=function(p){return l(p)}},80377(ke,q){q.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40}},91252(ke,q,l){const i=l(19089),g=l(23677),p=l(47424),D=l(91677),o=l(80377),A=i.getBCHDigit(7973);function d(F,M){return D.getCharCountIndicator(F,M)+4}function w(F,M){let K=0;return F.forEach(function(j){const Z=d(j.mode,M);K+=Z+j.getBitsLength()}),K}q.from=function(M,K){return o.isValid(M)?parseInt(M,10):K},q.getCapacity=function(M,K,j){if(!o.isValid(M))throw new Error("Invalid QR Code version");typeof j>"u"&&(j=D.BYTE);const V=8*(i.getSymbolTotalCodewords(M)-g.getTotalCodewordsCount(M,K));if(j===D.MIXED)return V;const Q=V-d(j,M);switch(j){case D.NUMERIC:return Math.floor(Q/10*3);case D.ALPHANUMERIC:return Math.floor(Q/11*2);case D.KANJI:return Math.floor(Q/13);default:return Math.floor(Q/8)}},q.getBestVersionForData=function(M,K){let j;const Z=p.from(K,p.M);if(Array.isArray(M)){if(M.length>1)return function f(F,M){for(let K=1;K<=40;K++)if(w(F,K)<=q.getCapacity(K,M,D.MIXED))return K}(M,Z);if(0===M.length)return 1;j=M[0]}else j=M;return function h(F,M,K){for(let j=1;j<=40;j++)if(M<=q.getCapacity(j,K,F))return j}(j.mode,j.getLength(),Z)},q.getEncodedBits=function(M){if(!o.isValid(M)||M<7)throw new Error("Invalid QR Code version");let K=M<<12;for(;i.getBCHDigit(K)-A>=0;)K^=7973<"u"&&(!e||!e.getContext)&&(h=e,e=void 0),e||(d=function p(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),h=i.getOptions(h);const w=i.getImageWidth(o.modules.size,h),f=d.getContext("2d"),F=f.createImageData(w,w);return i.qrToImageData(F.data,o,h),function g(D,o,e){D.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=e,o.width=e,o.style.height=e+"px",o.style.width=e+"px"}(f,d,w),f.putImageData(F,0,0),d},q.renderToDataURL=function(o,e,A){let h=A;return typeof h>"u"&&(!e||!e.getContext)&&(h=e,e=void 0),h||(h={}),q.render(o,e,h).toDataURL(h.type||"image/png",(h.rendererOpts||{}).quality)}},56511(ke,q,l){const i=l(47077);function g(o,e){const A=o.a/255,h=e+'="'+o.hex+'"';return A<1?h+" "+e+'-opacity="'+A.toFixed(2).slice(1)+'"':h}function p(o,e,A){let h=o+e;return typeof A<"u"&&(h+=" "+A),h}q.render=function(e,A,h){const d=i.getOptions(A),w=e.modules.size,f=e.modules.data,F=w+2*d.margin,M=d.color.light.a?"':"",K="0&&M>0&&o[F-1]||(h+=w?p("M",M+A,.5+K+A):p("m",d,0),d=0,w=!1),M+1',ee=''+M+K+"\n";return"function"==typeof h&&h(null,ee),ee}},47077(ke,q){function l(i){if("number"==typeof i&&(i=i.toString()),"string"!=typeof i)throw new Error("Color should be defined as hex string");let g=i.slice().replace("#","").split("");if(g.length<3||5===g.length||g.length>8)throw new Error("Invalid hex color: "+i);(3===g.length||4===g.length)&&(g=Array.prototype.concat.apply([],g.map(function(D){return[D,D]}))),6===g.length&&g.push("F","F");const p=parseInt(g.join(""),16);return{r:p>>24&255,g:p>>16&255,b:p>>8&255,a:255&p,hex:"#"+g.slice(0,6).join("")}}q.getOptions=function(g){g||(g={}),g.color||(g.color={});const D=g.width&&g.width>=21?g.width:void 0;return{width:D,scale:D?4:g.scale||4,margin:typeof g.margin>"u"||null===g.margin||g.margin<0?4:g.margin,color:{dark:l(g.color.dark||"#000000ff"),light:l(g.color.light||"#ffffffff")},type:g.type,rendererOpts:g.rendererOpts||{}}},q.getScale=function(g,p){return p.width&&p.width>=g+2*p.margin?p.width/(g+2*p.margin):p.scale},q.getImageWidth=function(g,p){const D=q.getScale(g,p);return Math.floor((g+2*p.margin)*D)},q.qrToImageData=function(g,p,D){const o=p.modules.size,e=p.modules.data,A=q.getScale(o,D),h=Math.floor((o+2*D.margin)*A),d=D.margin*A,w=[D.color.light,D.color.dark];for(let f=0;f=d&&F>=d&&f4294967295)throw new RangeError("requested too many random bytes");var d=D.allocUnsafe(A);if(A>0)if(A>i)for(var w=0;wA||M<0)throw new TypeError("offset must be a uint32");if(M>o||M>K)throw new RangeError("offset out of range")}function d(M,K,j){if("number"!=typeof M||M!=M)throw new TypeError("size must be a number");if(M>A||M<0)throw new TypeError("size must be a uint32");if(M+K>j||M>o)throw new RangeError("buffer too small")}function f(M,K,j,Z){if(process.browser){var V=new Uint8Array(M.buffer,K,j);return e.getRandomValues(V),Z?void process.nextTick(function(){Z(null,M)}):M}if(!Z)return p(j).copy(M,K),M;p(j,function($,ie){if($)return Z($);ie.copy(M,K),Z(null,M)})}e&&e.getRandomValues||!process.browser?(q.randomFill=function w(M,K,j,Z){if(!(D.isBuffer(M)||M instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof K)Z=K,K=0,j=M.length;else if("function"==typeof j)Z=j,j=M.length-K;else if("function"!=typeof Z)throw new TypeError('"cb" argument must be a function');return h(K,M.length),d(j,K,M.length),f(M,K,j,Z)},q.randomFillSync=function F(M,K,j){if(typeof K>"u"&&(K=0),!(D.isBuffer(M)||M instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(K,M.length),void 0===j&&(j=M.length-K),d(j,K,M.length),f(M,K,j)}):(q.randomFill=i,q.randomFillSync=i)},74075(ke,q,l){"use strict";var i=l(9656),g=Object.keys||function(F){var M=[];for(var K in F)M.push(K);return M};ke.exports=d;var p=Object.create(l(27637));p.inherits=l(71993);var D=l(19609),o=l(47849);p.inherits(d,D);for(var e=g(o.prototype),A=0;A0?("string"!=typeof ce&&!oe.objectMode&&Object.getPrototypeOf(ce)!==A.prototype&&(ce=function d(ge){return A.from(ge)}(ce)),Me?oe.endEmitted?ge.emit("error",new Error("stream.unshift() after end event")):_e(ge,oe,ce,!0):oe.ended?ge.emit("error",new Error("stream.push() after EOF")):(oe.reading=!1,oe.decoder&&!Re?(ce=oe.decoder.write(ce),oe.objectMode||0!==ce.length?_e(ge,oe,ce,!1):u(ge,oe)):_e(ge,oe,ce,!1))):Me||(oe.reading=!1)),function se(ge){return!ge.ended&&(ge.needReadable||ge.lengthce.highWaterMark&&(ce.highWaterMark=function Ee(ge){return ge>=8388608?ge=8388608:(ge--,ge|=ge>>>1,ge|=ge>>>2,ge|=ge>>>4,ge|=ge>>>8,ge|=ge>>>16,ge++),ge}(ge)),ge<=ce.length?ge:ce.ended?ce.length:(ce.needReadable=!0,0))}function s(ge){var ce=ge._readableState;ce.needReadable=!1,ce.emittedReadable||(M("emitReadable",ce.flowing),ce.emittedReadable=!0,ce.sync?i.nextTick(m,ge):m(ge))}function m(ge){M("emit readable"),ge.emit("readable"),x(ge)}function u(ge,ce){ce.readingMore||(ce.readingMore=!0,i.nextTick(_,ge,ce))}function _(ge,ce){for(var Re=ce.length;!ce.reading&&!ce.flowing&&!ce.ended&&ce.length=ce.length?(Re=ce.decoder?ce.buffer.join(""):1===ce.buffer.length?ce.buffer.head.data:ce.buffer.concat(ce.length),ce.buffer.clear()):Re=function R(ge,ce,Re){var Me;return geoe.length?oe.length:ge;if(ve+=Se===oe.length?oe:oe.slice(0,ge),0===(ge-=Se)){Se===oe.length?(++Me,ce.head=Re.next?Re.next:ce.tail=null):(ce.head=Re,Re.data=oe.slice(Se));break}++Me}return ce.length-=Me,ve}(ge,ce):function fe(ge,ce){var Re=A.allocUnsafe(ge),Me=ce.head,ve=1;for(Me.data.copy(Re),ge-=Me.data.length;Me=Me.next;){var oe=Me.data,Se=ge>oe.length?oe.length:ge;if(oe.copy(Re,Re.length-ge,0,Se),0===(ge-=Se)){Se===oe.length?(++ve,ce.head=Me.next?Me.next:ce.tail=null):(ce.head=Me,Me.data=oe.slice(Se));break}++ve}return ce.length-=ve,Re}(ge,ce),Me}(ge,ce.buffer,ce.decoder),Re);var Re}function re(ge){var ce=ge._readableState;if(ce.length>0)throw new Error('"endReadable()" called on non-empty stream');ce.endEmitted||(ce.ended=!0,i.nextTick(he,ce,ge))}function he(ge,ce){!ge.endEmitted&&0===ge.length&&(ge.endEmitted=!0,ce.readable=!1,ce.emit("end"))}function Oe(ge,ce){for(var Re=0,Me=ge.length;Re=ce.highWaterMark||ce.ended))return M("read: emitReadable",ce.length,ce.ended),0===ce.length&&ce.ended?re(this):s(this),null;if(0===(ge=L(ge,ce))&&ce.ended)return 0===ce.length&&re(this),null;var ve,Me=ce.needReadable;return M("need readable",Me),(0===ce.length||ce.length-ge0?Y(ge,ce):null)?(ce.needReadable=!0,ge=0):ce.length-=ge,0===ce.length&&(ce.ended||(ce.needReadable=!0),Re!==ge&&ce.ended&&re(this)),null!==ve&&this.emit("data",ve),ve},$.prototype._read=function(ge){this.emit("error",new Error("_read() is not implemented"))},$.prototype.pipe=function(ge,ce){var Re=this,Me=this._readableState;switch(Me.pipesCount){case 0:Me.pipes=ge;break;case 1:Me.pipes=[Me.pipes,ge];break;default:Me.pipes.push(ge)}Me.pipesCount+=1,M("pipe count=%d opts=%j",Me.pipesCount,ce);var oe=ce&&!1===ce.end||ge===process.stdout||ge===process.stderr?S:be;function be(){M("onend"),ge.end()}Me.endEmitted?i.nextTick(oe):Re.once("end",oe),ge.on("unpipe",function Se(Xt,de){M("onunpipe"),Xt===Re&&de&&!1===de.hasUnpiped&&(de.hasUnpiped=!0,function dt(){M("cleanup"),ge.removeListener("close",Mn),ge.removeListener("finish",qt),ge.removeListener("drain",nt),ge.removeListener("error",rt),ge.removeListener("unpipe",Se),Re.removeListener("end",be),Re.removeListener("end",S),Re.removeListener("data",Et),$e=!0,Me.awaitDrain&&(!ge._writableState||ge._writableState.needDrain)&&nt()}())});var nt=function T(ge){return function(){var ce=ge._readableState;M("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,0===ce.awaitDrain&&o(ge,"data")&&(ce.flowing=!0,x(ge))}}(Re);ge.on("drain",nt);var $e=!1,yt=!1;function Et(Xt){M("ondata"),yt=!1,!1===ge.write(Xt)&&!yt&&((1===Me.pipesCount&&Me.pipes===ge||Me.pipesCount>1&&-1!==Oe(Me.pipes,ge))&&!$e&&(M("false write response, pause",Me.awaitDrain),Me.awaitDrain++,yt=!0),Re.pause())}function rt(Xt){M("onerror",Xt),S(),ge.removeListener("error",rt),0===o(ge,"error")&&ge.emit("error",Xt)}function Mn(){ge.removeListener("finish",qt),S()}function qt(){M("onfinish"),ge.removeListener("close",Mn),S()}function S(){M("unpipe"),Re.unpipe(ge)}return Re.on("data",Et),function V(ge,ce,Re){if("function"==typeof ge.prependListener)return ge.prependListener(ce,Re);ge._events&&ge._events[ce]?g(ge._events[ce])?ge._events[ce].unshift(Re):ge._events[ce]=[Re,ge._events[ce]]:ge.on(ce,Re)}(ge,"error",rt),ge.once("close",Mn),ge.once("finish",qt),ge.emit("pipe",Re),Me.flowing||(M("pipe resume"),Re.resume()),ge},$.prototype.unpipe=function(ge){var ce=this._readableState,Re={hasUnpiped:!1};if(0===ce.pipesCount)return this;if(1===ce.pipesCount)return ge&&ge!==ce.pipes||(ge||(ge=ce.pipes),ce.pipes=null,ce.pipesCount=0,ce.flowing=!1,ge&&ge.emit("unpipe",this,Re)),this;if(!ge){var Me=ce.pipes,ve=ce.pipesCount;ce.pipes=null,ce.pipesCount=0,ce.flowing=!1;for(var oe=0;oe-1?setImmediate:i.nextTick;ee.WritableState=j;var e=Object.create(l(27637));e.inherits=l(71993);var Z,A={deprecate:l(3398)},h=l(18342),d=l(2655).Buffer,w=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},M=l(21509);function K(){}function j(C,a){o=o||l(74075);var x=a instanceof o;this.objectMode=!!(C=C||{}).objectMode,x&&(this.objectMode=this.objectMode||!!C.writableObjectMode);var Y=C.highWaterMark,R=C.writableHighWaterMark;this.highWaterMark=Y||0===Y?Y:x&&(R||0===R)?R:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===C.decodeStrings),this.defaultEncoding=C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(re){!function pe(C,a){var x=C._writableState,Y=x.sync,R=x.writecb;if(function se(C){C.writing=!1,C.writecb=null,C.length-=C.writelen,C.writelen=0}(x),a)!function ye(C,a,x,Y,R){--a.pendingcb,x?(i.nextTick(R,Y),i.nextTick(_,C,a),C._writableState.errorEmitted=!0,C.emit("error",Y)):(R(Y),C._writableState.errorEmitted=!0,C.emit("error",Y),_(C,a))}(C,x,Y,a,R);else{var U=s(x);!U&&!x.corked&&!x.bufferProcessing&&x.bufferedRequest&&t(C,x),Y?D(Ee,C,x,U,R):Ee(C,x,U,R)}}(a,re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new p(this)}function ee(C){if(o=o||l(74075),!(Z.call(ee,this)||this instanceof o))return new ee(C);this._writableState=new j(C,this),this.writable=!0,C&&("function"==typeof C.write&&(this._write=C.write),"function"==typeof C.writev&&(this._writev=C.writev),"function"==typeof C.destroy&&(this._destroy=C.destroy),"function"==typeof C.final&&(this._final=C.final)),h.call(this)}function _e(C,a,x,Y,R,U,fe){a.writelen=Y,a.writecb=fe,a.writing=!0,a.sync=!0,x?C._writev(R,a.onwrite):C._write(R,U,a.onwrite),a.sync=!1}function Ee(C,a,x,Y){x||function L(C,a){0===a.length&&a.needDrain&&(a.needDrain=!1,C.emit("drain"))}(C,a),a.pendingcb--,Y(),_(C,a)}function t(C,a){a.bufferProcessing=!0;var x=a.bufferedRequest;if(C._writev&&x&&x.next){var R=new Array(a.bufferedRequestCount),U=a.corkedRequestsFree;U.entry=x;for(var fe=0,re=!0;x;)R[fe]=x,x.isBuf||(re=!1),x=x.next,fe+=1;R.allBuffers=re,_e(C,a,!0,a.length,R,"",U.finish),a.pendingcb++,a.lastBufferedRequest=null,U.next?(a.corkedRequestsFree=U.next,U.next=null):a.corkedRequestsFree=new p(a),a.bufferedRequestCount=0}else{for(;x;){var he=x.chunk;if(_e(C,a,!1,a.objectMode?1:he.length,he,x.encoding,x.callback),x=x.next,a.bufferedRequestCount--,a.writing)break}null===x&&(a.lastBufferedRequest=null)}a.bufferedRequest=x,a.bufferProcessing=!1}function s(C){return C.ending&&0===C.length&&null===C.bufferedRequest&&!C.finished&&!C.writing}function m(C,a){C._final(function(x){a.pendingcb--,x&&C.emit("error",x),a.prefinished=!0,C.emit("prefinish"),_(C,a)})}function _(C,a){var x=s(a);return x&&(function u(C,a){!a.prefinished&&!a.finalCalled&&("function"==typeof C._final?(a.pendingcb++,a.finalCalled=!0,i.nextTick(m,C,a)):(a.prefinished=!0,C.emit("prefinish")))}(C,a),0===a.pendingcb&&(a.finished=!0,C.emit("finish"))),x}e.inherits(ee,h),j.prototype.getBuffer=function(){for(var a=this.bufferedRequest,x=[];a;)x.push(a),a=a.next;return x},function(){try{Object.defineProperty(j.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(Z=Function.prototype[Symbol.hasInstance],Object.defineProperty(ee,Symbol.hasInstance,{value:function(C){return!!Z.call(this,C)||this===ee&&C&&C._writableState instanceof j}})):Z=function(C){return C instanceof this},ee.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ee.prototype.write=function(C,a,x){var Y=this._writableState,R=!1,U=!Y.objectMode&&function F(C){return d.isBuffer(C)||C instanceof w}(C);return U&&!d.isBuffer(C)&&(C=function f(C){return d.from(C)}(C)),"function"==typeof a&&(x=a,a=null),U?a="buffer":a||(a=Y.defaultEncoding),"function"!=typeof x&&(x=K),Y.ended?function V(C,a){var x=new Error("write after end");C.emit("error",x),i.nextTick(a,x)}(this,x):(U||function Q(C,a,x,Y){var R=!0,U=!1;return null===x?U=new TypeError("May not write null values to stream"):"string"!=typeof x&&void 0!==x&&!a.objectMode&&(U=new TypeError("Invalid non-string/buffer chunk")),U&&(C.emit("error",U),i.nextTick(Y,U),R=!1),R}(this,Y,C,x))&&(Y.pendingcb++,R=function ie(C,a,x,Y,R,U){if(!x){var fe=function $(C,a,x){return!C.objectMode&&!1!==C.decodeStrings&&"string"==typeof a&&(a=d.from(a,x)),a}(a,Y,R);Y!==fe&&(x=!0,R="buffer",Y=fe)}var re=a.objectMode?1:Y.length;a.length+=re;var he=a.length-1))throw new TypeError("Unknown encoding: "+a);return this._writableState.defaultEncoding=a,this},Object.defineProperty(ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ee.prototype._write=function(C,a,x){x(new Error("_write() is not implemented"))},ee.prototype._writev=null,ee.prototype.end=function(C,a,x){var Y=this._writableState;"function"==typeof C?(x=C,C=null,a=null):"function"==typeof a&&(x=a,a=null),null!=C&&this.write(C,a),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||function T(C,a,x){a.ending=!0,_(C,a),x&&(a.finished?i.nextTick(x):C.once("finish",x)),a.ended=!0,C.writable=!1}(this,Y,x)},Object.defineProperty(ee.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(C){this._writableState&&(this._writableState.destroyed=C)}}),ee.prototype.destroy=M.destroy,ee.prototype._undestroy=M.undestroy,ee.prototype._destroy=function(C,a){this.end(),a(C)}},27809(ke,q,l){"use strict";var g=l(2655).Buffer,p=l(15340);function D(o,e,A){o.copy(e,A)}ke.exports=function(){function o(){(function i(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(A){var h={data:A,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length},o.prototype.unshift=function(A){var h={data:A,next:this.head};0===this.length&&(this.tail=h),this.head=h,++this.length},o.prototype.shift=function(){if(0!==this.length){var A=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,A}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(A){if(0===this.length)return"";for(var h=this.head,d=""+h.data;h=h.next;)d+=A+h.data;return d},o.prototype.concat=function(A){if(0===this.length)return g.alloc(0);for(var h=g.allocUnsafe(A>>>0),d=this.head,w=0;d;)D(d.data,h,w),w+=d.data.length,d=d.next;return h},o}(),p&&p.inspect&&p.inspect.custom&&(ke.exports.prototype[p.inspect.custom]=function(){var o=p.inspect({length:this.length});return this.constructor.name+" "+o})},21509(ke,q,l){"use strict";var i=l(9656);function D(o,e){o.emit("error",e)}ke.exports={destroy:function g(o,e){var A=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(e?e(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(D,this,o)):i.nextTick(D,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(w){!e&&w?A._writableState?A._writableState.errorEmitted||(A._writableState.errorEmitted=!0,i.nextTick(D,A,w)):i.nextTick(D,A,w):e&&e(w)}),this)},undestroy:function p(){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)}}},18342(ke,q,l){ke.exports=l(44356).EventEmitter},2655(ke,q,l){var i=l(83838),g=i.Buffer;function p(o,e){for(var A in o)e[A]=o[A]}function D(o,e,A){return g(o,e,A)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?ke.exports=i:(p(i,q),q.Buffer=D),p(g,D),D.from=function(o,e,A){if("number"==typeof o)throw new TypeError("Argument must not be a number");return g(o,e,A)},D.alloc=function(o,e,A){if("number"!=typeof o)throw new TypeError("Argument must be a number");var h=g(o);return void 0!==e?"string"==typeof A?h.fill(e,A):h.fill(e):h.fill(0),h},D.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return g(o)},D.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return i.SlowBuffer(o)}},5942(ke,q,l){(q=ke.exports=l(19609)).Stream=q,q.Readable=q,q.Writable=l(47849),q.Duplex=l(74075),q.Transform=l(2909),q.PassThrough=l(18823)},36636(ke,q,l){"use strict";var i=l(83838).Buffer,g=l(71993),p=l(19846),D=new Array(16),o=[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],e=[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],A=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],w=[1352829926,1548603684,1836072691,2053994217,0];function f(V,Q){return V<>>32-Q}function F(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q^$^ie)+ye+se|0,pe)+_e|0}function M(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q&$|~Q&ie)+ye+se|0,pe)+_e|0}function K(V,Q,$,ie,_e,ye,se,pe){return f(V+((Q|~$)^ie)+ye+se|0,pe)+_e|0}function j(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q&ie|$&~ie)+ye+se|0,pe)+_e|0}function Z(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q^($|~ie))+ye+se|0,pe)+_e|0}function ee(){p.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}g(ee,p),ee.prototype._update=function(){for(var V=D,Q=0;Q<16;++Q)V[Q]=this._block.readInt32LE(4*Q);for(var $=0|this._a,ie=0|this._b,_e=0|this._c,ye=0|this._d,se=0|this._e,pe=0|this._a,Ee=0|this._b,L=0|this._c,t=0|this._d,s=0|this._e,m=0;m<80;m+=1){var u,_;m<16?(u=F($,ie,_e,ye,se,V[o[m]],d[0],A[m]),_=Z(pe,Ee,L,t,s,V[e[m]],w[0],h[m])):m<32?(u=M($,ie,_e,ye,se,V[o[m]],d[1],A[m]),_=j(pe,Ee,L,t,s,V[e[m]],w[1],h[m])):m<48?(u=K($,ie,_e,ye,se,V[o[m]],d[2],A[m]),_=K(pe,Ee,L,t,s,V[e[m]],w[2],h[m])):m<64?(u=j($,ie,_e,ye,se,V[o[m]],d[3],A[m]),_=M(pe,Ee,L,t,s,V[e[m]],w[3],h[m])):(u=Z($,ie,_e,ye,se,V[o[m]],d[4],A[m]),_=F(pe,Ee,L,t,s,V[e[m]],w[4],h[m])),$=se,se=ye,ye=f(_e,10),_e=ie,ie=u,pe=s,s=t,t=f(L,10),L=Ee,Ee=_}var T=this._b+_e+t|0;this._b=this._c+ye+s|0,this._c=this._d+se+pe|0,this._d=this._e+$+Ee|0,this._e=this._a+ie+L|0,this._a=T},ee.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,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 V=i.alloc?i.alloc(20):new i(20);return V.writeInt32LE(this._a,0),V.writeInt32LE(this._b,4),V.writeInt32LE(this._c,8),V.writeInt32LE(this._d,12),V.writeInt32LE(this._e,16),V},ke.exports=ee},19846(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(35696),p=l(5942).Transform;function o(e){p.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}l(71993)(o,p),o.prototype._transform=function(e,A,h){var d=null;try{this.update(e,A)}catch(w){d=w}h(d)},o.prototype._flush=function(e){var A=null;try{this.push(this.digest())}catch(h){A=h}e(A)},o.prototype.update=function(e,A){if(this._finalized)throw new Error("Digest already called");for(var h=g(e,A),d=this._block,w=0;this._blockOffset+h.length-w>=this._blockSize;){for(var f=this._blockOffset;f0;++F)this._length[F]+=M,(M=this._length[F]/4294967296|0)>0&&(this._length[F]-=4294967296*M);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var A=this._digest();void 0!==e&&(A=A.toString(e)),this._block.fill(0),this._blockOffset=0;for(var h=0;h<4;++h)this._length[h]=0;return A},o.prototype._digest=function(){throw new Error("_digest is not implemented")},ke.exports=o},35696(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(41090),p=typeof Uint8Array<"u",o=p&&typeof ArrayBuffer<"u"&&ArrayBuffer.isView;ke.exports=function(e,A){if("string"==typeof e||i.isBuffer(e)||p&&e instanceof Uint8Array||o&&o(e))return g(e,A);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},84412(ke,q,l){"use strict";l.d(q,{t:()=>g});var i=l(21413);class g extends i.B{constructor(D){super(),this._value=D}get value(){return this.getValue()}_subscribe(D){const o=super._subscribe(D);return!o.closed&&D.next(this._value),o}getValue(){const{hasError:D,thrownError:o,_value:e}=this;if(D)throw o;return this._throwIfClosed(),e}next(D){super.next(this._value=D)}}},71985(ke,q,l){"use strict";l.d(q,{c:()=>h});var i=l(47707),g=l(18359),p=l(3494),D=l(71203),o=l(41026),e=l(98071),A=l(49786);let h=(()=>{class F{constructor(K){K&&(this._subscribe=K)}lift(K){const j=new F;return j.source=this,j.operator=K,j}subscribe(K,j,Z){const ee=function f(F){return F&&F instanceof i.vU||function w(F){return F&&(0,e.T)(F.next)&&(0,e.T)(F.error)&&(0,e.T)(F.complete)}(F)&&(0,g.Uv)(F)}(K)?K:new i.Ms(K,j,Z);return(0,A.Y)(()=>{const{operator:V,source:Q}=this;ee.add(V?V.call(ee,Q):Q?this._subscribe(ee):this._trySubscribe(ee))}),ee}_trySubscribe(K){try{return this._subscribe(K)}catch(j){K.error(j)}}forEach(K,j){return new(j=d(j))((Z,ee)=>{const V=new i.Ms({next:Q=>{try{K(Q)}catch($){ee($),V.unsubscribe()}},error:ee,complete:Z});this.subscribe(V)})}_subscribe(K){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(K)}[p.s](){return this}pipe(...K){return(0,D.m)(K)(this)}toPromise(K){return new(K=d(K))((j,Z)=>{let ee;this.subscribe(V=>ee=V,V=>Z(V),()=>j(ee))})}}return F.create=M=>new F(M),F})();function d(F){var M;return null!==(M=F??o.$.Promise)&&void 0!==M?M:Promise}},92771(ke,q,l){"use strict";l.d(q,{m:()=>p});var i=l(21413),g=l(86129);class p extends i.B{constructor(o=1/0,e=1/0,A=g.U){super(),this._bufferSize=o,this._windowTime=e,this._timestampProvider=A,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,e)}next(o){const{isStopped:e,_buffer:A,_infiniteTimeWindow:h,_timestampProvider:d,_windowTime:w}=this;e||(A.push(o),!h&&A.push(d.now()+w)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(o),{_infiniteTimeWindow:A,_buffer:h}=this,d=h.slice();for(let w=0;wh,B:()=>A});var i=l(71985),g=l(18359);const D=(0,l(81853).L)(d=>function(){d(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var o=l(57908),e=l(49786);let A=(()=>{class d extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(f){const F=new h(this,this);return F.operator=f,F}_throwIfClosed(){if(this.closed)throw new D}next(f){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const F of this.currentObservers)F.next(f)}})}error(f){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=f;const{observers:F}=this;for(;F.length;)F.shift().error(f)}})}complete(){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:f}=this;for(;f.length;)f.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var f;return(null===(f=this.observers)||void 0===f?void 0:f.length)>0}_trySubscribe(f){return this._throwIfClosed(),super._trySubscribe(f)}_subscribe(f){return this._throwIfClosed(),this._checkFinalizedStatuses(f),this._innerSubscribe(f)}_innerSubscribe(f){const{hasError:F,isStopped:M,observers:K}=this;return F||M?g.Kn:(this.currentObservers=null,K.push(f),new g.yU(()=>{this.currentObservers=null,(0,o.o)(K,f)}))}_checkFinalizedStatuses(f){const{hasError:F,thrownError:M,isStopped:K}=this;F?f.error(M):K&&f.complete()}asObservable(){const f=new i.c;return f.source=this,f}}return d.create=(w,f)=>new h(w,f),d})();class h extends A{constructor(w,f){super(),this.destination=w,this.source=f}next(w){var f,F;null===(F=null===(f=this.destination)||void 0===f?void 0:f.next)||void 0===F||F.call(f,w)}error(w){var f,F;null===(F=null===(f=this.destination)||void 0===f?void 0:f.error)||void 0===F||F.call(f,w)}complete(){var w,f;null===(f=null===(w=this.destination)||void 0===w?void 0:w.complete)||void 0===f||f.call(w)}_subscribe(w){var f,F;return null!==(F=null===(f=this.source)||void 0===f?void 0:f.subscribe(w))&&void 0!==F?F:g.Kn}}},47707(ke,q,l){"use strict";l.d(q,{Ms:()=>Z,vU:()=>F});var i=l(98071),g=l(18359),p=l(41026),D=l(45334),o=l(85343);const e=d("C",void 0,void 0);function d(ie,_e,ye){return{kind:ie,value:_e,error:ye}}var w=l(19270),f=l(49786);class F extends g.yU{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,g.Uv)(_e)&&_e.add(this)):this.destination=$}static create(_e,ye,se){return new Z(_e,ye,se)}next(_e){this.isStopped?Q(function h(ie){return d("N",ie,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Q(function A(ie){return d("E",void 0,ie)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Q(e,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const M=Function.prototype.bind;function K(ie,_e){return M.call(ie,_e)}class j{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ye}=this;if(ye.next)try{ye.next(_e)}catch(se){ee(se)}}error(_e){const{partialObserver:ye}=this;if(ye.error)try{ye.error(_e)}catch(se){ee(se)}else ee(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ye){ee(ye)}}}class Z extends F{constructor(_e,ye,se){let pe;if(super(),(0,i.T)(_e)||!_e)pe={next:_e??void 0,error:ye??void 0,complete:se??void 0};else{let Ee;this&&p.$.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),pe={next:_e.next&&K(_e.next,Ee),error:_e.error&&K(_e.error,Ee),complete:_e.complete&&K(_e.complete,Ee)}):pe=_e}this.destination=new j(pe)}}function ee(ie){p.$.useDeprecatedSynchronousErrorHandling?(0,f.l)(ie):(0,D.m)(ie)}function Q(ie,_e){const{onStoppedNotification:ye}=p.$;ye&&w.f.setTimeout(()=>ye(ie,_e))}const $={closed:!0,next:o.l,error:function V(ie){throw ie},complete:o.l}},18359(ke,q,l){"use strict";l.d(q,{Kn:()=>e,yU:()=>o,Uv:()=>A});var i=l(98071);const p=(0,l(81853).L)(d=>function(f){d(this),this.message=f?`${f.length} errors occurred during unsubscription:\n${f.map((F,M)=>`${M+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=f});var D=l(57908);class o{constructor(w){this.initialTeardown=w,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let w;if(!this.closed){this.closed=!0;const{_parentage:f}=this;if(f)if(this._parentage=null,Array.isArray(f))for(const K of f)K.remove(this);else f.remove(this);const{initialTeardown:F}=this;if((0,i.T)(F))try{F()}catch(K){w=K instanceof p?K.errors:[K]}const{_finalizers:M}=this;if(M){this._finalizers=null;for(const K of M)try{h(K)}catch(j){w=w??[],j instanceof p?w=[...w,...j.errors]:w.push(j)}}if(w)throw new p(w)}}add(w){var f;if(w&&w!==this)if(this.closed)h(w);else{if(w instanceof o){if(w.closed||w._hasParent(this))return;w._addParent(this)}(this._finalizers=null!==(f=this._finalizers)&&void 0!==f?f:[]).push(w)}}_hasParent(w){const{_parentage:f}=this;return f===w||Array.isArray(f)&&f.includes(w)}_addParent(w){const{_parentage:f}=this;this._parentage=Array.isArray(f)?(f.push(w),f):f?[f,w]:w}_removeParent(w){const{_parentage:f}=this;f===w?this._parentage=null:Array.isArray(f)&&(0,D.o)(f,w)}remove(w){const{_finalizers:f}=this;f&&(0,D.o)(f,w),w instanceof o&&w._removeParent(this)}}o.EMPTY=(()=>{const d=new o;return d.closed=!0,d})();const e=o.EMPTY;function A(d){return d instanceof o||d&&"closed"in d&&(0,i.T)(d.remove)&&(0,i.T)(d.add)&&(0,i.T)(d.unsubscribe)}function h(d){(0,i.T)(d)?d():d.unsubscribe()}},41026(ke,q,l){"use strict";l.d(q,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},30017(ke,q,l){"use strict";l.d(q,{G:()=>e});var i=l(71985),g=l(18359),p=l(99898),D=l(54360),o=l(39974);class e extends i.c{constructor(h,d){super(),this.source=h,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,o.S)(h)&&(this.lift=h.lift)}_subscribe(h){return this.getSubject().subscribe(h)}getSubject(){const h=this._subject;return(!h||h.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:h}=this;this._subject=this._connection=null,h?.unsubscribe()}connect(){let h=this._connection;if(!h){h=this._connection=new g.yU;const d=this.getSubject();h.add(this.source.subscribe((0,D._)(d,void 0,()=>{this._teardown(),d.complete()},w=>{this._teardown(),d.error(w)},()=>this._teardown()))),h.closed&&(this._connection=null,h=g.yU.EMPTY)}return h}refCount(){return(0,p.B)()(this)}}},84572(ke,q,l){"use strict";l.d(q,{z:()=>w});var i=l(71985),g=l(93073),p=l(22806),D=l(33669),o=l(6450),e=l(9326),A=l(58496),h=l(54360),d=l(45225);function w(...M){const K=(0,e.lI)(M),j=(0,e.ms)(M),{args:Z,keys:ee}=(0,g.D)(M);if(0===Z.length)return(0,p.H)([],K);const V=new i.c(function f(M,K,j=D.D){return Z=>{F(K,()=>{const{length:ee}=M,V=new Array(ee);let Q=ee,$=ee;for(let ie=0;ie{const _e=(0,p.H)(M[ie],K);let ye=!1;_e.subscribe((0,h._)(Z,se=>{V[ie]=se,ye||(ye=!0,$--),$||Z.next(j(V.slice()))},()=>{--Q||Z.complete()}))},Z)},Z)}}(Z,K,ee?Q=>(0,A.e)(ee,Q):D.D));return j?V.pipe((0,o.I)(j)):V}function F(M,K,j){M?(0,d.N)(j,M,K):K()}},28793(ke,q,l){"use strict";l.d(q,{x:()=>o});var i=l(26365),p=l(9326),D=l(22806);function o(...e){return function g(){return(0,i.U)(1)}()((0,D.H)(e,(0,p.lI)(e)))}},59030(ke,q,l){"use strict";l.d(q,{v:()=>p});var i=l(71985),g=l(58750);function p(D){return new i.c(o=>{(0,g.Tg)(D()).subscribe(o)})}},983(ke,q,l){"use strict";l.d(q,{w:()=>p});const p=new(l(71985).c)(e=>e.complete())},27468(ke,q,l){"use strict";l.d(q,{p:()=>h});var i=l(71985),g=l(93073),p=l(58750),D=l(9326),o=l(54360),e=l(6450),A=l(58496);function h(...d){const w=(0,D.ms)(d),{args:f,keys:F}=(0,g.D)(d),M=new i.c(K=>{const{length:j}=f;if(!j)return void K.complete();const Z=new Array(j);let ee=j,V=j;for(let Q=0;Q{$||($=!0,V--),Z[Q]=ie},()=>ee--,void 0,()=>{(!ee||!$)&&(V||K.next(F?(0,A.e)(F,Z):Z),K.complete())}))}});return w?M.pipe((0,e.I)(w)):M}},22806(ke,q,l){"use strict";l.d(q,{H:()=>ye});var i=l(58750),g=l(40941),p=l(39974);function D(se,pe=0){return(0,p.N)((Ee,L)=>{L.add(se.schedule(()=>Ee.subscribe(L),pe))})}var A=l(71985),d=l(4761),w=l(98071),f=l(45225);function M(se,pe){if(!se)throw new Error("Iterable cannot be null");return new A.c(Ee=>{(0,f.N)(Ee,pe,()=>{const L=se[Symbol.asyncIterator]();(0,f.N)(Ee,pe,()=>{L.next().then(t=>{t.done?Ee.complete():Ee.next(t.value)})},0,!0)})})}var K=l(55055),j=l(59858),Z=l(47441),ee=l(85397),V=l(37953),Q=l(50591),$=l(15196);function ye(se,pe){return pe?function _e(se,pe){if(null!=se){if((0,K.l)(se))return function o(se,pe){return(0,i.Tg)(se).pipe(D(pe),(0,g.Q)(pe))}(se,pe);if((0,Z.X)(se))return function h(se,pe){return new A.c(Ee=>{let L=0;return pe.schedule(function(){L===se.length?Ee.complete():(Ee.next(se[L++]),Ee.closed||this.schedule())})})}(se,pe);if((0,j.y)(se))return function e(se,pe){return(0,i.Tg)(se).pipe(D(pe),(0,g.Q)(pe))}(se,pe);if((0,V.T)(se))return M(se,pe);if((0,ee.x)(se))return function F(se,pe){return new A.c(Ee=>{let L;return(0,f.N)(Ee,pe,()=>{L=se[d.l](),(0,f.N)(Ee,pe,()=>{let t,s;try{({value:t,done:s}=L.next())}catch(m){return void Ee.error(m)}s?Ee.complete():Ee.next(t)},0,!0)}),()=>(0,w.T)(L?.return)&&L.return()})}(se,pe);if((0,$.U)(se))return function ie(se,pe){return M((0,$.C)(se),pe)}(se,pe)}throw(0,Q.L)(se)}(se,pe):(0,i.Tg)(se)}},33726(ke,q,l){"use strict";l.d(q,{R:()=>w});var i=l(58750),g=l(71985),p=l(31397),D=l(47441),o=l(98071),e=l(6450);const A=["addListener","removeListener"],h=["addEventListener","removeEventListener"],d=["on","off"];function w(j,Z,ee,V){if((0,o.T)(ee)&&(V=ee,ee=void 0),V)return w(j,Z,ee).pipe((0,e.I)(V));const[Q,$]=function K(j){return(0,o.T)(j.addEventListener)&&(0,o.T)(j.removeEventListener)}(j)?h.map(ie=>_e=>j[ie](Z,_e,ee)):function F(j){return(0,o.T)(j.addListener)&&(0,o.T)(j.removeListener)}(j)?A.map(f(j,Z)):function M(j){return(0,o.T)(j.on)&&(0,o.T)(j.off)}(j)?d.map(f(j,Z)):[];if(!Q&&(0,D.X)(j))return(0,p.Z)(ie=>w(ie,Z,ee))((0,i.Tg)(j));if(!Q)throw new TypeError("Invalid event target");return new g.c(ie=>{const _e=(...ye)=>ie.next(1$(_e)})}function f(j,Z){return ee=>V=>j[ee](Z,V)}},58750(ke,q,l){"use strict";l.d(q,{Tg:()=>M});var i=l(31635),g=l(47441),p=l(59858),D=l(71985),o=l(55055),e=l(37953),A=l(50591),h=l(85397),d=l(15196),w=l(98071),f=l(45334),F=l(3494);function M(ie){if(ie instanceof D.c)return ie;if(null!=ie){if((0,o.l)(ie))return function K(ie){return new D.c(_e=>{const ye=ie[F.s]();if((0,w.T)(ye.subscribe))return ye.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ie);if((0,g.X)(ie))return function j(ie){return new D.c(_e=>{for(let ye=0;ye{ie.then(ye=>{_e.closed||(_e.next(ye),_e.complete())},ye=>_e.error(ye)).then(null,f.m)})}(ie);if((0,e.T)(ie))return V(ie);if((0,h.x)(ie))return function ee(ie){return new D.c(_e=>{for(const ye of ie)if(_e.next(ye),_e.closed)return;_e.complete()})}(ie);if((0,d.U)(ie))return function Q(ie){return V((0,d.C)(ie))}(ie)}throw(0,A.L)(ie)}function V(ie){return new D.c(_e=>{(function $(ie,_e){var ye,se,pe,Ee;return(0,i.sH)(this,void 0,void 0,function*(){try{for(ye=(0,i.xN)(ie);!(se=yield ye.next()).done;)if(_e.next(se.value),_e.closed)return}catch(L){pe={error:L}}finally{try{se&&!se.done&&(Ee=ye.return)&&(yield Ee.call(ye))}finally{if(pe)throw pe.error}}_e.complete()})})(ie,_e).catch(ye=>_e.error(ye))})}},57786(ke,q,l){"use strict";l.d(q,{h:()=>e});var i=l(26365),g=l(58750),p=l(983),D=l(9326),o=l(22806);function e(...A){const h=(0,D.lI)(A),d=(0,D.R0)(A,1/0),w=A;return w.length?1===w.length?(0,g.Tg)(w[0]):(0,i.U)(d)((0,o.H)(w,h)):p.w}},7673(ke,q,l){"use strict";l.d(q,{of:()=>p});var i=l(9326),g=l(22806);function p(...D){const o=(0,i.lI)(D);return(0,g.H)(D,o)}},18810(ke,q,l){"use strict";l.d(q,{$:()=>p});var i=l(71985),g=l(98071);function p(D,o){const e=(0,g.T)(D)?D:()=>D,A=h=>h.error(e());return new i.c(o?h=>o.schedule(A,0,h):A)}},1807(ke,q,l){"use strict";l.d(q,{O:()=>o});var i=l(71985),g=l(43236),p=l(79470),D=l(28211);function o(e=0,A,h=g.b){let d=-1;return null!=A&&((0,p.m)(A)?h=A:d=A),new i.c(w=>{let f=(0,D.v)(e)?+e-h.now():e;f<0&&(f=0);let F=0;return h.schedule(function(){w.closed||(w.next(F++),0<=d?this.schedule(void 0,d):w.complete())},f)})}},54360(ke,q,l){"use strict";l.d(q,{H:()=>p,_:()=>g});var i=l(47707);function g(D,o,e,A,h){return new p(D,o,e,A,h)}class p extends i.vU{constructor(o,e,A,h,d,w){super(o),this.onFinalize=d,this.shouldUnsubscribe=w,this._next=e?function(f){try{e(f)}catch(F){o.error(F)}}:super._next,this._error=h?function(f){try{h(f)}catch(F){o.error(F)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(f){o.error(f)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var o;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(o=this.onFinalize)||void 0===o||o.call(this))}}}},13798(ke,q,l){"use strict";l.d(q,{Z:()=>A});var i=l(43236),g=l(39974),p=l(58750),D=l(54360),e=l(1807);function A(h,d=i.E){return function o(h){return(0,g.N)((d,w)=>{let f=!1,F=null,M=null,K=!1;const j=()=>{if(M?.unsubscribe(),M=null,f){f=!1;const ee=F;F=null,w.next(ee)}K&&w.complete()},Z=()=>{M=null,K&&w.complete()};d.subscribe((0,D._)(w,ee=>{f=!0,F=ee,M||(0,p.Tg)(h(ee)).subscribe(M=(0,D._)(w,j,Z))},()=>{K=!0,(!f||!M||M.closed)&&w.complete()}))})}(()=>(0,e.O)(h,d))}},99437(ke,q,l){"use strict";l.d(q,{W:()=>D});var i=l(58750),g=l(54360),p=l(39974);function D(o){return(0,p.N)((e,A)=>{let w,h=null,d=!1;h=e.subscribe((0,g._)(A,void 0,void 0,f=>{w=(0,i.Tg)(o(f,D(o)(e))),h?(h.unsubscribe(),h=null,w.subscribe(A)):d=!0})),d&&(h.unsubscribe(),h=null,w.subscribe(A))})}},70274(ke,q,l){"use strict";l.d(q,{H:()=>p});var i=l(31397),g=l(98071);function p(D,o){return(0,g.T)(o)?(0,i.Z)(D,o,1):(0,i.Z)(D,1)}},70152(ke,q,l){"use strict";l.d(q,{B:()=>D});var i=l(43236),g=l(39974),p=l(54360);function D(o,e=i.E){return(0,g.N)((A,h)=>{let d=null,w=null,f=null;const F=()=>{if(d){d.unsubscribe(),d=null;const K=w;w=null,h.next(K)}};function M(){const K=f+o,j=e.now();if(j{w=K,f=e.now(),d||(d=e.schedule(M,o),h.add(d))},()=>{F(),h.complete()},void 0,()=>{w=d=null}))})}},39901(ke,q,l){"use strict";l.d(q,{U:()=>p});var i=l(39974),g=l(54360);function p(D){return(0,i.N)((o,e)=>{let A=!1;o.subscribe((0,g._)(e,h=>{A=!0,e.next(h)},()=>{A||e.next(D),e.complete()}))})}},23294(ke,q,l){"use strict";l.d(q,{F:()=>D});var i=l(33669),g=l(39974),p=l(54360);function D(e,A=i.D){return e=e??o,(0,g.N)((h,d)=>{let w,f=!0;h.subscribe((0,p._)(d,F=>{const M=A(F);(f||!e(w,M))&&(f=!1,w=M,d.next(F))}))})}function o(e,A){return e===A}},5964(ke,q,l){"use strict";l.d(q,{p:()=>p});var i=l(39974),g=l(54360);function p(D,o){return(0,i.N)((e,A)=>{let h=0;e.subscribe((0,g._)(A,d=>D.call(o,d,h++)&&A.next(d)))})}},70980(ke,q,l){"use strict";l.d(q,{j:()=>g});var i=l(39974);function g(p){return(0,i.N)((D,o)=>{try{D.subscribe(o)}finally{o.add(p)}})}},61594(ke,q,l){"use strict";l.d(q,{$:()=>A});var i=l(9350),g=l(5964),p=l(96697),D=l(39901),o=l(93774),e=l(33669);function A(h,d){const w=arguments.length>=2;return f=>f.pipe(h?(0,g.p)((F,M)=>h(F,M,f)):e.D,(0,p.s)(1),w?(0,D.U)(d):(0,o.v)(()=>new i.G))}},73557(ke,q,l){"use strict";l.d(q,{w:()=>D});var i=l(39974),g=l(54360),p=l(85343);function D(){return(0,i.N)((o,e)=>{o.subscribe((0,g._)(e,p.l))})}},96354(ke,q,l){"use strict";l.d(q,{T:()=>p});var i=l(39974),g=l(54360);function p(D,o){return(0,i.N)((e,A)=>{let h=0;e.subscribe((0,g._)(A,d=>{A.next(D.call(o,d,h++))}))})}},73703(ke,q,l){"use strict";l.d(q,{u:()=>g});var i=l(96354);function g(p){return(0,i.T)(()=>p)}},26365(ke,q,l){"use strict";l.d(q,{U:()=>p});var i=l(31397),g=l(33669);function p(D=1/0){return(0,i.Z)(g.D,D)}},31397(ke,q,l){"use strict";l.d(q,{Z:()=>h});var i=l(96354),g=l(58750),p=l(39974),D=l(45225),o=l(54360),A=l(98071);function h(d,w,f=1/0){return(0,A.T)(w)?h((F,M)=>(0,i.T)((K,j)=>w(F,K,M,j))((0,g.Tg)(d(F,M))),f):("number"==typeof w&&(f=w),(0,p.N)((F,M)=>function e(d,w,f,F,M,K,j,Z){const ee=[];let V=0,Q=0,$=!1;const ie=()=>{$&&!ee.length&&!V&&w.complete()},_e=se=>V{K&&w.next(se),V++;let pe=!1;(0,g.Tg)(f(se,Q++)).subscribe((0,o._)(w,Ee=>{M?.(Ee),K?_e(Ee):w.next(Ee)},()=>{pe=!0},void 0,()=>{if(pe)try{for(V--;ee.length&&Vye(Ee)):ye(Ee)}ie()}catch(Ee){w.error(Ee)}}))};return d.subscribe((0,o._)(w,_e,()=>{$=!0,ie()})),()=>{Z?.()}}(F,M,d,f)))}},40941(ke,q,l){"use strict";l.d(q,{Q:()=>D});var i=l(45225),g=l(39974),p=l(54360);function D(o,e=0){return(0,g.N)((A,h)=>{A.subscribe((0,p._)(h,d=>(0,i.N)(h,o,()=>h.next(d),e),()=>(0,i.N)(h,o,()=>h.complete(),e),d=>(0,i.N)(h,o,()=>h.error(d),e)))})}},99898(ke,q,l){"use strict";l.d(q,{B:()=>p});var i=l(39974),g=l(54360);function p(){return(0,i.N)((D,o)=>{let e=null;D._refCount++;const A=(0,g._)(o,void 0,void 0,void 0,()=>{if(!D||D._refCount<=0||0<--D._refCount)return void(e=null);const h=D._connection,d=e;e=null,h&&(!d||h===d)&&h.unsubscribe(),o.unsubscribe()});D.subscribe(A),A.closed||(e=D.connect())})}},31943(ke,q,l){"use strict";l.d(q,{S:()=>p});var i=l(39974),g=l(46649);function p(D,o){return(0,i.N)((0,g.S)(D,o,arguments.length>=2,!0))}},46649(ke,q,l){"use strict";l.d(q,{S:()=>g});var i=l(54360);function g(p,D,o,e,A){return(h,d)=>{let w=o,f=D,F=0;h.subscribe((0,i._)(d,M=>{const K=F++;f=w?p(f,M,K):(w=!0,M),e&&d.next(f)},A&&(()=>{w&&d.next(f),d.complete()})))}}},97647(ke,q,l){"use strict";l.d(q,{u:()=>o});var i=l(58750),g=l(21413),p=l(47707),D=l(39974);function o(A={}){const{connector:h=()=>new g.B,resetOnError:d=!0,resetOnComplete:w=!0,resetOnRefCountZero:f=!0}=A;return F=>{let M,K,j,Z=0,ee=!1,V=!1;const Q=()=>{K?.unsubscribe(),K=void 0},$=()=>{Q(),M=j=void 0,ee=V=!1},ie=()=>{const _e=M;$(),_e?.unsubscribe()};return(0,D.N)((_e,ye)=>{Z++,!V&&!ee&&Q();const se=j=j??h();ye.add(()=>{Z--,0===Z&&!V&&!ee&&(K=e(ie,f))}),se.subscribe(ye),!M&&Z>0&&(M=new p.Ms({next:pe=>se.next(pe),error:pe=>{V=!0,Q(),K=e($,d,pe),se.error(pe)},complete:()=>{ee=!0,Q(),K=e($,w),se.complete()}}),(0,i.Tg)(_e).subscribe(M))})(F)}}function e(A,h,...d){if(!0===h)return void A();if(!1===h)return;const w=new p.Ms({next:()=>{w.unsubscribe(),A()}});return(0,i.Tg)(h(...d)).subscribe(w)}},65245(ke,q,l){"use strict";l.d(q,{i:()=>g});var i=l(5964);function g(p){return(0,i.p)((D,o)=>p<=o)}},99172(ke,q,l){"use strict";l.d(q,{Z:()=>D});var i=l(28793),g=l(9326),p=l(39974);function D(...o){const e=(0,g.lI)(o);return(0,p.N)((A,h)=>{(e?(0,i.x)(o,A,e):(0,i.x)(o,A)).subscribe(h)})}},25558(ke,q,l){"use strict";l.d(q,{n:()=>D});var i=l(58750),g=l(39974),p=l(54360);function D(o,e){return(0,g.N)((A,h)=>{let d=null,w=0,f=!1;const F=()=>f&&!d&&h.complete();A.subscribe((0,p._)(h,M=>{d?.unsubscribe();let K=0;const j=w++;(0,i.Tg)(o(M,j)).subscribe(d=(0,p._)(h,Z=>h.next(e?e(M,Z,j,K++):Z),()=>{d=null,F()}))},()=>{f=!0,F()}))})}},96697(ke,q,l){"use strict";l.d(q,{s:()=>D});var i=l(983),g=l(39974),p=l(54360);function D(o){return o<=0?()=>i.w:(0,g.N)((e,A)=>{let h=0;e.subscribe((0,p._)(A,d=>{++h<=o&&(A.next(d),o<=h&&A.complete())}))})}},56977(ke,q,l){"use strict";l.d(q,{Q:()=>o});var i=l(39974),g=l(54360),p=l(58750),D=l(85343);function o(e){return(0,i.N)((A,h)=>{(0,p.Tg)(e).subscribe((0,g._)(h,()=>h.complete(),D.l)),!h.closed&&A.subscribe(h)})}},88141(ke,q,l){"use strict";l.d(q,{M:()=>o});var i=l(98071),g=l(39974),p=l(54360),D=l(33669);function o(e,A,h){const d=(0,i.T)(e)||A||h?{next:e,error:A,complete:h}:e;return d?(0,g.N)((w,f)=>{var F;null===(F=d.subscribe)||void 0===F||F.call(d);let M=!0;w.subscribe((0,p._)(f,K=>{var j;null===(j=d.next)||void 0===j||j.call(d,K),f.next(K)},()=>{var K;M=!1,null===(K=d.complete)||void 0===K||K.call(d),f.complete()},K=>{var j;M=!1,null===(j=d.error)||void 0===j||j.call(d,K),f.error(K)},()=>{var K,j;M&&(null===(K=d.unsubscribe)||void 0===K||K.call(d)),null===(j=d.finalize)||void 0===j||j.call(d)}))}):D.D}},93774(ke,q,l){"use strict";l.d(q,{v:()=>D});var i=l(9350),g=l(39974),p=l(54360);function D(e=o){return(0,g.N)((A,h)=>{let d=!1;A.subscribe((0,p._)(h,w=>{d=!0,h.next(w)},()=>d?h.complete():h.error(e())))})}function o(){return new i.G}},53993(ke,q,l){"use strict";l.d(q,{E:()=>A});var i=l(39974),g=l(54360),p=l(58750),D=l(33669),o=l(85343),e=l(9326);function A(...h){const d=(0,e.ms)(h);return(0,i.N)((w,f)=>{const F=h.length,M=new Array(F);let K=h.map(()=>!1),j=!1;for(let Z=0;Z{M[Z]=ee,!j&&!K[Z]&&(K[Z]=!0,(j=K.every(D.D))&&(K=null))},o.l));w.subscribe((0,g._)(f,Z=>{if(j){const ee=[Z,...M];f.next(d?d(...ee):ee)}}))})}},96780(ke,q,l){"use strict";l.d(q,{R:()=>o});var i=l(18359);class g extends i.yU{constructor(A,h){super()}schedule(A,h=0){return this}}const p={setInterval(e,A,...h){const{delegate:d}=p;return d?.setInterval?d.setInterval(e,A,...h):setInterval(e,A,...h)},clearInterval(e){const{delegate:A}=p;return(A?.clearInterval||clearInterval)(e)},delegate:void 0};var D=l(57908);class o extends g{constructor(A,h){super(A,h),this.scheduler=A,this.work=h,this.pending=!1}schedule(A,h=0){var d;if(this.closed)return this;this.state=A;const w=this.id,f=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(f,w,h)),this.pending=!0,this.delay=h,this.id=null!==(d=this.id)&&void 0!==d?d:this.requestAsyncId(f,this.id,h),this}requestAsyncId(A,h,d=0){return p.setInterval(A.flush.bind(A,this),d)}recycleAsyncId(A,h,d=0){if(null!=d&&this.delay===d&&!1===this.pending)return h;null!=h&&p.clearInterval(h)}execute(A,h){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const d=this._execute(A,h);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(A,h){let w,d=!1;try{this.work(A)}catch(f){d=!0,w=f||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),w}unsubscribe(){if(!this.closed){const{id:A,scheduler:h}=this,{actions:d}=h;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.o)(d,this),null!=A&&(this.id=this.recycleAsyncId(h,A,null)),this.delay=null,super.unsubscribe()}}}},39687(ke,q,l){"use strict";l.d(q,{q:()=>p});var i=l(86129);class g{constructor(o,e=g.now){this.schedulerActionCtor=o,this.now=e}schedule(o,e=0,A){return new this.schedulerActionCtor(this,o).schedule(A,e)}}g.now=i.U.now;class p extends g{constructor(o,e=g.now){super(o,e),this.actions=[],this._active=!1}flush(o){const{actions:e}=this;if(this._active)return void e.push(o);let A;this._active=!0;do{if(A=o.execute(o.state,o.delay))break}while(o=e.shift());if(this._active=!1,A){for(;o=e.shift();)o.unsubscribe();throw A}}}},43236(ke,q,l){"use strict";l.d(q,{E:()=>p,b:()=>D});var i=l(96780);const p=new(l(39687).q)(i.R),D=p},86129(ke,q,l){"use strict";l.d(q,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},47242(ke,q,l){"use strict";l.d(q,{T:()=>o});var i=l(96780),p=l(39687);const o=new class D extends p.q{}(class g extends i.R{constructor(h,d){super(h,d),this.scheduler=h,this.work=d}schedule(h,d=0){return d>0?super.schedule(h,d):(this.delay=d,this.state=h,this.scheduler.flush(this),this)}execute(h,d){return d>0||this.closed?super.execute(h,d):this._execute(h,d)}requestAsyncId(h,d,w=0){return null!=w&&w>0||null==w&&this.delay>0?super.requestAsyncId(h,d,w):(h.flush(this),0)}})},19270(ke,q,l){"use strict";l.d(q,{f:()=>i});const i={setTimeout(g,p,...D){const{delegate:o}=i;return o?.setTimeout?o.setTimeout(g,p,...D):setTimeout(g,p,...D)},clearTimeout(g){const{delegate:p}=i;return(p?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761(ke,q,l){"use strict";l.d(q,{l:()=>g});const g=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494(ke,q,l){"use strict";l.d(q,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350(ke,q,l){"use strict";l.d(q,{G:()=>g});const g=(0,l(81853).L)(p=>function(){p(this),this.name="EmptyError",this.message="no elements in sequence"})},9326(ke,q,l){"use strict";l.d(q,{R0:()=>e,lI:()=>o,ms:()=>D});var i=l(98071),g=l(79470);function p(A){return A[A.length-1]}function D(A){return(0,i.T)(p(A))?A.pop():void 0}function o(A){return(0,g.m)(p(A))?A.pop():void 0}function e(A,h){return"number"==typeof p(A)?A.pop():h}},93073(ke,q,l){"use strict";l.d(q,{D:()=>o});const{isArray:i}=Array,{getPrototypeOf:g,prototype:p,keys:D}=Object;function o(A){if(1===A.length){const h=A[0];if(i(h))return{args:h,keys:null};if(function e(A){return A&&"object"==typeof A&&g(A)===p}(h)){const d=D(h);return{args:d.map(w=>h[w]),keys:d}}}return{args:A,keys:null}}},57908(ke,q,l){"use strict";function i(g,p){if(g){const D=g.indexOf(p);0<=D&&g.splice(D,1)}}l.d(q,{o:()=>i})},81853(ke,q,l){"use strict";function i(g){const D=g(o=>{Error.call(o),o.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}l.d(q,{L:()=>i})},58496(ke,q,l){"use strict";function i(g,p){return g.reduce((D,o,e)=>(D[o]=p[e],D),{})}l.d(q,{e:()=>i})},49786(ke,q,l){"use strict";l.d(q,{Y:()=>p,l:()=>D});var i=l(41026);let g=null;function p(o){if(i.$.useDeprecatedSynchronousErrorHandling){const e=!g;if(e&&(g={errorThrown:!1,error:null}),o(),e){const{errorThrown:A,error:h}=g;if(g=null,A)throw h}}else o()}function D(o){i.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=o)}},45225(ke,q,l){"use strict";function i(g,p,D,o=0,e=!1){const A=p.schedule(function(){D(),e?g.add(this.schedule(null,o)):this.unsubscribe()},o);if(g.add(A),!e)return A}l.d(q,{N:()=>i})},33669(ke,q,l){"use strict";function i(g){return g}l.d(q,{D:()=>i})},47441(ke,q,l){"use strict";l.d(q,{X:()=>i});const i=g=>g&&"number"==typeof g.length&&"function"!=typeof g},37953(ke,q,l){"use strict";l.d(q,{T:()=>g});var i=l(98071);function g(p){return Symbol.asyncIterator&&(0,i.T)(p?.[Symbol.asyncIterator])}},28211(ke,q,l){"use strict";function i(g){return g instanceof Date&&!isNaN(g)}l.d(q,{v:()=>i})},98071(ke,q,l){"use strict";function i(g){return"function"==typeof g}l.d(q,{T:()=>i})},55055(ke,q,l){"use strict";l.d(q,{l:()=>p});var i=l(3494),g=l(98071);function p(D){return(0,g.T)(D[i.s])}},85397(ke,q,l){"use strict";l.d(q,{x:()=>p});var i=l(4761),g=l(98071);function p(D){return(0,g.T)(D?.[i.l])}},74402(ke,q,l){"use strict";l.d(q,{A:()=>p});var i=l(71985),g=l(98071);function p(D){return!!D&&(D instanceof i.c||(0,g.T)(D.lift)&&(0,g.T)(D.subscribe))}},59858(ke,q,l){"use strict";l.d(q,{y:()=>g});var i=l(98071);function g(p){return(0,i.T)(p?.then)}},15196(ke,q,l){"use strict";l.d(q,{C:()=>p,U:()=>D});var i=l(31635),g=l(98071);function p(o){return(0,i.AQ)(this,arguments,function*(){const A=o.getReader();try{for(;;){const{value:h,done:d}=yield(0,i.N3)(A.read());if(d)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(h)}}finally{A.releaseLock()}})}function D(o){return(0,g.T)(o?.getReader)}},79470(ke,q,l){"use strict";l.d(q,{m:()=>g});var i=l(98071);function g(p){return p&&(0,i.T)(p.schedule)}},39974(ke,q,l){"use strict";l.d(q,{N:()=>p,S:()=>g});var i=l(98071);function g(D){return(0,i.T)(D?.lift)}function p(D){return o=>{if(g(o))return o.lift(function(e){try{return D(e,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450(ke,q,l){"use strict";l.d(q,{I:()=>D});var i=l(96354);const{isArray:g}=Array;function D(o){return(0,i.T)(e=>function p(o,e){return g(e)?o(...e):o(e)}(o,e))}},85343(ke,q,l){"use strict";function i(){}l.d(q,{l:()=>i})},71203(ke,q,l){"use strict";l.d(q,{F:()=>g,m:()=>p});var i=l(33669);function g(...D){return p(D)}function p(D){return 0===D.length?i.D:1===D.length?D[0]:function(e){return D.reduce((A,h)=>h(A),e)}}},45334(ke,q,l){"use strict";l.d(q,{m:()=>p});var i=l(41026),g=l(19270);function p(D){g.f.setTimeout(()=>{const{onUnhandledError:o}=i.$;if(!o)throw D;o(D)})}},50591(ke,q,l){"use strict";function i(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(q,{L:()=>i})},27054(ke,q,l){var i=l(83838),g=i.Buffer;function p(o,e){for(var A in o)e[A]=o[A]}function D(o,e,A){return g(o,e,A)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?ke.exports=i:(p(i,q),q.Buffer=D),D.prototype=Object.create(g.prototype),p(g,D),D.from=function(o,e,A){if("number"==typeof o)throw new TypeError("Argument must not be a number");return g(o,e,A)},D.alloc=function(o,e,A){if("number"!=typeof o)throw new TypeError("Argument must be a number");var h=g(o);return void 0!==e?"string"==typeof A?h.fill(e,A):h.fill(e):h.fill(0),h},D.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return g(o)},D.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return i.SlowBuffer(o)}},31358(ke,q,l){"use strict";var i=l(90258),g=l(92736),p=l(35861)(),D=l(83798),o=l(46758),e=i("%Math.floor%");ke.exports=function(h,d){if("function"!=typeof h)throw new o("`fn` is not a function");if("number"!=typeof d||d<0||d>4294967295||e(d)!==d)throw new o("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],f=!0,F=!0;if("length"in h&&D){var M=D(h,"length");M&&!M.configurable&&(f=!1),M&&!M.writable&&(F=!1)}return(f||F||!w)&&(p?g(h,"length",d,!0,!0):g(h,"length",d)),h}},70463(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(41090);function p(D,o){this._block=i.alloc(D),this._finalSize=o,this._blockSize=D,this._len=0}p.prototype.update=function(D,o){D=g(D,o||"utf8");for(var e=this._block,A=this._blockSize,h=D.length,d=this._len,w=0;w=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=8*this._len;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var A=(4294967295&e)>>>0;this._block.writeUInt32BE((e-A)/4294967296,this._blockSize-8),this._block.writeUInt32BE(A,this._blockSize-4)}this._update(this._block);var d=this._hash();return D?d.toString(D):d},p.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ke.exports=p},25443(ke,q,l){"use strict";ke.exports=function(g){var p=g.toLowerCase(),D=ke.exports[p];if(!D)throw new Error(p+" is not supported (we accept pull requests)");return new D},ke.exports.sha=l(48585),ke.exports.sha1=l(21270),ke.exports.sha224=l(42709),ke.exports.sha256=l(32148),ke.exports.sha384=l(51856),ke.exports.sha512=l(3121)},48585(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function e(){this.init(),this._w=o,g.call(this,64,56)}function A(w){return w<<5|w>>>27}function h(w){return w<<30|w>>>2}function d(w,f,F,M){return 0===w?f&F|~f&M:2===w?f&F|f&M|F&M:f^F^M}i(e,g),e.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},e.prototype._update=function(w){for(var f=this._w,F=0|this._a,M=0|this._b,K=0|this._c,j=0|this._d,Z=0|this._e,ee=0;ee<16;++ee)f[ee]=w.readInt32BE(4*ee);for(;ee<80;++ee)f[ee]=f[ee-3]^f[ee-8]^f[ee-14]^f[ee-16];for(var V=0;V<80;++V){var Q=~~(V/20),$=A(F)+d(Q,M,K,j)+Z+f[V]+D[Q]|0;Z=j,j=K,K=h(M),M=F,F=$}this._a=F+this._a|0,this._b=M+this._b|0,this._c=K+this._c|0,this._d=j+this._d|0,this._e=Z+this._e|0},e.prototype._hash=function(){var w=p.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},ke.exports=e},21270(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function e(){this.init(),this._w=o,g.call(this,64,56)}function A(f){return f<<1|f>>>31}function h(f){return f<<5|f>>>27}function d(f){return f<<30|f>>>2}function w(f,F,M,K){return 0===f?F&M|~F&K:2===f?F&M|F&K|M&K:F^M^K}i(e,g),e.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},e.prototype._update=function(f){for(var F=this._w,M=0|this._a,K=0|this._b,j=0|this._c,Z=0|this._d,ee=0|this._e,V=0;V<16;++V)F[V]=f.readInt32BE(4*V);for(;V<80;++V)F[V]=A(F[V-3]^F[V-8]^F[V-14]^F[V-16]);for(var Q=0;Q<80;++Q){var $=~~(Q/20),ie=h(M)+w($,K,j,Z)+ee+F[Q]+D[$]|0;ee=Z,Z=j,j=d(K),K=M,M=ie}this._a=M+this._a|0,this._b=K+this._b|0,this._c=j+this._c|0,this._d=Z+this._d|0,this._e=ee+this._e|0},e.prototype._hash=function(){var f=p.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},ke.exports=e},42709(ke,q,l){"use strict";var i=l(71993),g=l(32148),p=l(70463),D=l(27054).Buffer,o=new Array(64);function e(){this.init(),this._w=o,p.call(this,64,56)}i(e,g),e.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},e.prototype._hash=function(){var A=D.allocUnsafe(28);return A.writeInt32BE(this._a,0),A.writeInt32BE(this._b,4),A.writeInt32BE(this._c,8),A.writeInt32BE(this._d,12),A.writeInt32BE(this._e,16),A.writeInt32BE(this._f,20),A.writeInt32BE(this._g,24),A},ke.exports=e},32148(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[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],o=new Array(64);function e(){this.init(),this._w=o,g.call(this,64,56)}function A(M,K,j){return j^M&(K^j)}function h(M,K,j){return M&K|j&(M|K)}function d(M){return(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10)}function w(M){return(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7)}function f(M){return(M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3}function F(M){return(M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10}i(e,g),e.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},e.prototype._update=function(M){for(var K=this._w,j=0|this._a,Z=0|this._b,ee=0|this._c,V=0|this._d,Q=0|this._e,$=0|this._f,ie=0|this._g,_e=0|this._h,ye=0;ye<16;++ye)K[ye]=M.readInt32BE(4*ye);for(;ye<64;++ye)K[ye]=F(K[ye-2])+K[ye-7]+f(K[ye-15])+K[ye-16]|0;for(var se=0;se<64;++se){var pe=_e+w(Q)+A(Q,$,ie)+D[se]+K[se]|0,Ee=d(j)+h(j,Z,ee)|0;_e=ie,ie=$,$=Q,Q=V+pe|0,V=ee,ee=Z,Z=j,j=pe+Ee|0}this._a=j+this._a|0,this._b=Z+this._b|0,this._c=ee+this._c|0,this._d=V+this._d|0,this._e=Q+this._e|0,this._f=$+this._f|0,this._g=ie+this._g|0,this._h=_e+this._h|0},e.prototype._hash=function(){var M=p.allocUnsafe(32);return M.writeInt32BE(this._a,0),M.writeInt32BE(this._b,4),M.writeInt32BE(this._c,8),M.writeInt32BE(this._d,12),M.writeInt32BE(this._e,16),M.writeInt32BE(this._f,20),M.writeInt32BE(this._g,24),M.writeInt32BE(this._h,28),M},ke.exports=e},51856(ke,q,l){"use strict";var i=l(71993),g=l(3121),p=l(70463),D=l(27054).Buffer,o=new Array(160);function e(){this.init(),this._w=o,p.call(this,128,112)}i(e,g),e.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},e.prototype._hash=function(){var A=D.allocUnsafe(48);function h(d,w,f){A.writeInt32BE(d,f),A.writeInt32BE(w,f+4)}return h(this._ah,this._al,0),h(this._bh,this._bl,8),h(this._ch,this._cl,16),h(this._dh,this._dl,24),h(this._eh,this._el,32),h(this._fh,this._fl,40),A},ke.exports=e},3121(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[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],o=new Array(160);function e(){this.init(),this._w=o,g.call(this,128,112)}function A(Z,ee,V){return V^Z&(ee^V)}function h(Z,ee,V){return Z&ee|V&(Z|ee)}function d(Z,ee){return(Z>>>28|ee<<4)^(ee>>>2|Z<<30)^(ee>>>7|Z<<25)}function w(Z,ee){return(Z>>>14|ee<<18)^(Z>>>18|ee<<14)^(ee>>>9|Z<<23)}function f(Z,ee){return(Z>>>1|ee<<31)^(Z>>>8|ee<<24)^Z>>>7}function F(Z,ee){return(Z>>>1|ee<<31)^(Z>>>8|ee<<24)^(Z>>>7|ee<<25)}function M(Z,ee){return(Z>>>19|ee<<13)^(ee>>>29|Z<<3)^Z>>>6}function K(Z,ee){return(Z>>>19|ee<<13)^(ee>>>29|Z<<3)^(Z>>>6|ee<<26)}function j(Z,ee){return Z>>>0>>0?1:0}i(e,g),e.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},e.prototype._update=function(Z){for(var ee=this._w,V=0|this._ah,Q=0|this._bh,$=0|this._ch,ie=0|this._dh,_e=0|this._eh,ye=0|this._fh,se=0|this._gh,pe=0|this._hh,Ee=0|this._al,L=0|this._bl,t=0|this._cl,s=0|this._dl,m=0|this._el,u=0|this._fl,_=0|this._gl,T=0|this._hl,P=0;P<32;P+=2)ee[P]=Z.readInt32BE(4*P),ee[P+1]=Z.readInt32BE(4*P+4);for(;P<160;P+=2){var C=ee[P-30],a=ee[P-30+1],x=f(C,a),Y=F(a,C),R=M(C=ee[P-4],a=ee[P-4+1]),U=K(a,C),he=ee[P-32],Oe=ee[P-32+1],ge=Y+ee[P-14+1]|0,ce=x+ee[P-14]+j(ge,Y)|0;ce=(ce=ce+R+j(ge=ge+U|0,U)|0)+he+j(ge=ge+Oe|0,Oe)|0,ee[P]=ce,ee[P+1]=ge}for(var Re=0;Re<160;Re+=2){ce=ee[Re],ge=ee[Re+1];var Me=h(V,Q,$),ve=h(Ee,L,t),oe=d(V,Ee),Se=d(Ee,V),be=w(_e,m),nt=w(m,_e),$e=D[Re],dt=D[Re+1],yt=A(_e,ye,se),Et=A(m,u,_),rt=T+nt|0,Mn=pe+be+j(rt,T)|0;Mn=(Mn=(Mn=Mn+yt+j(rt=rt+Et|0,Et)|0)+$e+j(rt=rt+dt|0,dt)|0)+ce+j(rt=rt+ge|0,ge)|0;var qt=Se+ve|0,S=oe+Me+j(qt,Se)|0;pe=se,T=_,se=ye,_=u,ye=_e,u=m,_e=ie+Mn+j(m=s+rt|0,s)|0,ie=$,s=t,$=Q,t=L,Q=V,L=Ee,V=Mn+S+j(Ee=rt+qt|0,rt)|0}this._al=this._al+Ee|0,this._bl=this._bl+L|0,this._cl=this._cl+t|0,this._dl=this._dl+s|0,this._el=this._el+m|0,this._fl=this._fl+u|0,this._gl=this._gl+_|0,this._hl=this._hl+T|0,this._ah=this._ah+V+j(this._al,Ee)|0,this._bh=this._bh+Q+j(this._bl,L)|0,this._ch=this._ch+$+j(this._cl,t)|0,this._dh=this._dh+ie+j(this._dl,s)|0,this._eh=this._eh+_e+j(this._el,m)|0,this._fh=this._fh+ye+j(this._fl,u)|0,this._gh=this._gh+se+j(this._gl,_)|0,this._hh=this._hh+pe+j(this._hl,T)|0},e.prototype._hash=function(){var Z=p.allocUnsafe(64);function ee(V,Q,$){Z.writeInt32BE(V,$),Z.writeInt32BE(Q,$+4)}return ee(this._ah,this._al,0),ee(this._bh,this._bl,8),ee(this._ch,this._cl,16),ee(this._dh,this._dl,24),ee(this._eh,this._el,32),ee(this._fh,this._fl,40),ee(this._gh,this._gl,48),ee(this._hh,this._hl,56),Z},ke.exports=e},82852(ke,q,l){!function(i){"use strict";var g={};ke.exports?(g.bytesToHex=l(24740).bytesToHex,g.convertString=l(10820),ke.exports=h):(g.bytesToHex=i.convertHex.bytesToHex,g.convertString=i.convertString,i.sha256=h);var p=[];!function(){function d(M){for(var K=Math.sqrt(M),j=2;j<=K;j++)if(!(M%j))return!1;return!0}function w(M){return 4294967296*(M-(0|M))|0}for(var f=2,F=0;F<64;)d(f)&&(p[F]=w(Math.pow(f,1/3)),F++),f++}();var D=function(d){for(var w=[],f=0,F=0;f>>5]|=d[f]<<24-F%32;return w},o=function(d){for(var w=[],f=0;f<32*d.length;f+=8)w.push(d[f>>>5]>>>24-f%32&255);return w},e=[],A=function(d,w,f){for(var F=d[0],M=d[1],K=d[2],j=d[3],Z=d[4],ee=d[5],V=d[6],Q=d[7],$=0;$<64;$++){if($<16)e[$]=0|w[f+$];else{var ie=e[$-15],ye=e[$-2];e[$]=((ie<<25|ie>>>7)^(ie<<14|ie>>>18)^ie>>>3)+e[$-7]+((ye<<15|ye>>>17)^(ye<<13|ye>>>19)^ye>>>10)+e[$-16]}var Ee=F&M^F&K^M&K,s=Q+((Z<<26|Z>>>6)^(Z<<21|Z>>>11)^(Z<<7|Z>>>25))+(Z&ee^~Z&V)+p[$]+e[$];Q=V,V=ee,ee=Z,Z=j+s|0,j=K,K=M,M=F,F=s+(((F<<30|F>>>2)^(F<<19|F>>>13)^(F<<10|F>>>22))+Ee)|0}d[0]=d[0]+F|0,d[1]=d[1]+M|0,d[2]=d[2]+K|0,d[3]=d[3]+j|0,d[4]=d[4]+Z|0,d[5]=d[5]+ee|0,d[6]=d[6]+V|0,d[7]=d[7]+Q|0};function h(d,w){d.constructor===String&&(d=g.convertString.UTF8.stringToBytes(d));var f=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],F=D(d),M=8*d.length;F[M>>5]|=128<<24-M%32,F[15+(M+64>>9<<4)]=M;for(var K=0;K2?"one of ".concat(A," ").concat(e.slice(0,h-1).join(", "),", or ")+e[h-1]:2===h?"one of ".concat(A," ").concat(e[0]," or ").concat(e[1]):"of ".concat(A," ").concat(e[0])}return"of ".concat(A," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,A){return'The value "'+A+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,A,h){var d,w;if("string"==typeof A&&function p(e,A,h){return e.substr(!h||h<0?0:+h,A.length)===A}(A,"not ")?(d="must not be",A=A.replace(/^not /,"")):d="must be",function D(e,A,h){return(void 0===h||h>e.length)&&(h=e.length),e.substring(h-A.length,h)===A}(e," argument"))w="The ".concat(e," ").concat(d," ").concat(g(A,"type"));else{var f=function o(e,A,h){return"number"!=typeof h&&(h=0),!(h+A.length>e.length)&&-1!==e.indexOf(A,h)}(e,".")?"property":"argument";w='The "'.concat(e,'" ').concat(f," ").concat(d," ").concat(g(A,"type"))}return w+". Received type ".concat(typeof h)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ke.exports.F=l},1030(ke,q,l){"use strict";var i=Object.keys||function(w){var f=[];for(var F in w)f.push(F);return f};ke.exports=A;var g=l(61092),p=l(15492);l(71993)(A,g);for(var D=i(p.prototype),o=0;o0)if("string"!=typeof oe&&!$e.objectMode&&Object.getPrototypeOf(oe)!==o.prototype&&(oe=function A(ve){return o.from(ve)}(oe)),be)$e.endEmitted?ye(ve,new Q):s(ve,$e,oe,!0);else if($e.ended)ye(ve,new ee);else{if($e.destroyed)return!1;$e.reading=!1,$e.decoder&&!Se?(oe=$e.decoder.write(oe),$e.objectMode||0!==oe.length?s(ve,$e,oe,!1):x(ve,$e)):s(ve,$e,oe,!1)}else be||($e.reading=!1,x(ve,$e));return!$e.ended&&($e.length<$e.highWaterMark||0===$e.length)}function s(ve,oe,Se,be){oe.flowing&&0===oe.length&&!oe.sync?(oe.awaitDrain=0,ve.emit("data",Se)):(oe.length+=oe.objectMode?1:Se.length,be?oe.buffer.unshift(Se):oe.buffer.push(Se),oe.needReadable&&C(ve)),x(ve,oe)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(oe){this._readableState&&(this._readableState.destroyed=oe)}}),L.prototype.destroy=F.destroy,L.prototype._undestroy=F.undestroy,L.prototype._destroy=function(ve,oe){oe(ve)},L.prototype.push=function(ve,oe){var be,Se=this._readableState;return Se.objectMode?be=!0:"string"==typeof ve&&((oe=oe||Se.defaultEncoding)!==Se.encoding&&(ve=o.from(ve,oe),oe=""),be=!0),t(this,ve,oe,!1,be)},L.prototype.unshift=function(ve){return t(this,ve,null,!0,!1)},L.prototype.isPaused=function(){return!1===this._readableState.flowing},L.prototype.setEncoding=function(ve){$||($=l(78454).I);var oe=new $(ve);this._readableState.decoder=oe,this._readableState.encoding=this._readableState.decoder.encoding;for(var Se=this._readableState.buffer.head,be="";null!==Se;)be+=oe.write(Se.data),Se=Se.next;return this._readableState.buffer.clear(),""!==be&&this._readableState.buffer.push(be),this._readableState.length=be.length,this};var u=1073741824;function T(ve,oe){return ve<=0||0===oe.length&&oe.ended?0:oe.objectMode?1:ve!=ve?oe.flowing&&oe.length?oe.buffer.head.data.length:oe.length:(ve>oe.highWaterMark&&(oe.highWaterMark=function _(ve){return ve>=u?ve=u:(ve--,ve|=ve>>>1,ve|=ve>>>2,ve|=ve>>>4,ve|=ve>>>8,ve|=ve>>>16,ve++),ve}(ve)),ve<=oe.length?ve:oe.ended?oe.length:(oe.needReadable=!0,0))}function C(ve){var oe=ve._readableState;w("emitReadable",oe.needReadable,oe.emittedReadable),oe.needReadable=!1,oe.emittedReadable||(w("emitReadable",oe.flowing),oe.emittedReadable=!0,process.nextTick(a,ve))}function a(ve){var oe=ve._readableState;w("emitReadable_",oe.destroyed,oe.length,oe.ended),!oe.destroyed&&(oe.length||oe.ended)&&(ve.emit("readable"),oe.emittedReadable=!1),oe.needReadable=!oe.flowing&&!oe.ended&&oe.length<=oe.highWaterMark,Oe(ve)}function x(ve,oe){oe.readingMore||(oe.readingMore=!0,process.nextTick(Y,ve,oe))}function Y(ve,oe){for(;!oe.reading&&!oe.ended&&(oe.length0,oe.resumeScheduled&&!oe.paused?oe.flowing=!0:ve.listenerCount("data")>0&&ve.resume()}function fe(ve){w("readable nexttick read 0"),ve.read(0)}function he(ve,oe){w("resume",oe.reading),oe.reading||ve.read(0),oe.resumeScheduled=!1,ve.emit("resume"),Oe(ve),oe.flowing&&!oe.reading&&ve.read(0)}function Oe(ve){var oe=ve._readableState;for(w("flow",oe.flowing);oe.flowing&&null!==ve.read(););}function ge(ve,oe){return 0===oe.length?null:(oe.objectMode?Se=oe.buffer.shift():!ve||ve>=oe.length?(Se=oe.decoder?oe.buffer.join(""):1===oe.buffer.length?oe.buffer.first():oe.buffer.concat(oe.length),oe.buffer.clear()):Se=oe.buffer.consume(ve,oe.decoder),Se);var Se}function ce(ve){var oe=ve._readableState;w("endReadable",oe.endEmitted),oe.endEmitted||(oe.ended=!0,process.nextTick(Re,oe,ve))}function Re(ve,oe){if(w("endReadableNT",ve.endEmitted,ve.length),!ve.endEmitted&&0===ve.length&&(ve.endEmitted=!0,oe.readable=!1,oe.emit("end"),ve.autoDestroy)){var Se=oe._writableState;(!Se||Se.autoDestroy&&Se.finished)&&oe.destroy()}}function Me(ve,oe){for(var Se=0,be=ve.length;Se=oe.highWaterMark:oe.length>0)||oe.ended))return w("read: emitReadable",oe.length,oe.ended),0===oe.length&&oe.ended?ce(this):C(this),null;if(0===(ve=T(ve,oe))&&oe.ended)return 0===oe.length&&ce(this),null;var nt,be=oe.needReadable;return w("need readable",be),(0===oe.length||oe.length-ve0?ge(ve,oe):null)?(oe.needReadable=oe.length<=oe.highWaterMark,ve=0):(oe.length-=ve,oe.awaitDrain=0),0===oe.length&&(oe.ended||(oe.needReadable=!0),Se!==ve&&oe.ended&&ce(this)),null!==nt&&this.emit("data",nt),nt},L.prototype._read=function(ve){ye(this,new V("_read()"))},L.prototype.pipe=function(ve,oe){var Se=this,be=this._readableState;switch(be.pipesCount){case 0:be.pipes=ve;break;case 1:be.pipes=[be.pipes,ve];break;default:be.pipes.push(ve)}be.pipesCount+=1,w("pipe count=%d opts=%j",be.pipesCount,oe);var $e=oe&&!1===oe.end||ve===process.stdout||ve===process.stderr?ae:yt;function yt(){w("onend"),ve.end()}be.endEmitted?process.nextTick($e):Se.once("end",$e),ve.on("unpipe",function dt(me,Le){w("onunpipe"),me===Se&&Le&&!1===Le.hasUnpiped&&(Le.hasUnpiped=!0,function Mn(){w("cleanup"),ve.removeListener("close",Xt),ve.removeListener("finish",de),ve.removeListener("drain",Et),ve.removeListener("error",S),ve.removeListener("unpipe",dt),Se.removeListener("end",yt),Se.removeListener("end",ae),Se.removeListener("data",qt),rt=!0,be.awaitDrain&&(!ve._writableState||ve._writableState.needDrain)&&Et()}())});var Et=function R(ve){return function(){var Se=ve._readableState;w("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,0===Se.awaitDrain&&p(ve,"data")&&(Se.flowing=!0,Oe(ve))}}(Se);ve.on("drain",Et);var rt=!1;function qt(me){w("ondata");var Le=ve.write(me);w("dest.write",Le),!1===Le&&((1===be.pipesCount&&be.pipes===ve||be.pipesCount>1&&-1!==Me(be.pipes,ve))&&!rt&&(w("false write response, pause",be.awaitDrain),be.awaitDrain++),Se.pause())}function S(me){w("onerror",me),ae(),ve.removeListener("error",S),0===p(ve,"error")&&ye(ve,me)}function Xt(){ve.removeListener("finish",de),ae()}function de(){w("onfinish"),ve.removeListener("close",Xt),ae()}function ae(){w("unpipe"),Se.unpipe(ve)}return Se.on("data",qt),function pe(ve,oe,Se){if("function"==typeof ve.prependListener)return ve.prependListener(oe,Se);ve._events&&ve._events[oe]?Array.isArray(ve._events[oe])?ve._events[oe].unshift(Se):ve._events[oe]=[Se,ve._events[oe]]:ve.on(oe,Se)}(ve,"error",S),ve.once("close",Xt),ve.once("finish",de),ve.emit("pipe",Se),be.flowing||(w("pipe resume"),Se.resume()),ve},L.prototype.unpipe=function(ve){var oe=this._readableState,Se={hasUnpiped:!1};if(0===oe.pipesCount)return this;if(1===oe.pipesCount)return ve&&ve!==oe.pipes||(ve||(ve=oe.pipes),oe.pipes=null,oe.pipesCount=0,oe.flowing=!1,ve&&ve.emit("unpipe",this,Se)),this;if(!ve){var be=oe.pipes,nt=oe.pipesCount;oe.pipes=null,oe.pipesCount=0,oe.flowing=!1;for(var $e=0;$e0,!1!==be.flowing&&this.resume()):"readable"===ve&&!be.endEmitted&&!be.readableListening&&(be.readableListening=be.needReadable=!0,be.flowing=!1,be.emittedReadable=!1,w("on readable",be.length,be.reading),be.length?C(this):be.reading||process.nextTick(fe,this)),Se},L.prototype.removeListener=function(ve,oe){var Se=D.prototype.removeListener.call(this,ve,oe);return"readable"===ve&&process.nextTick(U,this),Se},L.prototype.removeAllListeners=function(ve){var oe=D.prototype.removeAllListeners.apply(this,arguments);return("readable"===ve||void 0===ve)&&process.nextTick(U,this),oe},L.prototype.resume=function(){var ve=this._readableState;return ve.flowing||(w("resume"),ve.flowing=!ve.readableListening,function re(ve,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,process.nextTick(he,ve,oe))}(this,ve)),ve.paused=!1,this},L.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},L.prototype.wrap=function(ve){var oe=this,Se=this._readableState,be=!1;for(var nt in ve.on("end",function(){if(w("wrapped end"),Se.decoder&&!Se.ended){var dt=Se.decoder.end();dt&&dt.length&&oe.push(dt)}oe.push(null)}),ve.on("data",function(dt){w("wrapped data"),Se.decoder&&(dt=Se.decoder.write(dt)),Se.objectMode&&null==dt||!(Se.objectMode||dt&&dt.length)||oe.push(dt)||(be=!0,ve.pause())}),ve)void 0===this[nt]&&"function"==typeof ve[nt]&&(this[nt]=function(yt){return function(){return ve[yt].apply(ve,arguments)}}(nt));for(var $e=0;$e-1))throw new ie(ge);return this._writableState.defaultEncoding=ge,this},Object.defineProperty(Ee.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Ee.prototype._write=function(Oe,ge,ce){ce(new j("_write()"))},Ee.prototype._writev=null,Ee.prototype.end=function(Oe,ge,ce){var Re=this._writableState;return"function"==typeof Oe?(ce=Oe,Oe=null,ge=null):"function"==typeof ge&&(ce=ge,ge=null),null!=Oe&&this.write(Oe,ge),Re.corked&&(Re.corked=1,this.uncork()),Re.ending||function re(Oe,ge,ce){ge.ending=!0,fe(Oe,ge),ce&&(ge.finished?process.nextTick(ce):Oe.once("finish",ce)),ge.ended=!0,Oe.writable=!1}(this,Re,ce),this},Object.defineProperty(Ee.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Ee.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(ge){this._writableState&&(this._writableState.destroyed=ge)}}),Ee.prototype.destroy=w.destroy,Ee.prototype._undestroy=w.undestroy,Ee.prototype._destroy=function(Oe,ge){ge(Oe)}},12683(ke,q,l){"use strict";var i;function g($,ie,_e){return ie=function p($){var ie=function D($,ie){if("object"!=typeof $||null===$)return $;var _e=$[Symbol.toPrimitive];if(void 0!==_e){var ye=_e.call($,ie||"default");if("object"!=typeof ye)return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ie?String:Number)($)}($,"string");return"symbol"==typeof ie?ie:String(ie)}(ie),ie in $?Object.defineProperty($,ie,{value:_e,enumerable:!0,configurable:!0,writable:!0}):$[ie]=_e,$}var o=l(57854),e=Symbol("lastResolve"),A=Symbol("lastReject"),h=Symbol("error"),d=Symbol("ended"),w=Symbol("lastPromise"),f=Symbol("handlePromise"),F=Symbol("stream");function M($,ie){return{value:$,done:ie}}function K($){var ie=$[e];if(null!==ie){var _e=$[F].read();null!==_e&&($[w]=null,$[e]=null,$[A]=null,ie(M(_e,!1)))}}function j($){process.nextTick(K,$)}var ee=Object.getPrototypeOf(function(){}),V=Object.setPrototypeOf((g(i={get stream(){return this[F]},next:function(){var ie=this,_e=this[h];if(null!==_e)return Promise.reject(_e);if(this[d])return Promise.resolve(M(void 0,!0));if(this[F].destroyed)return new Promise(function(Ee,L){process.nextTick(function(){ie[h]?L(ie[h]):Ee(M(void 0,!0))})});var se,ye=this[w];if(ye)se=new Promise(function Z($,ie){return function(_e,ye){$.then(function(){ie[d]?_e(M(void 0,!0)):ie[f](_e,ye)},ye)}}(ye,this));else{var pe=this[F].read();if(null!==pe)return Promise.resolve(M(pe,!1));se=new Promise(this[f])}return this[w]=se,se}},Symbol.asyncIterator,function(){return this}),g(i,"return",function(){var ie=this;return new Promise(function(_e,ye){ie[F].destroy(null,function(se){se?ye(se):_e(M(void 0,!0))})})}),i),ee);ke.exports=function(ie){var _e,ye=Object.create(V,(g(_e={},F,{value:ie,writable:!0}),g(_e,e,{value:null,writable:!0}),g(_e,A,{value:null,writable:!0}),g(_e,h,{value:null,writable:!0}),g(_e,d,{value:ie._readableState.endEmitted,writable:!0}),g(_e,f,{value:function(pe,Ee){var L=ye[F].read();L?(ye[w]=null,ye[e]=null,ye[A]=null,pe(M(L,!1))):(ye[e]=pe,ye[A]=Ee)},writable:!0}),_e));return ye[w]=null,o(ie,function(se){if(se&&"ERR_STREAM_PREMATURE_CLOSE"!==se.code){var pe=ye[A];return null!==pe&&(ye[w]=null,ye[e]=null,ye[A]=null,pe(se)),void(ye[h]=se)}var Ee=ye[e];null!==Ee&&(ye[w]=null,ye[e]=null,ye[A]=null,Ee(M(void 0,!0))),ye[d]=!0}),ie.on("readable",j.bind(null,ye)),ye}},75225(ke,q,l){"use strict";function i(j,Z){var ee=Object.keys(j);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(j);Z&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(j,Q).enumerable})),ee.push.apply(ee,V)}return ee}function g(j){for(var Z=1;Z0?this.tail.next=V:this.head=V,this.tail=V,++this.length}},{key:"unshift",value:function(ee){var V={data:ee,next:this.head};0===this.length&&(this.tail=V),this.head=V,++this.length}},{key:"shift",value:function(){if(0!==this.length){var ee=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,ee}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(ee){if(0===this.length)return"";for(var V=this.head,Q=""+V.data;V=V.next;)Q+=ee+V.data;return Q}},{key:"concat",value:function(ee){if(0===this.length)return w.alloc(0);for(var V=w.allocUnsafe(ee>>>0),Q=this.head,$=0;Q;)K(Q.data,V,$),$+=Q.data.length,Q=Q.next;return V}},{key:"consume",value:function(ee,V){var Q;return eeie.length?ie.length:ee;if($+=_e===ie.length?ie:ie.slice(0,ee),0===(ee-=_e)){_e===ie.length?(++Q,this.head=V.next?V.next:this.tail=null):(this.head=V,V.data=ie.slice(_e));break}++Q}return this.length-=Q,$}},{key:"_getBuffer",value:function(ee){var V=w.allocUnsafe(ee),Q=this.head,$=1;for(Q.data.copy(V),ee-=Q.data.length;Q=Q.next;){var ie=Q.data,_e=ee>ie.length?ie.length:ee;if(ie.copy(V,V.length-ee,0,_e),0===(ee-=_e)){_e===ie.length?(++$,this.head=Q.next?Q.next:this.tail=null):(this.head=Q,Q.data=ie.slice(_e));break}++$}return this.length-=$,V}},{key:M,value:function(ee,V){return F(this,g(g({},V),{},{depth:0,customInspect:!1}))}}]),j}()},88152(ke){"use strict";function l(o,e){p(o,e),i(o)}function i(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function p(o,e){o.emit("error",e)}ke.exports={destroy:function q(o,e){var A=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(e?e(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(p,this,o)):process.nextTick(p,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(w){!e&&w?A._writableState?A._writableState.errorEmitted?process.nextTick(i,A):(A._writableState.errorEmitted=!0,process.nextTick(l,A,w)):process.nextTick(l,A,w):e?(process.nextTick(i,A),e(w)):process.nextTick(i,A)}),this)},undestroy:function g(){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 D(o,e){var A=o._readableState,h=o._writableState;A&&A.autoDestroy||h&&h.autoDestroy?o.destroy(e):o.emit("error",e)}}},57854(ke,q,l){"use strict";var i=l(30464).F.ERR_STREAM_PREMATURE_CLOSE;function p(){}ke.exports=function o(e,A,h){if("function"==typeof A)return o(e,null,A);A||(A={}),h=function g(e){var A=!1;return function(){if(!A){A=!0;for(var h=arguments.length,d=new Array(h),w=0;w0,function(ye){ee||(ee=ye),ye&&V.forEach(d),!ie&&(V.forEach(d),Z(ee))})});return K.reduce(w)}},22827(ke,q,l){"use strict";var i=l(30464).F.ERR_INVALID_OPT_VALUE;ke.exports={getHighWaterMark:function p(D,o,e,A){var h=function g(D,o,e){return null!=D.highWaterMark?D.highWaterMark:o?D[e]:null}(o,A,e);if(null!=h){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new i(A?e:"highWaterMark",h);return Math.floor(h)}return D.objectMode?16:16384}}},12601(ke,q,l){ke.exports=l(44356).EventEmitter},78454(ke,q,l){"use strict";var i=l(54272).Buffer,g=i.isEncoding||function(V){switch((V=""+V)&&V.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 o(V){var Q;switch(this.encoding=function D(V){var Q=function p(V){if(!V)return"utf8";for(var Q;;)switch(V){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 V;default:if(Q)return;V=(""+V).toLowerCase(),Q=!0}}(V);if("string"!=typeof Q&&(i.isEncoding===g||!g(V)))throw new Error("Unknown encoding: "+V);return Q||V}(V),this.encoding){case"utf16le":this.text=F,this.end=M,Q=4;break;case"utf8":this.fillLast=d,Q=4;break;case"base64":this.text=K,this.end=j,Q=3;break;default:return this.write=Z,void(this.end=ee)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(Q)}function e(V){return V<=127?0:V>>5==6?2:V>>4==14?3:V>>3==30?4:V>>6==2?-1:-2}function d(V){var Q=this.lastTotal-this.lastNeed,$=function h(V,Q){if(128!=(192&Q[0]))return V.lastNeed=0,"\ufffd";if(V.lastNeed>1&&Q.length>1){if(128!=(192&Q[1]))return V.lastNeed=1,"\ufffd";if(V.lastNeed>2&&Q.length>2&&128!=(192&Q[2]))return V.lastNeed=2,"\ufffd"}}(this,V);return void 0!==$?$:this.lastNeed<=V.length?(V.copy(this.lastChar,Q,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(V.copy(this.lastChar,Q,0,V.length),void(this.lastNeed-=V.length))}function F(V,Q){if((V.length-Q)%2==0){var $=V.toString("utf16le",Q);if($){var ie=$.charCodeAt($.length-1);if(ie>=55296&&ie<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1],$.slice(0,-1)}return $}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=V[V.length-1],V.toString("utf16le",Q,V.length-1)}function M(V){var Q=V&&V.length?this.write(V):"";return this.lastNeed?Q+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):Q}function K(V,Q){var $=(V.length-Q)%3;return 0===$?V.toString("base64",Q):(this.lastNeed=3-$,this.lastTotal=3,1===$?this.lastChar[0]=V[V.length-1]:(this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1]),V.toString("base64",Q,V.length-$))}function j(V){var Q=V&&V.length?this.write(V):"";return this.lastNeed?Q+this.lastChar.toString("base64",0,3-this.lastNeed):Q}function Z(V){return V.toString(this.encoding)}function ee(V){return V&&V.length?this.write(V):""}q.I=o,o.prototype.write=function(V){if(0===V.length)return"";var Q,$;if(this.lastNeed){if(void 0===(Q=this.fillLast(V)))return"";$=this.lastNeed,this.lastNeed=0}else $=0;return $=0?(_e>0&&(V.lastNeed=_e-1),_e):--ie<$||-2===_e?0:(_e=e(Q[ie]))>=0?(_e>0&&(V.lastNeed=_e-2),_e):--ie<$||-2===_e?0:(_e=e(Q[ie]))>=0?(_e>0&&(2===_e?_e=0:V.lastNeed=_e-3),_e):0}(this,V,Q);if(!this.lastNeed)return V.toString("utf8",Q);this.lastTotal=$;var ie=V.length-($-this.lastNeed);return V.copy(this.lastChar,0,ie),V.toString("utf8",Q,ie)},o.prototype.fillLast=function(V){if(this.lastNeed<=V.length)return V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,V.length),this.lastNeed-=V.length}},54272(ke,q,l){var i=l(83838),g=i.Buffer;function p(o,e){for(var A in o)e[A]=o[A]}function D(o,e,A){return g(o,e,A)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?ke.exports=i:(p(i,q),q.Buffer=D),p(g,D),D.from=function(o,e,A){if("number"==typeof o)throw new TypeError("Argument must not be a number");return g(o,e,A)},D.alloc=function(o,e,A){if("number"!=typeof o)throw new TypeError("Argument must be a number");var h=g(o);return void 0!==e?"string"==typeof A?h.fill(e,A):h.fill(e):h.fill(0),h},D.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return g(o)},D.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return i.SlowBuffer(o)}},47851(ke,q,l){var i=l(41876);q.encode=i.encode,q.decode=i.decode},41876(ke,q){"use strict";var i=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];q.encode=function(p){Buffer.isBuffer(p)||(p=new Buffer(p));for(var D=0,o=0,e=0,A=0,h=new Buffer(8*function g(p){var D=Math.floor(p.length/5);return p.length%5==0?D:D+1}(p));D3?(A=(A=d&255>>e)<<(e=(e+5)%8)|(D+1>8-e,D++):(A=d>>8-(e+5)&31,0==(e=(e+5)%8)&&D++),h[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(A),o++}for(D=o;D>>(D=(D+5)%8),A++,e=255&o<<8-D)}return h.slice(0,A)}},41090(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(56471),p=l(573),D=ArrayBuffer.isView||function(d){try{return p(d),!0}catch{return!1}},o=typeof Uint8Array<"u",e=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",A=e&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);ke.exports=function(d,w){if(i.isBuffer(d))return d.constructor&&!("isBuffer"in d)?i.from(d):d;if("string"==typeof d)return i.from(d,w);if(e&&D(d)){if(0===d.byteLength)return i.alloc(0);if(A){var f=i.from(d.buffer,d.byteOffset,d.byteLength);if(f.byteLength===d.byteLength)return f}var F=d instanceof Uint8Array?d:new Uint8Array(d.buffer,d.byteOffset,d.byteLength),M=i.from(F);if(M.length===d.byteLength)return M}if(o&&d instanceof Uint8Array)return i.from(d);var K=g(d);if(K)for(var j=0;j255||~~Z!==Z)throw new RangeError("Array items must be numbers in the range 0-255.")}if(K||i.isBuffer(d)&&d.constructor&&"function"==typeof d.constructor.isBuffer&&d.constructor.isBuffer(d))return i.from(d);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},56471(ke){var q={}.toString;ke.exports=Array.isArray||function(l){return"[object Array]"==q.call(l)}},573(ke,q,l){"use strict";var i=l(46758),p=l(12773)("TypedArray.prototype.buffer",!0),D=l(4729);ke.exports=p||function(e){if(!D(e))throw new i("Not a Typed Array");return e.buffer}},3398(ke){function l(i){try{if(!global.localStorage)return!1}catch{return!1}var g=global.localStorage[i];return null!=g&&"true"===String(g).toLowerCase()}ke.exports=function q(i,g){if(l("noDeprecation"))return i;var p=!1;return function D(){if(!p){if(l("throwDeprecation"))throw new Error(g);l("traceDeprecation")?console.trace(g):console.warn(g),p=!0}return i.apply(this,arguments)}}},68326(__unused_webpack_module,exports){var indexOf=function(ke,q){if(ke.indexOf)return ke.indexOf(q);for(var l=0;l"u"?global:globalThis,w=g(),f=D("String.prototype.slice"),F=D("Array.prototype.indexOf",!0)||function(V,Q){for(var $=0;$-1}(Q)?Q:"Object"===Q&&function j(ee){var V=!1;return i(M,function(Q,$){if(!V)try{Q(ee),V=f($,1)}catch{}}),V}(V)}return o?function K(ee){var V=!1;return i(M,function(Q,$){if(!V)try{"$"+Q(ee)===$&&(V=f($,1))}catch{}}),V}(V):null}},78982(){},47790(){},77965(){},66089(){},79368(){},64688(){},51069(){},15340(){},79838(){},63779(){},77199(){},97594(ke,q,l){"use strict";var i=l(5019),g=typeof globalThis>"u"?global:globalThis;ke.exports=function(){for(var D=[],o=0;oV,If:()=>i,K2:()=>e,Os:()=>o,P:()=>K,PZ:()=>ee,hZ:()=>p,i0:()=>D,i7:()=>d,iF:()=>A,kY:()=>w,kp:()=>g,sf:()=>Z,wk:()=>h});var i=function(Q){return Q[Q.State=0]="State",Q[Q.Transition=1]="Transition",Q[Q.Sequence=2]="Sequence",Q[Q.Group=3]="Group",Q[Q.Animate=4]="Animate",Q[Q.Keyframes=5]="Keyframes",Q[Q.Style=6]="Style",Q[Q.Trigger=7]="Trigger",Q[Q.Reference=8]="Reference",Q[Q.AnimateChild=9]="AnimateChild",Q[Q.AnimateRef=10]="AnimateRef",Q[Q.Query=11]="Query",Q[Q.Stagger=12]="Stagger",Q}(i||{});const g="*";function p(Q,$){return{type:i.Trigger,name:Q,definitions:$,options:{}}}function D(Q,$=null){return{type:i.Animate,styles:$,timings:Q}}function o(Q,$=null){return{type:i.Group,steps:Q,options:$}}function e(Q,$=null){return{type:i.Sequence,steps:Q,options:$}}function A(Q){return{type:i.Style,styles:Q,offset:null}}function h(Q,$,ie){return{type:i.State,name:Q,styles:$,options:ie}}function d(Q){return{type:i.Keyframes,steps:Q}}function w(Q,$,ie=null){return{type:i.Transition,expr:Q,animation:$,options:ie}}function K(Q,$,ie=null){return{type:i.Query,selector:Q,animation:$,options:ie}}class Z{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor($=0,ie=0){this.totalTime=$+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}onStart($){this._originalOnStartFns.push($),this._onStartFns.push($)}onDone($){this._originalOnDoneFns.push($),this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach($=>$()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition($){this._position=this.totalTime?$*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback($){const ie="start"==$?this._onStartFns:this._onDoneFns;ie.forEach(_e=>_e()),ie.length=0}}class ee{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor($){this.players=$;let ie=0,_e=0,ye=0;const se=this.players.length;0==se?queueMicrotask(()=>this._onFinish()):this.players.forEach(pe=>{pe.onDone(()=>{++ie==se&&this._onFinish()}),pe.onDestroy(()=>{++_e==se&&this._onDestroy()}),pe.onStart(()=>{++ye==se&&this._onStart()})}),this.totalTime=this.players.reduce((pe,Ee)=>Math.max(pe,Ee.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}init(){this.players.forEach($=>$.init())}onStart($){this._onStartFns.push($)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach($=>$()),this._onStartFns=[])}onDone($){this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach($=>$.play())}pause(){this.players.forEach($=>$.pause())}restart(){this.players.forEach($=>$.restart())}finish(){this._onFinish(),this.players.forEach($=>$.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach($=>$.destroy()),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this.players.forEach($=>$.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition($){const ie=$*this.totalTime;this.players.forEach(_e=>{const ye=_e.totalTime?Math.min(1,ie/_e.totalTime):1;_e.setPosition(ye)})}getPosition(){const $=this.players.reduce((ie,_e)=>null===ie||_e.totalTime>ie.totalTime?_e:ie,null);return null!=$?$.getPosition():0}beforeDestroy(){this.players.forEach($=>{$.beforeDestroy&&$.beforeDestroy()})}triggerCallback($){const ie="start"==$?this._onStartFns:this._onDoneFns;ie.forEach(_e=>_e()),ie.length=0}}const V="!"},17094(ke,q,l){"use strict";l.d(q,{Ai:()=>Y,GX:()=>_,Pd:()=>ge,Q_:()=>Oe,Z7:()=>V,kB:()=>T,sp:()=>u});var h=l(2615),d=l(73664),w=l(17705),f=l(39842),F=l(44522),M=l(88968),K=l(49046),j=l(34330),Z=l(72318);let V=(()=>{class ce{_platform=(0,h.WQX)(f.O);constructor(){}isDisabled(Me){return Me.hasAttribute("disabled")}isVisible(Me){return function $(ce){return!!(ce.offsetWidth||ce.offsetHeight||"function"==typeof ce.getClientRects&&ce.getClientRects().length)}(Me)&&"visible"===getComputedStyle(Me).visibility}isTabbable(Me){if(!this._platform.isBrowser)return!1;const ve=function Q(ce){try{return ce.frameElement}catch{return null}}(function m(ce){return ce.ownerDocument&&ce.ownerDocument.defaultView||window}(Me));if(ve&&(-1===L(ve)||!this.isVisible(ve)))return!1;let oe=Me.nodeName.toLowerCase(),Se=L(Me);return Me.hasAttribute("contenteditable")?-1!==Se:!("iframe"===oe||"object"===oe||this._platform.WEBKIT&&this._platform.IOS&&!function t(ce){let Re=ce.nodeName.toLowerCase(),Me="input"===Re&&ce.type;return"text"===Me||"password"===Me||"select"===Re||"textarea"===Re}(Me))&&("audio"===oe?!!Me.hasAttribute("controls")&&-1!==Se:"video"===oe?-1!==Se&&(null!==Se||this._platform.FIREFOX||Me.hasAttribute("controls")):Me.tabIndex>=0)}isFocusable(Me,ve){return function s(ce){return!function _e(ce){return function se(ce){return"input"==ce.nodeName.toLowerCase()}(ce)&&"hidden"==ce.type}(ce)&&(function ie(ce){let Re=ce.nodeName.toLowerCase();return"input"===Re||"select"===Re||"button"===Re||"textarea"===Re}(ce)||function ye(ce){return function pe(ce){return"a"==ce.nodeName.toLowerCase()}(ce)&&ce.hasAttribute("href")}(ce)||ce.hasAttribute("contenteditable")||Ee(ce))}(Me)&&!this.isDisabled(Me)&&(ve?.ignoreVisibility||this.isVisible(Me))}static \u0275fac=function(ve){return new(ve||ce)};static \u0275prov=h.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();function Ee(ce){if(!ce.hasAttribute("tabindex")||void 0===ce.tabIndex)return!1;let Re=ce.getAttribute("tabindex");return!(!Re||isNaN(parseInt(Re,10)))}function L(ce){if(!Ee(ce))return null;const Re=parseInt(ce.getAttribute("tabindex")||"",10);return isNaN(Re)?-1:Re}class u{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(Re){this._enabled=Re,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}_enabled=!0;constructor(Re,Me,ve,oe,Se=!1,be){this._element=Re,this._checker=Me,this._ngZone=ve,this._document=oe,this._injector=be,Se||this.attachAnchors()}destroy(){const Re=this._startAnchor,Me=this._endAnchor;Re&&(Re.removeEventListener("focus",this.startAnchorListener),Re.remove()),Me&&(Me.removeEventListener("focus",this.endAnchorListener),Me.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(Re){return new Promise(Me=>{this._executeOnStable(()=>Me(this.focusInitialElement(Re)))})}focusFirstTabbableElementWhenReady(Re){return new Promise(Me=>{this._executeOnStable(()=>Me(this.focusFirstTabbableElement(Re)))})}focusLastTabbableElementWhenReady(Re){return new Promise(Me=>{this._executeOnStable(()=>Me(this.focusLastTabbableElement(Re)))})}_getRegionBoundary(Re){const Me=this._element.querySelectorAll(`[cdk-focus-region-${Re}], [cdkFocusRegion${Re}], [cdk-focus-${Re}]`);return"start"==Re?Me.length?Me[0]:this._getFirstTabbableElement(this._element):Me.length?Me[Me.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Re){const Me=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Me){if(!this._checker.isFocusable(Me)){const ve=this._getFirstTabbableElement(Me);return ve?.focus(Re),!!ve}return Me.focus(Re),!0}return this.focusFirstTabbableElement(Re)}focusFirstTabbableElement(Re){const Me=this._getRegionBoundary("start");return Me&&Me.focus(Re),!!Me}focusLastTabbableElement(Re){const Me=this._getRegionBoundary("end");return Me&&Me.focus(Re),!!Me}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;const Me=Re.children;for(let ve=0;ve=0;ve--){const oe=Me[ve].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Me[ve]):null;if(oe)return oe}return null}_createAnchor(){const Re=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Re),Re.classList.add("cdk-visually-hidden"),Re.classList.add("cdk-focus-trap-anchor"),Re.setAttribute("aria-hidden","true"),Re}_toggleAnchorTabIndex(Re,Me){Re?Me.setAttribute("tabindex","0"):Me.removeAttribute("tabindex")}toggleAnchors(Re){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}_executeOnStable(Re){this._injector?(0,d.mal)(Re,{injector:this._injector}):setTimeout(Re)}}let _=(()=>{class ce{_checker=(0,h.WQX)(V);_ngZone=(0,h.WQX)(d.SKi);_document=(0,h.WQX)(h.qQL);_injector=(0,h.WQX)(h.zZn);constructor(){(0,h.WQX)(M.l).load(K.Y)}create(Me,ve=!1){return new u(Me,this._checker,this._ngZone,this._document,ve,this._injector)}static \u0275fac=function(ve){return new(ve||ce)};static \u0275prov=h.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),T=(()=>{class ce{_elementRef=(0,h.WQX)(d.aKT);_focusTrapFactory=(0,h.WQX)(_);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(Me){this.focusTrap&&(this.focusTrap.enabled=Me)}autoCapture;constructor(){(0,h.WQX)(f.O).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(Me){const ve=Me.autoCapture;ve&&!ve.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,F.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(ve){return new(ve||ce)};static \u0275dir=d.FsC({type:ce,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",w.L39],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",w.L39]},exportAs:["cdkTrapFocus"],features:[d.OA$]})}return ce})();const P=new h.nKC("liveAnnouncerElement",{providedIn:"root",factory:function C(){return null}}),a=new h.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let x=0,Y=(()=>{class ce{_ngZone=(0,h.WQX)(d.SKi);_defaultOptions=(0,h.WQX)(a,{optional:!0});_liveElement;_document=(0,h.WQX)(h.qQL);_previousTimeout;_currentPromise;_currentResolve;constructor(){const Me=(0,h.WQX)(P,{optional:!0});this._liveElement=Me||this._createLiveElement()}announce(Me,...ve){const oe=this._defaultOptions;let Se,be;return 1===ve.length&&"number"==typeof ve[0]?be=ve[0]:[Se,be]=ve,this.clear(),clearTimeout(this._previousTimeout),Se||(Se=oe&&oe.politeness?oe.politeness:"polite"),null==be&&oe&&(be=oe.duration),this._liveElement.setAttribute("aria-live",Se),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(nt=>this._currentResolve=nt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Me,"number"==typeof be&&(this._previousTimeout=setTimeout(()=>this.clear(),be)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Me="cdk-live-announcer-element",ve=this._document.getElementsByClassName(Me),oe=this._document.createElement("div");for(let Se=0;Se .cdk-overlay-container [aria-modal="true"]');for(let oe=0;oe{class ce{_platform=(0,h.WQX)(f.O);_hasCheckedHighContrastMode;_document=(0,h.WQX)(h.qQL);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,h.WQX)(j.Q).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return U.NONE;const Me=this._document.createElement("div");Me.style.backgroundColor="rgb(1,2,3)",Me.style.position="absolute",this._document.body.appendChild(Me);const ve=this._document.defaultView||window,oe=ve&&ve.getComputedStyle?ve.getComputedStyle(Me):null,Se=(oe&&oe.backgroundColor||"").replace(/ /g,"");switch(Me.remove(),Se){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return U.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return U.BLACK_ON_WHITE}return U.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Me=this._document.body.classList;Me.remove(he,fe,re),this._hasCheckedHighContrastMode=!0;const ve=this.getHighContrastMode();ve===U.BLACK_ON_WHITE?Me.add(he,fe):ve===U.WHITE_ON_BLACK&&Me.add(he,re)}}static \u0275fac=function(ve){return new(ve||ce)};static \u0275prov=h.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),ge=(()=>{class ce{constructor(){(0,h.WQX)(Oe)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(ve){return new(ve||ce)};static \u0275mod=d.$C({type:ce});static \u0275inj=h.G2t({imports:[Z.w5]})}return ce})()},18617(ke,q,l){"use strict";l.d(q,{Ae:()=>ee,px:()=>Z,vr:()=>ye}),l(17094);var h=l(2615),d=l(73664),w=l(39842),f=l(88968),F=l(49046);function Z(P,C,a){const x=V(P,C);a=a.trim(),!x.some(Y=>Y.trim()===a)&&(x.push(a),P.setAttribute(C,x.join(" ")))}function ee(P,C,a){const x=V(P,C);a=a.trim();const Y=x.filter(R=>R!==a);Y.length?P.setAttribute(C,Y.join(" ")):P.removeAttribute(C)}function V(P,C){return P.getAttribute(C)?.match(/\S+/g)??[]}l(21413),l(4125);const $="cdk-describedby-message",ie="cdk-describedby-host";let _e=0,ye=(()=>{class P{_platform=(0,h.WQX)(w.O);_document=(0,h.WQX)(h.qQL);_messageRegistry=new Map;_messagesContainer=null;_id=""+_e++;constructor(){(0,h.WQX)(f.l).load(F.Y),this._id=(0,h.WQX)(d.sZ2)+"-"+_e++}describe(a,x,Y){if(!this._canBeDescribed(a,x))return;const R=se(x,Y);"string"!=typeof x?(pe(x,this._id),this._messageRegistry.set(R,{messageElement:x,referenceCount:0})):this._messageRegistry.has(R)||this._createMessageElement(x,Y),this._isElementDescribedByMessage(a,R)||this._addMessageReference(a,R)}removeDescription(a,x,Y){if(!x||!this._isElementNode(a))return;const R=se(x,Y);if(this._isElementDescribedByMessage(a,R)&&this._removeMessageReference(a,R),"string"==typeof x){const U=this._messageRegistry.get(R);U&&0===U.referenceCount&&this._deleteMessageElement(R)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const a=this._document.querySelectorAll(`[${ie}="${this._id}"]`);for(let x=0;x0!=Y.indexOf($));a.setAttribute("aria-describedby",x.join(" "))}_addMessageReference(a,x){const Y=this._messageRegistry.get(x);Z(a,"aria-describedby",Y.messageElement.id),a.setAttribute(ie,this._id),Y.referenceCount++}_removeMessageReference(a,x){const Y=this._messageRegistry.get(x);Y.referenceCount--,ee(a,"aria-describedby",Y.messageElement.id),a.removeAttribute(ie)}_isElementDescribedByMessage(a,x){const Y=V(a,"aria-describedby"),R=this._messageRegistry.get(x),U=R&&R.messageElement.id;return!!U&&-1!=Y.indexOf(U)}_canBeDescribed(a,x){if(!this._isElementNode(a))return!1;if(x&&"object"==typeof x)return!0;const Y=null==x?"":`${x}`.trim(),R=a.getAttribute("aria-label");return!(!Y||R&&R.trim()===Y)}_isElementNode(a){return a.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(x){return new(x||P)};static \u0275prov=h.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function se(P,C){return"string"==typeof P?`${C||""}/${P}`:P}function pe(P,C){P.id||(P.id=`${$}-${C}-${_e++}`)}},99090(ke,q,l){"use strict";l.d(q,{A:()=>g});var i=l(12593);class g extends i.l{setActiveItem(D){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(D),this.activeItem&&this.activeItem.setActiveStyles()}}},80408(ke,q,l){"use strict";function i(g){return Array.isArray(g)?g:[g]}l.d(q,{F:()=>i})},28203(ke,q,l){"use strict";l.d(q,{jI:()=>d});var e=l(2615),A=l(73664);let d=(()=>{class w{static \u0275fac=function(M){return new(M||w)};static \u0275mod=A.$C({type:w});static \u0275inj=e.G2t({})}return w})()},34330(ke,q,l){"use strict";l.d(q,{D:()=>ee,Q:()=>$});var i=l(2615),g=l(73664),p=l(71985),D=l(21413),o=l(84572),e=l(28793),A=l(70152),h=l(96354),d=l(65245),w=l(99172),f=l(96697),F=l(56977),M=l(39842),K=l(80408);const j=new Set;let Z,ee=(()=>{class _e{_platform=(0,i.WQX)(M.O);_nonce=(0,i.WQX)(g.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Q}matchMedia(se){return(this._platform.WEBKIT||this._platform.BLINK)&&function V(_e,ye){if(!j.has(_e))try{Z||(Z=document.createElement("style"),ye&&Z.setAttribute("nonce",ye),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${_e} {body{ }}`,0),j.add(_e))}catch(se){console.error(se)}}(se,this._nonce),this._matchMedia(se)}static \u0275fac=function(pe){return new(pe||_e)};static \u0275prov=i.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();function Q(_e){return{matches:"all"===_e||""===_e,media:_e,addListener:()=>{},removeListener:()=>{}}}let $=(()=>{class _e{_mediaMatcher=(0,i.WQX)(ee);_zone=(0,i.WQX)(g.SKi);_queries=new Map;_destroySubject=new D.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(se){return ie((0,K.F)(se)).some(Ee=>this._registerQuery(Ee).mql.matches)}observe(se){const Ee=ie((0,K.F)(se)).map(t=>this._registerQuery(t).observable);let L=(0,o.z)(Ee);return L=(0,e.x)(L.pipe((0,f.s)(1)),L.pipe((0,d.i)(1),(0,A.B)(0))),L.pipe((0,h.T)(t=>{const s={matches:!1,breakpoints:{}};return t.forEach(({matches:m,query:u})=>{s.matches=s.matches||m,s.breakpoints[u]=m}),s}))}_registerQuery(se){if(this._queries.has(se))return this._queries.get(se);const pe=this._mediaMatcher.matchMedia(se),L={observable:new p.c(t=>{const s=m=>this._zone.run(()=>t.next(m));return pe.addListener(s),()=>{pe.removeListener(s)}}).pipe((0,w.Z)(pe),(0,h.T)(({matches:t})=>({query:se,matches:t})),(0,F.Q)(this._destroySubject)),mql:pe};return this._queries.set(se,L),L}static \u0275fac=function(pe){return new(pe||_e)};static \u0275prov=i.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();function ie(_e){return _e.map(ye=>ye.split(",")).reduce((ye,se)=>ye.concat(se)).map(ye=>ye.trim())}},14085(ke,q,l){"use strict";function i(p){return null!=p&&"false"!=`${p}`}function g(p,D=/\s+/){const o=[];if(null!=p){const e=Array.isArray(p)?p:`${p}`.split(D);for(const A of e){const h=`${A}`.trim();h&&o.push(h)}}return o}l.d(q,{cc:()=>g,he:()=>i})},8045(ke,q,l){"use strict";l.d(q,{x:()=>p});var i=l(74402),g=l(7673);function p(D){return(0,i.A)(D)?D:(0,g.of)(D)}},14117(ke,q,l){"use strict";l.d(q,{q:()=>g,y:()=>p});var i=l(30017);class g{}function p(D){return D&&"function"==typeof D.connect&&!(D instanceof i.G)}},61577(ke,q,l){"use strict";l.d(q,{dS:()=>A});var i=l(2615),g=l(73664);const p=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function D(){return(0,i.WQX)(i.qQL)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let A=(()=>{class h{get value(){return this.valueSignal()}valueSignal=(0,i.vPA)("ltr");change=new g.bkB;constructor(){const w=(0,i.WQX)(p,{optional:!0});w&&this.valueSignal.set(function e(h){const d=h?.toLowerCase()||"";return"auto"===d&&typeof navigator<"u"&&navigator?.language?o.test(navigator.language)?"rtl":"ltr":"rtl"===d?"rtl":"ltr"}((w.body?w.body.dir:null)||(w.documentElement?w.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(f){return new(f||h)};static \u0275prov=i.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},67847(ke,q,l){"use strict";l.d(q,{OE:()=>g,i8:()=>D,o1:()=>p});var i=l(73664);function g(o,e=0){return p(o)?Number(o):2===arguments.length?e:0}function p(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function D(o){return o instanceof i.aKT?o.nativeElement:o}},95735(ke,q,l){"use strict";function i(p){return 0===p.buttons||0===p.detail}function g(p){const D=p.touches&&p.touches[0]||p.changedTouches&&p.changedTouches[0];return!(!D||-1!==D.identifier||null!=D.radiusX&&1!==D.radiusX||null!=D.radiusY&&1!==D.radiusY)}l.d(q,{_:()=>i,w:()=>g})},64123(ke,q,l){"use strict";l.d(q,{B:()=>g});var i=l(12593);class g extends i.l{_origin="program";setFocusOrigin(D){return this._origin=D,this}setActiveItem(D){super.setActiveItem(D),this.activeItem&&this.activeItem.focus(this._origin)}}},76838(ke,q,l){"use strict";l.d(q,{FN:()=>ye,vR:()=>se});var i=l(2615),g=l(73664),p=l(21413),D=l(84412),o=l(7673),e=l(23294),A=l(65245),h=l(56977),d=l(95735),w=l(10438),f=l(44522),F=l(39842),M=l(83300),K=l(67847);const j=new i.nKC("cdk-input-modality-detector-options"),Z={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},V={passive:!0,capture:!0};let Q=(()=>{class pe{_platform=(0,i.WQX)(F.O);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new D.t(null);_options;_lastTouchMs=0;_onKeydown=L=>{this._options?.ignoreKeys?.some(t=>t===L.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,f.Fb)(L))};_onMousedown=L=>{Date.now()-this._lastTouchMs<650||(this._modality.next((0,d._)(L)?"keyboard":"mouse"),this._mostRecentTarget=(0,f.Fb)(L))};_onTouchstart=L=>{(0,d.w)(L)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,f.Fb)(L))};constructor(){const L=(0,i.WQX)(g.SKi),t=(0,i.WQX)(i.qQL),s=(0,i.WQX)(j,{optional:!0});if(this._options={...Z,...s},this.modalityDetected=this._modality.pipe((0,A.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,e.F)()),this._platform.isBrowser){const m=(0,i.WQX)(g._9s).createRenderer(null,null);this._listenerCleanups=L.runOutsideAngular(()=>[m.listen(t,"keydown",this._onKeydown,V),m.listen(t,"mousedown",this._onMousedown,V),m.listen(t,"touchstart",this._onTouchstart,V)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(L=>L())}static \u0275fac=function(t){return new(t||pe)};static \u0275prov=i.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})();var $=function(pe){return pe[pe.IMMEDIATE=0]="IMMEDIATE",pe[pe.EVENTUAL=1]="EVENTUAL",pe}($||{});const ie=new i.nKC("cdk-focus-monitor-default-options"),_e=(0,M.B)({passive:!0,capture:!0});let ye=(()=>{class pe{_ngZone=(0,i.WQX)(g.SKi);_platform=(0,i.WQX)(F.O);_inputModalityDetector=(0,i.WQX)(Q);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=(0,i.WQX)(i.qQL);_stopInputModalityDetector=new p.B;constructor(){const L=(0,i.WQX)(ie,{optional:!0});this._detectionMode=L?.detectionMode||$.IMMEDIATE}_rootNodeFocusAndBlurListener=L=>{for(let s=(0,f.Fb)(L);s;s=s.parentElement)"focus"===L.type?this._onFocus(L,s):this._onBlur(L,s)};monitor(L,t=!1){const s=(0,K.i8)(L);if(!this._platform.isBrowser||1!==s.nodeType)return(0,o.of)();const m=(0,f.KT)(s)||this._document,u=this._elementInfo.get(s);if(u)return t&&(u.checkChildren=!0),u.subject;const _={checkChildren:t,subject:new p.B,rootNode:m};return this._elementInfo.set(s,_),this._registerGlobalListeners(_),_.subject}stopMonitoring(L){const t=(0,K.i8)(L),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(L,t,s){const m=(0,K.i8)(L);m===this._document.activeElement?this._getClosestElementsInfo(m).forEach(([_,T])=>this._originChanged(_,t,T)):(this._setOrigin(t),"function"==typeof m.focus&&m.focus(s))}ngOnDestroy(){this._elementInfo.forEach((L,t)=>this.stopMonitoring(t))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(L){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(L)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:L&&this._isLastInteractionFromInputLabel(L)?"mouse":"program"}_shouldBeAttributedToTouch(L){return this._detectionMode===$.EVENTUAL||!!L?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(L,t){L.classList.toggle("cdk-focused",!!t),L.classList.toggle("cdk-touch-focused","touch"===t),L.classList.toggle("cdk-keyboard-focused","keyboard"===t),L.classList.toggle("cdk-mouse-focused","mouse"===t),L.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(L,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=L,this._originFromTouchInteraction="touch"===L&&t,this._detectionMode===$.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(L,t){const s=this._elementInfo.get(t),m=(0,f.Fb)(L);!s||!s.checkChildren&&t!==m||this._originChanged(t,this._getFocusOrigin(m),s)}_onBlur(L,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&L.relatedTarget instanceof Node&&t.contains(L.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(L,t){L.subject.observers.length&&this._ngZone.run(()=>L.subject.next(t))}_registerGlobalListeners(L){if(!this._platform.isBrowser)return;const t=L.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,_e),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,_e)}),this._rootNodeFocusListenerCount.set(t,s+1),1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,h.Q)(this._stopInputModalityDetector)).subscribe(m=>{this._setOrigin(m,!0)}))}_removeGlobalListeners(L){const t=L.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_e),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_e),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(L,t,s){this._setClasses(L,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(L){const t=[];return this._elementInfo.forEach((s,m)=>{(m===L||s.checkChildren&&m.contains(L))&&t.push([m,s])}),t}_isLastInteractionFromInputLabel(L){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===L||"INPUT"!==L.nodeName&&"TEXTAREA"!==L.nodeName||L.disabled)return!1;const m=L.labels;if(m)for(let u=0;u{class pe{_elementRef=(0,i.WQX)(g.aKT);_focusMonitor=(0,i.WQX)(ye);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new g.bkB;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const L=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(L,1===L.nodeType&&L.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||pe)};static \u0275dir=g.FsC({type:pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return pe})()},89726(ke,q,l){"use strict";l.d(q,{g:()=>D});var i=l(2615),g=l(73664);const p={};let D=(()=>{class o{_appId=(0,i.WQX)(g.sZ2);getId(A){return"ng"!==this._appId&&(A+=this._appId),p.hasOwnProperty(A)||(p[A]=0),`${A}${p[A]++}`}static \u0275fac=function(h){return new(h||o)};static \u0275prov=i.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},67336(ke,q,l){"use strict";function i(g,...p){return p.length?p.some(D=>g[D]):g.altKey||g.shiftKey||g.ctrlKey||g.metaKey}l.d(q,{rp:()=>i})},10438(ke,q,l){"use strict";l.d(q,{A:()=>R,A$:()=>h,FX:()=>e,Fm:()=>o,G_:()=>g,Ge:()=>me,Kp:()=>j,LE:()=>Q,SJ:()=>se,UQ:()=>ee,W3:()=>A,Z:()=>ae,_f:()=>f,bn:()=>P,dB:()=>K,eg:()=>ui,f2:()=>pe,i7:()=>V,n6:()=>$,t6:()=>F,w_:()=>M,wn:()=>p,yZ:()=>Z});const g=8,p=9,o=13,e=16,A=17,h=18,f=27,F=32,M=33,K=34,j=35,Z=36,ee=37,V=38,Q=39,$=40,se=46,pe=48,P=57,R=65,ae=90,me=91,ui=224},99327(ke,q,l){"use strict";l.d(q,{RH:()=>p,Rp:()=>D});var i=l(2615),g=l(73664);let p=(()=>{class o{static \u0275fac=function(h){return new(h||o)};static \u0275mod=g.$C({type:o});static \u0275inj=i.G2t({})}return o})();const D={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)"}},12593(ke,q,l){"use strict";l.d(q,{l:()=>d});var i=l(2615),g=l(73664),p=l(59295),D=l(21413),o=l(18359),e=l(59096),A=l(67336),h=l(10438);class d{_items;_activeItemIndex=(0,i.vPA)(-1);_activeItem=(0,i.vPA)(null);_wrap=!1;_typeaheadSubscription=o.yU.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=f=>f.disabled;constructor(f,F){this._items=f,f instanceof g.rOR?this._itemChangesSubscription=f.changes.subscribe(M=>this._itemsChanged(M.toArray())):(0,i.Hps)(f)&&(this._effectRef=(0,p.QZ)(()=>this._itemsChanged(f()),{injector:F}))}tabOut=new D.B;change=new D.B;skipPredicate(f){return this._skipPredicateFn=f,this}withWrap(f=!0){return this._wrap=f,this}withVerticalOrientation(f=!0){return this._vertical=f,this}withHorizontalOrientation(f){return this._horizontal=f,this}withAllowedModifierKeys(f){return this._allowedModifierKeys=f,this}withTypeAhead(f=200){this._typeaheadSubscription.unsubscribe();const F=this._getItemsArray();return this._typeahead=new e.i(F,{debounceInterval:"number"==typeof f?f:void 0,skipPredicate:M=>this._skipPredicateFn(M)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(M=>{this.setActiveItem(M)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(f=!0){return this._homeAndEnd=f,this}withPageUpDown(f=!0,F=10){return this._pageUpAndDown={enabled:f,delta:F},this}setActiveItem(f){const F=this._activeItem();this.updateActiveItem(f),this._activeItem()!==F&&this.change.next(this._activeItemIndex())}onKeydown(f){const F=f.keyCode,K=["altKey","ctrlKey","metaKey","shiftKey"].every(j=>!f[j]||this._allowedModifierKeys.indexOf(j)>-1);switch(F){case h.wn:return void this.tabOut.next();case h.n6:if(this._vertical&&K){this.setNextItemActive();break}return;case h.i7:if(this._vertical&&K){this.setPreviousItemActive();break}return;case h.LE:if(this._horizontal&&K){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case h.UQ:if(this._horizontal&&K){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case h.yZ:if(this._homeAndEnd&&K){this.setFirstItemActive();break}return;case h.Kp:if(this._homeAndEnd&&K){this.setLastItemActive();break}return;case h.w_:if(this._pageUpAndDown.enabled&&K){const j=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(j>0?j:0,1);break}return;case h.dB:if(this._pageUpAndDown.enabled&&K){const j=this._activeItemIndex()+this._pageUpAndDown.delta,Z=this._getItemsArray().length;this._setActiveItemByIndex(j-1&&M!==this._activeItemIndex()&&(this._activeItemIndex.set(M),this._typeahead?.setCurrentSelectedItemIndex(M))}}}},72318(ke,q,l){"use strict";l.d(q,{Wv:()=>M,w5:()=>K});var i=l(2615),g=l(73664),p=l(17705),D=l(71985),o=l(21413),e=l(70152),A=l(5964),h=l(96354),d=l(67847);let f=(()=>{class j{create(ee){return typeof MutationObserver>"u"?null:new MutationObserver(ee)}static \u0275fac=function(V){return new(V||j)};static \u0275prov=i.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})(),F=(()=>{class j{_mutationObserverFactory=(0,i.WQX)(f);_observedElements=new Map;_ngZone=(0,i.WQX)(g.SKi);constructor(){}ngOnDestroy(){this._observedElements.forEach((ee,V)=>this._cleanupObserver(V))}observe(ee){const V=(0,d.i8)(ee);return new D.c(Q=>{const ie=this._observeElement(V).pipe((0,h.T)(_e=>_e.filter(ye=>!function w(j){if("characterData"===j.type&&j.target instanceof Comment)return!0;if("childList"===j.type){for(let Z=0;Z!!_e.length)).subscribe(_e=>{this._ngZone.run(()=>{Q.next(_e)})});return()=>{ie.unsubscribe(),this._unobserveElement(V)}})}_observeElement(ee){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(ee))this._observedElements.get(ee).count++;else{const V=new o.B,Q=this._mutationObserverFactory.create($=>V.next($));Q&&Q.observe(ee,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(ee,{observer:Q,stream:V,count:1})}return this._observedElements.get(ee).stream})}_unobserveElement(ee){this._observedElements.has(ee)&&(this._observedElements.get(ee).count--,this._observedElements.get(ee).count||this._cleanupObserver(ee))}_cleanupObserver(ee){if(this._observedElements.has(ee)){const{observer:V,stream:Q}=this._observedElements.get(ee);V&&V.disconnect(),Q.complete(),this._observedElements.delete(ee)}}static \u0275fac=function(V){return new(V||j)};static \u0275prov=i.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})(),M=(()=>{class j{_contentObserver=(0,i.WQX)(F);_elementRef=(0,i.WQX)(g.aKT);event=new g.bkB;get disabled(){return this._disabled}set disabled(ee){this._disabled=ee,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(ee){this._debounce=(0,d.OE)(ee),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const ee=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?ee.pipe((0,e.B)(this.debounce)):ee).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(V){return new(V||j)};static \u0275dir=g.FsC({type:j,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",p.L39],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return j})(),K=(()=>{class j{static \u0275fac=function(V){return new(V||j)};static \u0275mod=g.$C({type:j});static \u0275inj=i.G2t({providers:[f]})}return j})()},63610(ke,q,l){"use strict";l.d(q,{a:()=>F});var i=l(2615),g=l(73664),p=l(21413),D=l(71985),o=l(5964),e=l(92771),A=l(97647),d=l(56977);class f{_box;_destroyed=new p.B;_resizeSubject=new p.B;_resizeObserver;_elementObservables=new Map;constructor(K){this._box=K,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(j=>this._resizeSubject.next(j)))}observe(K){return this._elementObservables.has(K)||this._elementObservables.set(K,new D.c(j=>{const Z=this._resizeSubject.subscribe(j);return this._resizeObserver?.observe(K,{box:this._box}),()=>{this._resizeObserver?.unobserve(K),Z.unsubscribe(),this._elementObservables.delete(K)}}).pipe((0,o.p)(j=>j.some(Z=>Z.target===K)),function h(M,K,j){let Z,ee=!1;return M&&"object"==typeof M?({bufferSize:Z=1/0,windowTime:K=1/0,refCount:ee=!1,scheduler:j}=M):Z=M??1/0,(0,A.u)({connector:()=>new e.m(Z,K,j),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ee})}({bufferSize:1,refCount:!0}),(0,d.Q)(this._destroyed))),this._elementObservables.get(K)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let F=(()=>{class M{_cleanupErrorListener;_observers=new Map;_ngZone=(0,i.WQX)(g.SKi);constructor(){}ngOnDestroy(){for(const[,j]of this._observers)j.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(j,Z){const ee=Z?.box||"content-box";return this._observers.has(ee)||this._observers.set(ee,new f(ee)),this._observers.get(ee).observe(j)}static \u0275fac=function(Z){return new(Z||M)};static \u0275prov=i.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})()},49338(ke,q,l){"use strict";l.d(q,{WB:()=>En,$Q:()=>hn,rW:()=>dt,rR:()=>Y,Sf:()=>ve,z_:()=>Fe,yY:()=>Se,gA:()=>Ee,$M:()=>$e,uA:()=>de,Y$:()=>Le,RH:()=>C});var i=l(2615),g=l(73664),p=l(17705),D=l(57303),o=l(39842),e=l(44522);function A(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var h=l(88968),d=l(21413),w=l(18359);function f(Pe){return null==Pe?"":"string"==typeof Pe?Pe:`${Pe}px`}var F=l(80408),M=l(5718),K=l(76939),j=l(47860),Z=l(5964),ee=l(39974),V=l(54360),$=l(89726),ie=l(61577),_e=l(10438),ye=l(67336),se=l(28203);const pe=(0,j.CZ)();function Ee(Pe){return new L(Pe.get(M.Xj),Pe.get(i.qQL))}class L{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(Ue,Qe){this._viewportRuler=Ue,this._document=Qe}attach(){}enable(){if(this._canBeEnabled()){const Ue=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Ue.style.left||"",this._previousHTMLStyles.top=Ue.style.top||"",Ue.style.left=f(-this._previousScrollPosition.left),Ue.style.top=f(-this._previousScrollPosition.top),Ue.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Ue=this._document.documentElement,Ie=Ue.style,le=this._document.body.style,Ne=Ie.scrollBehavior||"",ze=le.scrollBehavior||"";this._isEnabled=!1,Ie.left=this._previousHTMLStyles.left,Ie.top=this._previousHTMLStyles.top,Ue.classList.remove("cdk-global-scrollblock"),pe&&(Ie.scrollBehavior=le.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pe&&(Ie.scrollBehavior=Ne,le.scrollBehavior=ze)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Qe=this._document.documentElement,Ie=this._viewportRuler.getViewportSize();return Qe.scrollHeight>Ie.height||Qe.scrollWidth>Ie.width}}class m{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(Ue,Qe,Ie,le){this._scrollDispatcher=Ue,this._ngZone=Qe,this._viewportRuler=Ie,this._config=le}attach(Ue){this._overlayRef=Ue}enable(){if(this._scrollSubscription)return;const Ue=this._scrollDispatcher.scrolled(0).pipe((0,Z.p)(Qe=>!Qe||!this._overlayRef.overlayElement.contains(Qe.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Ue.subscribe(()=>{const Qe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Qe-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Ue.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class _{enable(){}disable(){}attach(){}}function T(Pe,Ue){return Ue.some(Qe=>Pe.bottomQe.bottom||Pe.rightQe.right)}function P(Pe,Ue){return Ue.some(Qe=>Pe.topQe.bottom||Pe.leftQe.right)}function C(Pe,Ue){return new a(Pe.get(M.R),Pe.get(M.Xj),Pe.get(g.SKi),Ue)}class a{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(Ue,Qe,Ie,le){this._scrollDispatcher=Ue,this._viewportRuler=Qe,this._ngZone=Ie,this._config=le}attach(Ue){this._overlayRef=Ue}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 Qe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ie,height:le}=this._viewportRuler.getViewportSize();T(Qe,[{width:Ie,height:le,bottom:le,right:Ie,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 x=(()=>{class Pe{_injector=(0,i.WQX)(i.zZn);constructor(){}noop=()=>new _;close=Qe=>function s(Pe,Ue){return new m(Pe.get(M.R),Pe.get(g.SKi),Pe.get(M.Xj),Ue)}(this._injector,Qe);block=()=>Ee(this._injector);reposition=Qe=>C(this._injector,Qe);static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();class Y{positionStrategy;scrollStrategy=new _;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(Ue){if(Ue){const Qe=Object.keys(Ue);for(const Ie of Qe)void 0!==Ue[Ie]&&(this[Ie]=Ue[Ie])}}}class fe{connectionPair;scrollableViewProperties;constructor(Ue,Qe){this.connectionPair=Ue,this.scrollableViewProperties=Qe}}let Oe=(()=>{class Pe{_attachedOverlays=[];_document=(0,i.WQX)(i.qQL);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(Qe){this.remove(Qe),this._attachedOverlays.push(Qe)}remove(Qe){const Ie=this._attachedOverlays.indexOf(Qe);Ie>-1&&this._attachedOverlays.splice(Ie,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})(),ge=(()=>{class Pe extends Oe{_ngZone=(0,i.WQX)(g.SKi);_renderer=(0,i.WQX)(g._9s).createRenderer(null,null);_cleanupKeydown;add(Qe){super.add(Qe),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=Qe=>{const Ie=this._attachedOverlays;for(let le=Ie.length-1;le>-1;le--)if(Ie[le]._keydownEvents.observers.length>0){this._ngZone.run(()=>Ie[le]._keydownEvents.next(Qe));break}};static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=g.xGo(Pe)))(le||Pe)}})();static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})(),ce=(()=>{class Pe extends Oe{_platform=(0,i.WQX)(o.O);_ngZone=(0,i.WQX)(g.SKi);_renderer=(0,i.WQX)(g._9s).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(Qe){if(super.add(Qe),!this._isAttached){const Ie=this._document.body,le={capture:!0},Ne=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[Ne.listen(Ie,"pointerdown",this._pointerDownListener,le),Ne.listen(Ie,"click",this._clickListener,le),Ne.listen(Ie,"auxclick",this._clickListener,le),Ne.listen(Ie,"contextmenu",this._clickListener,le)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ie.style.cursor,Ie.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(Qe=>Qe()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=Qe=>{this._pointerDownEventTarget=(0,e.Fb)(Qe)};_clickListener=Qe=>{const Ie=(0,e.Fb)(Qe),le="click"===Qe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ie;this._pointerDownEventTarget=null;const Ne=this._attachedOverlays.slice();for(let ze=Ne.length-1;ze>-1;ze--){const Je=Ne[ze];if(Je._outsidePointerEvents.observers.length<1||!Je.hasAttached())continue;if(Re(Je.overlayElement,Ie)||Re(Je.overlayElement,le))break;const gt=Je._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>gt.next(Qe)):gt.next(Qe)}};static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=g.xGo(Pe)))(le||Pe)}})();static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();function Re(Pe,Ue){const Qe=typeof ShadowRoot<"u"&&ShadowRoot;let Ie=Ue;for(;Ie;){if(Ie===Pe)return!0;Ie=Qe&&Ie instanceof ShadowRoot?Ie.host:Ie.parentNode}return!1}let Me=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275cmp=g.VBU({type:Pe,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(Ie,le){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}\n"],encapsulation:2,changeDetection:0})}return Pe})(),ve=(()=>{class Pe{_platform=(0,i.WQX)(o.O);_containerElement;_document=(0,i.WQX)(i.qQL);_styleLoader=(0,i.WQX)(h.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Qe="cdk-overlay-container";if(this._platform.isBrowser||A()){const le=this._document.querySelectorAll(`.${Qe}[platform="server"], .${Qe}[platform="test"]`);for(let Ne=0;Ne{const Ue=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(Ue,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),Ue.style.pointerEvents="none",Ue.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}}class Se{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new d.B;_attachments=new d.B;_detachments=new d.B;_positionStrategy;_scrollStrategy;_locationChanges=w.yU.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new d.B;_outsidePointerEvents=new d.B;_afterNextRenderRef;constructor(Ue,Qe,Ie,le,Ne,ze,Je,gt,zt,Ye=!1,st,it){this._portalOutlet=Ue,this._host=Qe,this._pane=Ie,this._config=le,this._ngZone=Ne,this._keyboardDispatcher=ze,this._document=Je,this._location=gt,this._outsideClickDispatcher=zt,this._animationsDisabled=Ye,this._injector=st,this._renderer=it,le.scrollStrategy&&(this._scrollStrategy=le.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=le.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(Ue){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Qe=this._portalOutlet.attach(Ue);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,g.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Qe?.onDestroy&&Qe.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Qe}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Ue=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Ue}dispose(){const Ue=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,Ue&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}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(Ue){Ue!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Ue,this.hasAttached()&&(Ue.attach(this),this.updatePosition()))}updateSize(Ue){this._config={...this._config,...Ue},this._updateElementSize()}setDirection(Ue){this._config={...this._config,direction:Ue},this._updateElementDirection()}addPanelClass(Ue){this._pane&&this._toggleClasses(this._pane,Ue,!0)}removePanelClass(Ue){this._pane&&this._toggleClasses(this._pane,Ue,!1)}getDirection(){const Ue=this._config.direction;return Ue?"string"==typeof Ue?Ue:Ue.value:"ltr"}updateScrollStrategy(Ue){Ue!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Ue,this.hasAttached()&&(Ue.attach(this),Ue.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Ue=this._pane.style;Ue.width=f(this._config.width),Ue.height=f(this._config.height),Ue.minWidth=f(this._config.minWidth),Ue.minHeight=f(this._config.minHeight),Ue.maxWidth=f(this._config.maxWidth),Ue.maxHeight=f(this._config.maxHeight)}_togglePointerEvents(Ue){this._pane.style.pointerEvents=Ue?"":"none"}_attachBackdrop(){const Ue="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new oe(this._document,this._renderer,this._ngZone,Qe=>{this._backdropClick.next(Qe)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(Ue))}):this._backdropRef.element.classList.add(Ue)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(Ue,Qe,Ie){const le=(0,F.F)(Qe||[]).filter(Ne=>!!Ne);le.length&&(Ie?Ue.classList.add(...le):Ue.classList.remove(...le))}_detachContentWhenEmpty(){let Ue=!1;try{this._detachContentAfterRenderRef=(0,g.mal)(()=>{Ue=!0,this._detachContent()},{injector:this._injector})}catch(Qe){if(Ue)throw Qe;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){const Ue=this._scrollStrategy;Ue?.disable(),Ue?.detach?.()}}const be="cdk-overlay-connected-position-bounding-box",nt=/([A-Za-z%]+)$/;function $e(Pe,Ue){return new dt(Ue,Pe.get(M.Xj),Pe.get(i.qQL),Pe.get(o.O),Pe.get(ve))}class dt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new d.B;_resizeSubscription=w.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(Ue,Qe,Ie,le,Ne){this._viewportRuler=Qe,this._document=Ie,this._platform=le,this._overlayContainer=Ne,this.setOrigin(Ue)}attach(Ue){this._validatePositions(),Ue.hostElement.classList.add(be),this._overlayRef=Ue,this._boundingBox=Ue.hostElement,this._pane=Ue.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ue=this._originRect,Qe=this._overlayRect,Ie=this._viewportRect,le=this._containerRect,Ne=[];let ze;for(let Je of this._preferredPositions){let gt=this._getOriginPoint(Ue,le,Je),zt=this._getOverlayPoint(gt,Qe,Je),Ye=this._getOverlayFit(zt,Qe,Ie,Je);if(Ye.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Je,gt);this._canFitWithFlexibleDimensions(Ye,zt,Ie)?Ne.push({position:Je,origin:gt,overlayRect:Qe,boundingBoxRect:this._calculateBoundingBoxRect(gt,Je)}):(!ze||ze.overlayFit.visibleAreagt&&(gt=Ye,Je=zt)}return this._isPushed=!1,void this._applyPosition(Je.position,Je.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ze.position,ze.originPoint);this._applyPosition(ze.position,ze.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&yt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Ue=this._lastPosition;if(Ue){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Qe=this._getOriginPoint(this._originRect,this._containerRect,Ue);this._applyPosition(Ue,Qe)}else this.apply()}withScrollableContainers(Ue){return this._scrollables=Ue,this}withPositions(Ue){return this._preferredPositions=Ue,-1===Ue.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Ue){return this._viewportMargin=Ue,this}withFlexibleDimensions(Ue=!0){return this._hasFlexibleDimensions=Ue,this}withGrowAfterOpen(Ue=!0){return this._growAfterOpen=Ue,this}withPush(Ue=!0){return this._canPush=Ue,this}withLockedPosition(Ue=!0){return this._positionLocked=Ue,this}setOrigin(Ue){return this._origin=Ue,this}withDefaultOffsetX(Ue){return this._offsetX=Ue,this}withDefaultOffsetY(Ue){return this._offsetY=Ue,this}withTransformOriginOn(Ue){return this._transformOriginSelector=Ue,this}_getOriginPoint(Ue,Qe,Ie){let le,Ne;if("center"==Ie.originX)le=Ue.left+Ue.width/2;else{const ze=this._isRtl()?Ue.right:Ue.left,Je=this._isRtl()?Ue.left:Ue.right;le="start"==Ie.originX?ze:Je}return Qe.left<0&&(le-=Qe.left),Ne="center"==Ie.originY?Ue.top+Ue.height/2:"top"==Ie.originY?Ue.top:Ue.bottom,Qe.top<0&&(Ne-=Qe.top),{x:le,y:Ne}}_getOverlayPoint(Ue,Qe,Ie){let le,Ne;return le="center"==Ie.overlayX?-Qe.width/2:"start"===Ie.overlayX?this._isRtl()?-Qe.width:0:this._isRtl()?0:-Qe.width,Ne="center"==Ie.overlayY?-Qe.height/2:"top"==Ie.overlayY?0:-Qe.height,{x:Ue.x+le,y:Ue.y+Ne}}_getOverlayFit(Ue,Qe,Ie,le){const Ne=rt(Qe);let{x:ze,y:Je}=Ue,gt=this._getOffset(le,"x"),zt=this._getOffset(le,"y");gt&&(ze+=gt),zt&&(Je+=zt);let it=0-Je,He=Je+Ne.height-Ie.height,Wt=this._subtractOverflows(Ne.width,0-ze,ze+Ne.width-Ie.width),we=this._subtractOverflows(Ne.height,it,He),We=Wt*we;return{visibleArea:We,isCompletelyWithinViewport:Ne.width*Ne.height===We,fitsInViewportVertically:we===Ne.height,fitsInViewportHorizontally:Wt==Ne.width}}_canFitWithFlexibleDimensions(Ue,Qe,Ie){if(this._hasFlexibleDimensions){const le=Ie.bottom-Qe.y,Ne=Ie.right-Qe.x,ze=Et(this._overlayRef.getConfig().minHeight),Je=Et(this._overlayRef.getConfig().minWidth);return(Ue.fitsInViewportVertically||null!=ze&&ze<=le)&&(Ue.fitsInViewportHorizontally||null!=Je&&Je<=Ne)}return!1}_pushOverlayOnScreen(Ue,Qe,Ie){if(this._previousPushAmount&&this._positionLocked)return{x:Ue.x+this._previousPushAmount.x,y:Ue.y+this._previousPushAmount.y};const le=rt(Qe),Ne=this._viewportRect,ze=Math.max(Ue.x+le.width-Ne.width,0),Je=Math.max(Ue.y+le.height-Ne.height,0),gt=Math.max(Ne.top-Ie.top-Ue.y,0),zt=Math.max(Ne.left-Ie.left-Ue.x,0);let Ye=0,st=0;return Ye=le.width<=Ne.width?zt||-ze:Ue.xWt&&!this._isInitialRender&&!this._growAfterOpen&&(ze=Ue.y-Wt/2)}if("end"===Qe.overlayX&&!le||"start"===Qe.overlayX&&le)it=Ie.width-Ue.x+2*this._viewportMargin,Ye=Ue.x-this._viewportMargin;else if("start"===Qe.overlayX&&!le||"end"===Qe.overlayX&&le)st=Ue.x,Ye=Ie.right-Ue.x;else{const He=Math.min(Ie.right-Ue.x+Ie.left,Ue.x),Wt=this._lastBoundingBoxSize.width;Ye=2*He,st=Ue.x-He,Ye>Wt&&!this._isInitialRender&&!this._growAfterOpen&&(st=Ue.x-Wt/2)}return{top:ze,left:st,bottom:Je,right:it,width:Ye,height:Ne}}_setBoundingBoxStyles(Ue,Qe){const Ie=this._calculateBoundingBoxRect(Ue,Qe);!this._isInitialRender&&!this._growAfterOpen&&(Ie.height=Math.min(Ie.height,this._lastBoundingBoxSize.height),Ie.width=Math.min(Ie.width,this._lastBoundingBoxSize.width));const le={};if(this._hasExactPosition())le.top=le.left="0",le.bottom=le.right=le.maxHeight=le.maxWidth="",le.width=le.height="100%";else{const Ne=this._overlayRef.getConfig().maxHeight,ze=this._overlayRef.getConfig().maxWidth;le.height=f(Ie.height),le.top=f(Ie.top),le.bottom=f(Ie.bottom),le.width=f(Ie.width),le.left=f(Ie.left),le.right=f(Ie.right),le.alignItems="center"===Qe.overlayX?"center":"end"===Qe.overlayX?"flex-end":"flex-start",le.justifyContent="center"===Qe.overlayY?"center":"bottom"===Qe.overlayY?"flex-end":"flex-start",Ne&&(le.maxHeight=f(Ne)),ze&&(le.maxWidth=f(ze))}this._lastBoundingBoxSize=Ie,yt(this._boundingBox.style,le)}_resetBoundingBoxStyles(){yt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){yt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Ue,Qe){const Ie={},le=this._hasExactPosition(),Ne=this._hasFlexibleDimensions,ze=this._overlayRef.getConfig();if(le){const Ye=this._viewportRuler.getViewportScrollPosition();yt(Ie,this._getExactOverlayY(Qe,Ue,Ye)),yt(Ie,this._getExactOverlayX(Qe,Ue,Ye))}else Ie.position="static";let Je="",gt=this._getOffset(Qe,"x"),zt=this._getOffset(Qe,"y");gt&&(Je+=`translateX(${gt}px) `),zt&&(Je+=`translateY(${zt}px)`),Ie.transform=Je.trim(),ze.maxHeight&&(le?Ie.maxHeight=f(ze.maxHeight):Ne&&(Ie.maxHeight="")),ze.maxWidth&&(le?Ie.maxWidth=f(ze.maxWidth):Ne&&(Ie.maxWidth="")),yt(this._pane.style,Ie)}_getExactOverlayY(Ue,Qe,Ie){let le={top:"",bottom:""},Ne=this._getOverlayPoint(Qe,this._overlayRect,Ue);return this._isPushed&&(Ne=this._pushOverlayOnScreen(Ne,this._overlayRect,Ie)),"bottom"===Ue.overlayY?le.bottom=this._document.documentElement.clientHeight-(Ne.y+this._overlayRect.height)+"px":le.top=f(Ne.y),le}_getExactOverlayX(Ue,Qe,Ie){let ze,le={left:"",right:""},Ne=this._getOverlayPoint(Qe,this._overlayRect,Ue);return this._isPushed&&(Ne=this._pushOverlayOnScreen(Ne,this._overlayRect,Ie)),ze=this._isRtl()?"end"===Ue.overlayX?"left":"right":"end"===Ue.overlayX?"right":"left","right"===ze?le.right=this._document.documentElement.clientWidth-(Ne.x+this._overlayRect.width)+"px":le.left=f(Ne.x),le}_getScrollVisibility(){const Ue=this._getOriginRect(),Qe=this._pane.getBoundingClientRect(),Ie=this._scrollables.map(le=>le.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:P(Ue,Ie),isOriginOutsideView:T(Ue,Ie),isOverlayClipped:P(Qe,Ie),isOverlayOutsideView:T(Qe,Ie)}}_subtractOverflows(Ue,...Qe){return Qe.reduce((Ie,le)=>Ie-Math.max(le,0),Ue)}_getNarrowedViewportRect(){const Ue=this._document.documentElement.clientWidth,Qe=this._document.documentElement.clientHeight,Ie=this._viewportRuler.getViewportScrollPosition();return{top:Ie.top+this._viewportMargin,left:Ie.left+this._viewportMargin,right:Ie.left+Ue-this._viewportMargin,bottom:Ie.top+Qe-this._viewportMargin,width:Ue-2*this._viewportMargin,height:Qe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Ue,Qe){return"x"===Qe?null==Ue.offsetX?this._offsetX:Ue.offsetX:null==Ue.offsetY?this._offsetY:Ue.offsetY}_validatePositions(){}_addPanelClasses(Ue){this._pane&&(0,F.F)(Ue).forEach(Qe=>{""!==Qe&&-1===this._appliedPanelClasses.indexOf(Qe)&&(this._appliedPanelClasses.push(Qe),this._pane.classList.add(Qe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Ue=>{this._pane.classList.remove(Ue)}),this._appliedPanelClasses=[])}_getOriginRect(){const Ue=this._origin;if(Ue instanceof g.aKT)return Ue.nativeElement.getBoundingClientRect();if(Ue instanceof Element)return Ue.getBoundingClientRect();const Qe=Ue.width||0,Ie=Ue.height||0;return{top:Ue.y,bottom:Ue.y+Ie,left:Ue.x,right:Ue.x+Qe,height:Ie,width:Qe}}}function yt(Pe,Ue){for(let Qe in Ue)Ue.hasOwnProperty(Qe)&&(Pe[Qe]=Ue[Qe]);return Pe}function Et(Pe){if("number"!=typeof Pe&&null!=Pe){const[Ue,Qe]=Pe.split(nt);return Qe&&"px"!==Qe?null:parseFloat(Ue)}return Pe||null}function rt(Pe){return{top:Math.floor(Pe.top),right:Math.floor(Pe.right),bottom:Math.floor(Pe.bottom),left:Math.floor(Pe.left),width:Math.floor(Pe.width),height:Math.floor(Pe.height)}}const Xt="cdk-global-overlay-wrapper";function de(Pe){return new ae}class ae{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(Ue){const Qe=Ue.getConfig();this._overlayRef=Ue,this._width&&!Qe.width&&Ue.updateSize({width:this._width}),this._height&&!Qe.height&&Ue.updateSize({height:this._height}),Ue.hostElement.classList.add(Xt),this._isDisposed=!1}top(Ue=""){return this._bottomOffset="",this._topOffset=Ue,this._alignItems="flex-start",this}left(Ue=""){return this._xOffset=Ue,this._xPosition="left",this}bottom(Ue=""){return this._topOffset="",this._bottomOffset=Ue,this._alignItems="flex-end",this}right(Ue=""){return this._xOffset=Ue,this._xPosition="right",this}start(Ue=""){return this._xOffset=Ue,this._xPosition="start",this}end(Ue=""){return this._xOffset=Ue,this._xPosition="end",this}width(Ue=""){return this._overlayRef?this._overlayRef.updateSize({width:Ue}):this._width=Ue,this}height(Ue=""){return this._overlayRef?this._overlayRef.updateSize({height:Ue}):this._height=Ue,this}centerHorizontally(Ue=""){return this.left(Ue),this._xPosition="center",this}centerVertically(Ue=""){return this.top(Ue),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Ue=this._overlayRef.overlayElement.style,Qe=this._overlayRef.hostElement.style,Ie=this._overlayRef.getConfig(),{width:le,height:Ne,maxWidth:ze,maxHeight:Je}=Ie,gt=!("100%"!==le&&"100vw"!==le||ze&&"100%"!==ze&&"100vw"!==ze),zt=!("100%"!==Ne&&"100vh"!==Ne||Je&&"100%"!==Je&&"100vh"!==Je),Ye=this._xPosition,st=this._xOffset,it="rtl"===this._overlayRef.getConfig().direction;let He="",Wt="",we="";gt?we="flex-start":"center"===Ye?(we="center",it?Wt=st:He=st):it?"left"===Ye||"end"===Ye?(we="flex-end",He=st):("right"===Ye||"start"===Ye)&&(we="flex-start",Wt=st):"left"===Ye||"start"===Ye?(we="flex-start",He=st):("right"===Ye||"end"===Ye)&&(we="flex-end",Wt=st),Ue.position=this._cssPosition,Ue.marginLeft=gt?"0":He,Ue.marginTop=zt?"0":this._topOffset,Ue.marginBottom=this._bottomOffset,Ue.marginRight=gt?"0":Wt,Qe.justifyContent=we,Qe.alignItems=zt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Ue=this._overlayRef.overlayElement.style,Qe=this._overlayRef.hostElement,Ie=Qe.style;Qe.classList.remove(Xt),Ie.justifyContent=Ie.alignItems=Ue.marginTop=Ue.marginBottom=Ue.marginLeft=Ue.marginRight=Ue.position="",this._overlayRef=null,this._isDisposed=!0}}let me=(()=>{class Pe{_injector=(0,i.WQX)(i.zZn);constructor(){}global(){return de()}flexibleConnectedTo(Qe){return $e(this._injector,Qe)}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();function Le(Pe,Ue){Pe.get(h.l).load(Me);const Qe=Pe.get(ve),Ie=Pe.get(i.qQL),le=Pe.get($.g),Ne=Pe.get(g.o8S),ze=Pe.get(ie.dS),Je=Ie.createElement("div"),gt=Ie.createElement("div");gt.id=le.getId("cdk-overlay-"),gt.classList.add("cdk-overlay-pane"),Je.appendChild(gt),Qe.getContainerElement().appendChild(Je);const zt=new K.aI(gt,Ne,Pe),Ye=new Y(Ue),st=Pe.get(g.sFG,null,{optional:!0})||Pe.get(g._9s).createRenderer(null,null);return Ye.direction=Ye.direction||ze.value,new Se(zt,Je,gt,Ye,Pe.get(g.SKi),Pe.get(ge),Ie,Pe.get(D.aZ),Pe.get(ce),Ue?.disableAnimations??"NoopAnimations"===Pe.get(g.bc$,null,{optional:!0}),Pe.get(i.uvJ),st)}let et=(()=>{class Pe{scrollStrategies=(0,i.WQX)(x);_positionBuilder=(0,i.WQX)(me);_injector=(0,i.WQX)(i.zZn);constructor(){}create(Qe){return Le(this._injector,Qe)}position(){return this._positionBuilder}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();const tn=[{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"}],Vt=new i.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const Pe=(0,i.WQX)(i.zZn);return()=>C(Pe)}});let hn=(()=>{class Pe{elementRef=(0,i.WQX)(g.aKT);constructor(){}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=g.FsC({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return Pe})(),En=(()=>{class Pe{_dir=(0,i.WQX)(ie.dS,{optional:!0});_injector=(0,i.WQX)(i.zZn);_overlayRef;_templatePortal;_backdropSubscription=w.yU.EMPTY;_attachSubscription=w.yU.EMPTY;_detachSubscription=w.yU.EMPTY;_positionSubscription=w.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,i.WQX)(Vt);_disposeOnNavigation=!1;_ngZone=(0,i.WQX)(g.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(Qe){this._offsetX=Qe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Qe){this._offsetY=Qe,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Qe){this._disposeOnNavigation=Qe}backdropClick=new g.bkB;positionChange=new g.bkB;attach=new g.bkB;detach=new g.bkB;overlayKeydown=new g.bkB;overlayOutsideClick=new g.bkB;constructor(){const Qe=(0,i.WQX)(g.C4Q),Ie=(0,i.WQX)(g.c1b);this._templatePortal=new K.VA(Qe,Ie),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(Qe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Qe.origin&&this.open&&this._position.apply()),Qe.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=tn);const Qe=this._overlayRef=Le(this._injector,this._buildConfig());this._attachSubscription=Qe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Qe.detachments().subscribe(()=>this.detach.emit()),Qe.keydownEvents().subscribe(Ie=>{this.overlayKeydown.next(Ie),Ie.keyCode===_e._f&&!this.disableClose&&!(0,ye.rp)(Ie)&&(Ie.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ie=>{const le=this._getOriginElement(),Ne=(0,e.Fb)(Ie);(!le||le!==Ne&&!le.contains(Ne))&&this.overlayOutsideClick.next(Ie)})}_buildConfig(){const Qe=this._position=this.positionStrategy||this._createPositionStrategy(),Ie=new Y({direction:this._dir||"ltr",positionStrategy:Qe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(Ie.width=this.width),(this.height||0===this.height)&&(Ie.height=this.height),(this.minWidth||0===this.minWidth)&&(Ie.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ie.minHeight=this.minHeight),this.backdropClass&&(Ie.backdropClass=this.backdropClass),this.panelClass&&(Ie.panelClass=this.panelClass),Ie}_updatePositionStrategy(Qe){const Ie=this.positions.map(le=>({originX:le.originX,originY:le.originY,overlayX:le.overlayX,overlayY:le.overlayY,offsetX:le.offsetX||this.offsetX,offsetY:le.offsetY||this.offsetY,panelClass:le.panelClass||void 0}));return Qe.setOrigin(this._getOrigin()).withPositions(Ie).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Qe=$e(this._injector,this._getOrigin());return this._updatePositionStrategy(Qe),Qe}_getOrigin(){return this.origin instanceof hn?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof hn?this.origin.elementRef.nativeElement:this.origin instanceof g.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(Qe=>{this.backdropClick.emit(Qe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Q(Pe,Ue=!1){return(0,ee.N)((Qe,Ie)=>{let le=0;Qe.subscribe((0,V._)(Ie,Ne=>{const ze=Pe(Ne,le++);(ze||Ue)&&Ie.next(Ne),!ze&&Ie.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(Qe=>{this._ngZone.run(()=>this.positionChange.emit(Qe)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=g.FsC({type:Pe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",p.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",p.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",p.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",p.L39],push:[2,"cdkConnectedOverlayPush","push",p.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",p.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[g.OA$]})}return Pe})();const tt={provide:Vt,useFactory:function _n(Pe){const Ue=(0,i.WQX)(i.zZn);return()=>C(Ue)}};let Fe=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275mod=g.$C({type:Pe});static \u0275inj=i.G2t({providers:[et,tt],imports:[se.jI,K.jc,M.E9,M.E9]})}return Pe})()},83300(ke,q,l){"use strict";let i;function p(D){return function g(){if(null==i&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>i=!0}))}finally{i=i||!1}return i}()?D:!!D.capture}l.d(q,{B:()=>p})},39842(ke,q,l){"use strict";l.d(q,{O:()=>o});var i=l(2615),g=l(73664),p=l(60177);let D;try{D=typeof Intl<"u"&&Intl.v8BreakIterator}catch{D=!1}let o=(()=>{class e{_platformId=(0,i.WQX)(g.Agw);isBrowser=this._platformId?(0,p.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!D)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(d){return new(d||e)};static \u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},76939(ke,q,l){"use strict";l.d(q,{A8:()=>F,I3:()=>Q,VA:()=>M,aI:()=>Z,bV:()=>ee,jc:()=>ie,lb:()=>j});var g=l(2615),p=l(73664),D=l(17705);class f{_attachedHost;attach(ye){return this._attachedHost=ye,ye.attach(this)}detach(){let ye=this._attachedHost;null!=ye&&(this._attachedHost=null,ye.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ye){this._attachedHost=ye}}class F extends f{component;viewContainerRef;injector;projectableNodes;constructor(ye,se,pe,Ee){super(),this.component=ye,this.viewContainerRef=se,this.injector=pe,this.projectableNodes=Ee}}class M extends f{templateRef;viewContainerRef;context;injector;constructor(ye,se,pe,Ee){super(),this.templateRef=ye,this.viewContainerRef=se,this.context=pe,this.injector=Ee}get origin(){return this.templateRef.elementRef}attach(ye,se=this.context){return this.context=se,super.attach(ye)}detach(){return this.context=void 0,super.detach()}}class K extends f{element;constructor(ye){super(),this.element=ye instanceof p.aKT?ye.nativeElement:ye}}class j{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(ye){return ye instanceof F?(this._attachedPortal=ye,this.attachComponentPortal(ye)):ye instanceof M?(this._attachedPortal=ye,this.attachTemplatePortal(ye)):this.attachDomPortal&&ye instanceof K?(this._attachedPortal=ye,this.attachDomPortal(ye)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ye){this._disposeFn=ye}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Z extends j{outletElement;_appRef;_defaultInjector;constructor(ye,se,pe){super(),this.outletElement=ye,this._appRef=se,this._defaultInjector=pe}attachComponentPortal(ye){let se;if(ye.viewContainerRef){const pe=ye.injector||ye.viewContainerRef.injector,Ee=pe.get(p.Ab1,null,{optional:!0})||void 0;se=ye.viewContainerRef.createComponent(ye.component,{index:ye.viewContainerRef.length,injector:pe,ngModuleRef:Ee,projectableNodes:ye.projectableNodes||void 0}),this.setDisposeFn(()=>se.destroy())}else{const pe=this._appRef,Ee=ye.injector||this._defaultInjector||g.zZn.NULL,L=Ee.get(g.uvJ,pe.injector);se=(0,D.a0P)(ye.component,{elementInjector:Ee,environmentInjector:L,projectableNodes:ye.projectableNodes||void 0}),pe.attachView(se.hostView),this.setDisposeFn(()=>{pe.viewCount>0&&pe.detachView(se.hostView),se.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(se)),this._attachedPortal=ye,se}attachTemplatePortal(ye){let se=ye.viewContainerRef,pe=se.createEmbeddedView(ye.templateRef,ye.context,{injector:ye.injector});return pe.rootNodes.forEach(Ee=>this.outletElement.appendChild(Ee)),pe.detectChanges(),this.setDisposeFn(()=>{let Ee=se.indexOf(pe);-1!==Ee&&se.remove(Ee)}),this._attachedPortal=ye,pe}attachDomPortal=ye=>{const se=ye.element,pe=this.outletElement.ownerDocument.createComment("dom-portal");se.parentNode.insertBefore(pe,se),this.outletElement.appendChild(se),this._attachedPortal=ye,super.setDisposeFn(()=>{pe.parentNode&&pe.parentNode.replaceChild(se,pe)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ye){return ye.hostView.rootNodes[0]}}let ee=(()=>{class _e extends M{constructor(){super((0,g.WQX)(p.C4Q),(0,g.WQX)(p.c1b))}static \u0275fac=function(pe){return new(pe||_e)};static \u0275dir=p.FsC({type:_e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[p.Vt3]})}return _e})(),Q=(()=>{class _e extends j{_moduleRef=(0,g.WQX)(p.Ab1,{optional:!0});_document=(0,g.WQX)(g.qQL);_viewContainerRef=(0,g.WQX)(p.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(se){this.hasAttached()&&!se&&!this._isInitialized||(this.hasAttached()&&super.detach(),se&&super.attach(se),this._attachedPortal=se||null)}attached=new p.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(se){se.setAttachedHost(this);const pe=null!=se.viewContainerRef?se.viewContainerRef:this._viewContainerRef,Ee=pe.createComponent(se.component,{index:pe.length,injector:se.injector||pe.injector,projectableNodes:se.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return pe!==this._viewContainerRef&&this._getRootNode().appendChild(Ee.hostView.rootNodes[0]),super.setDisposeFn(()=>Ee.destroy()),this._attachedPortal=se,this._attachedRef=Ee,this.attached.emit(Ee),Ee}attachTemplatePortal(se){se.setAttachedHost(this);const pe=this._viewContainerRef.createEmbeddedView(se.templateRef,se.context,{injector:se.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=se,this._attachedRef=pe,this.attached.emit(pe),pe}attachDomPortal=se=>{const pe=se.element,Ee=this._document.createComment("dom-portal");se.setAttachedHost(this),pe.parentNode.insertBefore(Ee,pe),this._getRootNode().appendChild(pe),this._attachedPortal=se,super.setDisposeFn(()=>{Ee.parentNode&&Ee.parentNode.replaceChild(pe,Ee)})};_getRootNode(){const se=this._viewContainerRef.element.nativeElement;return se.nodeType===se.ELEMENT_NODE?se:se.parentNode}static \u0275fac=function(pe){return new(pe||_e)};static \u0275dir=p.FsC({type:_e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.Vt3]})}return _e})(),ie=(()=>{class _e{static \u0275fac=function(pe){return new(pe||_e)};static \u0275mod=p.$C({type:_e});static \u0275inj=g.G2t({})}return _e})()},49046(ke,q,l){"use strict";l.d(q,{Y:()=>g});var i=l(73664);let g=(()=>{class p{static \u0275fac=function(e){return new(e||p)};static \u0275cmp=i.VBU({type:p,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(e,A){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\n"],encapsulation:2,changeDetection:0})}return p})()},5718(ke,q,l){"use strict";l.d(q,{uv:()=>Ne,Gj:()=>Lt,R:()=>le,E9:()=>St,Xj:()=>Je});var i=l(2615),g=l(73664),p=l(21413),D=l(7673),o=l(71985),e=l(96780),A=l(18359);const h={schedule(At){let fn=requestAnimationFrame,mt=cancelAnimationFrame;const{delegate:It}=h;It&&(fn=It.requestAnimationFrame,mt=It.cancelAnimationFrame);const wn=fn(In=>{mt=void 0,At(In)});return new A.yU(()=>mt?.(wn))},requestAnimationFrame(...At){const{delegate:fn}=h;return(fn?.requestAnimationFrame||requestAnimationFrame)(...At)},cancelAnimationFrame(...At){const{delegate:fn}=h;return(fn?.cancelAnimationFrame||cancelAnimationFrame)(...At)},delegate:void 0};var w=l(39687);new class f extends w.q{flush(fn){let mt;this._active=!0,fn?mt=fn.id:(mt=this._scheduled,this._scheduled=void 0);const{actions:It}=this;let wn;fn=fn||It.shift();do{if(wn=fn.execute(fn.state,fn.delay))break}while((fn=It[0])&&fn.id===mt&&It.shift());if(this._active=!1,wn){for(;(fn=It[0])&&fn.id===mt&&It.shift();)fn.unsubscribe();throw wn}}}(class d extends e.R{constructor(fn,mt){super(fn,mt),this.scheduler=fn,this.work=mt}requestAsyncId(fn,mt,It=0){return null!==It&&It>0?super.requestAsyncId(fn,mt,It):(fn.actions.push(this),fn._scheduled||(fn._scheduled=h.requestAnimationFrame(()=>fn.flush(void 0))))}recycleAsyncId(fn,mt,It=0){var wn;if(null!=It?It>0:this.delay>0)return super.recycleAsyncId(fn,mt,It);const{actions:In}=fn;null!=mt&&mt===fn._scheduled&&(null===(wn=In[In.length-1])||void 0===wn?void 0:wn.id)!==mt&&(h.cancelAnimationFrame(mt),fn._scheduled=void 0)}});let j,K=1;const Z={};function ee(At){return At in Z&&(delete Z[At],!0)}const V={setImmediate(At){const fn=K++;return Z[fn]=!0,j||(j=Promise.resolve()),j.then(()=>ee(fn)&&At()),fn},clearImmediate(At){ee(At)}},{setImmediate:$,clearImmediate:ie}=V,_e={setImmediate(...At){const{delegate:fn}=_e;return(fn?.setImmediate||$)(...At)},clearImmediate(At){const{delegate:fn}=_e;return(fn?.clearImmediate||ie)(At)},delegate:void 0};new class se extends w.q{flush(fn){this._active=!0;const mt=this._scheduled;this._scheduled=void 0;const{actions:It}=this;let wn;fn=fn||It.shift();do{if(wn=fn.execute(fn.state,fn.delay))break}while((fn=It[0])&&fn.id===mt&&It.shift());if(this._active=!1,wn){for(;(fn=It[0])&&fn.id===mt&&It.shift();)fn.unsubscribe();throw wn}}}(class ye extends e.R{constructor(fn,mt){super(fn,mt),this.scheduler=fn,this.work=mt}requestAsyncId(fn,mt,It=0){return null!==It&&It>0?super.requestAsyncId(fn,mt,It):(fn.actions.push(this),fn._scheduled||(fn._scheduled=_e.setImmediate(fn.flush.bind(fn,void 0))))}recycleAsyncId(fn,mt,It=0){var wn;if(null!=It?It>0:this.delay>0)return super.recycleAsyncId(fn,mt,It);const{actions:In}=fn;null!=mt&&(null===(wn=In[In.length-1])||void 0===wn?void 0:wn.id)!==mt&&(_e.clearImmediate(mt),fn._scheduled===mt&&(fn._scheduled=void 0))}});var L=l(13798),t=l(5964),s=l(67847),m=l(39842),u=l(61577),_=l(47860),T=l(28203);let le=(()=>{class At{_ngZone=(0,i.WQX)(g.SKi);_platform=(0,i.WQX)(m.O);_renderer=(0,i.WQX)(g._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new p.B;_scrolledCount=0;scrollContainers=new Map;register(mt){this.scrollContainers.has(mt)||this.scrollContainers.set(mt,mt.elementScrolled().subscribe(()=>this._scrolled.next(mt)))}deregister(mt){const It=this.scrollContainers.get(mt);It&&(It.unsubscribe(),this.scrollContainers.delete(mt))}scrolled(mt=20){return this._platform.isBrowser?new o.c(It=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const wn=mt>0?this._scrolled.pipe((0,L.Z)(mt)).subscribe(It):this._scrolled.subscribe(It);return this._scrolledCount++,()=>{wn.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,D.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((mt,It)=>this.deregister(It)),this._scrolled.complete()}ancestorScrolled(mt,It){const wn=this.getAncestorScrollContainers(mt);return this.scrolled(It).pipe((0,t.p)(In=>!In||wn.indexOf(In)>-1))}getAncestorScrollContainers(mt){const It=[];return this.scrollContainers.forEach((wn,In)=>{this._scrollableContainsElement(In,mt)&&It.push(In)}),It}_scrollableContainsElement(mt,It){let wn=(0,s.i8)(It),In=mt.getElementRef().nativeElement;do{if(wn==In)return!0}while(wn=wn.parentElement);return!1}static \u0275fac=function(It){return new(It||At)};static \u0275prov=i.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Ne=(()=>{class At{elementRef=(0,i.WQX)(g.aKT);scrollDispatcher=(0,i.WQX)(le);ngZone=(0,i.WQX)(g.SKi);dir=(0,i.WQX)(u.dS,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new p.B;_renderer=(0,i.WQX)(g.sFG);_cleanupScroll;_elementScrolled=new p.B;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",mt=>this._elementScrolled.next(mt))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(mt){const It=this.elementRef.nativeElement,wn=this.dir&&"rtl"==this.dir.value;null==mt.left&&(mt.left=wn?mt.end:mt.start),null==mt.right&&(mt.right=wn?mt.start:mt.end),null!=mt.bottom&&(mt.top=It.scrollHeight-It.clientHeight-mt.bottom),wn&&(0,_.BD)()!=_.r5.NORMAL?(null!=mt.left&&(mt.right=It.scrollWidth-It.clientWidth-mt.left),(0,_.BD)()==_.r5.INVERTED?mt.left=mt.right:(0,_.BD)()==_.r5.NEGATED&&(mt.left=mt.right?-mt.right:mt.right)):null!=mt.right&&(mt.left=It.scrollWidth-It.clientWidth-mt.right),this._applyScrollToOptions(mt)}_applyScrollToOptions(mt){const It=this.elementRef.nativeElement;(0,_.CZ)()?It.scrollTo(mt):(null!=mt.top&&(It.scrollTop=mt.top),null!=mt.left&&(It.scrollLeft=mt.left))}measureScrollOffset(mt){const It="left",In=this.elementRef.nativeElement;if("top"==mt)return In.scrollTop;if("bottom"==mt)return In.scrollHeight-In.clientHeight-In.scrollTop;const ei=this.dir&&"rtl"==this.dir.value;return"start"==mt?mt=ei?"right":It:"end"==mt&&(mt=ei?It:"right"),ei&&(0,_.BD)()==_.r5.INVERTED?mt==It?In.scrollWidth-In.clientWidth-In.scrollLeft:In.scrollLeft:ei&&(0,_.BD)()==_.r5.NEGATED?mt==It?In.scrollLeft+In.scrollWidth-In.clientWidth:-In.scrollLeft:mt==It?In.scrollLeft:In.scrollWidth-In.clientWidth-In.scrollLeft}static \u0275fac=function(It){return new(It||At)};static \u0275dir=g.FsC({type:At,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return At})(),Je=(()=>{class At{_platform=(0,i.WQX)(m.O);_listeners;_viewportSize;_change=new p.B;_document=(0,i.WQX)(i.qQL);constructor(){const mt=(0,i.WQX)(g.SKi),It=(0,i.WQX)(g._9s).createRenderer(null,null);mt.runOutsideAngular(()=>{if(this._platform.isBrowser){const wn=In=>this._change.next(In);this._listeners=[It.listen("window","resize",wn),It.listen("window","orientationchange",wn)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(mt=>mt()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const mt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),mt}getViewportRect(){const mt=this.getViewportScrollPosition(),{width:It,height:wn}=this.getViewportSize();return{top:mt.top,left:mt.left,bottom:mt.top+wn,right:mt.left+It,height:wn,width:It}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const mt=this._document,It=this._getWindow(),wn=mt.documentElement,In=wn.getBoundingClientRect();return{top:-In.top||mt.body.scrollTop||It.scrollY||wn.scrollTop||0,left:-In.left||mt.body.scrollLeft||It.scrollX||wn.scrollLeft||0}}change(mt=20){return mt>0?this._change.pipe((0,L.Z)(mt)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const mt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:mt.innerWidth,height:mt.innerHeight}:{width:0,height:0}}static \u0275fac=function(It){return new(It||At)};static \u0275prov=i.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Lt=(()=>{class At{static \u0275fac=function(It){return new(It||At)};static \u0275mod=g.$C({type:At});static \u0275inj=i.G2t({})}return At})(),St=(()=>{class At{static \u0275fac=function(It){return new(It||At)};static \u0275mod=g.$C({type:At});static \u0275inj=i.G2t({imports:[T.jI,Lt,T.jI,Lt]})}return At})()},47860(ke,q,l){"use strict";l.d(q,{BD:()=>o,CZ:()=>D,r5:()=>i});var i=function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e}(i||{});let g,p;function D(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)p=!0;else{const e=Element.prototype.scrollTo;p=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return p}function o(){if("object"!=typeof document||!document)return i.NORMAL;if(null==g){const e=document.createElement("div"),A=e.style;e.dir="rtl",A.width="1px",A.overflow="auto",A.visibility="hidden",A.pointerEvents="none",A.position="absolute";const h=document.createElement("div"),d=h.style;d.width="2px",d.height="1px",e.appendChild(h),document.body.appendChild(e),g=i.NORMAL,0===e.scrollLeft&&(e.scrollLeft=1,g=0===e.scrollLeft?i.NEGATED:i.INVERTED),e.remove()}return g}},83869(ke,q,l){"use strict";l.d(q,{C:()=>g});var i=l(21413);class g{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new i.B;constructor(o=!1,e,A=!0,h){this._multiple=o,this._emitChanges=A,this.compareWith=h,e&&e.length&&(o?e.forEach(d=>this._markSelected(d)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...o){this._verifyValueAssignment(o),o.forEach(A=>this._markSelected(A));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(A=>this._unmarkSelected(A));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);const e=this.selected,A=new Set(o.map(d=>this._getConcreteValue(d)));o.forEach(d=>this._markSelected(d)),e.filter(d=>!A.has(this._getConcreteValue(d,A))).forEach(d=>this._unmarkSelected(d));const h=this._hasQueuedChanges();return this._emitChangeEvent(),h}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();const e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){return this._selection.has(this._getConcreteValue(o))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}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(o){o=this._getConcreteValue(o),this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){o=this._getConcreteValue(o),this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(o,e){if(this.compareWith){e=e??this._selection;for(let A of e)if(this.compareWith(o,A))return A;return o}return o}}},44522(ke,q,l){"use strict";let i;function p(e){if(function g(){if(null==i){const e=typeof document<"u"?document.head:null;i=!(!e||!e.createShadowRoot&&!e.attachShadow)}return i}()){const A=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&A instanceof ShadowRoot)return A}return null}function D(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const A=e.shadowRoot.activeElement;if(A===e)break;e=A}return e}function o(e){return e.composedPath?e.composedPath()[0]:e.target}l.d(q,{Fb:()=>o,KT:()=>p,vc:()=>D})},97768(ke,q,l){"use strict";l.d(q,{FK:()=>L,Up:()=>pe,VI:()=>se,nb:()=>$,oX:()=>Q,uY:()=>t,v5:()=>Ee,x8:()=>ye});var i=l(2615),g=l(73664),p=l(17705),D=l(59295),o=l(89417),e=l(21413),A=l(7673),h=l(99172),d=l(56977),w=l(61577),f=l(89726),F=l(64123),M=l(67336),K=l(10438),j=l(44522),Z=l(28203);const ee=["*"];function V(s,m){1&s&&g.SdG(0)}let Q=(()=>{class s{_elementRef=(0,i.WQX)(g.aKT);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return s})(),$=(()=>{class s{template=(0,i.WQX)(g.C4Q);constructor(){}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["","cdkStepLabel",""]]})}return s})();const ye=new i.nKC("STEPPER_GLOBAL_OPTIONS");let se=(()=>{class s{_stepperOptions;_stepper=(0,i.WQX)(pe);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(u){this._interacted.set(u)}_interacted=(0,i.vPA)(!1);interactedStream=new g.bkB;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(u){this._state.set(u)}_state=(0,i.vPA)(void 0);get editable(){return this._editable()}set editable(u){this._editable.set(u)}_editable=(0,i.vPA)(!0);optional=!1;get completed(){const u=this._completedOverride(),_=this._interacted();return u??(_&&(!this.stepControl||this.stepControl.valid))}set completed(u){this._completedOverride.set(u)}_completedOverride=(0,i.vPA)(null);index=(0,i.vPA)(-1);isSelected=(0,D.EW)(()=>this._stepper.selectedIndex===this.index());indicatorType=(0,D.EW)(()=>{const u=this.isSelected(),_=this.completed,T=this._state()??"number",P=this._editable();return this._showError()&&this.hasError&&!u?"error":this._displayDefaultIndicatorType?!_||u?"number":P?"edit":"done":_&&!u?"done":_&&u?T:P&&u?"edit":T});isNavigable=(0,D.EW)(()=>{const u=this.isSelected();return this.completed||u||!this._stepper.linear});get hasError(){return this._customError()??this._getDefaultError()}set hasError(u){this._customError.set(u)}_customError=(0,i.vPA)(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){const u=(0,i.WQX)(ye,{optional:!0});this._stepperOptions=u||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),null!=this._completedOverride()&&this._completedOverride.set(!1),null!=this._customError()&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(u=>u.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError()}static \u0275fac=function(_){return new(_||s)};static \u0275cmp=g.VBU({type:s,selectors:[["cdk-step"]],contentQueries:function(_,T,P){if(1&_&&(g.wni(P,$,5),g.wni(P,o.ZU,5)),2&_){let C;g.mGM(C=g.lsd())&&(T.stepLabel=C.first),g.mGM(C=g.lsd())&&(T._childForms=C)}},viewQuery:function(_,T){if(1&_&&g.GBs(g.C4Q,7),2&_){let P;g.mGM(P=g.lsd())&&(T.content=P.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",p.L39],optional:[2,"optional","optional",p.L39],completed:[2,"completed","completed",p.L39],hasError:[2,"hasError","hasError",p.L39]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[g.OA$],ngContentSelectors:ee,decls:1,vars:0,template:function(_,T){1&_&&(g.NAR(),g.PeT(0,V,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return s})(),pe=(()=>{class s{_dir=(0,i.WQX)(w.dS,{optional:!0});_changeDetectorRef=(0,i.WQX)(p.gRc);_elementRef=(0,i.WQX)(g.aKT);_destroyed=new e.B;_keyManager;_steps;steps=new g.rOR;_stepHeader;_sortedHeaders=new g.rOR;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(u){this._steps?(this._isValidIndex(u),this.selectedIndex!==u&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(u)&&(u>=this.selectedIndex||this.steps.toArray()[u].editable)&&this._updateSelectedItemIndex(u))):this._selectedIndex.set(u)}_selectedIndex=(0,i.vPA)(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(u){this.selectedIndex=u&&this.steps?this.steps.toArray().indexOf(u):-1}selectionChange=new g.bkB;selectedIndexChange=new g.bkB;_groupId=(0,i.WQX)(f.g).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(u){this._orientation=u,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===u)}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe((0,h.Z)(this._steps),(0,d.Q)(this._destroyed)).subscribe(u=>{this.steps.reset(u.filter(_=>_._stepper===this)),this.steps.forEach((_,T)=>_.index.set(T)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe((0,h.Z)(this._stepHeader),(0,d.Q)(this._destroyed)).subscribe(u=>{this._sortedHeaders.reset(u.toArray().sort((_,T)=>_._elementRef.nativeElement.compareDocumentPosition(T._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new F.B(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:(0,A.of)()).pipe((0,h.Z)(this._layoutDirection()),(0,d.Q)(this._destroyed)).subscribe(u=>this._keyManager?.withHorizontalOrientation(u)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){const u=this.steps.toArray().slice(0,this._selectedIndex());for(const _ of u)_._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),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(u=>u.reset()),this._stateChanged()}_getStepLabelId(u){return`${this._groupId}-label-${u}`}_getStepContentId(u){return`${this._groupId}-content-${u}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(u){const _=u-this._selectedIndex();return _<0?"rtl"===this._layoutDirection()?"next":"previous":_>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(u){const _=this.steps.toArray(),T=this._selectedIndex();this.selectionChange.emit({selectedIndex:u,previouslySelectedIndex:T,selectedStep:_[u],previouslySelectedStep:_[T]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(u):this._keyManager.updateActiveItem(u)),this._selectedIndex.set(u),this.selectedIndexChange.emit(u),this._stateChanged()}_onKeydown(u){const _=(0,M.rp)(u),T=u.keyCode,P=this._keyManager;null==P?.activeItemIndex||_||T!==K.t6&&T!==K.Fm?P?.setFocusOrigin("keyboard").onKeydown(u):(this.selectedIndex=P.activeItemIndex,u.preventDefault())}_anyControlsInvalidOrPending(u){return!!(this.linear&&u>=0)&&this.steps.toArray().slice(0,u).some(_=>{const T=_.stepControl;return(T?T.invalid||T.pending||!_.interacted:!_.completed)&&!_.optional&&!_._completedOverride()})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const u=this._elementRef.nativeElement,_=(0,j.vc)();return u===_||u.contains(_)}_isValidIndex(u){return u>-1&&(!this.steps||u{class s{_stepper=(0,i.WQX)(pe);type="submit";constructor(){}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(_,T){1&_&&g.bIt("click",function(){return T._stepper.next()}),2&_&&g.Avn("type",T.type)},inputs:{type:"type"}})}return s})(),L=(()=>{class s{_stepper=(0,i.WQX)(pe);type="button";constructor(){}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(_,T){1&_&&g.bIt("click",function(){return T._stepper.previous()}),2&_&&g.Avn("type",T.type)},inputs:{type:"type"}})}return s})(),t=(()=>{class s{static \u0275fac=function(_){return new(_||s)};static \u0275mod=g.$C({type:s});static \u0275inj=i.G2t({imports:[Z.jI]})}return s})()},88968(ke,q,l){"use strict";l.d(q,{l:()=>o});var i=l(2615),g=l(17705),p=l(73664);const D=new WeakMap;let o=(()=>{class e{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(h){const d=this._appRef=this._appRef||this._injector.get(p.o8S);let w=D.get(d);w||(w={loaders:new Set,refs:[]},D.set(d,w),d.onDestroy(()=>{D.get(d)?.refs.forEach(f=>f.destroy()),D.delete(d)})),w.loaders.has(h)||(w.loaders.add(h),w.refs.push((0,g.a0P)(h,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(d){return new(d||e)};static \u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},4125(ke,q,l){"use strict";l.d(q,{Z2:()=>F});var i=l(2615),g=l(73664),p=l(21413),D=l(18359),o=l(74402),e=l(7673),A=l(96697),h=l(59096),d=l(8045);class w{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=j=>!1;_trackByFn=j=>j;_items=[];_typeahead;_typeaheadSubscription=D.yU.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||0===this._items.length)return;let j=0;for(let ee=0;ee{this._items=ee.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):(0,o.A)(j)?j.subscribe(ee=>{this._items=ee,this._typeahead?.setItems(ee),this._updateActiveItemIndex(ee),this._initializeFocus()}):(this._items=j,this._initializeFocus()),"boolean"==typeof Z.shouldActivationFollowFocus&&(this._shouldActivationFollowFocus=Z.shouldActivationFollowFocus),Z.horizontalOrientation&&(this._horizontalOrientation=Z.horizontalOrientation),Z.skipPredicate&&(this._skipPredicateFn=Z.skipPredicate),Z.trackBy&&(this._trackByFn=Z.trackBy),typeof Z.typeAheadDebounceInterval<"u"&&this._setTypeAhead(Z.typeAheadDebounceInterval)}change=new p.B;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(j){switch(j.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":"rtl"===this._horizontalOrientation?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":"rtl"===this._horizontalOrientation?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if("*"===j.key){this._expandAllItemsAtCurrentItemLevel();break}return void this._typeahead?.handleKey(j)}this._typeahead?.reset(),j.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(j,Z={}){Z.emitChangeEvent??=!0;let ee="number"==typeof j?j:this._items.findIndex($=>this._trackByFn($)===this._trackByFn(j));if(ee<0||ee>=this._items.length)return;const V=this._items[ee];if(null!==this._activeItem&&this._trackByFn(V)===this._trackByFn(this._activeItem))return;const Q=this._activeItem;this._activeItem=V??null,this._activeItemIndex=ee,this._typeahead?.setCurrentSelectedItemIndex(ee),this._activeItem?.focus(),Q?.unfocus(),Z.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(j){const Z=this._activeItem;if(!Z)return;const ee=j.findIndex(V=>this._trackByFn(V)===this._trackByFn(Z));ee>-1&&ee!==this._activeItemIndex&&(this._activeItemIndex=ee,this._typeahead?.setCurrentSelectedItemIndex(ee))}_setTypeAhead(j){this._typeahead=new h.i(this._items,{debounceInterval:"number"==typeof j?j:void 0,skipPredicate:Z=>this._skipPredicateFn(Z)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(Z=>{this.focusItem(Z)})}_findNextAvailableItemIndex(j){for(let Z=j+1;Z=0;Z--)if(!this._skipPredicateFn(this._items[Z]))return Z;return j}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{const j=this._activeItem.getParent();if(!j||this._skipPredicateFn(j))return;this.focusItem(j)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?(0,d.x)(this._activeItem.getChildren()).pipe((0,A.s)(1)).subscribe(j=>{const Z=j.find(ee=>!this._skipPredicateFn(ee));Z&&this.focusItem(Z)}):this._activeItem.expand())}_isCurrentItemExpanded(){return!!this._activeItem&&("boolean"==typeof this._activeItem.isExpanded?this._activeItem.isExpanded:this._activeItem.isExpanded())}_isItemDisabled(j){return"boolean"==typeof j.isDisabled?j.isDisabled:j.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;const j=this._activeItem.getParent();let Z;Z=j?(0,d.x)(j.getChildren()):(0,e.of)(this._items.filter(ee=>null===ee.getParent())),Z.pipe((0,A.s)(1)).subscribe(ee=>{for(const V of ee)V.expand()})}_activateCurrentItem(){this._activeItem?.activate()}}const F=new i.nKC("tree-key-manager",{providedIn:"root",factory:function f(){return(K,j)=>new w(K,j)}})},72279(ke,q,l){"use strict";l.d(q,{kZ:()=>u,s3:()=>Oe,NL:()=>U,Dc:()=>ve,xn:()=>fe,Sz:()=>P,a$:()=>_,aI:()=>ce,Hy:()=>Re,XO:()=>m});var i=l(83869),g=l(74402),p=l(21413),D=l(84412),o=l(7673),e=l(84572),A=l(983),h=l(28793),d=l(96697),w=l(5964),f=l(56977),F=l(99172),M=l(88141),K=l(25558),j=l(96354),Z=l(46649),ee=l(39974);function V(oe,Se){return(0,ee.N)((0,Z.S)(oe,Se,arguments.length>=2,!1,!0))}var Q=l(70274),$=l(23294),ie=l(73664),_e=l(2615),ye=l(17705),se=l(4125),pe=l(61577),Ee=l(14117),L=l(8045);class t{dataNodes;expansionModel=new i.C(!0);trackBy;getLevel;isExpandable;getChildren;toggle(Se){this.expansionModel.toggle(this._trackByValue(Se))}expand(Se){this.expansionModel.select(this._trackByValue(Se))}collapse(Se){this.expansionModel.deselect(this._trackByValue(Se))}isExpanded(Se){return this.expansionModel.isSelected(this._trackByValue(Se))}toggleDescendants(Se){this.expansionModel.isSelected(this._trackByValue(Se))?this.collapseDescendants(Se):this.expandDescendants(Se)}collapseAll(){this.expansionModel.clear()}expandDescendants(Se){let be=[Se];be.push(...this.getDescendants(Se)),this.expansionModel.select(...be.map(nt=>this._trackByValue(nt)))}collapseDescendants(Se){let be=[Se];be.push(...this.getDescendants(Se)),this.expansionModel.deselect(...be.map(nt=>this._trackByValue(nt)))}_trackByValue(Se){return this.trackBy?this.trackBy(Se):Se}}class m extends t{getChildren;options;constructor(Se,be){super(),this.getChildren=Se,this.options=be,this.options&&(this.trackBy=this.options.trackBy),this.options?.isExpandable&&(this.isExpandable=this.options.isExpandable)}expandAll(){this.expansionModel.clear();const Se=this.dataNodes.reduce((be,nt)=>[...be,...this.getDescendants(nt),nt],[]);this.expansionModel.select(...Se.map(be=>this._trackByValue(be)))}getDescendants(Se){const be=[];return this._getDescendants(be,Se),be.splice(1)}_getDescendants(Se,be){Se.push(be);const nt=this.getChildren(be);Array.isArray(nt)?nt.forEach($e=>this._getDescendants(Se,$e)):(0,g.A)(nt)&&nt.pipe((0,d.s)(1),(0,w.p)(Boolean)).subscribe($e=>{for(const dt of $e)this._getDescendants(Se,dt)})}}const u=new _e.nKC("CDK_TREE_NODE_OUTLET_NODE");let _=(()=>{class oe{viewContainer=(0,_e.WQX)(ie.c1b);_node=(0,_e.WQX)(u,{optional:!0});constructor(){}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodeOutlet",""]]})}return oe})();class T{$implicit;level;index;count;constructor(Se){this.$implicit=Se}}let P=(()=>{class oe{template=(0,_e.WQX)(ie.C4Q);when;constructor(){}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return oe})();function Y(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}let U=(()=>{class oe{_differs=(0,_e.WQX)(ye._q3);_changeDetectorRef=(0,_e.WQX)(ye.gRc);_elementRef=(0,_e.WQX)(ie.aKT);_dir=(0,_e.WQX)(pe.dS);_onDestroy=new p.B;_dataDiffer;_defaultNodeDef;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(be){this._dataSource!==be&&this._switchDataSource(be)}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new D.t({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new D.t([]);_nodeType=new D.t(null);_nodes=new D.t(new Map);_keyManagerNodes=new D.t([]);_keyManagerFactory=(0,_e.WQX)(se.Z2);_keyManager;_viewInit=!1;constructor(){}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this._nodes.complete(),this._keyManagerNodes.complete(),this._nodeType.complete(),this._flattenedNodes.complete(),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),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){const be=this._nodeDefs.filter(nt=>!nt.when);this._defaultNodeDef=be[0]}_setNodeTypeIfUnset(be){null===this._nodeType.value&&this._nodeType.next(be)}_switchDataSource(be){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),be||this._nodeOutlet.viewContainer.clear(),this._dataSource=be,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new i.C(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let be;(0,Ee.y)(this._dataSource)?be=this._dataSource.connect(this):(0,g.A)(this._dataSource)?be=this._dataSource:Array.isArray(this._dataSource)&&(be=(0,o.of)(this._dataSource)),be&&(this._dataSubscription=this._getRenderData(be).pipe((0,f.Q)(this._onDestroy)).subscribe(nt=>{this._renderDataChanges(nt)}))}_getRenderData(be){const nt=this._getExpansionModel();return(0,e.z)([be,this._nodeType,nt.changed.pipe((0,F.Z)(null),(0,M.M)($e=>{this._emitExpansionChanges($e)}))]).pipe((0,K.n)(([$e,dt])=>null===dt?(0,o.of)({renderNodes:$e,flattenedNodes:null,nodeType:dt}):this._computeRenderingData($e,dt).pipe((0,j.T)(yt=>({...yt,nodeType:dt})))))}_renderDataChanges(be){null!==be.nodeType?(this._updateCachedData(be.flattenedNodes),this.renderNodeChanges(be.renderNodes),this._updateKeyManagerItems(be.flattenedNodes)):this.renderNodeChanges(be.renderNodes)}_emitExpansionChanges(be){if(!be)return;const nt=this._nodes.value;for(const $e of be.added)nt.get($e)?._emitExpansionState(!0);for(const $e of be.removed)nt.get($e)?._emitExpansionState(!1)}_initializeKeyManager(){const be=(0,e.z)([this._keyManagerNodes,this._nodes]).pipe((0,j.T)(([$e,dt])=>$e.reduce((yt,Et)=>{const rt=dt.get(this._getExpansionKey(Et));return rt&&yt.push(rt),yt},[])));this._keyManager=this._keyManagerFactory(be,{trackBy:$e=>this._getExpansionKey($e.data),skipPredicate:$e=>!!$e.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value})}_initializeDataDiffer(){const be=this.trackBy??((nt,$e)=>this._getExpansionKey($e));this._dataDiffer=this._differs.find([]).create(be)}_checkTreeControlUsage(){}renderNodeChanges(be,nt=this._dataDiffer,$e=this._nodeOutlet.viewContainer,dt){const yt=nt.diff(be);!yt&&!this._viewInit||(yt?.forEachOperation((Et,rt,Mn)=>{if(null==Et.previousIndex)this.insertNode(be[Mn],Mn,$e,dt);else if(null==Mn)$e.remove(rt);else{const qt=$e.get(rt);$e.move(qt,Mn)}}),yt?.forEachIdentityChange(Et=>{const rt=Et.item;null!=Et.currentIndex&&($e.get(Et.currentIndex).context.$implicit=rt)}),dt?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(be,nt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(dt=>dt.when&&dt.when(nt,be))||this._defaultNodeDef}insertNode(be,nt,$e,dt){const yt=this._getLevelAccessor(),Et=this._getNodeDef(be,nt),rt=this._getExpansionKey(be),Mn=new T(be);Mn.index=nt,dt??=this._parents.get(rt)??void 0,Mn.level=yt?yt(be):void 0!==dt&&this._levels.has(this._getExpansionKey(dt))?this._levels.get(this._getExpansionKey(dt))+1:0,this._levels.set(rt,Mn.level),($e||this._nodeOutlet.viewContainer).createEmbeddedView(Et.template,Mn,nt),fe.mostRecentTreeNode&&(fe.mostRecentTreeNode.data=be)}isExpanded(be){return!(!this.treeControl?.isExpanded(be)&&!this._expansionModel?.isSelected(this._getExpansionKey(be)))}toggle(be){this.treeControl?this.treeControl.toggle(be):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(be))}expand(be){this.treeControl?this.treeControl.expand(be):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(be))}collapse(be){this.treeControl?this.treeControl.collapse(be):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(be))}toggleDescendants(be){this.treeControl?this.treeControl.toggleDescendants(be):this._expansionModel&&(this.isExpanded(be)?this.collapseDescendants(be):this.expandDescendants(be))}expandDescendants(be){if(this.treeControl)this.treeControl.expandDescendants(be);else if(this._expansionModel){const nt=this._expansionModel;nt.select(this._getExpansionKey(be)),this._getDescendants(be).pipe((0,d.s)(1),(0,f.Q)(this._onDestroy)).subscribe($e=>{nt.select(...$e.map(dt=>this._getExpansionKey(dt)))})}}collapseDescendants(be){if(this.treeControl)this.treeControl.collapseDescendants(be);else if(this._expansionModel){const nt=this._expansionModel;nt.deselect(this._getExpansionKey(be)),this._getDescendants(be).pipe((0,d.s)(1),(0,f.Q)(this._onDestroy)).subscribe($e=>{nt.deselect(...$e.map(dt=>this._getExpansionKey(dt)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(be=>this._expansionModel?.select(...be))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(be=>this._expansionModel?.deselect(...be))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(be){const nt=this._getLevelAccessor(),$e=this._expansionModel??this.treeControl?.expansionModel;if(!$e)return(0,o.of)([]);const dt=this._getExpansionKey(be),yt=$e.changed.pipe((0,K.n)(rt=>rt.added.includes(dt)?(0,o.of)(!0):rt.removed.includes(dt)?(0,o.of)(!1):A.w),(0,F.Z)(this.isExpanded(be)));if(nt)return(0,e.z)([yt,this._flattenedNodes]).pipe((0,j.T)(([rt,Mn])=>rt?this._findChildrenByLevel(nt,Mn,be,1):[]));const Et=this._getChildrenAccessor();if(Et)return(0,L.x)(Et(be)??[]);throw Y()}_findChildrenByLevel(be,nt,$e,dt){const yt=this._getExpansionKey($e),Et=nt.findIndex(S=>this._getExpansionKey(S)===yt),rt=be($e),Mn=rt+dt,qt=[];for(let S=Et+1;Sthis._getExpansionKey(dt)===$e)+1}_getNodeParent(be){const nt=this._parents.get(this._getExpansionKey(be.data));return nt&&this._nodes.value.get(this._getExpansionKey(nt))}_getNodeChildren(be){return this._getDirectChildren(be.data).pipe((0,j.T)(nt=>nt.reduce(($e,dt)=>{const yt=this._nodes.value.get(this._getExpansionKey(dt));return yt&&$e.push(yt),$e},[])))}_sendKeydownToKeyManager(be){if(be.target===this._elementRef.nativeElement)this._keyManager.onKeydown(be);else{const nt=this._nodes.getValue();for(const[,$e]of nt)if(be.target===$e._elementRef.nativeElement){this._keyManager.onKeydown(be);break}}}_getDescendants(be){if(this.treeControl)return(0,o.of)(this.treeControl.getDescendants(be));if(this.levelAccessor){const nt=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,be,1/0);return(0,o.of)(nt)}if(this.childrenAccessor)return this._getAllChildrenRecursively(be).pipe(V((nt,$e)=>(nt.push(...$e),nt),[]));throw Y()}_getAllChildrenRecursively(be){return this.childrenAccessor?(0,L.x)(this.childrenAccessor(be)).pipe((0,d.s)(1),(0,K.n)(nt=>{for(const $e of nt)this._parents.set(this._getExpansionKey($e),be);return(0,o.of)(...nt).pipe((0,Q.H)($e=>(0,h.x)((0,o.of)([$e]),this._getAllChildrenRecursively($e))))})):(0,o.of)([])}_getExpansionKey(be){return this.expansionKey?.(be)??be}_getAriaSet(be){const nt=this._getExpansionKey(be),$e=this._parents.get(nt),dt=$e?this._getExpansionKey($e):null;return this._ariaSets.get(dt)??[be]}_findParentForNode(be,nt,$e){if(!$e.length)return null;const dt=this._levels.get(this._getExpansionKey(be))??0;for(let yt=nt-1;yt>=0;yt--){const Et=$e[yt];if((this._levels.get(this._getExpansionKey(Et))??0){const yt=this._getExpansionKey(dt);this._parents.has(yt)||this._parents.set(yt,null),this._levels.set(yt,nt);const Et=(0,L.x)($e(dt));return(0,h.x)((0,o.of)([dt]),Et.pipe((0,d.s)(1),(0,M.M)(rt=>{this._ariaSets.set(yt,[...rt??[]]);for(const Mn of rt??[]){const qt=this._getExpansionKey(Mn);this._parents.set(qt,dt),this._levels.set(qt,nt+1)}}),(0,K.n)(rt=>rt?this._flattenNestedNodesWithExpansion(rt,nt+1).pipe((0,j.T)(Mn=>this.isExpanded(dt)?Mn:[])):(0,o.of)([]))))}),V((dt,yt)=>(dt.push(...yt),dt),[])):(0,o.of)([...be])}_computeRenderingData(be,nt){if(this.childrenAccessor&&"flat"===nt)return this._clearPreviousCache(),this._ariaSets.set(null,[...be]),this._flattenNestedNodesWithExpansion(be).pipe((0,j.T)($e=>({renderNodes:$e,flattenedNodes:$e})));if(this.levelAccessor&&"nested"===nt){const $e=this.levelAccessor;return(0,o.of)(be.filter(dt=>0===$e(dt))).pipe((0,j.T)(dt=>({renderNodes:dt,flattenedNodes:be})),(0,M.M)(({flattenedNodes:dt})=>{this._calculateParents(dt)}))}return"flat"===nt?(0,o.of)({renderNodes:be,flattenedNodes:be}).pipe((0,M.M)(({flattenedNodes:$e})=>{this._calculateParents($e)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...be]),this._flattenNestedNodesWithExpansion(be).pipe((0,j.T)($e=>({renderNodes:be,flattenedNodes:$e}))))}_updateCachedData(be){this._flattenedNodes.next(be)}_updateKeyManagerItems(be){this._keyManagerNodes.next(be)}_calculateParents(be){const nt=this._getLevelAccessor();if(nt){this._clearPreviousCache();for(let $e=0;$e{nt.push(this._getExpansionKey(dt.data)),$e.push(this._getDescendants(dt.data))}),$e.length>0?(0,e.z)($e).pipe((0,d.s)(1),(0,f.Q)(this._onDestroy)).subscribe(dt=>{dt.forEach(yt=>yt.forEach(Et=>nt.push(this._getExpansionKey(Et)))),be(nt)}):be(nt)}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear()}static \u0275fac=function(nt){return new(nt||oe)};static \u0275cmp=ie.VBU({type:oe,selectors:[["cdk-tree"]],contentQueries:function(nt,$e,dt){if(1&nt&&ie.wni(dt,P,5),2&nt){let yt;ie.mGM(yt=ie.lsd())&&($e._nodeDefs=yt)}},viewQuery:function(nt,$e){if(1&nt&&ie.GBs(_,7),2&nt){let dt;ie.mGM(dt=ie.lsd())&&($e._nodeOutlet=dt.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(nt,$e){1&nt&&ie.bIt("keydown",function(yt){return $e._sendKeydownToKeyManager(yt)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(nt,$e){1&nt&&ie.eu8(0,0)},dependencies:[_],encapsulation:2})}return oe})(),fe=(()=>{class oe{_elementRef=(0,_e.WQX)(ie.aKT);_tree=(0,_e.WQX)(U);_tabindex=-1;_type="flat";get role(){return"treeitem"}set role(be){}get isExpandable(){return this._isExpandable()}set isExpandable(be){this._inputIsExpandable=be,(!this.data||this._isExpandable)&&this._inputIsExpandable&&(this._inputIsExpanded?this.expand():!1===this._inputIsExpanded&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(be){this._inputIsExpanded=be,be?this.expand():this.collapse()}isDisabled;typeaheadLabel;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new ie.bkB;expandedChange=new ie.bkB;static mostRecentTreeNode=null;_destroyed=new p.B;_dataChanges=new p.B;_inputIsExpandable=!1;_inputIsExpanded=void 0;_shouldFocus=!0;_parentNodeAriaLevel;get data(){return this._data}set data(be){be!==this._data&&(this._data=be,this._dataChanges.next())}_data;get isLeafNode(){return void 0!==this._tree.treeControl?.isExpandable&&!this._tree.treeControl.isExpandable(this._data)||void 0===this._tree.treeControl?.isExpandable&&0===this._tree.treeControl?.getDescendants(this._data).length}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=(0,_e.WQX)(ye.gRc);constructor(){oe.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=function re(oe){let Se=oe.parentElement;for(;Se&&!he(Se);)Se=Se.parentElement;return Se?Se.classList.contains("cdk-nested-tree-node")?(0,ye.Udg)(Se.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe((0,j.T)(()=>this.isExpanded),(0,$.F)(),(0,f.Q)(this._destroyed)).pipe((0,f.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this)}ngOnDestroy(){oe.mostRecentTreeNode===this&&(oe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(be){this.expandedChange.emit(be)}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(nt,$e){1&nt&&ie.bIt("click",function(){return $e._setActiveItem()})("focus",function(){return $e._focusItem()}),2&nt&&(ie.Avn("tabIndex",$e._tabindex),ie.BMQ("aria-expanded",$e._getAriaExpanded())("aria-level",$e.level+1)("aria-posinset",$e._getPositionInSet())("aria-setsize",$e._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",ye.L39],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",ye.L39],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return oe})();function he(oe){const Se=oe.classList;return!(!Se?.contains("cdk-nested-tree-node")&&!Se?.contains("cdk-tree"))}let Oe=(()=>{class oe extends fe{_type="nested";_differs=(0,_e.WQX)(ye._q3);_dataDiffer;_children;nodeOutlet;constructor(){super()}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree._getDirectChildren(this.data).pipe((0,f.Q)(this._destroyed)).subscribe(be=>this.updateChildrenNodes(be)),this.nodeOutlet.changes.pipe((0,f.Q)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(be){const nt=this._getNodeOutlet();be&&(this._children=be),nt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,nt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const be=this._getNodeOutlet();be&&(be.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const be=this.nodeOutlet;return be&&be.find(nt=>!nt._node||nt._node===this)}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(nt,$e,dt){if(1&nt&&ie.wni(dt,_,5),2&nt){let yt;ie.mGM(yt=ie.lsd())&&($e.nodeOutlet=yt)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],features:[ie.Jv_([{provide:fe,useExisting:oe},{provide:u,useExisting:oe}]),ie.Vt3]})}return oe})();const ge=/([A-Za-z%]+)$/;let ce=(()=>{class oe{_treeNode=(0,_e.WQX)(fe);_tree=(0,_e.WQX)(U);_element=(0,_e.WQX)(ie.aKT);_dir=(0,_e.WQX)(pe.dS,{optional:!0});_currentPadding;_destroyed=new p.B;indentUnits="px";get level(){return this._level}set level(be){this._setLevelInput(be)}_level;get indent(){return this._indent}set indent(be){this._setIndentInput(be)}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe((0,f.Q)(this._destroyed)).subscribe(()=>this._setPadding(!0)),this._treeNode._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const be=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,nt=null==this._level?be:this._level;return"number"==typeof nt?`${nt*this._indent}${this.indentUnits}`:null}_setPadding(be=!1){const nt=this._paddingIndent();if(nt!==this._currentPadding||be){const $e=this._element.nativeElement,dt=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",yt="paddingLeft"===dt?"paddingRight":"paddingLeft";$e.style[dt]=nt||"",$e.style[yt]="",this._currentPadding=nt}}_setLevelInput(be){this._level=isNaN(be)?null:be,this._setPadding()}_setIndentInput(be){let nt=be,$e="px";if("string"==typeof be){const dt=be.split(ge);nt=dt[0],$e=dt[1]||$e}this.indentUnits=$e,this._indent=(0,ye.Udg)(nt),this._setPadding()}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",ye.Udg],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return oe})(),Re=(()=>{class oe{_tree=(0,_e.WQX)(U);_treeNode=(0,_e.WQX)(fe);recursive=!1;constructor(){}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(nt,$e){1&nt&&ie.bIt("click",function(yt){return $e._toggle(),yt.stopPropagation()})("keydown.Enter",function(yt){return $e._toggle(),yt.preventDefault()})("keydown.Space",function(yt){return $e._toggle(),yt.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",ye.L39]}})}return oe})(),ve=(()=>{class oe{static \u0275fac=function(nt){return new(nt||oe)};static \u0275mod=ie.$C({type:oe});static \u0275inj=_e.G2t({})}return oe})()},59096(ke,q,l){"use strict";l.d(q,{i:()=>h});var i=l(21413),g=l(70152),p=l(5964),D=l(96354),o=l(88141),e=l(10438);class h{_letterKeyStream=new i.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new i.B;selectedItem=this._selectedItem;constructor(w,f){const F="number"==typeof f?.debounceInterval?f.debounceInterval:200;f?.skipPredicate&&(this._skipPredicateFn=f.skipPredicate),this.setItems(w),this._setupKeyHandler(F)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(w){this._selectedItemIndex=w}setItems(w){this._items=w}handleKey(w){const f=w.keyCode;w.key&&1===w.key.length?this._letterKeyStream.next(w.key.toLocaleUpperCase()):(f>=e.A&&f<=e.Z||f>=e.f2&&f<=e.bn)&&this._letterKeyStream.next(String.fromCharCode(f))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(w){this._letterKeyStream.pipe((0,o.M)(f=>this._pressedLetters.push(f)),(0,g.B)(w),(0,p.p)(()=>this._pressedLetters.length>0),(0,D.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(f=>{for(let F=1;Fg});var i=l(2615);let g=(()=>{class p{_listeners=[];notify(o,e){for(let A of this._listeners)A(o,e)}listen(o){return this._listeners.push(o),()=>{this._listeners=this._listeners.filter(e=>o!==e)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(e){return new(e||p)};static \u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},60177(ke,q,l){"use strict";l.d(q,{AJ:()=>ye,UE:()=>pe,Vy:()=>Ee,Xr:()=>t});var ie=l(2615);const ye="browser";function pe(dn){return dn===ye}function Ee(dn){return"server"===dn}let t=(()=>{class dn{static \u0275prov=(0,ie.jDH)({token:dn,providedIn:"root",factory:()=>new s((0,ie.WQX)(ie.qQL),window)})}return dn})();class s{document;window;offset=()=>[0,0];constructor(Ln,Zn){this.document=Ln,this.window=Zn}setOffset(Ln){this.offset=Array.isArray(Ln)?()=>Ln:Ln}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Ln,Zn){this.window.scrollTo({...Zn,left:Ln[0],top:Ln[1]})}scrollToAnchor(Ln,Zn){const hi=function m(dn,Ln){const Zn=dn.getElementById(Ln)||dn.getElementsByName(Ln)[0];if(Zn)return Zn;if("function"==typeof dn.createTreeWalker&&dn.body&&"function"==typeof dn.body.attachShadow){const hi=dn.createTreeWalker(dn.body,NodeFilter.SHOW_ELEMENT);let Gn=hi.currentNode;for(;Gn;){const Jn=Gn.shadowRoot;if(Jn){const Bi=Jn.getElementById(Ln)||Jn.querySelector(`[name="${Ln}"]`);if(Bi)return Bi}Gn=hi.nextNode()}}return null}(this.document,Ln);hi&&(this.scrollToElement(hi,Zn),hi.focus())}setHistoryScrollRestoration(Ln){try{this.window.history.scrollRestoration=Ln}catch{console.warn((0,ie.OsK)(2400,!1))}}scrollToElement(Ln,Zn){const hi=Ln.getBoundingClientRect(),Gn=hi.left+this.window.pageXOffset,Jn=hi.top+this.window.pageYOffset,Bi=this.offset();this.window.scrollTo({...Zn,left:Gn-Bi[0],top:Jn-Bi[1]})}}},72200(ke,q,l){"use strict";l.d(q,{B3:()=>en,GH:()=>ci,Jj:()=>Kn,MD:()=>Ma,P9:()=>Ci,PV:()=>aa,Pc:()=>sa,QX:()=>un,Sq:()=>kt,T3:()=>Nn,TG:()=>Jn,YU:()=>wn,bT:()=>Ge,e1:()=>oi,fG:()=>Ii,fw:()=>d,lG:()=>_a,ux:()=>$n,vh:()=>Ln});var D=l(17705),o=l(2615),e=l(73664),A=l(59295),h=l(57303);let d=(()=>{class lt extends h.hb{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(ht,Gt){super(),this._platformLocation=ht,null!=Gt&&(this._baseHref=Gt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ht){this._removeListenerFns.push(this._platformLocation.onPopState(ht),this._platformLocation.onHashChange(ht))}getBaseHref(){return this._baseHref}path(ht=!1){const Gt=this._platformLocation.hash??"#";return Gt.length>0?Gt.substring(1):Gt}prepareExternalUrl(ht){const Gt=(0,h.om)(this._baseHref,ht);return Gt.length>0?"#"+Gt:Gt}pushState(ht,Gt,cn,si){const pi=this.prepareExternalUrl(cn+(0,h.Q)(si))||this._platformLocation.pathname;this._platformLocation.pushState(ht,Gt,pi)}replaceState(ht,Gt,cn,si){const pi=this.prepareExternalUrl(cn+(0,h.Q)(si))||this._platformLocation.pathname;this._platformLocation.replaceState(ht,Gt,pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ht=0){this._platformLocation.historyGo?.(ht)}static \u0275fac=function(Gt){return new(Gt||lt)(o.KVO(h.Vw),o.KVO(h.kB,8))};static \u0275prov=o.jDH({token:lt,factory:lt.\u0275fac})}return lt})();var f=function(lt){return lt[lt.Decimal=0]="Decimal",lt[lt.Percent=1]="Percent",lt[lt.Currency=2]="Currency",lt[lt.Scientific=3]="Scientific",lt}(f||{}),M=function(lt){return lt[lt.Format=0]="Format",lt[lt.Standalone=1]="Standalone",lt}(M||{}),K=function(lt){return lt[lt.Narrow=0]="Narrow",lt[lt.Abbreviated=1]="Abbreviated",lt[lt.Wide=2]="Wide",lt[lt.Short=3]="Short",lt}(K||{}),j=function(lt){return lt[lt.Short=0]="Short",lt[lt.Medium=1]="Medium",lt[lt.Long=2]="Long",lt[lt.Full=3]="Full",lt}(j||{});function pe(lt,an){return R((0,e.kBR)(lt)[e.NSC.DateFormat],an)}function Ee(lt,an){return R((0,e.kBR)(lt)[e.NSC.TimeFormat],an)}function L(lt,an){return R((0,e.kBR)(lt)[e.NSC.DateTimeFormat],an)}function t(lt,an){const ht=(0,e.kBR)(lt),Gt=ht[e.NSC.NumberSymbols][an];if(typeof Gt>"u"){if(12===an)return ht[e.NSC.NumberSymbols][0];if(13===an)return ht[e.NSC.NumberSymbols][1]}return Gt}function C(lt){if(!lt[e.NSC.ExtraData])throw new o.buA(2303,!1)}function R(lt,an){for(let ht=an;ht>-1;ht--)if(typeof lt[ht]<"u")return lt[ht];throw new o.buA(2304,!1)}function U(lt){const[an,ht]=lt.split(":");return{hours:+an,minutes:+ht}}const Oe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ge={},ce=/((?:[^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]*)/;function Me(lt,an,ht,Gt){let cn=function _n(lt){if(Fe(lt))return lt;if("number"==typeof lt&&!isNaN(lt))return new Date(lt);if("string"==typeof lt){if(lt=lt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(lt)){const[cn,si=1,pi=1]=lt.split("-").map(Oi=>+Oi);return Se(cn,si-1,pi)}const ht=parseFloat(lt);if(!isNaN(lt-ht))return new Date(ht);let Gt;if(Gt=lt.match(Oe))return function tt(lt){const an=new Date(0);let ht=0,Gt=0;const cn=lt[8]?an.setUTCFullYear:an.setFullYear,si=lt[8]?an.setUTCHours:an.setHours;lt[9]&&(ht=Number(lt[9]+lt[10]),Gt=Number(lt[9]+lt[11])),cn.call(an,Number(lt[1]),Number(lt[2])-1,Number(lt[3]));const pi=Number(lt[4]||0)-ht,Oi=Number(lt[5]||0)-Gt,la=Number(lt[6]||0),mn=Math.floor(1e3*parseFloat("0."+(lt[7]||0)));return si.call(an,pi,Oi,la,mn),an}(Gt)}const an=new Date(lt);if(!Fe(an))throw new o.buA(2311,!1);return an}(lt);(function ve(lt){if(lt.length>256)throw new o.buA(2300,!1)})(an),an=be(ht,an)||an;let Oi,pi=[];for(;an;){if(Oi=ce.exec(an),!Oi){pi.push(an);break}{pi=pi.concat(Oi.slice(1));const li=pi.pop();if(!li)break;an=li}}let la=cn.getTimezoneOffset();Gt&&(la=Vt(Gt,la),cn=function En(lt,an){const cn=lt.getTimezoneOffset();return function hn(lt,an){return(lt=new Date(lt.getTime())).setMinutes(lt.getMinutes()+an),lt}(lt,-1*(Vt(an,cn)-cn))}(cn,Gt));let mn="";return pi.forEach(li=>{const Ce=function tn(lt){if(et[lt])return et[lt];let an;switch(lt){case"G":case"GG":case"GGG":an=rt(3,K.Abbreviated);break;case"GGGG":an=rt(3,K.Wide);break;case"GGGGG":an=rt(3,K.Narrow);break;case"y":an=yt(0,1,0,!1,!0);break;case"yy":an=yt(0,2,0,!0,!0);break;case"yyy":an=yt(0,3,0,!1,!0);break;case"yyyy":an=yt(0,4,0,!1,!0);break;case"Y":an=Le(1);break;case"YY":an=Le(2,!0);break;case"YYY":an=Le(3);break;case"YYYY":an=Le(4);break;case"M":case"L":an=yt(1,1,1);break;case"MM":case"LL":an=yt(1,2,1);break;case"MMM":an=rt(2,K.Abbreviated);break;case"MMMM":an=rt(2,K.Wide);break;case"MMMMM":an=rt(2,K.Narrow);break;case"LLL":an=rt(2,K.Abbreviated,M.Standalone);break;case"LLLL":an=rt(2,K.Wide,M.Standalone);break;case"LLLLL":an=rt(2,K.Narrow,M.Standalone);break;case"w":an=me(1);break;case"ww":an=me(2);break;case"W":an=me(1,!0);break;case"d":an=yt(2,1);break;case"dd":an=yt(2,2);break;case"c":case"cc":an=yt(7,1);break;case"ccc":an=rt(1,K.Abbreviated,M.Standalone);break;case"cccc":an=rt(1,K.Wide,M.Standalone);break;case"ccccc":an=rt(1,K.Narrow,M.Standalone);break;case"cccccc":an=rt(1,K.Short,M.Standalone);break;case"E":case"EE":case"EEE":an=rt(1,K.Abbreviated);break;case"EEEE":an=rt(1,K.Wide);break;case"EEEEE":an=rt(1,K.Narrow);break;case"EEEEEE":an=rt(1,K.Short);break;case"a":case"aa":case"aaa":an=rt(0,K.Abbreviated);break;case"aaaa":an=rt(0,K.Wide);break;case"aaaaa":an=rt(0,K.Narrow);break;case"b":case"bb":case"bbb":an=rt(0,K.Abbreviated,M.Standalone,!0);break;case"bbbb":an=rt(0,K.Wide,M.Standalone,!0);break;case"bbbbb":an=rt(0,K.Narrow,M.Standalone,!0);break;case"B":case"BB":case"BBB":an=rt(0,K.Abbreviated,M.Format,!0);break;case"BBBB":an=rt(0,K.Wide,M.Format,!0);break;case"BBBBB":an=rt(0,K.Narrow,M.Format,!0);break;case"h":an=yt(3,1,-12);break;case"hh":an=yt(3,2,-12);break;case"H":an=yt(3,1);break;case"HH":an=yt(3,2);break;case"m":an=yt(4,1);break;case"mm":an=yt(4,2);break;case"s":an=yt(5,1);break;case"ss":an=yt(5,2);break;case"S":an=yt(6,1);break;case"SS":an=yt(6,2);break;case"SSS":an=yt(6,3);break;case"Z":case"ZZ":case"ZZZ":an=qt(0);break;case"ZZZZZ":an=qt(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":an=qt(1);break;case"OOOO":case"ZZZZ":case"zzzz":an=qt(2);break;default:return null}return et[lt]=an,an}(li);mn+=Ce?Ce(cn,ht,la):"''"===li?"'":li.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),mn}function Se(lt,an,ht){const Gt=new Date(0);return Gt.setFullYear(lt,an,ht),Gt.setHours(0,0,0),Gt}function be(lt,an){const ht=function V(lt){return(0,e.kBR)(lt)[e.NSC.LocaleId]}(lt);if(ge[ht]??={},ge[ht][an])return ge[ht][an];let Gt="";switch(an){case"shortDate":Gt=pe(lt,j.Short);break;case"mediumDate":Gt=pe(lt,j.Medium);break;case"longDate":Gt=pe(lt,j.Long);break;case"fullDate":Gt=pe(lt,j.Full);break;case"shortTime":Gt=Ee(lt,j.Short);break;case"mediumTime":Gt=Ee(lt,j.Medium);break;case"longTime":Gt=Ee(lt,j.Long);break;case"fullTime":Gt=Ee(lt,j.Full);break;case"short":const cn=be(lt,"shortTime"),si=be(lt,"shortDate");Gt=nt(L(lt,j.Short),[cn,si]);break;case"medium":const pi=be(lt,"mediumTime"),Oi=be(lt,"mediumDate");Gt=nt(L(lt,j.Medium),[pi,Oi]);break;case"long":const la=be(lt,"longTime"),mn=be(lt,"longDate");Gt=nt(L(lt,j.Long),[la,mn]);break;case"full":const li=be(lt,"fullTime"),Ce=be(lt,"fullDate");Gt=nt(L(lt,j.Full),[li,Ce])}return Gt&&(ge[ht][an]=Gt),Gt}function nt(lt,an){return an&&(lt=lt.replace(/\{([^}]+)}/g,function(ht,Gt){return null!=an&&Gt in an?an[Gt]:ht})),lt}function $e(lt,an,ht="-",Gt,cn){let si="";(lt<0||cn&<<=0)&&(cn?lt=1-lt:(lt=-lt,si=ht));let pi=String(lt);for(;pi.length0||Oi>-ht)&&(Oi+=ht),3===lt)0===Oi&&-12===ht&&(Oi=12);else if(6===lt)return function dt(lt,an){return $e(lt,3).substring(0,an)}(Oi,an);const la=t(pi,5);return $e(Oi,an,la,Gt,cn)}}function rt(lt,an,ht=M.Format,Gt=!1){return function(cn,si){return function Mn(lt,an,ht,Gt,cn,si){switch(ht){case 2:return function ie(lt,an,ht){const Gt=(0,e.kBR)(lt),si=R([Gt[e.NSC.MonthsFormat],Gt[e.NSC.MonthsStandalone]],an);return R(si,ht)}(an,cn,Gt)[lt.getMonth()];case 1:return function $(lt,an,ht){const Gt=(0,e.kBR)(lt),si=R([Gt[e.NSC.DaysFormat],Gt[e.NSC.DaysStandalone]],an);return R(si,ht)}(an,cn,Gt)[lt.getDay()];case 0:const pi=lt.getHours(),Oi=lt.getMinutes();if(si){const mn=function a(lt){const an=(0,e.kBR)(lt);return C(an),(an[e.NSC.ExtraData][2]||[]).map(Gt=>"string"==typeof Gt?U(Gt):[U(Gt[0]),U(Gt[1])])}(an),li=function x(lt,an,ht){const Gt=(0,e.kBR)(lt);C(Gt);const si=R([Gt[e.NSC.ExtraData][0],Gt[e.NSC.ExtraData][1]],an)||[];return R(si,ht)||[]}(an,cn,Gt),Ce=mn.findIndex(xt=>{if(Array.isArray(xt)){const[vt,rn]=xt,Wn=pi>=vt.hours&&Oi>=vt.minutes,Yi=pi0?Math.floor(cn/60):Math.ceil(cn/60);switch(lt){case 0:return(cn>=0?"+":"")+$e(pi,2,si)+$e(Math.abs(cn%60),2,si);case 1:return"GMT"+(cn>=0?"+":"")+$e(pi,1,si);case 2:return"GMT"+(cn>=0?"+":"")+$e(pi,2,si)+":"+$e(Math.abs(cn%60),2,si);case 3:return 0===Gt?"Z":(cn>=0?"+":"")+$e(pi,2,si)+":"+$e(Math.abs(cn%60),2,si);default:throw new o.buA(2310,!1)}}}function ae(lt){const an=lt.getDay(),ht=0===an?-3:4-an;return Se(lt.getFullYear(),lt.getMonth(),lt.getDate()+ht)}function me(lt,an=!1){return function(ht,Gt){let cn;if(an){const si=new Date(ht.getFullYear(),ht.getMonth(),1).getDay()-1,pi=ht.getDate();cn=1+Math.floor((pi+si)/7)}else{const si=ae(ht),pi=function de(lt){const an=Se(lt,0,1).getDay();return Se(lt,0,1+(an<=4?4:11)-an)}(si.getFullYear()),Oi=si.getTime()-pi.getTime();cn=1+Math.round(Oi/6048e5)}return $e(cn,lt,t(Gt,5))}}function Le(lt,an=!1){return function(ht,Gt){return $e(ae(ht).getFullYear(),lt,t(Gt,5),an)}}const et={};function Vt(lt,an){lt=lt.replace(/:/g,"");const ht=Date.parse("Jan 01, 1970 00:00:00 "+lt)/6e4;return isNaN(ht)?an:ht}function Fe(lt){return lt instanceof Date&&!isNaN(lt.valueOf())}const Pe=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Lt(lt){const an=parseInt(lt);if(isNaN(an))throw new o.buA(2305,!1);return an}const mt=/\s+/,It=[];let wn=(()=>{class lt{_ngEl;_renderer;initialClasses=It;rawClass;stateMap=new Map;constructor(ht,Gt){this._ngEl=ht,this._renderer=Gt}set klass(ht){this.initialClasses=null!=ht?ht.trim().split(mt):It}set ngClass(ht){this.rawClass="string"==typeof ht?ht.trim().split(mt):ht}ngDoCheck(){for(const Gt of this.initialClasses)this._updateState(Gt,!0);const ht=this.rawClass;if(Array.isArray(ht)||ht instanceof Set)for(const Gt of ht)this._updateState(Gt,!0);else if(null!=ht)for(const Gt of Object.keys(ht))this._updateState(Gt,!!ht[Gt]);this._applyStateDiff()}_updateState(ht,Gt){const cn=this.stateMap.get(ht);void 0!==cn?(cn.enabled!==Gt&&(cn.changed=!0,cn.enabled=Gt),cn.touched=!0):this.stateMap.set(ht,{enabled:Gt,changed:!0,touched:!0})}_applyStateDiff(){for(const ht of this.stateMap){const Gt=ht[0],cn=ht[1];cn.changed?(this._toggleClass(Gt,cn.enabled),cn.changed=!1):cn.touched||(cn.enabled&&this._toggleClass(Gt,!1),this.stateMap.delete(Gt)),cn.touched=!1}}_toggleClass(ht,Gt){(ht=ht.trim()).length>0&&ht.split(mt).forEach(cn=>{Gt?this._renderer.addClass(this._ngEl.nativeElement,cn):this._renderer.removeClass(this._ngEl.nativeElement,cn)})}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.aKT),e.rXU(e.sFG))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return lt})();class Li{$implicit;ngForOf;index;count;constructor(an,ht,Gt,cn){this.$implicit=an,this.ngForOf=ht,this.index=Gt,this.count=cn}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 kt=(()=>{class lt{_viewContainer;_template;_differs;set ngForOf(ht){this._ngForOf=ht,this._ngForOfDirty=!0}set ngForTrackBy(ht){this._trackByFn=ht}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(ht,Gt,cn){this._viewContainer=ht,this._template=Gt,this._differs=cn}set ngForTemplate(ht){ht&&(this._template=ht)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ht=this._ngForOf;!this._differ&&ht&&(this._differ=this._differs.find(ht).create(this.ngForTrackBy))}if(this._differ){const ht=this._differ.diff(this._ngForOf);ht&&this._applyChanges(ht)}}_applyChanges(ht){const Gt=this._viewContainer;ht.forEachOperation((cn,si,pi)=>{if(null==cn.previousIndex)Gt.createEmbeddedView(this._template,new Li(cn.item,this._ngForOf,-1,-1),null===pi?void 0:pi);else if(null==pi)Gt.remove(null===si?void 0:si);else if(null!==si){const Oi=Gt.get(si);Gt.move(Oi,pi),Ot(Oi,cn)}});for(let cn=0,si=Gt.length;cn{Ot(Gt.get(cn.currentIndex),cn)})}static ngTemplateContextGuard(ht,Gt){return!0}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(D._q3))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return lt})();function Ot(lt,an){lt.context.$implicit=an.item}let Ge=(()=>{class lt{_viewContainer;_context=new Pt;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(ht,Gt){this._viewContainer=ht,this._thenTemplateRef=Gt}set ngIf(ht){this._context.$implicit=this._context.ngIf=ht,this._updateView()}set ngIfThen(ht){Yt(ht),this._thenTemplateRef=ht,this._thenViewRef=null,this._updateView()}set ngIfElse(ht){Yt(ht),this._elseTemplateRef=ht,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(ht,Gt){return!0}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return lt})();class Pt{$implicit=null;ngIf=null}function Yt(lt,an){if(lt&&!lt.createEmbeddedView)throw new o.buA(2020,!1)}class bn{_viewContainerRef;_templateRef;_created=!1;constructor(an,ht){this._viewContainerRef=an,this._templateRef=ht}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(an){an&&!this._created?this.create():!an&&this._created&&this.destroy()}}let $n=(()=>{class lt{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(ht){this._ngSwitch=ht,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ht){this._defaultViews.push(ht)}_matchCase(ht){const Gt=ht===this._ngSwitch;return this._lastCasesMatched||=Gt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Gt}_updateDefaultCases(ht){if(this._defaultViews.length>0&&ht!==this._defaultUsed){this._defaultUsed=ht;for(const Gt of this._defaultViews)Gt.enforceState(ht)}}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275dir=e.FsC({type:lt,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return lt})(),oi=(()=>{class lt{ngSwitch;_view;ngSwitchCase;constructor(ht,Gt,cn){this.ngSwitch=cn,cn._addCase(),this._view=new bn(ht,Gt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU($n,9))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return lt})(),Ii=(()=>{class lt{constructor(ht,Gt,cn){cn._addDefault(new bn(ht,Gt))}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU($n,9))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngSwitchDefault",""]]})}return lt})(),en=(()=>{class lt{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(ht,Gt,cn){this._ngEl=ht,this._differs=Gt,this._renderer=cn}set ngStyle(ht){this._ngStyle=ht,!this._differ&&ht&&(this._differ=this._differs.find(ht).create())}ngDoCheck(){if(this._differ){const ht=this._differ.diff(this._ngStyle);ht&&this._applyChanges(ht)}}_setStyle(ht,Gt){const[cn,si]=ht.split("."),pi=-1===cn.indexOf("-")?void 0:e.czy.DashCase;null!=Gt?this._renderer.setStyle(this._ngEl.nativeElement,cn,si?`${Gt}${si}`:Gt,pi):this._renderer.removeStyle(this._ngEl.nativeElement,cn,pi)}_applyChanges(ht){ht.forEachRemovedItem(Gt=>this._setStyle(Gt.key,null)),ht.forEachAddedItem(Gt=>this._setStyle(Gt.key,Gt.currentValue)),ht.forEachChangedItem(Gt=>this._setStyle(Gt.key,Gt.currentValue))}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.aKT),e.rXU(D.MKu),e.rXU(e.sFG))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return lt})(),Nn=(()=>{class lt{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(ht){this._viewContainerRef=ht}ngOnChanges(ht){if(this._shouldRecreateView(ht)){const Gt=this._viewContainerRef;if(this._viewRef&&Gt.remove(Gt.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const cn=this._createContextForwardProxy();this._viewRef=Gt.createEmbeddedView(this.ngTemplateOutlet,cn,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(ht){return!!ht.ngTemplateOutlet||!!ht.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(ht,Gt,cn)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Gt,cn),get:(ht,Gt,cn)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Gt,cn)}})}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[e.OA$]})}return lt})();function Un(lt,an){return new o.buA(2100,!1)}class ui{createSubscription(an,ht,Gt){return(0,A.O8)(()=>an.subscribe({next:ht,error:Gt}))}dispose(an){(0,A.O8)(()=>an.unsubscribe())}}class gn{createSubscription(an,ht,Gt){return an.then(cn=>ht?.(cn),cn=>Gt?.(cn)),{unsubscribe:()=>{ht=null,Gt=null}}}dispose(an){an.unsubscribe()}}const zn=new gn,kn=new ui;let Kn=(()=>{class lt{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=(0,o.WQX)(o.ZTf);constructor(ht){this._ref=ht}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ht){if(!this._obj){if(ht)try{this.markForCheckOnValueUpdate=!1,this._subscribe(ht)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return ht!==this._obj?(this._dispose(),this.transform(ht)):this._latestValue}_subscribe(ht){this._obj=ht,this._strategy=this._selectStrategy(ht),this._subscription=this._strategy.createSubscription(ht,Gt=>this._updateLatestValue(ht,Gt),Gt=>this.applicationErrorHandler(Gt))}_selectStrategy(ht){if((0,e.yLl)(ht))return zn;if((0,e.cdK)(ht))return kn;throw Un()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ht,Gt){ht===this._obj&&(this._latestValue=Gt,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(D.gRc,16))};static \u0275pipe=e.EJ8({name:"async",type:lt,pure:!1})}return lt})(),ci=(()=>{class lt{transform(ht){if(null==ht)return null;if("string"!=typeof ht)throw Un();return ht.toLowerCase()}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"lowercase",type:lt,pure:!0})}return lt})();const Xn=/(?:[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 aa=(()=>{class lt{transform(ht){if(null==ht)return null;if("string"!=typeof ht)throw Un();return ht.replace(Xn,Gt=>Gt[0].toUpperCase()+Gt.slice(1).toLowerCase())}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"titlecase",type:lt,pure:!0})}return lt})(),sa=(()=>{class lt{transform(ht){if(null==ht)return null;if("string"!=typeof ht)throw Un();return ht.toUpperCase()}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"uppercase",type:lt,pure:!0})}return lt})();const ua=new o.nKC(""),dn=new o.nKC("");let Ln=(()=>{class lt{locale;defaultTimezone;defaultOptions;constructor(ht,Gt,cn){this.locale=ht,this.defaultTimezone=Gt,this.defaultOptions=cn}transform(ht,Gt,cn,si){if(null==ht||""===ht||ht!=ht)return null;try{return Me(ht,Gt??this.defaultOptions?.dateFormat??"mediumDate",si||this.locale,cn??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(pi){throw Un()}}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.xe9,16),e.rXU(ua,24),e.rXU(dn,24))};static \u0275pipe=e.EJ8({name:"date",type:lt,pure:!0})}return lt})(),Jn=(()=>{class lt{transform(ht){return JSON.stringify(ht,null,2)}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"json",type:lt,pure:!1})}return lt})(),_a=(()=>{class lt{differs;constructor(ht){this.differs=ht}differ;keyValues=[];compareFn=Sa;transform(ht,Gt=Sa){if(!ht||!(ht instanceof Map)&&"object"!=typeof ht)return null;this.differ??=this.differs.find(ht).create();const cn=this.differ.diff(ht),si=Gt!==this.compareFn;return cn&&(this.keyValues=[],cn.forEachItem(pi=>{this.keyValues.push(function Bi(lt,an){return{key:lt,value:an}}(pi.key,pi.currentValue))})),(cn||si)&&(Gt&&this.keyValues.sort(Gt),this.compareFn=Gt),this.keyValues}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(D.MKu,16))};static \u0275pipe=e.EJ8({name:"keyvalue",type:lt,pure:!1})}return lt})();function Sa(lt,an){const ht=lt.key,Gt=an.key;if(ht===Gt)return 0;if(null==ht)return 1;if(null==Gt)return-1;if("string"==typeof ht&&"string"==typeof Gt)return ht{class lt{_locale;constructor(ht){this._locale=ht}transform(ht,Gt,cn){if(!function Dn(lt){return!(null==lt||""===lt||lt!=lt)}(ht))return null;cn||=this._locale;try{return function it(lt,an,ht){return function zt(lt,an,ht,Gt,cn,si,pi=!1){let Oi="",la=!1;if(isFinite(lt)){let mn=function we(lt){let Gt,cn,si,pi,Oi,an=Math.abs(lt)+"",ht=0;for((cn=an.indexOf("."))>-1&&(an=an.replace(".","")),(si=an.search(/e/i))>0?(cn<0&&(cn=si),cn+=+an.slice(si+1),an=an.substring(0,si)):cn<0&&(cn=an.length),si=0;"0"===an.charAt(si);si++);if(si===(Oi=an.length))Gt=[0],cn=1;else{for(Oi--;"0"===an.charAt(Oi);)Oi--;for(cn-=si,Gt=[],pi=0;si<=Oi;si++,pi++)Gt[pi]=Number(an.charAt(si))}return cn>22&&(Gt=Gt.splice(0,21),ht=cn-1,cn=1),{digits:Gt,exponent:ht,integerLen:cn}}(lt);pi&&(mn=function Wt(lt){if(0===lt.digits[0])return lt;const an=lt.digits.length-lt.integerLen;return lt.exponent?lt.exponent+=2:(0===an?lt.digits.push(0,0):1===an&<.digits.push(0),lt.integerLen+=2),lt}(mn));let li=an.minInt,Ce=an.minFrac,xt=an.maxFrac;if(si){const Va=si.match(Pe);if(null===Va)throw new o.buA(2306,!1);const $a=Va[1],ir=Va[3],Ga=Va[5];null!=$a&&(li=Lt($a)),null!=ir&&(Ce=Lt(ir)),null!=Ga?xt=Lt(Ga):null!=ir&&Ce>xt&&(xt=Ce);const Ar=100;if(li>Ar||Ce>Ar||xt>Ar)throw new o.buA(2306,!1)}!function We(lt,an,ht){if(an>ht)throw new o.buA(2307,!1);let Gt=lt.digits,cn=Gt.length-lt.integerLen;const si=Math.min(Math.max(an,cn),ht);let pi=si+lt.integerLen,Oi=Gt[pi];if(pi>0){Gt.splice(Math.max(lt.integerLen,pi));for(let Ce=pi;Ce=5)if(pi-1<0){for(let Ce=0;Ce>pi;Ce--)Gt.unshift(0),lt.integerLen++;Gt.unshift(1),lt.integerLen++}else Gt[pi-1]++;for(;cn=mn?rn.pop():la=!1),xt>=10?1:0},0);li&&(Gt.unshift(li),lt.integerLen++)}(mn,Ce,xt);let vt=mn.digits,rn=mn.integerLen;const Wn=mn.exponent;let Yi=[];for(la=vt.every(Va=>!Va);rn0?Yi=vt.splice(rn,vt.length):(Yi=vt,vt=[0]);const va=[];for(vt.length>=an.lgSize&&va.unshift(vt.splice(-an.lgSize,vt.length).join(""));vt.length>an.gSize;)va.unshift(vt.splice(-an.gSize,vt.length).join(""));vt.length&&va.unshift(vt.join("")),Oi=va.join(t(ht,Gt)),Yi.length&&(Oi+=t(ht,cn)+Yi.join("")),Wn&&(Oi+=t(ht,6)+"+"+Wn)}else Oi=t(ht,9);return Oi=lt<0&&!la?an.negPre+Oi+an.negSuf:an.posPre+Oi+an.posSuf,Oi}(lt,function He(lt,an="-"){const ht={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Gt=lt.split(";"),cn=Gt[0],si=Gt[1],pi=-1!==cn.indexOf(".")?cn.split("."):[cn.substring(0,cn.lastIndexOf("0")+1),cn.substring(cn.lastIndexOf("0")+1)],Oi=pi[0],la=pi[1]||"";ht.posPre=Oi.substring(0,Oi.indexOf("#"));for(let li=0;li{class lt{transform(ht,Gt,cn){if(null==ht)return null;if("string"!=typeof ht&&!Array.isArray(ht))throw Un();return ht.slice(Gt,cn)}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"slice",type:lt,pure:!1})}return lt})(),Ma=(()=>{class lt{static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275mod=e.$C({type:lt});static \u0275inj=o.G2t({})}return lt})()},57303(ke,q,l){"use strict";l.d(q,{Q:()=>F,Sm:()=>j,Vw:()=>A,aZ:()=>Z,hb:()=>M,hj:()=>h,ig:()=>o,kB:()=>K,om:()=>w,qj:()=>e,rb:()=>D});var i=l(2615),g=l(21413);let p=null;function D(){return p}function o(ie){p??=ie}class e{}let A=(()=>{class ie{historyGo(ye){throw new Error("")}static \u0275fac=function(se){return new(se||ie)};static \u0275prov=i.jDH({token:ie,factory:()=>(0,i.WQX)(d),providedIn:"platform"})}return ie})();const h=new i.nKC("");let d=(()=>{class ie extends A{_location;_history;_doc=(0,i.WQX)(i.qQL);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(ye){const se=D().getGlobalEventTarget(this._doc,"window");return se.addEventListener("popstate",ye,!1),()=>se.removeEventListener("popstate",ye)}onHashChange(ye){const se=D().getGlobalEventTarget(this._doc,"window");return se.addEventListener("hashchange",ye,!1),()=>se.removeEventListener("hashchange",ye)}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(ye){this._location.pathname=ye}pushState(ye,se,pe){this._history.pushState(ye,se,pe)}replaceState(ye,se,pe){this._history.replaceState(ye,se,pe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ye=0){this._history.go(ye)}getState(){return this._history.state}static \u0275fac=function(se){return new(se||ie)};static \u0275prov=i.jDH({token:ie,factory:()=>new ie,providedIn:"platform"})}return ie})();function w(ie,_e){return ie?_e?ie.endsWith("/")?_e.startsWith("/")?ie+_e.slice(1):ie+_e:_e.startsWith("/")?ie+_e:`${ie}/${_e}`:ie:_e}function f(ie){const _e=ie.search(/#|\?|$/);return"/"===ie[_e-1]?ie.slice(0,_e-1)+ie.slice(_e):ie}function F(ie){return ie&&"?"!==ie[0]?`?${ie}`:ie}let M=(()=>{class ie{historyGo(ye){throw new Error("")}static \u0275fac=function(se){return new(se||ie)};static \u0275prov=i.jDH({token:ie,factory:()=>(0,i.WQX)(j),providedIn:"root"})}return ie})();const K=new i.nKC("");let j=(()=>{class ie extends M{_platformLocation;_baseHref;_removeListenerFns=[];constructor(ye,se){super(),this._platformLocation=ye,this._baseHref=se??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(i.qQL).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ye){this._removeListenerFns.push(this._platformLocation.onPopState(ye),this._platformLocation.onHashChange(ye))}getBaseHref(){return this._baseHref}prepareExternalUrl(ye){return w(this._baseHref,ye)}path(ye=!1){const se=this._platformLocation.pathname+F(this._platformLocation.search),pe=this._platformLocation.hash;return pe&&ye?`${se}${pe}`:se}pushState(ye,se,pe,Ee){const L=this.prepareExternalUrl(pe+F(Ee));this._platformLocation.pushState(ye,se,L)}replaceState(ye,se,pe,Ee){const L=this.prepareExternalUrl(pe+F(Ee));this._platformLocation.replaceState(ye,se,L)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ye=0){this._platformLocation.historyGo?.(ye)}static \u0275fac=function(se){return new(se||ie)(i.KVO(A),i.KVO(K,8))};static \u0275prov=i.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})(),Z=(()=>{class ie{_subject=new g.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(ye){this._locationStrategy=ye;const se=this._locationStrategy.getBaseHref();this._basePath=function $(ie){if(new RegExp("^(https?:)?//").test(ie)){const[,ye]=ie.split(/\/\/[^\/]+/);return ye}return ie}(f(Q(se))),this._locationStrategy.onPopState(pe=>{this._subject.next({url:this.path(!0),pop:!0,state:pe.state,type:pe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ye=!1){return this.normalize(this._locationStrategy.path(ye))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ye,se=""){return this.path()==this.normalize(ye+F(se))}normalize(ye){return ie.stripTrailingSlash(function V(ie,_e){if(!ie||!_e.startsWith(ie))return _e;const ye=_e.substring(ie.length);return""===ye||["/",";","?","#"].includes(ye[0])?ye:_e}(this._basePath,Q(ye)))}prepareExternalUrl(ye){return ye&&"/"!==ye[0]&&(ye="/"+ye),this._locationStrategy.prepareExternalUrl(ye)}go(ye,se="",pe=null){this._locationStrategy.pushState(pe,"",ye,se),this._notifyUrlChangeListeners(this.prepareExternalUrl(ye+F(se)),pe)}replaceState(ye,se="",pe=null){this._locationStrategy.replaceState(pe,"",ye,se),this._notifyUrlChangeListeners(this.prepareExternalUrl(ye+F(se)),pe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ye=0){this._locationStrategy.historyGo?.(ye)}onUrlChange(ye){return this._urlChangeListeners.push(ye),this._urlChangeSubscription??=this.subscribe(se=>{this._notifyUrlChangeListeners(se.url,se.state)}),()=>{const se=this._urlChangeListeners.indexOf(ye);this._urlChangeListeners.splice(se,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ye="",se){this._urlChangeListeners.forEach(pe=>pe(ye,se))}subscribe(ye,se,pe){return this._subject.subscribe({next:ye,error:se??void 0,complete:pe??void 0})}static normalizeQueryParams=F;static joinWithSlash=w;static stripTrailingSlash=f;static \u0275fac=function(se){return new(se||ie)(i.KVO(M))};static \u0275prov=i.jDH({token:ie,factory:()=>function ee(){return new Z((0,i.KVO)(M))}(),providedIn:"root"})}return ie})();function Q(ie){return ie.replace(/\/index.html$/,"")}},29330(ke,q,l){"use strict";l.d(q,{$R:()=>Li,Nl:()=>s,Qq:()=>nt,Sx:()=>Ze,ZZ:()=>$n,a7:()=>me,q1:()=>Ii});var A=l(10467),h=l(2615),d=l(73664),w=l(70274),f=l(5964),F=l(70980),M=l(96354),K=l(25558),j=l(71985),ee=(l(22806),l(7673)),V=l(52512);class Q{}class ${}class ie{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(nn){nn?"string"==typeof nn?this.lazyInit=()=>{this.headers=new Map,nn.split("\n").forEach(en=>{const Nn=en.indexOf(":");if(Nn>0){const jn=en.slice(0,Nn),Un=en.slice(Nn+1).trim();this.addHeaderEntry(jn,Un)}})}:typeof Headers<"u"&&nn instanceof Headers?(this.headers=new Map,nn.forEach((en,Nn)=>{this.addHeaderEntry(Nn,en)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(nn).forEach(([en,Nn])=>{this.setHeaderEntries(en,Nn)})}:this.headers=new Map}has(nn){return this.init(),this.headers.has(nn.toLowerCase())}get(nn){this.init();const en=this.headers.get(nn.toLowerCase());return en&&en.length>0?en[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(nn){return this.init(),this.headers.get(nn.toLowerCase())||null}append(nn,en){return this.clone({name:nn,value:en,op:"a"})}set(nn,en){return this.clone({name:nn,value:en,op:"s"})}delete(nn,en){return this.clone({name:nn,value:en,op:"d"})}maybeSetNormalizedName(nn,en){this.normalizedNames.has(en)||this.normalizedNames.set(en,nn)}init(){this.lazyInit&&(this.lazyInit instanceof ie?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(nn=>this.applyUpdate(nn)),this.lazyUpdate=null))}copyFrom(nn){nn.init(),Array.from(nn.headers.keys()).forEach(en=>{this.headers.set(en,nn.headers.get(en)),this.normalizedNames.set(en,nn.normalizedNames.get(en))})}clone(nn){const en=new ie;return en.lazyInit=this.lazyInit&&this.lazyInit instanceof ie?this.lazyInit:this,en.lazyUpdate=(this.lazyUpdate||[]).concat([nn]),en}applyUpdate(nn){const en=nn.name.toLowerCase();switch(nn.op){case"a":case"s":let Nn=nn.value;if("string"==typeof Nn&&(Nn=[Nn]),0===Nn.length)return;this.maybeSetNormalizedName(nn.name,en);const jn=("a"===nn.op?this.headers.get(en):void 0)||[];jn.push(...Nn),this.headers.set(en,jn);break;case"d":const Un=nn.value;if(Un){let ui=this.headers.get(en);if(!ui)return;ui=ui.filter(gn=>-1===Un.indexOf(gn)),0===ui.length?(this.headers.delete(en),this.normalizedNames.delete(en)):this.headers.set(en,ui)}else this.headers.delete(en),this.normalizedNames.delete(en)}}addHeaderEntry(nn,en){const Nn=nn.toLowerCase();this.maybeSetNormalizedName(nn,Nn),this.headers.has(Nn)?this.headers.get(Nn).push(en):this.headers.set(Nn,[en])}setHeaderEntries(nn,en){const Nn=(Array.isArray(en)?en:[en]).map(Un=>Un.toString()),jn=nn.toLowerCase();this.headers.set(jn,Nn),this.maybeSetNormalizedName(nn,jn)}forEach(nn){this.init(),Array.from(this.normalizedNames.keys()).forEach(en=>nn(this.normalizedNames.get(en),this.headers.get(en)))}}class ye{encodeKey(nn){return L(nn)}encodeValue(nn){return L(nn)}decodeKey(nn){return decodeURIComponent(nn)}decodeValue(nn){return decodeURIComponent(nn)}}const pe=/%(\d[a-f0-9])/gi,Ee={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function L(Nt){return encodeURIComponent(Nt).replace(pe,(nn,en)=>Ee[en]??nn)}function t(Nt){return`${Nt}`}class s{map;encoder;updates=null;cloneFrom=null;constructor(nn={}){if(this.encoder=nn.encoder||new ye,nn.fromString){if(nn.fromObject)throw new h.buA(2805,!1);this.map=function se(Nt,nn){const en=new Map;return Nt.length>0&&Nt.replace(/^\?/,"").split("&").forEach(jn=>{const Un=jn.indexOf("="),[ui,gn]=-1==Un?[nn.decodeKey(jn),""]:[nn.decodeKey(jn.slice(0,Un)),nn.decodeValue(jn.slice(Un+1))],zn=en.get(ui)||[];zn.push(gn),en.set(ui,zn)}),en}(nn.fromString,this.encoder)}else nn.fromObject?(this.map=new Map,Object.keys(nn.fromObject).forEach(en=>{const Nn=nn.fromObject[en],jn=Array.isArray(Nn)?Nn.map(t):[t(Nn)];this.map.set(en,jn)})):this.map=null}has(nn){return this.init(),this.map.has(nn)}get(nn){this.init();const en=this.map.get(nn);return en?en[0]:null}getAll(nn){return this.init(),this.map.get(nn)||null}keys(){return this.init(),Array.from(this.map.keys())}append(nn,en){return this.clone({param:nn,value:en,op:"a"})}appendAll(nn){const en=[];return Object.keys(nn).forEach(Nn=>{const jn=nn[Nn];Array.isArray(jn)?jn.forEach(Un=>{en.push({param:Nn,value:Un,op:"a"})}):en.push({param:Nn,value:jn,op:"a"})}),this.clone(en)}set(nn,en){return this.clone({param:nn,value:en,op:"s"})}delete(nn,en){return this.clone({param:nn,value:en,op:"d"})}toString(){return this.init(),this.keys().map(nn=>{const en=this.encoder.encodeKey(nn);return this.map.get(nn).map(Nn=>en+"="+this.encoder.encodeValue(Nn)).join("&")}).filter(nn=>""!==nn).join("&")}clone(nn){const en=new s({encoder:this.encoder});return en.cloneFrom=this.cloneFrom||this,en.updates=(this.updates||[]).concat(nn),en}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(nn=>this.map.set(nn,this.cloneFrom.map.get(nn))),this.updates.forEach(nn=>{switch(nn.op){case"a":case"s":const en=("a"===nn.op?this.map.get(nn.param):void 0)||[];en.push(t(nn.value)),this.map.set(nn.param,en);break;case"d":if(void 0===nn.value){this.map.delete(nn.param);break}{let Nn=this.map.get(nn.param)||[];const jn=Nn.indexOf(t(nn.value));-1!==jn&&Nn.splice(jn,1),Nn.length>0?this.map.set(nn.param,Nn):this.map.delete(nn.param)}}}),this.cloneFrom=this.updates=null)}}class u{map=new Map;set(nn,en){return this.map.set(nn,en),this}get(nn){return this.map.has(nn)||this.map.set(nn,nn.defaultValue()),this.map.get(nn)}delete(nn){return this.map.delete(nn),this}has(nn){return this.map.has(nn)}keys(){return this.map.keys()}}function T(Nt){return typeof ArrayBuffer<"u"&&Nt instanceof ArrayBuffer}function P(Nt){return typeof Blob<"u"&&Nt instanceof Blob}function C(Nt){return typeof FormData<"u"&&Nt instanceof FormData}const x="Content-Type",Y="Accept",R="X-Request-URL",U="text/plain",fe="application/json",re=`${fe}, ${U}, */*`;class he{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(nn,en,Nn,jn){let Un;if(this.url=en,this.method=nn.toUpperCase(),function _(Nt){switch(Nt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||jn?(this.body=void 0!==Nn?Nn:null,Un=jn):Un=Nn,Un){if(this.reportProgress=!!Un.reportProgress,this.withCredentials=!!Un.withCredentials,this.keepalive=!!Un.keepalive,Un.responseType&&(this.responseType=Un.responseType),Un.headers&&(this.headers=Un.headers),Un.context&&(this.context=Un.context),Un.params&&(this.params=Un.params),Un.priority&&(this.priority=Un.priority),Un.cache&&(this.cache=Un.cache),Un.credentials&&(this.credentials=Un.credentials),"number"==typeof Un.timeout){if(Un.timeout<1||!Number.isInteger(Un.timeout))throw new h.buA(2822,"");this.timeout=Un.timeout}Un.mode&&(this.mode=Un.mode),Un.redirect&&(this.redirect=Un.redirect),Un.integrity&&(this.integrity=Un.integrity),void 0!==Un.referrer&&(this.referrer=Un.referrer),this.transferCache=Un.transferCache}if(this.headers??=new ie,this.context??=new u,this.params){const ui=this.params.toString();if(0===ui.length)this.urlWithParams=en;else{const gn=en.indexOf("?");this.urlWithParams=en+(-1===gn?"?":gnGn.set(Jn,nn.setHeaders[Jn]),Ln)),nn.setParams&&(Zn=Object.keys(nn.setParams).reduce((Gn,Jn)=>Gn.set(Jn,nn.setParams[Jn]),Zn)),new he(en,Nn,ma,{params:Zn,headers:Ln,context:hi,reportProgress:dn,responseType:jn,withCredentials:ua,transferCache:aa,keepalive:Un,cache:gn,priority:ui,timeout:sa,mode:zn,redirect:kn,credentials:Kn,referrer:ci,integrity:Xn})}}var Oe=function(Nt){return Nt[Nt.Sent=0]="Sent",Nt[Nt.UploadProgress=1]="UploadProgress",Nt[Nt.ResponseHeader=2]="ResponseHeader",Nt[Nt.DownloadProgress=3]="DownloadProgress",Nt[Nt.Response=4]="Response",Nt[Nt.User=5]="User",Nt}(Oe||{});class ge{headers;status;statusText;url;ok;type;redirected;constructor(nn,en=200,Nn="OK"){this.headers=nn.headers||new ie,this.status=void 0!==nn.status?nn.status:en,this.statusText=nn.statusText||Nn,this.url=nn.url||null,this.redirected=nn.redirected,this.ok=this.status>=200&&this.status<300}}class ce extends ge{constructor(nn={}){super(nn)}type=Oe.ResponseHeader;clone(nn={}){return new ce({headers:nn.headers||this.headers,status:void 0!==nn.status?nn.status:this.status,statusText:nn.statusText||this.statusText,url:nn.url||this.url||void 0})}}class Re extends ge{body;constructor(nn={}){super(nn),this.body=void 0!==nn.body?nn.body:null}type=Oe.Response;clone(nn={}){return new Re({body:void 0!==nn.body?nn.body:this.body,headers:nn.headers||this.headers,status:void 0!==nn.status?nn.status:this.status,statusText:nn.statusText||this.statusText,url:nn.url||this.url||void 0,redirected:nn.redirected??this.redirected})}}class Me extends ge{name="HttpErrorResponse";message;error;ok=!1;constructor(nn){super(nn,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${nn.url||"(unknown url)"}`:`Http failure response for ${nn.url||"(unknown url)"}: ${nn.status} ${nn.statusText}`,this.error=nn.error||null}}function be(Nt,nn){return{body:nn,headers:Nt.headers,context:Nt.context,observe:Nt.observe,params:Nt.params,reportProgress:Nt.reportProgress,responseType:Nt.responseType,withCredentials:Nt.withCredentials,credentials:Nt.credentials,transferCache:Nt.transferCache,timeout:Nt.timeout,keepalive:Nt.keepalive,priority:Nt.priority,cache:Nt.cache,mode:Nt.mode,redirect:Nt.redirect,integrity:Nt.integrity,referrer:Nt.referrer}}let nt=(()=>{class Nt{handler;constructor(en){this.handler=en}request(en,Nn,jn={}){let Un;if(en instanceof he)Un=en;else{let zn,kn;zn=jn.headers instanceof ie?jn.headers:new ie(jn.headers),jn.params&&(kn=jn.params instanceof s?jn.params:new s({fromObject:jn.params})),Un=new he(en,Nn,void 0!==jn.body?jn.body:null,{headers:zn,context:jn.context,params:kn,reportProgress:jn.reportProgress,responseType:jn.responseType||"json",withCredentials:jn.withCredentials,transferCache:jn.transferCache,keepalive:jn.keepalive,priority:jn.priority,cache:jn.cache,mode:jn.mode,redirect:jn.redirect,credentials:jn.credentials,referrer:jn.referrer,integrity:jn.integrity,timeout:jn.timeout})}const ui=(0,ee.of)(Un).pipe((0,w.H)(zn=>this.handler.handle(zn)));if(en instanceof he||"events"===jn.observe)return ui;const gn=ui.pipe((0,f.p)(zn=>zn instanceof Re));switch(jn.observe||"body"){case"body":switch(Un.responseType){case"arraybuffer":return gn.pipe((0,M.T)(zn=>{if(null!==zn.body&&!(zn.body instanceof ArrayBuffer))throw new h.buA(2806,!1);return zn.body}));case"blob":return gn.pipe((0,M.T)(zn=>{if(null!==zn.body&&!(zn.body instanceof Blob))throw new h.buA(2807,!1);return zn.body}));case"text":return gn.pipe((0,M.T)(zn=>{if(null!==zn.body&&"string"!=typeof zn.body)throw new h.buA(2808,!1);return zn.body}));default:return gn.pipe((0,M.T)(zn=>zn.body))}case"response":return gn;default:throw new h.buA(2809,!1)}}delete(en,Nn={}){return this.request("DELETE",en,Nn)}get(en,Nn={}){return this.request("GET",en,Nn)}head(en,Nn={}){return this.request("HEAD",en,Nn)}jsonp(en,Nn){return this.request("JSONP",en,{params:(new s).append(Nn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(en,Nn={}){return this.request("OPTIONS",en,Nn)}patch(en,Nn,jn={}){return this.request("PATCH",en,be(jn,Nn))}post(en,Nn,jn={}){return this.request("POST",en,be(jn,Nn))}put(en,Nn,jn={}){return this.request("PUT",en,be(jn,Nn))}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO(Q))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const $e=/^\)\]\}',?\n/;function dt(Nt){if(Nt.url)return Nt.url;const nn=R.toLocaleLowerCase();return Nt.headers.get(nn)}const yt=new h.nKC("");let Et=(()=>{class Nt{fetchImpl=(0,h.WQX)(rt,{optional:!0})?.fetch??((...en)=>globalThis.fetch(...en));ngZone=(0,h.WQX)(d.SKi);destroyRef=(0,h.WQX)(h.abz);handle(en){return new j.c(Nn=>{const jn=new AbortController;let Un;return this.doRequest(en,jn.signal,Nn).then(Mn,ui=>Nn.error(new Me({error:ui}))),en.timeout&&(Un=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{jn.signal.aborted||jn.abort(new DOMException("signal timed out","TimeoutError"))},en.timeout))),()=>{void 0!==Un&&clearTimeout(Un),jn.abort()}})}doRequest(en,Nn,jn){var Un=this;return(0,A.A)(function*(){const ui=Un.createRequestInit(en);let gn;try{const ma=Un.ngZone.runOutsideAngular(()=>Un.fetchImpl(en.urlWithParams,{signal:Nn,...ui}));(function S(Nt){Nt.then(Mn,Mn)})(ma),jn.next({type:Oe.Sent}),gn=yield ma}catch(ma){return void jn.error(new Me({error:ma,status:ma.status??0,statusText:ma.statusText,url:en.urlWithParams,headers:ma.headers}))}const zn=new ie(gn.headers),kn=gn.statusText,Kn=dt(gn)??en.urlWithParams;let ci=gn.status,Xn=null;if(en.reportProgress&&jn.next(new ce({headers:zn,status:ci,statusText:kn,url:Kn})),gn.body){const ma=gn.headers.get("content-length"),ua=[],dn=gn.body.getReader();let Zn,hi,Ln=0;const Gn=typeof Zone<"u"&&Zone.current;let Jn=!1;if(yield Un.ngZone.runOutsideAngular((0,A.A)(function*(){for(;;){if(Un.destroyRef.destroyed){yield dn.cancel(),Jn=!0;break}const{done:_a,value:Sa}=yield dn.read();if(_a)break;if(ua.push(Sa),Ln+=Sa.length,en.reportProgress){hi="text"===en.responseType?(hi??"")+(Zn??=new TextDecoder).decode(Sa,{stream:!0}):void 0;const un=()=>jn.next({type:Oe.DownloadProgress,total:ma?+ma:void 0,loaded:Ln,partialText:hi});Gn?Gn.run(un):un()}}})),Jn)return void jn.complete();const Bi=Un.concatChunks(ua,Ln);try{const _a=gn.headers.get(x)??"";Xn=Un.parseBody(en,Bi,_a,ci)}catch(_a){return void jn.error(new Me({error:_a,headers:new ie(gn.headers),status:gn.status,statusText:gn.statusText,url:dt(gn)??en.urlWithParams}))}}0===ci&&(ci=Xn?200:0);const sa=gn.redirected;ci>=200&&ci<300?(jn.next(new Re({body:Xn,headers:zn,status:ci,statusText:kn,url:Kn,redirected:sa})),jn.complete()):jn.error(new Me({error:Xn,headers:zn,status:ci,statusText:kn,url:Kn,redirected:sa}))})()}parseBody(en,Nn,jn,Un){switch(en.responseType){case"json":const ui=(new TextDecoder).decode(Nn).replace($e,"");if(""===ui)return null;try{return JSON.parse(ui)}catch(gn){if(Un<200||Un>=300)return ui;throw gn}case"text":return(new TextDecoder).decode(Nn);case"blob":return new Blob([Nn],{type:jn});case"arraybuffer":return Nn.buffer}}createRequestInit(en){const Nn={};let jn;if(jn=en.credentials,en.withCredentials&&(jn="include"),en.headers.forEach((Un,ui)=>Nn[Un]=ui.join(",")),en.headers.has(Y)||(Nn[Y]=re),!en.headers.has(x)){const Un=en.detectContentTypeHeader();null!==Un&&(Nn[x]=Un)}return{body:en.serializeBody(),method:en.method,headers:Nn,credentials:jn,keepalive:en.keepalive,cache:en.cache,priority:en.priority,mode:en.mode,redirect:en.redirect,referrer:en.referrer,integrity:en.integrity}}concatChunks(en,Nn){const jn=new Uint8Array(Nn);let Un=0;for(const ui of en)jn.set(ui,Un),Un+=ui.length;return jn}static \u0275fac=function(Nn){return new(Nn||Nt)};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();class rt{}function Mn(){}function Xt(Nt,nn){return nn(Nt)}function de(Nt,nn){return(en,Nn)=>nn.intercept(en,{handle:jn=>Nt(jn,Nn)})}const me=new h.nKC(""),Le=new h.nKC(""),et=new h.nKC(""),tn=new h.nKC("",{providedIn:"root",factory:()=>!0});function Vt(){let Nt=null;return(nn,en)=>{null===Nt&&(Nt=((0,h.WQX)(me,{optional:!0})??[]).reduceRight(de,Xt));const Nn=(0,h.WQX)(h.u5s);if((0,h.WQX)(tn)){const Un=Nn.add();return Nt(nn,en).pipe((0,F.j)(Un))}return Nt(nn,en)}}let En=(()=>{class Nt extends Q{backend;injector;chain=null;pendingTasks=(0,h.WQX)(h.u5s);contributeToStability=(0,h.WQX)(tn);constructor(en,Nn){super(),this.backend=en,this.injector=Nn}handle(en){if(null===this.chain){const Nn=Array.from(new Set([...this.injector.get(Le),...this.injector.get(et,[])]));this.chain=Nn.reduceRight((jn,Un)=>function ae(Nt,nn,en){return(Nn,jn)=>(0,h.N4e)(en,()=>nn(Nn,Un=>Nt(Un,jn)))}(jn,Un,this.injector),Xt)}if(this.contributeToStability){const Nn=this.pendingTasks.add();return this.chain(en,jn=>this.backend.handle(jn)).pipe((0,F.j)(Nn))}return this.chain(en,Nn=>this.backend.handle(Nn))}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO($),h.KVO(h.uvJ))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const zt=/^\)\]\}',?\n/,Ye=RegExp(`^${R}:`,"m");let He=(()=>{class Nt{xhrFactory;constructor(en){this.xhrFactory=en}handle(en){if("JSONP"===en.method)throw new h.buA(-2800,!1);const Nn=this.xhrFactory;return(0,ee.of)(null).pipe((0,K.n)(()=>new j.c(Un=>{const ui=Nn.build();if(ui.open(en.method,en.urlWithParams),en.withCredentials&&(ui.withCredentials=!0),en.headers.forEach((ua,dn)=>ui.setRequestHeader(ua,dn.join(","))),en.headers.has(Y)||ui.setRequestHeader(Y,re),!en.headers.has(x)){const ua=en.detectContentTypeHeader();null!==ua&&ui.setRequestHeader(x,ua)}if(en.timeout&&(ui.timeout=en.timeout),en.responseType){const ua=en.responseType.toLowerCase();ui.responseType="json"!==ua?ua:"text"}const gn=en.serializeBody();let zn=null;const kn=()=>{if(null!==zn)return zn;const ua=ui.statusText||"OK",dn=new ie(ui.getAllResponseHeaders()),Ln=function st(Nt){return"responseURL"in Nt&&Nt.responseURL?Nt.responseURL:Ye.test(Nt.getAllResponseHeaders())?Nt.getResponseHeader(R):null}(ui)||en.url;return zn=new ce({headers:dn,status:ui.status,statusText:ua,url:Ln}),zn},Kn=()=>{let{headers:ua,status:dn,statusText:Ln,url:Zn}=kn(),hi=null;204!==dn&&(hi=typeof ui.response>"u"?ui.responseText:ui.response),0===dn&&(dn=hi?200:0);let Gn=dn>=200&&dn<300;if("json"===en.responseType&&"string"==typeof hi){const Jn=hi;hi=hi.replace(zt,"");try{hi=""!==hi?JSON.parse(hi):null}catch(Bi){hi=Jn,Gn&&(Gn=!1,hi={error:Bi,text:hi})}}Gn?(Un.next(new Re({body:hi,headers:ua,status:dn,statusText:Ln,url:Zn||void 0})),Un.complete()):Un.error(new Me({error:hi,headers:ua,status:dn,statusText:Ln,url:Zn||void 0}))},ci=ua=>{const{url:dn}=kn(),Ln=new Me({error:ua,status:ui.status||0,statusText:ui.statusText||"Unknown Error",url:dn||void 0});Un.error(Ln)};let Xn=ci;en.timeout&&(Xn=ua=>{const{url:dn}=kn(),Ln=new Me({error:new DOMException("Request timed out","TimeoutError"),status:ui.status||0,statusText:ui.statusText||"Request timeout",url:dn||void 0});Un.error(Ln)});let aa=!1;const sa=ua=>{aa||(Un.next(kn()),aa=!0);let dn={type:Oe.DownloadProgress,loaded:ua.loaded};ua.lengthComputable&&(dn.total=ua.total),"text"===en.responseType&&ui.responseText&&(dn.partialText=ui.responseText),Un.next(dn)},ma=ua=>{let dn={type:Oe.UploadProgress,loaded:ua.loaded};ua.lengthComputable&&(dn.total=ua.total),Un.next(dn)};return ui.addEventListener("load",Kn),ui.addEventListener("error",ci),ui.addEventListener("timeout",Xn),ui.addEventListener("abort",ci),en.reportProgress&&(ui.addEventListener("progress",sa),null!==gn&&ui.upload&&ui.upload.addEventListener("progress",ma)),ui.send(gn),Un.next({type:Oe.Sent}),()=>{ui.removeEventListener("error",ci),ui.removeEventListener("abort",ci),ui.removeEventListener("load",Kn),ui.removeEventListener("timeout",Xn),en.reportProgress&&(ui.removeEventListener("progress",sa),null!==gn&&ui.upload&&ui.upload.removeEventListener("progress",ma)),ui.readyState!==ui.DONE&&ui.abort()}})))}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO(V.N))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const Wt=new h.nKC(""),We=new h.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),St=new h.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class At{}let fn=(()=>{class Nt{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(en,Nn){this.doc=en,this.cookieName=Nn}getToken(){const en=this.doc.cookie||"";return en!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,V.b)(en,this.cookieName),this.lastCookieString=en),this.lastToken}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO(h.qQL),h.KVO(We))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const mt=/^(?:https?:)?\/\//i;function It(Nt,nn){if(!(0,h.WQX)(Wt)||"GET"===Nt.method||"HEAD"===Nt.method||mt.test(Nt.url))return nn(Nt);const en=(0,h.WQX)(At).getToken(),Nn=(0,h.WQX)(St);return null!=en&&!Nt.headers.has(Nn)&&(Nt=Nt.clone({headers:Nt.headers.set(Nn,en)})),nn(Nt)}var In=function(Nt){return Nt[Nt.Interceptors=0]="Interceptors",Nt[Nt.LegacyInterceptors=1]="LegacyInterceptors",Nt[Nt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Nt[Nt.NoXsrfProtection=3]="NoXsrfProtection",Nt[Nt.JsonpSupport=4]="JsonpSupport",Nt[Nt.RequestsMadeViaParent=5]="RequestsMadeViaParent",Nt[Nt.Fetch=6]="Fetch",Nt}(In||{});function ei(Nt,nn){return{\u0275kind:Nt,\u0275providers:nn}}function Li(...Nt){const nn=[nt,He,En,{provide:Q,useExisting:En},{provide:$,useFactory:()=>(0,h.WQX)(yt,{optional:!0})??(0,h.WQX)(He)},{provide:Le,useValue:It,multi:!0},{provide:Wt,useValue:!0},{provide:At,useClass:fn}];for(const en of Nt)nn.push(...en.\u0275providers);return(0,h.EmA)(nn)}const Ot=new h.nKC("");function Ze(){return ei(In.LegacyInterceptors,[{provide:Ot,useFactory:Vt},{provide:Le,useExisting:Ot,multi:!0}])}function $n(){return ei(In.Fetch,[Et,{provide:yt,useExisting:Et},{provide:$,useExisting:Et}])}let Ii=(()=>{class Nt{static \u0275fac=function(Nn){return new(Nn||Nt)};static \u0275mod=d.$C({type:Nt});static \u0275inj=h.G2t({providers:[Li(Ze())]})}return Nt})()},52512(ke,q,l){"use strict";function i(p,D){D=encodeURIComponent(D);for(const o of p.split(";")){const e=o.indexOf("="),[A,h]=-1==e?[o,""]:[o.slice(0,e),o.slice(e+1)];if(A.trim()===D)return decodeURIComponent(h)}return null}l.d(q,{N:()=>g,b:()=>i});class g{}},17705(ke,q,l){"use strict";l.d(q,{ES_:()=>vt,HJs:()=>Io,Hbi:()=>vi,L39:()=>di,MKu:()=>Eo,Udg:()=>ji,_q3:()=>Sr,a0P:()=>Al,cCO:()=>rn,ebz:()=>Ar,fpN:()=>ns,gRc:()=>Ni,geq:()=>Cs,hFB:()=>$a,naY:()=>ct,oH4:()=>Yr,sbv:()=>zo,uEv:()=>Vl});var ht=l(2615),Gt=l(48440),cn=l(73664),si=l(59295);const pi=Symbol("InputSignalNode#UNSET"),Oi={...Gt.s0,transformFn:void 0,applyValueToInputSignal(Bt,ft){(0,Gt.j2)(Bt,ft)}};function mn(Bt,ft){const Tt=Object.create(Oi);function on(){if((0,Gt.mK)(Tt),Tt.value===pi)throw new ht.buA(-950,null);return Tt.value}return Tt.value=Bt,Tt.transformFn=ft?.transform,on[Gt.bh]=Tt,on}class vt{attributeName;constructor(ft){this.attributeName=ft}__NG_ELEMENT_ID__=()=>(0,cn.kS0)(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}const rn=new ht.nKC("");function va(Bt,ft){return mn(Bt,ft)}rn.__NG_ELEMENT_ID__=Bt=>{const ft=(0,ht.Mx4)();if(null===ft)throw new ht.buA(204,!1);if(2&ft.type)return ft.value;if(8&Bt)return null;throw new ht.buA(204,!1)};const $a=(va.required=function Va(Bt){return mn(pi,Bt)},va);function ir(Bt,ft){return(0,cn.mU9)(ft)}const Ar=(ir.required=function Ga(Bt,ft){return(0,cn.hnC)(ft)},ir);function us(Bt,ft){return(0,cn.mU9)(ft)}const zo=(us.required=function hs(Bt,ft){return(0,cn.hnC)(ft)},us);function ms(Bt,ft){const Tt=Object.create(Oi),on=new si.Zf;function Hn(){return(0,Gt.mK)(Tt),bo(Tt.value),Tt.value}return Tt.value=Bt,Hn[Gt.bh]=Tt,Hn.asReadonly=ht.HO5.bind(Hn),Hn.set=ni=>{Tt.equal(Tt.value,ni)||((0,Gt.j2)(Tt,ni),on.emit(ni))},Hn.update=ni=>{bo(Tt.value),Hn.set(ni(Tt.value))},Hn.subscribe=on.subscribe.bind(on),Hn.destroyRef=on.destroyRef,Hn}function bo(Bt){if(Bt===pi)throw new ht.buA(952,!1)}function Zr(Bt,ft){return ms(Bt)}const Cs=(Zr.required=function js(Bt){return ms(pi)},Zr),ar=new ht.nKC(""),Xr=new ht.nKC("");function Kr(Bt){return!Bt.moduleRef}let Hi;function Mr(){Hi=gs}function gs(Bt,ft){const Tt=Bt.injector.get(cn.o8S);if(Bt._bootstrapComponents.length>0)Bt._bootstrapComponents.forEach(on=>Tt.bootstrap(on));else{if(!Bt.instance.ngDoBootstrap)throw new ht.buA(-403,!1);Bt.instance.ngDoBootstrap(Tt)}ft.push(Bt)}let Pa=(()=>{class Bt{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(Tt){this._injector=Tt}bootstrapModuleFactory(Tt,on){const Hn=on?.scheduleInRootZone,Mi=on?.ignoreChangesOutsideZone,ki=[(0,cn.SdI)({ngZoneFactory:()=>(0,cn.G5x)(on?.ngZone,{...(0,cn.cZr)({eventCoalescing:on?.ngZoneEventCoalescing,runCoalescing:on?.ngZoneRunCoalescing}),scheduleInRootZone:Hn}),ignoreChangesOutsideZone:Mi}),{provide:ht.hk6,useExisting:cn.Ts$},ht.gv8],$i=(0,cn.VzW)(Tt.moduleType,this.injector,ki);return Mr(),function Ms(Bt){const ft=Kr(Bt)?Bt.r3Injector:Bt.moduleRef.injector,Tt=ft.get(cn.SKi);return Tt.run(()=>{Kr(Bt)?Bt.r3Injector.resolveInjectorInitializers():Bt.moduleRef.resolveInjectorInitializers();const on=ft.get(ht.ZTf);let Hn;if(Tt.runOutsideAngular(()=>{Hn=Tt.onError.subscribe({next:on})}),Kr(Bt)){const ni=()=>ft.destroy(),Mi=Bt.platformInjector.get(ar);Mi.add(ni),ft.onDestroy(()=>{Hn.unsubscribe(),Mi.delete(ni)})}else{const ni=()=>Bt.moduleRef.destroy(),Mi=Bt.platformInjector.get(ar);Mi.add(ni),Bt.moduleRef.onDestroy(()=>{(0,cn.TFI)(Bt.allPlatformModules,Bt.moduleRef),Hn.unsubscribe(),Mi.delete(ni)})}return function qr(Bt,ft,Tt){try{const on=Tt();return(0,cn.yLl)(on)?on.catch(Hn=>{throw ft.runOutsideAngular(()=>Bt(Hn)),Hn}):on}catch(on){throw ft.runOutsideAngular(()=>Bt(on)),on}}(on,Tt,()=>{const ni=ft.get(ht.rev),Mi=ni.add(),ki=ft.get(cn.H1s);return ki.runInitializers(),ki.donePromise.then(()=>{const $i=ft.get(cn.xe9,cn.DkB);if((0,cn.e6s)($i||cn.DkB),!ft.get(Xr,!0))return Kr(Bt)?ft.get(cn.o8S):(Bt.allPlatformModules.push(Bt.moduleRef),Bt.moduleRef);if(Kr(Bt)){const ba=ft.get(cn.o8S);return void 0!==Bt.rootComponent&&ba.bootstrap(Bt.rootComponent),ba}return Hi?.(Bt.moduleRef,Bt.allPlatformModules),Bt.moduleRef}).finally(()=>{ni.remove(Mi)})})})}({moduleRef:$i,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(Tt,on=[]){const Hn=(0,cn.lJT)({},on);return Mr(),function Jo(Bt,ft,Tt){const on=new cn.Co$(Tt);return Promise.resolve(on)}(0,0,Tt).then(ni=>this.bootstrapModuleFactory(ni,Hn))}onDestroy(Tt){this._destroyListeners.push(Tt)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ht.buA(404,!1);this._modules.slice().forEach(on=>on.destroy()),this._destroyListeners.forEach(on=>on());const Tt=this._injector.get(ar,null);Tt&&(Tt.forEach(on=>on()),Tt.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(on){return new(on||Bt)((0,ht.KVO)(ht.zZn))};static \u0275prov=(0,ht.jDH)({token:Bt,factory:Bt.\u0275fac,providedIn:"platform"})}return Bt})(),_s=null;function Yr(Bt,ft,Tt=[]){const on=`Platform: ${ft}`,Hn=new ht.nKC(on);return(ni=[])=>{let Mi=Za();if(!Mi){const ki=[...Tt,...ni,{provide:Hn,useValue:!0}];Mi=Bt?.(ki)??function es(Bt){if(Za())throw new ht.buA(400,!1);(0,cn.pl0)(),(0,cn.ypd)(),_s=Bt;const ft=Bt.get(Pa);return function Ws(Bt){const ft=Bt.get(cn.PLl,null);(0,ht.N4e)(Bt,()=>{ft?.forEach(Tt=>Tt())})}(Bt),ft}(function Aa(Bt=[],ft){return ht.zZn.create({name:ft,providers:[{provide:ht.GBX,useValue:"platform"},{provide:ar,useValue:new Set([()=>_s=null])},...Bt]})}(ki,on))}return function Ha(){const ft=Za();if(!ft)throw new ht.buA(-401,!1);return ft}()}}function Za(){return _s?.get(Pa)??null}function ct(){return!1}let Ni=(()=>class Bt{static __NG_ELEMENT_ID__=ca})();function ca(Bt){return function Er(Bt,ft,Tt){if((0,ht.Qs1)(Bt)&&!Tt){const on=(0,ht.KdJ)(Bt.index,ft);return new cn.NCX(on,on)}return 175&Bt.type?new cn.NCX(ft[ht.b5C],ft):null}((0,ht.Mx4)(),(0,ht.OAn)(),!(16&~Bt))}class _t{constructor(){}supports(ft){return(0,cn.ozJ)(ft)}create(ft){return new Bn(ft)}}const xn=(Bt,ft)=>ft;class Bn{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(ft){this._trackByFn=ft||xn}forEachItem(ft){let Tt;for(Tt=this._itHead;null!==Tt;Tt=Tt._next)ft(Tt)}forEachOperation(ft){let Tt=this._itHead,on=this._removalsHead,Hn=0,ni=null;for(;Tt||on;){const Mi=!on||Tt&&Tt.currentIndex{Mi=this._trackByFn(Hn,ki),null!==Tt&&Object.is(Tt.trackById,Mi)?(on&&(Tt=this._verifyReinsertion(Tt,ki,Mi,Hn)),Object.is(Tt.item,ki)||this._addIdentityChange(Tt,ki)):(Tt=this._mismatch(Tt,ki,Mi,Hn),on=!0),Tt=Tt._next,Hn++}),this.length=Hn;return this._truncate(Tt),this.collection=ft,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let ft;for(ft=this._previousItHead=this._itHead;null!==ft;ft=ft._next)ft._nextPrevious=ft._next;for(ft=this._additionsHead;null!==ft;ft=ft._nextAdded)ft.previousIndex=ft.currentIndex;for(this._additionsHead=this._additionsTail=null,ft=this._movesHead;null!==ft;ft=ft._nextMoved)ft.previousIndex=ft.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(ft,Tt,on,Hn){let ni;return null===ft?ni=this._itTail:(ni=ft._prev,this._remove(ft)),null!==(ft=null===this._unlinkedRecords?null:this._unlinkedRecords.get(on,null))?(Object.is(ft.item,Tt)||this._addIdentityChange(ft,Tt),this._reinsertAfter(ft,ni,Hn)):null!==(ft=null===this._linkedRecords?null:this._linkedRecords.get(on,Hn))?(Object.is(ft.item,Tt)||this._addIdentityChange(ft,Tt),this._moveAfter(ft,ni,Hn)):ft=this._addAfter(new wi(Tt,on),ni,Hn),ft}_verifyReinsertion(ft,Tt,on,Hn){let ni=null===this._unlinkedRecords?null:this._unlinkedRecords.get(on,null);return null!==ni?ft=this._reinsertAfter(ni,ft._prev,Hn):ft.currentIndex!=Hn&&(ft.currentIndex=Hn,this._addToMoves(ft,Hn)),ft}_truncate(ft){for(;null!==ft;){const Tt=ft._next;this._addToRemovals(this._unlink(ft)),ft=Tt}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(ft,Tt,on){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(ft);const Hn=ft._prevRemoved,ni=ft._nextRemoved;return null===Hn?this._removalsHead=ni:Hn._nextRemoved=ni,null===ni?this._removalsTail=Hn:ni._prevRemoved=Hn,this._insertAfter(ft,Tt,on),this._addToMoves(ft,on),ft}_moveAfter(ft,Tt,on){return this._unlink(ft),this._insertAfter(ft,Tt,on),this._addToMoves(ft,on),ft}_addAfter(ft,Tt,on){return this._insertAfter(ft,Tt,on),this._additionsTail=null===this._additionsTail?this._additionsHead=ft:this._additionsTail._nextAdded=ft,ft}_insertAfter(ft,Tt,on){const Hn=null===Tt?this._itHead:Tt._next;return ft._next=Hn,ft._prev=Tt,null===Hn?this._itTail=ft:Hn._prev=ft,null===Tt?this._itHead=ft:Tt._next=ft,null===this._linkedRecords&&(this._linkedRecords=new ur),this._linkedRecords.put(ft),ft.currentIndex=on,ft}_remove(ft){return this._addToRemovals(this._unlink(ft))}_unlink(ft){null!==this._linkedRecords&&this._linkedRecords.remove(ft);const Tt=ft._prev,on=ft._next;return null===Tt?this._itHead=on:Tt._next=on,null===on?this._itTail=Tt:on._prev=Tt,ft}_addToMoves(ft,Tt){return ft.previousIndex===Tt||(this._movesTail=null===this._movesTail?this._movesHead=ft:this._movesTail._nextMoved=ft),ft}_addToRemovals(ft){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ur),this._unlinkedRecords.put(ft),ft.currentIndex=null,ft._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=ft,ft._prevRemoved=null):(ft._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=ft),ft}_addIdentityChange(ft,Tt){return ft.item=Tt,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=ft:this._identityChangesTail._nextIdentityChange=ft,ft}}class wi{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(ft,Tt){this.item=ft,this.trackById=Tt}}class Ea{_head=null;_tail=null;add(ft){null===this._head?(this._head=this._tail=ft,ft._nextDup=null,ft._prevDup=null):(this._tail._nextDup=ft,ft._prevDup=this._tail,ft._nextDup=null,this._tail=ft)}get(ft,Tt){let on;for(on=this._head;null!==on;on=on._nextDup)if((null===Tt||Tt<=on.currentIndex)&&Object.is(on.trackById,ft))return on;return null}remove(ft){const Tt=ft._prevDup,on=ft._nextDup;return null===Tt?this._head=on:Tt._nextDup=on,null===on?this._tail=Tt:on._prevDup=Tt,null===this._head}}class ur{map=new Map;put(ft){const Tt=ft.trackById;let on=this.map.get(Tt);on||(on=new Ea,this.map.set(Tt,on)),on.add(ft)}get(ft,Tt){const Hn=this.map.get(ft);return Hn?Hn.get(ft,Tt):null}remove(ft){const Tt=ft.trackById;return this.map.get(Tt).remove(ft)&&this.map.delete(Tt),ft}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eo(Bt,ft,Tt){const on=Bt.previousIndex;if(null===on)return on;let Hn=0;return Tt&&on{if(Tt&&Tt.key===Hn)this._maybeAddToChanges(Tt,on),this._appendAfter=Tt,Tt=Tt._next;else{const ni=this._getOrCreateRecordForKey(Hn,on);Tt=this._insertBeforeOrAppend(Tt,ni)}}),Tt){Tt._prev&&(Tt._prev._next=null),this._removalsHead=Tt;for(let on=Tt;null!==on;on=on._nextRemoved)on===this._mapHead&&(this._mapHead=null),this._records.delete(on.key),on._nextRemoved=on._next,on.previousValue=on.currentValue,on.currentValue=null,on._prev=null,on._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(ft,Tt){if(ft){const on=ft._prev;return Tt._next=ft,Tt._prev=on,ft._prev=Tt,on&&(on._next=Tt),ft===this._mapHead&&(this._mapHead=Tt),this._appendAfter=ft,ft}return this._appendAfter?(this._appendAfter._next=Tt,Tt._prev=this._appendAfter):this._mapHead=Tt,this._appendAfter=Tt,null}_getOrCreateRecordForKey(ft,Tt){if(this._records.has(ft)){const Hn=this._records.get(ft);this._maybeAddToChanges(Hn,Tt);const ni=Hn._prev,Mi=Hn._next;return ni&&(ni._next=Mi),Mi&&(Mi._prev=ni),Hn._next=null,Hn._prev=null,Hn}const on=new qo(ft);return this._records.set(ft,on),on.currentValue=Tt,this._addToAdditions(on),on}_reset(){if(this.isDirty){let ft;for(this._previousMapHead=this._mapHead,ft=this._previousMapHead;null!==ft;ft=ft._next)ft._nextPrevious=ft._next;for(ft=this._changesHead;null!==ft;ft=ft._nextChanged)ft.previousValue=ft.currentValue;for(ft=this._additionsHead;null!=ft;ft=ft._nextAdded)ft.previousValue=ft.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(ft,Tt){Object.is(Tt,ft.currentValue)||(ft.previousValue=ft.currentValue,ft.currentValue=Tt,this._addToChanges(ft))}_addToAdditions(ft){null===this._additionsHead?this._additionsHead=this._additionsTail=ft:(this._additionsTail._nextAdded=ft,this._additionsTail=ft)}_addToChanges(ft){null===this._changesHead?this._changesHead=this._changesTail=ft:(this._changesTail._nextChanged=ft,this._changesTail=ft)}_forEach(ft,Tt){ft instanceof Map?ft.forEach(Tt):Object.keys(ft).forEach(on=>Tt(ft[on],on))}}class qo{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(ft){this.key=ft}}function yl(){return new Sr([new _t])}let Sr=(()=>{class Bt{factories;static \u0275prov=(0,ht.jDH)({token:Bt,providedIn:"root",factory:yl});constructor(Tt){this.factories=Tt}static create(Tt,on){if(null!=on){const Hn=on.factories.slice();Tt=Tt.concat(Hn)}return new Bt(Tt)}static extend(Tt){return{provide:Bt,useFactory:()=>{const on=(0,ht.WQX)(Bt,{optional:!0,skipSelf:!0});return Bt.create(Tt,on||yl())}}}find(Tt){const on=this.factories.find(Hn=>Hn.supports(Tt));if(null!=on)return on;throw new ht.buA(901,!1)}}return Bt})();function Mo(){return new Eo([new Co])}let Eo=(()=>{class Bt{static \u0275prov=(0,ht.jDH)({token:Bt,providedIn:"root",factory:Mo});factories;constructor(Tt){this.factories=Tt}static create(Tt,on){if(on){const Hn=on.factories.slice();Tt=Tt.concat(Hn)}return new Bt(Tt)}static extend(Tt){return{provide:Bt,useFactory:()=>{const on=(0,ht.WQX)(Bt,{optional:!0,skipSelf:!0});return Bt.create(Tt,on||Mo())}}}find(Tt){const on=this.factories.find(Hn=>Hn.supports(Tt));if(on)return on;throw new ht.buA(901,!1)}}return Bt})();const ns=Yr(null,"core",[]);let vi=(()=>{class Bt{constructor(Tt){}static \u0275fac=function(on){return new(on||Bt)((0,ht.KVO)(cn.o8S))};static \u0275mod=(0,cn.$C)({type:Bt});static \u0275inj=(0,ht.G2t)({})}return Bt})();function di(Bt){return"boolean"==typeof Bt?Bt:null!=Bt&&"false"!==Bt}function ji(Bt,ft=NaN){return isNaN(parseFloat(Bt))||isNaN(Number(Bt))?ft:Number(Bt)}const pl=Symbol("NOT_SET"),il=new Set,Lo={...Gt.s0,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:pl,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(null===this.sequence.lastPhase||this.sequence.lastPhase((0,Gt.mK)(ra),ra.value),ra.signal[Gt.bh]=ra,ra.registerCleanupFn=ba=>(ra.cleanup??=new Set).add(ba),this.nodes[ki]=ra,this.hooks[ki]=ba=>ra.phaseFn(ba)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(const ft of this.nodes)if(ft)try{for(const Tt of ft.cleanup??il)Tt()}finally{(0,Gt.XR)(ft)}}}function Vl(Bt,ft){const Tt=ft?.injector??(0,ht.WQX)(ht.zZn),on=Tt.get(ht.hk6),Hn=Tt.get(cn.cf$),ni=Tt.get(cn.a8H,null,{optional:!0});Hn.impl??=Tt.get(cn.ziy);let Mi=Bt;"function"==typeof Mi&&(Mi={mixedReadWrite:Bt});const ki=Tt.get(ht.r4V,null,{optional:!0}),$i=new Dl(Hn.impl,[Mi.earlyRead,Mi.write,Mi.mixedReadWrite,Mi.read],ki?.view,on,Tt,ni?.snapshot(null));return Hn.impl.register($i),$i}function Al(Bt,ft){const Tt=(0,ht.xUg)(Bt),on=ft.elementInjector||(0,ht.WB9)();return new cn.eHC(Tt).create(on,ft.projectableNodes,ft.hostElement,ft.environmentInjector,ft.directives,ft.bindings)}function Io(Bt){const ft=(0,ht.xUg)(Bt);if(!ft)return null;const Tt=new cn.eHC(ft);return{get selector(){return Tt.selector},get type(){return Tt.componentType},get inputs(){return Tt.inputs},get outputs(){return Tt.outputs},get ngContentSelectors(){return Tt.ngContentSelectors},get isStandalone(){return ft.standalone},get isSignal(){return ft.signals}}}},73664(ke,q,l){"use strict";l.d(q,{$C:()=>_p,$Ln:()=>c8,AVh:()=>B4,Ab1:()=>G1,Agw:()=>Go,Avn:()=>mm,B1s:()=>Mt,BIS:()=>Ho,BMQ:()=>Yp,C4Q:()=>Bd,C5r:()=>Y6,C6U:()=>T_,C7A:()=>Rr,Co$:()=>fp,DH7:()=>s5,DNE:()=>v4,DUP:()=>Yo,DkB:()=>u6,Dyx:()=>W8,E5c:()=>B6,EFF:()=>U4,EJ8:()=>V3,FsC:()=>U3,FuF:()=>O3,G5x:()=>zc,GBs:()=>E_,H1s:()=>Bp,HbH:()=>B_,Hgh:()=>a6,JRh:()=>N6,Jt5:()=>d6,Jv_:()=>g5,KED:()=>z9,LHq:()=>Em,Lme:()=>F6,NAR:()=>M_,NCX:()=>Fd,NOj:()=>W2,NSC:()=>M2,NYb:()=>x7,NyB:()=>D_,OA$:()=>St,OR8:()=>Kc,Ocv:()=>dy,Ol2:()=>z3,PLl:()=>Vo,PYC:()=>An,PYt:()=>cl,PeT:()=>y4,QTQ:()=>Ac,Ql9:()=>ay,R50:()=>U6,R7$:()=>rd,RPW:()=>zi,RV6:()=>Q8,SKi:()=>pr,SdG:()=>M6,SdI:()=>Z5,SpI:()=>V4,TFI:()=>S4,Ts$:()=>ag,UQu:()=>iy,V5L:()=>Rm,VBU:()=>pp,VeQ:()=>xl,VkB:()=>u5,Vt3:()=>m4,VwU:()=>xm,VzW:()=>mp,WPN:()=>Ta,XpG:()=>x_,Xx1:()=>Pe,Y8G:()=>cm,YEm:()=>hr,Z7z:()=>H8,Zhj:()=>lp,_9s:()=>Xc,_9u:()=>Bl,_jY:()=>Qs,_qm:()=>js,_ys:()=>au,a8H:()=>Fc,aCM:()=>wt,aKT:()=>Pr,ai1:()=>h5,bIt:()=>bm,bMT:()=>I5,bVm:()=>yh,bc$:()=>ws,bkB:()=>lc,brH:()=>k5,c1b:()=>Qo,cDI:()=>kr,cZr:()=>tg,cdK:()=>u8,cf$:()=>b1,czy:()=>Ad,d80:()=>ry,dOL:()=>l8,e6s:()=>bv,eHC:()=>o2,eq3:()=>Tm,eu8:()=>s6,eux:()=>vh,fX1:()=>G8,gXe:()=>Ui,giA:()=>J3,gil:()=>_r,hnC:()=>$s,i5U:()=>K6,iLQ:()=>f8,iWE:()=>Ft,j41:()=>O4,jOp:()=>Kp,k0s:()=>dm,kBR:()=>c6,kS0:()=>va,kdw:()=>Qe,lJ4:()=>b5,lJT:()=>p8,l_i:()=>x5,lsd:()=>S_,mGM:()=>w_,mNQ:()=>d5,mU9:()=>f2,mal:()=>M0,mxI:()=>wm,n$t:()=>B2,nI1:()=>A5,nI4:()=>lu,nM4:()=>xp,nVh:()=>z8,npT:()=>l0,nrm:()=>i6,o8S:()=>q3,ozJ:()=>e4,p2i:()=>ai,phd:()=>M7,pl0:()=>m8,qex:()=>hm,rAh:()=>On,rOR:()=>Uo,rXU:()=>ys,rj2:()=>um,sFG:()=>$f,sMw:()=>C5,sZ2:()=>ns,sdS:()=>A_,sgu:()=>dp,tSv:()=>H2,tvf:()=>Wo,uiO:()=>le,utN:()=>Ym,vDg:()=>Qm,vxM:()=>U8,w6W:()=>B3,wEZ:()=>Cm,wni:()=>E6,wr$:()=>id,xGo:()=>vt,xc7:()=>I6,xe9:()=>q5,yLl:()=>d8,y_5:()=>Fe,ypd:()=>E7,ziy:()=>Uc,zoo:()=>C0});var qt=l(10467),S=l(2615),Xt=l(48440),de=l(21413),ae=l(18359),me=l(96354);function Le(n){return{toString:n}.toString()}const et="__annotations__",tn="__parameters__",Vt="__prop__metadata__";function hn(n,r,c,b,k){return Le(()=>{const W=En(r);function te(...xe){if(this instanceof te)return W.call(this,...xe),this;const Ae=new te(...xe);return function(Ct){return k&&k(Ct,...xe),(Ct.hasOwnProperty(et)?Ct[et]:Object.defineProperty(Ct,et,{value:[]})[et]).push(Ae),Ct}}return c&&(te.prototype=Object.create(c.prototype)),te.prototype.ngMetadataName=n,te.annotationCls=te,te})}function En(n){return function(...c){if(n){const b=n(...c);for(const k in b)this[k]=b[k]}}}function _n(n,r,c){return Le(()=>{const b=En(r);function k(...W){if(this instanceof k)return b.apply(this,W),this;const te=new k(...W);return xe.annotation=te,xe;function xe(Ae,ut,Ct){const Zt=Ae.hasOwnProperty(tn)?Ae[tn]:Object.defineProperty(Ae,tn,{value:[]})[tn];for(;Zt.length<=Ct;)Zt.push(null);return(Zt[Ct]=Zt[Ct]||[]).push(te),Ae}}return k.prototype.ngMetadataName=n,k.annotationCls=k,k})}const Fe=(0,S.z6V)(_n("Inject",n=>({token:n})),-1),Pe=(0,S.z6V)(_n("Optional"),8),Ue=(0,S.z6V)(_n("Self"),2),Qe=(0,S.z6V)(_n("SkipSelf"),4),Ie=(0,S.z6V)(_n("Host"),1);function le(n){const r=S.laP.ng;if(r&&r.\u0275compilerFacade)return r.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ne={\u0275\u0275defineInjectable:S.jDH,\u0275\u0275defineInjector:S.G2t,\u0275\u0275inject:S.KVO,\u0275\u0275invalidFactoryDep:S.dmw,resolveForwardRef:S.nl4},ze=Function;function Je(n){return"function"==typeof n}const gt=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,zt=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Ye=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,st=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class He{_reflect;constructor(r){this._reflect=r||S.laP.Reflect}factory(r){return(...c)=>new r(...c)}_zipTypesAndAnnotations(r,c){let b;b=(0,S.WfI)(typeof r>"u"?c.length:r.length);for(let k=0;k"u"?[]:r[k]&&r[k]!=Object?[r[k]]:[],c&&null!=c[k]&&(b[k]=b[k].concat(c[k]));return b}_ownParameters(r,c){if(function it(n){return gt.test(n)||st.test(n)||zt.test(n)&&!Ye.test(n)}(r.toString()))return null;if(r.parameters&&r.parameters!==c.parameters)return r.parameters;const k=r.ctorParameters;if(k&&k!==c.ctorParameters){const xe="function"==typeof k?k():k,Ae=xe.map(Ct=>Ct&&Ct.type),ut=xe.map(Ct=>Ct&&Wt(Ct.decorators));return this._zipTypesAndAnnotations(Ae,ut)}const W=r.hasOwnProperty(tn)&&r[tn],te=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",r);return te||W?this._zipTypesAndAnnotations(te,W):(0,S.WfI)(r.length)}parameters(r){if(!Je(r))return[];const c=we(r);let b=this._ownParameters(r,c);return!b&&c!==Object&&(b=this.parameters(c)),b||[]}_ownAnnotations(r,c){if(r.annotations&&r.annotations!==c.annotations){let b=r.annotations;return"function"==typeof b&&b.annotations&&(b=b.annotations),b}return r.decorators&&r.decorators!==c.decorators?Wt(r.decorators):r.hasOwnProperty(et)?r[et]:null}annotations(r){if(!Je(r))return[];const c=we(r),b=this._ownAnnotations(r,c)||[];return(c!==Object?this.annotations(c):[]).concat(b)}_ownPropMetadata(r,c){if(r.propMetadata&&r.propMetadata!==c.propMetadata){let b=r.propMetadata;return"function"==typeof b&&b.propMetadata&&(b=b.propMetadata),b}if(r.propDecorators&&r.propDecorators!==c.propDecorators){const b=r.propDecorators,k={};return Object.keys(b).forEach(W=>{k[W]=Wt(b[W])}),k}return r.hasOwnProperty(Vt)?r[Vt]:null}propMetadata(r){if(!Je(r))return{};const c=we(r),b={};if(c!==Object){const W=this.propMetadata(c);Object.keys(W).forEach(te=>{b[te]=W[te]})}const k=this._ownPropMetadata(r,c);return k&&Object.keys(k).forEach(W=>{const te=[];b.hasOwnProperty(W)&&te.push(...b[W]),te.push(...k[W]),b[W]=te}),b}ownPropMetadata(r){return Je(r)&&this._ownPropMetadata(r,we(r))||{}}hasLifecycleHook(r,c){return r instanceof ze&&c in r.prototype}}function Wt(n){return n?n.map(r=>new(0,r.type.annotationCls)(...r.args?r.args:[])):[]}function we(n){const r=n.prototype?Object.getPrototypeOf(n.prototype):null;return(r?r.constructor:null)||Object}class We{previousValue;currentValue;firstChange;constructor(r,c,b){this.previousValue=r,this.currentValue=c,this.firstChange=b}isFirstChange(){return this.firstChange}}function Lt(n,r,c,b){null!==r?r.applyValueToInputSignal(r,b):n[c]=b}const St=(()=>{const n=()=>At;return n.ngInherit=!0,n})();function At(n){return n.type.prototype.ngOnChanges&&(n.setInput=mt),fn}function fn(){const n=wn(this),r=n?.current;if(r){const c=n.previous;if(c===S.MZA)n.previous=r;else for(let b in r)c[b]=r[b];n.current=null,this.ngOnChanges(r)}}function mt(n,r,c,b,k){const W=this.declaredInputs[b],te=wn(n)||function In(n,r){return n[It]=r}(n,{previous:S.MZA,current:null}),xe=te.current||(te.current={}),Ae=te.previous,ut=Ae[W];xe[W]=new We(ut&&ut.currentValue,c,Ae===S.MZA),Lt(n,r,k,c)}const It="__ngSimpleChanges__";function wn(n){return n[It]||null}const ei=[],Ze=function(n,r=null,c){for(let b=0;b=b)break}else r[Ae]<0&&(n[S.wVl]+=65536),(xe>14>16&&(3&n[S.Wg1])===r&&(n[S.Wg1]+=16384,Ii(xe,W)):Ii(xe,W)}class nn{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(r,c,b,k){this.factory=r,this.name=k,this.canSeeViewProviders=c,this.injectImpl=b}}function Nn(n){return null!=n&&"object"==typeof n&&(null===n.insertBeforeIndex||"number"==typeof n.insertBeforeIndex||Array.isArray(n.insertBeforeIndex))}function Kn(n){return 3===n||4===n||6===n}function ci(n){return 64===n.charCodeAt(0)}function Xn(n,r){if(null!==r&&0!==r.length)if(null===n||0===n.length)n=r.slice();else{let c=-1;for(let b=0;br){te=W-1;break}}}for(;W>16}(n),b=r;for(;c>0;)b=b[S.X5O],c--;return b}let Ln=!0;function Zn(n){const r=Ln;return Ln=n,r}let Bi=0;const _a={};function un(n,r){const c=fi(n,r);if(-1!==c)return c;const b=r[S.eDl];b.firstCreatePass&&(n.injectorIndex=r.length,Sn(b.data,n),Sn(r,null),Sn(b.blueprint,null));const k=Dn(n,r),W=n.injectorIndex;if(sa(k)){const te=ma(k),xe=dn(k,r),Ae=xe[S.eDl].data;for(let ut=0;ut<8;ut++)r[W+ut]=xe[te+ut]|Ae[te+ut]}return r[W+8]=k,W}function Sn(n,r){n.push(0,0,0,0,0,0,0,0,r)}function fi(n,r){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===r[n.injectorIndex+8]?-1:n.injectorIndex}function Dn(n,r){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let c=0,b=null,k=r;for(;null!==k;){if(b=Yi(k),null===b)return-1;if(c++,k=k[S.X5O],-1!==b.injectorIndex)return b.injectorIndex|c<<16}return-1}function ti(n,r,c){!function Sa(n,r,c){let b;"string"==typeof c?b=c.charCodeAt(0)||0:c.hasOwnProperty(S.p9y)&&(b=c[S.p9y]),null==b&&(b=c[S.p9y]=Bi++);const k=255&b;r.data[n+(k>>5)]|=1<=0?255&r:xt:r}(c);if("function"==typeof W){if(!(0,S.ihb)(r,n,b))return 1&b?Xi(k,c,b):Ma(r,c,b,k);try{let te;if(te=W(b),null!=te||8&b)return te;(0,S.$Hz)(c)}finally{(0,S.niQ)()}}else if("number"==typeof W){let te=null,xe=fi(n,r),Ae=-1,ut=1&b?r[S.b5C][S.qlT]:null;for((-1===xe||4&b)&&(Ae=-1===xe?Dn(n,r):r[xe+8],-1!==Ae&&la(b,!1)?(te=r[S.eDl],xe=ma(Ae),r=dn(Ae,r)):xe=-1);-1!==xe;){const Ct=r[S.eDl];if(Oi(W,xe,Ct.data)){const Zt=ht(xe,r,c,te,b,ut);if(Zt!==_a)return Zt}Ae=r[xe+8],-1!==Ae&&la(b,r[S.eDl].data[xe+8]===ut)&&Oi(W,xe,r)?(te=Ct,xe=ma(Ae),r=dn(Ae,r)):xe=-1}}return k}function ht(n,r,c,b,k,W){const te=r[S.eDl],xe=te.data[n+8],Ct=Gt(xe,te,c,null==b?(0,S.Qs1)(xe)&&Ln:b!=te&&!!(3&xe.type),1&k&&W===xe);return null!==Ct?si(r,te,Ct,xe,k):_a}function Gt(n,r,c,b,k){const W=n.providerIndexes,te=r.data,xe=1048575&W,Ae=n.directiveStart,Ct=W>>20,yn=k?xe+Ct:n.directiveEnd;for(let Cn=b?xe:xe+Ct;Cn=Ae&&ri.type===c)return Cn}if(k){const Cn=te[Ae];if(Cn&&(0,S.JlV)(Cn)&&Cn.type===c)return Ae}return null}function si(n,r,c,b,k){let W=n[c];const te=r.data;if(W instanceof nn){const xe=W;if(xe.resolving){const Cn=(0,S.PP7)(te[c]);throw(0,S.PQT)(Cn)}const Ae=Zn(xe.canSeeViewProviders);xe.resolving=!0;const Zt=xe.injectImpl?(0,S.a2B)(xe.injectImpl):null;(0,S.ihb)(n,b,0);try{W=n[c]=xe.factory(void 0,k,te,n,b),r.firstCreatePass&&c>=b.directiveStart&&function Ge(n,r,c){const{ngOnChanges:b,ngOnInit:k,ngDoCheck:W}=r.type.prototype;if(b){const te=At(r);(c.preOrderHooks??=[]).push(n,te),(c.preOrderCheckHooks??=[]).push(n,te)}k&&(c.preOrderHooks??=[]).push(0-n,k),W&&((c.preOrderHooks??=[]).push(n,W),(c.preOrderCheckHooks??=[]).push(n,W))}(c,te[c],r)}finally{null!==Zt&&(0,S.a2B)(Zt),Zn(Ae),xe.resolving=!1,(0,S.niQ)()}}return W}function Oi(n,r,c){return!!(c[r+(n>>5)]&1<{const r=n.prototype.constructor,c=r[S.zSs]||rn(r),b=Object.prototype;let k=Object.getPrototypeOf(n.prototype).constructor;for(;k&&k!==b;){const W=k[S.zSs]||rn(k);if(W&&W!==c)return W;k=Object.getPrototypeOf(k)}return W=>new W})}function rn(n){return(0,S.Jzi)(n)?()=>{const r=rn((0,S.nl4)(n));return r&&r()}:(0,S.wGu)(n)}function Yi(n){const r=n[S.eDl],c=r.type;return 2===c?r.declTNode:1===c?n[S.qlT]:null}function va(n){return function Ci(n,r){if("class"===r)return n.classes;if("style"===r)return n.styles;const c=n.attrs;if(c){const b=c.length;let k=0;for(;k({attributeName:n,__NG_ELEMENT_ID__:()=>va(n)}));let $a=null;function Ga(n){return Ar(function ir(){return $a=$a||new He}().parameters(n))}function Ar(n){return n.map(r=>function ds(n){const r={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(n)&&n.length>0)for(let c=0;cfunction us(n,r){let c=null,b=null;n.hasOwnProperty(S.yAH)||Object.defineProperty(n,S.yAH,{get:()=>(null===c&&(c=le().compileInjectable(Ne,`ng:///${n.name}/\u0275prov.js`,function Zr(n,r){const c=r||{providedIn:null},b={name:n.name,type:n,typeArgumentCount:0,providedIn:c.providedIn};return(zo(c)||ms(c))&&void 0!==c.deps&&(b.deps=Ar(c.deps)),zo(c)?b.useClass=c.useClass:function fs(n){return hs in n}(c)?b.useValue=c.useValue:ms(c)?b.useFactory=c.useFactory:function bo(n){return void 0!==n.useExisting}(c)&&(b.useExisting=c.useExisting),b}(n,r))),c)}),n.hasOwnProperty(S.zSs)||Object.defineProperty(n,S.zSs,{get:()=>{if(null===b){const k=le();b=k.compileFactory(Ne,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,typeArgumentCount:0,deps:Ga(n),target:k.FactoryTarget.Injectable})}return b},configurable:!0})}(n,r));function Cs(){return Ka((0,S.Mx4)(),(0,S.OAn)())}function Ka(n,r){return new Pr((0,S.d31)(n,r))}let Pr=(()=>class n{nativeElement;constructor(c){this.nativeElement=c}static __NG_ELEMENT_ID__=Cs})();function Is(n){return n instanceof Pr?n.nativeElement:n}function Wr(){return this._results[Symbol.iterator]()}class Uo{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new de.B}constructor(r=!1){this._emitDistinctChangesOnly=r}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,c){return this._results.reduce(r,c)}forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,c){this.dirty=!1;const b=(0,S.Bqz)(r);(this._changesDetected=!(0,S.ng7)(this._results,b,c))&&(this._results=b,this.length=b.length,this.last=b[this.length-1],this.first=b[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(r){this._onDirty=r}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Wr}function Jr(n){return!(128&~n.flags)}var dr=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(dr||{});const ar=new Map;let Xr=0;function Mr(n){ar.delete(n[S.ID])}const Yr="__ngContext__";function Aa(n,r){(0,S.q$2)(r)?(n[Yr]=r[S.ID],function Ms(n){ar.set(n[S.ID],n)}(r)):n[Yr]=r}function Ni(n){return Er(n[S.EJG])}function ca(n){return Er(n[S.K29])}function Er(n){for(;null!==n&&!(0,S.A0l)(n);)n=n[S.K29];return n}let hl;function Bl(n){hl=n}function hr(){if(void 0!==hl)return hl;if(typeof document<"u")return document;throw new S.buA(210,!1)}const ns=new S.nKC("",{providedIn:"root",factory:()=>vi}),vi="ng",Vo=new S.nKC(""),Go=new S.nKC("",{providedIn:"platform",factory:()=>"unknown"}),ws=new S.nKC(""),Ho=new S.nKC("",{providedIn:"root",factory:()=>hr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),fo={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},xl=new S.nKC("",{providedIn:"root",factory:()=>fo});function za(){const n=new fr;return n.store=function Cl(n,r){const c=n.getElementById(r+"-state");if("SCRIPT"===c?.tagName&&c.textContent)try{return JSON.parse(c.textContent)}catch(b){console.warn("Exception while restoring TransferState for app "+r,b)}return{}}(hr(),(0,S.WQX)(ns)),n}let fr=(()=>{class n{static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:za});store={};onSerializeCallbacks={};get(c,b){return void 0!==this.store[c]?this.store[c]:b}set(c,b){this.store[c]=b}remove(c){delete this.store[c]}hasKey(c){return this.store.hasOwnProperty(c)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(c,b){this.onSerializeCallbacks[c]=b}toJson(){for(const c in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(c))try{this.store[c]=this.onSerializeCallbacks[c]()}catch(b){console.warn("Exception in onSerialize callback: ",b)}return JSON.stringify(this.store).replace(/!1}),is=new S.nKC(""),Wo=new S.nKC(""),tl={passive:!0,capture:!0},Te=new WeakMap,je=new WeakMap,Be=new WeakMap,Ke=["click","keydown"],bt=["mouseenter","mouseover","focusin"];let Ht=null,sn=0;class Rn{callbacks=new Set;listener=()=>{for(const r of this.callbacks)r()}}function di(n,r){let c=je.get(n);if(!c){c=new Rn,je.set(n,c);for(const b of Ke)n.addEventListener(b,c.listener,tl)}return c.callbacks.add(r),()=>{const{callbacks:b,listener:k}=c;if(b.delete(r),0===b.size){je.delete(n);for(const W of Ke)n.removeEventListener(W,k,tl)}}}function ji(n,r){let c=Te.get(n);if(!c){c=new Rn,Te.set(n,c);for(const b of bt)n.addEventListener(b,c.listener,tl)}return c.callbacks.add(r),()=>{const{callbacks:b,listener:k}=c;if(b.delete(r),0===b.size){for(const W of bt)n.removeEventListener(W,k,tl);Te.delete(n)}}}const Do=new S.nKC("");function Ao(n){return!(32&~n.flags)}function jl(n){let r=n._lView;return 2===r[S.eDl].type?null:((0,S.EFk)(r)&&(r=r[S.Yw1]),r)}function oa(n){return n.get(is,!1,{optional:!0})}function gi(n,r){const c=n.contentQueries;if(null!==c){const b=(0,Xt.Ht)(null);try{for(let k=0;kn,createScript:n=>n,createScriptURL:n=>n})}catch{}return uo}function ac(n){return bc()?.createHTML(n)||n}function yd(){if(void 0===Il&&(Il=null,S.laP.trustedTypes))try{Il=S.laP.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Il}function t1(n){return yd()?.createHTML(n)||n}function e0(n){return yd()?.createScript(n)||n}function T2(n){return yd()?.createScriptURL(n)||n}class Rc{changingThisBreaksApplicationSecurity;constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${S.ok8})`}}class wh extends Rc{getTypeName(){return"HTML"}}class D2 extends Rc{getTypeName(){return"Style"}}class A2 extends Rc{getTypeName(){return"Script"}}class qe extends Rc{getTypeName(){return"URL"}}class Dt extends Rc{getTypeName(){return"ResourceURL"}}function wt(n){return n instanceof Rc?n.changingThisBreaksApplicationSecurity:n}function Ft(n,r){const c=function ln(n){return n instanceof Rc&&n.getTypeName()||null}(n);if(null!=c&&c!==r){if("ResourceURL"===c&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${c} (see ${S.ok8})`)}return c===r}function An(n){return new wh(n)}function On(n){return new D2(n)}function ai(n){return new A2(n)}function Mt(n){return new qe(n)}function zi(n){return new Dt(n)}function Wi(n){const r=new Ja(n);return function Fa(){try{return!!(new window.DOMParser).parseFromString(ac(""),"text/html")}catch{return!1}}()?new Zi(r):r}class Zi{inertDocumentHelper;constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r=""+r;try{const c=(new window.DOMParser).parseFromString(ac(r),"text/html").body;return null===c?this.inertDocumentHelper.getInertBodyElement(r):(c.firstChild?.remove(),c)}catch{return null}}}class Ja{defaultDoc;inertDocument;constructor(r){this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(r){const c=this.inertDocument.createElement("template");return c.innerHTML=ac(r),c}}const Ts=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function _r(n){return(n=String(n)).match(Ts)?n:"unsafe:"+n}function vr(n){const r={};for(const c of n.split(","))r[c]=!0;return r}function yr(...n){const r={};for(const c of n)for(const b in c)c.hasOwnProperty(b)&&(r[b]=!0);return r}const Bs=vr("area,br,col,hr,img,wbr"),rl=vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ys=vr("rp,rt"),xc=yr(Bs,yr(rl,vr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),yr(Ys,vr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),yr(Ys,rl)),t0=vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),n0=yr(t0,vr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),vr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),i0=vr("script,style,template");class n1{sanitizedSomething=!1;buf=[];sanitizeChildren(r){let c=r.firstChild,b=!0,k=[];for(;c;)if(c.nodeType===Node.ELEMENT_NODE?b=this.startElement(c):c.nodeType===Node.TEXT_NODE?this.chars(c.nodeValue):this.sanitizedSomething=!0,b&&c.firstChild)k.push(c),c=L2(c);else for(;c;){c.nodeType===Node.ELEMENT_NODE&&this.endElement(c);let W=Th(c);if(W){c=W;break}c=k.pop()}return this.buf.join("")}startElement(r){const c=zs(r).toLowerCase();if(!xc.hasOwnProperty(c))return this.sanitizedSomething=!0,!i0.hasOwnProperty(c);this.buf.push("<"),this.buf.push(c);const b=r.attributes;for(let k=0;k"),!0}endElement(r){const c=zs(r).toLowerCase();xc.hasOwnProperty(c)&&!Bs.hasOwnProperty(c)&&(this.buf.push(""))}chars(r){this.buf.push(k2(r))}}function Th(n){const r=n.nextSibling;if(r&&n!==r.previousSibling)throw I2(r);return r}function L2(n){const r=n.firstChild;if(r&&function bd(n,r){return(n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,r))throw I2(r);return r}function zs(n){const r=n.nodeName;return"string"==typeof r?r:"FORM"}function I2(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const Dh=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xa=/([^\#-~ |!])/g;function k2(n){return n.replace(/&/g,"&").replace(Dh,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(Xa,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}let Cc;function id(n,r){let c=null;try{Cc=Cc||Wi(n);let b=r?String(r):"";c=Cc.getInertBodyElement(b);let k=5,W=b;do{if(0===k)throw new Error("Failed to sanitize html because the input is unstable");k--,b=W,W=c.innerHTML,c=Cc.getInertBodyElement(b)}while(b!==W);return ac((new n1).sanitizeChildren(_o(c)||c))}finally{if(c){const b=_o(c)||c;for(;b.firstChild;)b.firstChild.remove()}}}function _o(n){return"content"in n&&function ss(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}const i1=/^>|^->||--!>|)/g;function r1(n,r){return n.createText(r)}function R2(n,r,c){n.setValue(r,c)}function a0(n,r){return n.createComment(function a1(n){return n.replace(i1,r=>r.replace(ol,"\u200b$1\u200b"))}(r))}function s1(n,r,c){return n.createElement(r,c)}function Mc(n,r,c,b,k){n.insertBefore(r,c,b,k)}function O2(n,r,c){n.appendChild(r,c)}function r0(n,r,c,b,k){null!==b?Mc(n,r,c,b,k):O2(n,r,c)}function Cd(n,r,c,b){n.removeChild(null,r,c,b)}function Ur(n,r,c){const{mergedAttrs:b,classes:k,styles:W}=c;null!==b&&function kn(n,r,c){let b=0;for(;b-1){let W;for(;++kW?"":k[Ct+1].toLowerCase(),2&b&&ut!==Zt){if(Rl(b))return!1;te=!0}}}}else{if(!te&&!Rl(b)&&!Rl(Ae))return!1;if(te&&Rl(Ae))continue;te=!1,b=Ae|1&b}}return Rl(b)||te}function Rl(n){return!(1&n)}function K2(n,r,c,b){if(null===r)return-1;let k=0;if(b||!c){let W=!1;for(;k-1)for(c++;c0?'="'+xe+'"':"")+"]"}else 8&b?k+="."+te:4&b&&(k+=" "+te);else""!==k&&!Rl(te)&&(r+=p0(W,k),k=""),b=te,W=W||!Rl(b);c++}return""!==k&&(r+=p0(W,k)),r}const qa={};function wc(n,r,c,b,k,W,te,xe,Ae,ut,Ct){const Zt=S.Yw1+b,yn=Zt+k,Cn=function g0(n,r){const c=[];for(let b=0;b-1?1:1e3;return parseFloat(n)*r}function Sc(n,r){return n.getPropertyValue(r).split(",").map(b=>b.trim())}function Tc(n,r){return void 0!==n&&n.duration>r.duration}function Z2(n){return(null!=n.animationName||null!=n.propertyName)&&n.duration>0}function v0(n,r,c){if(!c)return;const b=n.getAnimations();return 0===b.length?function J2(n,r){const c=getComputedStyle(n),b=function p1(n){const r=Sc(n,"animation-name"),c=Sc(n,"animation-delay"),b=Sc(n,"animation-duration"),k={animationName:"",propertyName:void 0,duration:0};for(let W=0;Wk.duration&&(k.animationName=r[W],k.duration=te)}return k}(c),k=function $2(n){const r=Sc(n,"transition-property"),c=Sc(n,"transition-duration"),b=Sc(n,"transition-delay"),k={propertyName:"",duration:0,animationName:void 0};for(let W=0;Wk.duration&&(k.propertyName=r[W],k.duration=te)}return k}(c),W=b.duration>k.duration?b:k;Tc(r.get(n),W)||Z2(W)&&r.set(n,W)}(n,r):function Qh(n,r,c){let b={animationName:void 0,propertyName:void 0,duration:0};for(const k of c){const W=k.effect?.getTiming(),te="number"==typeof W?.duration?W.duration:0;let Ae,ut,xe=(W?.delay??0)+te;k.animationName?ut=k.animationName:Ae=k.transitionProperty,xe>=b.duration&&(b={animationName:ut,propertyName:Ae,duration:xe})}Tc(r.get(n),b)||Z2(b)&&r.set(n,b)}(n,r,b)}const Yo=new Set;var sd=function(n){return n[n.CHANGE_DETECTION=0]="CHANGE_DETECTION",n[n.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",n}(sd||{});const Fc=new S.nKC(""),g1=new Set;function Qs(n){g1.has(n)||(g1.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}const od=!1,lc=class q2 extends de.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(r=!1){super(),this.__isAsync=r,(0,S.M6u)()&&(this.destroyRef=(0,S.WQX)(S.abz,{optional:!0})??void 0,this.pendingTasks=(0,S.WQX)(S.rev,{optional:!0})??void 0)}emit(r){const c=(0,Xt.Ht)(null);try{super.next(r)}finally{(0,Xt.Ht)(c)}}subscribe(r,c,b){let k=r,W=c||(()=>null),te=b;if(r&&"object"==typeof r){const Ae=r;k=Ae.next?.bind(Ae),W=Ae.error?.bind(Ae),te=Ae.complete?.bind(Ae)}this.__isAsync&&(W=this.wrapInTimeout(W),k&&(k=this.wrapInTimeout(k)),te&&(te=this.wrapInTimeout(te)));const xe=super.subscribe({next:k,error:W,complete:te});return r instanceof ae.yU&&r.add(xe),xe}wrapInTimeout(r){return c=>{const b=this.pendingTasks?.add();setTimeout(()=>{try{r(c)}finally{void 0!==b&&this.pendingTasks?.remove(b)}})}}};function Ld(n){let r,c;function b(){n=S.lQ1;try{void 0!==c&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(c),void 0!==r&&clearTimeout(r)}catch{}}return r=setTimeout(()=>{n(),b()}),"function"==typeof requestAnimationFrame&&(c=requestAnimationFrame(()=>{n(),b()})),()=>b()}function y0(n){return queueMicrotask(()=>n()),()=>{n=S.lQ1}}const b0="isAngularZone",_1=b0+"_ID";let Zh=0;class pr{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new lc(!1);onMicrotaskEmpty=new lc(!1);onStable=new lc(!1);onError=new lc(!1);constructor(r){const{enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:b=!1,shouldCoalesceRunChangeDetection:k=!1,scheduleInRootZone:W=od}=r;if(typeof Zone>"u")throw new S.buA(908,!1);Zone.assertZonePatched();const te=this;te._nesting=0,te._outer=te._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(te._inner=te._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(te._inner=te._inner.fork(Zone.longStackTraceZoneSpec)),te.shouldCoalesceEventChangeDetection=!k&&b,te.shouldCoalesceRunChangeDetection=k,te.callbackScheduled=!1,te.scheduleInRootZone=W,function tu(n){const r=()=>{!function eu(n){function r(){Ld(()=>{n.callbackScheduled=!1,nu(n),n.isCheckStableRunning=!0,cc(n),n.isCheckStableRunning=!1})}n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,n.scheduleInRootZone?Zone.root.run(()=>{r()}):n._outer.run(()=>{r()}),nu(n))}(n)},c=Zh++;n._inner=n._inner.fork({name:"angular",properties:{[b0]:!0,[_1]:c,[_1+c]:!0},onInvokeTask:(b,k,W,te,xe,Ae)=>{if(function iu(n){return y1(n,"__ignore_ng_zone__")}(Ae))return b.invokeTask(W,te,xe,Ae);try{return ld(n),b.invokeTask(W,te,xe,Ae)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===te.type||n.shouldCoalesceRunChangeDetection)&&r(),Bc(n)}},onInvoke:(b,k,W,te,xe,Ae,ut)=>{try{return ld(n),b.invoke(W,te,xe,Ae,ut)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function x0(n){return y1(n,"__scheduler_tick__")}(Ae)&&r(),Bc(n)}},onHasTask:(b,k,W,te)=>{b.hasTask(W,te),k===W&&("microTask"==te.change?(n._hasPendingMicrotasks=te.microTask,nu(n),cc(n)):"macroTask"==te.change&&(n.hasPendingMacrotasks=te.macroTask))},onHandleError:(b,k,W,te)=>(b.handleError(W,te),n.runOutsideAngular(()=>n.onError.emit(te)),!1)})}(te)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(b0)}static assertInAngularZone(){if(!pr.isInAngularZone())throw new S.buA(909,!1)}static assertNotInAngularZone(){if(pr.isInAngularZone())throw new S.buA(909,!1)}run(r,c,b){return this._inner.run(r,c,b)}runTask(r,c,b,k){const W=this._inner,te=W.scheduleEventTask("NgZoneEvent: "+k,r,Jh,S.lQ1,S.lQ1);try{return W.runTask(te,c,b)}finally{W.cancelTask(te)}}runGuarded(r,c,b){return this._inner.runGuarded(r,c,b)}runOutsideAngular(r){return this._outer.run(r)}}const Jh={};function cc(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function nu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function ld(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Bc(n){n._nesting--,cc(n)}class v1{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new lc;onMicrotaskEmpty=new lc;onStable=new lc;onError=new lc;run(r,c,b){return r.apply(c,b)}runGuarded(r,c,b){return r.apply(c,b)}runOutsideAngular(r){return r()}runTask(r,c,b,k){return r.apply(c,b)}}function y1(n,r){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[r]}function zc(n="zone.js",r){return"noop"===n?new v1:"zone.js"===n?new pr(r):n}let b1=(()=>{class n{impl=null;execute(){this.impl?.execute()}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})();const C0=[0,1,2,3];let Uc=(()=>{class n{ngZone=(0,S.WQX)(pr);scheduler=(0,S.WQX)(S.hk6);errorHandler=(0,S.WQX)(S.zcH,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){(0,S.WQX)(Fc,{optional:!0})}execute(){const c=this.sequences.size>0;c&&Ze(16),this.executing=!0;for(const b of C0)for(const k of this.sequences)if(!k.erroredOrDestroyed&&k.hooks[b])try{k.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>(0,k.hooks[b])(k.pipelinedValue),k.snapshot))}catch(W){k.erroredOrDestroyed=!0,this.errorHandler?.handleError(W)}this.executing=!1;for(const b of this.sequences)b.afterRun(),b.once&&(this.sequences.delete(b),b.destroy());for(const b of this.deferredRegistrations)this.sequences.add(b);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),c&&Ze(17)}register(c){const{view:b}=c;void 0!==b?((b[S.JEi]??=[]).push(c),(0,S.blu)(b),b[S.Wg1]|=8192):this.executing?this.deferredRegistrations.add(c):this.addSequence(c)}addSequence(c){this.sequences.add(c),this.scheduler.notify(7)}unregister(c){this.executing&&this.sequences.has(c)?(c.erroredOrDestroyed=!0,c.pipelinedValue=void 0,c.once=!0):(this.sequences.delete(c),this.deferredRegistrations.delete(c))}maybeTrace(c,b){return b?b.run(sd.AFTER_NEXT_RENDER,c):c()}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})();class au{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(r,c,b,k,W,te=null){this.impl=r,this.hooks=c,this.view=b,this.once=k,this.snapshot=te,this.unregisterOnDestroy=W?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();const r=this.view?.[S.JEi];r&&(this.view[S.JEi]=r.filter(c=>c!==this))}}function M0(n,r){const c=r?.injector??(0,S.WQX)(S.zZn);return Qs("NgAfterNextRender"),ou(n,c,r,!0)}function ou(n,r,c,b){const k=r.get(b1);k.impl??=r.get(Uc);const W=r.get(Fc,null,{optional:!0}),te=!0!==c?.manualCleanup?r.get(S.abz):null,xe=r.get(S.r4V,null,{optional:!0}),Ae=new au(k.impl,function su(n){return n instanceof Function?[void 0,void 0,n,void 0]:[n.earlyRead,n.write,n.mixedReadWrite,n.read]}(n),xe?.view,b,te,W?.snapshot(null));return k.impl.register(Ae),Ae}const lu={destroy(){}},Id=new S.nKC("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function cu(n,r,c){const b=n.get(Id);if(Array.isArray(r))for(const k of r)b.queue.add(k),c?.detachedLeaveAnimationFns?.push(k);else b.queue.add(r),c?.detachedLeaveAnimationFns?.push(r);b.scheduler&&b.scheduler(n)}function qh(n){const r=n.get(Id);r.isScheduled||(M0(()=>{r.isScheduled=!1;for(let c of r.queue)c();r.queue.clear()},{injector:n}),r.isScheduled=!0)}function E0(n){const r=n.get(Id);r.scheduler=qh,r.scheduler(n)}function kd(n,r){for(const[c,b]of r)cu(n,b.animateFns)}function X(n,r,c,b){const k=n?.[S.Isx]?.enter;null!==r&&k&&k.has(c.index)&&kd(b,k)}function Rd(n,r,c,b,k,W,te,xe){if(null!=k){let Ae,ut=!1;(0,S.A0l)(k)?Ae=k:(0,S.q$2)(k)&&(ut=!0,k=k[S.jgP]);const Ct=(0,S.IvY)(k);0===n&&null!==b?(X(xe,b,W,c),null==te?O2(r,b,Ct):Mc(r,b,Ct,te||null,!0)):1===n&&null!==b?(X(xe,b,W,c),Mc(r,b,Ct,te||null,!0)):2===n?du(xe,W,c,Zt=>{Cd(r,Ct,ut,Zt)}):3===n&&du(xe,W,c,()=>{r.destroyNode(Ct)}),null!=Ae&&function L0(n,r,c,b,k,W,te){const xe=b[S.s6P];xe!==(0,S.IvY)(b)&&Rd(r,n,c,W,xe,k,te);for(let ut=S.Y20;ut=0?b[xe]():b[-xe].unsubscribe(),te+=2}else c[te].call(b[c[te+1]]);null!==b&&(r[S.VVG]=null);const k=r[S.Czx];if(null!==k){r[S.Czx]=null;for(let te=0;te{if(k.leave&&k.leave.has(r.index)){const te=k.leave.get(r.index),xe=[];if(te){for(let Ae=0;Ae{n[S.Isx].running=void 0,Yo.delete(n),r(!0)}):r(!1)}(n,b)}else n&&Yo.delete(n),b(!1)},k)}function D0(n,r,c){return uu(n,r.parent,c)}function uu(n,r,c){let b=r;for(;null!==b&&168&b.type;)b=(r=b).parent;if(null===b)return c[S.jgP];if((0,S.Qs1)(b)){const{encapsulation:k}=n.data[b.directiveStart+b.componentOffset];if(k===Ui.None||k===Ui.Emulated)return null}return(0,S.d31)(b,c)}function af(n,r,c){return hu(n,r,c)}function rf(n,r,c){return 40&n.type?(0,S.d31)(n,c):null}let fu,hu=rf;function sf(n,r){hu=n,fu=r}function mu(n,r,c,b){const k=D0(n,b,r),W=r[S.GpT],xe=af(b.parent||r[S.qlT],b,r);if(null!=k)if(Array.isArray(c))for(let Ae=0;AeS.Yw1&&Kh(n,r,S.Yw1,!1),Ze(te?2:0,k,c),c(b,k)}finally{(0,S.ypq)(W),Ze(te?3:1,k,c)}}function I0(n,r,c){(function hf(n,r,c){const b=c.directiveStart,k=c.directiveEnd;(0,S.Qs1)(c)&&function Xh(n,r,c){const b=(0,S.d31)(r,n),k=Q2(c),W=n[S.M0L].rendererFactory,te=f1(n,Ed(n,k,null,wd(c),b,r,null,W.createRenderer(b,c),null,null,null));n[r.index]=te}(r,c,n.data[b+c.componentOffset]),n.firstCreatePass||un(c,r);const W=c.initialInputs;for(let te=b;tenull;function k0(n,r,c,b,k,W){S1(n,r[S.eDl],r,c,b)?(0,S.Qs1)(n)&&O0(r,n.index):(3&n.type&&(c=function yu(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(c)),R0(n,r,c,b,k,W))}function R0(n,r,c,b,k,W){if(3&n.type){const te=(0,S.d31)(n,r);b=null!=W?W(b,n.value||"",c):b,k.setProperty(te,c,b)}}function O0(n,r){const c=(0,S.KdJ)(r,n);16&c[S.Wg1]||(c[S.Wg1]|=64)}function bu(n,r){null!==n.hostBindings&&n.hostBindings(1,r)}function N0(n,r){const c=n.directiveRegistry;let b=null;if(c)for(let k=0;k{(0,S.blu)(n.lView)},consumerOnSignalRead(){this.lView[S.Iaj]=this}},Cf={...Xt.pL,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:n=>{let r=(0,S._0$)(n.lView);for(;r&&!B0(r[S.eDl]);)r=(0,S._0$)(r);r&&(0,S.HAh)(r)},consumerOnSignalRead(){this.lView[S.Iaj]=this}};function B0(n){return 2!==n.type}function Tu(n){if(null===n[S.tQN])return;let r=!0;for(;r;){let c=!1;for(const b of n[S.tQN])b.dirty&&(c=!0,null===b.zone||Zone.current===b.zone?b.run():b.zone.run(()=>b.run()));r=c&&!!(8192&n[S.Wg1])}}function z0(n,r=0){const b=n[S.M0L].rendererFactory;b.begin?.();try{!function U0(n,r){const c=(0,S.yP_)();try{(0,S.cBl)(!0),V0(n,r);let b=0;for(;(0,S.dMS)(n);){if(100===b)throw new S.buA(103,!1);b++,V0(n,1)}}finally{(0,S.cBl)(c)}}(n,r)}finally{b.end?.()}}function Du(n,r,c,b){if((0,S.EPY)(r))return;const k=r[S.Wg1];(0,S.ID8)(r);let xe=!0,Ae=null,ut=null;B0(n)?(ut=function Eu(n){return n[S.Iaj]??function bf(n){const r=Mu.pop()??Object.create(xf);return r.lView=n,r}(n)}(r),Ae=(0,Xt.Bg)(ut)):null===(0,Xt.nR)()?(xe=!1,ut=function Su(n){const r=n[S.Iaj]??Object.create(Cf);return r.lView=n,r}(r),Ae=(0,Xt.Bg)(ut)):r[S.Iaj]&&((0,Xt.XR)(r[S.Iaj]),r[S.Iaj]=null);try{(0,S.HUe)(r),(0,S.Kw3)(n.bindingStartIndex),null!==c&&df(n,r,c,2,b);const Ct=!(3&~k);if(Ct){const Cn=n.preOrderCheckHooks;null!==Cn&&Yt(r,Cn,null)}else{const Cn=n.preOrderHooks;null!==Cn&&bn(r,Cn,0,null),$n(r,0)}if(function Mf(n){for(let r=Ni(n);null!==r;r=ca(r)){if(!(2&r[S.Wg1]))continue;const c=r[S.nfM];for(let b=0;b0&&(c[k-1][S.K29]=r),b0&&(n[c-1][S.K29]=b[S.K29]);const W=(0,S.E6O)(n,S.Y20+r);ef(b[S.eDl],b);const te=W[S.Ds7];null!==te&&te.detachView(W[S.eDl]),b[S.f7T]=null,b[S.K29]=null,b[S.Wg1]&=-129}return b}function H0(n,r){const c=n[S.nfM],b=r[S.f7T];((0,S.q$2)(b)||r[S.b5C]!==b[S.f7T][S.b5C])&&(n[S.Wg1]|=2),null===c?n[S.nfM]=[r]:c.push(r)}class Fd{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){const r=this._lView,c=r[S.eDl];return Pd(c,r,c.firstChild,[])}constructor(r,c){this._lView=r,this._cdRefInjectingView=c}get context(){return this._lView[S.SKP]}set context(r){this._lView[S.SKP]=r}get destroyed(){return(0,S.EPY)(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const r=this._lView[S.f7T];if((0,S.A0l)(r)){const c=r[S.bm_],b=c?c.indexOf(this):-1;b>-1&&(Nd(r,b),(0,S.E6O)(c,b))}this._attachedToViewContainer=!1}x1(this._lView[S.eDl],this._lView)}onDestroy(r){(0,S.ik5)(this._lView,r)}markForCheck(){dd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S.Wg1]&=-129}reattach(){(0,S._gW)(this._lView),this._lView[S.Wg1]|=128}detectChanges(){this._lView[S.Wg1]|=1024,z0(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S.buA(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const r=(0,S.EFk)(this._lView),c=this._lView[S.rQE];null!==c&&!r&&w0(c,this._lView),tf(this._lView[S.eDl],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new S.buA(902,!1);this._appRef=r;const c=(0,S.EFk)(this._lView),b=this._lView[S.rQE];null!==b&&!c&&H0(b,this._lView),(0,S._gW)(this._lView)}}let Bd=(()=>class n{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=wf;constructor(c,b,k){this._declarationLView=c,this._declarationTContainer=b,this.elementRef=k}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(c,b){return this.createEmbeddedViewImpl(c,b)}createEmbeddedViewImpl(c,b,k){const W=dc(this._declarationLView,this._declarationTContainer,c,{embeddedViewInjector:b,dehydratedView:k});return new Fd(W)}})();function wf(){return D1((0,S.Mx4)(),(0,S.OAn)())}function D1(n,r){return 4&n.type?new Bd(r,n,Ka(n,r)):null}function k1(n,r,c){const b=r.insertBeforeIndex,k=Array.isArray(b)?b[0]:b;return null===k?rf(n,0,c):(0,S.IvY)(c[k])}function Pu(n,r,c,b,k){const W=r.insertBeforeIndex;if(Array.isArray(W)){let te=b,xe=null;if(3&r.type||(xe=te,te=k),null!==te&&-1===r.componentOffset)for(let Ae=1;Ae1)for(let c=n.length-2;c>=0;c--){const b=n[c];kf(b)||Rf(b,r)&&null===Of(b)&&Pf(b,r.index)}}function kf(n){return!(64&n.type)}function Rf(n,r){return kf(r)||n.index>r.index}function Of(n){const r=n.insertBeforeIndex;return Array.isArray(r)?r[0]:r}function Pf(n,r){const c=n.insertBeforeIndex;Array.isArray(c)?c[0]=r:(sf(k1,Pu),n.insertBeforeIndex=r)}function R1(n,r){const c=n.data[r];return null===c||"string"==typeof c?null:c.hasOwnProperty("currentCaseLViewIndex")?c:c.value}function Bf(n,r,c){const b=Pl(n,c,64,null,null);return Dc(r,b),b}function Q0(n,r){const c=r[n.currentCaseLViewIndex];return null===c?c:c<0?~c:c}function Fu(n){return n>>>17}function Bu(n){return(131070&n)>>>1}function $0(n,r,c){n.index=0;const b=Q0(r,c);n.removes=null!==b?r.remove[b]:S.Mlv}function O1(n){if(n.index0?n.lView[r]:(n.stack.push(n.index,n.removes),$0(n,n.lView[S.eDl].data[~r],n.lView),O1(n))}return 0===n.stack.length?(n.lView=void 0,null):(n.removes=n.stack.pop(),n.index=n.stack.pop(),O1(n))}function Gf(){const n={stack:[],index:-1};return function r(c,b){for(n.lView=b;n.stack.length;)n.stack.pop();return $0(n,c.value,b),O1.bind(null,n)}}function H(n,r,c){for(const b of c.node.cases[c.case]){const k=r.get(b.index-S.Yw1);k&&Cd(n,k,!1)}}function J(n){const r=n[S.qFA]??[],b=n[S.f7T][S.GpT],k=[];for(const W of r)void 0!==W.data.di?k.push(W):ot(W,b);n[S.qFA]=k}function ne(n){const{lContainer:r}=n,c=r[S.qFA];if(null===c)return;const k=r[S.f7T][S.GpT];for(const W of c)ot(W,k)}function ot(n,r){let c=0,b=n.firstChild;if(b){const k=n.data.r;for(;cclass n{destroyNode=null;static __NG_ELEMENT_ID__=()=>function hd(){const n=(0,S.OAn)(),r=(0,S.Mx4)(),c=(0,S.KdJ)(r.index,n);return((0,S.q$2)(c)?c:n)[S.GpT]}()})(),Zu=(()=>{class n{static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>null})}return n})();function B1(n){return void 0!==n.ngModule}function Kc(n){return!!(0,S.phH)(n)}function ea(n){return!!(0,S.oyA)(n)}function ha(n){return!!(0,S.HaV)(n)}function da(n){return!!(0,S.xUg)(n)}function Us(n,r){if((0,S.Jzi)(n)&&!(n=(0,S.nl4)(n)))throw new Error(`Expected forwardRef function, imported from "${(0,S.PP7)(r)}", to return a standalone entity or NgModule but got "${(0,S.PP7)(n)||n}".`);if(null==(0,S.phH)(n)){const c=(0,S.xUg)(n)||(0,S.HaV)(n)||(0,S.oyA)(n);if(null==c)throw B1(n)?new Error(`A module with providers was imported from "${(0,S.PP7)(r)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${(0,S.PP7)(n)}" type, imported from "${(0,S.PP7)(r)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!c.standalone)throw new Error(`The "${(0,S.PP7)(n)}" ${function er(n){return(0,S.xUg)(n)?"component":(0,S.HaV)(n)?"directive":(0,S.oyA)(n)?"pipe":"type"}(n)}, imported from "${(0,S.PP7)(r)}", is not standalone. Did you forget to add the standalone: true flag?`)}}class uc{ownerNgModule=new Map;ngModulesWithSomeUnresolvedDecls=new Set;ngModulesScopeCache=new Map;standaloneComponentsScopeCache=new Map;resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const r of this.ngModulesWithSomeUnresolvedDecls){const c=(0,S.phH)(r);if(c?.declarations)for(const b of Kl(c.declarations))da(b)&&this.ownerNgModule.set(b,r)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(r,c){this.resolveNgModulesDecls();const b=(0,S.xUg)(r);if(null===b)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${r}`);if(b.standalone){const k=this.getStandaloneComponentScope(r,c);return k.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...k.compilation.directives,...k.compilation.pipes,...k.compilation.ngModules]}}{if(!this.ownerNgModule.has(r))return{dependencies:[]};const k=this.getNgModuleScope(this.ownerNgModule.get(r));return k.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...k.compilation.directives,...k.compilation.pipes]}}}registerNgModule(r,c){if(!Kc(r))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${r}`);this.ngModulesWithSomeUnresolvedDecls.add(r)}clearScopeCacheFor(r){this.ngModulesScopeCache.delete(r),this.standaloneComponentsScopeCache.delete(r)}getNgModuleScope(r){if(this.ngModulesScopeCache.has(r))return this.ngModulesScopeCache.get(r);const c=this.computeNgModuleScope(r);return this.ngModulesScopeCache.set(r,c),c}computeNgModuleScope(r){const c=(0,S.WbQ)(r),b={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const k of Kl(c.imports))if(Kc(k)){const W=this.getNgModuleScope(k);Vs(W.exported.directives,b.compilation.directives),Vs(W.exported.pipes,b.compilation.pipes)}else{if(!(0,S.QuC)(k)){b.compilation.isPoisoned=!0;break}if(ha(k)||da(k))b.compilation.directives.add(k);else{if(!ea(k))throw new S.buA(980,"The standalone imported type is neither a component nor a directive nor a pipe");b.compilation.pipes.add(k)}}if(!b.compilation.isPoisoned)for(const k of Kl(c.declarations)){if(Kc(k)||(0,S.QuC)(k)){b.compilation.isPoisoned=!0;break}ea(k)?b.compilation.pipes.add(k):b.compilation.directives.add(k)}for(const k of Kl(c.exports))if(Kc(k)){const W=this.getNgModuleScope(k);Vs(W.exported.directives,b.exported.directives),Vs(W.exported.pipes,b.exported.pipes),Vs(W.exported.directives,b.compilation.directives),Vs(W.exported.pipes,b.compilation.pipes)}else ea(k)?b.exported.pipes.add(k):b.exported.directives.add(k);return b}getStandaloneComponentScope(r,c){if(this.standaloneComponentsScopeCache.has(r))return this.standaloneComponentsScopeCache.get(r);const b=this.computeStandaloneComponentScope(r,c);return this.standaloneComponentsScopeCache.set(r,b),b}computeStandaloneComponentScope(r,c){const b={compilation:{directives:new Set([r]),pipes:new Set,ngModules:new Set}};for(const k of(0,S.Bqz)(c??[])){const W=(0,S.nl4)(k);try{Us(W,r)}catch{return b.compilation.isPoisoned=!0,b}if(Kc(W)){b.compilation.ngModules.add(W);const te=this.getNgModuleScope(W);if(te.exported.isPoisoned)return b.compilation.isPoisoned=!0,b;Vs(te.exported.directives,b.compilation.directives),Vs(te.exported.pipes,b.compilation.pipes)}else if(ea(W))b.compilation.pipes.add(W);else{if(!ha(W)&&!da(W))return b.compilation.isPoisoned=!0,b;b.compilation.directives.add(W)}}return b}isOrphanComponent(r){const c=(0,S.xUg)(r);return!(!c||c.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(r)))}}function Vs(n,r){for(const c of n)r.add(c)}const Nl=new uc,Gr={};class fd{injector;parentInjector;constructor(r,c){this.injector=r,this.parentInjector=c}get(r,c,b){const k=this.injector.get(r,Gr,b);return k!==Gr||c===Gr?k:this.parentInjector.get(r,c,b)}}function z1(n,r,c){let b=c?n.styles:null,k=c?n.classes:null,W=0;if(null!==r)for(let te=0;te0&&(c.directiveToIndex=new Map);for(let yn=0;yn0;){const c=n[--r];if("number"==typeof c&&c<0)return c}return 0})(te)!=xe&&te.push(xe),te.push(c,b,W)}}(n,r,b,Sd(n,c,k.hostVars,qa),k)}function gg(n,r,c){if(c){if(r.exportAs)for(let b=0;bAe?xe[Ae]:null}"string"==typeof te&&(W+=2)}return null}(r,c,W,n.index)),null!==Ct)(Ct.__ngLastListenerFn__||Ct).__ngNextListenerFn__=te,Ct.__ngLastListenerFn__=te,ut=!0;else{const Zt=(0,S.d31)(n,c),yn=b?b(Zt):Zt,Cn=k.listen(yn,W,xe);(function _g(n){return n.startsWith("animation")||n.startsWith("transition")})(W)||Jm(b?Si=>b((0,S.IvY)(Si[n.index])):n.index,r,c,W,xe,Cn,!1)}return ut}function Jm(n,r,c,b,k,W,te){const xe=r.firstCreatePass?(0,S.vNG)(r):null,Ae=(0,S.d_l)(c),ut=Ae.length;Ae.push(k,W),xe&&xe.push(b,n,ut,(ut+1)*(te?-1:1))}function n4(n,r,c,b,k,W){const xe=r[S.eDl],Zt=r[c][xe.data[c].outputs[b]].subscribe(W);Jm(n.index,xe,r,k,W,Zt,!0)}const Hd=Symbol("BINDING");class tp extends ll{ngModule;constructor(r){super(),this.ngModule=r}resolveComponentFactory(r){const c=(0,S.xUg)(r);return new o2(c,this.ngModule)}}class o2 extends Vr{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function Sg(n){return Object.keys(n).map(r=>{const[c,b,k]=n[r],W={propName:c,templateName:r,isSignal:0!==(b&Td.SignalBased)};return k&&(W.transform=k),W})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function Tg(n){return Object.keys(n).map(r=>({propName:n[r],templateName:r}))}(this.componentDef.outputs),this.cachedOutputs}constructor(r,c){super(),this.componentDef=r,this.ngModule=c,this.componentType=r.type,this.selector=function jh(n){return n.map(Hh).join(",")}(r.selectors),this.ngContentSelectors=r.ngContentSelectors??[],this.isBoundToModule=!!c}create(r,c,b,k,W,te){Ze(22);const xe=(0,Xt.Ht)(null);try{const Ae=this.componentDef,ut=function rp(n,r,c,b){const k=n?["ng-version","20.3.26"]:function Wh(n){const r=[],c=[];let b=1,k=2;for(;b{if(1&c&&n)for(const b of n)b.create();if(2&c&&r)for(const b of r)b.update()}:null}(W,te),1,xe,Ae,null,null,null,[k],null)}(b,Ae,te,W),Ct=function Ag(n,r,c){let b=r instanceof S.uvJ?r:r?.injector;return b&&null!==n.getStandaloneInjector&&(b=n.getStandaloneInjector(b)||b),b?new fd(c,b):c}(Ae,k||this.ngModule,r),Zt=function Lg(n){const r=n.get(Xc,null);if(null===r)throw new S.buA(407,!1);return{rendererFactory:r,sanitizer:n.get(Zu,null),changeDetectionScheduler:n.get(S.hk6,null),ngReflect:!1}}(Ct),yn=Zt.rendererFactory.createRenderer(null,Ae),Cn=b?function i3(n,r,c,b){const W=b.get(Ul,!1)||c===Ui.ShadowDom,te=n.selectRootElement(r,W);return function gu(n){_u(n)}(te),te}(yn,b,Ae.encapsulation,Ct):function np(n,r){const c=function ap(n){return(n.selectors[0][0]||"div").toLowerCase()}(n);return s1(r,c,"svg"===c?S.jNX:"math"===c?S.rJ1:null)}(Ae,yn);!function ip(n){if("script"===n?.toLowerCase())throw new S.buA(905,!1)}(Cn?.tagName);const ri=te?.some(Lc)||W?.some(ia=>"function"!=typeof ia&&ia.bindings.some(Lc)),Si=Ed(null,ut,null,512|wd(Ae),null,null,Zt,yn,Ct,null,null);Si[S.Yw1]=Cn,(0,S.ID8)(Si);let Ki=null;try{const ia=a2(S.Yw1,Si,2,"#host",()=>ut.directiveRegistry,!0,0);Ur(yn,Cn,ia),Aa(Cn,Si),I0(ut,Si,ia),Wa(ut,ia,Si),Jf(ut,ia),void 0!==c&&function i4(n,r,c){const b=n.projection=[];for(let k=0;kclass n{static __NG_ELEMENT_ID__=sp})();function sp(){return Ic((0,S.Mx4)(),(0,S.OAn)())}const D3=Qo,A3=class extends D3{_lContainer;_hostTNode;_hostLView;constructor(r,c,b){super(),this._lContainer=r,this._hostTNode=c,this._hostLView=b}get element(){return Ka(this._hostTNode,this._hostLView)}get injector(){return new Ce(this._hostTNode,this._hostLView)}get parentInjector(){const r=Dn(this._hostTNode,this._hostLView);if(sa(r)){const c=dn(r,this._hostLView),b=ma(r);return new Ce(c[S.eDl].data[b+8],c)}return new Ce(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const c=Ju(this._lContainer);return null!==c&&c[r]||null}get length(){return this._lContainer.length-S.Y20}createEmbeddedView(r,c,b){let k,W;"number"==typeof b?k=b:null!=b&&(k=b.index,W=b.injector);const xe=r.createEmbeddedViewImpl(c||{},W,null);return this.insertImpl(xe,k,Gc(this._hostTNode,null)),xe}createComponent(r,c,b,k,W,te,xe){const Ae=r&&!Je(r);let ut;if(Ae)ut=c;else{const Ki=c||{};ut=Ki.index,b=Ki.injector,k=Ki.projectableNodes,W=Ki.environmentInjector||Ki.ngModuleRef,te=Ki.directives,xe=Ki.bindings}const Ct=Ae?r:new o2((0,S.xUg)(r)),Zt=b||this.parentInjector;if(!W&&null==Ct.ngModule){const ia=(Ae?Zt:this.parentInjector).get(S.uvJ,null);ia&&(W=ia)}(0,S.xUg)(Ct.componentType??{});const Si=Ct.create(Zt,k,null,W,te,xe);return this.insertImpl(Si.hostView,ut,Gc(this._hostTNode,null)),Si}insert(r,c){return this.insertImpl(r,c,!0)}insertImpl(r,c,b){const k=r._lView;if((0,S.ITl)(k)){const xe=this.indexOf(r);if(-1!==xe)this.detach(xe);else{const Ae=k[S.f7T],ut=new A3(Ae,Ae[S.qlT],Ae[S.f7T]);ut.detach(ut.indexOf(r))}}const W=this._adjustIndex(c),te=this._lContainer;return Hc(te,k,W,b),r.attachToViewContainerRef(),(0,S.EYC)(l2(te),W,r),r}move(r,c){return this.insert(r,c)}indexOf(r){const c=Ju(this._lContainer);return null!==c?c.indexOf(r):-1}remove(r){const c=this._adjustIndex(r,-1),b=Nd(this._lContainer,c);b&&((0,S.E6O)(l2(this._lContainer),c),x1(b[S.eDl],b))}detach(r){const c=this._adjustIndex(r,-1),b=Nd(this._lContainer,c);return b&&null!=(0,S.E6O)(l2(this._lContainer),c)?new Fd(b):null}_adjustIndex(r,c=0){return r??this.length+c}};function Ju(n){return n[S.bm_]}function l2(n){return n[S.bm_]||(n[S.bm_]=[])}function Ic(n,r){let c;const b=r[n.index];return(0,S.A0l)(b)?c=b:(c=ku(b,r,null,n),r[n.index]=c,f1(r,c)),fa(c,r,n,b),new A3(c,n,r)}let fa=function a4(n,r,c,b){if(n[S.s6P])return;let k;k=8&c.type?(0,S.IvY)(b):function c2(n,r){const c=n[S.GpT],b=c.createComment(""),k=(0,S.d31)(r,n),W=c.parentNode(k);return Mc(c,W,b,c.nextSibling(k),!1),b}(r,c),n[S.s6P]=k};class o4{queryList;matches=null;constructor(r){this.queryList=r}clone(){return new o4(this.queryList)}setDirty(){this.queryList.setDirty()}}class eh{queries;constructor(r=[]){this.queries=r}createEmbeddedView(r){const c=r.queries;if(null!==c){const b=null!==r.contentQueries?r.contentQueries[0]:c.length,k=[];for(let W=0;Wr.trim())}(r):r}}class d2{queries;constructor(r=[]){this.queries=r}elementStart(r,c){for(let b=0;b0)b.push(te[xe/2]);else{const ut=W[xe+1],Ct=r[-Ae];for(let Zt=S.Y20;Zt{b._dirtyCounter();const W=function ih(n,r){const c=n._lView,b=n._queryIndex;if(void 0===c||void 0===b||4&c[S.Wg1])return r?void 0:S.Mlv;const k=th(c,b),W=h4(c,b);return k.reset(W,Is),r?k.first:k._changesDetected||void 0===n._flatValue?n._flatValue=k.toArray():n._flatValue}(b,n);if(r&&void 0===W)throw new S.buA(-951,!1);return W});return b=k[Xt.bh],b._dirtyCounter=(0,S.vPA)(0),b._flatValue=void 0,k}function f2(n){return h2(!0,!1)}function $s(n){return h2(!0,!0)}function O3(n){return h2(!1,!1)}function V1(n,r){const c=n[Xt.bh];c._lView=(0,S.OAn)(),c._queryIndex=r,c._queryList=th(c._lView,r),c._queryList.onDirty(()=>c._dirtyCounter.update(b=>b+1))}function lp(n){const r=[],c=new Map;function b(k){let W=c.get(k);if(!W){const te=n(k);c.set(k,W=te.then(xe=>function F3(n,r){return"string"==typeof r?r:void 0!==r.status&&200!==r.status?Promise.reject(new S.buA(918,!1)):r.text()}(0,xe)))}return W}return Xd.forEach((k,W)=>{const te=[];k.templateUrl&&te.push(b(k.templateUrl).then(ut=>{k.template=ut}));const xe="string"==typeof k.styles?[k.styles]:k.styles||[];if(k.styles=xe,k.styleUrl&&k.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(k.styleUrls?.length){const ut=k.styles.length,Ct=k.styleUrls;k.styleUrls.forEach((Zt,yn)=>{xe.push(""),te.push(b(Zt).then(Cn=>{xe[ut+yn]=Cn,Ct.splice(Ct.indexOf(Zt),1),0==Ct.length&&(k.styleUrls=void 0)}))})}else k.styleUrl&&te.push(b(k.styleUrl).then(ut=>{xe.push(ut),k.styleUrl=void 0}));const Ae=Promise.all(te).then(()=>function rh(n){Qc.delete(n)}(W));r.push(Ae)}),function ah(){const n=Xd;Xd=new Map}(),Promise.all(r).then(()=>{})}let Xd=new Map;const Qc=new Set;function dp(){return 0===Xd.size}const sh=new Map;function f4(n,r){(function up(n,r,c){if(r&&r!==c)throw new Error(`Duplicate module registered for ${n} - ${(0,S.AsM)(r)} vs ${(0,S.AsM)(r.name)}`)})(r,sh.get(r)||null,n),sh.set(r,n)}let G1=class{},cl=class{};function B3(n,r){return new lh(n,r??null,[])}class lh extends G1{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new tp(this);constructor(r,c,b,k=!0){super(),this.ngModuleType=r,this._parent=c;const W=(0,S.phH)(r);this._bootstrapComponents=Kl(W.bootstrap),this._r3Injector=(0,S.Pz9)(r,c,[{provide:G1,useValue:this},{provide:ll,useValue:this.componentFactoryResolver},...b],(0,S.AsM)(r),new Set(["environment"])),k&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(c=>c()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class fp extends cl{moduleType;constructor(r){super(),this.moduleType=r}create(r){return new lh(this.moduleType,r,[])}}function mp(n,r,c){return new lh(n,r,c,!1)}class Rg extends G1{injector;componentFactoryResolver=new tp(this);instance=null;constructor(r){super();const c=new S.e5P([...r.providers,{provide:G1,useValue:this},{provide:ll,useValue:this.componentFactoryResolver}],r.parent||(0,S.WB9)(),r.debugName,new Set(["environment"]));this.injector=c,r.runEnvironmentInitializers&&c.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(r){this.injector.onDestroy(r)}}function z3(n,r,c=null){return new Rg({providers:n,parent:r,debugName:c,runEnvironmentInitializers:!0}).injector}let Og=(()=>{class n{_injector;cachedInjectors=new Map;constructor(c){this._injector=c}getOrCreateStandaloneInjector(c){if(!c.standalone)return null;if(!this.cachedInjectors.has(c)){const b=(0,S.jXY)(!1,c.type),k=b.length>0?z3([b],this._injector,`Standalone[${c.type.name}]`):null;this.cachedInjectors.set(c,k)}return this.cachedInjectors.get(c)}ngOnDestroy(){try{for(const c of this.cachedInjectors.values())null!==c&&c.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,S.jDH)({token:n,providedIn:"environment",factory:()=>new n((0,S.KVO)(S.uvJ))})}return n})();function pp(n){return Le(()=>{const r=$c(n),c={...r,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===dr.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&n.dependencies||null,getStandaloneInjector:r.standalone?k=>k.get(Og).getOrCreateStandaloneInjector(c):null,getExternalStyles:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||Ui.Emulated,styles:n.styles||S.Mlv,_:null,schemas:n.schemas||null,tView:null,id:""};r.standalone&&Qs("NgStandalone"),md(c);const b=n.dependencies;return c.directiveDefs=ch(b,gp),c.pipeDefs=ch(b,S.oyA),c.id=function Fg(n){let r=0;const b=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,"function"==typeof n.consts?"":n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery];for(const W of b.join("|"))r=Math.imul(31,r)+W.charCodeAt(0)|0;return r+=2147483648,"c"+r}(c),c})}function gp(n){return(0,S.xUg)(n)||(0,S.HaV)(n)}function _p(n){return Le(()=>({type:n.type,bootstrap:n.bootstrap||S.Mlv,declarations:n.declarations||S.Mlv,imports:n.imports||S.Mlv,exports:n.exports||S.Mlv,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Pg(n,r){if(null==n)return S.MZA;const c={};for(const b in n)if(n.hasOwnProperty(b)){const k=n[b];let W,te,xe,Ae;Array.isArray(k)?(xe=k[0],W=k[1],te=k[2]??W,Ae=k[3]||null):(W=k,te=k,xe=Td.None,Ae=null),c[W]=[b,xe,Ae],r[W]=te}return c}function vp(n){if(null==n)return S.MZA;const r={};for(const c in n)n.hasOwnProperty(c)&&(r[n[c]]=c);return r}function U3(n){return Le(()=>{const r=$c(n);return md(r),r})}function V3(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:n.standalone??!0,onDestroy:n.type.prototype.ngOnDestroy||null}}function $c(n){const r={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:r,inputConfig:n.inputs||S.MZA,exportAs:n.exportAs||null,standalone:n.standalone??!0,signals:!0===n.signals,selectors:n.selectors||S.Mlv,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:Pg(n.inputs,r),outputs:vp(n.outputs),debugInfo:null}}function md(n){n.features?.forEach(r=>r(n))}function ch(n,r){return n?()=>{const c="function"==typeof n?n():n,b=[];for(const k of c){const W=r(k);null!==W&&b.push(W)}return b}:null}function yp(n){return Object.getPrototypeOf(n.prototype).constructor}function m4(n){let r=yp(n.type),c=!0;const b=[n];for(;r;){let k;if((0,S.JlV)(n))k=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new S.buA(903,!1);k=r.\u0275dir}if(k){if(c){b.push(k);const te=n;te.inputs=p4(n.inputs),te.declaredInputs=p4(n.declaredInputs),te.outputs=p4(n.outputs);const xe=k.hostBindings;xe&&Ug(n,xe);const Ae=k.viewQuery,ut=k.contentQueries;if(Ae&&bp(n,Ae),ut&&zg(n,ut),Bg(n,k),(0,S.dwj)(n.outputs,k.outputs),(0,S.JlV)(k)&&k.data.animation){const Ct=n.data;Ct.animation=(Ct.animation||[]).concat(k.data.animation)}}const W=k.features;if(W)for(let te=0;te=0;b--){const k=n[b];k.hostVars=r+=k.hostVars,k.hostAttrs=Xn(k.hostAttrs,c=Xn(c,k.hostAttrs))}}(b)}function Bg(n,r){for(const c in r.inputs){if(!r.inputs.hasOwnProperty(c)||n.inputs.hasOwnProperty(c))continue;const b=r.inputs[c];void 0!==b&&(n.inputs[c]=b,n.declaredInputs[c]=r.declaredInputs[c])}}function p4(n){return n===S.MZA?{}:n===S.Mlv?[]:n}function bp(n,r){const c=n.viewQuery;n.viewQuery=c?(b,k)=>{r(b,k),c(b,k)}:r}function zg(n,r){const c=n.contentQueries;n.contentQueries=c?(b,k,W)=>{r(b,k,W),c(b,k,W)}:r}function Ug(n,r){const c=n.hostBindings;n.hostBindings=c?(b,k)=>{r(b,k),c(b,k)}:r}const H3=["providersResolver"],m2=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function xp(n){const r=c=>{const b=Array.isArray(n);null===c.hostDirectives?(c.resolveHostDirectives=Vg,c.hostDirectives=b?n.map(g4):[n]):b?c.hostDirectives.unshift(...n.map(g4)):c.hostDirectives.unshift(n)};return r.ngInherit=!0,r}function Vg(n){const r=[];let c=!1,b=null,k=null;for(let W=0;W{Be.has(n)&&(b.callbacks.delete(r),0===b.callbacks.size&&(Ht?.unobserve(n),Be.delete(n),sn--),0===sn&&(Ht?.disconnect(),Ht=null))}}(n,()=>b.run(r),()=>b.runOutsideAngular(()=>function Ia(){return new IntersectionObserver(n=>{for(const r of n)r.isIntersecting&&Be.has(r.target)&&Be.get(r.target).listener()})}()))}function Yd(n,r,c,b,k,W,te){const xe=n[S.YEL],Ae=xe.get(pr);let ut;ut=function ru(n,r){const c=r?.injector??(0,S.WQX)(S.zZn);return Qs("NgAfterRender"),ou(n,c,r,!1)}({read:function Ct(){if((0,S.EPY)(n))return void ut.destroy();const Zt=Fl(n,r),yn=Zt[1];if(yn!==p2.Initial&&yn!==Ir.Placeholder)return void ut.destroy();const Cn=function E4(n,r,c){return null==c?n:c>=0?(0,S.jRZ)(c,n):n[r.index][S.Y20]??null}(n,r,b);if(!Cn||(ut.destroy(),(0,S.EPY)(Cn)))return;const ri=function $g(n,r){return(0,S.vaC)(S.Yw1+r,n)}(Cn,c),Si=k(ri,()=>{Ae.run(()=>{n!==Cn&&(0,S.DyX)(Cn,Si),W()})},xe);n!==Cn&&(0,S.ik5)(Cn,Si),fh(te,Zt,Si)}},{injector:xe})}function mh(n,r){const c=r.get(O);return c.add(n),()=>c.remove(n)}let O=(()=>{class n{executingCallbacks=!1;idleId=null;current=new Set;deferred=new Set;ngZone=(0,S.WQX)(pr);requestIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout)().bind(globalThis);cancelIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout)().bind(globalThis);add(c){(this.executingCallbacks?this.deferred:this.current).add(c),null===this.idleId&&this.scheduleIdleCallback()}remove(c){const{current:b,deferred:k}=this;b.delete(c),k.delete(c),0===b.size&&0===k.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const c=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const b of this.current)b();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const b of this.deferred)this.current.add(b);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(c))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})();function E(n){return(r,c)=>y(n,r,c)}function y(n,r,c){const b=c.get(B),k=c.get(pr);return b.add(n,r,k),()=>b.remove(r)}let B=(()=>{class n{executingCallbacks=!1;timeoutId=null;invokeTimerAt=null;current=[];deferred=[];add(c,b,k){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+c,b),this.scheduleTimer(k)}remove(c){const{current:b,deferred:k}=this;-1===this.removeFromQueue(b,c)&&this.removeFromQueue(k,c),0===b.length&&0===k.length&&this.clearTimeout()}addToQueue(c,b,k){let W=c.length;for(let te=0;teb){W=te;break}(0,S.llW)(c,W,b,k)}removeFromQueue(c,b){let k=-1;for(let W=0;W-1&&(0,S.gsJ)(c,k,2),k}scheduleTimer(c){const b=()=>{this.clearTimeout(),this.executingCallbacks=!0;const W=[...this.current],te=Date.now();for(let Ae=0;Ae=0&&(0,S.gsJ)(this.current,0,xe+1),this.executingCallbacks=!1,this.deferred.length>0){for(let Ae=0;Ae0){const W=Date.now(),te=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-te>16){this.clearTimeout();const xe=Math.max(te-W,16);this.invokeTimerAt=te,this.timeoutId=c.runOutsideAngular(()=>setTimeout(()=>c.run(b),xe))}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})(),G=(()=>{class n{cachedInjectors=new Map;getOrCreateInjector(c,b,k,W){if(!this.cachedInjectors.has(c)){const te=k.length>0?z3(k,b,W):null;this.cachedInjectors.set(c,te)}return this.cachedInjectors.get(c)}ngOnDestroy(){try{for(const c of this.cachedInjectors.values())null!==c&&c.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,S.jDH)({token:n,providedIn:"environment",factory:()=>new n})}return n})();const Xe=new S.nKC("");function Ut(n,r,c){return n.get(G).getOrCreateInjector(r,n,c,"")}function pn(n,r,c,b=!1){const k=c[S.f7T],W=k[S.eDl];if((0,S.EPY)(k))return;const te=Fl(k,r),Ae=te[7];if(!(null!==Ae&&n0&&(Ct=function Qt(n,r,c){if(n instanceof fd){const k=n.injector,te=Ut(n.parentInjector,r,c);return new fd(k,te)}const b=n.get(S.uvJ);if(b!==n){const k=Ut(b,r,c);return new fd(n,k)}return Ut(n,r,c)}(k[S.YEL],ri,Si))}const{dehydratedView:Zt,dehydratedViewIx:yn}=function Pn(n,r){const c=n[S.qFA]?.findIndex(k=>k.data.s===r[1])??-1;return{dehydratedView:c>-1?n[S.qFA][c]:null,dehydratedViewIx:c}}(c,r),Cn=dc(k,Ae,null,{injector:Ct,dehydratedView:Zt});if(Hc(c,Cn,ut,Gc(Ae,Zt)),dd(Cn,2),yn>-1&&c[S.qFA]?.splice(yn,1),(n===Ir.Complete||n===Ir.Error)&&Array.isArray(r[8])){for(const ri of r[8])ri();r[8]=null}}Ze(21)}function xi(n,r,c,b,k){const W=Date.now(),xe=yo(k[S.eDl],b);if(null===r[2]||r[2]<=W){r[2]=null;const Ae=C4(xe),ut=null!==r[3];if(n!==Ir.Loading||null===Ae||ut){n>Ir.Loading&&ut&&(r[3](),r[3]=null,r[0]=null),Fn(n,r,c,b,k);const Ct=Q3(xe,n);null!==Ct&&(r[2]=W+Ct,yi(Ct,r,b,c,k))}else{r[0]=n;const Ct=yi(Ae,r,b,c,k);r[3]=Ct}}else r[0]=n}function yi(n,r,c,b,k){return y(n,()=>{const te=r[0];r[2]=null,r[0]=null,null!==te&&pn(te,c,b)},k[S.YEL])}function Ji(n,r){return n{n.loadingState===Gs.COMPLETE?pn(Ir.Complete,r,c):n.loadingState===Gs.FAILED&&pn(Ir.Error,r,c)})}let pa=null;function kr(n,r,c,b){return Le(()=>{const k=n;null!==r&&(k.hasOwnProperty("decorators")&&void 0!==k.decorators?k.decorators.push(...r):k.decorators=r),null!==c&&(k.ctorParameters=c),null!==b&&(k.propDecorators=k.hasOwnProperty("propDecorators")&&void 0!==k.propDecorators?{...k.propDecorators,...b}:b)})}let Rr=(()=>{class n{log(c){console.log(c)}warn(c){console.warn(c)}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const l8=new S.nKC(""),c8=new S.nKC("");let Fp,x7=(()=>{class n{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(c,b,k){this._ngZone=c,this.registry=b,(0,S.M6u)()&&(this._destroyRef=(0,S.WQX)(S.abz,{optional:!0})??void 0),Fp||(function C7(n){Fp=n}(k),k.addToWindow(b)),this._watchAngularEvents(),c.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){const c=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),b=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{pr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{c.unsubscribe(),b.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let c=this._callbacks.pop();clearTimeout(c.timeoutId),c.doneCb()}});else{let c=this.getPendingTasks();this._callbacks=this._callbacks.filter(b=>!b.updateCb||!b.updateCb(c)||(clearTimeout(b.timeoutId),!1))}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(c=>({source:c.source,creationLocation:c.creationLocation,data:c.data})):[]}addCallback(c,b,k){let W=-1;b&&b>0&&(W=setTimeout(()=>{this._callbacks=this._callbacks.filter(te=>te.timeoutId!==W),c()},b)),this._callbacks.push({doneCb:c,timeoutId:W,updateCb:k})}whenStable(c,b,k){if(k&&!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(c,b,k),this._runCallbacksIfReady()}registerApplication(c){this.registry.registerApplication(c,this)}unregisterApplication(c){this.registry.unregisterApplication(c)}findProviders(c,b,k){return[]}static \u0275fac=function(b){return new(b||n)((0,S.KVO)(pr),(0,S.KVO)(J3),(0,S.KVO)(c8))};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac})}return n})(),J3=(()=>{class n{_applications=new Map;registerApplication(c,b){this._applications.set(c,b)}unregisterApplication(c){this._applications.delete(c)}unregisterAllApplications(){this._applications.clear()}getTestability(c){return this._applications.get(c)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(c,b=!0){return Fp?.findTestabilityInTree(this,c,b)??null}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function d8(n){return!!n&&"function"==typeof n.then}function u8(n){return!!n&&"function"==typeof n.subscribe}const h8=new S.nKC("");function M7(n){return(0,S.EmA)([{provide:h8,multi:!0,useValue:n}])}let Bp=(()=>{class n{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((c,b)=>{this.resolve=c,this.reject=b});appInits=(0,S.WQX)(h8,{optional:!0})??[];injector=(0,S.WQX)(S.zZn);constructor(){}runInitializers(){if(this.initialized)return;const c=[];for(const k of this.appInits){const W=(0,S.N4e)(this.injector,k);if(d8(W))c.push(W);else if(u8(W)){const te=new Promise((xe,Ae)=>{W.subscribe({complete:xe,error:Ae})});c.push(te)}}const b=()=>{this.done=!0,this.resolve()};Promise.all(c).then(()=>{b()}).catch(k=>{this.reject(k)}),0===c.length&&b(),this.initialized=!0}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const f8=new S.nKC("");function m8(){}function E7(){(0,Xt.KO)(()=>{throw new S.buA(600,"")})}function p8(n,r){return Array.isArray(r)?r.reduce(p8,n):{...n,...r}}let q3=(()=>{class n{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=(0,S.WQX)(S.ZTf);afterRenderManager=(0,S.WQX)(b1);zonelessEnabled=(0,S.WQX)(S.Evm);rootEffectScheduler=(0,S.WQX)(S.VML);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new de.B;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=(0,S.WQX)(S.rev);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe((0,me.T)(c=>!c))}constructor(){(0,S.WQX)(Fc,{optional:!0})}whenStable(){let c;return new Promise(b=>{c=this.isStable.subscribe({next:k=>{k&&b()}})}).finally(()=>{c.unsubscribe()})}_injector=(0,S.WQX)(S.uvJ);_rendererFactory=null;get injector(){return this._injector}bootstrap(c,b){return this.bootstrapImpl(c,b)}bootstrapImpl(c,b,k=S.zZn.NULL){return this._injector.get(pr).run(()=>{Ze(10);const te=c instanceof Vr;if(!this._injector.get(Bp).done)throw new S.buA(405,"");let Ae;Ae=te?c:this._injector.get(ll).resolveComponentFactory(c),this.componentTypes.push(Ae.componentType);const ut=function w7(n){return n.isBoundToModule}(Ae)?void 0:this._injector.get(G1),Zt=Ae.create(k,[],b||Ae.selector,ut),yn=Zt.location.nativeElement,Cn=Zt.injector.get(l8,null);return Cn?.registerApplication(yn),Zt.onDestroy(()=>{this.detachView(Zt.hostView),S4(this.components,Zt),Cn?.unregisterApplication(yn)}),this._loadComponent(Zt),Ze(11,Zt),Zt})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Ze(12),null!==this.tracingSnapshot?this.tracingSnapshot.run(sd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new S.buA(101,!1);const c=(0,Xt.Ht)(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,(0,Xt.Ht)(c),this.afterTick.next(),Ze(13)}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Xc,null,{optional:!0}));let c=0;for(;0!==this.dirtyFlags&&c++<10;)Ze(14),this.synchronizeOnce(),Ze(15)}synchronizeOnce(){16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let c=!1;if(7&this.dirtyFlags){const b=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:k}of this.allViews)(b||(0,S.dMS)(k))&&(z0(k,b&&!this.zonelessEnabled?0:1),c=!0);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}c||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:c})=>(0,S.dMS)(c))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(c){const b=c;this._views.push(b),b.attachToAppRef(this)}detachView(c){const b=c;S4(this._views,b),b.detachFromAppRef()}_loadComponent(c){this.attachView(c.hostView);try{this.tick()}catch(k){this.internalErrorHandler(k)}this.components.push(c),this._injector.get(f8,[]).forEach(k=>k(c))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(c=>c()),this._views.slice().forEach(c=>c.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(c){return this._destroyListeners.push(c),()=>S4(this._destroyListeners,c)}destroy(){if(this._destroyed)throw new S.buA(406,!1);const c=this._injector;c.destroy&&!c.destroyed&&c.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function S4(n,r){const c=n.indexOf(r);c>-1&&n.splice(c,1)}function Up(){let n,r;return{promise:new Promise((b,k)=>{n=b,r=k}),resolve:n,reject:r}}function em(n){const r=(0,S.OAn)(),c=(0,S.Mx4)();if(qn(r,c),!_8(0,r))return;const b=r[S.YEL];fh(0,Fl(r,c),n(()=>Jd(0,r,c),b))}function Vp(n){const r=(0,S.OAn)(),c=r[S.YEL],b=(0,S.Mx4)(),W=yo(r[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&fh(1,Fl(r,b),n(()=>T4(W,r,b),c))}function g8(n,r,c){const b=r[S.YEL],k=Fl(r,c),W=k[6];fh(2,k,n(()=>b2(b,W),b))}function T4(n,r,c){Gp(n,r,c)}function Gp(n,r,c){const b=r[S.YEL],k=r[S.eDl];if(n.loadingState!==Gs.NOT_STARTED)return n.loadingPromise??Promise.resolve();const W=Fl(r,c),te=function Ip(n,r){return(0,S.XRZ)(n,r.primaryTmplIndex+S.Yw1)}(k,n);n.loadingState=Gs.IN_PROGRESS,x4(1,W);let xe=n.dependencyResolverFn;const Ae=b.get(S.u5s).add();return xe?(n.loadingPromise=Promise.allSettled(xe()).then(ut=>{let Ct=!1;const Zt=[],yn=[];for(const Cn of ut){if("fulfilled"!==Cn.status){Ct=!0;break}{const ri=Cn.value,Si=(0,S.xUg)(ri)||(0,S.HaV)(ri);if(Si)Zt.push(Si);else{const Ki=(0,S.oyA)(ri);Ki&&yn.push(Ki)}}}if(Ct){if(n.loadingState=Gs.FAILED,null===n.errorTmplIndex){const ri=new S.buA(-750,!1);Od(r,ri)}}else{n.loadingState=Gs.COMPLETE;const Cn=te.tView;if(Zt.length>0){Cn.directiveRegistry=$3(Cn.directiveRegistry,Zt);const ri=Zt.map(Ki=>Ki.type),Si=(0,S.jXY)(!1,...ri);n.providers=Si}yn.length>0&&(Cn.pipeRegistry=$3(Cn.pipeRegistry,yn))}}),n.loadingPromise.finally(()=>{n.loadingPromise=null,Ae()})):(n.loadingPromise=Promise.resolve().then(()=>{n.loadingPromise=null,n.loadingState=Gs.COMPLETE,Ae()}),n.loadingPromise)}function _8(n,r){return r[S.YEL].get(Xe,null,{optional:!0})?.behavior!==Dp.Manual}function Jd(n,r,c){const b=r[S.eDl],k=r[c.index];if(!_8(0,r))return;const W=Fl(r,c),te=yo(b,c);switch(Y3(W),te.loadingState){case Gs.NOT_STARTED:pn(Ir.Loading,c,k),Gp(te,r,c),te.loadingState===Gs.IN_PROGRESS&&Gi(te,c,k);break;case Gs.IN_PROGRESS:pn(Ir.Loading,c,k),Gi(te,c,k);break;case Gs.COMPLETE:pn(Ir.Complete,c,k);break;case Gs.FAILED:pn(Ir.Error,c,k)}}function b2(n,r,c){return Hp.apply(this,arguments)}function Hp(){return(Hp=(0,qt.A)(function*(n,r,c){const b=n.get(Do);if(b.hydrating.has(r))return;const{parentBlockPromise:W,hydrationQueue:te}=function _d(n,r){const c=r.get(Do),k=r.get(fr).get("__nghDeferData__",{});let W=!1,te=n,xe=null;const Ae=[];for(;!W&&te;){W=c.has(te);const ut=c.hydrating.get(te);if(null===xe&&null!=ut){xe=ut.promise;break}Ae.unshift(te),te=k[te].p}return{parentBlockPromise:xe,hydrationQueue:Ae}}(r,n);if(0===te.length)return;null!==W&&te.shift(),function y8(n,r){for(let c of r)n.hydrating.set(c,Up())}(b,te),null!==W&&(yield W);const xe=te[0];b.has(xe)?yield jp(n,te,c):b.awaitParentBlock(xe,(0,qt.A)(function*(){return yield jp(n,te,c)}))})).apply(this,arguments)}function jp(n,r,c){return Wp.apply(this,arguments)}function Wp(){return(Wp=(0,qt.A)(function*(n,r,c){const b=n.get(Do),k=b.hydrating,W=n.get(S.rev),te=W.add();for(let Ae=0;Ae-1?c.get(r[b]):null;k&&jt(k.lContainer)}function v8(n,r){const c=r.hydrating;for(const b in n)c.get(b)?.reject();r.cleanup(n)}function D7(n){return new Promise(r=>M0(r,{injector:n}))}function A7(n){return tm.apply(this,arguments)}function tm(){return(tm=(0,qt.A)(function*(n){const{tNode:r,lView:c}=n,b=Fl(c,r);return new Promise(k=>{(function L7(n,r){Array.isArray(n[8])||(n[8]=[]),n[8].push(r)})(b,k),Jd(0,c,r)})})).apply(this,arguments)}function Zs(n,r,c){return 0===n?x8(r,c):2!==n||!x8(r,c)}function x8(n,r){const c=n[S.YEL],b=yo(n[S.eDl],r),k=oa(c),W=function b8(n){return null!=n&&!(1&~n)}(b.flags),xe=null!==Fl(n,r)[6];return!(W&&xe&&k)}function W1(n,r){const c=yo(n,r);return c.hydrateTriggers??=new Map}function Kp(n,r){const c=(0,S.OAn)();if(os(c,(0,S.xbp)(),r)){const k=(0,S.klJ)(),W=(0,S.CpD)();if(S1(W,k,c,n,r))(0,S.Qs1)(W)&&O0(c,W.index);else{const xe=(0,S.d31)(W,c);M1(c[S.GpT],xe,null,W.value,n,r,null)}}return Kp}function Yp(n,r,c,b){const k=(0,S.OAn)();return os(k,(0,S.xbp)(),r)&&((0,S.klJ)(),function mf(n,r,c,b,k,W){const te=(0,S.d31)(n,r);M1(r[S.GpT],te,W,n.value,c,b,k)}((0,S.CpD)(),k,n,r,c,b)),Yp}const Y7=new S.nKC("",{providedIn:"root",factory:()=>!1}),Q7=new S.nKC("",{providedIn:"root",factory:()=>I8}),I8=4e3,X1=typeof document<"u"&&"function"==typeof document?.documentElement?.getAnimations;function nm(n){return n[S.YEL].get(Y7,!1)}function Qp(n){const r=ph.get(n);if(r){for(const c of r.cleanupFns)c();ph.delete(n)}x2.delete(n)}const R8=()=>{},ph=new WeakMap,x2=new WeakMap,gh=new WeakMap;function $p(n,r){const c=gh.get(n);if(c&&c.length>0){const b=c.findIndex(k=>k===r);b>-1&&c.splice(b,1)}0===c?.length&&gh.delete(n)}function A4(n,r){const c=gh.get(n)?.shift(),b=r[S.rQE];if(b){const W=C1(n.index,b)?.previousSibling;c&&W&&c===W&&c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))}}function O8(n,r){gh.has(n)?gh.get(n)?.push(r):gh.set(n,[r])}function _h(n){const r=n[S.Isx]??={};return r.enter??=new Map}function C2(n){const r=n[S.Isx]??={};return r.leave??=new Map}function P8(n){const r="function"==typeof n?n():n;let c=Array.isArray(r)?r:null;return"string"==typeof r&&(c=r.trim().split(/\s+/).filter(b=>b)),c}function N8(n,r){const c=x2.get(r);return void 0===c||r===n.target&&(void 0!==c.animationName&&n.animationName===c.animationName||void 0!==c.propertyName&&n.propertyName===c.propertyName)}function im(n,r,c){const b=n.get(r.index)??{animateFns:[]};b.animateFns.push(c),n.set(r.index,b)}function am(n,r){if(n)for(const c of n)c();for(const c of r)c()}function Zp(n,r){const c=C2(n).get(r.index);c&&(c.resolvers=void 0)}function L4(n,r,c,b,k){$p(r,c),am(b,k),Zp(n,r)}class sv{destroy(r){}updateValue(r,c){}swap(r,c){const b=Math.min(r,c),k=Math.max(r,c),W=this.detach(k);if(k-b>1){const te=this.detach(b);this.attach(b,W),this.attach(k,te)}else this.attach(b,W)}move(r,c){this.attach(c,this.detach(r))}}function qp(n,r,c,b,k){return n===c&&Object.is(r,b)?1:Object.is(k(n,r),k(c,b))?-1:0}function sm(n,r,c,b){return!(void 0===r||!r.has(b)||(n.attach(c,r.get(b)),r.delete(b),0))}function F8(n,r,c,b,k){if(sm(n,r,b,c(b,k)))n.updateValue(b,k);else{const W=n.create(b,k);n.attach(b,W)}}function B8(n,r,c,b){const k=new Set;for(let W=r;W<=c;W++)k.add(b(W,n.at(W)));return k}class e6{kvMap=new Map;_vMap=void 0;has(r){return this.kvMap.has(r)}delete(r){if(!this.has(r))return!1;const c=this.kvMap.get(r);return void 0!==this._vMap&&this._vMap.has(c)?(this.kvMap.set(r,this._vMap.get(c)),this._vMap.delete(c)):this.kvMap.delete(r),!0}get(r){return this.kvMap.get(r)}set(r,c){if(this.kvMap.has(r)){let b=this.kvMap.get(r);void 0===this._vMap&&(this._vMap=new Map);const k=this._vMap;for(;k.has(b);)b=k.get(b);k.set(b,c)}else this.kvMap.set(r,c)}forEach(r){for(let[c,b]of this.kvMap)if(r(b,c),void 0!==this._vMap){const k=this._vMap;for(;k.has(b);)b=k.get(b),r(b,c)}}}function z8(n,r,c,b,k,W,te,xe){Qs("NgControlFlow");const Ae=(0,S.OAn)(),ut=(0,S.klJ)();return H1(Ae,ut,n,r,c,b,k,(0,S.db4)(ut.consts,W),256,te,xe),om}function om(n,r,c,b,k,W,te,xe){Qs("NgControlFlow");const Ae=(0,S.OAn)(),ut=(0,S.klJ)();return H1(Ae,ut,n,r,c,b,k,(0,S.db4)(ut.consts,W),512,te,xe),om}function U8(n,r){Qs("NgControlFlow");const c=(0,S.OAn)(),b=(0,S.xbp)(),k=c[b]!==qa?c[b]:-1,W=-1!==k?lm(c,S.Yw1+k):void 0;if(os(c,b,n)){const xe=(0,Xt.Ht)(null);try{if(void 0!==W&&G0(W,0),-1!==n){const Ae=S.Yw1+n,ut=lm(c,Ae),Ct=t6(c[S.eDl],Ae),Zt=null;Hc(ut,dc(c,Ct,r,{dehydratedView:Zt}),0,Gc(Ct,Zt))}}finally{(0,Xt.Ht)(xe)}}else if(void 0!==W){const xe=Ru(W,0);void 0!==xe&&(xe[S.SKP]=r)}}class V8{lContainer;$implicit;$index;constructor(r,c,b){this.lContainer=r,this.$implicit=c,this.$index=b}get $count(){return this.lContainer.length-S.Y20}}function G8(n,r){return r}class cv{hasEmptyBlock;trackByFn;liveCollection;constructor(r,c,b){this.hasEmptyBlock=r,this.trackByFn=c,this.liveCollection=b}}function H8(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn){Qs("NgControlFlow");const Cn=(0,S.OAn)(),ri=(0,S.klJ)(),Si=void 0!==Ae,Ki=(0,S.OAn)(),ia=xe?te.bind(Ki[S.b5C][S.SKP]):te,Ai=new cv(Si,ia);Ki[S.Yw1+n]=Ai,H1(Cn,ri,n+1,r,c,b,k,(0,S.db4)(ri.consts,W),256),Si&&H1(Cn,ri,n+2,Ae,ut,Ct,Zt,(0,S.db4)(ri.consts,yn),512)}class j8 extends sv{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(r,c,b){super(),this.lContainer=r,this.hostLView=c,this.templateTNode=b}get length(){return this.lContainer.length-S.Y20}at(r){return this.getLView(r)[S.SKP].$implicit}attach(r,c){const b=c[S.tcA];this.needsIndexUpdate||=r!==this.length,Hc(this.lContainer,c,r,Gc(this.templateTNode,b)),function dv(n,r){if(n.length<=S.Y20)return;const b=n[S.Y20+r],k=b?b[S.Isx]:void 0;b&&k&&k.detachedLeaveAnimationFns&&k.detachedLeaveAnimationFns.length>0&&(function J4(n,r){const c=n.get(Id);if(r.detachedLeaveAnimationFns){for(const b of r.detachedLeaveAnimationFns)c.queue.delete(b);r.detachedLeaveAnimationFns=void 0}}(b[S.YEL],k),Yo.delete(b),k.detachedLeaveAnimationFns=void 0)}(this.lContainer,r)}detach(r){return this.needsIndexUpdate||=r!==this.length-1,function uv(n,r){if(n.length<=S.Y20)return;const b=n[S.Y20+r],k=b?b[S.Isx]:void 0;k&&k.leave&&k.leave.size>0&&(k.detachedLeaveAnimationFns=[])}(this.lContainer,r),function hv(n,r){return Nd(n,r)}(this.lContainer,r)}create(r,c){const k=dc(this.hostLView,this.templateTNode,new V8(this.lContainer,c,r),{dehydratedView:null});return this.operationsCounter?.recordCreate(),k}destroy(r){x1(r[S.eDl],r),this.operationsCounter?.recordDestroy()}updateValue(r,c){this.getLView(r)[S.SKP].$implicit=c}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let r=0;r{n.destroy(Ae)})}(Ae,n,W.trackByFn),Ae.updateIndexes(),W.hasEmptyBlock){const ut=(0,S.xbp)(),Ct=0===Ae.length;if(os(b,ut,Ct)){const Zt=c+2,yn=lm(b,Zt);if(Ct){const Cn=t6(k,Zt),ri=null;Hc(yn,dc(b,Cn,void 0,{dehydratedView:ri}),0,Gc(Cn,ri))}else k.firstUpdatePass&&J(yn),G0(yn,0)}}}finally{(0,Xt.Ht)(r)}}function lm(n,r){return n[r]}function t6(n,r){return(0,S.XRZ)(n,r)}function cm(n,r,c){const b=(0,S.OAn)();return os(b,(0,S.xbp)(),r)&&((0,S.klJ)(),k0((0,S.CpD)(),b,n,r,b[S.GpT],c)),cm}function n6(n,r,c,b,k){S1(r,n,c,k?"class":"style",b)}function O4(n,r,c,b){const k=(0,S.OAn)(),W=k[S.eDl],te=n+S.Yw1,xe=W.firstCreatePass?a2(te,k,2,r,N0,(0,S.ckz)(),c,b):W.data[te];if(E1(xe,k,n,r,r6),(0,S.yoD)(xe)){const Ae=k[S.eDl];I0(Ae,k,xe),Wa(Ae,xe,k)}return null!=b&&Ol(k,xe),O4}function dm(){const n=(0,S.klJ)(),c=w1((0,S.Mx4)());return n.firstCreatePass&&Jf(n,c),(0,S.UhH)(c)&&(0,S.krE)(),(0,S.N79)(),null!=c.classesWithoutHost&&function Un(n){return!!(8&n.flags)}(c)&&n6(n,c,(0,S.OAn)(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function ui(n){return!!(16&n.flags)}(c)&&n6(n,c,(0,S.OAn)(),c.stylesWithoutHost,!1),dm}function i6(n,r,c,b){return O4(n,r,c,b),dm(),i6}function um(n,r,c,b){const k=(0,S.OAn)(),W=k[S.eDl],te=n+S.Yw1,xe=W.firstCreatePass?qf(te,W,2,r,c,b):W.data[te];return E1(xe,k,n,r,r6),null!=b&&Ol(k,xe),um}function vh(){const r=w1((0,S.Mx4)());return(0,S.UhH)(r)&&(0,S.krE)(),(0,S.N79)(),vh}function a6(n,r,c,b){return um(n,r,c,b),vh(),a6}let r6=(n,r,c,b,k)=>((0,S.m7n)(!0),s1(r[S.GpT],b,(0,S.UaU)()));function hm(n,r,c){const b=(0,S.OAn)(),k=b[S.eDl],W=n+S.Yw1,te=k.firstCreatePass?a2(W,b,8,"ng-container",N0,(0,S.ckz)(),r,c):k.data[W];if(E1(te,b,n,"ng-container",o6),(0,S.yoD)(te)){const xe=b[S.eDl];I0(xe,b,te),Wa(xe,te,b)}return null!=c&&Ol(b,te),hm}function yh(){const n=(0,S.klJ)(),c=w1((0,S.Mx4)());return n.firstCreatePass&&Jf(n,c),yh}function s6(n,r,c){return hm(n,r,c),yh(),s6}function fm(n,r,c){const b=(0,S.OAn)(),k=b[S.eDl],W=n+S.Yw1,te=k.firstCreatePass?qf(W,k,8,"ng-container",r,c):k.data[W];return E1(te,b,n,"ng-container",o6),null!=c&&Ol(b,te),fm}function K8(){return w1((0,S.Mx4)()),yh}let o6=(n,r,c,b,k)=>((0,S.m7n)(!0),a0(r[S.GpT],""));function Q8(){return(0,S.OAn)()}function mm(n,r,c){const b=(0,S.OAn)();return os(b,(0,S.xbp)(),r)&&((0,S.klJ)(),R0((0,S.CpD)(),b,n,r,b[S.GpT],c)),mm}const pm=void 0;var gv=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],pm,[["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"]],pm,[["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}",pm,"{1} 'at' {0}",pm],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function l6(n){const r=Math.floor(Math.abs(n)),c=n.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===c?1:5}];let bh={};function c6(n){const r=function _v(n){return n.toLowerCase().replace(/_/g,"-")}(n);let c=Z8(r);if(c)return c;const b=r.split("-")[0];if(c=Z8(b),c)return c;if("en"===b)return gv;throw new S.buA(701,!1)}function d6(n){return c6(n)[M2.PluralCase]}function Z8(n){if(!(n in bh)){const r=S.laP.ng&&S.laP.ng.common&&S.laP.ng.common.locales&&S.laP.ng.common.locales[n];return void 0!==r&&(bh[n]=r),r}return bh[n]}var M2=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(M2||{});const J8=["zero","one","two","few","many"],u6="en-US",gm={marker:"element"},_m={marker:"ICU"};var $l=function(n){return n[n.SHIFT=2]="SHIFT",n[n.APPEND_EAGERLY=1]="APPEND_EAGERLY",n[n.COMMENT=2]="COMMENT",n}($l||{});let q8=u6;function bv(n){"string"==typeof n&&(q8=n.toLowerCase().replace(/_/g,"-"))}let P4=0,xh=0;let E2=(n,r,c,b)=>((0,S.m7n)(!0),function e_(n,r,c){const b=n[S.GpT];switch(c){case Node.COMMENT_NODE:return a0(b,r);case Node.TEXT_NODE:return r1(b,r);case Node.ELEMENT_NODE:return s1(b,r,null)}}(n,c,b));function t_(n,r,c,b){const k=c[S.GpT];let te,W=null;for(let xe=0;xe>>1,c),null,null,Cn,ri,null)}else switch(Ae){case _m:const ut=r[++xe],Ct=r[++xe];null===c[Ct]&&Aa(c[Ct]=E2(c,0,ut,Node.COMMENT_NODE),c);break;case gm:const Zt=r[++xe],yn=r[++xe];null===c[yn]&&Aa(c[yn]=E2(c,0,Zt,Node.ELEMENT_NODE),c)}}}function h6(n,r,c,b,k){for(let W=0;W>>2;switch(3&Ct){case 1:const yn=c[++ut],Cn=c[++ut],ri=n.data[Zt];if("string"==typeof ri)M1(r[S.GpT],r[Zt],null,ri,yn,Ae,Cn);else{const Ki=(0,S._px)();(0,S.ypq)(Zt);try{k0(ri,r,yn,Ae,r[S.GpT],Cn)}finally{(0,S.ypq)(Ki)}}break;case 0:const Si=r[Zt];null!==Si&&R2(r[S.GpT],Si,Ae);break;case 2:Sv(n,R1(n,Zt),r,Ae);break;case 3:n_(n,R1(n,Zt),b,r)}}}}else{const Ae=c[W+1];if(Ae>0&&!(3&~Ae)){const Ct=R1(n,Ae>>>2);r[Ct.currentCaseLViewIndex]<0&&n_(n,Ct,b,r)}}W+=xe}}function n_(n,r,c,b){let k=b[r.currentCaseLViewIndex];if(null!==k){let W=P4;k<0&&(k=b[r.currentCaseLViewIndex]=~k,W=-1),h6(n,b,r.update[k],c,W)}}function Sv(n,r,c,b){const k=function Tv(n,r){let c=n.cases.indexOf(r);if(-1===c)switch(n.type){case 1:{const b=function vv(n,r){const c=d6(r)(parseInt(n,10)),b=J8[c];return void 0!==b?b:"other"}(r,function xv(){return q8}());c=n.cases.indexOf(b),-1===c&&"other"!==b&&(c=n.cases.indexOf("other"));break}case 0:c=n.cases.indexOf("other")}return-1===c?null:c}(r,b);if(Q0(r,c)!==k&&(f6(n,r,c),c[r.currentCaseLViewIndex]=null===k?null:~k,null!==k)){const te=c[r.anchorIdx];te&&t_(n,r.create[k],c,te)}}function f6(n,r,c){let b=Q0(r,c);if(null!==b){const k=r.remove[b];for(let W=0;W0){const xe=(0,S.vaC)(te,c);null!==xe&&Cd(c[S.GpT],xe)}else f6(n,R1(n,~te),c)}}}const vm=/\ufffd(\d+):?\d*\ufffd/gi,Av=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,a_=/\ufffd(\d+)\ufffd/,m6=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,p6=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Lv=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Iv=/\uE500/g;function s_(n,r,c,b,k,W,te){const xe=Sd(n,b,1,null);let Ae=xe<<$l.SHIFT,ut=(0,S.Ab)();r===ut&&(ut=null),null===ut&&(Ae|=$l.APPEND_EAGERLY),te&&(Ae|=$l.COMMENT,function Yh(n){void 0===m1&&(m1=n())}(Gf)),k.push(Ae,null===W?"":W);const Ct=Pl(n,xe,te?32:1,null===W?"":W,null);Dc(c,Ct);const Zt=Ct.index;return(0,S.iMd)(Ct,!1),null!==ut&&r!==ut&&function Ff(n,r){let c=n.insertBeforeIndex;null===c?(sf(k1,Pu),c=n.insertBeforeIndex=[null,r]):((0,S.Xln)(Array.isArray(c),!0,"Expecting array here"),c.push(r))}(ut,Zt),Ct}function Rv(n,r,c,b,k,W,te,xe){const Ae=xe.match(vm),Ct=s_(r,c,b,te,k,Ae?null:xe,!1).index;Ae&&F4(W,xe,Ct,null,0,null),n.push({kind:0,index:Ct})}function F4(n,r,c,b,k,W){const te=n.length,xe=te+1;n.push(null,null);const Ae=te+2,ut=r.split(vm);let Ct=0;for(let Zt=0;Ztc.length&&c.push(Ae)}return{type:b,mainBinding:k,cases:r,values:c}}function v6(n){if(!n)return[];let r=0;const c=[],b=[],k=/[{}]/g;let W;for(k.lastIndex=0;W=k.exec(n);){const xe=W.index;if("}"==W[0]){if(c.pop(),0==c.length){const Ae=n.substring(r,xe);m6.test(Ae)?b.push(Fv(Ae)):b.push(Ae),r=xe+1}}else{if(0==c.length){const Ae=n.substring(r,xe);b.push(Ae),r=xe+1}c.push("{")}}const te=n.substring(r);return b.push(te),b}function Bv(n,r,c,b,k,W,te,xe,Ae){const ut=[],Ct=[],Zt=[];c.cases.push(te),c.create.push(ut),c.remove.push(Ct),c.update.push(Zt);const Cn=Wi(hr()).getInertBodyElement(xe),ri=_o(Cn)||Cn;return ri?l_(n,r,c,b,k,ut,Ct,Zt,ri,W,Ae,0):0}function l_(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt){let yn=0,Cn=Ae.firstChild;for(;Cn;){const ri=Sd(r,b,1,null);switch(Cn.nodeType){case Node.ELEMENT_NODE:const Si=Cn,Ki=Si.tagName.toLowerCase();if(xc.hasOwnProperty(Ki)){y6(W,gm,Ki,ut,ri),r.data[ri]=Ki;const Zo=Si.attributes;for(let qd=0;qd>>$l.SHIFT;let Zt=n[Ct],yn=!1;null===Zt&&(Zt=n[Ct]=E2(n,0,r[W],(te&$l.COMMENT)===$l.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),yn=(0,S.SX7)()),ut&&null!==c&&yn&&Mc(k,c,Zt,b,!1)}})(k,Ae.create,Ct,xe&&8&xe.type?k[xe.index]:null),(0,S.xyx)(!0)}function __(){(0,S.xyx)(!1)}function bm(n,r,c){const b=(0,S.OAn)(),k=(0,S.klJ)(),W=(0,S.Mx4)();return C6(k,b,b[S.GpT],W,n,r,c),bm}function xm(n,r,c){const b=(0,S.OAn)(),k=(0,S.klJ)(),W=(0,S.Mx4)();return(3&W.type||c)&&Zm(W,k,b,c,b[S.GpT],n,r,s2(W,b,r)),xm}function C6(n,r,c,b,k,W,te){let xe=!0,Ae=null;if((3&b.type||te)&&(Ae??=s2(b,r,W),Zm(b,n,r,te,c,k,W,Ae)&&(xe=!1)),xe){const ut=b.outputs?.[k],Ct=b.hostDirectiveOutputs?.[k];if(Ct&&Ct.length)for(let Zt=0;Zt>17&32767}function w6(n){return 2|n}function Y1(n){return(131068&n)>>2}function S6(n,r){return-131069&n|r<<2}function T6(n){return 1|n}function L_(n,r,c,b){const k=n[c+1],W=null===r;let te=b?K1(k):Y1(k),xe=!1;for(;0!==te&&(!1===xe||W);){const ut=n[te+1];e9(n[te],r)&&(xe=!0,n[te+1]=b?T6(ut):w6(ut)),te=b?K1(ut):Y1(ut)}xe&&(n[c+1]=b?w6(k):T6(k))}function e9(n,r){return null===n||null==r||(Array.isArray(n)?n[1]:n)===r||!(!Array.isArray(n)||"string"!=typeof r)&&(0,S.FRF)(n,r)>=0}const Bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I_(n){return n.substring(Bo.key,Bo.keyEnd)}function k_(n){return n.substring(Bo.value,Bo.valueEnd)}function A6(n,r){const c=Bo.textEnd;return c===r?-1:(r=Bo.keyEnd=function L6(n,r,c){for(;r32;)r++;return r}(n,Bo.key=r,c),Ch(n,r,c))}function R_(n,r){const c=Bo.textEnd;let b=Bo.key=Ch(n,r,c);return c===b?-1:(b=Bo.keyEnd=function i9(n,r,c){let b;for(;r=65&&(-33&b)<=90||b>=48&&b<=57);)r++;return r}(n,b,c),b=P_(n,b,c),b=Bo.value=Ch(n,b,c),b=Bo.valueEnd=function a9(n,r,c){let b=-1,k=-1,W=-1,te=r,xe=te;for(;te32&&(xe=te),W=k,k=b,b=-33&Ae}return xe}(n,b,c),P_(n,b,c))}function O_(n){Bo.key=0,Bo.keyEnd=0,Bo.value=0,Bo.valueEnd=0,Bo.textEnd=n.length}function Ch(n,r,c){for(;r=0;c=R_(r,c))R6(n,I_(r),k_(r))}function B_(n){V_(d9,z_,n,!0)}function z_(n,r){for(let c=function t9(n){return O_(n),A6(n,Ch(n,0,Bo.textEnd))}(r);c>=0;c=A6(r,c))(0,S.ezK)(n,I_(r),!0)}function U_(n,r,c,b){const k=(0,S.OAn)(),W=(0,S.klJ)(),te=(0,S.b$O)(2);W.firstUpdatePass&&H_(W,n,te,b),r!==qa&&os(k,te,r)&&W_(W,W.data[(0,S._px)()],k,k[S.GpT],n,k[te+1]=function h9(n,r){return null==n||""===n||("string"==typeof r?n+=r:"object"==typeof n&&(n=(0,S.AsM)(wt(n)))),n}(r,c),b,te)}function V_(n,r,c,b){const k=(0,S.klJ)(),W=(0,S.b$O)(2);k.firstUpdatePass&&H_(k,null,W,b);const te=(0,S.OAn)();if(c!==qa&&os(te,W,c)){const xe=k.data[(0,S._px)()];if(K_(xe,b)&&!G_(k,W)){let Ae=b?xe.classesWithoutHost:xe.stylesWithoutHost;null!==Ae&&(c=(0,S.n$e)(Ae,c||"")),n6(k,xe,te,c,b)}else!function u9(n,r,c,b,k,W,te,xe){k===qa&&(k=S.Mlv);let Ae=0,ut=0,Ct=0=n.expandoStartIndex}function H_(n,r,c,b){const k=n.data;if(null===k[c+1]){const W=k[(0,S._px)()],te=G_(n,c);K_(W,b)&&null===r&&!te&&(r=!1),r=function j_(n,r,c,b){const k=(0,S.MT)(n);let W=b?r.residualClasses:r.residualStyles;if(null===k)0===(b?r.classBindings:r.styleBindings)&&(c=Mh(c=k6(null,n,r,c,b),r.attrs,b),W=null);else{const te=r.directiveStylingLast;if(-1===te||n[te]!==k)if(c=k6(k,n,r,c,b),null===W){let Ae=function s9(n,r,c){const b=c?r.classBindings:r.styleBindings;if(0!==Y1(b))return n[K1(b)]}(n,r,b);void 0!==Ae&&Array.isArray(Ae)&&(Ae=k6(null,n,r,Ae[1],b),Ae=Mh(Ae,r.attrs,b),function o9(n,r,c,b){n[K1(c?r.classBindings:r.styleBindings)]=b}(n,r,b,Ae))}else W=function l9(n,r,c){let b;const k=r.directiveEnd;for(let W=1+r.directiveStylingLast;W0)&&(ut=!0)):Ct=c,k)if(0!==Ae){const yn=K1(n[xe+1]);n[b+1]=Mm(yn,xe),0!==yn&&(n[yn+1]=S6(n[yn+1],b)),n[xe+1]=function Zv(n,r){return 131071&n|r<<17}(n[xe+1],b)}else n[b+1]=Mm(xe,0),0!==xe&&(n[xe+1]=S6(n[xe+1],b)),xe=b;else n[b+1]=Mm(Ae,0),0===xe?xe=b:n[Ae+1]=S6(n[Ae+1],b),Ae=b;ut&&(n[b+1]=w6(n[b+1])),L_(n,Ct,b,!0),L_(n,Ct,b,!1),function D6(n,r,c,b,k){const W=k?n.residualClasses:n.residualStyles;null!=W&&"string"==typeof r&&(0,S.FRF)(W,r)>=0&&(c[b+1]=T6(c[b+1]))}(r,Ct,n,b,W),te=Mm(xe,Ae),W?r.classBindings=te:r.styleBindings=te}(k,W,r,c,te,b)}}function k6(n,r,c,b,k){let W=null;const te=c.directiveEnd;let xe=c.directiveStylingLast;for(-1===xe?xe=c.directiveStart:xe++;xe0;){const Ae=n[k],ut=Array.isArray(Ae),Ct=ut?Ae[1]:Ae,Zt=null===Ct;let yn=c[k+1];yn===qa&&(yn=Zt?S.Mlv:void 0);let Cn=Zt?(0,S.K7h)(yn,b):Ct===b?yn:void 0;if(ut&&!z4(Cn)&&(Cn=(0,S.K7h)(Ae,b)),z4(Cn)&&(xe=Cn,te))return xe;const ri=n[k+1];k=te?K1(ri):Y1(ri)}if(null!==r){let Ae=W?r.residualClasses:r.residualStyles;null!=Ae&&(xe=(0,S.K7h)(Ae,b))}return xe}function z4(n){return void 0!==n}function K_(n,r){return!!(n.flags&(r?8:16))}function U4(n,r=""){const c=(0,S.OAn)(),b=(0,S.klJ)(),k=n+S.Yw1,W=b.firstCreatePass?Yl(b,k,1,r,null):b.data[k],te=Y_(b,c,W,r,n);c[k]=te,(0,S.SX7)()&&mu(b,c,te,W),(0,S.iMd)(W,!1)}let Y_=(n,r,c,b,k)=>((0,S.m7n)(!0),r1(r[S.GpT],b));function O6(n,r){let c=!1,b=(0,S.c$7)();for(let W=1;W>20;if((0,S.Y3W)(n)||!n.multi){const Cn=new nn(ut,k,ys,null),ri=H6(Ae,r,k?Ct:Ct+yn,Zt);-1===ri?(ti(un(xe,te),W,Ae),G6(W,n,r.length),r.push(Ae),xe.directiveStart++,xe.directiveEnd++,k&&(xe.providerIndexes+=1048576),c.push(Cn),te.push(Cn)):(c[ri]=Cn,te[ri]=Cn)}else{const Cn=H6(Ae,r,Ct+yn,Zt),ri=H6(Ae,r,Ct,Ct+yn),Ki=ri>=0&&c[ri];if(k&&!Ki||!k&&!(Cn>=0&&c[Cn])){ti(un(xe,te),W,Ae);const ia=function M9(n,r,c,b,k){const te=new nn(n,c,ys,null);return te.multi=[],te.index=r,te.componentProviders=0,p5(te,k,b&&!c),te}(k?C9:j6,c.length,k,b,ut);!k&&Ki&&(c[ri].providerFactory=ia),G6(W,n,r.length,0),r.push(Ae),xe.directiveStart++,xe.directiveEnd++,k&&(xe.providerIndexes+=1048576),c.push(ia),te.push(ia)}else G6(W,n,Cn>-1?Cn:ri,p5(c[k?ri:Cn],ut,!k&&b));!k&&b&&Ki&&c[ri].componentProviders++}}}function G6(n,r,c,b){const k=(0,S.Y3W)(r),W=(0,S.MME)(r);if(k||W){const Ae=(W?(0,S.nl4)(r.useClass):r).prototype.ngOnDestroy;if(Ae){const ut=n.destroyHooks||(n.destroyHooks=[]);if(!k&&r.multi){const Ct=ut.indexOf(c);-1===Ct?ut.push(c,[b,Ae]):ut[Ct+1].push(b,Ae)}else ut.push(c,Ae)}}}function p5(n,r,c){return c&&n.componentProviders++,n.multi.push(r)-1}function H6(n,r,c,b){for(let k=c;k{c.providersResolver=(b,k)=>function x9(n,r,c){const b=(0,S.klJ)();if(b.firstCreatePass){const k=(0,S.JlV)(n);V6(c,b.data,b.blueprint,k,!0),V6(r,b.data,b.blueprint,k,!1)}}(b,k?k(n):n,r)}}function Sm(n){if("function"==typeof n)return n;const r=(0,S.Bqz)(n);return r.some(S.Jzi)?()=>r.map(S.nl4).map(y5):r.map(y5)}function y5(n){return B1(n)?n.ngModule:n}function b5(n,r,c){const b=(0,S.gxQ)()+n,k=(0,S.OAn)();return k[b]===qa?Yc(k,b,c?r.call(c):r()):r2(k,b)}function Tm(n,r,c,b){return w5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b)}function x5(n,r,c,b,k){return S5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b,k)}function C5(n,r,c,b,k,W){return T5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b,k,W)}function G4(n,r){const c=n[r];return c===qa?void 0:c}function w5(n,r,c,b,k,W){const te=r+c;return os(n,te,k)?Yc(n,te+1,W?b.call(W,k):b(k)):G4(n,te+1)}function S5(n,r,c,b,k,W,te){const xe=r+c;return Gd(n,xe,k,W)?Yc(n,xe+2,te?b.call(te,k,W):b(k,W)):G4(n,xe+2)}function T5(n,r,c,b,k,W,te,xe){const Ae=r+c;return t4(n,Ae,k,W,te)?Yc(n,Ae+3,xe?b.call(xe,k,W,te):b(k,W,te)):G4(n,Ae+3)}function X6(n,r,c,b,k,W,te,xe,Ae){const ut=r+c;return hc(n,ut,k,W,te,xe)?Yc(n,ut+4,Ae?b.call(Ae,k,W,te,xe):b(k,W,te,xe)):G4(n,ut+4)}function D5(n,r,c,b,k,W){let te=r+c,xe=!1;for(let Ae=0;Ae=0;c--){const b=r[c];if(n===b.name)return b}}(r,c.pipeRegistry),c.data[k]=b,b.onDestroy&&(c.destroyHooks??=[]).push(k,b.onDestroy)):b=c.data[k];const W=b.factory||(b.factory=(0,S.wGu)(b.type,!0)),xe=(0,S.a2B)(ys);try{const Ae=Zn(!1),ut=W();return Zn(Ae),(0,S.M_e)(c,(0,S.OAn)(),k,ut),ut}finally{(0,S.a2B)(xe)}}function I5(n,r,c){const b=n+S.Yw1,k=(0,S.OAn)(),W=(0,S.Hh6)(k,b);return H4(k,b)?w5(k,(0,S.gxQ)(),r,W.transform,c,W):W.transform(c)}function K6(n,r,c,b){const k=n+S.Yw1,W=(0,S.OAn)(),te=(0,S.Hh6)(W,k);return H4(W,k)?S5(W,(0,S.gxQ)(),r,te.transform,c,b,te):te.transform(c,b)}function k5(n,r,c,b,k){const W=n+S.Yw1,te=(0,S.OAn)(),xe=(0,S.Hh6)(te,W);return H4(te,W)?T5(te,(0,S.gxQ)(),r,xe.transform,c,b,k,xe):xe.transform(c,b,k)}function H4(n,r){return n[S.eDl].data[r].pure}function Y6(n,r){return D1(n,r)}function Dm(n,r,c,b,k){const W=k[S.eDl];if(W!==b.tView)for(let te=S.Yw1;te{if(b.encapsulation===Ui.ShadowDom){const ri=te.cloneNode(!1);te.replaceWith(ri),te=ri}const Zt=Q2(c),yn=Ed(xe,Zt,W,wd(c),te,Ae,null,null,null,null,null);(function P5(n,r,c,b){for(let k=S.Yw1;kO5(n,r,Ct))}(n,r,c,b,k)}function O5(n,r,c){try{c()}catch(b){if(null!==r&&b.message){const W=b.message+(b.stack?"\n"+b.stack:"");n?.hot?.send?.("angular:invalidate",{id:r,message:W,error:!0})}throw b}}const Q1={\u0275\u0275animateEnter:function rm(n){if(Qs("NgAnimateEnter"),!X1)return rm;const r=(0,S.OAn)();if(nm(r))return rm;const c=(0,S.Mx4)();return A4(c,r),im(_h(r),c,()=>function ev(n,r,c){const b=(0,S.d31)(r,n),k=n[S.GpT],W=n[S.YEL].get(pr),te=P8(c),xe=[],Ae=Ct=>{if(Ct.target!==b)return;const Zt=Ct instanceof AnimationEvent?"animationend":"transitionend";W.runOutsideAngular(()=>{k.listen(b,Zt,ut)})},ut=Ct=>{Ct.target===b&&function tv(n,r,c){const b=ph.get(r);if(n.target===r&&b&&N8(n,r)){n.stopImmediatePropagation();for(const k of b.classList)c.removeClass(r,k);Qp(r)}}(Ct,b,k)};if(te&&te.length>0){W.runOutsideAngular(()=>{xe.push(k.listen(b,"animationstart",Ae)),xe.push(k.listen(b,"transitionstart",Ae))}),function Z7(n,r,c){const b=ph.get(n);if(b){for(const k of r)b.classList.push(k);for(const k of c)b.cleanupFns.push(k)}else ph.set(n,{classList:r,cleanupFns:c})}(b,te,xe);for(const Ct of te)k.addClass(b,Ct);W.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(v0(b,x2,X1),!x2.has(b)){for(const Ct of te)k.removeClass(b,Ct);Qp(b)}})})}}(r,c,n)),E0(r[S.YEL]),kd(r[S.YEL],_h(r)),rm},\u0275\u0275animateEnterListener:function I4(n){if(Qs("NgAnimateEnter"),!X1)return I4;const r=(0,S.OAn)();if(nm(r))return I4;const c=(0,S.Mx4)();return A4(c,r),im(_h(r),c,()=>function nv(n,r,c){const b=(0,S.d31)(r,n);c.call(n[S.SKP],{target:b,animationComplete:R8})}(r,c,n)),E0(r[S.YEL]),kd(r[S.YEL],_h(r)),I4},\u0275\u0275animateLeave:function k4(n){if(Qs("NgAnimateLeave"),!X1)return k4;const r=(0,S.OAn)();if(nm(r))return k4;const b=(0,S.Mx4)();return A4(b,r),im(C2(r),b,()=>function iv(n,r,c){const{promise:b,resolve:k}=Up(),W=(0,S.d31)(r,n),te=n[S.GpT],xe=n[S.YEL].get(pr);Yo.add(n),(C2(n).get(r.index).resolvers??=[]).push(k);const Ae=P8(c);return Ae&&Ae.length>0?function R4(n,r,c,b,k,W){!function J7(n,r){if(!X1)return;const c=ph.get(n);if(c&&c.classList.length>0&&function q7(n,r){for(const c of r)if(n.classList.contains(c))return!0;return!1}(n,c.classList))for(const b of c.classList)r.removeClass(n,b);Qp(n)}(n,k);const te=[],xe=C2(c).get(r.index)?.resolvers,Ae=ut=>{if(ut.target===n&&(ut instanceof CustomEvent||N8(ut,n))){if(ut.stopImmediatePropagation(),x2.delete(n),$p(r,n),Array.isArray(r.projection))for(const Ct of b)k.removeClass(n,Ct);am(xe,te),Zp(c,r)}};W.runOutsideAngular(()=>{te.push(k.listen(n,"animationend",Ae)),te.push(k.listen(n,"transitionend",Ae))}),O8(r,n);for(const ut of b)k.addClass(n,ut);W.runOutsideAngular(()=>{requestAnimationFrame(()=>{v0(n,x2,X1),x2.has(n)||($p(r,n),am(xe,te),Zp(c,r))})})}(W,r,n,Ae,te,xe):k(),{promise:b,resolve:k}}(r,b,n)),E0(r[S.YEL]),k4},\u0275\u0275animateLeaveListener:function Jp(n){if(Qs("NgAnimateLeave"),!X1)return Jp;const r=(0,S.OAn)(),c=(0,S.Mx4)();return A4(c,r),Yo.add(r),im(C2(r),c,()=>function av(n,r,c){const{promise:b,resolve:k}=Up(),W=(0,S.d31)(r,n),te=[],xe=n[S.GpT],Ae=nm(n),ut=n[S.YEL].get(pr),Ct=n[S.YEL].get(Q7);(C2(n).get(r.index).resolvers??=[]).push(k);const Zt=C2(n).get(r.index)?.resolvers;if(Ae)L4(n,r,W,Zt,te);else{const yn=setTimeout(()=>L4(n,r,W,Zt,te),Ct),Cn={target:W,animationComplete:()=>{L4(n,r,W,Zt,te),clearTimeout(yn)}};O8(r,W),ut.runOutsideAngular(()=>{te.push(xe.listen(W,"animationend",()=>{L4(n,r,W,Zt,te),clearTimeout(yn)},{once:!0}))}),c.call(n[S.SKP],Cn)}return{promise:b,resolve:k}}(r,c,n)),E0(r[S.YEL]),Jp},\u0275\u0275attribute:Yp,\u0275\u0275defineComponent:pp,\u0275\u0275defineDirective:U3,\u0275\u0275defineInjectable:S.jDH,\u0275\u0275defineInjector:S.G2t,\u0275\u0275defineNgModule:_p,\u0275\u0275definePipe:V3,\u0275\u0275directiveInject:ys,\u0275\u0275getInheritedFactory:vt,\u0275\u0275inject:S.KVO,\u0275\u0275injectAttribute:va,\u0275\u0275invalidFactory:Ac,\u0275\u0275invalidFactoryDep:S.dmw,\u0275\u0275templateRefExtractor:Y6,\u0275\u0275resetView:S.Njj,\u0275\u0275HostDirectivesFeature:xp,\u0275\u0275NgOnChangesFeature:St,\u0275\u0275ProvidersFeature:g5,\u0275\u0275CopyDefinitionFeature:function dh(n){let c,r=yp(n.type);c=(0,S.JlV)(n)?r.\u0275cmp:r.\u0275dir;const b=n;for(const k of H3)b[k]=c[k];if((0,S.JlV)(c))for(const k of m2)b[k]=c[k]},\u0275\u0275InheritDefinitionFeature:m4,\u0275\u0275ExternalStylesFeature:function _5(n){return r=>{n.length<1||(r.getExternalStyles=c=>n.map(k=>k+"?ngcomp"+(c?"="+encodeURIComponent(c):"")+"&e="+r.encapsulation))}},\u0275\u0275nextContext:x_,\u0275\u0275namespaceHTML:S.joV,\u0275\u0275namespaceMathML:S.By9,\u0275\u0275namespaceSVG:S.qSk,\u0275\u0275enableBindings:S.cSN,\u0275\u0275disableBindings:S.fuf,\u0275\u0275elementStart:O4,\u0275\u0275elementEnd:dm,\u0275\u0275element:i6,\u0275\u0275elementContainerStart:hm,\u0275\u0275elementContainerEnd:yh,\u0275\u0275domElement:a6,\u0275\u0275domElementStart:um,\u0275\u0275domElementEnd:vh,\u0275\u0275domElementContainer:function Y8(n,r,c){return fm(n,r,c),K8(),Y8},\u0275\u0275domElementContainerStart:fm,\u0275\u0275domElementContainerEnd:K8,\u0275\u0275domTemplate:y4,\u0275\u0275domListener:xm,\u0275\u0275elementContainer:s6,\u0275\u0275pureFunction0:b5,\u0275\u0275pureFunction1:Tm,\u0275\u0275pureFunction2:x5,\u0275\u0275pureFunction3:C5,\u0275\u0275pureFunction4:function w9(n,r,c,b,k,W,te){return X6((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b,k,W,te)},\u0275\u0275pureFunction5:function M5(n,r,c,b,k,W,te,xe){const Ae=(0,S.gxQ)()+n,ut=(0,S.OAn)(),Ct=hc(ut,Ae,c,b,k,W);return os(ut,Ae+4,te)||Ct?Yc(ut,Ae+5,xe?r.call(xe,c,b,k,W,te):r(c,b,k,W,te)):r2(ut,Ae+5)},\u0275\u0275pureFunction6:function S9(n,r,c,b,k,W,te,xe,Ae){const ut=(0,S.gxQ)()+n,Ct=(0,S.OAn)(),Zt=hc(Ct,ut,c,b,k,W);return Gd(Ct,ut+4,te,xe)||Zt?Yc(Ct,ut+6,Ae?r.call(Ae,c,b,k,W,te,xe):r(c,b,k,W,te,xe)):r2(Ct,ut+6)},\u0275\u0275pureFunction7:function E5(n,r,c,b,k,W,te,xe,Ae,ut){const Ct=(0,S.gxQ)()+n,Zt=(0,S.OAn)();let yn=hc(Zt,Ct,c,b,k,W);return t4(Zt,Ct+4,te,xe,Ae)||yn?Yc(Zt,Ct+7,ut?r.call(ut,c,b,k,W,te,xe,Ae):r(c,b,k,W,te,xe,Ae)):r2(Zt,Ct+7)},\u0275\u0275pureFunction8:function T9(n,r,c,b,k,W,te,xe,Ae,ut,Ct){const Zt=(0,S.gxQ)()+n,yn=(0,S.OAn)(),Cn=hc(yn,Zt,c,b,k,W);return hc(yn,Zt+4,te,xe,Ae,ut)||Cn?Yc(yn,Zt+8,Ct?r.call(Ct,c,b,k,W,te,xe,Ae,ut):r(c,b,k,W,te,xe,Ae,ut)):r2(yn,Zt+8)},\u0275\u0275pureFunctionV:function D9(n,r,c,b){return D5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b)},\u0275\u0275getCurrentView:Q8,\u0275\u0275restoreView:S.eBV,\u0275\u0275listener:bm,\u0275\u0275projection:M6,\u0275\u0275syntheticHostProperty:function $8(n,r,c){const b=(0,S.OAn)();if(os(b,(0,S.xbp)(),r)){const W=(0,S.klJ)(),te=(0,S.CpD)();R0(te,b,n,r,xu((0,S.MT)(W.data),te,b),c)}return $8},\u0275\u0275syntheticHostListener:function b_(n,r){const c=(0,S.Mx4)(),b=(0,S.OAn)(),k=(0,S.klJ)();return C6(k,b,xu((0,S.MT)(k.data),c,b),c,n,r),b_},\u0275\u0275pipeBind1:I5,\u0275\u0275pipeBind2:K6,\u0275\u0275pipeBind3:k5,\u0275\u0275pipeBind4:function L9(n,r,c,b,k,W){const te=n+S.Yw1,xe=(0,S.OAn)(),Ae=(0,S.Hh6)(xe,te);return H4(xe,te)?X6(xe,(0,S.gxQ)(),r,Ae.transform,c,b,k,W,Ae):Ae.transform(c,b,k,W)},\u0275\u0275pipeBindV:function R5(n,r,c){const b=n+S.Yw1,k=(0,S.OAn)(),W=(0,S.Hh6)(k,b);return H4(k,b)?D5(k,(0,S.gxQ)(),r,W.transform,c,W):W.transform.apply(W,c)},\u0275\u0275projectionDef:M_,\u0275\u0275domProperty:mm,\u0275\u0275ariaProperty:Kp,\u0275\u0275property:cm,\u0275\u0275pipe:A5,\u0275\u0275queryRefresh:w_,\u0275\u0275queryAdvance:D_,\u0275\u0275viewQuery:E_,\u0275\u0275viewQuerySignal:Cm,\u0275\u0275loadQuery:S_,\u0275\u0275contentQuery:E6,\u0275\u0275contentQuerySignal:T_,\u0275\u0275reference:A_,\u0275\u0275classMap:B_,\u0275\u0275styleMap:function F_(n){V_(R6,r9,n,!1)},\u0275\u0275styleProp:I6,\u0275\u0275classProp:B4,\u0275\u0275advance:rd,\u0275\u0275template:v4,\u0275\u0275conditional:U8,\u0275\u0275conditionalCreate:z8,\u0275\u0275conditionalBranchCreate:om,\u0275\u0275defer:function M8(n,r,c,b,k,W,te,xe,Ae,ut){const Ct=(0,S.OAn)(),Zt=(0,S.klJ)(),yn=n+S.Yw1,Cn=H1(Ct,Zt,n,null,0,0),ri=Ct[S.YEL],Si=oa(ri);if(Zt.firstCreatePass){Qs("NgDefer");const qd={primaryTmplIndex:r,loadingTmplIndex:b??null,placeholderTmplIndex:k??null,errorTmplIndex:W??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:c??null,loadingState:Gs.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:ut??0};Ae?.(Zt,qd,xe,te),function Lp(n,r,c){const b=_2(r);n.data[b]=c}(Zt,yn,qd)}const Ki=Ct[yn];let ia=null,Ai=null;if(Ki[S.qFA]?.length>0){const qd=Ki[S.qFA][0].data;Ai=qd.di??null,ia=qd.s}const gr=[null,p2.Initial,null,null,null,null,Ai,ia,null,null];!function Kg(n,r,c){n[_2(r)]=c}(Ct,yn,gr);let Zo=null;null!==Ai&&Si&&(Zo=ri.get(Do),Zo.add(Ai,{lView:Ct,tNode:Cn,lContainer:Ki}));const xs=()=>{Y3(gr),null!==Ai&&Zo?.cleanup([Ai])};fh(0,gr,()=>(0,S.DyX)(Ct,xs)),(0,S.ik5)(Ct,xs)},\u0275\u0275deferWhen:function E8(n){const r=(0,S.OAn)(),c=(0,S.CpD)();if(Zs(0,r,c)&&os(r,(0,S.xbp)(),n)){const k=(0,Xt.Ht)(null);try{const W=!!n,xe=Fl(r,c)[1];!1===W&&xe===p2.Initial?qn(r,c):!0===W&&(xe===p2.Initial||xe===Ir.Placeholder)&&Jd(0,r,c)}finally{(0,Xt.Ht)(k)}}},\u0275\u0275deferOnIdle:function F7(){Zs(0,(0,S.OAn)(),(0,S.Mx4)())&&em(mh)},\u0275\u0275deferOnImmediate:function w8(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(0,n,r)&&(null===yo(n[S.eDl],r).loadingTmplIndex&&qn(n,r),Jd(0,n,r))},\u0275\u0275deferOnTimer:function V7(n){Zs(0,(0,S.OAn)(),(0,S.Mx4)())&&em(E(n))},\u0275\u0275deferOnHover:function D8(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();Zs(0,c,b)&&(qn(c,b),Yd(c,b,n,r,ji,()=>Jd(0,c,b),0))},\u0275\u0275deferOnInteraction:function D4(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();Zs(0,c,b)&&(qn(c,b),Yd(c,b,n,r,di,()=>Jd(0,c,b),0))},\u0275\u0275deferOnViewport:function K7(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();Zs(0,c,b)&&(qn(c,b),Yd(c,b,n,r,M4,()=>Jd(0,c,b),0))},\u0275\u0275deferPrefetchWhen:function O7(n){const r=(0,S.OAn)(),c=(0,S.CpD)();if(Zs(1,r,c)&&os(r,(0,S.xbp)(),n)){const k=(0,Xt.Ht)(null);try{const W=!!n,xe=yo(r[S.eDl],c);!0===W&&xe.loadingState===Gs.NOT_STARTED&&T4(xe,r,c)}finally{(0,Xt.Ht)(k)}}},\u0275\u0275deferPrefetchOnIdle:function B7(){Zs(1,(0,S.OAn)(),(0,S.Mx4)())&&Vp(mh)},\u0275\u0275deferPrefetchOnImmediate:function S8(){const n=(0,S.OAn)(),r=(0,S.Mx4)();if(!Zs(1,n,r))return;const b=yo(n[S.eDl],r);b.loadingState===Gs.NOT_STARTED&&Gp(b,n,r)},\u0275\u0275deferPrefetchOnTimer:function T8(n){Zs(1,(0,S.OAn)(),(0,S.Mx4)())&&Vp(E(n))},\u0275\u0275deferPrefetchOnHover:function H7(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();if(!Zs(1,c,b))return;const W=yo(c[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&Yd(c,b,n,r,ji,()=>T4(W,c,b),1)},\u0275\u0275deferPrefetchOnInteraction:function W7(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();if(!Zs(1,c,b))return;const W=yo(c[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&Yd(c,b,n,r,di,()=>T4(W,c,b),1)},\u0275\u0275deferPrefetchOnViewport:function A8(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();if(!Zs(1,c,b))return;const W=yo(c[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&Yd(c,b,n,r,M4,()=>T4(W,c,b),1)},\u0275\u0275deferHydrateWhen:function P7(n){const r=(0,S.OAn)(),c=(0,S.CpD)();if(!Zs(2,r,c))return;const b=(0,S.xbp)();if(W1((0,S.klJ)(),c).set(6,null),os(r,b,n)){const te=r[S.YEL],xe=(0,Xt.Ht)(null);try{1==!!n&&b2(te,Fl(r,c)[6])}finally{(0,Xt.Ht)(xe)}}},\u0275\u0275deferHydrateNever:function N7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(7,null)},\u0275\u0275deferHydrateOnIdle:function z7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&(W1((0,S.klJ)(),r).set(0,null),g8(mh,n,r))},\u0275\u0275deferHydrateOnImmediate:function U7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&(W1((0,S.klJ)(),r).set(1,null),b2(n[S.YEL],Fl(n,r)[6]))},\u0275\u0275deferHydrateOnTimer:function G7(n){const r=(0,S.OAn)(),c=(0,S.Mx4)();Zs(2,r,c)&&(W1((0,S.klJ)(),c).set(5,{delay:n}),g8(E(n),r,c))},\u0275\u0275deferHydrateOnHover:function j7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(4,null)},\u0275\u0275deferHydrateOnInteraction:function X7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(3,null)},\u0275\u0275deferHydrateOnViewport:function L8(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(2,null)},\u0275\u0275deferEnableTimerScheduling:function ta(n,r,c,b){const k=n.consts;null!=c&&(r.placeholderBlockConfig=(0,S.db4)(k,c)),null!=b&&(r.loadingBlockConfig=(0,S.db4)(k,b)),null===pa&&(pa=xi)},\u0275\u0275repeater:W8,\u0275\u0275repeaterCreate:H8,\u0275\u0275repeaterTrackByIndex:function lv(n){return n},\u0275\u0275repeaterTrackByIdentity:G8,\u0275\u0275componentInstance:function rv(){return(0,S.OAn)()[S.b5C][S.SKP]},\u0275\u0275text:U4,\u0275\u0275textInterpolate:N6,\u0275\u0275textInterpolate1:V4,\u0275\u0275textInterpolate2:F6,\u0275\u0275textInterpolate3:B6,\u0275\u0275textInterpolate4:Em,\u0275\u0275textInterpolate5:function n5(n,r,c,b,k,W,te,xe,Ae,ut,Ct){const Zt=(0,S.OAn)(),yn=J_(Zt,n,r,c,b,k,W,te,xe,Ae,ut,Ct);return yn!==qa&&gd(Zt,(0,S._px)(),yn),n5},\u0275\u0275textInterpolate6:function i5(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn){const Cn=(0,S.OAn)(),ri=q_(Cn,n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn);return ri!==qa&&gd(Cn,(0,S._px)(),ri),i5},\u0275\u0275textInterpolate7:function a5(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri){const Si=(0,S.OAn)(),Ki=e5(Si,n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri);return Ki!==qa&&gd(Si,(0,S._px)(),Ki),a5},\u0275\u0275textInterpolate8:function z6(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki){const ia=(0,S.OAn)(),Ai=t5(ia,n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki);return Ai!==qa&&gd(ia,(0,S._px)(),Ai),z6},\u0275\u0275textInterpolateV:function r5(n){const r=(0,S.OAn)(),c=O6(r,n);return c!==qa&&gd(r,(0,S._px)(),c),r5},\u0275\u0275i18n:function x6(n,r,c){g_(n,r,c),__()},\u0275\u0275i18nAttributes:function Kv(n,r){const c=(0,S.klJ)(),b=(0,S.db4)(c.consts,r);!function Ov(n,r,c){const b=(0,S.Mx4)(),k=b.index,W=[];if(n.firstCreatePass&&null===n.data[r]){for(let te=0;te0){const b=n.data[c];h6(n,r,Array.isArray(b)?b:b.update,(0,S.c$7)()-xh-1,P4)}P4=0,xh=0}((0,S.klJ)(),(0,S.OAn)(),n+S.Yw1)},\u0275\u0275i18nPostprocess:function Yv(n,r={}){return function p_(n,r={}){let c=n;if(f_.test(n)){const b={},k=[0];c=c.replace(Gv,(W,te,xe)=>{const Ae=te||xe,ut=b[Ae]||[];if(ut.length||(Ae.split("|").forEach(Si=>{const Ki=Si.match(Xv),ia=Ki?parseInt(Ki[1],10):0,Ai=Wv.test(Si);ut.push([ia,Ai,Si])}),b[Ae]=ut),!ut.length)throw new Error(`i18n postprocess: unmatched placeholder - ${Ae}`);const Ct=k[k.length-1];let Zt=0;for(let Si=0;Sir.hasOwnProperty(W)?`${k}${r[W]}${Ae}`:b),c=c.replace(m_,(b,k)=>r.hasOwnProperty(k)?r[k]:b),c=c.replace(jv,(b,k)=>{if(r.hasOwnProperty(k)){const W=r[k];if(!W.length)throw new Error(`i18n postprocess: unmatched ICU - ${b} with key: ${k}`);return W.shift()}return b})),c}(n,r)},\u0275\u0275resolveWindow:H2,\u0275\u0275resolveDocument:function Fh(n){return n.ownerDocument},\u0275\u0275resolveBody:function d1(n){return n.ownerDocument.body},\u0275\u0275setComponentScope:function E9(n,r,c){const b=n.\u0275cmp;b.directiveDefs=ch(r,gp),b.pipeDefs=ch(c,S.oyA)},\u0275\u0275setNgModuleScope:function v5(n,r){return Le(()=>{const c=(0,S.WbQ)(n);c.declarations=Sm(r.declarations||S.Mlv),c.imports=Sm(r.imports||S.Mlv),c.exports=Sm(r.exports||S.Mlv),r.bootstrap&&(c.bootstrap=Sm(r.bootstrap)),Nl.registerNgModule(n,r)})},\u0275\u0275registerNgModuleType:f4,\u0275\u0275getComponentDepsFactory:function I9(n,r){return()=>{try{return Nl.getComponentDependencies(n,r).dependencies}catch(c){throw console.error(`Computing dependencies in local compilation mode for the component "${n.name}" failed with the exception:`,c),c}}},\u0275setClassDebugInfo:function k9(n,r){const c=(0,S.xUg)(n);null!==c&&(c.debugInfo=r)},\u0275\u0275declareLet:function l5(n){const r=(0,S.klJ)(),c=(0,S.OAn)(),b=n+S.Yw1,k=Yl(r,b,128,null,null);return(0,S.iMd)(k,!1),(0,S.M_e)(r,c,b,o5),l5},\u0275\u0275storeLet:function c5(n){Qs("NgLet");const r=(0,S.klJ)(),c=(0,S.OAn)(),b=(0,S._px)();return(0,S.M_e)(r,c,b,n),n},\u0275\u0275readContextLet:function m9(n){const r=(0,S.VPL)(),c=(0,S.Hh6)(r,S.Yw1+n);if(c===o5)throw new S.buA(314,!1);return c},\u0275\u0275attachSourceLocations:function p9(n,r){const c=(0,S.klJ)(),b=(0,S.OAn)(),k=b[S.GpT],W="data-ng-source-location";for(const[te,xe,Ae,ut]of r){(0,S.XRZ)(c,te+S.Yw1);const Zt=(0,S.vaC)(te+S.Yw1,b);Zt.hasAttribute(W)||k.setAttribute(Zt,W,`${n}@o:${xe},l:${Ae},c:${ut}`)}},\u0275\u0275interpolate:d5,\u0275\u0275interpolate1:u5,\u0275\u0275interpolate2:h5,\u0275\u0275interpolate3:function f5(n,r,c,b,k,W,te=""){return Z_((0,S.OAn)(),n,r,c,b,k,W,te)},\u0275\u0275interpolate4:function g9(n,r,c,b,k,W,te,xe,Ae=""){return P6((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae)},\u0275\u0275interpolate5:function _9(n,r,c,b,k,W,te,xe,Ae,ut,Ct=""){return J_((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct)},\u0275\u0275interpolate6:function v9(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn=""){return q_((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn)},\u0275\u0275interpolate7:function y9(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri=""){return e5((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri)},\u0275\u0275interpolate8:function b9(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki=""){return t5((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki)},\u0275\u0275interpolateV:function m5(n){return O6((0,S.OAn)(),n)},\u0275\u0275sanitizeHtml:l0,\u0275\u0275sanitizeStyle:c0,\u0275\u0275sanitizeResourceUrl:d0,\u0275\u0275sanitizeScript:u0,\u0275\u0275validateAttribute:h0,\u0275\u0275sanitizeUrl:P2,\u0275\u0275sanitizeUrlOrResourceUrl:B2,\u0275\u0275trustConstantHtml:function Lh(n){return ac(n[0])},\u0275\u0275trustConstantResourceUrl:function N2(n){return function q1(n){return bc()?.createScriptURL(n)||n}(n[0])},forwardRef:S.Rfq,resolveForwardRef:S.nl4,\u0275\u0275twoWayProperty:U6,\u0275\u0275twoWayBindingSet:s5,\u0275\u0275twoWayListener:wm,\u0275\u0275replaceMetadata:function O9(n,r,c,b,k=null,W=null){const te=(0,S.xUg)(n);r.apply(null,[n,c,...b]);const{newDef:xe,oldDef:Ae}=function P9(n,r){const c={...n};return{newDef:Object.assign(n,r,{directiveDefs:c.directiveDefs,pipeDefs:c.pipeDefs,setInput:c.setInput,type:c.type}),oldDef:c}}(te,(0,S.xUg)(n));if(n[S.CQl]=xe,Ae.tView){const ut=function gs(){return ar}().values();for(const Ct of ut)(0,S.EFk)(Ct)&&null===Ct[S.f7T]&&Dm(k,W,xe,Ae,Ct)}},\u0275\u0275getReplaceMetadataURL:function R9(n,r,c){const b=`./@ng/component?c=${n}&t=${encodeURIComponent(r)}`;return new URL(b,c).href}};let $1=null;function z9(n){null!==$1&&(n.defaultEncapsulation!==$1.defaultEncapsulation||n.preserveWhitespaces!==$1.preserveWhitespaces)||($1=n)}const j4=[];function Im(n){return B1(n)?n.ngModule:n}const iy=hn("NgModule",n=>n,void 0,0,(n,r)=>function H9(n,r={}){(function j9(n,r){const b=(0,S.Bqz)(r.declarations||S.Mlv);let k=null;Object.defineProperty(n,S.hmW,{configurable:!0,get:()=>(null===k&&(k=le().compileNgModule(Q1,`ng:///${n.name}/\u0275mod.js`,{type:n,bootstrap:(0,S.Bqz)(r.bootstrap||S.Mlv).map(S.nl4),declarations:b.map(S.nl4),imports:(0,S.Bqz)(r.imports||S.Mlv).map(S.nl4).map(Im),exports:(0,S.Bqz)(r.exports||S.Mlv).map(S.nl4).map(Im),schemas:r.schemas?(0,S.Bqz)(r.schemas):null,id:r.id||null}),k.schemas||(k.schemas=[])),k)});let W=null;Object.defineProperty(n,S.zSs,{get:()=>{if(null===W){const xe=le();W=xe.compileFactory(Q1,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,deps:Ga(n),target:xe.FactoryTarget.NgModule,typeArgumentCount:0})}return W},configurable:!1});let te=null;Object.defineProperty(n,S.ONQ,{get:()=>{if(null===te){const xe={name:n.name,type:n,providers:r.providers||S.Mlv,imports:[(r.imports||S.Mlv).map(S.nl4),(r.exports||S.Mlv).map(S.nl4)]};te=le().compileInjector(Q1,`ng:///${n.name}/\u0275inj.js`,xe)}return te},configurable:!1})})(n,r),void 0!==r.id&&f4(n,r.id),function G9(n,r){j4.push({moduleType:n,ngModule:r})}(n,r)}(n,r));class $5{ngModuleFactory;componentFactories;constructor(r,c){this.ngModuleFactory=r,this.componentFactories=c}}let ay=(()=>{class n{compileModuleSync(c){return new fp(c)}compileModuleAsync(c){return Promise.resolve(this.compileModuleSync(c))}compileModuleAndAllComponentsSync(c){const b=this.compileModuleSync(c),W=Kl((0,S.phH)(c).declarations).reduce((te,xe)=>{const Ae=(0,S.xUg)(xe);return Ae&&te.push(new o2(Ae)),te},[]);return new $5(b,W)}compileModuleAndAllComponentsAsync(c){return Promise.resolve(this.compileModuleAndAllComponentsSync(c))}clearCache(){}clearCacheFor(c){}getModuleId(c){}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const ry=new S.nKC("");let sy=(()=>{class n{zone=(0,S.WQX)(pr);changeDetectionScheduler=(0,S.WQX)(S.hk6);applicationRef=(0,S.WQX)(q3);applicationErrorHandler=(0,S.WQX)(S.ZTf);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(c){this.applicationErrorHandler(c)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Rm=new S.nKC("",{factory:()=>!1});function Z5({ngZoneFactory:n,ignoreChangesOutsideZone:r,scheduleInRootZone:c}){return n??=()=>new pr({...tg(),scheduleInRootZone:c}),[{provide:pr,useFactory:n},{provide:S.Z63,multi:!0,useFactory:()=>{const b=(0,S.WQX)(sy,{optional:!0});return()=>b.initialize()}},{provide:S.Z63,multi:!0,useFactory:()=>{const b=(0,S.WQX)(ly);return()=>{b.initialize()}}},!0===r?{provide:S.Jy$,useValue:!0}:[],{provide:S.AQb,useValue:c??od},{provide:S.ZTf,useFactory:()=>{const b=(0,S.WQX)(pr),k=(0,S.WQX)(S.uvJ);let W;return te=>{b.runOutsideAngular(()=>{k.destroyed&&!W?setTimeout(()=>{throw te}):(W??=k.get(S.zcH),W.handleError(te))})}}}]}function tg(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}let ly=(()=>{class n{subscription=new ae.yU;initialized=!1;zone=(0,S.WQX)(pr);pendingTasks=(0,S.WQX)(S.rev);initialize(){if(this.initialized)return;this.initialized=!0;let c=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(c=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pr.assertNotInAngularZone(),queueMicrotask(()=>{null!==c&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(c),c=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pr.assertInAngularZone(),c??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ag=(()=>{class n{applicationErrorHandler=(0,S.WQX)(S.ZTf);appRef=(0,S.WQX)(q3);taskService=(0,S.WQX)(S.rev);ngZone=(0,S.WQX)(pr);zonelessEnabled=(0,S.WQX)(S.Evm);tracing=(0,S.WQX)(Fc,{optional:!0});disableScheduling=(0,S.WQX)(S.Jy$,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ae.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(_1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&((0,S.WQX)(S.AQb,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof v1||!this.zoneIsDefined)}notify(c){if(!this.zonelessEnabled&&5===c)return;let b=!1;switch(c){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:case 13:this.appRef.dirtyFlags|=2,b=!0;break;case 12:this.appRef.dirtyFlags|=16,b=!0;break;case 11:b=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(b))return;const k=this.useMicrotaskScheduler?y0:Ld;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>k(()=>this.tick())):this.ngZone.runOutsideAngular(()=>k(()=>this.tick()))}shouldScheduleTick(c){return!(this.disableScheduling&&!c||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(_1+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const c=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(b){this.taskService.remove(c),this.applicationErrorHandler(b)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,y0(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(c)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const c=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(c)}}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const q5=new S.nKC("",{providedIn:"root",factory:()=>(0,S.WQX)(q5,{optional:!0,skipSelf:!0})||function cy(){return typeof $localize<"u"&&$localize.locale||u6}()}),dy=new S.nKC("",{providedIn:"root",factory:()=>"USD"})},59295(ke,q,l){"use strict";l.d(q,{Zf:()=>Z,EW:()=>Q,QZ:()=>ie,O8:()=>V}),l(10467);var g=l(2615),p=l(48440);const d={...p.pL,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};class Z{destroyed=!1;listeners=null;errorHandler=(0,g.WQX)(g.zcH,{optional:!0});destroyRef=(0,g.WQX)(g.abz);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(he){if(this.destroyed)throw new g.buA(953,!1);return(this.listeners??=[]).push(he),{unsubscribe:()=>{const Oe=this.listeners?.indexOf(he);void 0!==Oe&&-1!==Oe&&this.listeners?.splice(Oe,1)}}}emit(he){if(this.destroyed)return void console.warn((0,g.OsK)(953,!1));if(null===this.listeners)return;const Oe=(0,p.Ht)(null);try{for(const ge of this.listeners)try{ge(he)}catch(ce){this.errorHandler?.handleError(ce)}}finally{(0,p.Ht)(Oe)}}}function V(re){return function h(re){const he=(0,p.Ht)(null);try{return re()}finally{(0,p.Ht)(he)}}(re)}function Q(re,he){return(0,p.KZ)(re,he?.equal)}class ${[p.bh];constructor(he){this[p.bh]=he}destroy(){this[p.bh].destroy()}}function ie(re,he){const Oe=he?.injector??(0,g.WQX)(g.zZn);let ce,ge=!0!==he?.manualCleanup?Oe.get(g.abz):null;const Re=Oe.get(g.r4V,null,{optional:!0}),Me=Oe.get(g.hk6);return null!==Re?(ce=function pe(re,he,Oe){const ge=Object.create(se);return ge.view=re,ge.zone=typeof Zone<"u"?Zone.current:null,ge.notifier=he,ge.fn=L(ge,Oe),re[g.tQN]??=new Set,re[g.tQN].add(ge),ge.consumerMarkedDirty(ge),ge}(Re.view,Me,re),ge instanceof g.KXn&&ge._lView===Re.view&&(ge=null)):ce=function Ee(re,he,Oe){const ge=Object.create(ye);return ge.fn=L(ge,re),ge.scheduler=he,ge.notifier=Oe,ge.zone=typeof Zone<"u"?Zone.current:null,ge.scheduler.add(ge),ge.notifier.notify(12),ge}(re,Oe.get(g.VML),Me),ce.injector=Oe,null!==ge&&(ce.onDestroyFn=ge.onDestroy(()=>ce.destroy())),new $(ce)}const _e={...d,cleanupFns:void 0,zone:null,onDestroyFn:g.lQ1,run(){const re=(0,g.cBl)(!1);try{!function w(re){if(re.dirty=!1,re.version>0&&!(0,p.si)(re))return;re.version++;const he=(0,p.Bg)(re);try{re.cleanup(),re.fn()}finally{(0,p.Wu)(re,he)}}(this)}finally{(0,g.cBl)(re)}},cleanup(){if(!this.cleanupFns?.length)return;const re=(0,p.Ht)(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],(0,p.Ht)(re)}}},ye={..._e,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){(0,p.XR)(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}},se={..._e,consumerMarkedDirty(){this.view[g.Wg1]|=8192,(0,g.blu)(this.view),this.notifier.notify(13)},destroy(){(0,p.XR)(this),this.onDestroyFn(),this.cleanup(),this.view[g.tQN]?.delete(this)}};function L(re,he){return()=>{he(Oe=>(re.cleanupFns??=[]).push(Oe))}}Error,Error},2615(ke,q,l){"use strict";let i;function g(){return i}function p(De){const at=i;return i=De,at}l.d(q,{JEi:()=>es,Isx:()=>Yr,EJG:()=>ps,Yrj:()=>lr,VVG:()=>Js,Y20:()=>Ws,SKP:()=>Jo,hk6:()=>_c,eVN:()=>Xs,b5C:()=>ar,rQE:()=>Xr,X5O:()=>dr,qFA:()=>Za,qQL:()=>ra,abz:()=>ba,tQN:()=>Pa,pcR:()=>qr,oMQ:()=>Mr,Mlv:()=>Zn,MZA:()=>Ln,M0L:()=>xo,Z63:()=>hi,VML:()=>Ra,uvJ:()=>Yi,zcH:()=>Lr,Wg1:()=>Ka,Yw1:()=>Aa,jgP:()=>js,tcA:()=>Uo,ID:()=>Hi,YEL:()=>qs,B9r:()=>Jn,GBX:()=>Ce,ZTf:()=>bi,nKC:()=>qt,zZn:()=>$i,rJ1:()=>ns,nfM:()=>Nr,s6P:()=>ks,K29:()=>Is,CQl:()=>Ue,p9y:()=>ze,zSs:()=>Ne,ONQ:()=>Mn,hmW:()=>le,yAH:()=>rt,KXn:()=>oa,oTH:()=>Bi,Czx:()=>gs,f7T:()=>Pr,wVl:()=>Kr,GYQ:()=>tc,u5s:()=>ja,rev:()=>co,Ds7:()=>Ms,e5P:()=>va,Iaj:()=>_s,GpT:()=>Jr,buA:()=>j,AQb:()=>nc,jNX:()=>hr,eDl:()=>Cs,qlT:()=>Wr,bm_:()=>Rs,RxE:()=>f,r4V:()=>ed,ok8:()=>K,Evm:()=>td,Jy$:()=>vd,laP:()=>V,EYC:()=>kn,ng7:()=>ui,llW:()=>aa,gsJ:()=>Xn,GZS:()=>wi,iYM:()=>he,PEr:()=>Sr,z7f:()=>ge,LZP:()=>ce,Xln:()=>P,yzR:()=>qo,TWe:()=>yl,LIA:()=>T,GWr:()=>U,pbo:()=>fe,bBq:()=>ur,Af3:()=>Zr,zQk:()=>ts,oZy:()=>Mo,tF7:()=>Re,ZFY:()=>Ze,cP4:()=>eo,MdC:()=>wr,XvL:()=>Y,KET:()=>Ea,Tkx:()=>Bl,iw4:()=>C,tdH:()=>Wl,pr_:()=>ve,IAh:()=>x,U45:()=>m,WrV:()=>u,kNT:()=>Me,MI:()=>hl,biv:()=>bl,ZQF:()=>a,Cv0:()=>_,W0r:()=>Bn,R2n:()=>xn,O8q:()=>Vn,VKj:()=>Kt,Rom:()=>_t,z6V:()=>Nn,n$e:()=>se,hjC:()=>Nt,Pz9:()=>ki,PQT:()=>we,VX4:()=>We,_Z$:()=>Ye,N79:()=>Ul,xLP:()=>zn,zuh:()=>tt,BI7:()=>_n,U7d:()=>hn,uXy:()=>En,nZS:()=>Vt,ihb:()=>pl,ID8:()=>il,gv8:()=>Ns,dwj:()=>_e,Bqz:()=>gn,OsK:()=>ee,Rfq:()=>L,c$7:()=>Sl,gxQ:()=>lo,ckz:()=>To,kLh:()=>ie,xUg:()=>un,KdJ:()=>zl,db4:()=>to,VPL:()=>Ia,MT:()=>Do,Z9v:()=>gc,Ab:()=>sn,w7Z:()=>e1,Mx4:()=>bt,veI:()=>Ht,HaV:()=>fi,Agf:()=>Sn,znI:()=>so,wGu:()=>Un,ebl:()=>Et,OAn:()=>Te,_0$:()=>El,UaU:()=>Tt,vaC:()=>Go,d31:()=>fl,ZRn:()=>ws,phH:()=>_a,WbQ:()=>Sa,WB9:()=>Wn,d_l:()=>ao,vNG:()=>$r,oyA:()=>Dn,_px:()=>Io,CpD:()=>jl,XRZ:()=>Ho,klJ:()=>je,Fje:()=>el,b$O:()=>Tl,SMZ:()=>$,WQX:()=>Ei,MzJ:()=>Ot,jXY:()=>lt,MME:()=>li,JlV:()=>Rt,Qs1:()=>pt,srX:()=>ct,vOT:()=>za,YWB:()=>di,EPY:()=>Er,yoD:()=>Ve,P3H:()=>Fr,Jzi:()=>s,rFz:()=>rr,JjR:()=>qc,M6u:()=>bo,KtD:()=>Zl,muV:()=>$e,A0l:()=>Es,q$2:()=>Qr,yP_:()=>as,EFk:()=>vn,Hps:()=>Ro,UhH:()=>wl,QuC:()=>ti,Y3W:()=>mn,n$r:()=>ec,K7h:()=>ma,FRF:()=>ua,ezK:()=>sa,m7n:()=>ni,niQ:()=>Gl,krE:()=>tl,bll:()=>Hl,Hh6:()=>fo,EmA:()=>Ci,blu:()=>no,HAh:()=>mo,WfI:()=>ci,xbp:()=>ql,jvu:()=>Al,lQ1:()=>Ti,BCV:()=>Xi,Rc9:()=>Ga,E6O:()=>Kn,DyX:()=>io,eFE:()=>gt,dMS:()=>jo,HUe:()=>wo,nl4:()=>t,N4e:()=>ms,XaM:()=>Fe,Kw3:()=>mc,vQI:()=>pc,RZ9:()=>Ps,GA0:()=>Ao,iMd:()=>Rn,Pfq:()=>ji,xyx:()=>po,a2B:()=>kt,kcM:()=>et,DFp:()=>de,P2g:()=>nl,cBl:()=>oo,ypq:()=>ko,vPA:()=>gl,HO5:()=>Ks,M_e:()=>xl,B22:()=>Ss,ik5:()=>Ml,AsM:()=>ye,PP7:()=>zt,$8:()=>Oe,$Hz:()=>At,zAe:()=>Vo,IvY:()=>vi,_gW:()=>ml,F1c:()=>fr,ITl:()=>Cl,brz:()=>ht,jRZ:()=>So,SX7:()=>Hn,jDH:()=>oe,G2t:()=>be,fuf:()=>Wo,cSN:()=>is,KVO:()=>oi,dmw:()=>Ii,joV:()=>Bt,By9:()=>Tr,qSk:()=>rs,Njj:()=>Ke,eBV:()=>Be});const o=Symbol("NotFound");function A(De){return De===o||"\u0275NotFound"===De?.name}Error;var h=l(48440),d=l(84412),w=l(71985);class f{full;major;minor;patch;constructor(at){this.full=at;const Jt=at.split(".");this.major=Jt[0],this.minor=Jt[1],this.patch=Jt.slice(2).join(".")}}const K="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss";class j extends Error{code;constructor(at,Jt){super(ee(at,Jt)),this.code=at}}function ee(De,at){return`${function Z(De){return`NG0${Math.abs(De)}`}(De)}${at?": "+at:""}`}const V=globalThis;function $(){return!1}function ie(De){for(let at in De)if(De[at]===ie)return at;throw Error("")}function _e(De,at){for(const Jt in at)at.hasOwnProperty(Jt)&&!De.hasOwnProperty(Jt)&&(De[Jt]=at[Jt])}function ye(De){if("string"==typeof De)return De;if(Array.isArray(De))return`[${De.map(ye).join(", ")}]`;if(null==De)return""+De;const at=De.overriddenName||De.name;if(at)return`${at}`;const Jt=De.toString();if(null==Jt)return""+Jt;const Yn=Jt.indexOf("\n");return Yn>=0?Jt.slice(0,Yn):Jt}function se(De,at){return De?at?`${De} ${at}`:De:at||""}const Ee=ie({__forward_ref__:ie});function L(De){return De.__forward_ref__=L,De.toString=function(){return ye(this())},De}function t(De){return s(De)?De():De}function s(De){return"function"==typeof De&&De.hasOwnProperty(Ee)&&De.__forward_ref__===L}function m(De,at){"number"!=typeof De&&Oe(at,typeof De,"number","===")}function u(De,at,Jt){m(De,"Expected a number"),function R(De,at,Jt){De<=at||Oe(Jt,De,at,"<=")}(De,Jt,"Expected number to be less than or equal to"),fe(De,at,"Expected number to be greater than or equal to")}function _(De,at){"string"!=typeof De&&Oe(at,null===De?"null":typeof De,"string","===")}function T(De,at){"function"!=typeof De&&Oe(at,null===De?"null":typeof De,"function","===")}function P(De,at,Jt){De!=at&&Oe(Jt,De,at,"==")}function C(De,at,Jt){De==at&&Oe(Jt,De,at,"!=")}function a(De,at,Jt){De!==at&&Oe(Jt,De,at,"===")}function x(De,at,Jt){De===at&&Oe(Jt,De,at,"!==")}function Y(De,at,Jt){Deat||Oe(Jt,De,at,">")}function fe(De,at,Jt){De>=at||Oe(Jt,De,at,">=")}function he(De,at){null==De&&Oe(at,De,null,"!=")}function Oe(De,at,Jt,Yn){throw new Error(`ASSERTION ERROR: ${De}`+(null==Yn?"":` [Expected=> ${Jt} ${Yn} ${at} <=Actual]`))}function ge(De){De instanceof Node||Oe(`The provided value must be an instance of a DOM Node but got ${ye(De)}`)}function ce(De){De instanceof Element||Oe(`The provided value must be an element but got ${ye(De)}`)}function Re(De,at){he(De,"Array must be defined.");const Jt=De.length;(at<0||at>=Jt)&&Oe(`Index expected to be less than ${Jt} but got ${at}`)}function Me(De,...at){if(-1!==at.indexOf(De))return!0;Oe(`Expected value to be one of ${JSON.stringify(at)} but was ${JSON.stringify(De)}.`)}function ve(De){null!==(0,h.nR)()&&Oe(`${De}() should never be called in a reactive context.`)}function oe(De){return{token:De.token,providedIn:De.providedIn||null,factory:De.factory,value:void 0}}function be(De){return{providers:De.providers||[],imports:De.imports||[]}}function nt(De){return function dt(De,at){return De.hasOwnProperty(at)&&De[at]||null}(De,rt)}function $e(De){return null!==nt(De)}function Et(De){return De&&De.hasOwnProperty(Mn)?De[Mn]:null}const rt=ie({\u0275prov:ie}),Mn=ie({\u0275inj:ie});class qt{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(at,Jt){this._desc=at,this.\u0275prov=void 0,"number"==typeof Jt?this.__NG_ELEMENT_ID__=Jt:void 0!==Jt&&(this.\u0275prov=oe({token:this,providedIn:Jt.providedIn||"root",factory:Jt.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}let S;function Xt(){return Oe("getInjectorProfilerContext should never be called in production mode"),S}function de(De){Oe("setInjectorProfilerContext should never be called in production mode");const at=S;return S=De,at}const ae=[],me=()=>{};function et(De){return Oe("setInjectorProfiler should never be called in production mode"),null!==De?(ae.includes(De)||ae.push(De),()=>function Le(De){const at=ae.indexOf(De);-1!==at&&ae.splice(at,1)}(De)):(ae.length=0,me)}function tn(De){Oe("Injector profiler should never be called in production mode");for(let at=0;at1&&(gi=` Path: ${Jt.join(" -> ")}.`);return ee(at,`${De}${Yn?` Source: ${Yn}.`:""}${gi}`)}(De[He]||De.message,De[it],De[Wt],at),De}(we(0,at),null)}function At(De,at){throw new j(-201,!1)}function It(De,at,Jt){const Yn=new j(at,De);return Yn[it]=at,Yn[He]=De,Jt&&(Yn[Wt]=Jt),Yn}let ei;function Li(){return ei}function kt(De){const at=ei;return ei=De,at}function Ot(De,at,Jt){const Yn=nt(De);return Yn&&"root"==Yn.providedIn?void 0===Yn.value?Yn.value=Yn.factory():Yn.value:8&Jt?null:void 0!==at?at:void At()}function Ze(De){}const Pt={},Yt="__NG_DI_FLAG__";class bn{injector;constructor(at){this.injector=at}retrieve(at,Jt){const Yn=Nt(Jt)||0;try{return this.injector.get(at,8&Yn?null:Pt,Yn)}catch(gi){if(A(gi))return gi;throw gi}}}function $n(De,at=0){const Jt=g();if(void 0===Jt)throw new j(-203,!1);if(null===Jt)return Ot(De,void 0,at);{const Yn=function nn(De){return{optional:!!(8&De),host:!!(1&De),self:!!(2&De),skipSelf:!!(4&De)}}(at),gi=Jt.retrieve(De,Yn);if(A(gi)){if(Yn.optional)return null;throw gi}return gi}}function oi(De,at=0){return(Li()||$n)(t(De),at)}function Ii(De){throw new j(202,!1)}function Ei(De,at){return oi(De,Nt(at))}function Nt(De){return typeof De>"u"||"number"==typeof De?De:0|(De.optional&&8)|(De.host&&1)|(De.self&&2)|(De.skipSelf&&4)}function en(De){const at=[];for(let Jt=0;JtArray.isArray(Jt)?zn(Jt,at):at(Jt))}function kn(De,at,Jt){at>=De.length?De.push(Jt):De.splice(at,0,Jt)}function Kn(De,at){return at>=De.length-1?De.pop():De.splice(at,1)[0]}function ci(De,at){const Jt=[];for(let Yn=0;Ynat;)De[gi]=De[gi-2],gi--;De[at]=Jt,De[at+1]=Yn}}function sa(De,at,Jt){let Yn=ua(De,at);return Yn>=0?De[1|Yn]=Jt:(Yn=~Yn,aa(De,Yn,at,Jt)),Yn}function ma(De,at){const Jt=ua(De,at);if(Jt>=0)return De[1|Jt]}function ua(De,at){return function dn(De,at,Jt){let Yn=0,gi=De.length>>Jt;for(;gi!==Yn;){const Pi=Yn+(gi-Yn>>1),Wa=De[Pi<at?gi=Pi:Yn=Pi+1}return~(gi<{Jt.push(Wa)};return zn(at,Wa=>{const Ui=Wa;ht(Ui,Pi,[],Yn)&&(gi||=[],gi.push(Ui))}),void 0!==gi&&an(gi,Pi),Jt}function an(De,at){for(let Jt=0;Jt{at(Pi,Yn)})}}function ht(De,at,Jt,Yn){if(!(De=t(De)))return!1;let gi=null,Pi=Et(De);const Wa=!Pi&&un(De);if(Pi||Wa){if(Wa&&!Wa.standalone)return!1;gi=De}else{const La=De.ngModule;if(Pi=Et(La),!Pi)return!1;gi=La}const Ui=Yn.has(gi);if(Wa){if(Ui)return!1;if(Yn.add(gi),Wa.dependencies){const La="function"==typeof Wa.dependencies?Wa.dependencies():Wa.dependencies;for(const _i of La)ht(_i,at,Jt,Yn)}}else{if(!Pi)return!1;{if(null!=Pi.imports&&!Ui){let _i;Yn.add(gi),zn(Pi.imports,tr=>{ht(tr,at,Jt,Yn)&&(_i||=[],_i.push(tr))}),void 0!==_i&&an(_i,at)}if(!Ui){const _i=Un(gi)||(()=>new gi);at({provide:gi,useFactory:_i,deps:Zn},gi),at({provide:Jn,useValue:gi,multi:!0},gi),at({provide:hi,useValue:()=>oi(gi),multi:!0},gi)}const La=Pi.providers;if(null!=La&&!Ui){const _i=De;cn(La,tr=>{at(tr,_i)})}}}return gi!==De&&void 0!==De.providers}function cn(De,at){for(let Jt of De)Pe(Jt)&&(Jt=Jt.\u0275providers),Array.isArray(Jt)?cn(Jt,at):at(Jt)}const si=ie({provide:String,useValue:ie});function pi(De){return null!==De&&"object"==typeof De&&si in De}function mn(De){return"function"==typeof De}function li(De){return!!De.useClass}const Ce=new qt(""),xt={},vt={};let rn;function Wn(){return void 0===rn&&(rn=new Bi),rn}class Yi{}class va extends Yi{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(at,Jt,Yn,gi){super(),this.parent=Jt,this.source=Yn,this.scopes=gi,fs(at,Wa=>this.processProvider(Wa)),this.records.set(Gn,ds(void 0,this)),gi.has("environment")&&this.records.set(Yi,ds(void 0,this));const Pi=this.records.get(Ce);null!=Pi&&"string"==typeof Pi.value&&this.scopes.add(Pi.value),this.injectorDefTypes=new Set(this.get(Jn,Zn,{self:!0}))}retrieve(at,Jt){const Yn=Nt(Jt)||0;try{return this.get(at,Pt,Yn)}catch(gi){if(A(gi))return gi;throw gi}}destroy(){Ar(this),this._destroyed=!0;const at=(0,h.Ht)(null);try{for(const Yn of this._ngOnDestroyHooks)Yn.ngOnDestroy();const Jt=this._onDestroyHooks;this._onDestroyHooks=[];for(const Yn of Jt)Yn()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),(0,h.Ht)(at)}}onDestroy(at){return Ar(this),this._onDestroyHooks.push(at),()=>this.removeOnDestroy(at)}runInContext(at){Ar(this);const Jt=p(this),Yn=kt(void 0);try{return at()}finally{p(Jt),kt(Yn)}}get(at,Jt=Pt,Yn){if(Ar(this),at.hasOwnProperty(Je))return at[Je](this);const gi=Nt(Yn),Wa=p(this),Ui=kt(void 0);try{if(!(4&gi)){let _i=this.records.get(at);if(void 0===_i){const tr=function zo(De){return"function"==typeof De||"object"==typeof De&&"InjectionToken"===De.ngMetadataName}(at)&&nt(at);_i=tr&&this.injectableDefInScope(tr)?ds(Va(at),xt):null,this.records.set(at,_i)}if(null!=_i)return this.hydrate(at,_i,gi)}return(2&gi?Wn():this.parent).get(at,Jt=8&gi&&Jt===Pt?null:Jt)}catch(La){const _i=function wn(De){return De[it]}(La);throw-200===_i||-201===_i?new j(_i,null):La}finally{kt(Ui),p(Wa)}}resolveInjectorInitializers(){const at=(0,h.Ht)(null),Jt=p(this),Yn=kt(void 0);try{const Pi=this.get(hi,Zn,{self:!0});for(const Wa of Pi)Wa()}finally{p(Jt),kt(Yn),(0,h.Ht)(at)}}toString(){const at=[],Jt=this.records;for(const Yn of Jt.keys())at.push(ye(Yn));return`R3Injector[${at.join(", ")}]`}processProvider(at){let Jt=mn(at=t(at))?at:t(at&&at.provide);const Yn=function ir(De){return pi(De)?ds(void 0,De.useValue):ds(Ga(De),xt)}(at);if(!mn(at)&&!0===at.multi){let gi=this.records.get(Jt);gi||(gi=ds(void 0,xt,!0),gi.factory=()=>en(gi.multi),this.records.set(Jt,gi)),Jt=at,gi.multi.push(at)}this.records.set(Jt,Yn)}hydrate(at,Jt,Yn){const gi=(0,h.Ht)(null);try{if(Jt.value===vt)throw we(ye(at));return Jt.value===xt&&(Jt.value=vt,Jt.value=Jt.factory(void 0,Yn)),"object"==typeof Jt.value&&Jt.value&&function hs(De){return null!==De&&"object"==typeof De&&"function"==typeof De.ngOnDestroy}(Jt.value)&&this._ngOnDestroyHooks.add(Jt.value),Jt.value}finally{(0,h.Ht)(gi)}}injectableDefInScope(at){if(!at.providedIn)return!1;const Jt=t(at.providedIn);return"string"==typeof Jt?"any"===Jt||this.scopes.has(Jt):this.injectorDefTypes.has(Jt)}removeOnDestroy(at){const Jt=this._onDestroyHooks.indexOf(at);-1!==Jt&&this._onDestroyHooks.splice(Jt,1)}}function Va(De){const at=nt(De),Jt=null!==at?at.factory:Un(De);if(null!==Jt)return Jt;if(De instanceof qt)throw new j(204,!1);if(De instanceof Function)return function $a(De){if(De.length>0)throw new j(204,!1);const Jt=function yt(De){return(De?.[rt]??null)||null}(De);return null!==Jt?()=>Jt.factory(De):()=>new De}(De);throw new j(204,!1)}function Ga(De,at,Jt){let Yn;if(mn(De)){const gi=t(De);return Un(gi)||Va(gi)}if(pi(De))Yn=()=>t(De.useValue);else if(function la(De){return!(!De||!De.useFactory)}(De))Yn=()=>De.useFactory(...en(De.deps||[]));else if(function Oi(De){return!(!De||!De.useExisting)}(De))Yn=(gi,Pi)=>oi(t(De.useExisting),void 0!==Pi&&8&Pi?8:void 0);else{const gi=t(De&&(De.useClass||De.provide));if(!function us(De){return!!De.deps}(De))return Un(gi)||Va(gi);Yn=()=>new gi(...en(De.deps))}return Yn}function Ar(De){if(De.destroyed)throw new j(205,!1)}function ds(De,at,Jt=!1){return{factory:De,value:at,multi:Jt?[]:void 0}}function fs(De,at){for(const Jt of De)Array.isArray(Jt)?fs(Jt,at):Jt&&Pe(Jt)?fs(Jt.\u0275providers,at):at(Jt)}function ms(De,at){let Jt;De instanceof va?(Ar(De),Jt=De):Jt=new bn(De);const gi=p(Jt),Pi=kt(void 0);try{return at()}finally{p(gi),kt(Pi)}}function bo(){return void 0!==Li()||null!=g()}function Zr(De){if(!bo())throw new j(-203,!1)}const js=0,Cs=1,Ka=2,Pr=3,Is=4,Wr=5,Uo=6,Js=7,Jo=8,qs=9,xo=10,Jr=11,ps=12,lr=13,dr=14,ar=15,Xr=16,Kr=17,Ms=18,Hi=19,Mr=20,gs=21,qr=22,Pa=23,_s=24,es=25,Yr=26,Aa=27,Za=6,ks=7,Rs=8,Nr=9,Ws=10;function Qr(De){return Array.isArray(De)&&"object"==typeof De[1]}function Es(De){return Array.isArray(De)&&!0===De[1]}function ct(De){return!!(4&De.flags)}function pt(De){return De.componentOffset>-1}function Ve(De){return!(1&~De.flags)}function Rt(De){return!!De.template}function vn(De){return!!(512&De[Ka])}function Er(De){return!(256&~De[Ka])}function Kt(De,at){_t(De,at[Cs])}function Vn(De,at){const Jt=at+Aa;Re(De,Jt),Y(Jt,De[Cs].bindingStartIndex,"TNodes should be created before any bindings")}function _t(De,at){xn(De);const Jt=at.data;for(let Yn=Aa;Yn) must have projection slots defined.")}function hl(De,at){he(De,"Component views should always have a parent view (component's host view)")}function Bl(De,at){Mo(De,at),Mo(De,at+8),m(De[at+0],"injectorIndex should point to a bloom filter"),m(De[at+1],"injectorIndex should point to a bloom filter"),m(De[at+2],"injectorIndex should point to a bloom filter"),m(De[at+3],"injectorIndex should point to a bloom filter"),m(De[at+4],"injectorIndex should point to a bloom filter"),m(De[at+5],"injectorIndex should point to a bloom filter"),m(De[at+6],"injectorIndex should point to a bloom filter"),m(De[at+7],"injectorIndex should point to a bloom filter"),m(De[at+8],"injectorIndex should point to parent injector")}const hr="svg",ns="math";function vi(De){for(;Array.isArray(De);)De=De[js];return De}function Vo(De){for(;Array.isArray(De);){if("object"==typeof De[1])return De;De=De[js]}return null}function Go(De,at){return vi(at[De])}function fl(De,at){return vi(at[De.index])}function ws(De,at){const Jt=null===De?-1:De.index;return-1!==Jt?vi(at[Jt]):null}function Ho(De,at){return De.data[at]}function fo(De,at){return De[at]}function xl(De,at,Jt,Yn){Jt>=De.data.length&&(De.data[Jt]=null,De.blueprint[Jt]=null),at[Jt]=Yn}function zl(De,at){const Jt=at[De];return Qr(Jt)?Jt:Jt[js]}function za(De){return!(4&~De[Ka])}function fr(De){return!(128&~De[Ka])}function Cl(De){return Es(De[Pr])}function to(De,at){return null==at?null:De[at]}function wo(De){De[Kr]=0}function mo(De){1024&De[Ka]||(De[Ka]|=1024,fr(De)&&no(De))}function So(De,at){for(;De>0;)at=at[dr],De--;return at}function jo(De){return!!(9216&De[Ka]||De[_s]?.dirty)}function ml(De){De[xo].changeDetectionScheduler?.notify(8),64&De[Ka]&&(De[Ka]|=1024),jo(De)&&no(De)}function no(De){De[xo].changeDetectionScheduler?.notify(0);let at=El(De);for(;null!==at&&!(8192&at[Ka])&&(at[Ka]|=8192,fr(at));)at=El(at)}function Ml(De,at){if(Er(De))throw new j(911,!1);null===De[gs]&&(De[gs]=[]),De[gs].push(at)}function io(De,at){if(null===De[gs])return;const Jt=De[gs].indexOf(at);-1!==Jt&&De[gs].splice(Jt,1)}function El(De){const at=De[Pr];return Es(at)?at[Pr]:at}function ao(De){return De[Js]??=[]}function $r(De){return De.cleanup??=[]}function Ss(De,at,Jt,Yn){const gi=ao(at);gi.push(Jt),De.firstCreatePass&&$r(De).push(Yn,gi.length-1)}const mi={lFrame:Dl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Xs=function(De){return De[De.Off=0]="Off",De[De.Exhaustive=1]="Exhaustive",De[De.OnlyDirtyViews=2]="OnlyDirtyViews",De}(Xs||{});let ro=0,Os=!1;function so(){return mi.lFrame.elementDepthCount}function el(){mi.lFrame.elementDepthCount++}function Ul(){mi.lFrame.elementDepthCount--}function To(){return mi.bindingsEnabled}function Zl(){return null!==mi.skipHydrationRootTNode}function wl(De){return mi.skipHydrationRootTNode===De}function is(){mi.bindingsEnabled=!0}function Wo(){mi.bindingsEnabled=!1}function tl(){mi.skipHydrationRootTNode=null}function Te(){return mi.lFrame.lView}function je(){return mi.lFrame.tView}function Be(De){return mi.lFrame.contextLView=De,De[Jo]}function Ke(De){return mi.lFrame.contextLView=null,De}function bt(){let De=Ht();for(;null!==De&&64===De.type;)De=De.parent;return De}function Ht(){return mi.lFrame.currentTNode}function sn(){const De=mi.lFrame,at=De.currentTNode;return De.isParent?at:at.parent}function Rn(De,at){const Jt=mi.lFrame;Jt.currentTNode=De,Jt.isParent=at}function di(){return mi.lFrame.isParent}function ji(){mi.lFrame.isParent=!1}function Ia(){return mi.lFrame.contextLView}function rr(){return Oe("Must never be called in production mode"),ro!==Xs.Off}function Fr(){return Oe("Must never be called in production mode"),ro===Xs.Exhaustive}function nl(De){Oe("Must never be called in production mode"),ro=De}function as(){return Os}function oo(De){const at=Os;return Os=De,at}function lo(){const De=mi.lFrame;let at=De.bindingRootIndex;return-1===at&&(at=De.bindingRootIndex=De.tView.bindingStartIndex),at}function Sl(){return mi.lFrame.bindingIndex}function mc(De){return mi.lFrame.bindingIndex=De}function ql(){return mi.lFrame.bindingIndex++}function Tl(De){const at=mi.lFrame,Jt=at.bindingIndex;return at.bindingIndex=at.bindingIndex+De,Jt}function qc(){return mi.lFrame.inI18n}function po(De){mi.lFrame.inI18n=De}function pc(De,at){const Jt=mi.lFrame;Jt.bindingIndex=Jt.bindingRootIndex=De,Ps(at)}function gc(){return mi.lFrame.currentDirectiveIndex}function Ps(De){mi.lFrame.currentDirectiveIndex=De}function Do(De){const at=mi.lFrame.currentDirectiveIndex;return-1===at?null:De[at]}function e1(){return mi.lFrame.currentQueryIndex}function Ao(De){mi.lFrame.currentQueryIndex=De}function kc(De){const at=De[Cs];return 2===at.type?at.declTNode:1===at.type?De[Wr]:null}function pl(De,at,Jt){if(4&Jt){let gi=at,Pi=De;for(;!(gi=gi.parent,null!==gi||1&Jt||(gi=kc(Pi),null===gi||(Pi=Pi[dr],10&gi.type))););if(null===gi)return!1;at=gi,De=Pi}const Yn=mi.lFrame=Lo();return Yn.currentTNode=at,Yn.lView=De,!0}function il(De){const at=Lo(),Jt=De[Cs];mi.lFrame=at,at.currentTNode=Jt.firstChild,at.lView=De,at.tView=Jt,at.contextLView=De,at.bindingIndex=Jt.bindingStartIndex,at.inI18n=!1}function Lo(){const De=mi.lFrame,at=null===De?null:De.child;return null===at?Dl(De):at}function Dl(De){const at={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:De,child:null,inI18n:!1};return null!==De&&(De.child=at),at}function Vl(){const De=mi.lFrame;return mi.lFrame=De.parent,De.currentTNode=null,De.lView=null,De}const Gl=Vl;function Hl(){const De=Vl();De.isParent=!0,De.tView=null,De.selectedIndex=-1,De.contextLView=null,De.elementDepthCount=0,De.currentDirectiveIndex=-1,De.currentNamespace=null,De.bindingRootIndex=-1,De.bindingIndex=-1,De.currentQueryIndex=0}function Al(De){return(mi.lFrame.contextLView=So(De,mi.lFrame.contextLView))[Jo]}function Io(){return mi.lFrame.selectedIndex}function ko(De){mi.lFrame.selectedIndex=De}function jl(){const De=mi.lFrame;return Ho(De.tView,De.selectedIndex)}function rs(){mi.lFrame.currentNamespace=hr}function Tr(){mi.lFrame.currentNamespace=ns}function Bt(){!function ft(){mi.lFrame.currentNamespace=null}()}function Tt(){return mi.lFrame.currentNamespace}let on=!0;function Hn(){return on}function ni(De){on=De}function Mi(De,at=null,Jt=null,Yn){const gi=ki(De,at,Jt,Yn);return gi.resolveInjectorInitializers(),gi}function ki(De,at=null,Jt=null,Yn,gi=new Set){const Pi=[Jt||Zn,Ma(De)];return Yn=Yn||("object"==typeof De?void 0:ye(De)),new va(Pi,at||Wn(),Yn||null,gi)}class $i{static THROW_IF_NOT_FOUND=Pt;static NULL=new Bi;static create(at,Jt){if(Array.isArray(at))return Mi({name:""},Jt,at,"");{const Yn=at.name??"";return Mi({name:Yn},at.parent,at.providers,Yn)}}static \u0275prov=oe({token:$i,providedIn:"any",factory:()=>oi(Gn)});static __NG_ELEMENT_ID__=-1}const ra=new qt("");let ba=(()=>class De{static __NG_ELEMENT_ID__=mr;static __NG_ENV_ID__=Jt=>Jt})();class oa extends ba{_lView;constructor(at){super(),this._lView=at}get destroyed(){return Er(this._lView)}onDestroy(at){const Jt=this._lView;return Ml(Jt,at),()=>io(Jt,at)}}function mr(){return new oa(Te())}class Lr{_console=console;handleError(at){this._console.error("ERROR",at)}}const bi=new qt("",{providedIn:"root",factory:()=>{const De=Ei(Yi);let at;return Jt=>{De.destroyed&&!at?setTimeout(()=>{throw Jt}):(at??=De.get(Lr),at.handleError(Jt))}}}),Ns={provide:hi,useValue:()=>{Ei(Lr)},multi:!0};function Ro(De){return"function"==typeof De&&void 0!==De[h.bh]}function gl(De,at){const[Jt,Yn,gi]=(0,h.n5)(De,at?.equal),Pi=Jt;return Pi.set=Yn,Pi.update=gi,Pi.asReadonly=Ks.bind(Pi),Pi}function Ks(){const De=this[h.bh];if(void 0===De.readonlyFn){const at=()=>this();at[h.bh]=De,De.readonlyFn=at}return De.readonlyFn}function ec(De){return Ro(De)&&"function"==typeof De.set}function Wl(De,at){if(null!==(0,h.nR)())throw new j(-602,!1)}let ed=(()=>class De{view;node;constructor(Jt,Yn){this.view=Jt,this.node=Yn}static __NG_ELEMENT_ID__=_d})();function _d(){return new ed(Te(),bt())}class _c{}const td=new qt("",{providedIn:"root",factory:()=>!1}),tc=new qt("",{providedIn:"root",factory:()=>!1}),vd=new qt(""),nc=new qt("");let co=(()=>{class De{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new d.t(!1);get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new w.c(Jt=>{Jt.next(!1),Jt.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);const Jt=this.taskId++;return this.pendingTasks.add(Jt),Jt}has(Jt){return this.pendingTasks.has(Jt)}remove(Jt){this.pendingTasks.delete(Jt),0===this.pendingTasks.size&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=oe({token:De,providedIn:"root",factory:()=>new De})}return De})(),ja=(()=>{class De{internalPendingTasks=Ei(co);scheduler=Ei(_c);errorHandler=Ei(bi);add(){const Jt=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(Jt)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(Jt))}}run(Jt){const Yn=this.add();Jt().catch(this.errorHandler).finally(Yn)}static \u0275prov=oe({token:De,providedIn:"root",factory:()=>new De})}return De})();function Ti(...De){}let Ra=(()=>{class De{static \u0275prov=oe({token:De,providedIn:"root",factory:()=>new cr})}return De})();class cr{dirtyEffectCount=0;queues=new Map;add(at){this.enqueue(at),this.schedule(at)}schedule(at){at.dirty&&this.dirtyEffectCount++}remove(at){const Yn=this.queues.get(at.zone);Yn.has(at)&&(Yn.delete(at),at.dirty&&this.dirtyEffectCount--)}enqueue(at){const Jt=at.zone;this.queues.has(Jt)||this.queues.set(Jt,new Set);const Yn=this.queues.get(Jt);Yn.has(at)||Yn.add(at)}flush(){for(;this.dirtyEffectCount>0;){let at=!1;for(const[Jt,Yn]of this.queues)at||=null===Jt?this.flushQueue(Yn):Jt.run(()=>this.flushQueue(Yn));at||(this.dirtyEffectCount=0)}}flushQueue(at){let Jt=!1;for(const Yn of at)Yn.dirty&&(this.dirtyEffectCount--,Jt=!0,Yn.run());return Jt}}},89079(ke,q,l){"use strict";l.d(q,{ot:()=>ye});var Z=l(2615),ee=l(59295);function ye(L,t){const m=t?.manualCleanup?null:t?.injector?.get(Z.abz)??(0,Z.WQX)(Z.abz),u=function se(L=Object.is){return(t,s)=>1===t.kind&&1===s.kind&&L(t.value,s.value)}(t?.equal);let _,T;_=(0,Z.vPA)(t?.requireSync?{kind:0}:{kind:1,value:t?.initialValue},{equal:u});const P=L.subscribe({next:C=>_.set({kind:1,value:C}),error:C=>{_.set({kind:2,error:C}),T?.()},complete:()=>{T?.()}});if(t?.requireSync&&0===_().kind)throw new Z.buA(601,!1);return T=m?.onDestroy(P.unsubscribe.bind(P)),(0,ee.EW)(()=>{const C=_();switch(C.kind){case 1:return C.value;case 2:throw C.error;case 0:throw new Z.buA(601,!1)}},{equal:t?.equal})}},48440(ke,q,l){"use strict";l.d(q,{Ag:()=>_,Bg:()=>V,EF:()=>P,H8:()=>m,Ht:()=>e,JC:()=>M,KE:()=>h,KO:()=>R,KZ:()=>u,Ny:()=>T,TO:()=>ee,Wu:()=>$,XR:()=>ye,a7:()=>L,bh:()=>o,j2:()=>Oe,mC:()=>ge,mK:()=>f,n5:()=>fe,nR:()=>A,pL:()=>w,s0:()=>Re,si:()=>_e});let i=null,g=!1,p=1;const o=Symbol("SIGNAL");function e(ve){const oe=i;return i=ve,oe}function A(){return i}function h(){return g}const w={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function f(ve){if(g)throw new Error("");if(null===i)return;i.consumerOnSignalRead(ve);const oe=i.producersTail;if(void 0!==oe&&oe.producer===ve)return;let Se;const be=i.recomputing;if(be&&(Se=void 0!==oe?oe.nextProducer:i.producers,void 0!==Se&&Se.producer===ve))return i.producersTail=Se,void(Se.lastReadVersion=ve.version);const nt=ve.consumersTail;if(void 0!==nt&&nt.consumer===i&&(!be||function s(ve,oe){const Se=oe.producersTail;if(void 0!==Se){let be=oe.producers;do{if(be===ve)return!0;if(be===Se)break;be=be.nextProducer}while(void 0!==be)}return!1}(nt,i)))return;const $e=Ee(i),dt={producer:ve,consumer:i,nextProducer:Se,prevConsumer:nt,lastReadVersion:ve.version,nextConsumer:void 0};i.producersTail=dt,void 0!==oe?oe.nextProducer=dt:i.producers=dt,$e&&se(ve,dt)}function M(ve){if((!Ee(ve)||ve.dirty)&&(ve.dirty||ve.lastCleanEpoch!==p)){if(!ve.producerMustRecompute(ve)&&!_e(ve))return void ee(ve);ve.producerRecomputeValue(ve),ee(ve)}}function K(ve){if(void 0===ve.consumers)return;const oe=g;g=!0;try{for(let Se=ve.consumers;void 0!==Se;Se=Se.nextConsumer){const be=Se.consumer;be.dirty||Z(be)}}finally{g=oe}}function j(){return!1!==i?.consumerAllowSignalWrites}function Z(ve){ve.dirty=!0,K(ve),ve.consumerMarkedDirty?.(ve)}function ee(ve){ve.dirty=!1,ve.lastCleanEpoch=p}function V(ve){return ve&&function Q(ve){ve.producersTail=void 0,ve.recomputing=!0}(ve),e(ve)}function $(ve,oe){e(oe),ve&&function ie(ve){ve.recomputing=!1;const oe=ve.producersTail;let Se=void 0!==oe?oe.nextProducer:ve.producers;if(void 0!==Se){if(Ee(ve))do{Se=pe(Se)}while(void 0!==Se);void 0!==oe?oe.nextProducer=void 0:ve.producers=void 0}}(ve)}function _e(ve){for(let oe=ve.producers;void 0!==oe;oe=oe.nextProducer){const Se=oe.producer,be=oe.lastReadVersion;if(be!==Se.version||(M(Se),be!==Se.version))return!0}return!1}function ye(ve){if(Ee(ve)){let oe=ve.producers;for(;void 0!==oe;)oe=pe(oe)}ve.producers=void 0,ve.producersTail=void 0,ve.consumers=void 0,ve.consumersTail=void 0}function se(ve,oe){const Se=ve.consumersTail,be=Ee(ve);if(void 0!==Se?(oe.nextConsumer=Se.nextConsumer,Se.nextConsumer=oe):(oe.nextConsumer=void 0,ve.consumers=oe),oe.prevConsumer=Se,ve.consumersTail=oe,!be)for(let nt=ve.producers;void 0!==nt;nt=nt.nextProducer)se(nt.producer,nt)}function pe(ve){const oe=ve.producer,Se=ve.nextProducer,be=ve.nextConsumer,nt=ve.prevConsumer;if(ve.nextConsumer=void 0,ve.prevConsumer=void 0,void 0!==be?be.prevConsumer=nt:oe.consumersTail=nt,void 0!==nt)nt.nextConsumer=be;else if(oe.consumers=be,!Ee(oe)){let $e=oe.producers;for(;void 0!==$e;)$e=pe($e)}return Se}function Ee(ve){return ve.consumerIsAlwaysLive||void 0!==ve.consumers}function L(ve){}function m(ve,oe){return Object.is(ve,oe)}function u(ve,oe){const Se=Object.create(C);Se.computation=ve,void 0!==oe&&(Se.equal=oe);const be=()=>{if(M(Se),f(Se),Se.value===P)throw Se.error;return Se.value};return be[o]=Se,be}const _=Symbol("UNSET"),T=Symbol("COMPUTING"),P=Symbol("ERRORED"),C={...w,value:_,dirty:!0,error:null,equal:m,kind:"computed",producerMustRecompute:ve=>ve.value===_||ve.value===T,producerRecomputeValue(ve){if(ve.value===T)throw new Error("");const oe=ve.value;ve.value=T;const Se=V(ve);let be,nt=!1;try{be=ve.computation(),e(null),nt=oe!==_&&oe!==P&&be!==P&&ve.equal(oe,be)}catch($e){be=P,ve.error=$e}finally{$(ve,Se)}nt?ve.value=oe:(ve.value=be,ve.version++)}};let x=function a(){throw new Error};function Y(ve){x(ve)}function R(ve){x=ve}function fe(ve,oe){const Se=Object.create(Re);Se.value=ve,void 0!==oe&&(Se.equal=oe);const be=()=>function he(ve){return f(ve),ve.value}(Se);return be[o]=Se,[be,dt=>Oe(Se,dt),dt=>ge(Se,dt)]}function Oe(ve,oe){j()||Y(ve),ve.equal(ve.value,oe)||(ve.value=oe,function Me(ve){ve.version++,function F(){p++}(),K(ve)}(ve))}function ge(ve,oe){j()||Y(ve),Oe(ve,oe(ve.value))}const Re={...w,equal:m,value:void 0,kind:"signal"}},24545(ke,q,l){"use strict";function i(w){for(let f in w){let F=w[f]??"";switch(f){case"display":w.display="flex"===F?["-webkit-flex","flex"]:"inline-flex"===F?["-webkit-inline-flex","inline-flex"]:F;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":w["-webkit-"+f]=F;break;case"flex-direction":w["-webkit-flex-direction"]=F,w["flex-direction"]=F;break;case"order":w.order=w["-webkit-"+f]=isNaN(+F)?"0":F}}return w}l.d(q,{C5:()=>d,O5:()=>i,Uo:()=>p,Vc:()=>e,uG:()=>D});const g="inline",p=["row","column","row-reverse","column-reverse"];function D(w){let[f,F,M]=o(w);return function h(w,f=null,F=!1){return{display:F?"inline-flex":"flex","box-sizing":"border-box","flex-direction":w,"flex-wrap":f||null}}(f,F,M)}function o(w){w=w?.toLowerCase()??"";let[f,F,M]=w.split(" ");return p.find(K=>K===f)||(f=p[0]),F===g&&(F=M!==g?M:"",M=g),[f,A(F),!!M]}function e(w){let[f]=o(w);return f.indexOf("row")>-1}function A(w){if(w)switch(w.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":w="wrap-reverse";break;case"no":case"none":case"nowrap":w="nowrap";break;default:w="wrap"}return w}function d(w,...f){if(null==w)throw TypeError("Cannot convert undefined or null to object");for(let F of f)if(null!=F)for(let M in F)F.hasOwnProperty(M)&&(w[M]=F[M]);return w}},29340(ke,q,l){"use strict";l.d(q,{Ce:()=>P,DJ:()=>tt,EA:()=>T,PV:()=>_,SL:()=>C,Ui:()=>s,ZH:()=>Y,cL:()=>Ye,hN:()=>Je,qH:()=>En,r3:()=>x});var Z=l(2615),ee=l(73664),V=l(60177),Q=l(71985),$=l(21413),ie=l(84412),_e=l(57786),ye=l(24545),se=l(5964),pe=l(88141);const L={provide:ee.iLQ,useFactory:function Ee(st,it){return()=>{if((0,V.UE)(it)){const He=Array.from(st.querySelectorAll(`[class*=${t}]`)),Wt=/\bflex-layout-.+?\b/g;He.forEach(we=>{we.classList.contains(`${t}ssr`)&&we.parentNode?we.parentNode.removeChild(we):we.className.replace(Wt,"")})}}},deps:[Z.qQL,ee.Agw],multi:!0},t="flex-layout-";let s=(()=>{class st{}return st.\u0275fac=function(He){return new(He||st)},st.\u0275mod=ee.$C({type:st}),st.\u0275inj=Z.G2t({providers:[L]}),st})();class m{constructor(it=!1,He="all",Wt="",we="",We=0){this.matches=it,this.mediaQuery=He,this.mqAlias=Wt,this.suffix=we,this.priority=We,this.property=""}clone(){return new m(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let u=(()=>{class st{constructor(){this.stylesheet=new Map}addStyleToElement(He,Wt,we){const We=this.stylesheet.get(He);We?We.set(Wt,we):this.stylesheet.set(He,new Map([[Wt,we]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(He,Wt){const we=this.stylesheet.get(He);let We="";if(we){const Lt=we.get(Wt);("number"==typeof Lt||"string"==typeof Lt)&&(We=Lt+"")}return We}}return st.\u0275fac=function(He){return new(He||st)},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();const _={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},T=new Z.nKC("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>_}),P=new Z.nKC("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),C=new Z.nKC("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function a(st,it){return st=st?.clone()??new m,it&&(st.mqAlias=it.alias,st.mediaQuery=it.mediaQuery,st.suffix=it.suffix,st.priority=it.priority),st}class x{constructor(){this.shouldCache=!0}sideEffect(it,He,Wt){}}let Y=(()=>{class st{constructor(He,Wt,we,We){this._serverStylesheet=He,this._serverModuleLoaded=Wt,this._platformId=we,this.layoutConfig=We}applyStyleToElement(He,Wt,we=null){let We={};"string"==typeof Wt&&(We[Wt]=we,Wt=We),We=this.layoutConfig.disableVendorPrefixes?Wt:(0,ye.O5)(Wt),this._applyMultiValueStyleToElement(We,He)}applyStyleToElements(He,Wt=[]){const we=this.layoutConfig.disableVendorPrefixes?He:(0,ye.O5)(He);Wt.forEach(We=>{this._applyMultiValueStyleToElement(we,We)})}getFlowDirection(He){const Wt="flex-direction";let we=this.lookupStyle(He,Wt);return[we||"row",this.lookupInlineStyle(He,Wt)||(0,V.Vy)(this._platformId)&&this._serverModuleLoaded?we:""]}hasWrap(He){return"wrap"===this.lookupStyle(He,"flex-wrap")}lookupAttributeValue(He,Wt){return He.getAttribute(Wt)??""}lookupInlineStyle(He,Wt){return(0,V.UE)(this._platformId)?He.style.getPropertyValue(Wt):function R(st,it){return re(st)[it]??""}(He,Wt)}lookupStyle(He,Wt,we=!1){let We="";return He&&((We=this.lookupInlineStyle(He,Wt))||((0,V.UE)(this._platformId)?we||(We=getComputedStyle(He).getPropertyValue(Wt)):this._serverModuleLoaded&&(We=this._serverStylesheet.getStyleForElement(He,Wt)))),We?We.trim():""}_applyMultiValueStyleToElement(He,Wt){Object.keys(He).sort().forEach(we=>{const We=He[we],Lt=Array.isArray(We)?We:[We];Lt.sort();for(let St of Lt)St=St?St+"":"",(0,V.UE)(this._platformId)||!this._serverModuleLoaded?(0,V.UE)(this._platformId)?Wt.style.setProperty(we,St):U(Wt,we,St):this._serverStylesheet.addStyleToElement(Wt,we,St)})}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(u),Z.KVO(P),Z.KVO(ee.Agw),Z.KVO(T))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();function U(st,it,He){it=it.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Wt=re(st);Wt[it]=He??"",function fe(st,it){let He="";for(const Wt in it)it[Wt]&&(He+=`${Wt}:${it[Wt]};`);st.setAttribute("style",He)}(st,Wt)}function re(st){const it={},He=st.getAttribute("style");if(He){const Wt=He.split(/;+/g);for(let we=0;we0){const Lt=We.indexOf(":");if(-1===Lt)throw new Error(`Invalid CSS style: ${We}`);it[We.substr(0,Lt).trim()]=We.substr(Lt+1).trim()}}}return it}function he(st,it){return(it&&it.priority||0)-(st&&st.priority||0)}function Oe(st,it){return(st.priority||0)-(it.priority||0)}let ge=(()=>{class st{constructor(He,Wt,we){this._zone=He,this._platformId=Wt,this._document=we,this.source=new ie.t(new m(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const He=[];return this.registry.forEach((Wt,we)=>{Wt.matches&&He.push(we)}),He}isActive(He){return this.registry.get(He)?.matches??this.registerQuery(He).some(we=>we.matches)}observe(He,Wt=!1){if(He&&He.length){const we=this._observable$.pipe((0,se.p)(Lt=>!Wt||He.indexOf(Lt.mediaQuery)>-1)),We=new Q.c(Lt=>{const St=this.registerQuery(He);if(St.length){const At=St.pop();St.forEach(fn=>{Lt.next(fn)}),this.source.next(At)}Lt.complete()});return(0,_e.h)(We,we)}return this._observable$}registerQuery(He){const Wt=Array.isArray(He)?He:[He],we=[];return function Re(st,it){const He=st.filter(Wt=>!ce[Wt]);if(He.length>0){const Wt=He.join(", ");try{const we=it.createElement("style");we.setAttribute("type","text/css"),we.styleSheet||we.appendChild(it.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${Wt} {.fx-query-test{ }}\n`)),it.head.appendChild(we),He.forEach(We=>ce[We]=we)}catch(we){console.error(we)}}}(Wt,this._document),Wt.forEach(We=>{const Lt=At=>{this._zone.run(()=>this.source.next(new m(At.matches,We)))};let St=this.registry.get(We);St||(St=this.buildMQL(We),St.addListener(Lt),this.pendingRemoveListenerFns.push(()=>St.removeListener(Lt)),this.registry.set(We,St)),St.matches&&we.push(new m(!0,We))}),we}ngOnDestroy(){let He;for(;He=this.pendingRemoveListenerFns.pop();)He()}buildMQL(He){return function ve(st,it){return it&&window.matchMedia("all").addListener?window.matchMedia(st):function Me(st){const it=new EventTarget;return it.matches="all"===st||""===st,it.media=st,it.addListener=()=>{},it.removeListener=()=>{},it.addEventListener=()=>{},it.dispatchEvent=()=>!1,it.onchange=null,it}(st)}(He,(0,V.UE)(this._platformId))}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(ee.SKi),Z.KVO(ee.Agw),Z.KVO(Z.qQL))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();const ce={},oe=[{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}],Se="(orientation: portrait) and (max-width: 599.98px)",be="(orientation: landscape) and (max-width: 959.98px)",nt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",$e="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",dt="(orientation: portrait) and (min-width: 840px)",yt="(orientation: landscape) and (min-width: 1280px)",Et={HANDSET:`${Se}, ${be}`,TABLET:`${nt} , ${$e}`,WEB:`${dt}, ${yt} `,HANDSET_PORTRAIT:`${Se}`,TABLET_PORTRAIT:`${nt} `,WEB_PORTRAIT:`${dt}`,HANDSET_LANDSCAPE:`${be}`,TABLET_LANDSCAPE:`${$e}`,WEB_LANDSCAPE:`${yt}`},rt=[{alias:"handset",priority:2e3,mediaQuery:Et.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Et.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Et.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Et.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Et.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Et.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Et.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Et.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Et.WEB_PORTRAIT,overlapping:!0}],Mn=/(\.|-|_)/g;function qt(st){let it=st.length>0?st.charAt(0):"",He=st.length>1?st.slice(1):"";return it.toUpperCase()+He}const ae=new Z.nKC("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const st=(0,Z.WQX)(C),it=(0,Z.WQX)(T),He=[].concat.apply([],(st||[]).map(we=>Array.isArray(we)?we:[we]));return function de(st,it=[]){const He={};return st.forEach(Wt=>{He[Wt.alias]=Wt}),it.forEach(Wt=>{He[Wt.alias]?(0,ye.C5)(He[Wt.alias],Wt):He[Wt.alias]=Wt}),function Xt(st){return st.forEach(it=>{it.suffix||(it.suffix=function S(st){return st.replace(Mn,"|").split("|").map(qt).join("")}(it.alias),it.overlapping=!!it.overlapping)}),st}(Object.keys(He).map(Wt=>He[Wt]))}((it.disableDefaultBps?[]:oe).concat(it.addOrientationBps?rt:[]),He)}});let me=(()=>{class st{constructor(He){this.findByMap=new Map,this.items=[...He].sort(Oe)}findByAlias(He){return He?this.findWithPredicate(He,Wt=>Wt.alias===He):null}findByQuery(He){return this.findWithPredicate(He,Wt=>Wt.mediaQuery===He)}get overlappings(){return this.items.filter(He=>He.overlapping)}get aliases(){return this.items.map(He=>He.alias)}get suffixes(){return this.items.map(He=>He?.suffix??"")}findWithPredicate(He,Wt){let we=this.findByMap.get(He);return we||(we=this.items.find(Wt)??null,this.findByMap.set(He,we)),we??null}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(ae))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();const Le="print",et={alias:Le,mediaQuery:Le,priority:1e3};let tn=(()=>{class st{constructor(He,Wt,we){this.breakpoints=He,this.layoutConfig=Wt,this._document=we,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Vt,this.deactivations=[]}withPrintQuery(He){return[...He,Le]}isPrintEvent(He){return He.mediaQuery.startsWith(Le)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(He=>this.breakpoints.findByAlias(He)).filter(He=>null!==He)}getEventBreakpoints({mediaQuery:He}){const Wt=this.breakpoints.findByQuery(He);return(Wt?[...this.printBreakPoints,Wt]:this.printBreakPoints).sort(he)}updateEvent(He){let Wt=this.breakpoints.findByQuery(He.mediaQuery);return this.isPrintEvent(He)&&(Wt=this.getEventBreakpoints(He)[0],He.mediaQuery=Wt?.mediaQuery??""),a(He,Wt)}registerBeforeAfterPrintHooks(He){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Wt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(He,this.getEventBreakpoints(new m(!0,Le))),He.updateStyles())},we=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(He),He.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Wt),this._document.defaultView.addEventListener("afterprint",we),this.beforePrintEventListeners.push(Wt),this.afterPrintEventListeners.push(we)}interceptEvents(He){return Wt=>{this.isPrintEvent(Wt)?Wt.matches&&!this.isPrinting?(this.startPrinting(He,this.getEventBreakpoints(Wt)),He.updateStyles()):!Wt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(He),He.updateStyles()):this.collectActivations(He,Wt)}}blockPropagation(){return He=>!(this.isPrinting||this.isPrintEvent(He))}startPrinting(He,Wt){this.isPrinting=!0,this.formerActivations=He.activatedBreakpoints,He.activatedBreakpoints=this.queue.addPrintBreakpoints(Wt)}stopPrinting(He){He.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(He,Wt){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Wt.matches){const we=this.breakpoints.findByQuery(Wt.mediaQuery);if(we){const We=this.formerActivations&&this.formerActivations.includes(we),Lt=!this.formerActivations&&He.activatedBreakpoints.includes(we);(We||Lt)&&(this.deactivations.push(we),this.deactivations.sort(he))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(He=>this._document.defaultView.removeEventListener("beforeprint",He)),this.afterPrintEventListeners.forEach(He=>this._document.defaultView.removeEventListener("afterprint",He)))}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(me),Z.KVO(T),Z.KVO(Z.qQL))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();class Vt{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(it){return it.push(et),it.sort(he),it.forEach(He=>this.addBreakpoint(He)),this.printBreakpoints}addBreakpoint(it){it&&void 0===this.printBreakpoints.find(Wt=>Wt.mediaQuery===it.mediaQuery)&&(this.printBreakpoints=function hn(st){return st?.mediaQuery.startsWith(Le)??!1}(it)?[it,...this.printBreakpoints]:[...this.printBreakpoints,it])}clear(){this.printBreakpoints=[]}}let En=(()=>{class st{constructor(He,Wt,we){this.matchMedia=He,this.breakpoints=Wt,this.hook=we,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 $.B,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(He){this._activatedBreakpoints=[...He]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(He){this._useFallbacks=He}onMediaChange(He){const Wt=this.findByQuery(He.mediaQuery);if(Wt){He=a(He,Wt);const we=this.activatedBreakpoints.indexOf(Wt);He.matches&&-1===we?(this._activatedBreakpoints.push(Wt),this._activatedBreakpoints.sort(he),this.updateStyles()):!He.matches&&-1!==we&&(this._activatedBreakpoints.splice(we,1),this._activatedBreakpoints.sort(he),this.updateStyles())}}init(He,Wt,we,We,Lt=[]){_n(this.updateMap,He,Wt,we),_n(this.clearMap,He,Wt,We),this.buildElementKeyMap(He,Wt),this.watchExtraTriggers(He,Wt,Lt)}getValue(He,Wt,we){const We=this.elementMap.get(He);if(We){const Lt=void 0!==we?We.get(we):this.getActivatedValues(We,Wt);if(Lt)return Lt.get(Wt)}}hasValue(He,Wt){const we=this.elementMap.get(He);if(we){const We=this.getActivatedValues(we,Wt);if(We)return void 0!==We.get(Wt)||!1}return!1}setValue(He,Wt,we,We){let Lt=this.elementMap.get(He);if(Lt){const At=(Lt.get(We)??new Map).set(Wt,we);Lt.set(We,At),this.elementMap.set(He,Lt)}else Lt=(new Map).set(We,(new Map).set(Wt,we)),this.elementMap.set(He,Lt);const St=this.getValue(He,Wt);void 0!==St&&this.updateElement(He,Wt,St)}trackValue(He,Wt){return this.subject.asObservable().pipe((0,se.p)(we=>we.element===He&&we.key===Wt))}updateStyles(){this.elementMap.forEach((He,Wt)=>{const we=new Set(this.elementKeyMap.get(Wt));let We=this.getActivatedValues(He);We&&We.forEach((Lt,St)=>{this.updateElement(Wt,St,Lt),we.delete(St)}),we.forEach(Lt=>{if(We=this.getActivatedValues(He,Lt),We){const St=We.get(Lt);this.updateElement(Wt,Lt,St)}else this.clearElement(Wt,Lt)})})}clearElement(He,Wt){const we=this.clearMap.get(He);if(we){const We=we.get(Wt);We&&(We(),this.subject.next({element:He,key:Wt,value:""}))}}updateElement(He,Wt,we){const We=this.updateMap.get(He);if(We){const Lt=We.get(Wt);Lt&&(Lt(we),this.subject.next({element:He,key:Wt,value:we}))}}releaseElement(He){const Wt=this.watcherMap.get(He);Wt&&(Wt.forEach(We=>We.unsubscribe()),this.watcherMap.delete(He));const we=this.elementMap.get(He);we&&(we.forEach((We,Lt)=>we.delete(Lt)),this.elementMap.delete(He))}triggerUpdate(He,Wt){const we=this.elementMap.get(He);if(we){const We=this.getActivatedValues(we,Wt);We&&(Wt?this.updateElement(He,Wt,We.get(Wt)):We.forEach((Lt,St)=>this.updateElement(He,St,Lt)))}}buildElementKeyMap(He,Wt){let we=this.elementKeyMap.get(He);we||(we=new Set,this.elementKeyMap.set(He,we)),we.add(Wt)}watchExtraTriggers(He,Wt,we){if(we&&we.length){let We=this.watcherMap.get(He);if(We||(We=new Map,this.watcherMap.set(He,We)),!We.get(Wt)){const St=(0,_e.h)(...we).subscribe(()=>{const At=this.getValue(He,Wt);this.updateElement(He,Wt,At)});We.set(Wt,St)}}}findByQuery(He){return this.breakpoints.findByQuery(He)}getActivatedValues(He,Wt){for(let We=0;WeWt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(He)).pipe((0,pe.M)(this.hook.interceptEvents(this)),(0,se.p)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(ge),Z.KVO(me),Z.KVO(tn))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();function _n(st,it,He,Wt){if(void 0!==Wt){const we=st.get(it)??new Map;we.set(He,Wt),st.set(it,we)}}let tt=(()=>{class st{constructor(He,Wt,we,We){this.elementRef=He,this.styleBuilder=Wt,this.styler=we,this.marshal=We,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new $.B,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(He){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,He,this.marshal.activatedAlias)}ngOnChanges(He){Object.keys(He).forEach(Wt=>{if(-1!==this.inputs.indexOf(Wt)){const we=Wt.split(".").slice(1).join(".");this.setValue(He[Wt].currentValue,we)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(He=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),He)}addStyles(He,Wt){const we=this.styleBuilder,We=we.shouldCache;let Lt=this.styleCache.get(He);(!Lt||!We)&&(Lt=we.buildStyles(He,Wt),We&&this.styleCache.set(He,Lt)),this.mru={...Lt},this.applyStyleToElement(Lt),we.sideEffect(He,Lt,Wt)}clearStyles(){Object.keys(this.mru).forEach(He=>{this.mru[He]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(He,Wt=!1){if(He){const[we,We]=this.styler.getFlowDirection(He);if(!We&&Wt){const Lt=(0,ye.uG)(we);this.styler.applyStyleToElements(Lt,[He])}return we.trim()}return"row"}hasWrap(He){return this.styler.hasWrap(He)}applyStyleToElement(He,Wt,we=this.nativeElement){this.styler.applyStyleToElement(we,He,Wt)}setValue(He,Wt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,He,Wt)}updateWithValue(He){this.currentValue!==He&&(this.addStyles(He),this.currentValue=He)}}return st.\u0275fac=function(He){return new(He||st)(ee.rXU(ee.aKT),ee.rXU(x),ee.rXU(Y),ee.rXU(En))},st.\u0275dir=ee.FsC({type:st,standalone:!1,features:[ee.OA$]}),st})();function Je(st,it="1",He="1"){let Wt=[it,He,st],we=st.indexOf("calc");if(we>0){Wt[2]=gt(st.substring(we).trim());let We=st.substr(0,we).trim().split(" ");2==We.length&&(Wt[0]=We[0],Wt[1]=We[1])}else if(0==we)Wt[2]=gt(st.trim());else{let We=st.split(" ");Wt=3===We.length?We:[it,He,st]}return Wt}function gt(st){return st.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ye(st,it){if(void 0===it)return st;const He=Wt=>{const we=+Wt.slice(0,-1);return st.endsWith("x")&&!isNaN(we)?`${we*it.value}${it.unit}`:st};return st.includes(" ")?st.split(" ").map(He).join(" "):He(st)}EventTarget},16038(ke,q,l){"use strict";l.d(q,{Cc:()=>R,PW:()=>Q,eI:()=>a});var i=l(17705),g=l(2615),p=l(73664),D=l(29340),o=l(72200),e=l(60177),d=(l(14085),l(56977),l(345));let Z=(()=>{class U extends D.DJ{constructor(re,he,Oe,ge,ce,Re,Me){super(re,null,he,Oe),this.ngClassInstance=Me,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new o.YU(ge,ce,re,Re)),this.init(),this.setValue("","")}set klass(re){this.ngClassInstance.klass=re,this.setValue(re,"")}updateWithValue(re){this.ngClassInstance.ngClass=re,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return U.\u0275fac=function(re){return new(re||U)(p.rXU(p.aKT),p.rXU(D.ZH),p.rXU(D.qH),p.rXU(i._q3),p.rXU(i.MKu),p.rXU(p.sFG),p.rXU(o.YU,10))},U.\u0275dir=p.FsC({type:U,inputs:{klass:[0,"class","klass"]},standalone:!1,features:[p.Vt3]}),U})();const ee=["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 Q=(()=>{class U extends Z{constructor(){super(...arguments),this.inputs=ee}}return U.\u0275fac=(()=>{let fe;return function(he){return(fe||(fe=p.xGo(U)))(he||U)}})(),U.\u0275dir=p.FsC({type:U,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"},standalone:!1,features:[p.Vt3]}),U})();class Ee{constructor(fe,re,he=!0){this.key=fe,this.value=re,this.key=he?fe.replace(/['"]/g,"").trim():fe.trim(),this.value=he?re.replace(/['"]/g,"").trim():re.trim(),this.value=this.value.replace(/;/,"")}}function L(U){let fe=typeof U;return"object"===fe?U.constructor===Array?"array":U.constructor===Set?"set":"object":fe}function u(U){const[fe,...re]=U.split(":");return new Ee(fe,re.join(":"))}function _(U,fe){return fe.key&&(U[fe.key]=fe.value),U}let T=(()=>{class U extends D.DJ{constructor(re,he,Oe,ge,ce,Re,Me,ve,oe){super(re,null,he,Oe),this.sanitizer=ge,this.ngStyleInstance=Me,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new o.B3(re,ce,Re)),this.init();const Se=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Se),this.isServer=ve&&(0,e.Vy)(oe)}updateWithValue(re){const he=this.buildStyleMap(re);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...he},this.isServer&&this.applyStyleToElement(he),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(re){const he=Oe=>this.sanitizer.sanitize(p.WPN.STYLE,Oe)??"";if(re)switch(L(re)){case"string":return x(function t(U,fe=";"){return String(U).trim().split(fe).map(re=>re.trim()).filter(re=>""!==re)}(re),he);case"array":return x(re,he);default:return function m(U,fe){let re=[];return"set"===L(U)?U.forEach(he=>re.push(he)):Object.keys(U).forEach(he=>{re.push(`${he}:${U[he]}`)}),function s(U,fe){return U.map(u).filter(he=>!!he).map(he=>(fe&&(he.value=fe(he.value)),he)).reduce(_,{})}(re,fe)}(re,he)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return U.\u0275fac=function(re){return new(re||U)(p.rXU(p.aKT),p.rXU(D.ZH),p.rXU(D.qH),p.rXU(d.up),p.rXU(i.MKu),p.rXU(p.sFG),p.rXU(o.B3,10),p.rXU(D.Ce),p.rXU(p.Agw))},U.\u0275dir=p.FsC({type:U,standalone:!1,features:[p.Vt3]}),U})();const P=["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 a=(()=>{class U extends T{constructor(){super(...arguments),this.inputs=P}}return U.\u0275fac=(()=>{let fe;return function(he){return(fe||(fe=p.xGo(U)))(he||U)}})(),U.\u0275dir=p.FsC({type:U,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"},standalone:!1,features:[p.Vt3]}),U})();function x(U,fe){return U.map(u).filter(he=>!!he).map(he=>(fe&&(he.value=fe(he.value)),he)).reduce(_,{})}let R=(()=>{class U{}return U.\u0275fac=function(re){return new(re||U)},U.\u0275mod=p.$C({type:U}),U.\u0275inj=g.G2t({imports:[D.Ui]}),U})()},52920(ke,q,l){"use strict";l.d(q,{DJ:()=>M,UI:()=>P,sA:()=>tn,w2:()=>Ie});var i=l(2615),g=l(73664),D=(l(61577),l(28203)),o=l(29340),e=l(24545),h=(l(21413),l(56977));let d=(()=>{class le extends o.r3{buildStyles(ze,{display:Je}){const gt=(0,e.uG)(ze);return{...gt,display:"none"===Je?Je:gt.display}}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const w=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let F=(()=>{class le extends o.DJ{constructor(ze,Je,gt,zt,Ye){super(ze,gt,Je,zt),this._config=Ye,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(ze){const gt=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=K.get(gt)??new Map,K.set(gt,this.styleCache),this.currentValue!==ze&&(this.addStyles(ze,{display:gt}),this.currentValue=ze)}}return le.\u0275fac=function(ze){return new(ze||le)(g.rXU(g.aKT),g.rXU(o.ZH),g.rXU(d),g.rXU(o.qH),g.rXU(o.EA))},le.\u0275dir=g.FsC({type:le,standalone:!1,features:[g.Vt3]}),le})(),M=(()=>{class le extends F{constructor(){super(...arguments),this.inputs=w}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275dir=g.FsC({type:le,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"},standalone:!1,features:[g.Vt3]}),le})();const K=new Map;let m=(()=>{class le extends o.r3{constructor(ze){super(),this.layoutConfig=ze}buildStyles(ze,Je){let[gt,zt,...Ye]=ze.split(" "),st=Ye.join(" ");const it=Je.direction.indexOf("column")>-1?"column":"row",He=(0,e.Vc)(it)?"max-width":"max-height",Wt=(0,e.Vc)(it)?"min-width":"min-height",we=String(st).indexOf("calc")>-1,We=we||"auto"===st,Lt=String(st).indexOf("%")>-1&&!we,St=String(st).indexOf("px")>-1||String(st).indexOf("rem")>-1||String(st).indexOf("em")>-1||String(st).indexOf("vw")>-1||String(st).indexOf("vh")>-1;let At=we||St;gt="0"==gt?0:gt,zt="0"==zt?0:zt;const fn=!gt&&!zt;let mt={};const It={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(st||""){case"":st="row"===it?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":gt=0,st="auto";break;case"grow":st="100%";break;case"noshrink":zt=0,st="auto";break;case"auto":break;case"none":gt=0,zt=0,st="auto";break;default:!At&&!Lt&&!isNaN(st)&&(st+="%"),"0%"===st&&(At=!0),"0px"===st&&(st="0%"),mt=(0,e.C5)(It,we?{"flex-grow":gt,"flex-shrink":zt,"flex-basis":At?st:"100%"}:{flex:`${gt} ${zt} ${At?st:"100%"}`})}return mt.flex||mt["flex-grow"]||(mt=(0,e.C5)(It,we?{"flex-grow":gt,"flex-shrink":zt,"flex-basis":st}:{flex:`${gt} ${zt} ${st}`})),"0%"!==st&&"0px"!==st&&"0.000000001px"!==st&&"auto"!==st&&(mt[Wt]=fn||At&>?st:null,mt[He]=fn||!We&&zt?st:null),mt[Wt]||mt[He]?Je.hasWrap&&(mt[we?"flex-basis":"flex"]=mt[He]?we?mt[He]:`${gt} ${zt} ${mt[He]}`:we?mt[Wt]:`${gt} ${zt} ${mt[Wt]}`):mt=(0,e.C5)(It,we?{"flex-grow":gt,"flex-shrink":zt,"flex-basis":st}:{flex:`${gt} ${zt} ${st}`}),(0,e.C5)(mt,{"box-sizing":"border-box"})}}return le.\u0275fac=function(ze){return new(ze||le)(i.KVO(o.EA))},le.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const u=["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 T=(()=>{class le extends o.DJ{constructor(ze,Je,gt,zt,Ye){super(ze,zt,Je,Ye),this.layoutConfig=gt,this.marshal=Ye,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(ze){this.flexShrink=ze||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(ze){this.flexGrow=ze||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,h.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,h.Q)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(ze){const gt=ze.value.split(" ");this.direction=gt[0],this.wrap=void 0!==gt[1]&&"wrap"===gt[1],this.triggerUpdate()}updateWithValue(ze){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 gt=this.direction,zt=gt.startsWith("row"),Ye=this.wrap;zt&&Ye?this.styleCache=x:zt&&!Ye?this.styleCache=C:!zt&&Ye?this.styleCache=Y:!zt&&!Ye&&(this.styleCache=a);const st=String(ze).replace(";",""),it=(0,o.hN)(st,this.flexGrow,this.flexShrink);this.addStyles(it.join(" "),{direction:gt,hasWrap:Ye})}triggerReflow(){const ze=this.activatedValue;if(void 0!==ze){const Je=(0,o.hN)(ze+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,Je.join(" "))}}}return le.\u0275fac=function(ze){return new(ze||le)(g.rXU(g.aKT),g.rXU(o.ZH),g.rXU(o.EA),g.rXU(m),g.rXU(o.qH))},le.\u0275dir=g.FsC({type:le,inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},standalone:!1,features:[g.Vt3]}),le})(),P=(()=>{class le extends T{constructor(){super(...arguments),this.inputs=u}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275dir=g.FsC({type:le,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"},standalone:!1,features:[g.Vt3]}),le})();const C=new Map,a=new Map,x=new Map,Y=new Map;let ae=(()=>{class le extends o.r3{buildStyles(ze,Je){const gt={},[zt,Ye]=ze.split(" ");switch(zt){case"center":gt["justify-content"]="center";break;case"space-around":gt["justify-content"]="space-around";break;case"space-between":gt["justify-content"]="space-between";break;case"space-evenly":gt["justify-content"]="space-evenly";break;case"end":case"flex-end":gt["justify-content"]="flex-end";break;default:gt["justify-content"]="flex-start"}switch(Ye){case"start":case"flex-start":gt["align-items"]=gt["align-content"]="flex-start";break;case"center":gt["align-items"]=gt["align-content"]="center";break;case"end":case"flex-end":gt["align-items"]=gt["align-content"]="flex-end";break;case"space-between":gt["align-content"]="space-between",gt["align-items"]="stretch";break;case"space-around":gt["align-content"]="space-around",gt["align-items"]="stretch";break;case"baseline":gt["align-content"]="stretch",gt["align-items"]="baseline";break;default:gt["align-items"]=gt["align-content"]="stretch"}return(0,e.C5)(gt,{display:Je.inline?"inline-flex":"flex","flex-direction":Je.layout,"box-sizing":"border-box","max-width":"stretch"===Ye?(0,e.Vc)(Je.layout)?null:"100%":null,"max-height":"stretch"===Ye&&(0,e.Vc)(Je.layout)?"100%":null})}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const me=["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 et=(()=>{class le extends o.DJ{constructor(ze,Je,gt,zt){super(ze,gt,Je,zt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,h.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(ze){const Je=this.layout||"row",gt=this.inline;"row"===Je&>?this.styleCache=tt:"row"!==Je||gt?"row-reverse"===Je&>?this.styleCache=Pe:"row-reverse"!==Je||gt?"column"===Je&>?this.styleCache=Fe:"column"!==Je||gt?"column-reverse"===Je&>?this.styleCache=Ue:"column-reverse"===Je&&!gt&&(this.styleCache=_n):this.styleCache=hn:this.styleCache=En:this.styleCache=Vt,this.addStyles(ze,{layout:Je,inline:gt})}onLayoutChange(ze){const Je=ze.value.split(" ");this.layout=Je[0],this.inline=ze.value.includes("inline"),e.Uo.find(gt=>gt===this.layout)||(this.layout="row"),this.triggerUpdate()}}return le.\u0275fac=function(ze){return new(ze||le)(g.rXU(g.aKT),g.rXU(o.ZH),g.rXU(ae),g.rXU(o.qH))},le.\u0275dir=g.FsC({type:le,standalone:!1,features:[g.Vt3]}),le})(),tn=(()=>{class le extends et{constructor(){super(...arguments),this.inputs=me}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275dir=g.FsC({type:le,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"},standalone:!1,features:[g.Vt3]}),le})();const Vt=new Map,hn=new Map,En=new Map,_n=new Map,tt=new Map,Fe=new Map,Pe=new Map,Ue=new Map;let Ie=(()=>{class le{}return le.\u0275fac=function(ze){return new(ze||le)},le.\u0275mod=g.$C({type:le}),le.\u0275inj=i.G2t({imports:[o.Ui,D.jI]}),le})()},89417(ke,q,l){"use strict";l.d(q,{BC:()=>Mn,JD:()=>Ar,Q0:()=>cn,VZ:()=>qs,X1:()=>Es,YN:()=>Qr,YS:()=>ps,ZU:()=>$e,cV:()=>Zn,cb:()=>qt,cz:()=>ye,hs:()=>Bi,j4:()=>Wn,k0:()=>Ee,kq:()=>K,l_:()=>vt,me:()=>$,ok:()=>ks,qT:()=>ht,vO:()=>dt,vS:()=>lt,zX:()=>Js,ze:()=>Nr});var p=l(2615),D=l(73664),o=l(17705),e=l(59295),A=l(57303),h=l(21413),d=l(27468),w=l(22806),f=l(96354);let F=(()=>{class ct{_renderer;_elementRef;onChange=Ve=>{};onTouched=()=>{};constructor(Ve,Rt){this._renderer=Ve,this._elementRef=Rt}setProperty(Ve,Rt){this._renderer.setProperty(this._elementRef.nativeElement,Ve,Rt)}registerOnTouched(Ve){this.onTouched=Ve}registerOnChange(Ve){this.onChange=Ve}setDisabledState(Ve){this.setProperty("disabled",Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(D.sFG),D.rXU(D.aKT))};static \u0275dir=D.FsC({type:ct})}return ct})(),M=(()=>{class ct extends F{static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,features:[D.Vt3]})}return ct})();const K=new p.nKC(""),ee={provide:K,useExisting:(0,p.Rfq)(()=>$),multi:!0},Q=new p.nKC("");let $=(()=>{class ct extends F{_compositionMode;_composing=!1;constructor(Ve,Rt,vn){super(Ve,Rt),this._compositionMode=vn,null==this._compositionMode&&(this._compositionMode=!function V(){const ct=(0,A.rb)()?(0,A.rb)().getUserAgent():"";return/android (\d+)/.test(ct.toLowerCase())}())}writeValue(Ve){this.setProperty("value",Ve??"")}_handleInput(Ve){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ve)}_compositionStart(){this._composing=!0}_compositionEnd(Ve){this._composing=!1,this._compositionMode&&this.onChange(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(D.sFG),D.rXU(D.aKT),D.rXU(Q,8))};static \u0275dir=D.FsC({type:ct,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(Rt,vn){1&Rt&&D.bIt("input",function(ca){return vn._handleInput(ca.target.value)})("blur",function(){return vn.onTouched()})("compositionstart",function(){return vn._compositionStart()})("compositionend",function(ca){return vn._compositionEnd(ca.target.value)})},standalone:!1,features:[D.Jv_([ee]),D.Vt3]})}return ct})();function ie(ct){return null==ct||0===_e(ct)}function _e(ct){return null==ct?null:Array.isArray(ct)||"string"==typeof ct?ct.length:ct instanceof Set?ct.size:null}const ye=new p.nKC(""),se=new p.nKC(""),pe=/^(?=.{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(pt){return L(pt)}static max(pt){return t(pt)}static required(pt){return s(pt)}static requiredTrue(pt){return function m(ct){return!0===ct.value?null:{required:!0}}(pt)}static email(pt){return function u(ct){return ie(ct.value)||pe.test(ct.value)?null:{email:!0}}(pt)}static minLength(pt){return function _(ct){return pt=>{const Ve=pt.value?.length??_e(pt.value);return null===Ve||0===Ve?null:Ve{const Ve=pt.value?.length??_e(pt.value);return null!==Ve&&Ve>ct?{maxlength:{requiredLength:ct,actualLength:Ve}}:null}}(pt)}static pattern(pt){return function P(ct){if(!ct)return C;let pt,Ve;return"string"==typeof ct?(Ve="","^"!==ct.charAt(0)&&(Ve+="^"),Ve+=ct,"$"!==ct.charAt(ct.length-1)&&(Ve+="$"),pt=new RegExp(Ve)):(Ve=ct.toString(),pt=ct),Rt=>{if(ie(Rt.value))return null;const vn=Rt.value;return pt.test(vn)?null:{pattern:{requiredPattern:Ve,actualValue:vn}}}}(pt)}static nullValidator(pt){return null}static compose(pt){return re(pt)}static composeAsync(pt){return Oe(pt)}}function L(ct){return pt=>{if(null==pt.value||null==ct)return null;const Ve=parseFloat(pt.value);return!isNaN(Ve)&&Ve{if(null==pt.value||null==ct)return null;const Ve=parseFloat(pt.value);return!isNaN(Ve)&&Ve>ct?{max:{max:ct,actual:pt.value}}:null}}function s(ct){return ie(ct.value)?{required:!0}:null}function C(ct){return null}function a(ct){return null!=ct}function x(ct){return(0,D.yLl)(ct)?(0,w.H)(ct):ct}function Y(ct){let pt={};return ct.forEach(Ve=>{pt=null!=Ve?{...pt,...Ve}:pt}),0===Object.keys(pt).length?null:pt}function R(ct,pt){return pt.map(Ve=>Ve(ct))}function fe(ct){return ct.map(pt=>function U(ct){return!ct.validate}(pt)?pt:Ve=>pt.validate(Ve))}function re(ct){if(!ct)return null;const pt=ct.filter(a);return 0==pt.length?null:function(Ve){return Y(R(Ve,pt))}}function he(ct){return null!=ct?re(fe(ct)):null}function Oe(ct){if(!ct)return null;const pt=ct.filter(a);return 0==pt.length?null:function(Ve){const Rt=R(Ve,pt).map(x);return(0,d.p)(Rt).pipe((0,f.T)(Y))}}function ge(ct){return null!=ct?Oe(fe(ct)):null}function ce(ct,pt){return null===ct?[pt]:Array.isArray(ct)?[...ct,pt]:[ct,pt]}function Re(ct){return ct._rawValidators}function Me(ct){return ct._rawAsyncValidators}function ve(ct){return ct?Array.isArray(ct)?ct:[ct]:[]}function oe(ct,pt){return Array.isArray(ct)?ct.includes(pt):ct===pt}function Se(ct,pt){const Ve=ve(pt);return ve(ct).forEach(vn=>{oe(Ve,vn)||Ve.push(vn)}),Ve}function be(ct,pt){return ve(pt).filter(Ve=>!oe(ct,Ve))}class nt{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(pt){this._rawValidators=pt||[],this._composedValidatorFn=he(this._rawValidators)}_setAsyncValidators(pt){this._rawAsyncValidators=pt||[],this._composedAsyncValidatorFn=ge(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(pt){this._onDestroyCallbacks.push(pt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(pt=>pt()),this._onDestroyCallbacks=[]}reset(pt=void 0){this.control&&this.control.reset(pt)}hasError(pt,Ve){return!!this.control&&this.control.hasError(pt,Ve)}getError(pt,Ve){return this.control?this.control.getError(pt,Ve):null}}class $e extends nt{name;get formDirective(){return null}get path(){return null}}class dt extends nt{_parent=null;name=null;valueAccessor=null}class yt{_cd;constructor(pt){this._cd=pt}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Mn=(()=>{class ct extends yt{constructor(Ve){super(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(dt,2))};static \u0275dir=D.FsC({type:ct,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Rt,vn){2&Rt&&D.AVh("ng-untouched",vn.isUntouched)("ng-touched",vn.isTouched)("ng-pristine",vn.isPristine)("ng-dirty",vn.isDirty)("ng-valid",vn.isValid)("ng-invalid",vn.isInvalid)("ng-pending",vn.isPending)},standalone:!1,features:[D.Vt3]})}return ct})(),qt=(()=>{class ct extends yt{constructor(Ve){super(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU($e,10))};static \u0275dir=D.FsC({type:ct,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Rt,vn){2&Rt&&D.AVh("ng-untouched",vn.isUntouched)("ng-touched",vn.isTouched)("ng-pristine",vn.isPristine)("ng-dirty",vn.isDirty)("ng-valid",vn.isValid)("ng-invalid",vn.isInvalid)("ng-pending",vn.isPending)("ng-submitted",vn.isSubmitted)},standalone:!1,features:[D.Vt3]})}return ct})();const le="VALID",Ne="INVALID",ze="PENDING",Je="DISABLED";class gt{}class zt extends gt{value;source;constructor(pt,Ve){super(),this.value=pt,this.source=Ve}}class Ye extends gt{pristine;source;constructor(pt,Ve){super(),this.pristine=pt,this.source=Ve}}class st extends gt{touched;source;constructor(pt,Ve){super(),this.touched=pt,this.source=Ve}}class it extends gt{status;source;constructor(pt,Ve){super(),this.status=pt,this.source=Ve}}class He extends gt{source;constructor(pt){super(),this.source=pt}}class Wt extends gt{source;constructor(pt){super(),this.source=pt}}function we(ct){return(At(ct)?ct.validators:ct)||null}function Lt(ct,pt){return(At(pt)?pt.asyncValidators:ct)||null}function At(ct){return null!=ct&&!Array.isArray(ct)&&"object"==typeof ct}function fn(ct,pt,Ve){const Rt=ct.controls;if(!(pt?Object.keys(Rt):Rt).length)throw new p.buA(1e3,"");if(!Rt[Ve])throw new p.buA(1001,"")}function mt(ct,pt,Ve){ct._forEachChild((Rt,vn)=>{if(void 0===Ve[vn])throw new p.buA(1002,"")})}class It{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(pt,Ve){this._assignValidators(pt),this._assignAsyncValidators(Ve)}get validator(){return this._composedValidatorFn}set validator(pt){this._rawValidators=this._composedValidatorFn=pt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(pt){this._rawAsyncValidators=this._composedAsyncValidatorFn=pt}get parent(){return this._parent}get status(){return(0,e.O8)(this.statusReactive)}set status(pt){(0,e.O8)(()=>this.statusReactive.set(pt))}_status=(0,e.EW)(()=>this.statusReactive());statusReactive=(0,p.vPA)(void 0);get valid(){return this.status===le}get invalid(){return this.status===Ne}get pending(){return this.status==ze}get disabled(){return this.status===Je}get enabled(){return this.status!==Je}errors;get pristine(){return(0,e.O8)(this.pristineReactive)}set pristine(pt){(0,e.O8)(()=>this.pristineReactive.set(pt))}_pristine=(0,e.EW)(()=>this.pristineReactive());pristineReactive=(0,p.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,e.O8)(this.touchedReactive)}set touched(pt){(0,e.O8)(()=>this.touchedReactive.set(pt))}_touched=(0,e.EW)(()=>this.touchedReactive());touchedReactive=(0,p.vPA)(!1);get untouched(){return!this.touched}_events=new h.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(pt){this._assignValidators(pt)}setAsyncValidators(pt){this._assignAsyncValidators(pt)}addValidators(pt){this.setValidators(Se(pt,this._rawValidators))}addAsyncValidators(pt){this.setAsyncValidators(Se(pt,this._rawAsyncValidators))}removeValidators(pt){this.setValidators(be(pt,this._rawValidators))}removeAsyncValidators(pt){this.setAsyncValidators(be(pt,this._rawAsyncValidators))}hasValidator(pt){return oe(this._rawValidators,pt)}hasAsyncValidator(pt){return oe(this._rawAsyncValidators,pt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(pt={}){const Ve=!1===this.touched;this.touched=!0;const Rt=pt.sourceControl??this;this._parent&&!pt.onlySelf&&this._parent.markAsTouched({...pt,sourceControl:Rt}),Ve&&!1!==pt.emitEvent&&this._events.next(new st(!0,Rt))}markAllAsDirty(pt={}){this.markAsDirty({onlySelf:!0,emitEvent:pt.emitEvent,sourceControl:this}),this._forEachChild(Ve=>Ve.markAllAsDirty(pt))}markAllAsTouched(pt={}){this.markAsTouched({onlySelf:!0,emitEvent:pt.emitEvent,sourceControl:this}),this._forEachChild(Ve=>Ve.markAllAsTouched(pt))}markAsUntouched(pt={}){const Ve=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Rt=pt.sourceControl??this;this._forEachChild(vn=>{vn.markAsUntouched({onlySelf:!0,emitEvent:pt.emitEvent,sourceControl:Rt})}),this._parent&&!pt.onlySelf&&this._parent._updateTouched(pt,Rt),Ve&&!1!==pt.emitEvent&&this._events.next(new st(!1,Rt))}markAsDirty(pt={}){const Ve=!0===this.pristine;this.pristine=!1;const Rt=pt.sourceControl??this;this._parent&&!pt.onlySelf&&this._parent.markAsDirty({...pt,sourceControl:Rt}),Ve&&!1!==pt.emitEvent&&this._events.next(new Ye(!1,Rt))}markAsPristine(pt={}){const Ve=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Rt=pt.sourceControl??this;this._forEachChild(vn=>{vn.markAsPristine({onlySelf:!0,emitEvent:pt.emitEvent})}),this._parent&&!pt.onlySelf&&this._parent._updatePristine(pt,Rt),Ve&&!1!==pt.emitEvent&&this._events.next(new Ye(!0,Rt))}markAsPending(pt={}){this.status=ze;const Ve=pt.sourceControl??this;!1!==pt.emitEvent&&(this._events.next(new it(this.status,Ve)),this.statusChanges.emit(this.status)),this._parent&&!pt.onlySelf&&this._parent.markAsPending({...pt,sourceControl:Ve})}disable(pt={}){const Ve=this._parentMarkedDirty(pt.onlySelf);this.status=Je,this.errors=null,this._forEachChild(vn=>{vn.disable({...pt,onlySelf:!0})}),this._updateValue();const Rt=pt.sourceControl??this;!1!==pt.emitEvent&&(this._events.next(new zt(this.value,Rt)),this._events.next(new it(this.status,Rt)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...pt,skipPristineCheck:Ve},this),this._onDisabledChange.forEach(vn=>vn(!0))}enable(pt={}){const Ve=this._parentMarkedDirty(pt.onlySelf);this.status=le,this._forEachChild(Rt=>{Rt.enable({...pt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:pt.emitEvent}),this._updateAncestors({...pt,skipPristineCheck:Ve},this),this._onDisabledChange.forEach(Rt=>Rt(!1))}_updateAncestors(pt,Ve){this._parent&&!pt.onlySelf&&(this._parent.updateValueAndValidity(pt),pt.skipPristineCheck||this._parent._updatePristine({},Ve),this._parent._updateTouched({},Ve))}setParent(pt){this._parent=pt}getRawValue(){return this.value}updateValueAndValidity(pt={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Rt=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===le||this.status===ze)&&this._runAsyncValidator(Rt,pt.emitEvent)}const Ve=pt.sourceControl??this;!1!==pt.emitEvent&&(this._events.next(new zt(this.value,Ve)),this._events.next(new it(this.status,Ve)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!pt.onlySelf&&this._parent.updateValueAndValidity({...pt,sourceControl:Ve})}_updateTreeValidity(pt={emitEvent:!0}){this._forEachChild(Ve=>Ve._updateTreeValidity(pt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:pt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Je:le}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(pt,Ve){if(this.asyncValidator){this.status=ze,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Ve,shouldHaveEmitted:!1!==pt};const Rt=x(this.asyncValidator(this));this._asyncValidationSubscription=Rt.subscribe(vn=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(vn,{emitEvent:Ve,shouldHaveEmitted:pt})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const pt=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,pt}return!1}setErrors(pt,Ve={}){this.errors=pt,this._updateControlsErrors(!1!==Ve.emitEvent,this,Ve.shouldHaveEmitted)}get(pt){let Ve=pt;return null==Ve||(Array.isArray(Ve)||(Ve=Ve.split(".")),0===Ve.length)?null:Ve.reduce((Rt,vn)=>Rt&&Rt._find(vn),this)}getError(pt,Ve){const Rt=Ve?this.get(Ve):this;return Rt&&Rt.errors?Rt.errors[pt]:null}hasError(pt,Ve){return!!this.getError(pt,Ve)}get root(){let pt=this;for(;pt._parent;)pt=pt._parent;return pt}_updateControlsErrors(pt,Ve,Rt){this.status=this._calculateStatus(),pt&&this.statusChanges.emit(this.status),(pt||Rt)&&this._events.next(new it(this.status,Ve)),this._parent&&this._parent._updateControlsErrors(pt,Ve,Rt)}_initObservables(){this.valueChanges=new D.bkB,this.statusChanges=new D.bkB}_calculateStatus(){return this._allControlsDisabled()?Je:this.errors?Ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ze)?ze:this._anyControlsHaveStatus(Ne)?Ne:le}_anyControlsHaveStatus(pt){return this._anyControls(Ve=>Ve.status===pt)}_anyControlsDirty(){return this._anyControls(pt=>pt.dirty)}_anyControlsTouched(){return this._anyControls(pt=>pt.touched)}_updatePristine(pt,Ve){const Rt=!this._anyControlsDirty(),vn=this.pristine!==Rt;this.pristine=Rt,this._parent&&!pt.onlySelf&&this._parent._updatePristine(pt,Ve),vn&&this._events.next(new Ye(this.pristine,Ve))}_updateTouched(pt={},Ve){this.touched=this._anyControlsTouched(),this._events.next(new st(this.touched,Ve)),this._parent&&!pt.onlySelf&&this._parent._updateTouched(pt,Ve)}_onDisabledChange=[];_registerOnCollectionChange(pt){this._onCollectionChange=pt}_setUpdateStrategy(pt){At(pt)&&null!=pt.updateOn&&(this._updateOn=pt.updateOn)}_parentMarkedDirty(pt){return!pt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(pt){return null}_assignValidators(pt){this._rawValidators=Array.isArray(pt)?pt.slice():pt,this._composedValidatorFn=function We(ct){return Array.isArray(ct)?he(ct):ct||null}(this._rawValidators)}_assignAsyncValidators(pt){this._rawAsyncValidators=Array.isArray(pt)?pt.slice():pt,this._composedAsyncValidatorFn=function St(ct){return Array.isArray(ct)?ge(ct):ct||null}(this._rawAsyncValidators)}}class wn extends It{constructor(pt,Ve,Rt){super(we(Ve),Lt(Rt,Ve)),this.controls=pt,this._initObservables(),this._setUpdateStrategy(Ve),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(pt,Ve){return this.controls[pt]?this.controls[pt]:(this.controls[pt]=Ve,Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange),Ve)}addControl(pt,Ve,Rt={}){this.registerControl(pt,Ve),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}removeControl(pt,Ve={}){this.controls[pt]&&this.controls[pt]._registerOnCollectionChange(()=>{}),delete this.controls[pt],this.updateValueAndValidity({emitEvent:Ve.emitEvent}),this._onCollectionChange()}setControl(pt,Ve,Rt={}){this.controls[pt]&&this.controls[pt]._registerOnCollectionChange(()=>{}),delete this.controls[pt],Ve&&this.registerControl(pt,Ve),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}contains(pt){return this.controls.hasOwnProperty(pt)&&this.controls[pt].enabled}setValue(pt,Ve={}){mt(this,0,pt),Object.keys(pt).forEach(Rt=>{fn(this,!0,Rt),this.controls[Rt].setValue(pt[Rt],{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve)}patchValue(pt,Ve={}){null!=pt&&(Object.keys(pt).forEach(Rt=>{const vn=this.controls[Rt];vn&&vn.patchValue(pt[Rt],{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve))}reset(pt={},Ve={}){this._forEachChild((Rt,vn)=>{Rt.reset(pt?pt[vn]:null,{onlySelf:!0,emitEvent:Ve.emitEvent})}),this._updatePristine(Ve,this),this._updateTouched(Ve,this),this.updateValueAndValidity(Ve),!1!==Ve?.emitEvent&&this._events.next(new Wt(this))}getRawValue(){return this._reduceChildren({},(pt,Ve,Rt)=>(pt[Rt]=Ve.getRawValue(),pt))}_syncPendingControls(){let pt=this._reduceChildren(!1,(Ve,Rt)=>!!Rt._syncPendingControls()||Ve);return pt&&this.updateValueAndValidity({onlySelf:!0}),pt}_forEachChild(pt){Object.keys(this.controls).forEach(Ve=>{const Rt=this.controls[Ve];Rt&&pt(Rt,Ve)})}_setUpControls(){this._forEachChild(pt=>{pt.setParent(this),pt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(pt){for(const[Ve,Rt]of Object.entries(this.controls))if(this.contains(Ve)&&pt(Rt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ve,Rt,vn)=>((Rt.enabled||this.disabled)&&(Ve[vn]=Rt.value),Ve))}_reduceChildren(pt,Ve){let Rt=pt;return this._forEachChild((vn,Ni)=>{Rt=Ve(Rt,vn,Ni)}),Rt}_allControlsDisabled(){for(const pt of Object.keys(this.controls))if(this.controls[pt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(pt){return this.controls.hasOwnProperty(pt)?this.controls[pt]:null}}class kt extends wn{}const Ze=new p.nKC("",{providedIn:"root",factory:()=>Ge}),Ge="always";function Pt(ct,pt){return[...pt.path,ct]}function Yt(ct,pt,Ve=Ge){Ii(ct,pt),pt.valueAccessor.writeValue(ct.value),(ct.disabled||"always"===Ve)&&pt.valueAccessor.setDisabledState?.(ct.disabled),function Nt(ct,pt){pt.valueAccessor.registerOnChange(Ve=>{ct._pendingValue=Ve,ct._pendingChange=!0,ct._pendingDirty=!0,"change"===ct.updateOn&&en(ct,pt)})}(ct,pt),function Nn(ct,pt){const Ve=(Rt,vn)=>{pt.valueAccessor.writeValue(Rt),vn&&pt.viewToModelUpdate(Rt)};ct.registerOnChange(Ve),pt._registerOnDestroy(()=>{ct._unregisterOnChange(Ve)})}(ct,pt),function nn(ct,pt){pt.valueAccessor.registerOnTouched(()=>{ct._pendingTouched=!0,"blur"===ct.updateOn&&ct._pendingChange&&en(ct,pt),"submit"!==ct.updateOn&&ct.markAsTouched()})}(ct,pt),function oi(ct,pt){if(pt.valueAccessor.setDisabledState){const Ve=Rt=>{pt.valueAccessor.setDisabledState(Rt)};ct.registerOnDisabledChange(Ve),pt._registerOnDestroy(()=>{ct._unregisterOnDisabledChange(Ve)})}}(ct,pt)}function bn(ct,pt,Ve=!0){const Rt=()=>{};pt.valueAccessor&&(pt.valueAccessor.registerOnChange(Rt),pt.valueAccessor.registerOnTouched(Rt)),Ei(ct,pt),ct&&(pt._invokeOnDestroyCallbacks(),ct._registerOnCollectionChange(()=>{}))}function $n(ct,pt){ct.forEach(Ve=>{Ve.registerOnValidatorChange&&Ve.registerOnValidatorChange(pt)})}function Ii(ct,pt){const Ve=Re(ct);null!==pt.validator?ct.setValidators(ce(Ve,pt.validator)):"function"==typeof Ve&&ct.setValidators([Ve]);const Rt=Me(ct);null!==pt.asyncValidator?ct.setAsyncValidators(ce(Rt,pt.asyncValidator)):"function"==typeof Rt&&ct.setAsyncValidators([Rt]);const vn=()=>ct.updateValueAndValidity();$n(pt._rawValidators,vn),$n(pt._rawAsyncValidators,vn)}function Ei(ct,pt){let Ve=!1;if(null!==ct){if(null!==pt.validator){const vn=Re(ct);if(Array.isArray(vn)&&vn.length>0){const Ni=vn.filter(ca=>ca!==pt.validator);Ni.length!==vn.length&&(Ve=!0,ct.setValidators(Ni))}}if(null!==pt.asyncValidator){const vn=Me(ct);if(Array.isArray(vn)&&vn.length>0){const Ni=vn.filter(ca=>ca!==pt.asyncValidator);Ni.length!==vn.length&&(Ve=!0,ct.setAsyncValidators(Ni))}}}const Rt=()=>{};return $n(pt._rawValidators,Rt),$n(pt._rawAsyncValidators,Rt),Ve}function en(ct,pt){ct._pendingDirty&&ct.markAsDirty(),ct.setValue(ct._pendingValue,{emitModelToViewChange:!1}),pt.viewToModelUpdate(ct._pendingValue),ct._pendingChange=!1}function jn(ct,pt){Ii(ct,pt)}function ci(ct,pt){if(!ct.hasOwnProperty("model"))return!1;const Ve=ct.model;return!!Ve.isFirstChange()||!Object.is(pt,Ve.currentValue)}function aa(ct,pt){ct._syncPendingControls(),pt.forEach(Ve=>{const Rt=Ve.control;"submit"===Rt.updateOn&&Rt._pendingChange&&(Ve.viewToModelUpdate(Rt._pendingValue),Rt._pendingChange=!1)})}function sa(ct,pt){if(!pt)return null;let Ve,Rt,vn;return Array.isArray(pt),pt.forEach(Ni=>{Ni.constructor===$?Ve=Ni:function Xn(ct){return Object.getPrototypeOf(ct.constructor)===M}(Ni)?Rt=Ni:vn=Ni}),vn||Rt||Ve||null}const dn={provide:$e,useExisting:(0,p.Rfq)(()=>Zn)},Ln=Promise.resolve();let Zn=(()=>{class ct extends $e{callSetDisabledState;get submitted(){return(0,e.O8)(this.submittedReactive)}_submitted=(0,e.EW)(()=>this.submittedReactive());submittedReactive=(0,p.vPA)(!1);_directives=new Set;form;ngSubmit=new D.bkB;options;constructor(Ve,Rt,vn){super(),this.callSetDisabledState=vn,this.form=new wn({},he(Ve),ge(Rt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path);Ve.control=Rt.registerControl(Ve.name,Ve.control),Yt(Ve.control,Ve,this.callSetDisabledState),Ve.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ve)})}getControl(Ve){return this.form.get(Ve.path)}removeControl(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path);Rt&&Rt.removeControl(Ve.name),this._directives.delete(Ve)})}addFormGroup(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path),vn=new wn({});jn(vn,Ve),Rt.registerControl(Ve.name,vn),vn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path);Rt&&Rt.removeControl(Ve.name)})}getFormGroup(Ve){return this.form.get(Ve.path)}updateModel(Ve,Rt){Ln.then(()=>{this.form.get(Ve.path).setValue(Rt)})}setValue(Ve){this.control.setValue(Ve)}onSubmit(Ve){return this.submittedReactive.set(!0),aa(this.form,this._directives),this.ngSubmit.emit(Ve),this.form._events.next(new He(this.control)),"dialog"===Ve?.target?.method}onReset(){this.resetForm()}resetForm(Ve=void 0){this.form.reset(Ve),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ve){return Ve.pop(),Ve.length?this.form.get(Ve):this.form}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(ye,10),D.rXU(se,10),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Rt,vn){1&Rt&&D.bIt("submit",function(ca){return vn.onSubmit(ca)})("reset",function(){return vn.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[D.Jv_([dn]),D.Vt3]})}return ct})();function hi(ct,pt){const Ve=ct.indexOf(pt);Ve>-1&&ct.splice(Ve,1)}function Gn(ct){return"object"==typeof ct&&null!==ct&&2===Object.keys(ct).length&&"value"in ct&&"disabled"in ct}const Jn=class extends It{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(pt=null,Ve,Rt){super(we(Ve),Lt(Rt,Ve)),this._applyFormState(pt),this._setUpdateStrategy(Ve),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),At(Ve)&&(Ve.nonNullable||Ve.initialValueIsDefault)&&(this.defaultValue=Gn(pt)?pt.value:pt)}setValue(pt,Ve={}){this.value=this._pendingValue=pt,this._onChange.length&&!1!==Ve.emitModelToViewChange&&this._onChange.forEach(Rt=>Rt(this.value,!1!==Ve.emitViewToModelChange)),this.updateValueAndValidity(Ve)}patchValue(pt,Ve={}){this.setValue(pt,Ve)}reset(pt=this.defaultValue,Ve={}){this._applyFormState(pt),this.markAsPristine(Ve),this.markAsUntouched(Ve),this.setValue(this.value,Ve),this._pendingChange=!1,!1!==Ve?.emitEvent&&this._events.next(new Wt(this))}_updateValue(){}_anyControls(pt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(pt){this._onChange.push(pt)}_unregisterOnChange(pt){hi(this._onChange,pt)}registerOnDisabledChange(pt){this._onDisabledChange.push(pt)}_unregisterOnDisabledChange(pt){hi(this._onDisabledChange,pt)}_forEachChild(pt){}_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(pt){Gn(pt)?(this.value=this._pendingValue=pt.value,pt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=pt}},Bi=Jn,Xi={provide:dt,useExisting:(0,p.Rfq)(()=>lt)},Ma=Promise.resolve();let lt=(()=>{class ct extends dt{_changeDetectorRef;callSetDisabledState;control=new Jn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new D.bkB;constructor(Ve,Rt,vn,Ni,ca,Er){super(),this._changeDetectorRef=ca,this.callSetDisabledState=Er,this._parent=Ve,this._setValidators(Rt),this._setAsyncValidators(vn),this.valueAccessor=sa(0,Ni)}ngOnChanges(Ve){if(this._checkForErrors(),!this._registered||"name"in Ve){if(this._registered&&(this._checkName(),this.formDirective)){const Rt=Ve.name.previousValue;this.formDirective.removeControl({name:Rt,path:this._getPath(Rt)})}this._setUpControl()}"isDisabled"in Ve&&this._updateDisabled(Ve),ci(Ve,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(Ve){this.viewModel=Ve,this.update.emit(Ve)}_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(){Yt(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Ve){Ma.then(()=>{this.control.setValue(Ve,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ve){const Rt=Ve.isDisabled.currentValue,vn=0!==Rt&&(0,o.L39)(Rt);Ma.then(()=>{vn&&!this.control.disabled?this.control.disable():!vn&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ve){return this._parent?Pt(Ve,this._parent):[Ve]}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU($e,9),D.rXU(ye,10),D.rXU(se,10),D.rXU(K,10),D.rXU(o.gRc,8),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[D.Jv_([Xi]),D.Vt3,D.OA$]})}return ct})(),ht=(()=>{class ct{static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275dir=D.FsC({type:ct,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ct})();const Gt={provide:K,useExisting:(0,p.Rfq)(()=>cn),multi:!0};let cn=(()=>{class ct extends M{writeValue(Ve){this.setProperty("value",Ve??"")}registerOnChange(Ve){this.onChange=Rt=>{Ve(""==Rt?null:parseFloat(Rt))}}static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Rt,vn){1&Rt&&D.bIt("input",function(ca){return vn.onChange(ca.target.value)})("blur",function(){return vn.onTouched()})},standalone:!1,features:[D.Jv_([Gt]),D.Vt3]})}return ct})();const Ce=new p.nKC(""),xt={provide:dt,useExisting:(0,p.Rfq)(()=>vt)};let vt=(()=>{class ct extends dt{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Ve){}model;update=new D.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Ve,Rt,vn,Ni,ca){super(),this._ngModelWarningConfig=Ni,this.callSetDisabledState=ca,this._setValidators(Ve),this._setAsyncValidators(Rt),this.valueAccessor=sa(0,vn)}ngOnChanges(Ve){if(this._isControlChanged(Ve)){const Rt=Ve.form.previousValue;Rt&&bn(Rt,this,!1),Yt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ci(Ve,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ve){this.viewModel=Ve,this.update.emit(Ve)}_isControlChanged(Ve){return Ve.hasOwnProperty("form")}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(ye,10),D.rXU(se,10),D.rXU(K,10),D.rXU(Ce,8),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[D.Jv_([xt]),D.Vt3,D.OA$]})}return ct})();const rn={provide:$e,useExisting:(0,p.Rfq)(()=>Wn)};let Wn=(()=>{class ct extends $e{callSetDisabledState;get submitted(){return(0,e.O8)(this._submittedReactive)}set submitted(Ve){this._submittedReactive.set(Ve)}_submitted=(0,e.EW)(()=>this._submittedReactive());_submittedReactive=(0,p.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new D.bkB;constructor(Ve,Rt,vn){super(),this.callSetDisabledState=vn,this._setValidators(Ve),this._setAsyncValidators(Rt)}ngOnChanges(Ve){Ve.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ei(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ve){const Rt=this.form.get(Ve.path);return Yt(Rt,Ve,this.callSetDisabledState),Rt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ve),Rt}getControl(Ve){return this.form.get(Ve.path)}removeControl(Ve){bn(Ve.control||null,Ve,!1),function ma(ct,pt){const Ve=ct.indexOf(pt);Ve>-1&&ct.splice(Ve,1)}(this.directives,Ve)}addFormGroup(Ve){this._setUpFormContainer(Ve)}removeFormGroup(Ve){this._cleanUpFormContainer(Ve)}getFormGroup(Ve){return this.form.get(Ve.path)}addFormArray(Ve){this._setUpFormContainer(Ve)}removeFormArray(Ve){this._cleanUpFormContainer(Ve)}getFormArray(Ve){return this.form.get(Ve.path)}updateModel(Ve,Rt){this.form.get(Ve.path).setValue(Rt)}onSubmit(Ve){return this._submittedReactive.set(!0),aa(this.form,this.directives),this.ngSubmit.emit(Ve),this.form._events.next(new He(this.control)),"dialog"===Ve?.target?.method}onReset(){this.resetForm()}resetForm(Ve=void 0,Rt={}){this.form.reset(Ve,Rt),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(Ve=>{const Rt=Ve.control,vn=this.form.get(Ve.path);Rt!==vn&&(bn(Rt||null,Ve),(ct=>ct instanceof Jn)(vn)&&(Yt(vn,Ve,this.callSetDisabledState),Ve.control=vn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ve){const Rt=this.form.get(Ve.path);jn(Rt,Ve),Rt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ve){if(this.form){const Rt=this.form.get(Ve.path);Rt&&function Un(ct,pt){return Ei(ct,pt)}(Rt,Ve)&&Rt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ii(this.form,this),this._oldForm&&Ei(this._oldForm,this)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(ye,10),D.rXU(se,10),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","formGroup",""]],hostBindings:function(Rt,vn){1&Rt&&D.bIt("submit",function(ca){return vn.onSubmit(ca)})("reset",function(){return vn.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[D.Jv_([rn]),D.Vt3,D.OA$]})}return ct})();const Ga={provide:dt,useExisting:(0,p.Rfq)(()=>Ar)};let Ar=(()=>{class ct extends dt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Ve){}model;update=new D.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Ve,Rt,vn,Ni,ca){super(),this._ngModelWarningConfig=ca,this._parent=Ve,this._setValidators(Rt),this._setAsyncValidators(vn),this.valueAccessor=sa(0,Ni)}ngOnChanges(Ve){this._added||this._setUpControl(),ci(Ve,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ve){this.viewModel=Ve,this.update.emit(Ve)}get path(){return Pt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU($e,13),D.rXU(ye,10),D.rXU(se,10),D.rXU(K,10),D.rXU(Ce,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[D.Jv_([Ga]),D.Vt3,D.OA$]})}return ct})();function Is(ct){return"number"==typeof ct?ct:parseFloat(ct)}let Wr=(()=>{class ct{_validator=C;_onChange;_enabled;ngOnChanges(Ve){if(this.inputName in Ve){const Rt=this.normalizeInput(Ve[this.inputName].currentValue);this._enabled=this.enabled(Rt),this._validator=this._enabled?this.createValidator(Rt):C,this._onChange&&this._onChange()}}validate(Ve){return this._validator(Ve)}registerOnValidatorChange(Ve){this._onChange=Ve}enabled(Ve){return null!=Ve}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275dir=D.FsC({type:ct,features:[D.OA$]})}return ct})();const Uo={provide:ye,useExisting:(0,p.Rfq)(()=>Js),multi:!0};let Js=(()=>{class ct extends Wr{max;inputName="max";normalizeInput=Ve=>Is(Ve);createValidator=Ve=>t(Ve);static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Rt,vn){2&Rt&&D.BMQ("max",vn._enabled?vn.max:null)},inputs:{max:"max"},standalone:!1,features:[D.Jv_([Uo]),D.Vt3]})}return ct})();const Jo={provide:ye,useExisting:(0,p.Rfq)(()=>qs),multi:!0};let qs=(()=>{class ct extends Wr{min;inputName="min";normalizeInput=Ve=>Is(Ve);createValidator=Ve=>L(Ve);static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Rt,vn){2&Rt&&D.BMQ("min",vn._enabled?vn.min:null)},inputs:{min:"min"},standalone:!1,features:[D.Jv_([Jo]),D.Vt3]})}return ct})();const xo={provide:ye,useExisting:(0,p.Rfq)(()=>ps),multi:!0};let ps=(()=>{class ct extends Wr{required;inputName="required";normalizeInput=o.L39;createValidator=Ve=>s;enabled(Ve){return Ve}static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Rt,vn){2&Rt&&D.BMQ("required",vn._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[D.Jv_([xo]),D.Vt3]})}return ct})(),es=(()=>{class ct{static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275mod=D.$C({type:ct});static \u0275inj=p.G2t({})}return ct})();class Yr extends It{constructor(pt,Ve,Rt){super(we(Ve),Lt(Rt,Ve)),this.controls=pt,this._initObservables(),this._setUpdateStrategy(Ve),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(pt){return this.controls[this._adjustIndex(pt)]}push(pt,Ve={}){Array.isArray(pt)?pt.forEach(Rt=>{this.controls.push(Rt),this._registerControl(Rt)}):(this.controls.push(pt),this._registerControl(pt)),this.updateValueAndValidity({emitEvent:Ve.emitEvent}),this._onCollectionChange()}insert(pt,Ve,Rt={}){this.controls.splice(pt,0,Ve),this._registerControl(Ve),this.updateValueAndValidity({emitEvent:Rt.emitEvent})}removeAt(pt,Ve={}){let Rt=this._adjustIndex(pt);Rt<0&&(Rt=0),this.controls[Rt]&&this.controls[Rt]._registerOnCollectionChange(()=>{}),this.controls.splice(Rt,1),this.updateValueAndValidity({emitEvent:Ve.emitEvent})}setControl(pt,Ve,Rt={}){let vn=this._adjustIndex(pt);vn<0&&(vn=0),this.controls[vn]&&this.controls[vn]._registerOnCollectionChange(()=>{}),this.controls.splice(vn,1),Ve&&(this.controls.splice(vn,0,Ve),this._registerControl(Ve)),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(pt,Ve={}){mt(this,0,pt),pt.forEach((Rt,vn)=>{fn(this,!1,vn),this.at(vn).setValue(Rt,{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve)}patchValue(pt,Ve={}){null!=pt&&(pt.forEach((Rt,vn)=>{this.at(vn)&&this.at(vn).patchValue(Rt,{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve))}reset(pt=[],Ve={}){this._forEachChild((Rt,vn)=>{Rt.reset(pt[vn],{onlySelf:!0,emitEvent:Ve.emitEvent})}),this._updatePristine(Ve,this),this._updateTouched(Ve,this),this.updateValueAndValidity(Ve),!1!==Ve?.emitEvent&&this._events.next(new Wt(this))}getRawValue(){return this.controls.map(pt=>pt.getRawValue())}clear(pt={}){this.controls.length<1||(this._forEachChild(Ve=>Ve._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:pt.emitEvent}))}_adjustIndex(pt){return pt<0?pt+this.length:pt}_syncPendingControls(){let pt=this.controls.reduce((Ve,Rt)=>!!Rt._syncPendingControls()||Ve,!1);return pt&&this.updateValueAndValidity({onlySelf:!0}),pt}_forEachChild(pt){this.controls.forEach((Ve,Rt)=>{pt(Ve,Rt)})}_updateValue(){this.value=this.controls.filter(pt=>pt.enabled||this.disabled).map(pt=>pt.value)}_anyControls(pt){return this.controls.some(Ve=>Ve.enabled&&pt(Ve))}_setUpControls(){this._forEachChild(pt=>this._registerControl(pt))}_allControlsDisabled(){for(const pt of this.controls)if(pt.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(pt){pt.setParent(this),pt._registerOnCollectionChange(this._onCollectionChange)}_find(pt){return this.at(pt)??null}}function Za(ct){return!!ct&&(void 0!==ct.asyncValidators||void 0!==ct.validators||void 0!==ct.updateOn)}let ks=(()=>{class ct{useNonNullable=!1;get nonNullable(){const Ve=new ct;return Ve.useNonNullable=!0,Ve}group(Ve,Rt=null){const vn=this._reduceControls(Ve);let Ni={};return Za(Rt)?Ni=Rt:null!==Rt&&(Ni.validators=Rt.validator,Ni.asyncValidators=Rt.asyncValidator),new wn(vn,Ni)}record(Ve,Rt=null){const vn=this._reduceControls(Ve);return new kt(vn,Rt)}control(Ve,Rt,vn){let Ni={};return this.useNonNullable?(Za(Rt)?Ni=Rt:(Ni.validators=Rt,Ni.asyncValidators=vn),new Jn(Ve,{...Ni,nonNullable:!0})):new Jn(Ve,Rt,vn)}array(Ve,Rt,vn){const Ni=Ve.map(ca=>this._createControl(ca));return new Yr(Ni,Rt,vn)}_reduceControls(Ve){const Rt={};return Object.keys(Ve).forEach(vn=>{Rt[vn]=this._createControl(Ve[vn])}),Rt}_createControl(Ve){return Ve instanceof Jn||Ve instanceof It?Ve:Array.isArray(Ve)?this.control(Ve[0],Ve.length>1?Ve[1]:null,Ve.length>2?Ve[2]:null):this.control(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275prov=p.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}return ct})(),Nr=(()=>{class ct extends ks{group(Ve,Rt=null){return super.group(Ve,Rt)}control(Ve,Rt,vn){return super.control(Ve,Rt,vn)}array(Ve,Rt,vn){return super.array(Ve,Rt,vn)}static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275prov=p.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}return ct})(),Qr=(()=>{class ct{static withConfig(Ve){return{ngModule:ct,providers:[{provide:Ze,useValue:Ve.callSetDisabledState??Ge}]}}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275mod=D.$C({type:ct});static \u0275inj=p.G2t({imports:[es]})}return ct})(),Es=(()=>{class ct{static withConfig(Ve){return{ngModule:ct,providers:[{provide:Ce,useValue:Ve.warnOnNgModelWithFormControl??"always"},{provide:Ze,useValue:Ve.callSetDisabledState??Ge}]}}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275mod=D.$C({type:ct});static \u0275inj=p.G2t({imports:[es]})}return ct})()},31804(ke,q,l){"use strict";l.d(q,{Rc:()=>d,_J:()=>h});var i=l(34330),g=l(2615),p=l(73664);const D=new g.nKC("MATERIAL_ANIMATIONS");let A=null;function h(){return(0,g.WQX)(D,{optional:!0})?.animationsDisabled||"NoopAnimations"===(0,g.WQX)(p.bc$,{optional:!0})?"di-disabled":(A??=(0,g.WQX)(i.D).matchMedia("(prefers-reduced-motion)").matches,A?"reduced-motion":"enabled")}function d(){return"enabled"!==h()}},22628(ke,q,l){"use strict";l.d(q,{$3:()=>$e,jL:()=>Xt,pN:()=>S});var i=l(23029),g=l(73664),p=l(2615),D=l(17705),o=l(5718),e=l(49338),A=l(89726),h=l(99090),d=l(18617),w=l(39842),f=l(44522),F=l(18359),M=l(21413),K=l(57786),j=l(7673),Z=l(59030),ee=l(71985),V=l(31804),Q=l(61577),$=l(67336),ie=l(10438),_e=l(34330),ye=l(99327),se=l(76939),pe=l(80408),Ee=l(89417),L=l(5964),t=l(96354),s=l(99172),m=l(25558),u=l(88141),_=l(43236),T=l(28793),P=l(96697),C=l(73557),a=l(73703),x=l(31397),Y=l(58750);function R(de,ae){return ae?me=>(0,T.x)(ae.pipe((0,P.s)(1),(0,C.w)()),me.pipe(R(de))):(0,x.Z)((me,Le)=>(0,Y.Tg)(de(me,Le)).pipe((0,P.s)(1),(0,a.u)(me)))}var U=l(1807);function fe(de,ae=_.E){const me=(0,U.O)(de,ae);return R(()=>me)}var re=l(69588),he=l(40146),Oe=l(22466);const Me=["panel"],ve=["*"];function oe(de,ae){if(1&de&&(g.rj2(0,"div",1,0),g.SdG(2),g.eux()),2&de){const me=ae.id,Le=g.XpG();g.HbH(Le._classList),g.AVh("mat-mdc-autocomplete-visible",Le.showPanel)("mat-mdc-autocomplete-hidden",!Le.showPanel)("mat-autocomplete-panel-animations-enabled",!Le._animationsDisabled)("mat-primary","primary"===Le._color)("mat-accent","accent"===Le._color)("mat-warn","warn"===Le._color),g.Avn("id",Le.id),g.BMQ("aria-label",Le.ariaLabel||null)("aria-labelledby",Le._getPanelAriaLabelledby(me))}}class Se{source;option;constructor(ae,me){this.source=ae,this.option=me}}const be=new p.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function nt(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}});let $e=(()=>{class de{_changeDetectorRef=(0,p.WQX)(D.gRc);_elementRef=(0,p.WQX)(g.aKT);_defaults=(0,p.WQX)(be);_animationsDisabled=(0,V.Rc)();_activeOptionChanges=F.yU.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(me){this._color=me,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new g.bkB;opened=new g.bkB;closed=new g.bkB;optionActivated=new g.bkB;set classList(me){this._classList=me,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(me){this._hideSingleSelectionIndicator=me,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(const me of this.options)me._changeDetectorRef.markForCheck()}id=(0,p.WQX)(A.g).getId("mat-autocomplete-");inertGroups;constructor(){const me=(0,p.WQX)(w.O);this.inertGroups=me?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new h.A(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(me=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[me]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(me){this.panel&&(this.panel.nativeElement.scrollTop=me)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(me){const Le=new Se(this,me);this.optionSelected.emit(Le)}_getPanelAriaLabelledby(me){return this.ariaLabel?null:this.ariaLabelledby?(me?me+" ":"")+this.ariaLabelledby:me}_skipPredicate(){return!1}static \u0275fac=function(Le){return new(Le||de)};static \u0275cmp=g.VBU({type:de,selectors:[["mat-autocomplete"]],contentQueries:function(Le,et,tn){if(1&Le&&(g.wni(tn,i.wT,5),g.wni(tn,i.QC,5)),2&Le){let Vt;g.mGM(Vt=g.lsd())&&(et.options=Vt),g.mGM(Vt=g.lsd())&&(et.optionGroups=Vt)}},viewQuery:function(Le,et){if(1&Le&&(g.GBs(g.C4Q,7),g.GBs(Me,5)),2&Le){let tn;g.mGM(tn=g.lsd())&&(et.template=tn.first),g.mGM(tn=g.lsd())&&(et.panel=tn.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",D.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",D.L39],requireSelection:[2,"requireSelection","requireSelection",D.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",D.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",D.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[g.Jv_([{provide:i.is,useExisting:de}])],ngContentSelectors:ve,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(Le,et){1&Le&&(g.NAR(),g.PeT(0,oe,3,17,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0})}return de})();const yt={provide:Ee.kq,useExisting:(0,p.Rfq)(()=>S),multi:!0},rt=new p.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const de=(0,p.WQX)(p.zZn);return()=>(0,e.RH)(de)}}),qt={provide:rt,deps:[],useFactory:function Mn(de){const ae=(0,p.WQX)(p.zZn);return()=>(0,e.RH)(ae)}};let S=(()=>{class de{_environmentInjector=(0,p.WQX)(p.uvJ);_element=(0,p.WQX)(g.aKT);_injector=(0,p.WQX)(p.zZn);_viewContainerRef=(0,p.WQX)(g.c1b);_zone=(0,p.WQX)(g.SKi);_changeDetectorRef=(0,p.WQX)(D.gRc);_dir=(0,p.WQX)(Q.dS,{optional:!0});_formField=(0,p.WQX)(re.xb,{optional:!0,host:!0});_viewportRuler=(0,p.WQX)(o.Xj);_scrollStrategy=(0,p.WQX)(rt);_renderer=(0,p.WQX)(g.sFG);_animationsDisabled=(0,V.Rc)();_defaults=(0,p.WQX)(be,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new M.B;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=F.yU.EMPTY;_breakpointObserver=(0,p.WQX)(_e.Q);_handsetLandscapeSubscription=F.yU.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new M.B;_overlayPanelClass=(0,pe.F)(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(me){me.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&(0,d.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,K.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,L.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,L.p)(()=>this._overlayAttached)):(0,j.of)()).pipe((0,t.T)(me=>me instanceof i.MI?me:null))}optionSelections=(0,Z.v)(()=>{const me=this.autocomplete?this.autocomplete.options:null;return me?me.changes.pipe((0,s.Z)(me),(0,m.n)(()=>(0,K.h)(...me.map(Le=>Le.onSelectionChange)))):this._initialized.pipe((0,m.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new ee.c(me=>{const Le=tn=>{const Vt=(0,f.Fb)(tn),hn=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,En=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&Vt!==this._element.nativeElement&&!this._hasFocus()&&(!hn||!hn.contains(Vt))&&(!En||!En.contains(Vt))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(Vt)&&me.next(tn)},et=[this._renderer.listen("document","click",Le),this._renderer.listen("document","auxclick",Le),this._renderer.listen("document","touchend",Le)];return()=>{et.forEach(tn=>tn())}})}writeValue(me){Promise.resolve(null).then(()=>this._assignOptionValue(me))}registerOnChange(me){this._onChange=me}registerOnTouched(me){this._onTouched=me}setDisabledState(me){this._element.nativeElement.disabled=me}_handleKeydown(me){const Le=me,et=Le.keyCode,tn=(0,$.rp)(Le);if(et===ie._f&&!tn&&Le.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&et===ie.Fm&&this.panelOpen&&!tn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Le.preventDefault();else if(this.autocomplete){const Vt=this.autocomplete._keyManager.activeItem,hn=et===ie.i7||et===ie.n6;et===ie.wn||hn&&!tn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Le):hn&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(hn||this.autocomplete._keyManager.activeItem!==Vt)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(me){let Le=me.target,et=Le.value;if("number"===Le.type&&(et=""==et?null:parseFloat(et)),this._previousValue!==et){if(this._previousValue=et,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(et),et){if(this.panelOpen&&!this.autocomplete.requireSelection){const tn=this.autocomplete.options?.find(Vt=>Vt.selected);tn&&et!==this._getDisplayValue(tn.value)&&tn.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._hasFocus()){const tn=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(tn)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return(0,f.vc)()===this._element.nativeElement}_floatLabel(me=!1){this._formField&&"auto"===this._formField.floatLabel&&(me?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const me=new ee.c(et=>{(0,g.mal)(()=>{et.next()},{injector:this._environmentInjector})}),Le=this.autocomplete.options?.changes.pipe((0,u.M)(()=>this._positionStrategy.reapplyLastPosition()),fe(0))??(0,j.of)();return(0,K.h)(me,Le).pipe((0,m.n)(()=>this._zone.run(()=>{const et=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),et!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,P.s)(1)).subscribe(et=>this._setValueAndClose(et))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(me){const Le=this.autocomplete;return Le&&Le.displayWith?Le.displayWith(me):me}_assignOptionValue(me){const Le=this._getDisplayValue(me);null==me&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(Le??"")}_updateNativeInputValue(me){this._formField?this._formField._control.value=me:this._element.nativeElement.value=me,this._previousValue=me}_setValueAndClose(me){const Le=this.autocomplete,et=me?me.source:this._pendingAutoselectedOption;et?(this._clearPreviousSelectedOption(et),this._assignOptionValue(et.value),this._onChange(et.value),Le._emitSelectEvent(et),this._element.nativeElement.focus()):Le.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(me,Le){this.autocomplete?.options?.forEach(et=>{et!==me&&et.selected&&et.deselect(Le)})}_openPanelInternal(me=this._element.nativeElement.value){this._attachOverlay(me),this._floatLabel(),this._trackedModal&&(0,d.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(me){let Le=this._overlayRef;Le?(this._positionStrategy.setOrigin(this._getConnectedElement()),Le.updateSize({width:this._getPanelWidth()})):(this._portal=new se.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Le=(0,e.Y$)(this._injector,this._getOverlayConfig()),this._overlayRef=Le,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Le&&Le.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(ye.Rp.HandsetLandscape).subscribe(tn=>{tn.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),Le&&!Le.hasAttached()&&(Le.attach(this._portal),this._valueOnAttach=me,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const et=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&et!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=me=>{(me.keyCode===ie._f&&!(0,$.rp)(me)||me.keyCode===ie.i7&&(0,$.rp)(me,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),me.stopPropagation(),me.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const me=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=me.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=me.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new e.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){const me=(0,e.$M)(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(me),this._positionStrategy=me,me}_setStrategyPositions(me){const Le=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],et=this._aboveClass,tn=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:et},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:et}];let Vt;Vt="above"===this.position?tn:"below"===this.position?Le:[...Le,...tn],me.withPositions(Vt)}_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 me=this.autocomplete;if(me.autoActiveFirstOption){let Le=-1;for(let et=0;et .cdk-overlay-container [aria-modal="true"]');if(!me)return;const Le=this.autocomplete.id;this._trackedModal&&(0,d.Ae)(this._trackedModal,"aria-owns",Le),(0,d.px)(me,"aria-owns",Le),this._trackedModal=me}_clearFromModal(){this._trackedModal&&((0,d.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(Le){return new(Le||de)};static \u0275dir=g.FsC({type:de,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Le,et){1&Le&&g.bIt("focusin",function(){return et._handleFocus()})("blur",function(){return et._onTouched()})("input",function(Vt){return et._handleInput(Vt)})("keydown",function(Vt){return et._handleKeydown(Vt)})("click",function(){return et._handleClick()}),2&Le&&g.BMQ("autocomplete",et.autocompleteAttribute)("role",et.autocompleteDisabled?null:"combobox")("aria-autocomplete",et.autocompleteDisabled?null:"list")("aria-activedescendant",et.panelOpen&&et.activeOption?et.activeOption.id:null)("aria-expanded",et.autocompleteDisabled?null:et.panelOpen.toString())("aria-controls",et.autocompleteDisabled||!et.panelOpen||null==et.autocomplete?null:et.autocomplete.id)("aria-haspopup",et.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",D.L39]},exportAs:["matAutocompleteTrigger"],features:[g.Jv_([yt]),g.OA$]})}return de})(),Xt=(()=>{class de{static \u0275fac=function(Le){return new(Le||de)};static \u0275mod=g.$C({type:de});static \u0275inj=p.G2t({providers:[qt],imports:[e.z_,he.S,Oe.y,o.Gj,he.S,Oe.y]})}return de})()},1975(ke,q,l){"use strict";l.d(q,{Y:()=>K,k:()=>M});var i=l(18617),g=l(17094),p=l(89726),D=l(2615),o=l(73664),e=l(17705),A=l(49046),h=l(88968),d=l(31804),w=l(22466);const f="mat-badge-content";let F=(()=>{class j{static \u0275fac=function(V){return new(V||j)};static \u0275cmp=o.VBU({type:j,selectors:[["ng-component"]],decls:0,vars:0,template:function(V,Q){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}\n"],encapsulation:2,changeDetection:0})}return j})(),M=(()=>{class j{_ngZone=(0,D.WQX)(o.SKi);_elementRef=(0,D.WQX)(o.aKT);_ariaDescriber=(0,D.WQX)(i.vr);_renderer=(0,D.WQX)(o.sFG);_animationsDisabled=(0,d.Rc)();_idGenerator=(0,D.WQX)(p.g);get color(){return this._color}set color(ee){this._setColor(ee),this._color=ee}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(ee){this._updateRenderedContent(ee)}_content;get description(){return this._description}set description(ee){this._updateDescription(ee)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=(0,D.WQX)(g.Z7);_document=(0,D.WQX)(D.qQL);constructor(){const ee=(0,D.WQX)(h.l);ee.load(F),ee.load(A.Y)}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._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){const ee=this._renderer.createElement("span"),V="mat-badge-active";return ee.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),ee.setAttribute("aria-hidden","true"),ee.classList.add(f),this._animationsDisabled&&ee.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(ee),"function"!=typeof requestAnimationFrame||this._animationsDisabled?ee.classList.add(V):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{ee.classList.add(V)})}),ee}_updateRenderedContent(ee){const V=`${ee??""}`.trim();this._isInitialized&&V&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=V),this._content=V}_updateDescription(ee){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!ee||this._isHostInteractive())&&this._removeInlineDescription(),this._description=ee,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,ee):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(ee){const V=this._elementRef.nativeElement.classList;V.remove(`mat-badge-${this._color}`),ee&&V.add(`mat-badge-${ee}`)}_clearExistingBadges(){const ee=this._elementRef.nativeElement.querySelectorAll(`:scope > .${f}`);for(const V of Array.from(ee))V!==this._badgeElement&&V.remove()}static \u0275fac=function(V){return new(V||j)};static \u0275dir=o.FsC({type:j,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(V,Q){2&V&&o.AVh("mat-badge-overlap",Q.overlap)("mat-badge-above",Q.isAbove())("mat-badge-below",!Q.isAbove())("mat-badge-before",!Q.isAfter())("mat-badge-after",Q.isAfter())("mat-badge-small","small"===Q.size)("mat-badge-medium","medium"===Q.size)("mat-badge-large","large"===Q.size)("mat-badge-hidden",Q.hidden||!Q.content)("mat-badge-disabled",Q.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",e.L39],disabled:[2,"matBadgeDisabled","disabled",e.L39],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",e.L39]}})}return j})(),K=(()=>{class j{static \u0275fac=function(V){return new(V||j)};static \u0275mod=o.$C({type:j});static \u0275inj=D.G2t({imports:[g.Pd,w.y,w.y]})}return j})()},88834(ke,q,l){"use strict";l.d(q,{$0:()=>se,$z:()=>ee,Hl:()=>L});var o=l(22598),e=l(2615),A=l(73664),h=l(26881),d=l(22466);const w=["matButton",""],f=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],F=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],K=["mat-mini-fab",""],Z=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]);let ee=(()=>{class t extends o.iM{get appearance(){return this._appearance}set appearance(m){this.setAppearance(m||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();const m=function V(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}(this._elementRef.nativeElement);m&&this.setAppearance(m)}setAppearance(m){if(m===this._appearance)return;const u=this._elementRef.nativeElement.classList,_=this._appearance?Z.get(this._appearance):null,T=Z.get(m);_&&u.remove(..._),u.add(...T),this._appearance=m}static \u0275fac=function(u){return new(u||t)};static \u0275cmp=A.VBU({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[A.Vt3],attrs:w,ngContentSelectors:F,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(u,_){1&u&&(A.NAR(f),A.Hgh(0,"span",0),A.SdG(1),A.rj2(2,"span",1),A.SdG(3,1),A.eux(),A.SdG(4,2),A.Hgh(5,"span",2)(6,"span",3)),2&u&&A.AVh("mdc-button__ripple",!_._isFab)("mdc-fab__ripple",_._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}\n',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0})}return t})();const $=new e.nKC("mat-mdc-fab-default-options",{providedIn:"root",factory:ie});function ie(){return{color:"accent"}}const _e=ie();let se=(()=>{class t extends o.iM{_options=(0,e.WQX)($,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||_e,this.color=this._options.color||_e.color}static \u0275fac=function(u){return new(u||t)};static \u0275cmp=A.VBU({type:t,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[A.Vt3],attrs:K,ngContentSelectors:F,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(u,_){1&u&&(A.NAR(f),A.Hgh(0,"span",0),A.SdG(1),A.rj2(2,"span",1),A.SdG(3,1),A.eux(),A.SdG(4,2),A.Hgh(5,"span",2)(6,"span",3)),2&u&&A.AVh("mdc-button__ripple",!_._isFab)("mdc-fab__ripple",_._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}\n'],encapsulation:2,changeDetection:0})}return t})(),L=(()=>{class t{static \u0275fac=function(u){return new(u||t)};static \u0275mod=A.$C({type:t});static \u0275inj=e.G2t({imports:[d.y,h.p,d.y]})}return t})()},25596(ke,q,l){"use strict";l.d(q,{Hu:()=>pe,Lc:()=>K,MM:()=>Z,RN:()=>w,dh:()=>f,m2:()=>M});var i=l(2615),g=l(73664),p=l(22466);const D=["*"],A=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],h=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],d=new i.nKC("MAT_CARD_CONFIG");let w=(()=>{class Ee{appearance;constructor(){const t=(0,i.WQX)(d,{optional:!0});this.appearance=t?.appearance||"raised"}static \u0275fac=function(s){return new(s||Ee)};static \u0275cmp=g.VBU({type:Ee,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(s,m){2&s&&g.AVh("mat-mdc-card-outlined","outlined"===m.appearance)("mdc-card--outlined","outlined"===m.appearance)("mat-mdc-card-filled","filled"===m.appearance)("mdc-card--filled","filled"===m.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:D,decls:1,vars:0,template:function(s,m){1&s&&(g.NAR(),g.SdG(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}\n'],encapsulation:2,changeDetection:0})}return Ee})(),f=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=g.FsC({type:Ee,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return Ee})(),M=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=g.FsC({type:Ee,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return Ee})(),K=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=g.FsC({type:Ee,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return Ee})(),Z=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275cmp=g.VBU({type:Ee,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:h,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(s,m){1&s&&(g.NAR(A),g.SdG(0),g.rj2(1,"div",0),g.SdG(2,1),g.eux(),g.SdG(3,2))},encapsulation:2,changeDetection:0})}return Ee})(),pe=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275mod=g.$C({type:Ee});static \u0275inj=i.G2t({imports:[p.y,p.y]})}return Ee})()},82765(ke,q,l){"use strict";l.d(q,{So:()=>$,g7:()=>ie});var i=l(89726),g=l(2615),p=l(73664),D=l(17705),o=l(89417),e=l(88968),A=l(53155),h=l(31804),d=l(32046),w=l(12496),f=l(22466);const F=["input"],M=["label"],K=["*"],j=new g.nKC("mat-checkbox-default-options",{providedIn:"root",factory:Z});function Z(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var ee=function(_e){return _e[_e.Init=0]="Init",_e[_e.Checked=1]="Checked",_e[_e.Unchecked=2]="Unchecked",_e[_e.Indeterminate=3]="Indeterminate",_e}(ee||{});class V{source;checked}const Q=Z();let $=(()=>{class _e{_elementRef=(0,g.WQX)(p.aKT);_changeDetectorRef=(0,g.WQX)(D.gRc);_ngZone=(0,g.WQX)(p.SKi);_animationsDisabled=(0,h.Rc)();_options=(0,g.WQX)(j,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(se){const pe=new V;return pe.source=this,pe.checked=se,pe}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new p.bkB;indeterminateChange=new p.bkB;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=ee.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){(0,g.WQX)(e.l).load(d.A);const se=(0,g.WQX)(new D.ES_("tabindex"),{optional:!0});this._options=this._options||Q,this.color=this._options.color||Q.color,this.tabIndex=null==se?0:parseInt(se)||0,this.id=this._uniqueId=(0,g.WQX)(i.g).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(se){se.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(se){se!=this.checked&&(this._checked=se,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(se){se!==this.disabled&&(this._disabled=se,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(se){const pe=se!=this._indeterminate();this._indeterminate.set(se),pe&&(this._transitionCheckState(se?ee.Indeterminate:this.checked?ee.Checked:ee.Unchecked),this.indeterminateChange.emit(se)),this._syncIndeterminate(se)}_indeterminate=(0,g.vPA)(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(se){this.checked=!!se}registerOnChange(se){this._controlValueAccessorChangeFn=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se}validate(se){return this.required&&!0!==se.value?{required:!0}:null}registerOnValidatorChange(se){this._validatorChangeFn=se}_transitionCheckState(se){let pe=this._currentCheckState,Ee=this._getAnimationTargetElement();if(pe!==se&&Ee&&(this._currentAnimationClass&&Ee.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(pe,se),this._currentCheckState=se,this._currentAnimationClass.length>0)){Ee.classList.add(this._currentAnimationClass);const L=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Ee.classList.remove(L)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const se=this._options?.clickAction;this.disabled||"noop"===se?(this.disabled&&this.disabledInteractive||!this.disabled&&"noop"===se)&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==se&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?ee.Checked:ee.Unchecked),this._emitChangeEvent())}_onInteractionEvent(se){se.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(se,pe){if(this._animationsDisabled)return"";switch(se){case ee.Init:if(pe===ee.Checked)return this._animationClasses.uncheckedToChecked;if(pe==ee.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case ee.Unchecked:return pe===ee.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case ee.Checked:return pe===ee.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case ee.Indeterminate:return pe===ee.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(se){const pe=this._inputElement;pe&&(pe.nativeElement.indeterminate=se)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(se){se.target&&this._labelElement.nativeElement.contains(se.target)&&se.stopPropagation()}static \u0275fac=function(pe){return new(pe||_e)};static \u0275cmp=p.VBU({type:_e,selectors:[["mat-checkbox"]],viewQuery:function(pe,Ee){if(1&pe&&(p.GBs(F,5),p.GBs(M,5)),2&pe){let L;p.mGM(L=p.lsd())&&(Ee._inputElement=L.first),p.mGM(L=p.lsd())&&(Ee._labelElement=L.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(pe,Ee){2&pe&&(p.Avn("id",Ee.id),p.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),p.HbH(Ee.color?"mat-"+Ee.color:"mat-accent"),p.AVh("_mat-animation-noopable",Ee._animationsDisabled)("mdc-checkbox--disabled",Ee.disabled)("mat-mdc-checkbox-disabled",Ee.disabled)("mat-mdc-checkbox-checked",Ee.checked)("mat-mdc-checkbox-disabled-interactive",Ee.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",D.L39],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",D.L39],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",D.L39],tabIndex:[2,"tabIndex","tabIndex",se=>null==se?void 0:(0,D.Udg)(se)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",D.L39],checked:[2,"checked","checked",D.L39],disabled:[2,"disabled","disabled",D.L39],indeterminate:[2,"indeterminate","indeterminate",D.L39]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[p.Jv_([{provide:o.kq,useExisting:(0,g.Rfq)(()=>_e),multi:!0},{provide:o.cz,useExisting:_e,multi:!0}]),p.OA$],ngContentSelectors:K,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(pe,Ee){if(1&pe){const L=p.RV6();p.NAR(),p.j41(0,"div",3),p.bIt("click",function(s){return g.eBV(L),g.Njj(Ee._preventBubblingFromLabel(s))}),p.j41(1,"div",4,0)(3,"div",5),p.bIt("click",function(){return g.eBV(L),g.Njj(Ee._onTouchTargetClick())}),p.k0s(),p.j41(4,"input",6,1),p.bIt("blur",function(){return g.eBV(L),g.Njj(Ee._onBlur())})("click",function(){return g.eBV(L),g.Njj(Ee._onInputClick())})("change",function(s){return g.eBV(L),g.Njj(Ee._onInteractionEvent(s))}),p.k0s(),p.nrm(6,"div",7),p.j41(7,"div",8),g.qSk(),p.j41(8,"svg",9),p.nrm(9,"path",10),p.k0s(),g.joV(),p.nrm(10,"div",11),p.k0s(),p.nrm(11,"div",12),p.k0s(),p.j41(12,"label",13,2),p.SdG(14),p.k0s()()}if(2&pe){const L=p.sdS(2);p.Y8G("labelPosition",Ee.labelPosition),p.R7$(4),p.AVh("mdc-checkbox--selected",Ee.checked),p.Y8G("checked",Ee.checked)("indeterminate",Ee.indeterminate)("disabled",Ee.disabled&&!Ee.disabledInteractive)("id",Ee.inputId)("required",Ee.required)("tabIndex",Ee.disabled&&!Ee.disabledInteractive?-1:Ee.tabIndex),p.BMQ("aria-label",Ee.ariaLabel||null)("aria-labelledby",Ee.ariaLabelledby)("aria-describedby",Ee.ariaDescribedby)("aria-checked",Ee.indeterminate?"mixed":null)("aria-controls",Ee.ariaControls)("aria-disabled",!(!Ee.disabled||!Ee.disabledInteractive)||null)("aria-expanded",Ee.ariaExpanded)("aria-owns",Ee.ariaOwns)("name",Ee.name)("value",Ee.value),p.R7$(7),p.Y8G("matRippleTrigger",L)("matRippleDisabled",Ee.disableRipple||Ee.disabled)("matRippleCentered",!0),p.R7$(),p.Y8G("for",Ee.inputId)}},dependencies:[w.r6,A.t],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-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 mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return _e})(),ie=(()=>{class _e{static \u0275fac=function(pe){return new(pe||_e)};static \u0275mod=p.$C({type:_e});static \u0275inj=g.G2t({imports:[$,f.y,f.y]})}return _e})()},36471(ke,q,l){"use strict";l.d(q,{Jl:()=>Et,YN:()=>hn});var i=l(76838),g=l(89726),o=(l(64123),l(67336),l(10438)),e=l(49046),A=l(88968),h=l(2615),d=l(73664),w=l(17705),f=l(21413),F=l(57786),M=l(32046),K=l(12496),j=l(31804),Z=l(11048),_e=(l(99172),l(25558),l(56977),l(61577),l(89417),l(2709)),pe=(l(39336),l(69588),l(22466)),Ee=l(26881);const L=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],t=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function s(En,_n){1&En&&(d.j41(0,"span",3),d.SdG(1,1),d.k0s())}function m(En,_n){1&En&&(d.j41(0,"span",6),d.SdG(1,2),d.k0s())}const ce=new h.nKC("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[o.Fm]})}),Re=new h.nKC("MatChipAvatar"),Me=new h.nKC("MatChipTrailingIcon"),ve=new h.nKC("MatChipEdit"),oe=new h.nKC("MatChipRemove"),Se=new h.nKC("MatChip");let be=(()=>{class En{_elementRef=(0,h.WQX)(d.aKT);_parentChip=(0,h.WQX)(Se);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(tt){this._disabled=tt}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){(0,h.WQX)(A.l).load(M.A),"BUTTON"===this._elementRef.nativeElement.nodeName&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(tt){!this.disabled&&this.isInteractive&&this._isPrimary&&(tt.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(tt){(tt.keyCode===o.Fm||tt.keyCode===o.t6)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(tt.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(Fe){return new(Fe||En)};static \u0275dir=d.FsC({type:En,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(Fe,Pe){1&Fe&&d.bIt("click",function(Qe){return Pe._handleClick(Qe)})("keydown",function(Qe){return Pe._handleKeydown(Qe)}),2&Fe&&(d.BMQ("tabindex",Pe._getTabindex())("disabled",Pe._getDisabledAttribute())("aria-disabled",Pe.disabled),d.AVh("mdc-evolution-chip__action--primary",Pe._isPrimary)("mdc-evolution-chip__action--presentational",!Pe.isInteractive)("mdc-evolution-chip__action--secondary",!Pe._isPrimary)("mdc-evolution-chip__action--trailing",!Pe._isPrimary&&!Pe._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",w.L39],tabIndex:[2,"tabIndex","tabIndex",tt=>null==tt?-1:(0,w.Udg)(tt)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return En})(),Et=(()=>{class En{_changeDetectorRef=(0,h.WQX)(w.gRc);_elementRef=(0,h.WQX)(d.aKT);_tagName=(0,h.WQX)(w.cCO);_ngZone=(0,h.WQX)(d.SKi);_focusMonitor=(0,h.WQX)(i.FN);_globalRippleOptions=(0,h.WQX)(K.$E,{optional:!0});_document=(0,h.WQX)(h.qQL);_onFocus=new f.B;_onBlur=new f.B;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=(0,j.Rc)();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=(0,h.WQX)(g.g).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(tt){this._value=tt}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(tt){this._disabled=tt}_disabled=!1;removed=new d.bkB;destroyed=new d.bkB;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=(0,h.WQX)(Z.E);_injector=(0,h.WQX)(h.zZn);constructor(){const tt=(0,h.WQX)(A.l);tt.load(M.A),tt.load(e.Y),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,F.h)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(tt){(tt.keyCode===o.G_&&!tt.repeat||tt.keyCode===o.SJ)&&(tt.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(tt){return this._getActions().find(Fe=>{const Pe=Fe._elementRef.nativeElement;return Pe===tt||Pe.contains(tt)})}_getActions(){const tt=[];return this.editIcon&&tt.push(this.editIcon),this.primaryAction&&tt.push(this.primaryAction),this.removeIcon&&tt.push(this.removeIcon),this.trailingIcon&&tt.push(this.trailingIcon),tt}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(tt=>tt.isInteractive)}_edit(tt){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(tt=>{const Fe=null!==tt;Fe!==this._hasFocusInternal&&(this._hasFocusInternal=Fe,Fe?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(Fe){return new(Fe||En)};static \u0275cmp=d.VBU({type:En,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Fe,Pe,Ue){if(1&Fe&&(d.wni(Ue,Re,5),d.wni(Ue,ve,5),d.wni(Ue,Me,5),d.wni(Ue,oe,5),d.wni(Ue,Re,5),d.wni(Ue,Me,5),d.wni(Ue,ve,5),d.wni(Ue,oe,5)),2&Fe){let Qe;d.mGM(Qe=d.lsd())&&(Pe.leadingIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe.editIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe.trailingIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe.removeIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe._allLeadingIcons=Qe),d.mGM(Qe=d.lsd())&&(Pe._allTrailingIcons=Qe),d.mGM(Qe=d.lsd())&&(Pe._allEditIcons=Qe),d.mGM(Qe=d.lsd())&&(Pe._allRemoveIcons=Qe)}},viewQuery:function(Fe,Pe){if(1&Fe&&d.GBs(be,5),2&Fe){let Ue;d.mGM(Ue=d.lsd())&&(Pe.primaryAction=Ue.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(Fe,Pe){1&Fe&&d.bIt("keydown",function(Qe){return Pe._handleKeydown(Qe)}),2&Fe&&(d.Avn("id",Pe.id),d.BMQ("role",Pe.role)("aria-label",Pe.ariaLabel),d.HbH("mat-"+(Pe.color||"primary")),d.AVh("mdc-evolution-chip",!Pe._isBasicChip)("mdc-evolution-chip--disabled",Pe.disabled)("mdc-evolution-chip--with-trailing-action",Pe._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",Pe.leadingIcon)("mdc-evolution-chip--with-primary-icon",Pe.leadingIcon)("mdc-evolution-chip--with-avatar",Pe.leadingIcon)("mat-mdc-chip-with-avatar",Pe.leadingIcon)("mat-mdc-chip-highlighted",Pe.highlighted)("mat-mdc-chip-disabled",Pe.disabled)("mat-mdc-basic-chip",Pe._isBasicChip)("mat-mdc-standard-chip",!Pe._isBasicChip)("mat-mdc-chip-with-trailing-icon",Pe._hasTrailingIcon())("_mat-animation-noopable",Pe._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",w.L39],highlighted:[2,"highlighted","highlighted",w.L39],disableRipple:[2,"disableRipple","disableRipple",w.L39],disabled:[2,"disabled","disabled",w.L39]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[d.Jv_([{provide:Se,useExisting:En}])],ngContentSelectors:t,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(Fe,Pe){1&Fe&&(d.NAR(L),d.nrm(0,"span",0),d.j41(1,"span",1)(2,"span",2),d.nVh(3,s,2,0,"span",3),d.j41(4,"span",4),d.SdG(5),d.nrm(6,"span",5),d.k0s()()(),d.nVh(7,m,2,0,"span",6)),2&Fe&&(d.R7$(2),d.Y8G("isInteractive",!1),d.R7$(),d.vxM(Pe.leadingIcon?3:-1),d.R7$(4),d.vxM(Pe._hasTrailingIcon()?7:-1))},dependencies:[be],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0}\n'],encapsulation:2,changeDetection:0})}return En})(),hn=(()=>{class En{static \u0275fac=function(Fe){return new(Fe||En)};static \u0275mod=d.$C({type:En});static \u0275inj=h.G2t({providers:[_e.e,{provide:ce,useValue:{separatorKeyCodes:[o.Fm]}}],imports:[pe.y,Ee.p,pe.y]})}return En})()},22466(ke,q,l){"use strict";l.d(q,{y:()=>e});var i=l(17094),g=l(28203),p=l(2615),D=l(73664);let e=(()=>{class A{constructor(){(0,p.WQX)(i.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(w){return new(w||A)};static \u0275mod=D.$C({type:A});static \u0275inj=p.G2t({imports:[g.jI,g.jI]})}return A})()},3(ke,q,l){"use strict";l.d(q,{WX:()=>K,xW:()=>w});var p=l(2615),D=l(73664),o=l(19945);const A=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,h=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function d(Z,ee){const V=Array(Z);for(let Q=0;Q{class Z extends o.MJ{useUtcForDisplay=!1;_matDateLocale=(0,p.WQX)(o.Ju,{optional:!0});constructor(){super();const V=(0,p.WQX)(o.Ju,{optional:!0});void 0!==V&&(this._matDateLocale=V),super.setLocale(this._matDateLocale)}getYear(V){return V.getFullYear()}getMonth(V){return V.getMonth()}getDate(V){return V.getDate()}getDayOfWeek(V){return V.getDay()}getMonthNames(V){const Q=new Intl.DateTimeFormat(this.locale,{month:V,timeZone:"utc"});return d(12,$=>this._format(Q,new Date(2017,$,1)))}getDateNames(){const V=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return d(31,Q=>this._format(V,new Date(2017,0,Q+1)))}getDayOfWeekNames(V){const Q=new Intl.DateTimeFormat(this.locale,{weekday:V,timeZone:"utc"});return d(7,$=>this._format(Q,new Date(2017,0,$+1)))}getYearName(V){const Q=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Q,V)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){const V=new Intl.Locale(this.locale),Q=(V.getWeekInfo?.()||V.weekInfo)?.firstDay??0;return 7===Q?0:Q}return 0}getNumDaysInMonth(V){return this.getDate(this._createDateWithOverflow(this.getYear(V),this.getMonth(V)+1,0))}clone(V){return new Date(V.getTime())}createDate(V,Q,$){let ie=this._createDateWithOverflow(V,Q,$);return ie.getMonth(),ie}today(){return new Date}parse(V,Q){return"number"==typeof V?new Date(V):V?new Date(Date.parse(V)):null}format(V,Q){if(!this.isValid(V))throw Error("NativeDateAdapter: Cannot format invalid date.");const $=new Intl.DateTimeFormat(this.locale,{...Q,timeZone:"utc"});return this._format($,V)}addCalendarYears(V,Q){return this.addCalendarMonths(V,12*Q)}addCalendarMonths(V,Q){let $=this._createDateWithOverflow(this.getYear(V),this.getMonth(V)+Q,this.getDate(V));return this.getMonth($)!=((this.getMonth(V)+Q)%12+12)%12&&($=this._createDateWithOverflow(this.getYear($),this.getMonth($),0)),$}addCalendarDays(V,Q){return this._createDateWithOverflow(this.getYear(V),this.getMonth(V),this.getDate(V)+Q)}toIso8601(V){return[V.getUTCFullYear(),this._2digit(V.getUTCMonth()+1),this._2digit(V.getUTCDate())].join("-")}deserialize(V){if("string"==typeof V){if(!V)return null;if(A.test(V)){let Q=new Date(V);if(this.isValid(Q))return Q}}return super.deserialize(V)}isDateInstance(V){return V instanceof Date}isValid(V){return!isNaN(V.getTime())}invalid(){return new Date(NaN)}setTime(V,Q,$,ie){const _e=this.clone(V);return _e.setHours(Q,$,ie,0),_e}getHours(V){return V.getHours()}getMinutes(V){return V.getMinutes()}getSeconds(V){return V.getSeconds()}parseTime(V,Q){if("string"!=typeof V)return V instanceof Date?new Date(V.getTime()):null;const $=V.trim();if(0===$.length)return null;let ie=this._parseTimeString($);if(null===ie){const _e=$.replace(/[^0-9:(AM|PM)]/gi,"").trim();_e.length>0&&(ie=this._parseTimeString(_e))}return ie||this.invalid()}addSeconds(V,Q){return new Date(V.getTime()+1e3*Q)}_createDateWithOverflow(V,Q,$){const ie=new Date;return ie.setFullYear(V,Q,$),ie.setHours(0,0,0,0),ie}_2digit(V){return("00"+V).slice(-2)}_format(V,Q){const $=new Date;return $.setUTCFullYear(Q.getFullYear(),Q.getMonth(),Q.getDate()),$.setUTCHours(Q.getHours(),Q.getMinutes(),Q.getSeconds(),Q.getMilliseconds()),V.format($)}_parseTimeString(V){const Q=V.toUpperCase().match(h);if(Q){let $=parseInt(Q[1]);const ie=parseInt(Q[2]);let _e=null==Q[3]?void 0:parseInt(Q[3]);const ye=Q[4];if(12===$?$="AM"===ye?0:$:"PM"===ye&&($+=12),f($,0,23)&&f(ie,0,59)&&(null==_e||f(_e,0,59)))return this.setTime(this.today(),$,ie,_e||0)}return null}static \u0275fac=function(Q){return new(Q||Z)};static \u0275prov=p.jDH({token:Z,factory:Z.\u0275fac})}return Z})();function f(Z,ee,V){return!isNaN(Z)&&Z>=ee&&Z<=V}const F={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};let K=(()=>{class Z{static \u0275fac=function(Q){return new(Q||Z)};static \u0275mod=D.$C({type:Z});static \u0275inj=p.G2t({providers:[j()]})}return Z})();function j(Z=F){return[{provide:o.MJ,useClass:w},{provide:o.de,useValue:Z}]}},19945(ke,q,l){"use strict";l.d(q,{Ju:()=>D,MJ:()=>A,de:()=>h});var i=l(2615),g=l(73664),p=l(21413);const D=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function o(){return(0,i.WQX)(g.xe9)}}),e="Method not implemented";class A{locale;_localeChanges=new p.B;localeChanges=this._localeChanges;setTime(w,f,F,M){throw new Error(e)}getHours(w){throw new Error(e)}getMinutes(w){throw new Error(e)}getSeconds(w){throw new Error(e)}parseTime(w,f){throw new Error(e)}addSeconds(w,f){throw new Error(e)}getValidDateOrNull(w){return this.isDateInstance(w)&&this.isValid(w)?w:null}deserialize(w){return null==w||this.isDateInstance(w)&&this.isValid(w)?w:this.invalid()}setLocale(w){this.locale=w,this._localeChanges.next()}compareDate(w,f){return this.getYear(w)-this.getYear(f)||this.getMonth(w)-this.getMonth(f)||this.getDate(w)-this.getDate(f)}compareTime(w,f){return this.getHours(w)-this.getHours(f)||this.getMinutes(w)-this.getMinutes(f)||this.getSeconds(w)-this.getSeconds(f)}sameDate(w,f){if(w&&f){let F=this.isValid(w),M=this.isValid(f);return F&&M?!this.compareDate(w,f):F==M}return w==f}sameTime(w,f){if(w&&f){const F=this.isValid(w),M=this.isValid(f);return F&&M?!this.compareTime(w,f):F==M}return w==f}clampDate(w,f,F){return f&&this.compareDate(w,f)<0?f:F&&this.compareDate(w,F)>0?F:w}}const h=new i.nKC("mat-date-formats")},25084(ke,q,l){"use strict";l.d(q,{Vh:()=>Zn,X6:()=>Oi,bU:()=>Sn,bZ:()=>Sa});var _=l(2615),T=l(73664),P=l(17705),C=l(21413),a=l(18359),x=l(57786),Y=l(7673),R=l(19945),U=l(76838),fe=l(17094),re=l(89726),he=l(61577),Oe=l(14085),ge=l(67336),ce=l(10438),Re=l(49338),Me=l(39842),ve=l(44522),oe=l(76939),Se=l(5964),be=l(99172),nt=l(96697),$e=l(72200),dt=l(49046),yt=l(88968),Et=l(32046),rt=l(88834),Mn=l(22598),qt=l(40455),S=l(31804),Xt=l(89417),de=l(68010),ae=l(69588),me=l(5718),Le=l(22466);const et=["mat-calendar-body",""];function tn(mn,li){return this._trackRow(li)}const Vt=(mn,li)=>li.id;function hn(mn,li){if(1&mn&&(T.j41(0,"tr",0)(1,"td",3),T.EFF(2),T.k0s()()),2&mn){const Ce=T.XpG();T.R7$(),T.xc7("padding-top",Ce._cellPadding)("padding-bottom",Ce._cellPadding),T.BMQ("colspan",Ce.numCols),T.R7$(),T.SpI(" ",Ce.label," ")}}function En(mn,li){if(1&mn&&(T.j41(0,"td",3),T.EFF(1),T.k0s()),2&mn){const Ce=T.XpG(2);T.xc7("padding-top",Ce._cellPadding)("padding-bottom",Ce._cellPadding),T.BMQ("colspan",Ce._firstRowOffset),T.R7$(),T.SpI(" ",Ce._firstRowOffset>=Ce.labelMinRequiredCells?Ce.label:""," ")}}function _n(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"td",6)(1,"button",7),T.bIt("click",function(vt){const rn=_.eBV(Ce).$implicit,Wn=T.XpG(2);return _.Njj(Wn._cellClicked(rn,vt))})("focus",function(vt){const rn=_.eBV(Ce).$implicit,Wn=T.XpG(2);return _.Njj(Wn._emitActiveDateChange(rn,vt))}),T.j41(2,"span",8),T.EFF(3),T.k0s(),T.nrm(4,"span",9),T.k0s()()}if(2&mn){const Ce=li.$implicit,xt=li.$index,vt=T.XpG().$index,rn=T.XpG();T.xc7("width",rn._cellWidth)("padding-top",rn._cellPadding)("padding-bottom",rn._cellPadding),T.BMQ("data-mat-row",vt)("data-mat-col",xt),T.R7$(),T.AVh("mat-calendar-body-disabled",!Ce.enabled)("mat-calendar-body-active",rn._isActiveCell(vt,xt))("mat-calendar-body-range-start",rn._isRangeStart(Ce.compareValue))("mat-calendar-body-range-end",rn._isRangeEnd(Ce.compareValue))("mat-calendar-body-in-range",rn._isInRange(Ce.compareValue))("mat-calendar-body-comparison-bridge-start",rn._isComparisonBridgeStart(Ce.compareValue,vt,xt))("mat-calendar-body-comparison-bridge-end",rn._isComparisonBridgeEnd(Ce.compareValue,vt,xt))("mat-calendar-body-comparison-start",rn._isComparisonStart(Ce.compareValue))("mat-calendar-body-comparison-end",rn._isComparisonEnd(Ce.compareValue))("mat-calendar-body-in-comparison-range",rn._isInComparisonRange(Ce.compareValue))("mat-calendar-body-preview-start",rn._isPreviewStart(Ce.compareValue))("mat-calendar-body-preview-end",rn._isPreviewEnd(Ce.compareValue))("mat-calendar-body-in-preview",rn._isInPreview(Ce.compareValue)),T.Y8G("ngClass",Ce.cssClasses)("tabindex",rn._isActiveCell(vt,xt)?0:-1),T.BMQ("aria-label",Ce.ariaLabel)("aria-disabled",!Ce.enabled||null)("aria-pressed",rn._isSelected(Ce.compareValue))("aria-current",rn.todayValue===Ce.compareValue?"date":null)("aria-describedby",rn._getDescribedby(Ce.compareValue)),T.R7$(),T.AVh("mat-calendar-body-selected",rn._isSelected(Ce.compareValue))("mat-calendar-body-comparison-identical",rn._isComparisonIdentical(Ce.compareValue))("mat-calendar-body-today",rn.todayValue===Ce.compareValue),T.R7$(),T.SpI(" ",Ce.displayValue," ")}}function tt(mn,li){if(1&mn&&(T.j41(0,"tr",1),T.nVh(1,En,2,6,"td",4),T.Z7z(2,_n,5,48,"td",5,Vt),T.k0s()),2&mn){const Ce=li.$implicit,xt=li.$index,vt=T.XpG();T.R7$(),T.vxM(0===xt&&vt._firstRowOffset?1:-1),T.R7$(),T.Dyx(Ce)}}function Fe(mn,li){if(1&mn&&(T.j41(0,"th",2)(1,"span",6),T.EFF(2),T.k0s(),T.j41(3,"span",3),T.EFF(4),T.k0s()()),2&mn){const Ce=li.$implicit;T.R7$(2),T.JRh(Ce.long),T.R7$(2),T.JRh(Ce.narrow)}}const Pe=["*"];function Ue(mn,li){}function Qe(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"mat-month-view",4),T.mxI("activeDateChange",function(vt){_.eBV(Ce);const rn=T.XpG();return T.DH7(rn.activeDate,vt)||(rn.activeDate=vt),_.Njj(vt)}),T.bIt("_userSelection",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._dateSelected(vt))})("dragStarted",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._dragStarted(vt))})("dragEnded",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._dragEnded(vt))}),T.k0s()}if(2&mn){const Ce=T.XpG();T.R50("activeDate",Ce.activeDate),T.Y8G("selected",Ce.selected)("dateFilter",Ce.dateFilter)("maxDate",Ce.maxDate)("minDate",Ce.minDate)("dateClass",Ce.dateClass)("comparisonStart",Ce.comparisonStart)("comparisonEnd",Ce.comparisonEnd)("startDateAccessibleName",Ce.startDateAccessibleName)("endDateAccessibleName",Ce.endDateAccessibleName)("activeDrag",Ce._activeDrag)}}function Ie(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"mat-year-view",5),T.mxI("activeDateChange",function(vt){_.eBV(Ce);const rn=T.XpG();return T.DH7(rn.activeDate,vt)||(rn.activeDate=vt),_.Njj(vt)}),T.bIt("monthSelected",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._monthSelectedInYearView(vt))})("selectedChange",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._goToDateInView(vt,"month"))}),T.k0s()}if(2&mn){const Ce=T.XpG();T.R50("activeDate",Ce.activeDate),T.Y8G("selected",Ce.selected)("dateFilter",Ce.dateFilter)("maxDate",Ce.maxDate)("minDate",Ce.minDate)("dateClass",Ce.dateClass)}}function le(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"mat-multi-year-view",6),T.mxI("activeDateChange",function(vt){_.eBV(Ce);const rn=T.XpG();return T.DH7(rn.activeDate,vt)||(rn.activeDate=vt),_.Njj(vt)}),T.bIt("yearSelected",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._yearSelectedInMultiYearView(vt))})("selectedChange",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._goToDateInView(vt,"year"))}),T.k0s()}if(2&mn){const Ce=T.XpG();T.R50("activeDate",Ce.activeDate),T.Y8G("selected",Ce.selected)("dateFilter",Ce.dateFilter)("maxDate",Ce.maxDate)("minDate",Ce.minDate)("dateClass",Ce.dateClass)}}function Ne(mn,li){}const ze=["button"],Je=[[["","matDatepickerToggleIcon",""]]],gt=["[matDatepickerToggleIcon]"];function zt(mn,li){1&mn&&(_.qSk(),T.j41(0,"svg",2),T.nrm(1,"path",3),T.k0s())}let Wt=(()=>{class mn{changes=new C.B;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(Ce,xt){return`${Ce} \u2013 ${xt}`}formatYearRangeLabel(Ce,xt){return`${Ce} to ${xt}`}static \u0275fac=function(xt){return new(xt||mn)};static \u0275prov=_.jDH({token:mn,factory:mn.\u0275fac,providedIn:"root"})}return mn})(),we=0;class We{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=we++;constructor(li,Ce,xt,vt,rn={},Wn=li,Yi){this.value=li,this.displayValue=Ce,this.ariaLabel=xt,this.enabled=vt,this.cssClasses=rn,this.compareValue=Wn,this.rawValue=Yi}}const Lt={passive:!1,capture:!0},St={passive:!0,capture:!0},At={passive:!0};let fn=(()=>{class mn{_elementRef=(0,_.WQX)(T.aKT);_ngZone=(0,_.WQX)(T.SKi);_platform=(0,_.WQX)(Me.O);_intl=(0,_.WQX)(Wt);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new T.bkB;previewChange=new T.bkB;activeDateChange=new T.bkB;dragStarted=new T.bkB;dragEnded=new T.bkB;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=(0,_.WQX)(_.zZn);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=Ce=>Ce;constructor(){const Ce=(0,_.WQX)(T.sFG),xt=(0,_.WQX)(re.g);this._startDateLabelId=xt.getId("mat-calendar-body-start-"),this._endDateLabelId=xt.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=xt.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=xt.getId("mat-calendar-body-comparison-end-"),(0,_.WQX)(yt.l).load(Et.A),this._ngZone.runOutsideAngular(()=>{const vt=this._elementRef.nativeElement,rn=[Ce.listen(vt,"touchmove",this._touchmoveHandler,Lt),Ce.listen(vt,"mouseenter",this._enterHandler,St),Ce.listen(vt,"focus",this._enterHandler,St),Ce.listen(vt,"mouseleave",this._leaveHandler,St),Ce.listen(vt,"blur",this._leaveHandler,St),Ce.listen(vt,"mousedown",this._mousedownHandler,At),Ce.listen(vt,"touchstart",this._mousedownHandler,At)];this._platform.isBrowser&&rn.push(Ce.listen("window","mouseup",this._mouseupHandler),Ce.listen("window","touchend",this._touchendHandler)),this._eventCleanups=rn})}_cellClicked(Ce,xt){this._didDragSinceMouseDown||Ce.enabled&&this.selectedValueChange.emit({value:Ce.value,event:xt})}_emitActiveDateChange(Ce,xt){Ce.enabled&&this.activeDateChange.emit({value:Ce.value,event:xt})}_isSelected(Ce){return this.startValue===Ce||this.endValue===Ce}ngOnChanges(Ce){const xt=Ce.numCols,{rows:vt,numCols:rn}=this;(Ce.rows||xt)&&(this._firstRowOffset=vt&&vt.length&&vt[0].length?rn-vt[0].length:0),(Ce.cellAspectRatio||xt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/rn+"%"),(xt||!this._cellWidth)&&(this._cellWidth=100/rn+"%")}ngOnDestroy(){this._eventCleanups.forEach(Ce=>Ce())}_isActiveCell(Ce,xt){let vt=Ce*this.numCols+xt;return Ce&&(vt-=this._firstRowOffset),vt==this.activeCell}_focusActiveCell(Ce=!0){(0,T.mal)(()=>{setTimeout(()=>{const xt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");xt&&(Ce||(this._skipNextFocus=!0),xt.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Ce){return wn(Ce,this.startValue,this.endValue)}_isRangeEnd(Ce){return In(Ce,this.startValue,this.endValue)}_isInRange(Ce){return ei(Ce,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Ce){return wn(Ce,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Ce,xt,vt){if(!this._isComparisonStart(Ce)||this._isRangeStart(Ce)||!this._isInRange(Ce))return!1;let rn=this.rows[xt][vt-1];if(!rn){const Wn=this.rows[xt-1];rn=Wn&&Wn[Wn.length-1]}return rn&&!this._isRangeEnd(rn.compareValue)}_isComparisonBridgeEnd(Ce,xt,vt){if(!this._isComparisonEnd(Ce)||this._isRangeEnd(Ce)||!this._isInRange(Ce))return!1;let rn=this.rows[xt][vt+1];if(!rn){const Wn=this.rows[xt+1];rn=Wn&&Wn[0]}return rn&&!this._isRangeStart(rn.compareValue)}_isComparisonEnd(Ce){return In(Ce,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Ce){return ei(Ce,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Ce){return this.comparisonStart===this.comparisonEnd&&Ce===this.comparisonStart}_isPreviewStart(Ce){return wn(Ce,this.previewStart,this.previewEnd)}_isPreviewEnd(Ce){return In(Ce,this.previewStart,this.previewEnd)}_isInPreview(Ce){return ei(Ce,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(Ce){if(!this.isRange)return null;if(this.startValue===Ce&&this.endValue===Ce)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===Ce)return this._startDateLabelId;if(this.endValue===Ce)return this._endDateLabelId;if(null!==this.comparisonStart&&null!==this.comparisonEnd){if(Ce===this.comparisonStart&&Ce===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(Ce===this.comparisonStart)return this._comparisonStartDateLabelId;if(Ce===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=Ce=>{if(this._skipNextFocus&&"focus"===Ce.type)this._skipNextFocus=!1;else if(Ce.target&&this.isRange){const xt=this._getCellFromElement(Ce.target);xt&&this._ngZone.run(()=>this.previewChange.emit({value:xt.enabled?xt:null,event:Ce}))}};_touchmoveHandler=Ce=>{if(!this.isRange)return;const xt=Li(Ce),vt=xt?this._getCellFromElement(xt):null;xt!==Ce.target&&(this._didDragSinceMouseDown=!0),It(Ce.target)&&Ce.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:vt?.enabled?vt:null,event:Ce}))};_leaveHandler=Ce=>{null!==this.previewEnd&&this.isRange&&("blur"!==Ce.type&&(this._didDragSinceMouseDown=!0),Ce.target&&this._getCellFromElement(Ce.target)&&(!Ce.relatedTarget||!this._getCellFromElement(Ce.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Ce})))};_mousedownHandler=Ce=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const xt=Ce.target&&this._getCellFromElement(Ce.target);!xt||!this._isInRange(xt.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:xt.rawValue,event:Ce})})};_mouseupHandler=Ce=>{if(!this.isRange)return;const xt=It(Ce.target);xt?xt.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const vt=this._getCellFromElement(xt);this.dragEnded.emit({value:vt?.rawValue??null,event:Ce})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:Ce})})};_touchendHandler=Ce=>{const xt=Li(Ce);xt&&this._mouseupHandler({target:xt})};_getCellFromElement(Ce){const xt=It(Ce);if(xt){const vt=xt.getAttribute("data-mat-row"),rn=xt.getAttribute("data-mat-col");if(vt&&rn)return this.rows[parseInt(vt)]?.[parseInt(rn)]||null}return null}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[T.OA$],attrs:et,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(xt,vt){1&xt&&(T.nVh(0,hn,3,6,"tr",0),T.Z7z(1,tt,4,1,"tr",1,tn,!0),T.j41(3,"span",2),T.EFF(4),T.k0s(),T.j41(5,"span",2),T.EFF(6),T.k0s(),T.j41(7,"span",2),T.EFF(8),T.k0s(),T.j41(9,"span",2),T.EFF(10),T.k0s()),2&xt&&(T.vxM(vt._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}\n'],encapsulation:2,changeDetection:0})}return mn})();function mt(mn){return"TD"===mn?.nodeName}function It(mn){let li;return mt(mn)?li=mn:mt(mn.parentNode)?li=mn.parentNode:mt(mn.parentNode?.parentNode)&&(li=mn.parentNode.parentNode),null!=li?.getAttribute("data-mat-row")?li:null}function wn(mn,li,Ce){return null!==Ce&&li!==Ce&&mn=li&&mn===Ce}function ei(mn,li,Ce,xt){return xt&&null!==li&&null!==Ce&&li!==Ce&&mn>=li&&mn<=Ce}function Li(mn){const li=mn.changedTouches[0];return document.elementFromPoint(li.clientX,li.clientY)}class kt{start;end;_disableStructuralEquivalency;constructor(li,Ce){this.start=li,this.end=Ce}}let Ot=(()=>{class mn{selection;_adapter;_selectionChanged=new C.B;selectionChanged=this._selectionChanged;constructor(Ce,xt){this.selection=Ce,this._adapter=xt,this.selection=Ce}updateSelection(Ce,xt){const vt=this.selection;this.selection=Ce,this._selectionChanged.next({selection:Ce,source:xt,oldValue:vt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Ce){return this._adapter.isDateInstance(Ce)&&this._adapter.isValid(Ce)}static \u0275fac=function(xt){T.QTQ()};static \u0275prov=_.jDH({token:mn,factory:mn.\u0275fac})}return mn})(),Ze=(()=>{class mn extends Ot{constructor(Ce){super(null,Ce)}add(Ce){super.updateSelection(Ce,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Ce=new mn(this._adapter);return Ce.updateSelection(this.selection,this),Ce}static \u0275fac=function(xt){return new(xt||mn)(_.KVO(R.MJ))};static \u0275prov=_.jDH({token:mn,factory:mn.\u0275fac})}return mn})();const Yt={provide:Ot,deps:[[new T.Xx1,new T.kdw,Ot],R.MJ],useFactory:function Pt(mn,li){return mn||new Ze(li)}},oi=new _.nKC("MAT_DATE_RANGE_SELECTION_STRATEGY");let en=0,Nn=(()=>{class mn{_changeDetectorRef=(0,_.WQX)(P.gRc);_dateFormats=(0,_.WQX)(R.de,{optional:!0});_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_rangeStrategy=(0,_.WQX)(oi,{optional:!0});_rerenderSubscription=a.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(Ce){const xt=this._activeDate,vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),this._hasSameMonthAndYear(xt,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new T.bkB;_userSelection=new T.bkB;dragStarted=new T.bkB;dragEnded=new T.bkB;activeDateChange=new T.bkB;_matCalendarBody;_monthLabel=(0,_.vPA)("");_weeks=(0,_.vPA)([]);_firstWeekOffset=(0,_.vPA)(0);_rangeStart=(0,_.vPA)(null);_rangeEnd=(0,_.vPA)(null);_comparisonRangeStart=(0,_.vPA)(null);_comparisonRangeEnd=(0,_.vPA)(null);_previewStart=(0,_.vPA)(null);_previewEnd=(0,_.vPA)(null);_isRange=(0,_.vPA)(!1);_todayDate=(0,_.vPA)(null);_weekdays=(0,_.vPA)([]);constructor(){(0,_.WQX)(yt.l).load(dt.Y),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,be.Z)(null)).subscribe(()=>this._init())}ngOnChanges(Ce){const xt=Ce.comparisonStart||Ce.comparisonEnd;xt&&!xt.firstChange&&this._setRanges(this.selected),Ce.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Ce){const xt=Ce.value,vt=this._getDateFromDayOfMonth(xt);let rn,Wn;this._selected instanceof kt?(rn=this._getDateInCurrentMonth(this._selected.start),Wn=this._getDateInCurrentMonth(this._selected.end)):rn=Wn=this._getDateInCurrentMonth(this._selected),(rn!==xt||Wn!==xt)&&this.selectedChange.emit(vt),this._userSelection.emit({value:vt,event:Ce.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(Ce){const vt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Ce.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Ce){const xt=this._activeDate,vt=this._isRtl();switch(Ce.keyCode){case ce.UQ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,vt?1:-1);break;case ce.LE:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,vt?-1:1);break;case ce.i7:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case ce.n6:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case ce.yZ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case ce.Kp:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case ce.w_:this.activeDate=Ce.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case ce.dB:this.activeDate=Ce.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case ce.Fm:case ce.t6:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Ce.preventDefault());case ce._f:return void(null!=this._previewEnd()&&!(0,ge.rp)(Ce)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:Ce}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Ce})),Ce.preventDefault(),Ce.stopPropagation()));default:return}this._dateAdapter.compareDate(xt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Ce.preventDefault()}_handleCalendarBodyKeyup(Ce){(Ce.keyCode===ce.t6||Ce.keyCode===ce.Fm)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Ce}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let Ce=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((7+this._dateAdapter.getDayOfWeek(Ce)-this._dateAdapter.getFirstDayOfWeek())%7),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Ce){this._matCalendarBody._focusActiveCell(Ce)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Ce,value:xt}){if(this._rangeStrategy){const vt=xt?xt.rawValue:null,rn=this._rangeStrategy.createPreview(vt,this.selected,Ce);if(this._previewStart.set(this._getCellCompareValue(rn.start)),this._previewEnd.set(this._getCellCompareValue(rn.end)),this.activeDrag&&vt){const Wn=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,vt,Ce);Wn&&(this._previewStart.set(this._getCellCompareValue(Wn.start)),this._previewEnd.set(this._getCellCompareValue(Wn.end)))}}}_dragEnded(Ce){if(this.activeDrag)if(Ce.value){const xt=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,Ce.value,Ce.event);this.dragEnded.emit({value:xt??null,event:Ce.event})}else this.dragEnded.emit({value:null,event:Ce.event})}_getDateFromDayOfMonth(Ce){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Ce)}_initWeekdays(){const Ce=this._dateAdapter.getFirstDayOfWeek(),xt=this._dateAdapter.getDayOfWeekNames("narrow"),rn=this._dateAdapter.getDayOfWeekNames("long").map((Wn,Yi)=>({long:Wn,narrow:xt[Yi],id:en++}));this._weekdays.set(rn.slice(Ce).concat(rn.slice(0,Ce)))}_createWeekCells(){const Ce=this._dateAdapter.getNumDaysInMonth(this.activeDate),xt=this._dateAdapter.getDateNames(),vt=[[]];for(let rn=0,Wn=this._firstWeekOffset();rn=0)&&(!this.maxDate||this._dateAdapter.compareDate(Ce,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Ce))}_getDateInCurrentMonth(Ce){return Ce&&this._hasSameMonthAndYear(Ce,this.activeDate)?this._dateAdapter.getDate(Ce):null}_hasSameMonthAndYear(Ce,xt){return!(!Ce||!xt||this._dateAdapter.getMonth(Ce)!=this._dateAdapter.getMonth(xt)||this._dateAdapter.getYear(Ce)!=this._dateAdapter.getYear(xt))}_getCellCompareValue(Ce){if(Ce){const xt=this._dateAdapter.getYear(Ce),vt=this._dateAdapter.getMonth(Ce),rn=this._dateAdapter.getDate(Ce);return new Date(xt,vt,rn).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Ce){Ce instanceof kt?(this._rangeStart.set(this._getCellCompareValue(Ce.start)),this._rangeEnd.set(this._getCellCompareValue(Ce.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(Ce)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(Ce){return!this.dateFilter||this.dateFilter(Ce)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-month-view"]],viewQuery:function(xt,vt){if(1&xt&&T.GBs(fn,5),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt._matCalendarBody=rn.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[T.OA$],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(xt,vt){1&xt&&(T.j41(0,"table",0)(1,"thead",1)(2,"tr"),T.Z7z(3,Fe,5,2,"th",2,Vt),T.k0s(),T.j41(5,"tr",3),T.nrm(6,"th",4),T.k0s()(),T.j41(7,"tbody",5),T.bIt("selectedValueChange",function(Wn){return vt._dateSelected(Wn)})("activeDateChange",function(Wn){return vt._updateActiveDate(Wn)})("previewChange",function(Wn){return vt._previewChanged(Wn)})("dragStarted",function(Wn){return vt.dragStarted.emit(Wn)})("dragEnded",function(Wn){return vt._dragEnded(Wn)})("keyup",function(Wn){return vt._handleCalendarBodyKeyup(Wn)})("keydown",function(Wn){return vt._handleCalendarBodyKeydown(Wn)}),T.k0s()()),2&xt&&(T.R7$(3),T.Dyx(vt._weekdays()),T.R7$(4),T.Y8G("label",vt._monthLabel())("rows",vt._weeks())("todayValue",vt._todayDate())("startValue",vt._rangeStart())("endValue",vt._rangeEnd())("comparisonStart",vt._comparisonRangeStart())("comparisonEnd",vt._comparisonRangeEnd())("previewStart",vt._previewStart())("previewEnd",vt._previewEnd())("isRange",vt._isRange())("labelMinRequiredCells",3)("activeCell",vt._dateAdapter.getDate(vt.activeDate)-1)("startDateAccessibleName",vt.startDateAccessibleName)("endDateAccessibleName",vt.endDateAccessibleName))},dependencies:[fn],encapsulation:2,changeDetection:0})}return mn})(),ui=(()=>{class mn{_changeDetectorRef=(0,_.WQX)(P.gRc);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_rerenderSubscription=a.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(Ce){let xt=this._activeDate;const vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),gn(this._dateAdapter,xt,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce)),this._setSelectedYear(Ce)}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;selectedChange=new T.bkB;yearSelected=new T.bkB;activeDateChange=new T.bkB;_matCalendarBody;_years=(0,_.vPA)([]);_todayYear=(0,_.vPA)(0);_selectedYear=(0,_.vPA)(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,be.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));const xt=this._dateAdapter.getYear(this._activeDate)-zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),vt=[];for(let rn=0,Wn=[];rn<24;rn++)Wn.push(xt+rn),4==Wn.length&&(vt.push(Wn.map(Yi=>this._createCellForYear(Yi))),Wn=[]);this._years.set(vt),this._changeDetectorRef.markForCheck()}_yearSelected(Ce){const xt=Ce.value,vt=this._dateAdapter.createDate(xt,0,1),rn=this._getDateFromYear(xt);this.yearSelected.emit(vt),this.selectedChange.emit(rn)}_updateActiveDate(Ce){const vt=this._activeDate;this.activeDate=this._getDateFromYear(Ce.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Ce){const xt=this._activeDate,vt=this._isRtl();switch(Ce.keyCode){case ce.UQ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vt?1:-1);break;case ce.LE:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vt?-1:1);break;case ce.i7:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case ce.n6:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case ce.yZ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case ce.Kp:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case ce.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?-240:-24);break;case ce.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?240:24);break;case ce.Fm:case ce.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Ce.preventDefault()}_handleCalendarBodyKeyup(Ce){(Ce.keyCode===ce.t6||Ce.keyCode===ce.Fm)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Ce}),this._selectionKeyPressed=!1)}_getActiveCell(){return zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Ce){const xt=this._dateAdapter.getMonth(this.activeDate),vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Ce,xt,1));return this._dateAdapter.createDate(Ce,xt,Math.min(this._dateAdapter.getDate(this.activeDate),vt))}_createCellForYear(Ce){const xt=this._dateAdapter.createDate(Ce,0,1),vt=this._dateAdapter.getYearName(xt),rn=this.dateClass?this.dateClass(xt,"multi-year"):void 0;return new We(Ce,vt,vt,this._shouldEnableYear(Ce),rn)}_shouldEnableYear(Ce){if(null==Ce||this.maxDate&&Ce>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Ce{class mn{_changeDetectorRef=(0,_.WQX)(P.gRc);_dateFormats=(0,_.WQX)(R.de,{optional:!0});_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_rerenderSubscription=a.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(Ce){let xt=this._activeDate;const vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),this._dateAdapter.getYear(xt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce)),this._setSelectedMonth(Ce)}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;selectedChange=new T.bkB;monthSelected=new T.bkB;activeDateChange=new T.bkB;_matCalendarBody;_months=(0,_.vPA)([]);_yearLabel=(0,_.vPA)("");_todayMonth=(0,_.vPA)(null);_selectedMonth=(0,_.vPA)(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,be.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Ce){const xt=Ce.value,vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),xt,1);this.monthSelected.emit(vt);const rn=this._getDateFromMonth(xt);this.selectedChange.emit(rn)}_updateActiveDate(Ce){const vt=this._activeDate;this.activeDate=this._getDateFromMonth(Ce.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Ce){const xt=this._activeDate,vt=this._isRtl();switch(Ce.keyCode){case ce.UQ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,vt?1:-1);break;case ce.LE:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,vt?-1:1);break;case ce.i7:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case ce.n6:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case ce.yZ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case ce.Kp:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case ce.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?-10:-1);break;case ce.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?10:1);break;case ce.Fm:case ce.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Ce.preventDefault()}_handleCalendarBodyKeyup(Ce){(Ce.keyCode===ce.t6||Ce.keyCode===ce.Fm)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Ce}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let Ce=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(xt=>xt.map(vt=>this._createCellForMonth(vt,Ce[vt])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Ce){return Ce&&this._dateAdapter.getYear(Ce)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Ce):null}_getDateFromMonth(Ce){const xt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ce,1),vt=this._dateAdapter.getNumDaysInMonth(xt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ce,Math.min(this._dateAdapter.getDate(this.activeDate),vt))}_createCellForMonth(Ce,xt){const vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ce,1),rn=this._dateAdapter.format(vt,this._dateFormats.display.monthYearA11yLabel),Wn=this.dateClass?this.dateClass(vt,"year"):void 0;return new We(Ce,xt.toLocaleUpperCase(),rn,this._shouldEnableMonth(Ce),Wn)}_shouldEnableMonth(Ce){const xt=this._dateAdapter.getYear(this.activeDate);if(null==Ce||this._isYearAndMonthAfterMaxDate(xt,Ce)||this._isYearAndMonthBeforeMinDate(xt,Ce))return!1;if(!this.dateFilter)return!0;for(let rn=this._dateAdapter.createDate(xt,Ce,1);this._dateAdapter.getMonth(rn)==Ce;rn=this._dateAdapter.addCalendarDays(rn,1))if(this.dateFilter(rn))return!0;return!1}_isYearAndMonthAfterMaxDate(Ce,xt){if(this.maxDate){const vt=this._dateAdapter.getYear(this.maxDate),rn=this._dateAdapter.getMonth(this.maxDate);return Ce>vt||Ce===vt&&xt>rn}return!1}_isYearAndMonthBeforeMinDate(Ce,xt){if(this.minDate){const vt=this._dateAdapter.getYear(this.minDate),rn=this._dateAdapter.getMonth(this.minDate);return Ce{class mn{_intl=(0,_.WQX)(Wt);calendar=(0,_.WQX)(aa);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dateFormats=(0,_.WQX)(R.de,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){(0,_.WQX)(yt.l).load(dt.Y);const Ce=(0,_.WQX)(P.gRc);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),Ce.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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.nextEnabled()&&(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)}_updateLabels(){const Ce=this.calendar,xt=this._intl,vt=this._dateAdapter;"month"===Ce.currentView?(this._periodButtonText=vt.format(Ce.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=vt.format(Ce.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=xt.switchToMultiYearViewLabel,this._prevButtonLabel=xt.prevMonthLabel,this._nextButtonLabel=xt.nextMonthLabel):"year"===Ce.currentView?(this._periodButtonText=vt.getYearName(Ce.activeDate),this._periodButtonDescription=vt.getYearName(Ce.activeDate),this._periodButtonLabel=xt.switchToMonthViewLabel,this._prevButtonLabel=xt.prevYearLabel,this._nextButtonLabel=xt.nextYearLabel):(this._periodButtonText=xt.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=xt.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=xt.switchToMonthViewLabel,this._prevButtonLabel=xt.prevMultiYearLabel,this._nextButtonLabel=xt.nextMultiYearLabel)}_isSameView(Ce,xt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Ce)==this._dateAdapter.getYear(xt)&&this._dateAdapter.getMonth(Ce)==this._dateAdapter.getMonth(xt):"year"==this.calendar.currentView?this._dateAdapter.getYear(Ce)==this._dateAdapter.getYear(xt):gn(this._dateAdapter,Ce,xt,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const xt=this._dateAdapter.getYear(this.calendar.activeDate)-zn(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),vt=xt+24-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(xt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(vt,0,1))]}_periodButtonLabelId=(0,_.WQX)(re.g).getId("mat-calendar-period-label-");static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Pe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(xt,vt){1&xt&&(T.NAR(),T.j41(0,"div",0)(1,"div",1)(2,"span",2),T.EFF(3),T.k0s(),T.j41(4,"button",3),T.bIt("click",function(){return vt.currentPeriodClicked()}),T.j41(5,"span",4),T.EFF(6),T.k0s(),_.qSk(),T.j41(7,"svg",5),T.nrm(8,"polygon",6),T.k0s()(),_.joV(),T.nrm(9,"div",7),T.SdG(10),T.j41(11,"button",8),T.bIt("click",function(){return vt.previousClicked()}),_.qSk(),T.j41(12,"svg",9),T.nrm(13,"path",10),T.k0s()(),_.joV(),T.j41(14,"button",11),T.bIt("click",function(){return vt.nextClicked()}),_.qSk(),T.j41(15,"svg",9),T.nrm(16,"path",12),T.k0s()()()()),2&xt&&(T.R7$(2),T.Y8G("id",vt._periodButtonLabelId),T.R7$(),T.JRh(vt.periodButtonDescription),T.R7$(),T.BMQ("aria-label",vt.periodButtonLabel)("aria-describedby",vt._periodButtonLabelId),T.R7$(2),T.JRh(vt.periodButtonText),T.R7$(),T.AVh("mat-calendar-invert","month"!==vt.calendar.currentView),T.R7$(4),T.Y8G("disabled",!vt.previousEnabled())("matTooltip",vt.prevButtonLabel),T.BMQ("aria-label",vt.prevButtonLabel),T.R7$(3),T.Y8G("disabled",!vt.nextEnabled())("matTooltip",vt.nextButtonLabel),T.BMQ("aria-label",vt.nextButtonLabel))},dependencies:[rt.$z,Mn.iY,qt.oV],encapsulation:2,changeDetection:0})}return mn})(),aa=(()=>{class mn{_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dateFormats=(0,_.WQX)(R.de,{optional:!0});_changeDetectorRef=(0,_.WQX)(P.gRc);_elementRef=(0,_.WQX)(T.aKT);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(Ce){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_startAt;startView="month";get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new T.bkB;yearSelected=new T.bkB;monthSelected=new T.bkB;viewChanged=new T.bkB(!0);_userSelection=new T.bkB;_userDragDrop=new T.bkB;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(Ce){this._clampedActiveDate=this._dateAdapter.clampDate(Ce,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(Ce){const xt=this._currentView!==Ce?Ce:null;this._currentView=Ce,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),xt&&(this.stateChanges.next(),this.viewChanged.emit(xt))}_currentView;_activeDrag=null;stateChanges=new C.B;constructor(){this._intlChanges=(0,_.WQX)(Wt).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new oe.A8(this.headerComponent||Xn),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(Ce){const xt=Ce.minDate&&!this._dateAdapter.sameDate(Ce.minDate.previousValue,Ce.minDate.currentValue)?Ce.minDate:void 0,vt=Ce.maxDate&&!this._dateAdapter.sameDate(Ce.maxDate.previousValue,Ce.maxDate.currentValue)?Ce.maxDate:void 0,rn=xt||vt||Ce.dateFilter;if(rn&&!rn.firstChange){const Wn=this._getCurrentViewComponent();Wn&&(this._elementRef.nativeElement.contains((0,ve.vc)())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),Wn._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Ce){const xt=Ce.value;(this.selected instanceof kt||xt&&!this._dateAdapter.sameDate(xt,this.selected))&&this.selectedChange.emit(xt),this._userSelection.emit(Ce)}_yearSelectedInMultiYearView(Ce){this.yearSelected.emit(Ce)}_monthSelectedInYearView(Ce){this.monthSelected.emit(Ce)}_goToDateInView(Ce,xt){this.activeDate=Ce,this.currentView=xt}_dragStarted(Ce){this._activeDrag=Ce}_dragEnded(Ce){this._activeDrag&&(Ce.value&&this._userDragDrop.emit(Ce),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-calendar"]],viewQuery:function(xt,vt){if(1&xt&&(T.GBs(Nn,5),T.GBs(ci,5),T.GBs(ui,5)),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt.monthView=rn.first),T.mGM(rn=T.lsd())&&(vt.yearView=rn.first),T.mGM(rn=T.lsd())&&(vt.multiYearView=rn.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",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[T.Jv_([Yt]),T.OA$],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(xt,vt){if(1&xt&&(T.DNE(0,Ue,0,0,"ng-template",0),T.j41(1,"div",1),T.nVh(2,Qe,1,11,"mat-month-view",2)(3,Ie,1,6,"mat-year-view",3)(4,le,1,6,"mat-multi-year-view",3),T.k0s()),2&xt){let rn;T.Y8G("cdkPortalOutlet",vt._calendarHeaderPortal),T.R7$(2),T.vxM("month"===(rn=vt.currentView)?2:"year"===rn?3:"multi-year"===rn?4:-1)}},dependencies:[oe.I3,U.vR,Nn,ci,ui],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.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;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return mn})();const sa=new _.nKC("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const mn=(0,_.WQX)(_.zZn);return()=>(0,Re.RH)(mn)}}),ua={provide:sa,deps:[],useFactory:function ma(mn){const li=(0,_.WQX)(_.zZn);return()=>(0,Re.RH)(li)}};let dn=(()=>{class mn{_elementRef=(0,_.WQX)(T.aKT);_animationsDisabled=(0,S.Rc)();_changeDetectorRef=(0,_.WQX)(P.gRc);_globalModel=(0,_.WQX)(Ot);_dateAdapter=(0,_.WQX)(R.MJ);_ngZone=(0,_.WQX)(T.SKi);_rangeSelectionStrategy=(0,_.WQX)(oi,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new C.B;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if((0,_.WQX)(yt.l).load(dt.Y),this._closeButtonText=(0,_.WQX)(Wt).closeCalendarLabel,!this._animationsDisabled){const Ce=this._elementRef.nativeElement,xt=(0,_.WQX)(T.sFG);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[xt.listen(Ce,"animationstart",this._handleAnimationEvent),xt.listen(Ce,"animationend",this._handleAnimationEvent),xt.listen(Ce,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(Ce=>Ce()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(Ce){const xt=this._model.selection,vt=Ce.value,rn=xt instanceof kt;if(rn&&this._rangeSelectionStrategy){const Wn=this._rangeSelectionStrategy.selectionFinished(vt,xt,Ce.event);this._model.updateSelection(Wn,this)}else vt&&(rn||!this._dateAdapter.sameDate(vt,xt))&&this._model.add(vt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(Ce){this._model.updateSelection(Ce.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=Ce=>{const xt=this._elementRef.nativeElement;Ce.target!==xt||!Ce.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating="animationstart"===Ce.type,xt.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(Ce,xt){this._model=Ce?this._globalModel.clone():this._globalModel,this._actionsPortal=Ce,xt&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-datepicker-content"]],viewQuery:function(xt,vt){if(1&xt&&T.GBs(aa,5),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt._calendar=rn.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(xt,vt){2&xt&&(T.HbH(vt.color?"mat-"+vt.color:""),T.AVh("mat-datepicker-content-touch",vt.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!vt._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(xt,vt){1&xt&&(T.j41(0,"div",0)(1,"mat-calendar",1),T.bIt("yearSelected",function(Wn){return vt.datepicker._selectYear(Wn)})("monthSelected",function(Wn){return vt.datepicker._selectMonth(Wn)})("viewChanged",function(Wn){return vt.datepicker._viewChanged(Wn)})("_userSelection",function(Wn){return vt._handleUserSelection(Wn)})("_userDragDrop",function(Wn){return vt._handleUserDragDrop(Wn)}),T.k0s(),T.DNE(2,Ne,0,0,"ng-template",2),T.j41(3,"button",3),T.bIt("focus",function(){return vt._closeButtonFocused=!0})("blur",function(){return vt._closeButtonFocused=!1})("click",function(){return vt.datepicker.close()}),T.EFF(4),T.k0s()()),2&xt&&(T.AVh("mat-datepicker-content-container-with-custom-header",vt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",vt._actionsPortal),T.BMQ("aria-modal",!0)("aria-labelledby",vt._dialogLabelId??void 0),T.R7$(),T.HbH(vt.datepicker.panelClass),T.Y8G("id",vt.datepicker.id)("startAt",vt.datepicker.startAt)("startView",vt.datepicker.startView)("minDate",vt.datepicker._getMinDate())("maxDate",vt.datepicker._getMaxDate())("dateFilter",vt.datepicker._getDateFilter())("headerComponent",vt.datepicker.calendarHeaderComponent)("selected",vt._getSelected())("dateClass",vt.datepicker.dateClass)("comparisonStart",vt.comparisonStart)("comparisonEnd",vt.comparisonEnd)("startDateAccessibleName",vt.startDateAccessibleName)("endDateAccessibleName",vt.endDateAccessibleName),T.R7$(),T.Y8G("cdkPortalOutlet",vt._actionsPortal),T.R7$(),T.AVh("cdk-visually-hidden",!vt._closeButtonFocused),T.Y8G("color",vt.color||"primary"),T.R7$(),T.JRh(vt._closeButtonText))},dependencies:[fe.kB,aa,oe.I3,rt.$z],styles:["@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.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}.mat-datepicker-content-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;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.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}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@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,changeDetection:0})}return mn})(),Ln=(()=>{class mn{_injector=(0,_.WQX)(_.zZn);_viewContainerRef=(0,_.WQX)(T.c1b);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_model=(0,_.WQX)(Ot);_animationsDisabled=(0,S.Rc)();_scrollStrategy=(0,_.WQX)(sa);_inputStateChanges=a.yU.EMPTY;_document=(0,_.WQX)(_.qQL);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Ce){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Ce){this._color=Ce}_color;touchUi=!1;get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Ce){Ce!==this._disabled&&(this._disabled=Ce,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new T.bkB;monthSelected=new T.bkB;viewChanged=new T.bkB(!0);dateClass;openedStream=new T.bkB;closedStream=new T.bkB;get panelClass(){return this._panelClass}set panelClass(Ce){this._panelClass=(0,Oe.cc)(Ce)}_panelClass;get opened(){return this._opened}set opened(Ce){Ce?this.open():this.close()}_opened=!1;id=(0,_.WQX)(re.g).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new C.B;_changeDetectorRef=(0,_.WQX)(P.gRc);constructor(){this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(Ce){const xt=Ce.xPosition||Ce.yPosition;if(xt&&!xt.firstChange&&this._overlayRef){const vt=this._overlayRef.getConfig().positionStrategy;vt instanceof Re.rW&&(this._setConnectedPositions(vt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(Ce){this._model.add(Ce)}_selectYear(Ce){this.yearSelected.emit(Ce)}_selectMonth(Ce){this.monthSelected.emit(Ce)}_viewChanged(Ce){this.viewChanged.emit(Ce)}registerInput(Ce){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Ce,this._inputStateChanges=Ce.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Ce){this._actionsPortal=Ce,this._componentRef?.instance._assignActions(Ce,!0)}removeActions(Ce){Ce===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,ve.vc)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const Ce=this.restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,xt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:vt,location:rn}=this._componentRef;vt._animationDone.pipe((0,nt.s)(1)).subscribe(()=>{const Wn=this._document.activeElement;Ce&&(!Wn||Wn===this._document.activeElement||rn.nativeElement.contains(Wn))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),vt._startExitAnimation()}Ce?setTimeout(xt):xt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(Ce){Ce.datepicker=this,Ce.color=this.color,Ce._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Ce._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Ce=this.touchUi,xt=new oe.A8(dn,this._viewContainerRef),vt=this._overlayRef=(0,Re.Y$)(this._injector,new Re.rR({positionStrategy:Ce?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Ce?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:Ce?(0,Re.gA)(this._injector):this._scrollStrategy(),panelClass:"mat-datepicker-"+(Ce?"dialog":"popup"),disableAnimations:this._animationsDisabled}));this._getCloseStream(vt).subscribe(rn=>{rn&&rn.preventDefault(),this.close()}),vt.keydownEvents().subscribe(rn=>{const Wn=rn.keyCode;(Wn===ce.i7||Wn===ce.n6||Wn===ce.UQ||Wn===ce.LE||Wn===ce.w_||Wn===ce.dB)&&rn.preventDefault()}),this._componentRef=vt.attach(xt),this._forwardContentValues(this._componentRef.instance),Ce||(0,T.mal)(()=>{vt.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return(0,Re.uA)(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){const Ce=(0,Re.$M)(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Ce)}_setConnectedPositions(Ce){const xt="end"===this.xPosition?"end":"start",vt="start"===xt?"end":"start",rn="above"===this.yPosition?"bottom":"top",Wn="top"===rn?"bottom":"top";return Ce.withPositions([{originX:xt,originY:Wn,overlayX:xt,overlayY:rn},{originX:xt,originY:rn,overlayX:xt,overlayY:Wn},{originX:vt,originY:Wn,overlayX:vt,overlayY:rn},{originX:vt,originY:rn,overlayX:vt,overlayY:Wn}])}_getCloseStream(Ce){const xt=["ctrlKey","shiftKey","metaKey"];return(0,x.h)(Ce.backdropClick(),Ce.detachments(),Ce.keydownEvents().pipe((0,Se.p)(vt=>vt.keyCode===ce._f&&!(0,ge.rp)(vt)||this.datepickerInput&&(0,ge.rp)(vt,"altKey")&&vt.keyCode===ce.i7&&xt.every(rn=>!(0,ge.rp)(vt,rn)))))}static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",P.L39],disabled:[2,"disabled","disabled",P.L39],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",P.L39],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",P.L39]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[T.OA$]})}return mn})(),Zn=(()=>{class mn extends Ln{static \u0275fac=(()=>{let Ce;return function(vt){return(Ce||(Ce=T.xGo(mn)))(vt||mn)}})();static \u0275cmp=T.VBU({type:mn,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[T.Jv_([Yt,{provide:Ln,useExisting:mn}]),T.Vt3],decls:0,vars:0,template:function(xt,vt){},encapsulation:2,changeDetection:0})}return mn})();class hi{target;targetElement;value;constructor(li,Ce){this.target=li,this.targetElement=Ce,this.value=this.target.value}}let Gn=(()=>{class mn{_elementRef=(0,_.WQX)(T.aKT);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dateFormats=(0,_.WQX)(R.de,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Ce){this._assignValueProgrammatically(Ce)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Ce){const xt=Ce,vt=this._elementRef.nativeElement;this._disabled!==xt&&(this._disabled=xt,this.stateChanges.next(void 0)),xt&&this._isInitialized&&vt.blur&&vt.blur()}_disabled;dateChange=new T.bkB;dateInput=new T.bkB;stateChanges=new C.B;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=a.yU.EMPTY;_localeSubscription=a.yU.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=Ce=>{const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce.value));return!xt||this._matchesFilter(xt)?null:{matDatepickerFilter:!0}};_minValidator=Ce=>{const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce.value)),vt=this._getMinDate();return!vt||!xt||this._dateAdapter.compareDate(vt,xt)<=0?null:{matDatepickerMin:{min:vt,actual:xt}}};_maxValidator=Ce=>{const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce.value)),vt=this._getMaxDate();return!vt||!xt||this._dateAdapter.compareDate(vt,xt)>=0?null:{matDatepickerMax:{max:vt,actual:xt}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Ce){this._model=Ce,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(xt=>{if(this._shouldHandleChangeEvent(xt)){const vt=this._getValueFromModel(xt.selection);this._lastValueValid=this._isValidValue(vt),this._cvaOnChange(vt),this._onTouched(),this._formatValue(vt),this.dateInput.emit(new hi(this,this._elementRef.nativeElement)),this.dateChange.emit(new hi(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Ce){(function Jn(mn,li){const Ce=Object.keys(mn);for(let xt of Ce){const{previousValue:vt,currentValue:rn}=mn[xt];if(!li.isDateInstance(vt)||!li.isDateInstance(rn))return!0;if(!li.sameDate(vt,rn))return!0}return!1})(Ce,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Ce){this._validatorOnChange=Ce}validate(Ce){return this._validator?this._validator(Ce):null}writeValue(Ce){this._assignValueProgrammatically(Ce)}registerOnChange(Ce){this._cvaOnChange=Ce}registerOnTouched(Ce){this._onTouched=Ce}setDisabledState(Ce){this.disabled=Ce}_onKeydown(Ce){(0,ge.rp)(Ce,"altKey")&&Ce.keyCode===ce.n6&&["ctrlKey","shiftKey","metaKey"].every(rn=>!(0,ge.rp)(Ce,rn))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Ce.preventDefault())}_onInput(Ce){const xt=Ce.target.value,vt=this._lastValueValid;let rn=this._dateAdapter.parse(xt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(rn),rn=this._dateAdapter.getValidDateOrNull(rn);const Wn=!this._dateAdapter.sameDate(rn,this.value);!rn||Wn?this._cvaOnChange(rn):(xt&&!this.value&&this._cvaOnChange(rn),vt!==this._lastValueValid&&this._validatorOnChange()),Wn&&(this._assignValue(rn),this.dateInput.emit(new hi(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new hi(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Ce){this._elementRef.nativeElement.value=null!=Ce?this._dateAdapter.format(Ce,this._dateFormats.display.dateInput):""}_assignValue(Ce){this._model?(this._assignValueToModel(Ce),this._pendingValue=null):this._pendingValue=Ce}_isValidValue(Ce){return!Ce||this._dateAdapter.isValid(Ce)}_parentDisabled(){return!1}_assignValueProgrammatically(Ce){Ce=this._dateAdapter.deserialize(Ce),this._lastValueValid=this._isValidValue(Ce),Ce=this._dateAdapter.getValidDateOrNull(Ce),this._assignValue(Ce),this._formatValue(Ce)}_matchesFilter(Ce){const xt=this._getDateFilter();return!xt||xt(Ce)}static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,inputs:{value:"value",disabled:[2,"disabled","disabled",P.L39]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[T.OA$]})}return mn})();const Bi={provide:Xt.kq,useExisting:(0,_.Rfq)(()=>Sa),multi:!0},_a={provide:Xt.cz,useExisting:(0,_.Rfq)(()=>Sa),multi:!0};let Sa=(()=>{class mn extends Gn{_formField=(0,_.WQX)(ae.xb,{optional:!0});_closedSubscription=a.yU.EMPTY;_openedSubscription=a.yU.EMPTY;set matDatepicker(Ce){Ce&&(this._datepicker=Ce,this._ariaOwns.set(Ce.opened?Ce.id:null),this._closedSubscription=Ce.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=Ce.openedStream.subscribe(()=>{this._ariaOwns.set(Ce.id)}),this._registerModel(Ce.registerInput(this)))}_datepicker;_ariaOwns=(0,_.vPA)(null);get min(){return this._min}set min(Ce){const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce));this._dateAdapter.sameDate(xt,this._min)||(this._min=xt,this._validatorOnChange())}_min;get max(){return this._max}set max(Ce){const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce));this._dateAdapter.sameDate(xt,this._max)||(this._max=xt,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(Ce){const xt=this._matchesFilter(this.value);this._dateFilter=Ce,this._matchesFilter(this.value)!==xt&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Xt.k0.compose(super._getValidators())}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(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(Ce){return Ce}_assignValueToModel(Ce){this._model&&this._model.updateSelection(Ce,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Ce){return Ce.source!==this}static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(xt,vt){1&xt&&T.bIt("input",function(Wn){return vt._onInput(Wn)})("change",function(){return vt._onChange()})("blur",function(){return vt._onBlur()})("keydown",function(Wn){return vt._onKeydown(Wn)}),2&xt&&(T.Avn("disabled",vt.disabled),T.BMQ("aria-haspopup",vt._datepicker?"dialog":null)("aria-owns",vt._ariaOwns())("min",vt.min?vt._dateAdapter.toIso8601(vt.min):null)("max",vt.max?vt._dateAdapter.toIso8601(vt.max):null)("data-mat-calendar",vt._datepicker?vt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[T.Jv_([Bi,_a,{provide:de.O,useExisting:mn}]),T.Vt3]})}return mn})(),un=(()=>{class mn{static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,selectors:[["","matDatepickerToggleIcon",""]]})}return mn})(),Sn=(()=>{class mn{_intl=(0,_.WQX)(Wt);_changeDetectorRef=(0,_.WQX)(P.gRc);_stateChanges=a.yU.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Ce){this._disabled=Ce}_disabled;disableRipple;_customIcon;_button;constructor(){const Ce=(0,_.WQX)(new P.ES_("tabindex"),{optional:!0}),xt=Number(Ce);this.tabIndex=xt||0===xt?xt:null}ngOnChanges(Ce){Ce.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Ce){this.datepicker&&!this.disabled&&(this.datepicker.open(),Ce.stopPropagation())}_watchStateChanges(){const Ce=this.datepicker?this.datepicker.stateChanges:(0,Y.of)(),xt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Y.of)(),vt=this.datepicker?(0,x.h)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Y.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,x.h)(this._intl.changes,Ce,xt,vt).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-datepicker-toggle"]],contentQueries:function(xt,vt,rn){if(1&xt&&T.wni(rn,un,5),2&xt){let Wn;T.mGM(Wn=T.lsd())&&(vt._customIcon=Wn.first)}},viewQuery:function(xt,vt){if(1&xt&&T.GBs(ze,5),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt._button=rn.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(xt,vt){1&xt&&T.bIt("click",function(Wn){return vt._open(Wn)}),2&xt&&(T.BMQ("tabindex",null)("data-mat-calendar",vt.datepicker?vt.datepicker.id:null),T.AVh("mat-datepicker-toggle-active",vt.datepicker&&vt.datepicker.opened)("mat-accent",vt.datepicker&&"accent"===vt.datepicker.color)("mat-warn",vt.datepicker&&"warn"===vt.datepicker.color))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",P.L39],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[T.OA$],ngContentSelectors:gt,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",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(xt,vt){1&xt&&(T.NAR(Je),T.j41(0,"button",1,0),T.nVh(2,zt,2,0,":svg:svg",2),T.SdG(3),T.k0s()),2&xt&&(T.Y8G("tabIndex",vt.disabled?-1:vt.tabIndex)("disabled",vt.disabled)("disableRipple",vt.disableRipple),T.BMQ("aria-haspopup",vt.datepicker?"dialog":null)("aria-label",vt.ariaLabel||vt._intl.openCalendarLabel)("aria-expanded",vt.datepicker?vt.datepicker.opened:null),T.R7$(2),T.vxM(vt._customIcon?-1:2))},dependencies:[Mn.iY],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}\n"],encapsulation:2,changeDetection:0})}return mn})(),Oi=(()=>{class mn{static \u0275fac=function(xt){return new(xt||mn)};static \u0275mod=T.$C({type:mn});static \u0275inj=_.G2t({providers:[Wt,ua],imports:[rt.Hl,Re.z_,fe.Pd,oe.jc,Le.y,dn,Sn,Xn,me.Gj]})}return mn})()},51585(ke,q,l){"use strict";l.d(q,{Vh:()=>ve,di:()=>oe,bZ:()=>be,tx:()=>nt,hM:()=>qt,CP:()=>Re});var i=l(73664),g=l(2615),p=l(17705),D=l(21413),o=l(59030),e=l(76939),A=l(17094),h=l(76838),d=l(39842),w=l(44522),f=l(10438),F=l(67336),M=l(99172),K=l(96697),j=l(49338),Z=l(89726),ee=l(61577);function V(S,Xt){}class Q{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext}let ie=(()=>{class S extends e.lb{_elementRef=(0,g.WQX)(i.aKT);_focusTrapFactory=(0,g.WQX)(A.GX);_config;_interactivityChecker=(0,g.WQX)(A.Z7);_ngZone=(0,g.WQX)(i.SKi);_focusMonitor=(0,g.WQX)(h.FN);_renderer=(0,g.WQX)(i.sFG);_changeDetectorRef=(0,g.WQX)(p.gRc);_injector=(0,g.WQX)(g.zZn);_platform=(0,g.WQX)(d.O);_document=(0,g.WQX)(g.qQL);_portalOutlet;_focusTrapped=new D.B;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=(0,g.WQX)(Q,{optional:!0})||new Q,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(de){this._ariaLabelledByQueue.push(de),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(de){const ae=this._ariaLabelledByQueue.indexOf(de);ae>-1&&(this._ariaLabelledByQueue.splice(ae,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(de){this._portalOutlet.hasAttached();const ae=this._portalOutlet.attachComponentPortal(de);return this._contentAttached(),ae}attachTemplatePortal(de){this._portalOutlet.hasAttached();const ae=this._portalOutlet.attachTemplatePortal(de);return this._contentAttached(),ae}attachDomPortal=de=>{this._portalOutlet.hasAttached();const ae=this._portalOutlet.attachDomPortal(de);return this._contentAttached(),ae};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(de,ae){this._interactivityChecker.isFocusable(de)||(de.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const me=()=>{Le(),et(),de.removeAttribute("tabindex")},Le=this._renderer.listen(de,"blur",me),et=this._renderer.listen(de,"mousedown",me)})),de.focus(ae)}_focusByCssSelector(de,ae){let me=this._elementRef.nativeElement.querySelector(de);me&&this._forceFocus(me,ae)}_trapFocus(de){this._isDestroyed||(0,i.mal)(()=>{const ae=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ae.focus(de);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(de)||this._focusDialogContainer(de);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',de);break;default:this._focusByCssSelector(this._config.autoFocus,de)}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){const de=this._config.restoreFocus;let ae=null;if("string"==typeof de?ae=this._document.querySelector(de):"boolean"==typeof de?ae=de?this._elementFocusedBeforeDialogWasOpened:null:de&&(ae=de),this._config.restoreFocus&&ae&&"function"==typeof ae.focus){const me=(0,w.vc)(),Le=this._elementRef.nativeElement;(!me||me===this._document.body||me===Le||Le.contains(me))&&(this._focusMonitor?(this._focusMonitor.focusVia(ae,this._closeInteractionType),this._closeInteractionType=null):ae.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(de){this._elementRef.nativeElement.focus?.(de)}_containsFocus(){const de=this._elementRef.nativeElement,ae=(0,w.vc)();return de===ae||de.contains(ae)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,w.vc)()))}static \u0275fac=function(ae){return new(ae||S)};static \u0275cmp=i.VBU({type:S,selectors:[["cdk-dialog-container"]],viewQuery:function(ae,me){if(1&ae&&i.GBs(e.I3,7),2&ae){let Le;i.mGM(Le=i.lsd())&&(me._portalOutlet=Le.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(ae,me){2&ae&&i.BMQ("id",me._config.id||null)("role",me._config.role)("aria-modal",me._config.ariaModal)("aria-labelledby",me._config.ariaLabel?null:me._ariaLabelledByQueue[0])("aria-label",me._config.ariaLabel)("aria-describedby",me._config.ariaDescribedBy||null)},features:[i.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ae,me){1&ae&&i.DNE(0,V,0,0,"ng-template",0)},dependencies:[e.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2})}return S})();class _e{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new D.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(Xt,de){this.overlayRef=Xt,this.config=de,this.disableClose=de.disableClose,this.backdropClick=Xt.backdropClick(),this.keydownEvents=Xt.keydownEvents(),this.outsidePointerEvents=Xt.outsidePointerEvents(),this.id=de.id,this.keydownEvents.subscribe(ae=>{ae.keyCode===f._f&&!this.disableClose&&!(0,F.rp)(ae)&&(ae.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=Xt.detachments().subscribe(()=>{!1!==de.closeOnOverlayDetachments&&this.close()})}close(Xt,de){if(this._canClose(Xt)){const ae=this.closed;this.containerInstance._closeInteractionType=de?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),ae.next(Xt),ae.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Xt="",de=""){return this.overlayRef.updateSize({width:Xt,height:de}),this}addPanelClass(Xt){return this.overlayRef.addPanelClass(Xt),this}removePanelClass(Xt){return this.overlayRef.removePanelClass(Xt),this}_canClose(Xt){const de=this.config;return!!this.containerInstance&&(!de.closePredicate||de.closePredicate(Xt,de,this.componentInstance))}}const ye=new g.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const S=(0,g.WQX)(g.zZn);return()=>(0,j.gA)(S)}}),se=new g.nKC("DialogData"),pe=new g.nKC("DefaultDialogConfig");function Ee(S){const Xt=(0,g.vPA)(S),de=new i.bkB;return{valueSignal:Xt,get value(){return Xt()},change:de,ngOnDestroy(){de.complete()}}}let L=(()=>{class S{_injector=(0,g.WQX)(g.zZn);_defaultOptions=(0,g.WQX)(pe,{optional:!0});_parentDialog=(0,g.WQX)(S,{optional:!0,skipSelf:!0});_overlayContainer=(0,g.WQX)(j.Sf);_idGenerator=(0,g.WQX)(Z.g);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new D.B;_afterOpenedAtThisLevel=new D.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,g.WQX)(ye);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,o.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.Z)(void 0)));constructor(){}open(de,ae){(ae={...this._defaultOptions||new Q,...ae}).id=ae.id||this._idGenerator.getId("cdk-dialog-"),ae.id&&this.getDialogById(ae.id);const Le=this._getOverlayConfig(ae),et=(0,j.Y$)(this._injector,Le),tn=new _e(et,ae),Vt=this._attachContainer(et,tn,ae);if(tn.containerInstance=Vt,!this.openDialogs.length){const hn=this._overlayContainer.getContainerElement();Vt._focusTrapped?Vt._focusTrapped.pipe((0,K.s)(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(hn)}):this._hideNonDialogContentFromAssistiveTechnology(hn)}return this._attachDialogContent(de,tn,Vt,ae),this.openDialogs.push(tn),tn.closed.subscribe(()=>this._removeOpenDialog(tn,!0)),this.afterOpened.next(tn),tn}closeAll(){t(this.openDialogs,de=>de.close())}getDialogById(de){return this.openDialogs.find(ae=>ae.id===de)}ngOnDestroy(){t(this._openDialogsAtThisLevel,de=>{!1===de.config.closeOnDestroy&&this._removeOpenDialog(de,!1)}),t(this._openDialogsAtThisLevel,de=>de.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(de){const ae=new j.rR({positionStrategy:de.positionStrategy||(0,j.uA)().centerHorizontally().centerVertically(),scrollStrategy:de.scrollStrategy||this._scrollStrategy(),panelClass:de.panelClass,hasBackdrop:de.hasBackdrop,direction:de.direction,minWidth:de.minWidth,minHeight:de.minHeight,maxWidth:de.maxWidth,maxHeight:de.maxHeight,width:de.width,height:de.height,disposeOnNavigation:de.closeOnNavigation,disableAnimations:de.disableAnimations});return de.backdropClass&&(ae.backdropClass=de.backdropClass),ae}_attachContainer(de,ae,me){const Le=me.injector||me.viewContainerRef?.injector,et=[{provide:Q,useValue:me},{provide:_e,useValue:ae},{provide:j.yY,useValue:de}];let tn;me.container?"function"==typeof me.container?tn=me.container:(tn=me.container.type,et.push(...me.container.providers(me))):tn=ie;const Vt=new e.A8(tn,me.viewContainerRef,g.zZn.create({parent:Le||this._injector,providers:et}));return de.attach(Vt).instance}_attachDialogContent(de,ae,me,Le){if(de instanceof i.C4Q){const et=this._createInjector(Le,ae,me,void 0);let tn={$implicit:Le.data,dialogRef:ae};Le.templateContext&&(tn={...tn,..."function"==typeof Le.templateContext?Le.templateContext():Le.templateContext}),me.attachTemplatePortal(new e.VA(de,null,tn,et))}else{const et=this._createInjector(Le,ae,me,this._injector),tn=me.attachComponentPortal(new e.A8(de,Le.viewContainerRef,et));ae.componentRef=tn,ae.componentInstance=tn.instance}}_createInjector(de,ae,me,Le){const et=de.injector||de.viewContainerRef?.injector,tn=[{provide:se,useValue:de.data},{provide:_e,useValue:ae}];return de.providers&&("function"==typeof de.providers?tn.push(...de.providers(ae,de,me)):tn.push(...de.providers)),de.direction&&(!et||!et.get(ee.dS,null,{optional:!0}))&&tn.push({provide:ee.dS,useValue:Ee(de.direction)}),g.zZn.create({parent:et||Le,providers:tn})}_removeOpenDialog(de,ae){const me=this.openDialogs.indexOf(de);me>-1&&(this.openDialogs.splice(me,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Le,et)=>{Le?et.setAttribute("aria-hidden",Le):et.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),ae&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(de){if(de.parentElement){const ae=de.parentElement.children;for(let me=ae.length-1;me>-1;me--){const Le=ae[me];Le!==de&&"SCRIPT"!==Le.nodeName&&"STYLE"!==Le.nodeName&&!Le.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Le,Le.getAttribute("aria-hidden")),Le.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const de=this._parentDialog;return de?de._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(ae){return new(ae||S)};static \u0275prov=g.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();function t(S,Xt){let de=S.length;for(;de--;)Xt(S[de])}let s=(()=>{class S{static \u0275fac=function(ae){return new(ae||S)};static \u0275mod=i.$C({type:S});static \u0275inj=g.G2t({providers:[L],imports:[j.z_,e.jc,A.Pd,e.jc]})}return S})();var m=l(67847),u=l(31804),_=l(57786),T=l(5964),C=(l(5718),l(22466));function a(S,Xt){}class x{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration}const Y="mdc-dialog--open",R="mdc-dialog--opening",U="mdc-dialog--closing";let he=(()=>{class S extends ie{_animationStateChanged=new i.bkB;_animationsEnabled=!(0,u.Rc)();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?ge(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?ge(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Oe,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(R,Y)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Y),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Y),this._animationsEnabled?(this._hostElement.style.setProperty(Oe,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(U)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(de){this._actionSectionCount+=de,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(R,U)}_waitForAnimationToComplete(de,ae){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(ae,de)}_requestAnimationFrame(de){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(de):de()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(de){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:de})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(de){const ae=super.attachComponentPortal(de);return ae.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),ae}static \u0275fac=(()=>{let de;return function(me){return(de||(de=i.xGo(S)))(me||S)}})();static \u0275cmp=i.VBU({type:S,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(ae,me){2&ae&&(i.Avn("id",me._config.id),i.BMQ("aria-modal",me._config.ariaModal)("role",me._config.role)("aria-labelledby",me._config.ariaLabel?null:me._ariaLabelledByQueue[0])("aria-label",me._config.ariaLabel)("aria-describedby",me._config.ariaDescribedBy||null),i.AVh("_mat-animation-noopable",!me._animationsEnabled)("mat-mdc-dialog-container-with-actions",me._actionSectionCount>0))},features:[i.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(ae,me){1&ae&&(i.j41(0,"div",0)(1,"div",1),i.DNE(2,a,0,0,"ng-template",2),i.k0s()())},dependencies:[e.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}\n'],encapsulation:2})}return S})();const Oe="--mat-dialog-transition-duration";function ge(S){return null==S?null:"number"==typeof S?S:S.endsWith("ms")?(0,m.OE)(S.substring(0,S.length-2)):S.endsWith("s")?1e3*(0,m.OE)(S.substring(0,S.length-1)):"0"===S?0:null}var ce=function(S){return S[S.OPEN=0]="OPEN",S[S.CLOSING=1]="CLOSING",S[S.CLOSED=2]="CLOSED",S}(ce||{});class Re{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new D.B;_beforeClosed=new D.B;_result;_closeFallbackTimeout;_state=ce.OPEN;_closeInteractionType;constructor(Xt,de,ae){this._ref=Xt,this._config=de,this._containerInstance=ae,this.disableClose=de.disableClose,this.id=Xt.id,Xt.addPanelClass("mat-mdc-dialog-panel"),ae._animationStateChanged.pipe((0,T.p)(me=>"opened"===me.state),(0,K.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ae._animationStateChanged.pipe((0,T.p)(me=>"closed"===me.state),(0,K.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Xt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,_.h)(this.backdropClick(),this.keydownEvents().pipe((0,T.p)(me=>me.keyCode===f._f&&!this.disableClose&&!(0,F.rp)(me)))).subscribe(me=>{this.disableClose||(me.preventDefault(),Me(this,"keydown"===me.type?"keyboard":"mouse"))})}close(Xt){const de=this._config.closePredicate;de&&!de(Xt,this._config,this.componentInstance)||(this._result=Xt,this._containerInstance._animationStateChanged.pipe((0,T.p)(ae=>"closing"===ae.state),(0,K.s)(1)).subscribe(ae=>{this._beforeClosed.next(Xt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ae.totalTime+100)}),this._state=ce.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Xt){let de=this._ref.config.positionStrategy;return Xt&&(Xt.left||Xt.right)?Xt.left?de.left(Xt.left):de.right(Xt.right):de.centerHorizontally(),Xt&&(Xt.top||Xt.bottom)?Xt.top?de.top(Xt.top):de.bottom(Xt.bottom):de.centerVertically(),this._ref.updatePosition(),this}updateSize(Xt="",de=""){return this._ref.updateSize(Xt,de),this}addPanelClass(Xt){return this._ref.addPanelClass(Xt),this}removePanelClass(Xt){return this._ref.removePanelClass(Xt),this}getState(){return this._state}_finishDialogClose(){this._state=ce.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Me(S,Xt,de){return S._closeInteractionType=Xt,S.close(de)}const ve=new g.nKC("MatMdcDialogData"),oe=new g.nKC("mat-mdc-dialog-default-options"),Se=new g.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const S=(0,g.WQX)(g.zZn);return()=>(0,j.gA)(S)}});let be=(()=>{class S{_defaultOptions=(0,g.WQX)(oe,{optional:!0});_scrollStrategy=(0,g.WQX)(Se);_parentDialog=(0,g.WQX)(S,{optional:!0,skipSelf:!0});_idGenerator=(0,g.WQX)(Z.g);_injector=(0,g.WQX)(g.zZn);_dialog=(0,g.WQX)(L);_animationsDisabled=(0,u.Rc)();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new D.B;_afterOpenedAtThisLevel=new D.B;dialogConfigClass=x;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const de=this._parentDialog;return de?de._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,o.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.Z)(void 0)));constructor(){this._dialogRefConstructor=Re,this._dialogContainerType=he,this._dialogDataToken=ve}open(de,ae){let me;(ae={...this._defaultOptions||new x,...ae}).id=ae.id||this._idGenerator.getId("mat-mdc-dialog-"),ae.scrollStrategy=ae.scrollStrategy||this._scrollStrategy();const Le=this._dialog.open(de,{...ae,positionStrategy:(0,j.uA)(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||"0"===ae.enterAnimationDuration?.toLocaleString()||"0"===ae.exitAnimationDuration?.toString(),container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:ae},{provide:Q,useValue:ae}]},templateContext:()=>({dialogRef:me}),providers:(et,tn,Vt)=>(me=new this._dialogRefConstructor(et,ae,Vt),me.updatePosition(ae?.position),[{provide:this._dialogContainerType,useValue:Vt},{provide:this._dialogDataToken,useValue:tn.data},{provide:this._dialogRefConstructor,useValue:me}])});return me.componentRef=Le.componentRef,me.componentInstance=Le.componentInstance,this.openDialogs.push(me),this.afterOpened.next(me),me.afterClosed().subscribe(()=>{const et=this.openDialogs.indexOf(me);et>-1&&(this.openDialogs.splice(et,1),this.openDialogs.length||this._getAfterAllClosed().next())}),me}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(de){return this.openDialogs.find(ae=>ae.id===de)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(de){let ae=de.length;for(;ae--;)de[ae].close()}static \u0275fac=function(ae){return new(ae||S)};static \u0275prov=g.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),nt=(()=>{class S{dialogRef=(0,g.WQX)(Re,{optional:!0});_elementRef=(0,g.WQX)(i.aKT);_dialog=(0,g.WQX)(be);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=function rt(S,Xt){let de=S.nativeElement.parentElement;for(;de&&!de.classList.contains("mat-mdc-dialog-container");)de=de.parentElement;return de?Xt.find(ae=>ae.id===de.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(de){const ae=de._matDialogClose||de._matDialogCloseResult;ae&&(this.dialogResult=ae.currentValue)}_onButtonClick(de){Me(this.dialogRef,0===de.screenX&&0===de.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(ae){return new(ae||S)};static \u0275dir=i.FsC({type:S,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ae,me){1&ae&&i.bIt("click",function(et){return me._onButtonClick(et)}),2&ae&&i.BMQ("aria-label",me.ariaLabel||null)("type",me.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[i.OA$]})}return S})();let qt=(()=>{class S{static \u0275fac=function(ae){return new(ae||S)};static \u0275mod=i.$C({type:S});static \u0275inj=g.G2t({providers:[be],imports:[s,j.z_,e.jc,C.y,C.y]})}return S})()},71997(ke,q,l){"use strict";l.d(q,{q:()=>o,w:()=>e});var i=l(2615),g=l(73664),p=l(14085),D=l(22466);let o=(()=>{class A{get vertical(){return this._vertical}set vertical(d){this._vertical=(0,p.he)(d)}_vertical=!1;get inset(){return this._inset}set inset(d){this._inset=(0,p.he)(d)}_inset=!1;static \u0275fac=function(w){return new(w||A)};static \u0275cmp=g.VBU({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(w,f){2&w&&(g.BMQ("aria-orientation",f.vertical?"vertical":"horizontal"),g.AVh("mat-divider-vertical",f.vertical)("mat-divider-horizontal",!f.vertical)("mat-divider-inset",f.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(w,f){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0})}return A})(),e=(()=>{class A{static \u0275fac=function(w){return new(w||A)};static \u0275mod=g.$C({type:A});static \u0275inj=i.G2t({imports:[D.y,D.y]})}return A})()},2709(ke,q,l){"use strict";l.d(q,{e:()=>D});var g=l(2615);let D=(()=>{class o{isErrorState(A,h){return!!(A&&A.invalid&&(A.touched||h&&h.submitted))}static \u0275fac=function(h){return new(h||o)};static \u0275prov=g.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},39336(ke,q,l){"use strict";l.d(q,{X:()=>i});class i{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(p,D,o,e,A){this._defaultMatcher=p,this.ngControl=D,this._parentFormGroup=o,this._parentForm=e,this._stateChanges=A}updateErrorState(){const p=this.errorState,D=this._parentFormGroup||this._parentForm,o=this.matcher||this._defaultMatcher,e=this.ngControl?this.ngControl.control:null,A=o?.isErrorState(e,D)??!1;A!==p&&(this.errorState=A,this._stateChanges.next())}}},9454(ke,q,l){"use strict";l.d(q,{BS:()=>Oe,MY:()=>ge,GK:()=>R,Q6:()=>re,Z2:()=>fe,WN:()=>he});var i=l(73664),g=l(2615),p=l(17705),D=l(21413),o=l(18359),e=l(89726),A=l(18689);const h=new g.nKC("CdkAccordion");let d=(()=>{class Me{_stateChanges=new D.B;_openCloseAllActions=new D.B;id=(0,g.WQX)(e.g).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(oe){this._stateChanges.next(oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",p.L39]},exportAs:["cdkAccordion"],features:[i.Jv_([{provide:h,useExisting:Me}]),i.OA$]})}return Me})(),w=(()=>{class Me{accordion=(0,g.WQX)(h,{optional:!0,skipSelf:!0});_changeDetectorRef=(0,g.WQX)(p.gRc);_expansionDispatcher=(0,g.WQX)(A.z);_openCloseAllSubscription=o.yU.EMPTY;closed=new i.bkB;opened=new i.bkB;destroyed=new i.bkB;expandedChange=new i.bkB;id=(0,g.WQX)(e.g).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(oe){this._expanded!==oe&&(this._expanded=oe,this.expandedChange.emit(oe),oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}_expanded=!1;get disabled(){return this._disabled()}set disabled(oe){this._disabled.set(oe)}_disabled=(0,g.vPA)(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((oe,Se)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Se&&this.id!==oe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}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(oe=>{this.disabled||(this.expanded=oe)})}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",p.L39],disabled:[2,"disabled","disabled",p.L39]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Jv_([{provide:h,useValue:void 0}])]})}return Me})(),f=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=i.$C({type:Me});static \u0275inj=g.G2t({})}return Me})();var F=l(76939),M=l(76838),K=l(64123),j=l(99172),Z=l(5964),ee=l(96697),V=l(10438),Q=l(67336),$=l(983),ie=l(57786),_e=l(31804),ye=l(88968),se=l(32046),pe=l(22466);const L=["body"],t=["bodyWrapper"],s=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],m=["mat-expansion-panel-header","*","mat-action-row"];function u(Me,ve){}const _=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],T=["mat-panel-title","mat-panel-description","*"];function P(Me,ve){1&Me&&(i.rj2(0,"span",1),g.qSk(),i.rj2(1,"svg",2),i.Hgh(2,"path",3),i.eux()())}const C=new g.nKC("MAT_ACCORDION"),a=new g.nKC("MAT_EXPANSION_PANEL");let x=(()=>{class Me{_template=(0,g.WQX)(i.C4Q);_expansionPanel=(0,g.WQX)(a,{optional:!0});constructor(){}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["ng-template","matExpansionPanelContent",""]]})}return Me})();const Y=new g.nKC("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let R=(()=>{class Me extends w{_viewContainerRef=(0,g.WQX)(i.c1b);_animationsDisabled=(0,_e.Rc)();_document=(0,g.WQX)(g.qQL);_ngZone=(0,g.WQX)(i.SKi);_elementRef=(0,g.WQX)(i.aKT);_renderer=(0,g.WQX)(i.sFG);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(oe){this._hideToggle=oe}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(oe){this._togglePosition=oe}_togglePosition;afterExpand=new i.bkB;afterCollapse=new i.bkB;_inputChanges=new D.B;accordion=(0,g.WQX)(C,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=(0,g.WQX)(e.g).getId("mat-expansion-panel-header-");constructor(){super();const oe=(0,g.WQX)(Y,{optional:!0});this._expansionDispatcher=(0,g.WQX)(A.z),oe&&(this.hideToggle=oe.hideToggle)}_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._lazyContent._expansionPanel===this&&this.opened.pipe((0,j.Z)(null),(0,Z.p)(()=>this.expanded&&!this._portal),(0,ee.s)(1)).subscribe(()=>{this._portal=new F.VA(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(oe){this._inputChanges.next(oe)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){const oe=this._document.activeElement,Se=this._body.nativeElement;return oe===Se||Se.contains(oe)}return!1}_transitionEndListener=({target:oe,propertyName:Se})=>{oe===this._bodyWrapper?.nativeElement&&"grid-template-rows"===Se&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{const oe=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(oe,"transitionend",this._transitionEndListener),oe.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=i.VBU({type:Me,selectors:[["mat-expansion-panel"]],contentQueries:function(Se,be,nt){if(1&Se&&i.wni(nt,x,5),2&Se){let $e;i.mGM($e=i.lsd())&&(be._lazyContent=$e.first)}},viewQuery:function(Se,be){if(1&Se&&(i.GBs(L,5),i.GBs(t,5)),2&Se){let nt;i.mGM(nt=i.lsd())&&(be._body=nt.first),i.mGM(nt=i.lsd())&&(be._bodyWrapper=nt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(Se,be){2&Se&&i.AVh("mat-expanded",be.expanded)("mat-expansion-panel-spacing",be._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",p.L39],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Jv_([{provide:C,useValue:void 0},{provide:a,useExisting:Me}]),i.Vt3,i.OA$],ngContentSelectors:m,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Se,be){1&Se&&(i.NAR(s),i.SdG(0),i.j41(1,"div",2,0)(3,"div",3,1)(5,"div",4),i.SdG(6,1),i.DNE(7,u,0,0,"ng-template",5),i.k0s(),i.SdG(8,2),i.k0s()()),2&Se&&(i.R7$(),i.BMQ("inert",be.expanded?null:""),i.R7$(2),i.Y8G("id",be.id),i.BMQ("aria-labelledby",be._headerId),i.R7$(4),i.Y8G("cdkPortalOutlet",be._portal))},dependencies:[F.I3],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-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:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.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,changeDetection:0})}return Me})(),fe=(()=>{class Me{panel=(0,g.WQX)(R,{host:!0});_element=(0,g.WQX)(i.aKT);_focusMonitor=(0,g.WQX)(M.FN);_changeDetectorRef=(0,g.WQX)(p.gRc);_parentChangeSubscription=o.yU.EMPTY;constructor(){(0,g.WQX)(ye.l).load(se.A);const oe=this.panel,Se=(0,g.WQX)(Y,{optional:!0}),be=(0,g.WQX)(new p.ES_("tabindex"),{optional:!0}),nt=oe.accordion?oe.accordion._stateChanges.pipe((0,Z.p)($e=>!(!$e.hideToggle&&!$e.togglePosition))):$.w;this.tabIndex=parseInt(be||"")||0,this._parentChangeSubscription=(0,ie.h)(oe.opened,oe.closed,nt,oe._inputChanges.pipe((0,Z.p)($e=>!!($e.hideToggle||$e.disabled||$e.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),oe.closed.pipe((0,Z.p)(()=>oe._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),Se&&(this.expandedHeight=Se.expandedHeight,this.collapsedHeight=Se.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;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 oe=this._isExpanded();return oe&&this.expandedHeight?this.expandedHeight:!oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(oe){switch(oe.keyCode){case V.t6:case V.Fm:(0,Q.rp)(oe)||(oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(oe))}}focus(oe,Se){oe?this._focusMonitor.focusVia(this._element,oe,Se):this._element.nativeElement.focus(Se)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(oe=>{oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=i.VBU({type:Me,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(Se,be){1&Se&&i.bIt("click",function(){return be._toggle()})("keydown",function($e){return be._keydown($e)}),2&Se&&(i.BMQ("id",be.panel._headerId)("tabindex",be.disabled?-1:be.tabIndex)("aria-controls",be._getPanelId())("aria-expanded",be._isExpanded())("aria-disabled",be.panel.disabled),i.xc7("height",be._getHeaderHeight()),i.AVh("mat-expanded",be._isExpanded())("mat-expansion-toggle-indicator-after","after"===be._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===be._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",oe=>null==oe?0:(0,p.Udg)(oe)]},ngContentSelectors:T,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(Se,be){1&Se&&(i.NAR(_),i.rj2(0,"span",0),i.SdG(1),i.SdG(2,1),i.SdG(3,2),i.eux(),i.nVh(4,P,3,0,"span",1)),2&Se&&(i.AVh("mat-content-hide-toggle",!be._showToggle()),i.R7$(4),i.vxM(be._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.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.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-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;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[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}\n'],encapsulation:2,changeDetection:0})}return Me})(),re=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return Me})(),he=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return Me})(),Oe=(()=>{class Me extends d{_keyManager;_ownHeaders=new i.rOR;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe((0,j.Z)(this._headers)).subscribe(oe=>{this._ownHeaders.reset(oe.filter(Se=>Se.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new K.B(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(oe){this._keyManager.onKeydown(oe)}_handleHeaderFocus(oe){this._keyManager.updateActiveItem(oe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=i.xGo(Me)))(be||Me)}})();static \u0275dir=i.FsC({type:Me,selectors:[["mat-accordion"]],contentQueries:function(Se,be,nt){if(1&Se&&i.wni(nt,fe,5),2&Se){let $e;i.mGM($e=i.lsd())&&(be._headers=$e)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Se,be){2&Se&&i.AVh("mat-accordion-multi",be.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",p.L39],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i.Jv_([{provide:C,useExisting:Me}]),i.Vt3]})}return Me})(),ge=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=i.$C({type:Me});static \u0275inj=g.G2t({imports:[pe.y,f,F.jc]})}return Me})()},71228(ke,q,l){"use strict";l.d(q,{R:()=>e});var i=l(72318),g=l(2615),p=l(73664),D=l(69588),o=l(22466);let e=(()=>{class A{static \u0275fac=function(w){return new(w||A)};static \u0275mod=p.$C({type:A});static \u0275inj=g.G2t({imports:[o.y,i.w5,D.rl,o.y]})}return A})()},69588(ke,q,l){"use strict";l.d(q,{xb:()=>Vt,TL:()=>be,rl:()=>Pe,qT:()=>me,MV:()=>nt,nJ:()=>oe,yw:()=>Et});var i=l(89726),g=l(61577),p=l(14085),D=l(39842),o=l(72200),e=l(73664),A=l(2615),h=l(17705),d=l(59295),w=l(18359),f=l(21413),F=l(57786),M=l(99172),K=l(96354),j=l(39974),Z=l(54360),V=l(5964),Q=l(56977),$=l(63610),ie=l(31804);const ye=["notch"],se=["matFormFieldNotchedOutline",""],pe=["*"],Ee=["iconPrefixContainer"],L=["textPrefixContainer"],t=["iconSuffixContainer"],s=["textSuffixContainer"],m=["textField"],u=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function T(Ue,Qe){1&Ue&&e.nrm(0,"span",21)}function P(Ue,Qe){if(1&Ue&&(e.j41(0,"label",20),e.SdG(1,1),e.nVh(2,T,1,0,"span",21),e.k0s()),2&Ue){const Ie=e.XpG(2);e.Y8G("floating",Ie._shouldLabelFloat())("monitorResize",Ie._hasOutline())("id",Ie._labelId),e.BMQ("for",Ie._control.disableAutomaticLabeling?null:Ie._control.id),e.R7$(2),e.vxM(!Ie.hideRequiredMarker&&Ie._control.required?2:-1)}}function C(Ue,Qe){if(1&Ue&&e.nVh(0,P,3,5,"label",20),2&Ue){const Ie=e.XpG();e.vxM(Ie._hasFloatingLabel()?0:-1)}}function a(Ue,Qe){1&Ue&&e.nrm(0,"div",7)}function x(Ue,Qe){}function Y(Ue,Qe){if(1&Ue&&e.DNE(0,x,0,0,"ng-template",13),2&Ue){e.XpG(2);const Ie=e.sdS(1);e.Y8G("ngTemplateOutlet",Ie)}}function R(Ue,Qe){if(1&Ue&&(e.j41(0,"div",9),e.nVh(1,Y,1,1,null,13),e.k0s()),2&Ue){const Ie=e.XpG();e.Y8G("matFormFieldNotchedOutlineOpen",Ie._shouldLabelFloat()),e.R7$(),e.vxM(Ie._forceDisplayInfixLabel()?-1:1)}}function U(Ue,Qe){1&Ue&&(e.j41(0,"div",10,2),e.SdG(2,2),e.k0s())}function fe(Ue,Qe){1&Ue&&(e.j41(0,"div",11,3),e.SdG(2,3),e.k0s())}function re(Ue,Qe){}function he(Ue,Qe){if(1&Ue&&e.DNE(0,re,0,0,"ng-template",13),2&Ue){e.XpG();const Ie=e.sdS(1);e.Y8G("ngTemplateOutlet",Ie)}}function Oe(Ue,Qe){1&Ue&&(e.j41(0,"div",14,4),e.SdG(2,4),e.k0s())}function ge(Ue,Qe){1&Ue&&(e.j41(0,"div",15,5),e.SdG(2,5),e.k0s())}function ce(Ue,Qe){1&Ue&&e.nrm(0,"div",16)}function Re(Ue,Qe){1&Ue&&(e.j41(0,"div",18),e.SdG(1,6),e.k0s())}function Me(Ue,Qe){if(1&Ue&&(e.j41(0,"mat-hint",22),e.EFF(1),e.k0s()),2&Ue){const Ie=e.XpG(2);e.Y8G("id",Ie._hintLabelId),e.R7$(),e.JRh(Ie.hintLabel)}}function ve(Ue,Qe){if(1&Ue&&(e.j41(0,"div",19),e.nVh(1,Me,2,2,"mat-hint",22),e.SdG(2,7),e.nrm(3,"div",23),e.SdG(4,8),e.k0s()),2&Ue){const Ie=e.XpG();e.R7$(),e.vxM(Ie.hintLabel?1:-1)}}let oe=(()=>{class Ue{static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["mat-label"]]})}return Ue})();const Se=new A.nKC("MatError");let be=(()=>{class Ue{id=(0,A.WQX)(i.g).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(le,Ne){2&le&&e.Avn("id",Ne.id)},inputs:{id:"id"},features:[e.Jv_([{provide:Se,useExisting:Ue}])]})}return Ue})(),nt=(()=>{class Ue{align="start";id=(0,A.WQX)(i.g).getId("mat-mdc-hint-");static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(le,Ne){2&le&&(e.Avn("id",Ne.id),e.BMQ("align",null),e.AVh("mat-mdc-form-field-hint-end","end"===Ne.align))},inputs:{align:"align",id:"id"}})}return Ue})();const $e=new A.nKC("MatPrefix"),yt=new A.nKC("MatSuffix");let Et=(()=>{class Ue{set _isTextSelector(Ie){this._isText=!0}_isText=!1;static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[e.Jv_([{provide:yt,useExisting:Ue}])]})}return Ue})();const rt=new A.nKC("FloatingLabelParent");let Mn=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);get floating(){return this._floating}set floating(Ie){this._floating=Ie,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(Ie){this._monitorResize=Ie,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,A.WQX)($.a);_ngZone=(0,A.WQX)(e.SKi);_parent=(0,A.WQX)(rt);_resizeSubscription=new w.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function qt(Ue){if(null!==Ue.offsetParent)return Ue.scrollWidth;const Ie=Ue.cloneNode(!0);Ie.style.setProperty("position","absolute"),Ie.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ie);const le=Ie.scrollWidth;return Ie.remove(),le}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(le,Ne){2&le&&e.AVh("mdc-floating-label--float-above",Ne.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return Ue})();const S="mdc-line-ripple--active",Xt="mdc-line-ripple--deactivating";let de=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);_cleanupTransitionEnd;constructor(){const Ie=(0,A.WQX)(e.SKi),le=(0,A.WQX)(e.sFG);Ie.runOutsideAngular(()=>{this._cleanupTransitionEnd=le.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){const Ie=this._elementRef.nativeElement.classList;Ie.remove(Xt),Ie.add(S)}deactivate(){this._elementRef.nativeElement.classList.add(Xt)}_handleTransitionEnd=Ie=>{const le=this._elementRef.nativeElement.classList,Ne=le.contains(Xt);"opacity"===Ie.propertyName&&Ne&&le.remove(S,Xt)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return Ue})(),ae=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);_ngZone=(0,A.WQX)(e.SKi);open=!1;_notch;ngAfterViewInit(){const Ie=this._elementRef.nativeElement,le=Ie.querySelector(".mdc-floating-label");le?(Ie.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(le.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>le.style.transitionDuration="")}))):Ie.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Ie){this._notch.nativeElement.style.width=this.open&&Ie?`calc(${Ie}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}_setMaxWidth(Ie){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Ie}px)`)}static \u0275fac=function(le){return new(le||Ue)};static \u0275cmp=e.VBU({type:Ue,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(le,Ne){if(1&le&&e.GBs(ye,5),2&le){let ze;e.mGM(ze=e.lsd())&&(Ne._notch=ze.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(le,Ne){2&le&&e.AVh("mdc-notched-outline--notched",Ne.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:se,ngContentSelectors:pe,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(le,Ne){1&le&&(e.NAR(),e.Hgh(0,"div",1),e.rj2(1,"div",2,0),e.SdG(3),e.eux(),e.Hgh(4,"div",3))},encapsulation:2,changeDetection:0})}return Ue})(),me=(()=>{class Ue{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue})}return Ue})();const Vt=new A.nKC("MatFormField"),hn=new A.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Pe=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);_changeDetectorRef=(0,A.WQX)(h.gRc);_platform=(0,A.WQX)(D.O);_idGenerator=(0,A.WQX)(i.g);_ngZone=(0,A.WQX)(e.SKi);_defaults=(0,A.WQX)(hn,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=(0,h.ebz)("iconPrefixContainer");_textPrefixContainerSignal=(0,h.ebz)("textPrefixContainer");_iconSuffixContainerSignal=(0,h.ebz)("iconSuffixContainer");_textSuffixContainerSignal=(0,h.ebz)("textSuffixContainer");_prefixSuffixContainers=(0,d.EW)(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(Ie=>Ie?.nativeElement).filter(Ie=>void 0!==Ie));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,h.sbv)(oe);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ie){this._hideRequiredMarker=(0,p.he)(Ie)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Ie){Ie!==this._floatLabel&&(this._floatLabel=Ie,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(Ie){this._appearanceSignal.set(Ie||this._defaults?.appearance||"fill")}_appearanceSignal=(0,A.vPA)("fill");get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Ie){this._subscriptSizing=Ie||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(Ie){this._hintLabel=Ie,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Ie){this._explicitFormFieldControl=Ie}_destroyed=new f.B;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=(0,ie.Rc)();constructor(){const Ie=this._defaults,le=(0,A.WQX)(g.dS);Ie&&(Ie.appearance&&(this.appearance=Ie.appearance),this._hideRequiredMarker=!!Ie?.hideRequiredMarker,Ie.color&&(this.color=Ie.color)),(0,d.QZ)(()=>this._currentDirection=le.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,d.EW)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(Ie){const le=this._control,Ne="mat-mdc-form-field-type-";Ie&&this._elementRef.nativeElement.classList.remove(Ne+Ie.controlType),le.controlType&&this._elementRef.nativeElement.classList.add(Ne+le.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=le.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=le.stateChanges.pipe((0,M.Z)([void 0,void 0]),(0,K.T)(()=>[le.errorState,le.userAriaDescribedBy]),function ee(){return(0,j.N)((Ue,Qe)=>{let Ie,le=!1;Ue.subscribe((0,Z._)(Qe,Ne=>{const ze=Ie;Ie=Ne,le&&Qe.next([ze,Ne]),le=!0}))})}(),(0,V.p)(([[ze,Je],[gt,zt]])=>ze!==gt||Je!==zt)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),le.ngControl&&le.ngControl.valueChanges&&(this._valueChanges=le.ngControl.valueChanges.pipe((0,Q.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Ie=>!Ie._isText),this._hasTextPrefix=!!this._prefixChildren.find(Ie=>Ie._isText),this._hasIconSuffix=!!this._suffixChildren.find(Ie=>!Ie._isText),this._hasTextSuffix=!!this._suffixChildren.find(Ie=>Ie._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,F.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){const Ie=this._control.focused;Ie&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!Ie&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",Ie),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",Ie)}_syncOutlineLabelOffset(){(0,h.uEv)({earlyRead:()=>{if("outline"!==this._appearanceSignal())return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(const Ie of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(Ie,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:Ie=>this._writeOutlinedLabelStyles(Ie())})}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=(0,d.EW)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(Ie){const le=this._control?this._control.ngControl:null;return le&&le[Ie]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Ie=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ie.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getSubscriptMessageType()){const ze=this._hintChildren?this._hintChildren.find(gt=>"start"===gt.align):null,Je=this._hintChildren?this._hintChildren.find(gt=>"end"===gt.align):null;ze?Ie.push(ze.id):this._hintLabel&&Ie.push(this._hintLabelId),Je&&Ie.push(Je.id)}else this._errorChildren&&Ie.push(...this._errorChildren.map(ze=>ze.id));const le=this._control.describedByIds;let Ne;if(le){const ze=this._describedByIds||Ie;Ne=Ie.concat(le.filter(Je=>Je&&!ze.includes(Je)))}else Ne=Ie;this._control.setDescribedByIds(Ne),this._describedByIds=Ie}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;const Ie=this._iconPrefixContainer?.nativeElement,le=this._textPrefixContainer?.nativeElement,Ne=this._iconSuffixContainer?.nativeElement,ze=this._textSuffixContainer?.nativeElement,Je=Ie?.getBoundingClientRect().width??0,gt=le?.getBoundingClientRect().width??0,zt=Ne?.getBoundingClientRect().width??0,Ye=ze?.getBoundingClientRect().width??0;return[`var(--mat-mdc-form-field-label-transform, translateY(-50%) translateX(calc(${"rtl"===this._currentDirection?"-1":"1"} * (${Je+gt}px + var(--mat-mdc-form-field-label-offset-x, 0px)))))`,Je+gt+zt+Ye]}_writeOutlinedLabelStyles(Ie){if(null!==Ie){const[le,Ne]=Ie;this._floatingLabel&&(this._floatingLabel.element.style.transform=le),null!==Ne&&this._notchedOutline?._setMaxWidth(Ne)}}_isAttachedToDom(){const Ie=this._elementRef.nativeElement;if(Ie.getRootNode){const le=Ie.getRootNode();return le&&le!==Ie}return document.documentElement.contains(Ie)}static \u0275fac=function(le){return new(le||Ue)};static \u0275cmp=e.VBU({type:Ue,selectors:[["mat-form-field"]],contentQueries:function(le,Ne,ze){if(1&le&&(e.C6U(ze,Ne._labelChild,oe,5),e.wni(ze,me,5),e.wni(ze,$e,5),e.wni(ze,yt,5),e.wni(ze,Se,5),e.wni(ze,nt,5)),2&le){let Je;e.NyB(),e.mGM(Je=e.lsd())&&(Ne._formFieldControl=Je.first),e.mGM(Je=e.lsd())&&(Ne._prefixChildren=Je),e.mGM(Je=e.lsd())&&(Ne._suffixChildren=Je),e.mGM(Je=e.lsd())&&(Ne._errorChildren=Je),e.mGM(Je=e.lsd())&&(Ne._hintChildren=Je)}},viewQuery:function(le,Ne){if(1&le&&(e.wEZ(Ne._iconPrefixContainerSignal,Ee,5),e.wEZ(Ne._textPrefixContainerSignal,L,5),e.wEZ(Ne._iconSuffixContainerSignal,t,5),e.wEZ(Ne._textSuffixContainerSignal,s,5),e.GBs(m,5),e.GBs(Ee,5),e.GBs(L,5),e.GBs(t,5),e.GBs(s,5),e.GBs(Mn,5),e.GBs(ae,5),e.GBs(de,5)),2&le){let ze;e.NyB(4),e.mGM(ze=e.lsd())&&(Ne._textField=ze.first),e.mGM(ze=e.lsd())&&(Ne._iconPrefixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._textPrefixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._iconSuffixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._textSuffixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._floatingLabel=ze.first),e.mGM(ze=e.lsd())&&(Ne._notchedOutline=ze.first),e.mGM(ze=e.lsd())&&(Ne._lineRipple=ze.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(le,Ne){2&le&&e.AVh("mat-mdc-form-field-label-always-float",Ne._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Ne._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Ne._hasIconSuffix)("mat-form-field-invalid",Ne._control.errorState)("mat-form-field-disabled",Ne._control.disabled)("mat-form-field-autofilled",Ne._control.autofilled)("mat-form-field-appearance-fill","fill"==Ne.appearance)("mat-form-field-appearance-outline","outline"==Ne.appearance)("mat-form-field-hide-placeholder",Ne._hasFloatingLabel()&&!Ne._shouldLabelFloat())("mat-primary","accent"!==Ne.color&&"warn"!==Ne.color)("mat-accent","accent"===Ne.color)("mat-warn","warn"===Ne.color)("ng-untouched",Ne._shouldForward("untouched"))("ng-touched",Ne._shouldForward("touched"))("ng-pristine",Ne._shouldForward("pristine"))("ng-dirty",Ne._shouldForward("dirty"))("ng-valid",Ne._shouldForward("valid"))("ng-invalid",Ne._shouldForward("invalid"))("ng-pending",Ne._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e.Jv_([{provide:Vt,useExisting:Ue},{provide:rt,useExisting:Ue}])],ngContentSelectors:_,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(le,Ne){if(1&le){const ze=e.RV6();e.NAR(u),e.DNE(0,C,1,1,"ng-template",null,0,e.C5r),e.j41(2,"div",6,1),e.bIt("click",function(gt){return A.eBV(ze),A.Njj(Ne._control.onContainerClick(gt))}),e.nVh(4,a,1,0,"div",7),e.j41(5,"div",8),e.nVh(6,R,2,2,"div",9),e.nVh(7,U,3,0,"div",10),e.nVh(8,fe,3,0,"div",11),e.j41(9,"div",12),e.nVh(10,he,1,1,null,13),e.SdG(11),e.k0s(),e.nVh(12,Oe,3,0,"div",14),e.nVh(13,ge,3,0,"div",15),e.k0s(),e.nVh(14,ce,1,0,"div",16),e.k0s(),e.j41(15,"div",17),e.nVh(16,Re,2,0,"div",18)(17,ve,5,1,"div",19),e.k0s()}if(2&le){let ze;e.R7$(2),e.AVh("mdc-text-field--filled",!Ne._hasOutline())("mdc-text-field--outlined",Ne._hasOutline())("mdc-text-field--no-label",!Ne._hasFloatingLabel())("mdc-text-field--disabled",Ne._control.disabled)("mdc-text-field--invalid",Ne._control.errorState),e.R7$(2),e.vxM(Ne._hasOutline()||Ne._control.disabled?-1:4),e.R7$(2),e.vxM(Ne._hasOutline()?6:-1),e.R7$(),e.vxM(Ne._hasIconPrefix?7:-1),e.R7$(),e.vxM(Ne._hasTextPrefix?8:-1),e.R7$(2),e.vxM(!Ne._hasOutline()||Ne._forceDisplayInfixLabel()?10:-1),e.R7$(2),e.vxM(Ne._hasTextSuffix?12:-1),e.R7$(),e.vxM(Ne._hasIconSuffix?13:-1),e.R7$(),e.vxM(Ne._hasOutline()?-1:14),e.R7$(),e.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Ne.subscriptSizing);const Je=Ne._getSubscriptMessageType();e.R7$(),e.vxM("error"===(ze=Je)?16:"hint"===ze?17:-1)}},dependencies:[Mn,ae,o.T3,de,nt],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}\n'],encapsulation:2,changeDetection:0})}return Ue})()},82885(ke,q,l){"use strict";l.d(q,{B_:()=>Y,Fe:()=>R,NS:()=>pe});class i{tracker;columnIndex=0;rowIndex=0;get rowCount(){return this.rowIndex+1}get rowspan(){const fe=Math.max(...this.tracker);return fe>1?this.rowCount+fe-1:this.rowCount}positions;update(fe,re){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(fe),this.tracker.fill(0,0,this.tracker.length),this.positions=re.map(he=>this._trackTile(he))}_trackTile(fe){const re=this._findMatchingGap(fe.colspan);return this._markTilePosition(re,fe),this.columnIndex=re+fe.colspan,new g(this.rowIndex,re)}_findMatchingGap(fe){let re=-1,he=-1;do{this.columnIndex+fe>this.tracker.length?(this._nextRow(),re=this.tracker.indexOf(0,this.columnIndex),he=this._findGapEndIndex(re)):(re=this.tracker.indexOf(0,this.columnIndex),-1!=re?(he=this._findGapEndIndex(re),this.columnIndex=re+1):(this._nextRow(),re=this.tracker.indexOf(0,this.columnIndex),he=this._findGapEndIndex(re)))}while(he-re{class U{static \u0275fac=function(he){return new(he||U)};static \u0275mod=D.$C({type:U});static \u0275inj=o.G2t({imports:[e.y,e.y]})}return U})();var M=l(67847),K=l(61577);const $=["*"],se=new o.nKC("MAT_GRID_LIST");let pe=(()=>{class U{_element=(0,o.WQX)(D.aKT);_gridList=(0,o.WQX)(se,{optional:!0});_rowspan=1;_colspan=1;constructor(){}get rowspan(){return this._rowspan}set rowspan(re){this._rowspan=Math.round((0,M.OE)(re))}get colspan(){return this._colspan}set colspan(re){this._colspan=Math.round((0,M.OE)(re))}_setStyle(re,he){this._element.nativeElement.style[re]=he}static \u0275fac=function(he){return new(he||U)};static \u0275cmp=D.VBU({type:U,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(he,Oe){2&he&&D.BMQ("rowspan",Oe.rowspan)("colspan",Oe.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:$,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(he,Oe){1&he&&(D.NAR(),D.rj2(0,"div",0),D.SdG(1),D.eux())},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-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.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})}return U})();const m=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class u{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(fe,re,he,Oe){this._gutterSize=a(fe),this._rows=re.rowCount,this._rowspan=re.rowspan,this._cols=he,this._direction=Oe}getBaseTileSize(fe,re){return`(${fe}% - (${this._gutterSize} * ${re}))`}getTilePosition(fe,re){return 0===re?"0":C(`(${fe} + ${this._gutterSize}) * ${re}`)}getTileSize(fe,re){return`(${fe} * ${re}) + (${re-1} * ${this._gutterSize})`}setStyle(fe,re,he){let Oe=100/this._cols,ge=(this._cols-1)/this._cols;this.setColStyles(fe,he,Oe,ge),this.setRowStyles(fe,re,Oe,ge)}setColStyles(fe,re,he,Oe){let ge=this.getBaseTileSize(he,Oe);fe._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(ge,re)),fe._setStyle("width",C(this.getTileSize(ge,fe.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(fe){return`${this._rowspan} * ${this.getTileSize(fe,1)}`}getComputedHeight(){return null}}class _ extends u{fixedRowHeight;constructor(fe){super(),this.fixedRowHeight=fe}init(fe,re,he,Oe){super.init(fe,re,he,Oe),this.fixedRowHeight=a(this.fixedRowHeight),m.test(this.fixedRowHeight)}setRowStyles(fe,re){fe._setStyle("top",this.getTilePosition(this.fixedRowHeight,re)),fe._setStyle("height",C(this.getTileSize(this.fixedRowHeight,fe.rowspan)))}getComputedHeight(){return["height",C(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(fe){fe._setListStyle(["height",null]),fe._tiles&&fe._tiles.forEach(re=>{re._setStyle("top",null),re._setStyle("height",null)})}}class T extends u{rowHeightRatio;baseTileHeight;constructor(fe){super(),this._parseRatio(fe)}setRowStyles(fe,re,he,Oe){this.baseTileHeight=this.getBaseTileSize(he/this.rowHeightRatio,Oe),fe._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,re)),fe._setStyle("paddingTop",C(this.getTileSize(this.baseTileHeight,fe.rowspan)))}getComputedHeight(){return["paddingBottom",C(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(fe){fe._setListStyle(["paddingBottom",null]),fe._tiles.forEach(re=>{re._setStyle("marginTop",null),re._setStyle("paddingTop",null)})}_parseRatio(fe){const re=fe.split(":");this.rowHeightRatio=parseFloat(re[0])/parseFloat(re[1])}}class P extends u{setRowStyles(fe,re){let ge=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);fe._setStyle("top",this.getTilePosition(ge,re)),fe._setStyle("height",C(this.getTileSize(ge,fe.rowspan)))}reset(fe){fe._tiles&&fe._tiles.forEach(re=>{re._setStyle("top",null),re._setStyle("height",null)})}}function C(U){return`calc(${U})`}function a(U){return U.match(/([A-Za-z%]+)$/)?U:`${U}px`}let Y=(()=>{class U{_element=(0,o.WQX)(D.aKT);_dir=(0,o.WQX)(K.dS,{optional:!0});_cols;_tileCoordinator;_rowHeight;_gutter="1px";_tileStyler;_tiles;constructor(){}get cols(){return this._cols}set cols(re){this._cols=Math.max(1,Math.round((0,M.OE)(re)))}get gutterSize(){return this._gutter}set gutterSize(re){this._gutter=`${re??""}`}get rowHeight(){return this._rowHeight}set rowHeight(re){const he=`${re??""}`;he!==this._rowHeight&&(this._rowHeight=he,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(re){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===re?new P:re&&re.indexOf(":")>-1?new T(re):new _(re)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new i);const re=this._tileCoordinator,he=this._tiles.filter(ge=>!ge._gridList||ge._gridList===this),Oe=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,he),this._tileStyler.init(this.gutterSize,re,this.cols,Oe),he.forEach((ge,ce)=>{const Re=re.positions[ce];this._tileStyler.setStyle(ge,Re.row,Re.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(re){re&&(this._element.nativeElement.style[re[0]]=re[1])}static \u0275fac=function(he){return new(he||U)};static \u0275cmp=D.VBU({type:U,selectors:[["mat-grid-list"]],contentQueries:function(he,Oe,ge){if(1&he&&D.wni(ge,pe,5),2&he){let ce;D.mGM(ce=D.lsd())&&(Oe._tiles=ce)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(he,Oe){2&he&&D.BMQ("cols",Oe.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[D.Jv_([{provide:se,useExisting:U}])],ngContentSelectors:$,decls:2,vars:0,template:function(he,Oe){1&he&&(D.NAR(),D.rj2(0,"div"),D.SdG(1),D.eux())},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-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.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})}return U})(),R=(()=>{class U{static \u0275fac=function(he){return new(he||U)};static \u0275mod=D.$C({type:U});static \u0275inj=o.G2t({imports:[F,e.y,F,e.y]})}return U})()},22598(ke,q,l){"use strict";l.d(q,{iM:()=>M,iY:()=>K});var i=l(73664),g=l(17705),p=l(2615),D=l(76838),o=l(88968),e=l(11048),A=l(32046),h=l(31804);const d=["mat-icon-button",""],w=["*"],f=new p.nKC("MAT_BUTTON_CONFIG");function F(Z){return null==Z?void 0:(0,g.Udg)(Z)}let M=(()=>{class Z{_elementRef=(0,p.WQX)(i.aKT);_ngZone=(0,p.WQX)(i.SKi);_animationsDisabled=(0,h.Rc)();_config=(0,p.WQX)(f,{optional:!0});_focusMonitor=(0,p.WQX)(D.FN);_cleanupClick;_renderer=(0,p.WQX)(i.sFG);_rippleLoader=(0,p.WQX)(e.E);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=V,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(V){this._disabled=V,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(V){this.tabIndex=V}constructor(){(0,p.WQX)(o.l).load(A.A);const V=this._elementRef.nativeElement;this._isAnchor="A"===V.tagName,this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(V,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(V="program",Q){V?this._focusMonitor.focusVia(this._elementRef.nativeElement,V,Q):this._elementRef.nativeElement.focus(Q)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this._isAnchor?this.disabled||null:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor&&this.disabled&&!this.disabledInteractive?-1:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",V=>{this.disabled&&(V.preventDefault(),V.stopImmediatePropagation())}))}static \u0275fac=function(Q){return new(Q||Z)};static \u0275dir=i.FsC({type:Z,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(Q,$){2&Q&&(i.BMQ("disabled",$._getDisabledAttribute())("aria-disabled",$._getAriaDisabled())("tabindex",$._getTabIndex()),i.HbH($.color?"mat-"+$.color:""),i.AVh("mat-mdc-button-disabled",$.disabled)("mat-mdc-button-disabled-interactive",$.disabledInteractive)("mat-unthemed",!$.color)("_mat-animation-noopable",$._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",g.L39],disabled:[2,"disabled","disabled",g.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",g.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",g.L39],tabIndex:[2,"tabIndex","tabIndex",F],_tabindex:[2,"tabindex","_tabindex",F]}})}return Z})(),K=(()=>{class Z extends M{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(Q){return new(Q||Z)};static \u0275cmp=i.VBU({type:Z,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:d,ngContentSelectors:w,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Q,$){1&Q&&(i.NAR(),i.Hgh(0,"span",0),i.SdG(1),i.Hgh(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\n',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0})}return Z})()},12629(ke,q,l){"use strict";l.d(q,{An:()=>Y,m_:()=>R});var i=l(73664),g=l(2615),p=l(17705),D=l(18359),o=l(96697),e=l(29330),A=l(345),h=l(7673),d=l(18810),w=l(27468),f=l(88141),F=l(96354),M=l(99437),K=l(70980),j=l(97647);let Z;function V(U){return function ee(){if(void 0===Z&&(Z=null,typeof window<"u")){const U=window;void 0!==U.trustedTypes&&(Z=U.trustedTypes.createPolicy("angular#components",{createHTML:fe=>fe}))}return Z}()?.createHTML(U)||U}function Q(U){return Error(`Unable to find icon with the name "${U}"`)}function ie(U){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${U}".`)}function _e(U){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${U}".`)}class ye{url;svgText;options;svgElement;constructor(fe,re,he){this.url=fe,this.svgText=re,this.options=he}}let se=(()=>{class U{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(re,he,Oe,ge){this._httpClient=re,this._sanitizer=he,this._errorHandler=ge,this._document=Oe}addSvgIcon(re,he,Oe){return this.addSvgIconInNamespace("",re,he,Oe)}addSvgIconLiteral(re,he,Oe){return this.addSvgIconLiteralInNamespace("",re,he,Oe)}addSvgIconInNamespace(re,he,Oe,ge){return this._addSvgIconConfig(re,he,new ye(Oe,null,ge))}addSvgIconResolver(re){return this._resolvers.push(re),this}addSvgIconLiteralInNamespace(re,he,Oe,ge){const ce=this._sanitizer.sanitize(i.WPN.HTML,Oe);if(!ce)throw _e(Oe);const Re=V(ce);return this._addSvgIconConfig(re,he,new ye("",Re,ge))}addSvgIconSet(re,he){return this.addSvgIconSetInNamespace("",re,he)}addSvgIconSetLiteral(re,he){return this.addSvgIconSetLiteralInNamespace("",re,he)}addSvgIconSetInNamespace(re,he,Oe){return this._addSvgIconSetConfig(re,new ye(he,null,Oe))}addSvgIconSetLiteralInNamespace(re,he,Oe){const ge=this._sanitizer.sanitize(i.WPN.HTML,he);if(!ge)throw _e(he);const ce=V(ge);return this._addSvgIconSetConfig(re,new ye("",ce,Oe))}registerFontClassAlias(re,he=re){return this._fontCssClassesByAlias.set(re,he),this}classNameForFontAlias(re){return this._fontCssClassesByAlias.get(re)||re}setDefaultFontSetClass(...re){return this._defaultFontSetClass=re,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(re){const he=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,re);if(!he)throw ie(re);const Oe=this._cachedIconsByUrl.get(he);return Oe?(0,h.of)(L(Oe)):this._loadSvgIconFromConfig(new ye(re,null)).pipe((0,f.M)(ge=>this._cachedIconsByUrl.set(he,ge)),(0,F.T)(ge=>L(ge)))}getNamedSvgIcon(re,he=""){const Oe=t(he,re);let ge=this._svgIconConfigs.get(Oe);if(ge)return this._getSvgFromConfig(ge);if(ge=this._getIconConfigFromResolvers(he,re),ge)return this._svgIconConfigs.set(Oe,ge),this._getSvgFromConfig(ge);const ce=this._iconSetConfigs.get(he);return ce?this._getSvgFromIconSetConfigs(re,ce):(0,d.$)(Q(Oe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(re){return re.svgText?(0,h.of)(L(this._svgElementFromConfig(re))):this._loadSvgIconFromConfig(re).pipe((0,F.T)(he=>L(he)))}_getSvgFromIconSetConfigs(re,he){const Oe=this._extractIconWithNameFromAnySet(re,he);if(Oe)return(0,h.of)(Oe);const ge=he.filter(ce=>!ce.svgText).map(ce=>this._loadSvgIconSetFromConfig(ce).pipe((0,M.W)(Re=>{const ve=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,ce.url)} failed: ${Re.message}`;return this._errorHandler.handleError(new Error(ve)),(0,h.of)(null)})));return(0,w.p)(ge).pipe((0,F.T)(()=>{const ce=this._extractIconWithNameFromAnySet(re,he);if(!ce)throw Q(re);return ce}))}_extractIconWithNameFromAnySet(re,he){for(let Oe=he.length-1;Oe>=0;Oe--){const ge=he[Oe];if(ge.svgText&&ge.svgText.toString().indexOf(re)>-1){const ce=this._svgElementFromConfig(ge),Re=this._extractSvgIconFromSet(ce,re,ge.options);if(Re)return Re}}return null}_loadSvgIconFromConfig(re){return this._fetchIcon(re).pipe((0,f.M)(he=>re.svgText=he),(0,F.T)(()=>this._svgElementFromConfig(re)))}_loadSvgIconSetFromConfig(re){return re.svgText?(0,h.of)(null):this._fetchIcon(re).pipe((0,f.M)(he=>re.svgText=he))}_extractSvgIconFromSet(re,he,Oe){const ge=re.querySelector(`[id="${he}"]`);if(!ge)return null;const ce=ge.cloneNode(!0);if(ce.removeAttribute("id"),"svg"===ce.nodeName.toLowerCase())return this._setSvgAttributes(ce,Oe);if("symbol"===ce.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ce),Oe);const Re=this._svgElementFromString(V(""));return Re.appendChild(ce),this._setSvgAttributes(Re,Oe)}_svgElementFromString(re){const he=this._document.createElement("DIV");he.innerHTML=re;const Oe=he.querySelector("svg");if(!Oe)throw Error(" tag not found");return Oe}_toSvgElement(re){const he=this._svgElementFromString(V("")),Oe=re.attributes;for(let ge=0;geV(ve)),(0,K.j)(()=>this._inProgressUrlFetches.delete(ce)),(0,j.u)());return this._inProgressUrlFetches.set(ce,Me),Me}_addSvgIconConfig(re,he,Oe){return this._svgIconConfigs.set(t(re,he),Oe),this}_addSvgIconSetConfig(re,he){const Oe=this._iconSetConfigs.get(re);return Oe?Oe.push(he):this._iconSetConfigs.set(re,[he]),this}_svgElementFromConfig(re){if(!re.svgElement){const he=this._svgElementFromString(re.svgText);this._setSvgAttributes(he,re.options),re.svgElement=he}return re.svgElement}_getIconConfigFromResolvers(re,he){for(let Oe=0;Oefe?fe.pathname+fe.search:""}}}),C=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],a=C.map(U=>`[${U}]`).join(", "),x=/^url\(['"]?#(.*?)['"]?\)$/;let Y=(()=>{class U{_elementRef=(0,g.WQX)(i.aKT);_iconRegistry=(0,g.WQX)(se);_location=(0,g.WQX)(T);_errorHandler=(0,g.WQX)(g.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(re){this._color=re}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(re){re!==this._svgIcon&&(re?this._updateSvgIcon(re):this._svgIcon&&this._clearSvgElement(),this._svgIcon=re)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(re){const he=this._cleanupFontValue(re);he!==this._fontSet&&(this._fontSet=he,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(re){const he=this._cleanupFontValue(re);he!==this._fontIcon&&(this._fontIcon=he,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=D.yU.EMPTY;constructor(){const re=(0,g.WQX)(new p.ES_("aria-hidden"),{optional:!0}),he=(0,g.WQX)(_,{optional:!0});he&&(he.color&&(this.color=this._defaultColor=he.color),he.fontSet&&(this.fontSet=he.fontSet)),re||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(re){if(!re)return["",""];const he=re.split(":");switch(he.length){case 1:return["",he[0]];case 2:return he;default:throw Error(`Invalid icon name: "${re}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const re=this._elementsWithExternalReferences;if(re&&re.size){const he=this._location.getPathname();he!==this._previousPath&&(this._previousPath=he,this._prependPathToReferences(he))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(re){this._clearSvgElement();const he=this._location.getPathname();this._previousPath=he,this._cacheChildrenWithExternalReferences(re),this._prependPathToReferences(he),this._elementRef.nativeElement.appendChild(re)}_clearSvgElement(){const re=this._elementRef.nativeElement;let he=re.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();he--;){const Oe=re.childNodes[he];(1!==Oe.nodeType||"svg"===Oe.nodeName.toLowerCase())&&Oe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const re=this._elementRef.nativeElement,he=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Oe=>Oe.length>0);this._previousFontSetClass.forEach(Oe=>re.classList.remove(Oe)),he.forEach(Oe=>re.classList.add(Oe)),this._previousFontSetClass=he,this.fontIcon!==this._previousFontIconClass&&!he.includes("mat-ligature-font")&&(this._previousFontIconClass&&re.classList.remove(this._previousFontIconClass),this.fontIcon&&re.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(re){return"string"==typeof re?re.trim().split(" ")[0]:re}_prependPathToReferences(re){const he=this._elementsWithExternalReferences;he&&he.forEach((Oe,ge)=>{Oe.forEach(ce=>{ge.setAttribute(ce.name,`url('${re}#${ce.value}')`)})})}_cacheChildrenWithExternalReferences(re){const he=re.querySelectorAll(a),Oe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ge=0;ge{const Re=he[ge],Me=Re.getAttribute(ce),ve=Me?Me.match(x):null;if(ve){let oe=Oe.get(Re);oe||(oe=[],Oe.set(Re,oe)),oe.push({name:ce,value:ve[1]})}})}_updateSvgIcon(re){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),re){const[he,Oe]=this._splitIconName(re);he&&(this._svgNamespace=he),Oe&&(this._svgName=Oe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Oe,he).pipe((0,o.s)(1)).subscribe(ge=>this._setSvgElement(ge),ge=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${he}:${Oe}! ${ge.message}`))})}}static \u0275fac=function(he){return new(he||U)};static \u0275cmp=i.VBU({type:U,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(he,Oe){2&he&&(i.BMQ("data-mat-icon-type",Oe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Oe._svgName||Oe.fontIcon)("data-mat-icon-namespace",Oe._svgNamespace||Oe.fontSet)("fontIcon",Oe._usingFontIcon()?Oe.fontIcon:null),i.HbH(Oe.color?"mat-"+Oe.color:""),i.AVh("mat-icon-inline",Oe.inline)("mat-icon-no-color","primary"!==Oe.color&&"accent"!==Oe.color&&"warn"!==Oe.color))},inputs:{color:"color",inline:[2,"inline","inline",p.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:u,decls:1,vars:0,template:function(he,Oe){1&he&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0})}return U})(),R=(()=>{class U{static \u0275fac=function(he){return new(he||U)};static \u0275mod=i.$C({type:U});static \u0275inj=g.G2t({imports:[m.y,m.y]})}return U})()},68010(ke,q,l){"use strict";l.d(q,{O:()=>g});const g=new(l(2615).nKC)("MAT_INPUT_VALUE_ACCESSOR")},33746(ke,q,l){"use strict";l.d(q,{fg:()=>ce,fS:()=>Re});var i=l(14085),g=l(39842);let o;const e=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function A(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(e),o;let Me=document.createElement("input");return o=new Set(e.filter(ve=>(Me.setAttribute("type",ve),Me.type===ve))),o}var h=l(73664),d=l(2615),w=l(983),f=l(21413),F=l(88968),M=l(67847);let L=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=h.VBU({type:Me,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Se,be){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"],encapsulation:2,changeDetection:0})}return Me})();const t={passive:!0};let s=(()=>{class Me{_platform=(0,d.WQX)(g.O);_ngZone=(0,d.WQX)(h.SKi);_renderer=(0,d.WQX)(h._9s).createRenderer(null,null);_styleLoader=(0,d.WQX)(F.l);_monitoredElements=new Map;constructor(){}monitor(oe){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(L);const Se=(0,M.i8)(oe),be=this._monitoredElements.get(Se);if(be)return be.subject;const nt=new f.B,$e="cdk-text-field-autofilled",dt=Et=>{"cdk-text-field-autofill-start"!==Et.animationName||Se.classList.contains($e)?"cdk-text-field-autofill-end"===Et.animationName&&Se.classList.contains($e)&&(Se.classList.remove($e),this._ngZone.run(()=>nt.next({target:Et.target,isAutofilled:!1}))):(Se.classList.add($e),this._ngZone.run(()=>nt.next({target:Et.target,isAutofilled:!0})))},yt=this._ngZone.runOutsideAngular(()=>(Se.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(Se,"animationstart",dt,t)));return this._monitoredElements.set(Se,{subject:nt,unlisten:yt}),nt}stopMonitoring(oe){const Se=(0,M.i8)(oe),be=this._monitoredElements.get(Se);be&&(be.unlisten(),be.subject.complete(),Se.classList.remove("cdk-text-field-autofill-monitored"),Se.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Se))}ngOnDestroy(){this._monitoredElements.forEach((oe,Se)=>this.stopMonitoring(Se))}static \u0275fac=function(Se){return new(Se||Me)};static \u0275prov=d.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})(),_=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=h.$C({type:Me});static \u0275inj=d.G2t({})}return Me})();var T=l(59295),P=l(17705),C=l(89726),a=l(89417),x=l(68010),Y=l(69588),R=l(2709),U=l(39336),fe=l(71228),re=l(22466);const Oe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ge=new d.nKC("MAT_INPUT_CONFIG");let ce=(()=>{class Me{_elementRef=(0,d.WQX)(h.aKT);_platform=(0,d.WQX)(g.O);ngControl=(0,d.WQX)(a.vO,{optional:!0,self:!0});_autofillMonitor=(0,d.WQX)(s);_ngZone=(0,d.WQX)(h.SKi);_formField=(0,d.WQX)(Y.xb,{optional:!0});_renderer=(0,d.WQX)(h.sFG);_uid=(0,d.WQX)(C.g).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=(0,d.WQX)(ge,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new f.B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(oe){this._disabled=(0,i.he)(oe),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(oe){this._id=oe||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(a.k0.required)??!1}set required(oe){this._required=(0,i.he)(oe)}_required;get type(){return this._type}set type(oe){this._type=oe||"text",this._validateType(),!this._isTextarea&&A().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(oe){this._errorStateTracker.matcher=oe}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(oe){oe!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(oe):this._inputValueAccessor.value=oe,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(oe){this._readonly=(0,i.he)(oe)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(oe){this._errorStateTracker.errorState=oe}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(oe=>A().has(oe));constructor(){const oe=(0,d.WQX)(a.cV,{optional:!0}),Se=(0,d.WQX)(a.j4,{optional:!0}),be=(0,d.WQX)(R.e),nt=(0,d.WQX)(x.O,{optional:!0,self:!0}),$e=this._elementRef.nativeElement,dt=$e.nodeName.toLowerCase();nt?(0,d.Hps)(nt.value)?this._signalBasedValueAccessor=nt:this._inputValueAccessor=nt:this._inputValueAccessor=$e,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen($e,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new U.X(be,this.ngControl,Se,oe,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===dt,this._isTextarea="textarea"===dt,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=$e.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&(0,T.QZ)(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(oe=>{this.autofilled=oe.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(oe){this._elementRef.nativeElement.focus(oe)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(oe){if(oe!==this.focused){if(!this._isNativeSelect&&oe&&this.disabled&&this.disabledInteractive){const Se=this._elementRef.nativeElement;"number"===Se.type?(Se.type="text",Se.setSelectionRange(0,0),Se.type="number"):Se.setSelectionRange(0,0)}this.focused=oe,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){const oe=this._elementRef.nativeElement.value;this._previousNativeValue!==oe&&(this._previousNativeValue=oe,this.stateChanges.next())}_dirtyCheckPlaceholder(){const oe=this._getPlaceholder();if(oe!==this._previousPlaceholder){const Se=this._elementRef.nativeElement;this._previousPlaceholder=oe,oe?Se.setAttribute("placeholder",oe):Se.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Oe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let oe=this._elementRef.nativeElement.validity;return oe&&oe.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const oe=this._elementRef.nativeElement,Se=oe.options[0];return this.focused||oe.multiple||!this.empty||!!(oe.selectedIndex>-1&&Se&&Se.label)}return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(oe){const Se=this._elementRef.nativeElement;oe.length?Se.setAttribute("aria-describedby",oe.join(" ")):Se.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const oe=this._elementRef.nativeElement;return this._isNativeSelect&&(oe.multiple||oe.size>1)}_iOSKeyupListener=oe=>{const Se=oe.target;!Se.value&&0===Se.selectionStart&&0===Se.selectionEnd&&(Se.setSelectionRange(1,1),Se.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=h.FsC({type:Me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(Se,be){1&Se&&h.bIt("focus",function(){return be._focusChanged(!0)})("blur",function(){return be._focusChanged(!1)})("input",function(){return be._onInput()}),2&Se&&(h.Avn("id",be.id)("disabled",be.disabled&&!be.disabledInteractive)("required",be.required),h.BMQ("name",be.name||null)("readonly",be._getReadonlyAttribute())("aria-disabled",be.disabled&&be.disabledInteractive?"true":null)("aria-invalid",be.empty&&be.required?null:be.errorState)("aria-required",be.required)("id",be.id),h.AVh("mat-input-server",be._isServer)("mat-mdc-form-field-textarea-control",be._isInFormField&&be._isTextarea)("mat-mdc-form-field-input-control",be._isInFormField)("mat-mdc-input-disabled-interactive",be.disabledInteractive)("mdc-text-field__input",be._isInFormField)("mat-mdc-native-select-inline",be._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",P.L39]},exportAs:["matInput"],features:[h.Jv_([{provide:Y.qT,useExisting:Me}]),h.OA$]})}return Me})(),Re=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=h.$C({type:Me});static \u0275inj=d.G2t({imports:[re.y,fe.R,fe.R,_,re.y]})}return Me})()},53155(ke,q,l){"use strict";l.d(q,{t:()=>D});var i=l(73664);const g=["mat-internal-form-field",""],p=["*"];let D=(()=>{class o{labelPosition;static \u0275fac=function(h){return new(h||o)};static \u0275cmp=i.VBU({type:o,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(h,d){2&h&&i.AVh("mdc-form-field--align-end","before"===d.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:g,ngContentSelectors:p,decls:1,vars:0,template:function(h,d){1&h&&(i.NAR(),i.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}\n"],encapsulation:2,changeDetection:0})}return o})()},3902(ke,q,l){"use strict";l.d(q,{Fg:()=>Fe,YE:()=>me,jt:()=>ae});var g=l(14085),p=l(67847),D=l(2615),o=l(73664),A=(l(17705),l(39842)),d=(l(44522),l(88968)),f=(l(21413),l(18359)),F=l(57786),M=l(12496),K=l(31804),j=l(32046),ee=(l(72200),l(72318)),V=l(71997),pe=(l(64123),l(83869),l(67336),l(10438),l(89417),l(56977),l(70483)),Ee=l(22466),L=l(26881);const t=["*"],m=["unscopedContent"],u=["text"],_=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],T=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],Se=new D.nKC("ListOption");let be=(()=>{class Pe{_elementRef=(0,D.WQX)(o.aKT);constructor(){}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return Pe})(),nt=(()=>{class Pe{_elementRef=(0,D.WQX)(o.aKT);constructor(){}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return Pe})(),$e=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return Pe})(),dt=(()=>{class Pe{_listOption=(0,D.WQX)(Se,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,hostVars:4,hostBindings:function(Ie,le){2&Ie&&o.AVh("mdc-list-item__start",le._isAlignedAtStart())("mdc-list-item__end",!le._isAlignedAtStart())}})}return Pe})(),yt=(()=>{class Pe extends dt{static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[o.Vt3]})}return Pe})(),Et=(()=>{class Pe extends dt{static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[o.Vt3]})}return Pe})();const rt=new D.nKC("MAT_LIST_CONFIG");let Mn=(()=>{class Pe{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(Qe){this._disableRipple=(0,g.he)(Qe)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(Qe){this._disabled.set((0,g.he)(Qe))}_disabled=(0,D.vPA)(!1);_defaultOptions=(0,D.WQX)(rt,{optional:!0});static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,hostVars:1,hostBindings:function(Ie,le){2&Ie&&o.BMQ("aria-disabled",le.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return Pe})(),qt=(()=>{class Pe{_elementRef=(0,D.WQX)(o.aKT);_ngZone=(0,D.WQX)(o.SKi);_listBase=(0,D.WQX)(Mn,{optional:!0});_platform=(0,D.WQX)(A.O);_hostElement;_isButtonElement;_noopAnimations=(0,K.Rc)();_avatars;_icons;set lines(Qe){this._explicitLines=(0,p.OE)(Qe,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(Qe){this._disableRipple=(0,g.he)(Qe)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(Qe){this._disabled.set((0,g.he)(Qe))}_disabled=(0,D.vPA)(!1);_subscriptions=new f.yU;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){(0,D.WQX)(d.l).load(j.A);const Qe=(0,D.WQX)(M.$E,{optional:!0});this.rippleConfig=Qe||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new M.ug(this,this._ngZone,this._hostElement,this._platform,(0,D.WQX)(D.zZn)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,F.h)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(Qe){if(!this._lines||!this._titles||!this._unscopedContent)return;Qe&&this._checkDomForUnscopedTextContent();const Ie=this._explicitLines??this._inferLinesFromContent(),le=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",Ie<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",Ie<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===Ie),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===Ie),this._hasUnscopedTextContent){const Ne=0===this._titles.length&&1===Ie;le.classList.toggle("mdc-list-item__primary-text",Ne),le.classList.toggle("mdc-list-item__secondary-text",!Ne)}else le.classList.remove("mdc-list-item__primary-text"),le.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let Qe=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(Qe+=1),Qe}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(Qe=>Qe.nodeType!==Qe.COMMENT_NODE).some(Qe=>!(!Qe.textContent||!Qe.textContent.trim()))}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,contentQueries:function(Ie,le,Ne){if(1&Ie&&(o.wni(Ne,yt,4),o.wni(Ne,Et,4)),2&Ie){let ze;o.mGM(ze=o.lsd())&&(le._avatars=ze),o.mGM(ze=o.lsd())&&(le._icons=ze)}},hostVars:4,hostBindings:function(Ie,le){2&Ie&&(o.BMQ("aria-disabled",le.disabled)("disabled",le._isButtonElement&&le.disabled||null),o.AVh("mdc-list-item--disabled",le.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return Pe})(),ae=(()=>{class Pe extends Mn{static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275cmp=o.VBU({type:Pe,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[o.Jv_([{provide:Mn,useExisting:Pe}]),o.Vt3],ngContentSelectors:t,decls:1,vars:0,template:function(Ie,le){1&Ie&&(o.NAR(),o.SdG(0))},styles:['.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}\n'],encapsulation:2,changeDetection:0})}return Pe})(),me=(()=>{class Pe extends qt{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(Qe){this._activated=(0,g.he)(Qe)}_activated=!1;_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return 0!==this._meta.length&&(0!==this._avatars.length||0!==this._icons.length)}static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275cmp=o.VBU({type:Pe,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Ie,le,Ne){if(1&Ie&&(o.wni(Ne,nt,5),o.wni(Ne,be,5),o.wni(Ne,$e,5)),2&Ie){let ze;o.mGM(ze=o.lsd())&&(le._lines=ze),o.mGM(ze=o.lsd())&&(le._titles=ze),o.mGM(ze=o.lsd())&&(le._meta=ze)}},viewQuery:function(Ie,le){if(1&Ie&&(o.GBs(m,5),o.GBs(u,5)),2&Ie){let Ne;o.mGM(Ne=o.lsd())&&(le._unscopedContent=Ne.first),o.mGM(Ne=o.lsd())&&(le._itemText=Ne.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(Ie,le){2&Ie&&(o.BMQ("aria-current",le._getAriaCurrent()),o.AVh("mdc-list-item--activated",le.activated)("mdc-list-item--with-leading-avatar",0!==le._avatars.length)("mdc-list-item--with-leading-icon",0!==le._icons.length)("mdc-list-item--with-trailing-meta",0!==le._meta.length)("mat-mdc-list-item-both-leading-and-trailing",le._hasBothLeadingAndTrailing())("_mat-animation-noopable",le._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[o.Vt3],ngContentSelectors:T,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(Ie,le){if(1&Ie){const Ne=o.RV6();o.NAR(_),o.SdG(0),o.j41(1,"span",1),o.SdG(2,1),o.SdG(3,2),o.j41(4,"span",2,0),o.bIt("cdkObserveContent",function(){return D.eBV(Ne),D.Njj(le._updateItemLines(!0))}),o.SdG(6,3),o.k0s()(),o.SdG(7,4),o.SdG(8,5),o.nrm(9,"div",3)}},dependencies:[ee.Wv],encapsulation:2,changeDetection:0})}return Pe})(),Fe=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275mod=o.$C({type:Pe});static \u0275inj=D.G2t({imports:[ee.w5,Ee.y,L.p,pe.O,V.w]})}return Pe})()},59115(ke,q,l){"use strict";l.d(q,{Cn:()=>tt,Cp:()=>En,fb:()=>$e,kk:()=>ae});var Q=l(2615),$=l(73664),ie=l(17705),_e=l(76838),ye=l(89726),se=l(64123),pe=l(95735),Ee=l(67336),L=l(10438),t=l(21413),s=l(18359),m=l(57786),u=l(7673),_=l(5964),T=l(99172),P=l(25558),C=l(96697),a=l(56977),x=l(88968),Y=l(32046),R=l(12496),U=l(76939),fe=l(31804),re=l(61577),he=l(49338),Oe=l(5718),ge=l(26881),ce=l(22466);const Re=["mat-menu-item",""],Me=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ve=["mat-icon, [matMenuItemIcon]","*"];function oe(Qe,Ie){1&Qe&&(Q.qSk(),$.j41(0,"svg",2),$.nrm(1,"polygon",3),$.k0s())}const Se=["*"];function be(Qe,Ie){if(1&Qe){const le=$.RV6();$.rj2(0,"div",0),$.VwU("click",function(){Q.eBV(le);const ze=$.XpG();return Q.Njj(ze.closed.emit("click"))})("animationstart",function(ze){Q.eBV(le);const Je=$.XpG();return Q.Njj(Je._onAnimationStart(ze.animationName))})("animationend",function(ze){Q.eBV(le);const Je=$.XpG();return Q.Njj(Je._onAnimationDone(ze.animationName))})("animationcancel",function(ze){Q.eBV(le);const Je=$.XpG();return Q.Njj(Je._onAnimationDone(ze.animationName))}),$.rj2(1,"div",1),$.SdG(2),$.eux()()}if(2&Qe){const le=$.XpG();$.HbH(le._classList),$.AVh("mat-menu-panel-animations-disabled",le._animationsDisabled)("mat-menu-panel-exit-animation","void"===le._panelAnimationState)("mat-menu-panel-animating",le._isAnimating()),$.Avn("id",le.panelId),$.BMQ("aria-label",le.ariaLabel||null)("aria-labelledby",le.ariaLabelledby||null)("aria-describedby",le.ariaDescribedby||null)}}const nt=new Q.nKC("MAT_MENU_PANEL");let $e=(()=>{class Qe{_elementRef=(0,Q.WQX)($.aKT);_document=(0,Q.WQX)(Q.qQL);_focusMonitor=(0,Q.WQX)(_e.FN);_parentMenu=(0,Q.WQX)(nt,{optional:!0});_changeDetectorRef=(0,Q.WQX)(ie.gRc);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new t.B;_focused=new t.B;_highlighted=!1;_triggersSubmenu=!1;constructor(){(0,Q.WQX)(x.l).load(Y.A),this._parentMenu?.addItem?.(this)}focus(le,Ne){this._focusMonitor&&le?this._focusMonitor.focusVia(this._getHostElement(),le,Ne):this._getHostElement().focus(Ne),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(le){this.disabled&&(le.preventDefault(),le.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const le=this._elementRef.nativeElement.cloneNode(!0),Ne=le.querySelectorAll("mat-icon, .material-icons");for(let ze=0;ze{class Qe{_elementRef=(0,Q.WQX)($.aKT);_changeDetectorRef=(0,Q.WQX)(ie.gRc);_injector=(0,Q.WQX)(Q.zZn);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=(0,fe.Rc)();_allItems;_directDescendantItems=new $.rOR;_classList={};_panelAnimationState="void";_animationDone=new t.B;_isAnimating=(0,Q.vPA)(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(le){this._xPosition=le,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(le){this._yPosition=le,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(le){const Ne=this._previousPanelClass,ze={...this._classList};Ne&&Ne.length&&Ne.split(" ").forEach(Je=>{ze[Je]=!1}),this._previousPanelClass=le,le&&le.length&&(le.split(" ").forEach(Je=>{ze[Je]=!0}),this._elementRef.nativeElement.className=""),this._classList=ze}_previousPanelClass;get classList(){return this.panelClass}set classList(le){this.panelClass=le}closed=new $.bkB;close=this.closed;panelId=(0,Q.WQX)(ye.g).getId("mat-menu-panel-");constructor(){const le=(0,Q.WQX)(qt);this.overlayPanelClass=le.overlayPanelClass||"",this._xPosition=le.xPosition,this._yPosition=le.yPosition,this.backdropClass=le.backdropClass,this.overlapTrigger=le.overlapTrigger,this.hasBackdrop=le.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new se.B(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,T.Z)(this._directDescendantItems),(0,P.n)(le=>(0,m.h)(...le.map(Ne=>Ne._focused)))).subscribe(le=>this._keyManager.updateActiveItem(le)),this._directDescendantItems.changes.subscribe(le=>{const Ne=this._keyManager;if("enter"===this._panelAnimationState&&Ne.activeItem?._hasFocus()){const ze=le.toArray(),Je=Math.max(0,Math.min(ze.length-1,Ne.activeItemIndex||0));ze[Je]&&!ze[Je].disabled?Ne.setActiveItem(Je):Ne.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe((0,T.Z)(this._directDescendantItems),(0,P.n)(Ne=>(0,m.h)(...Ne.map(ze=>ze._hovered))))}addItem(le){}removeItem(le){}_handleKeydown(le){const Ne=le.keyCode,ze=this._keyManager;switch(Ne){case L._f:(0,Ee.rp)(le)||(le.preventDefault(),this.closed.emit("keydown"));break;case L.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case L.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Ne===L.i7||Ne===L.n6)&&ze.setFocusOrigin("keyboard"),void ze.onKeydown(le)}}focusFirstItem(le="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,$.mal)(()=>{const Ne=this._resolvePanel();if(!Ne||!Ne.contains(document.activeElement)){const ze=this._keyManager;ze.setFocusOrigin(le).setFirstItemActive(),!ze.activeItem&&Ne&&Ne.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(le){}setPositionClasses(le=this.xPosition,Ne=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===le,"mat-menu-after":"after"===le,"mat-menu-above":"above"===Ne,"mat-menu-below":"below"===Ne},this._changeDetectorRef.markForCheck()}_onAnimationDone(le){const Ne=le===de;(Ne||le===Xt)&&(Ne&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(Ne?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(le){(le===Xt||le===de)&&this._isAnimating.set(!0)}_setIsOpen(le){if(this._panelAnimationState=le?"enter":"void",le){if(0===this._keyManager.activeItemIndex){const Ne=this._resolvePanel();Ne&&(Ne.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(de),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(le?Xt:de)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe((0,T.Z)(this._allItems)).subscribe(le=>{this._directDescendantItems.reset(le.filter(Ne=>Ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let le=null;return this._directDescendantItems.length&&(le=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),le}static \u0275fac=function(Ne){return new(Ne||Qe)};static \u0275cmp=$.VBU({type:Qe,selectors:[["mat-menu"]],contentQueries:function(Ne,ze,Je){if(1&Ne&&($.wni(Je,rt,5),$.wni(Je,$e,5),$.wni(Je,$e,4)),2&Ne){let gt;$.mGM(gt=$.lsd())&&(ze.lazyContent=gt.first),$.mGM(gt=$.lsd())&&(ze._allItems=gt),$.mGM(gt=$.lsd())&&(ze.items=gt)}},viewQuery:function(Ne,ze){if(1&Ne&&$.GBs($.C4Q,5),2&Ne){let Je;$.mGM(Je=$.lsd())&&(ze.templateRef=Je.first)}},hostVars:3,hostBindings:function(Ne,ze){2&Ne&&$.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",ie.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",le=>null==le?null:(0,ie.L39)(le)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[$.Jv_([{provide:nt,useExisting:Qe}])],ngContentSelectors:Se,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(Ne,ze){1&Ne&&($.NAR(),$.PeT(0,be,3,12,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,changeDetection:0})}return Qe})();const me=new Q.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const Qe=(0,Q.WQX)(Q.zZn);return()=>(0,he.RH)(Qe)}}),et={provide:me,deps:[],useFactory:function Le(Qe){const Ie=(0,Q.WQX)(Q.zZn);return()=>(0,he.RH)(Ie)}},Vt=new WeakMap;let hn=(()=>{class Qe{_canHaveBackdrop;_element=(0,Q.WQX)($.aKT);_viewContainerRef=(0,Q.WQX)($.c1b);_menuItemInstance=(0,Q.WQX)($e,{optional:!0,self:!0});_dir=(0,Q.WQX)(re.dS,{optional:!0});_focusMonitor=(0,Q.WQX)(_e.FN);_ngZone=(0,Q.WQX)($.SKi);_injector=(0,Q.WQX)(Q.zZn);_scrollStrategy=(0,Q.WQX)(me);_changeDetectorRef=(0,Q.WQX)(ie.gRc);_animationsDisabled=(0,fe.Rc)();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=s.yU.EMPTY;_menuCloseSubscription=s.yU.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(le){le!==this._menuInternal&&(this._menuInternal=le,this._menuCloseSubscription.unsubscribe(),le&&(this._menuCloseSubscription=le.close.subscribe(Ne=>{this._destroyMenu(Ne),("click"===Ne||"tab"===Ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ne)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(le){this._canHaveBackdrop=le;const Ne=(0,Q.WQX)(nt,{optional:!0});this._parentMaterialMenu=Ne instanceof ae?Ne:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Vt.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(le){const Ne=this._menu;if(this._menuOpen||!Ne)return;this._pendingRemoval?.unsubscribe();const ze=Vt.get(Ne);Vt.set(Ne,this),ze&&ze!==this&&ze._closeMenu();const Je=this._createOverlay(Ne),gt=Je.getConfig(),zt=gt.positionStrategy;this._setPosition(Ne,zt),gt.hasBackdrop=!!this._canHaveBackdrop&&(null==Ne.hasBackdrop?!this._triggersSubmenu():Ne.hasBackdrop),Je.hasAttached()||(Je.attach(this._getPortal(Ne)),Ne.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),Ne.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,Ne.direction=this.dir,le&&Ne.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),Ne instanceof ae&&(Ne._setIsOpen(!0),Ne._directDescendantItems.changes.pipe((0,a.Q)(Ne.close)).subscribe(()=>{zt.withLockedPosition(!1).reapplyLastPosition(),zt.withLockedPosition(!0)}))}focus(le,Ne){this._focusMonitor&&le?this._focusMonitor.focusVia(this._element,le,Ne):this._element.nativeElement.focus(Ne)}_destroyMenu(le){const Ne=this._overlayRef,ze=this._menu;!Ne||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),ze instanceof ae&&this._ownsMenu(ze)?(this._pendingRemoval=ze._animationDone.pipe((0,C.s)(1)).subscribe(()=>{Ne.detach(),Vt.has(ze)||ze.lazyContent?.detach()}),ze._setIsOpen(!1)):(Ne.detach(),ze?.lazyContent?.detach()),ze&&this._ownsMenu(ze)&&Vt.delete(ze),this.restoreFocus&&("keydown"===le||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(le){le!==this._menuOpen&&(this._menuOpen=le,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(le),this._changeDetectorRef.markForCheck())}_createOverlay(le){if(!this._overlayRef){const Ne=this._getOverlayConfig(le);this._subscribeToPositions(le,Ne.positionStrategy),this._overlayRef=(0,he.Y$)(this._injector,Ne),this._overlayRef.keydownEvents().subscribe(ze=>{this._menu instanceof ae&&this._menu._handleKeydown(ze)})}return this._overlayRef}_getOverlayConfig(le){return new he.rR({positionStrategy:(0,he.$M)(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:le.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:le.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(le,Ne){le.setPositionClasses&&Ne.positionChanges.subscribe(ze=>{this._ngZone.run(()=>{le.setPositionClasses("start"===ze.connectionPair.overlayX?"after":"before","top"===ze.connectionPair.overlayY?"below":"above")})})}_setPosition(le,Ne){let[ze,Je]="before"===le.xPosition?["end","start"]:["start","end"],[gt,zt]="above"===le.yPosition?["bottom","top"]:["top","bottom"],[Ye,st]=[gt,zt],[it,He]=[ze,Je],Wt=0;if(this._triggersSubmenu()){if(He=ze="before"===le.xPosition?"start":"end",Je=it="end"===ze?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const we=this._parentMaterialMenu.items.first;this._parentInnerPadding=we?we._getHostElement().offsetTop:0}Wt="bottom"===gt?this._parentInnerPadding:-this._parentInnerPadding}}else le.overlapTrigger||(Ye="top"===gt?"bottom":"top",st="top"===zt?"bottom":"top");Ne.withPositions([{originX:ze,originY:Ye,overlayX:it,overlayY:gt,offsetY:Wt},{originX:Je,originY:Ye,overlayX:He,overlayY:gt,offsetY:Wt},{originX:ze,originY:st,overlayX:it,overlayY:zt,offsetY:-Wt},{originX:Je,originY:st,overlayX:He,overlayY:zt,offsetY:-Wt}])}_menuClosingActions(){const le=this._getOutsideClickStream(this._overlayRef),Ne=this._overlayRef.detachments(),ze=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,u.of)(),Je=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,_.p)(gt=>this._menuOpen&>!==this._menuItemInstance)):(0,u.of)();return(0,m.h)(le,ze,Je,Ne)}_getPortal(le){return(!this._portal||this._portal.templateRef!==le.templateRef)&&(this._portal=new U.VA(le.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(le){return Vt.get(le)===this}static \u0275fac=function(Ne){$.QTQ()};static \u0275dir=$.FsC({type:Qe})}return Qe})(),En=(()=>{class Qe extends hn{_cleanupTouchstart;_hoverSubscription=s.yU.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(le){this.menu=le}get menu(){return this._menu}set menu(le){this._menu=le}menuData;restoreFocus=!0;menuOpened=new $.bkB;onMenuOpen=this.menuOpened;menuClosed=new $.bkB;onMenuClose=this.menuClosed;constructor(){super(!0);const le=(0,Q.WQX)($.sFG);this._cleanupTouchstart=le.listen(this._element.nativeElement,"touchstart",Ne=>{(0,pe.w)(Ne)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(le){return le.backdropClick()}_handleMousedown(le){(0,pe._)(le)||(this._openedBy=0===le.button?"mouse":void 0,this.triggersSubmenu()&&le.preventDefault())}_handleKeydown(le){const Ne=le.keyCode;(Ne===L.Fm||Ne===L.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ne===L.LE&&"ltr"===this.dir||Ne===L.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(le){this.triggersSubmenu()?(le.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(le=>{le===this._menuItemInstance&&!le.disabled&&"void"!==this._parentMaterialMenu?._panelAnimationState&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(Ne){return new(Ne||Qe)};static \u0275dir=$.FsC({type:Qe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Ne,ze){1&Ne&&$.bIt("click",function(gt){return ze._handleClick(gt)})("mousedown",function(gt){return ze._handleMousedown(gt)})("keydown",function(gt){return ze._handleKeydown(gt)}),2&Ne&&$.BMQ("aria-haspopup",ze.menu?"menu":null)("aria-expanded",ze.menuOpen)("aria-controls",ze.menuOpen?null==ze.menu?null:ze.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[$.Vt3]})}return Qe})(),tt=(()=>{class Qe{static \u0275fac=function(Ne){return new(Ne||Qe)};static \u0275mod=$.$C({type:Qe});static \u0275inj=Q.G2t({providers:[et],imports:[ge.p,ce.y,he.z_,Oe.Gj,ce.y]})}return Qe})()},40146(ke,q,l){"use strict";l.d(q,{S:()=>A});var i=l(2615),g=l(73664),p=l(26881),D=l(70483),o=l(22466),e=l(23029);let A=(()=>{class h{static \u0275fac=function(f){return new(f||h)};static \u0275mod=g.$C({type:h});static \u0275inj=i.G2t({imports:[p.p,o.y,D.O,e.wT]})}return h})()},23029(ke,q,l){"use strict";l.d(q,{MI:()=>t,QC:()=>Ee,TL:()=>u,is:()=>pe,jb:()=>m,wT:()=>s});var o=l(89726),e=l(67336),A=l(10438),h=l(73664),d=l(17705),w=l(2615),f=l(21413),F=l(12496),M=l(63386),K=l(32046),j=l(49046),Z=l(88968);const Q=["text"],$=[[["mat-icon"]],"*"],ie=["mat-icon","*"];function _e(_,T){if(1&_&&h.nrm(0,"mat-pseudo-checkbox",1),2&_){const P=h.XpG();h.Y8G("disabled",P.disabled)("state",P.selected?"checked":"unchecked")}}function ye(_,T){if(1&_&&h.nrm(0,"mat-pseudo-checkbox",3),2&_){const P=h.XpG();h.Y8G("disabled",P.disabled)}}function se(_,T){if(1&_&&(h.j41(0,"span",4),h.EFF(1),h.k0s()),2&_){const P=h.XpG();h.R7$(),h.SpI("(",P.group.label,")")}}const pe=new w.nKC("MAT_OPTION_PARENT_COMPONENT"),Ee=new w.nKC("MatOptgroup");class t{source;isUserInput;constructor(T,P=!1){this.source=T,this.isUserInput=P}}let s=(()=>{class _{_element=(0,w.WQX)(h.aKT);_changeDetectorRef=(0,w.WQX)(d.gRc);_parent=(0,w.WQX)(pe,{optional:!0});group=(0,w.WQX)(Ee,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,w.WQX)(o.g).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(P){this._disabled.set(P)}_disabled=(0,w.vPA)(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new h.bkB;_text;_stateChanges=new f.B;constructor(){const P=(0,w.WQX)(Z.l);P.load(K.A),P.load(j.Y),this._signalDisableRipple=!!this._parent&&(0,w.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(P=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),P&&this._emitSelectionChangeEvent())}deselect(P=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),P&&this._emitSelectionChangeEvent())}focus(P,C){const a=this._getHostElement();"function"==typeof a.focus&&a.focus(C)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(P){(P.keyCode===A.Fm||P.keyCode===A.t6)&&!(0,e.rp)(P)&&(this._selectViaInteraction(),P.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const P=this.viewValue;P!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=P)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(P=!1){this.onSelectionChange.emit(new t(this,P))}static \u0275fac=function(C){return new(C||_)};static \u0275cmp=h.VBU({type:_,selectors:[["mat-option"]],viewQuery:function(C,a){if(1&C&&h.GBs(Q,7),2&C){let x;h.mGM(x=h.lsd())&&(a._text=x.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(C,a){1&C&&h.bIt("click",function(){return a._selectViaInteraction()})("keydown",function(Y){return a._handleKeydown(Y)}),2&C&&(h.Avn("id",a.id),h.BMQ("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),h.AVh("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",d.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:ie,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(C,a){1&C&&(h.NAR($),h.nVh(0,_e,1,2,"mat-pseudo-checkbox",1),h.SdG(1),h.j41(2,"span",2,0),h.SdG(4,1),h.k0s(),h.nVh(5,ye,1,1,"mat-pseudo-checkbox",3),h.nVh(6,se,2,1,"span",4),h.nrm(7,"div",5)),2&C&&(h.vxM(a.multiple?0:-1),h.R7$(5),h.vxM(a.multiple||!a.selected||a.hideSingleSelectionIndicator?-1:5),h.R7$(),h.vxM(a.group&&a.group._inert?6:-1),h.R7$(),h.Y8G("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[M.w,F.r6],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return _})();function m(_,T,P){if(P.length){let C=T.toArray(),a=P.toArray(),x=0;for(let Y=0;Y<_+1;Y++)C[Y].group&&C[Y].group===a[x]&&x++;return x}return 0}function u(_,T,P,C){return _P+C?Math.max(0,_-C+T):P}},96695(ke,q,l){"use strict";l.d(q,{Ou:()=>L,iy:()=>Ee,xX:()=>$});var i=l(2615),g=l(73664),p=l(17705),D=l(21413),o=l(92771),e=l(89726),A=l(69588),h=l(96183),d=l(23029),w=l(22598),f=l(40455),F=l(86156),M=l(88834);function K(t,s){if(1&t&&(g.j41(0,"mat-option",17),g.EFF(1),g.k0s()),2&t){const m=s.$implicit;g.Y8G("value",m),g.R7$(),g.SpI(" ",m," ")}}function j(t,s){if(1&t){const m=g.RV6();g.j41(0,"mat-form-field",14)(1,"mat-select",16,0),g.bIt("selectionChange",function(_){i.eBV(m);const T=g.XpG(2);return i.Njj(T._changePageSize(_.value))}),g.Z7z(3,K,2,2,"mat-option",17,g.fX1),g.k0s(),g.j41(5,"div",18),g.bIt("click",function(){i.eBV(m);const _=g.sdS(2);return i.Njj(_.open())}),g.k0s()()}if(2&t){const m=g.XpG(2);g.Y8G("appearance",m._formFieldAppearance)("color",m.color),g.R7$(),g.Y8G("value",m.pageSize)("disabled",m.disabled),g.jOp("aria-labelledby",m._pageSizeLabelId),g.Y8G("panelClass",m.selectConfig.panelClass||"")("disableOptionCentering",m.selectConfig.disableOptionCentering),g.R7$(2),g.Dyx(m._displayedPageSizeOptions)}}function Z(t,s){if(1&t&&(g.j41(0,"div",15),g.EFF(1),g.k0s()),2&t){const m=g.XpG(2);g.R7$(),g.JRh(m.pageSize)}}function ee(t,s){if(1&t&&(g.j41(0,"div",3)(1,"div",13),g.EFF(2),g.k0s(),g.nVh(3,j,6,7,"mat-form-field",14),g.nVh(4,Z,2,1,"div",15),g.k0s()),2&t){const m=g.XpG();g.R7$(),g.BMQ("id",m._pageSizeLabelId),g.R7$(),g.SpI(" ",m._intl.itemsPerPageLabel," "),g.R7$(),g.vxM(m._displayedPageSizeOptions.length>1?3:-1),g.R7$(),g.vxM(m._displayedPageSizeOptions.length<=1?4:-1)}}function V(t,s){if(1&t){const m=g.RV6();g.j41(0,"button",19),g.bIt("click",function(){i.eBV(m);const _=g.XpG();return i.Njj(_._buttonClicked(0,_._previousButtonsDisabled()))}),i.qSk(),g.j41(1,"svg",8),g.nrm(2,"path",20),g.k0s()()}if(2&t){const m=g.XpG();g.Y8G("matTooltip",m._intl.firstPageLabel)("matTooltipDisabled",m._previousButtonsDisabled())("disabled",m._previousButtonsDisabled())("tabindex",m._previousButtonsDisabled()?-1:null),g.BMQ("aria-label",m._intl.firstPageLabel)}}function Q(t,s){if(1&t){const m=g.RV6();g.j41(0,"button",21),g.bIt("click",function(){i.eBV(m);const _=g.XpG();return i.Njj(_._buttonClicked(_.getNumberOfPages()-1,_._nextButtonsDisabled()))}),i.qSk(),g.j41(1,"svg",8),g.nrm(2,"path",22),g.k0s()()}if(2&t){const m=g.XpG();g.Y8G("matTooltip",m._intl.lastPageLabel)("matTooltipDisabled",m._nextButtonsDisabled())("disabled",m._nextButtonsDisabled())("tabindex",m._nextButtonsDisabled()?-1:null),g.BMQ("aria-label",m._intl.lastPageLabel)}}let $=(()=>{class t{changes=new D.B;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(m,u,_)=>{if(0==_||0==u)return`0 of ${_}`;const T=m*u;return`${T+1} \u2013 ${T<(_=Math.max(_,0))?Math.min(T+u,_):T+u} of ${_}`};static \u0275fac=function(u){return new(u||t)};static \u0275prov=i.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const _e={provide:$,deps:[[new g.Xx1,new g.kdw,$]],useFactory:function ie(t){return t||new $}},pe=new i.nKC("MAT_PAGINATOR_DEFAULT_OPTIONS");let Ee=(()=>{class t{_intl=(0,i.WQX)($);_changeDetectorRef=(0,i.WQX)(p.gRc);_formFieldAppearance;_pageSizeLabelId=(0,i.WQX)(e.g).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new o.m(1);color;get pageIndex(){return this._pageIndex}set pageIndex(m){this._pageIndex=Math.max(m||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(m){this._length=m||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(m){this._pageSize=Math.max(m||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(m){this._pageSizeOptions=(m||[]).map(u=>(0,p.Udg)(u,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new g.bkB;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){const m=this._intl,u=(0,i.WQX)(pe,{optional:!0});if(this._intlChanges=m.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:_,pageSizeOptions:T,hidePageSize:P,showFirstLastButtons:C}=u;null!=_&&(this._pageSize=_),null!=T&&(this._pageSizeOptions=T),null!=P&&(this.hidePageSize=P),null!=C&&(this.showFirstLastButtons=C)}this._formFieldAppearance=u?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const m=this.getNumberOfPages()-1;return this.pageIndexm-u),this._changeDetectorRef.markForCheck())}_emitPageEvent(m){this.page.emit({previousPageIndex:m,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(m){const u=this.pageIndex;m!==u&&(this.pageIndex=m,this._emitPageEvent(u))}_buttonClicked(m,u){u||this._navigate(m)}static \u0275fac=function(u){return new(u||t)};static \u0275cmp=g.VBU({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",p.Udg],length:[2,"length","length",p.Udg],pageSize:[2,"pageSize","pageSize",p.Udg],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",p.L39],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",p.L39],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",p.L39]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(u,_){1&u&&(g.j41(0,"div",1)(1,"div",2),g.nVh(2,ee,5,4,"div",3),g.j41(3,"div",4)(4,"div",5),g.EFF(5),g.k0s(),g.nVh(6,V,3,5,"button",6),g.j41(7,"button",7),g.bIt("click",function(){return _._buttonClicked(_.pageIndex-1,_._previousButtonsDisabled())}),i.qSk(),g.j41(8,"svg",8),g.nrm(9,"path",9),g.k0s()(),i.joV(),g.j41(10,"button",10),g.bIt("click",function(){return _._buttonClicked(_.pageIndex+1,_._nextButtonsDisabled())}),i.qSk(),g.j41(11,"svg",8),g.nrm(12,"path",11),g.k0s()(),g.nVh(13,Q,3,5,"button",12),g.k0s()()()),2&u&&(g.R7$(2),g.vxM(_.hidePageSize?-1:2),g.R7$(3),g.SpI(" ",_._intl.getRangeLabel(_.pageIndex,_.pageSize,_.length)," "),g.R7$(),g.vxM(_.showFirstLastButtons?6:-1),g.R7$(),g.Y8G("matTooltip",_._intl.previousPageLabel)("matTooltipDisabled",_._previousButtonsDisabled())("disabled",_._previousButtonsDisabled())("tabindex",_._previousButtonsDisabled()?-1:null),g.BMQ("aria-label",_._intl.previousPageLabel),g.R7$(3),g.Y8G("matTooltip",_._intl.nextPageLabel)("matTooltipDisabled",_._nextButtonsDisabled())("disabled",_._nextButtonsDisabled())("tabindex",_._nextButtonsDisabled()?-1:null),g.BMQ("aria-label",_._intl.nextPageLabel),g.R7$(3),g.vxM(_.showFirstLastButtons?13:-1))},dependencies:[A.rl,h.VO,d.wT,w.iY,f.oV],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}\n"],encapsulation:2,changeDetection:0})}return t})(),L=(()=>{class t{static \u0275fac=function(u){return new(u||t)};static \u0275mod=g.$C({type:t});static \u0275inj=i.G2t({providers:[_e],imports:[M.Hl,h.Ve,F.u,Ee]})}return t})()},67575(ke,q,l){"use strict";l.d(q,{HM:()=>w,PO:()=>F});var i=l(2615),g=l(73664),p=l(17705),D=l(31804),o=l(22466);function e(M,K){1&M&&g.Hgh(0,"div",2)}const A=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let w=(()=>{class M{_elementRef=(0,i.WQX)(g.aKT);_ngZone=(0,i.WQX)(g.SKi);_changeDetectorRef=(0,i.WQX)(p.gRc);_renderer=(0,i.WQX)(g.sFG);_cleanupTransitionEnd;constructor(){const j=(0,D._J)(),Z=(0,i.WQX)(A,{optional:!0});this._isNoopAnimation="di-disabled"===j,"reduced-motion"===j&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion"),Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation;get color(){return this._color||this._defaultColor}set color(j){this._color=j}_color;_defaultColor="primary";get value(){return this._value}set value(j){this._value=f(j||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(j){this._bufferValue=f(j||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new g.bkB;get mode(){return this._mode}set mode(j){this._mode=j,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler)})}ngOnDestroy(){this._cleanupTransitionEnd?.()}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}_transitionendHandler=j=>{0===this.animationEnd.observers.length||!j.target||!j.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(Z){return new(Z||M)};static \u0275cmp=g.VBU({type:M,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(Z,ee){2&Z&&(g.BMQ("aria-valuenow",ee._isIndeterminate()?null:ee.value)("mode",ee.mode),g.HbH("mat-"+ee.color),g.AVh("_mat-animation-noopable",ee._isNoopAnimation)("mdc-linear-progress--animation-ready",!ee._isNoopAnimation)("mdc-linear-progress--indeterminate",ee._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",p.Udg],bufferValue:[2,"bufferValue","bufferValue",p.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(Z,ee){1&Z&&(g.rj2(0,"div",0),g.Hgh(1,"div",1),g.nVh(2,e,1,0,"div",2),g.eux(),g.rj2(3,"div",3),g.Hgh(4,"span",4),g.eux(),g.rj2(5,"div",5),g.Hgh(6,"span",4),g.eux()),2&Z&&(g.R7$(),g.xc7("flex-basis",ee._getBufferBarFlexBasis()),g.R7$(),g.vxM("buffer"===ee.mode?2:-1),g.R7$(),g.xc7("transform",ee._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}\n"],encapsulation:2,changeDetection:0})}return M})();function f(M,K=0,j=100){return Math.max(K,Math.min(j,M))}let F=(()=>{class M{static \u0275fac=function(Z){return new(Z||M)};static \u0275mod=g.$C({type:M});static \u0275inj=i.G2t({imports:[o.y]})}return M})()},9183(ke,q,l){"use strict";l.d(q,{D6:()=>j,LG:()=>M});var i=l(2615),g=l(73664),p=l(17705),D=l(72200),o=l(31804),e=l(22466);const A=["determinateSpinner"];function h(Z,ee){if(1&Z&&(i.qSk(),g.j41(0,"svg",11),g.nrm(1,"circle",12),g.k0s()),2&Z){const V=g.XpG();g.BMQ("viewBox",V._viewBox()),g.R7$(),g.xc7("stroke-dasharray",V._strokeCircumference(),"px")("stroke-dashoffset",V._strokeCircumference()/2,"px")("stroke-width",V._circleStrokeWidth(),"%"),g.BMQ("r",V._circleRadius())}}const d=new i.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function w(){return{diameter:f}}}),f=100;let M=(()=>{class Z{_elementRef=(0,i.WQX)(g.aKT);_noopAnimations;get color(){return this._color||this._defaultColor}set color(V){this._color=V}_color;_defaultColor="primary";_determinateCircle;constructor(){const V=(0,i.WQX)(d),Q=(0,o._J)(),$=this._elementRef.nativeElement;this._noopAnimations="di-disabled"===Q&&!!V&&!V._forceAnimations,this.mode="mat-spinner"===$.nodeName.toLowerCase()?"indeterminate":"determinate",!this._noopAnimations&&"reduced-motion"===Q&&$.classList.add("mat-progress-spinner-reduced-motion"),V&&(V.color&&(this.color=this._defaultColor=V.color),V.diameter&&(this.diameter=V.diameter),V.strokeWidth&&(this.strokeWidth=V.strokeWidth))}mode;get value(){return"determinate"===this.mode?this._value:0}set value(V){this._value=Math.max(0,Math.min(100,V||0))}_value=0;get diameter(){return this._diameter}set diameter(V){this._diameter=V||0}_diameter=f;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(V){this._strokeWidth=V||0}_strokeWidth;_circleRadius(){return(this.diameter-10)/2}_viewBox(){const V=2*this._circleRadius()+this.strokeWidth;return`0 0 ${V} ${V}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(Q){return new(Q||Z)};static \u0275cmp=g.VBU({type:Z,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(Q,$){if(1&Q&&g.GBs(A,5),2&Q){let ie;g.mGM(ie=g.lsd())&&($._determinateCircle=ie.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(Q,$){2&Q&&(g.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===$.mode?$.value:null)("mode",$.mode),g.HbH("mat-"+$.color),g.xc7("width",$.diameter,"px")("height",$.diameter,"px")("--mat-progress-spinner-size",$.diameter+"px")("--mat-progress-spinner-active-indicator-width",$.diameter+"px"),g.AVh("_mat-animation-noopable",$._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===$.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",p.Udg],diameter:[2,"diameter","diameter",p.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",p.Udg]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(Q,$){if(1&Q&&(g.DNE(0,h,2,8,"ng-template",null,0,g.C5r),g.j41(2,"div",2,1),i.qSk(),g.j41(4,"svg",3),g.nrm(5,"circle",4),g.k0s()(),i.joV(),g.j41(6,"div",5)(7,"div",6)(8,"div",7),g.eu8(9,8),g.k0s(),g.j41(10,"div",9),g.eu8(11,8),g.k0s(),g.j41(12,"div",10),g.eu8(13,8),g.k0s()()()),2&Q){const ie=g.sdS(1);g.R7$(4),g.BMQ("viewBox",$._viewBox()),g.R7$(),g.xc7("stroke-dasharray",$._strokeCircumference(),"px")("stroke-dashoffset",$._strokeDashOffset(),"px")("stroke-width",$._circleStrokeWidth(),"%"),g.BMQ("r",$._circleRadius()),g.R7$(4),g.Y8G("ngTemplateOutlet",ie),g.R7$(2),g.Y8G("ngTemplateOutlet",ie),g.R7$(2),g.Y8G("ngTemplateOutlet",ie)}},dependencies:[D.T3],styles:[".mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}\n"],encapsulation:2,changeDetection:0})}return Z})(),j=(()=>{class Z{static \u0275fac=function(Q){return new(Q||Z)};static \u0275mod=g.$C({type:Z});static \u0275inj=i.G2t({imports:[e.y]})}return Z})()},70483(ke,q,l){"use strict";l.d(q,{O:()=>D});var i=l(2615),g=l(73664),p=l(22466);let D=(()=>{class o{static \u0275fac=function(h){return new(h||o)};static \u0275mod=g.$C({type:o});static \u0275inj=i.G2t({imports:[p.y]})}return o})()},63386(ke,q,l){"use strict";l.d(q,{w:()=>p});var i=l(73664),g=l(31804);let p=(()=>{class D{_animationsDisabled=(0,g.Rc)();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(A){return new(A||D)};static \u0275cmp=i.VBU({type:D,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(A,h){2&A&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===h.state)("mat-pseudo-checkbox-checked","checked"===h.state)("mat-pseudo-checkbox-disabled",h.disabled)("mat-pseudo-checkbox-minimal","minimal"===h.appearance)("mat-pseudo-checkbox-full","full"===h.appearance)("_mat-animation-noopable",h._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(A,h){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}\n'],encapsulation:2,changeDetection:0})}return D})()},5951(ke,q,l){"use strict";l.d(q,{VT:()=>ye,Wk:()=>pe,_g:()=>se});var i=l(76838),g=l(89726),p=l(18689),D=l(2615),o=l(73664),e=l(17705),A=l(89417),h=l(88968),d=l(31804),w=l(32046),f=l(12496),F=l(53155),M=l(22466),K=l(26881);const j=["input"],Z=["formField"],ee=["*"];class V{source;value;constructor(L,t){this.source=L,this.value=t}}const Q={provide:A.kq,useExisting:(0,D.Rfq)(()=>ye),multi:!0},$=new D.nKC("MatRadioGroup"),ie=new D.nKC("mat-radio-default-options",{providedIn:"root",factory:function _e(){return{color:"accent",disabledInteractive:!1}}});let ye=(()=>{class Ee{_changeDetector=(0,D.WQX)(e.gRc);_value=null;_name=(0,D.WQX)(g.g).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new o.bkB;_radios;color;get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=t,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(t=>t===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(s=>{s.checked=this.value===s.value,s.checked&&(this._selected=s)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new V(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=o.FsC({type:Ee,selectors:[["mat-radio-group"]],contentQueries:function(s,m,u){if(1&s&&o.wni(u,se,5),2&s){let _;o.mGM(_=o.lsd())&&(m._radios=_)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",e.L39],required:[2,"required","required",e.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",e.L39]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[o.Jv_([Q,{provide:$,useExisting:Ee}])]})}return Ee})(),se=(()=>{class Ee{_elementRef=(0,D.WQX)(o.aKT);_changeDetector=(0,D.WQX)(e.gRc);_focusMonitor=(0,D.WQX)(i.FN);_radioDispatcher=(0,D.WQX)(p.z);_defaultOptions=(0,D.WQX)(ie,{optional:!0});_ngZone=(0,D.WQX)(o.SKi);_renderer=(0,D.WQX)(o.sFG);_uniqueId=(0,D.WQX)(g.g).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(t){this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}_labelPosition;get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(t)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){t!==this._required&&this._changeDetector.markForCheck(),this._required=t}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(t){this._color=t}_color;get disabledInteractive(){return this._disabledInteractive||null!==this.radioGroup&&this.radioGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new o.bkB;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=(0,d.Rc)();_injector=(0,D.WQX)(D.zZn);constructor(){(0,D.WQX)(h.l).load(w.A);const t=(0,D.WQX)($,{optional:!0}),s=(0,D.WQX)(new e.ES_("tabindex"),{optional:!0});this.radioGroup=t,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,s&&(this.tabIndex=(0,e.Udg)(s,0))}focus(t,s){s?this._focusMonitor.focusVia(this._inputElement,s,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((t,s)=>{t!==this.id&&s===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new V(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(t){if(t.stopPropagation(),!this.checked&&!this.disabled){const s=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),s&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(t){this._onInputInteraction(t),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}_onInputClick=t=>{this.disabled&&this.disabledInteractive&&t.preventDefault()};_updateTabIndex(){const t=this.radioGroup;let s;if(s=t&&t.selected&&!this.disabled?t.selected===this?this.tabIndex:-1:this.tabIndex,s!==this._previousTabIndex){const m=this._inputElement?.nativeElement;m&&(m.setAttribute("tabindex",s+""),this._previousTabIndex=s,(0,o.mal)(()=>{queueMicrotask(()=>{t&&t.selected&&t.selected!==this&&document.activeElement===m&&(t.selected?._inputElement.nativeElement.focus(),document.activeElement===m&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(s){return new(s||Ee)};static \u0275cmp=o.VBU({type:Ee,selectors:[["mat-radio-button"]],viewQuery:function(s,m){if(1&s&&(o.GBs(j,5),o.GBs(Z,7,o.aKT)),2&s){let u;o.mGM(u=o.lsd())&&(m._inputElement=u.first),o.mGM(u=o.lsd())&&(m._rippleTrigger=u.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(s,m){1&s&&o.bIt("focus",function(){return m._inputElement.nativeElement.focus()}),2&s&&(o.BMQ("id",m.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),o.AVh("mat-primary","primary"===m.color)("mat-accent","accent"===m.color)("mat-warn","warn"===m.color)("mat-mdc-radio-checked",m.checked)("mat-mdc-radio-disabled",m.disabled)("mat-mdc-radio-disabled-interactive",m.disabledInteractive)("_mat-animation-noopable",m._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",e.L39],tabIndex:[2,"tabIndex","tabIndex",t=>null==t?0:(0,e.Udg)(t)],checked:[2,"checked","checked",e.L39],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",e.L39],required:[2,"required","required",e.L39],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",e.L39]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:ee,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(s,m){if(1&s){const u=o.RV6();o.NAR(),o.j41(0,"div",2,0)(2,"div",3)(3,"div",4),o.bIt("click",function(T){return D.eBV(u),D.Njj(m._onTouchTargetClick(T))}),o.k0s(),o.j41(4,"input",5,1),o.bIt("change",function(T){return D.eBV(u),D.Njj(m._onInputInteraction(T))}),o.k0s(),o.j41(6,"div",6),o.nrm(7,"div",7)(8,"div",8),o.k0s(),o.j41(9,"div",9),o.nrm(10,"div",10),o.k0s()(),o.j41(11,"label",11),o.SdG(12),o.k0s()()}2&s&&(o.Y8G("labelPosition",m.labelPosition),o.R7$(2),o.AVh("mdc-radio--disabled",m.disabled),o.R7$(2),o.Y8G("id",m.inputId)("checked",m.checked)("disabled",m.disabled&&!m.disabledInteractive)("required",m.required),o.BMQ("name",m.name)("value",m.value)("aria-label",m.ariaLabel)("aria-labelledby",m.ariaLabelledby)("aria-describedby",m.ariaDescribedby)("aria-disabled",m.disabled&&m.disabledInteractive?"true":null),o.R7$(5),o.Y8G("matRippleTrigger",m._rippleTrigger.nativeElement)("matRippleDisabled",m._isRippleDisabled())("matRippleCentered",!0),o.R7$(2),o.Y8G("for",m.inputId))},dependencies:[f.r6,F.t],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],encapsulation:2,changeDetection:0})}return Ee})(),pe=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275mod=o.$C({type:Ee});static \u0275inj=D.G2t({imports:[M.y,K.p,se,M.y]})}return Ee})()},11048(ke,q,l){"use strict";l.d(q,{E:()=>M});var i=l(2615),g=l(73664),p=l(39842),D=l(44522),o=l(31804),e=l(12496);const A={capture:!0},h=["focus","mousedown","mouseenter","touchstart"],d="mat-ripple-loader-uninitialized",w="mat-ripple-loader-class-name",f="mat-ripple-loader-centered",F="mat-ripple-loader-disabled";let M=(()=>{class K{_document=(0,i.WQX)(i.qQL);_animationsDisabled=(0,o.Rc)();_globalRippleOptions=(0,i.WQX)(e.$E,{optional:!0});_platform=(0,i.WQX)(p.O);_ngZone=(0,i.WQX)(g.SKi);_injector=(0,i.WQX)(i.zZn);_eventCleanups;_hosts=new Map;constructor(){const Z=(0,i.WQX)(g._9s).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>h.map(ee=>Z.listen(this._document,ee,this._onInteraction,A)))}ngOnDestroy(){const Z=this._hosts.keys();for(const ee of Z)this.destroyRipple(ee);this._eventCleanups.forEach(ee=>ee())}configureRipple(Z,ee){Z.setAttribute(d,this._globalRippleOptions?.namespace??""),(ee.className||!Z.hasAttribute(w))&&Z.setAttribute(w,ee.className||""),ee.centered&&Z.setAttribute(f,""),ee.disabled&&Z.setAttribute(F,"")}setDisabled(Z,ee){const V=this._hosts.get(Z);V?(V.target.rippleDisabled=ee,!ee&&!V.hasSetUpEvents&&(V.hasSetUpEvents=!0,V.renderer.setupTriggerEvents(Z))):ee?Z.setAttribute(F,""):Z.removeAttribute(F)}_onInteraction=Z=>{const ee=(0,D.Fb)(Z);if(ee instanceof HTMLElement){const V=ee.closest(`[${d}="${this._globalRippleOptions?.namespace??""}"]`);V&&this._createRipple(V)}};_createRipple(Z){if(!this._document||this._hosts.has(Z))return;Z.querySelector(".mat-ripple")?.remove();const ee=this._document.createElement("span");ee.classList.add("mat-ripple",Z.getAttribute(w)),Z.append(ee);const V=this._globalRippleOptions,Q=this._animationsDisabled?0:V?.animation?.enterDuration??e.EX.enterDuration,$=this._animationsDisabled?0:V?.animation?.exitDuration??e.EX.exitDuration,ie={rippleDisabled:this._animationsDisabled||V?.disabled||Z.hasAttribute(F),rippleConfig:{centered:Z.hasAttribute(f),terminateOnPointerUp:V?.terminateOnPointerUp,animation:{enterDuration:Q,exitDuration:$}}},_e=new e.ug(ie,this._ngZone,ee,this._platform,this._injector),ye=!ie.rippleDisabled;ye&&_e.setupTriggerEvents(Z),this._hosts.set(Z,{target:ie,renderer:_e,hasSetUpEvents:ye}),Z.removeAttribute(d)}destroyRipple(Z){const ee=this._hosts.get(Z);ee&&(ee.renderer._removeTriggerEvents(),this._hosts.delete(Z))}static \u0275fac=function(ee){return new(ee||K)};static \u0275prov=i.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})()},26881(ke,q,l){"use strict";l.d(q,{p:()=>D});var i=l(2615),g=l(73664),p=l(22466);let D=(()=>{class o{static \u0275fac=function(h){return new(h||o)};static \u0275mod=g.$C({type:o});static \u0275inj=i.G2t({imports:[p.y,p.y]})}return o})()},12496(ke,q,l){"use strict";l.d(q,{$E:()=>_e,EX:()=>K,r6:()=>ye,ug:()=>$});var i=l(39842),g=l(83300),p=l(44522),D=l(73664),o=l(2615),e=l(95735),A=l(67847),h=l(88968),d=l(31804),w=function(se){return se[se.FADING_IN=0]="FADING_IN",se[se.VISIBLE=1]="VISIBLE",se[se.FADING_OUT=2]="FADING_OUT",se[se.HIDDEN=3]="HIDDEN",se}(w||{});class f{_renderer;element;config;_animationForciblyDisabledThroughCss;state=w.HIDDEN;constructor(pe,Ee,L,t=!1){this._renderer=pe,this.element=Ee,this.config=L,this._animationForciblyDisabledThroughCss=t}fadeOut(){this._renderer.fadeOutRipple(this)}}const F=(0,g.B)({passive:!0,capture:!0});class M{_events=new Map;addHandler(pe,Ee,L,t){const s=this._events.get(Ee);if(s){const m=s.get(L);m?m.add(t):s.set(L,new Set([t]))}else this._events.set(Ee,new Map([[L,new Set([t])]])),pe.runOutsideAngular(()=>{document.addEventListener(Ee,this._delegateEventHandler,F)})}removeHandler(pe,Ee,L){const t=this._events.get(pe);if(!t)return;const s=t.get(Ee);s&&(s.delete(L),0===s.size&&t.delete(Ee),0===t.size&&(this._events.delete(pe),document.removeEventListener(pe,this._delegateEventHandler,F)))}_delegateEventHandler=pe=>{const Ee=(0,p.Fb)(pe);Ee&&this._events.get(pe.type)?.forEach((L,t)=>{(t===Ee||t.contains(Ee))&&L.forEach(s=>s.handleEvent(pe))})}}const K={enterDuration:225,exitDuration:150},Z=(0,g.B)({passive:!0,capture:!0}),ee=["mousedown","touchstart"],V=["mouseup","mouseleave","touchend","touchcancel"];let Q=(()=>{class se{static \u0275fac=function(L){return new(L||se)};static \u0275cmp=D.VBU({type:se,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(L,t){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}\n"],encapsulation:2,changeDetection:0})}return se})();class ${_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new M;constructor(pe,Ee,L,t,s){this._target=pe,this._ngZone=Ee,this._platform=t,t.isBrowser&&(this._containerElement=(0,A.i8)(L)),s&&s.get(h.l).load(Q)}fadeInRipple(pe,Ee,L={}){const t=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s={...K,...L.animation};L.centered&&(pe=t.left+t.width/2,Ee=t.top+t.height/2);const m=L.radius||function ie(se,pe,Ee){const L=Math.max(Math.abs(se-Ee.left),Math.abs(se-Ee.right)),t=Math.max(Math.abs(pe-Ee.top),Math.abs(pe-Ee.bottom));return Math.sqrt(L*L+t*t)}(pe,Ee,t),u=pe-t.left,_=Ee-t.top,T=s.enterDuration,P=document.createElement("div");P.classList.add("mat-ripple-element"),P.style.left=u-m+"px",P.style.top=_-m+"px",P.style.height=2*m+"px",P.style.width=2*m+"px",null!=L.color&&(P.style.backgroundColor=L.color),P.style.transitionDuration=`${T}ms`,this._containerElement.appendChild(P);const C=window.getComputedStyle(P),x=C.transitionDuration,Y="none"===C.transitionProperty||"0s"===x||"0s, 0s"===x||0===t.width&&0===t.height,R=new f(this,P,L,Y);P.style.transform="scale3d(1, 1, 1)",R.state=w.FADING_IN,L.persistent||(this._mostRecentTransientRipple=R);let U=null;return!Y&&(T||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const fe=()=>{U&&(U.fallbackTimer=null),clearTimeout(he),this._finishRippleTransition(R)},re=()=>this._destroyRipple(R),he=setTimeout(re,T+100);P.addEventListener("transitionend",fe),P.addEventListener("transitioncancel",re),U={onTransitionEnd:fe,onTransitionCancel:re,fallbackTimer:he}}),this._activeRipples.set(R,U),(Y||!T)&&this._finishRippleTransition(R),R}fadeOutRipple(pe){if(pe.state===w.FADING_OUT||pe.state===w.HIDDEN)return;const Ee=pe.element,L={...K,...pe.config.animation};Ee.style.transitionDuration=`${L.exitDuration}ms`,Ee.style.opacity="0",pe.state=w.FADING_OUT,(pe._animationForciblyDisabledThroughCss||!L.exitDuration)&&this._finishRippleTransition(pe)}fadeOutAll(){this._getActiveRipples().forEach(pe=>pe.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(pe=>{pe.config.persistent||pe.fadeOut()})}setupTriggerEvents(pe){const Ee=(0,A.i8)(pe);!this._platform.isBrowser||!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,ee.forEach(L=>{$._eventManager.addHandler(this._ngZone,L,Ee,this)}))}handleEvent(pe){"mousedown"===pe.type?this._onMousedown(pe):"touchstart"===pe.type?this._onTouchStart(pe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{V.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,Z)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(pe){pe.state===w.FADING_IN?this._startFadeOutTransition(pe):pe.state===w.FADING_OUT&&this._destroyRipple(pe)}_startFadeOutTransition(pe){const Ee=pe===this._mostRecentTransientRipple,{persistent:L}=pe.config;pe.state=w.VISIBLE,!L&&(!Ee||!this._isPointerDown)&&pe.fadeOut()}_destroyRipple(pe){const Ee=this._activeRipples.get(pe)??null;this._activeRipples.delete(pe),this._activeRipples.size||(this._containerRect=null),pe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),pe.state=w.HIDDEN,null!==Ee&&(pe.element.removeEventListener("transitionend",Ee.onTransitionEnd),pe.element.removeEventListener("transitioncancel",Ee.onTransitionCancel),null!==Ee.fallbackTimer&&clearTimeout(Ee.fallbackTimer)),pe.element.remove()}_onMousedown(pe){const Ee=(0,e._)(pe),L=this._lastTouchStartEvent&&Date.now(){!pe.config.persistent&&(pe.state===w.VISIBLE||pe.config.terminateOnPointerUp&&pe.state===w.FADING_IN)&&pe.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const pe=this._triggerElement;pe&&(ee.forEach(Ee=>$._eventManager.removeHandler(Ee,pe,this)),this._pointerUpEventsRegistered&&(V.forEach(Ee=>pe.removeEventListener(Ee,this,Z)),this._pointerUpEventsRegistered=!1))}}const _e=new o.nKC("mat-ripple-global-options");let ye=(()=>{class se{_elementRef=(0,o.WQX)(D.aKT);_animationsDisabled=(0,d.Rc)();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(Ee){Ee&&this.fadeOutAllNonPersistent(),this._disabled=Ee,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ee){this._trigger=Ee,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const Ee=(0,o.WQX)(D.SKi),L=(0,o.WQX)(i.O),t=(0,o.WQX)(_e,{optional:!0}),s=(0,o.WQX)(o.zZn);this._globalOptions=t||{},this._rippleRenderer=new $(this,Ee,this._elementRef,L,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,...this._animationsDisabled?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Ee,L=0,t){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,L,{...this.rippleConfig,...t}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ee})}static \u0275fac=function(L){return new(L||se)};static \u0275dir=D.FsC({type:se,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(L,t){2&L&&D.AVh("mat-ripple-unbounded",t.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return se})()},96183(ke,q,l){"use strict";l.d(q,{$2:()=>be,JO:()=>Re,VO:()=>Se,Ve:()=>nt});var i=l(49338),g=l(2615),p=l(73664),D=l(17705),o=l(5718),e=l(18617),A=l(17094),h=l(89726),d=l(99090),w=l(61577),f=l(83869),F=l(67336),M=l(10438),K=l(89417),j=l(21413),Z=l(59030),ee=l(57786),V=l(5964),Q=l(96354),$=l(99172),ie=l(25558),_e=l(96697),ye=l(56977),se=l(72200),pe=l(69588),Ee=l(31804),L=l(23029),t=l(2709),s=l(39336),m=l(40146),u=l(22466),_=l(71228);const T=["trigger"],P=["panel"],C=[[["mat-select-trigger"]],"*"],a=["mat-select-trigger","*"];function x($e,dt){if(1&$e&&(p.j41(0,"span",4),p.EFF(1),p.k0s()),2&$e){const yt=p.XpG();p.R7$(),p.JRh(yt.placeholder)}}function Y($e,dt){1&$e&&p.SdG(0)}function R($e,dt){if(1&$e&&(p.j41(0,"span",11),p.EFF(1),p.k0s()),2&$e){const yt=p.XpG(2);p.R7$(),p.JRh(yt.triggerValue)}}function U($e,dt){if(1&$e&&(p.j41(0,"span",5),p.nVh(1,Y,1,0)(2,R,2,1,"span",11),p.k0s()),2&$e){const yt=p.XpG();p.R7$(),p.vxM(yt.customTrigger?1:2)}}function fe($e,dt){if(1&$e){const yt=p.RV6();p.j41(0,"div",12,1),p.bIt("keydown",function(rt){g.eBV(yt);const Mn=p.XpG();return g.Njj(Mn._handleKeydown(rt))}),p.SdG(2,1),p.k0s()}if(2&$e){const yt=p.XpG();p.HbH(p.VkB("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",yt._getPanelTheme())),p.AVh("mat-select-panel-animations-enabled",!yt._animationsDisabled),p.Y8G("ngClass",yt.panelClass),p.BMQ("id",yt.id+"-panel")("aria-multiselectable",yt.multiple)("aria-label",yt.ariaLabel||null)("aria-labelledby",yt._getPanelAriaLabelledby())}}const ge=new g.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const $e=(0,g.WQX)(g.zZn);return()=>(0,i.RH)($e)}}),Re=new g.nKC("MAT_SELECT_CONFIG"),Me={provide:ge,deps:[],useFactory:function ce($e){const dt=(0,g.WQX)(g.zZn);return()=>(0,i.RH)(dt)}},ve=new g.nKC("MatSelectTrigger");class oe{source;value;constructor(dt,yt){this.source=dt,this.value=yt}}let Se=(()=>{class $e{_viewportRuler=(0,g.WQX)(o.Xj);_changeDetectorRef=(0,g.WQX)(D.gRc);_elementRef=(0,g.WQX)(p.aKT);_dir=(0,g.WQX)(w.dS,{optional:!0});_idGenerator=(0,g.WQX)(h.g);_renderer=(0,g.WQX)(p.sFG);_parentFormField=(0,g.WQX)(pe.xb,{optional:!0});ngControl=(0,g.WQX)(K.vO,{self:!0,optional:!0});_liveAnnouncer=(0,g.WQX)(A.Ai);_defaultOptions=(0,g.WQX)(Re,{optional:!0});_animationsDisabled=(0,Ee.Rc)();_initialized=new j.B;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(yt){const Et=this.options.toArray()[yt];if(Et){const rt=this.panel.nativeElement,Mn=(0,L.jb)(yt,this.options,this.optionGroups),qt=Et._getHostElement();rt.scrollTop=0===yt&&1===Mn?0:(0,L.TL)(qt.offsetTop,qt.offsetHeight,rt.scrollTop,rt.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(yt){return new oe(this,yt)}_scrollStrategyFactory=(0,g.WQX)(ge);_panelOpen=!1;_compareWith=(yt,Et)=>yt===Et;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new j.B;_errorStateTracker;stateChanges=new j.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(yt){this._disableRipple.set(yt)}_disableRipple=(0,g.vPA)(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(yt){this._hideSingleSelectionIndicator=yt,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(yt){this._placeholder=yt,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(K.k0.required)??!1}set required(yt){this._required=yt,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(yt){this._multiple=yt}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(yt){this._compareWith=yt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(yt){this._assignValue(yt)&&this._onChange(yt)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(yt){this._errorStateTracker.matcher=yt}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(yt){this._id=yt||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(yt){this._errorStateTracker.errorState=yt}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=(0,Z.v)(()=>{const yt=this.options;return yt?yt.changes.pipe((0,$.Z)(yt),(0,ie.n)(()=>(0,ee.h)(...yt.map(Et=>Et.onSelectionChange)))):this._initialized.pipe((0,ie.n)(()=>this.optionSelectionChanges))});openedChange=new p.bkB;_openedStream=this.openedChange.pipe((0,V.p)(yt=>yt),(0,Q.T)(()=>{}));_closedStream=this.openedChange.pipe((0,V.p)(yt=>!yt),(0,Q.T)(()=>{}));selectionChange=new p.bkB;valueChange=new p.bkB;constructor(){const yt=(0,g.WQX)(t.e),Et=(0,g.WQX)(K.cV,{optional:!0}),rt=(0,g.WQX)(K.j4,{optional:!0}),Mn=(0,g.WQX)(new D.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new s.X(yt,this.ngControl,rt,Et,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Mn?0:parseInt(Mn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new f.C(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe((0,ye.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,ye.Q)(this._destroy)).subscribe(yt=>{yt.added.forEach(Et=>Et.select()),yt.removed.forEach(Et=>Et.deselect())}),this.options.changes.pipe((0,$.Z)(null),(0,ye.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const yt=this._getTriggerAriaLabelledby(),Et=this.ngControl;if(yt!==this._triggerAriaLabelledBy){const rt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=yt,yt?rt.setAttribute("aria-labelledby",yt):rt.removeAttribute("aria-labelledby")}Et&&(this._previousControl!==Et.control&&(void 0!==this._previousControl&&null!==Et.disabled&&Et.disabled!==this.disabled&&(this.disabled=Et.disabled),this._previousControl=Et.control),this.updateErrorState())}ngOnChanges(yt){(yt.disabled||yt.userAriaDescribedBy)&&this.stateChanges.next(),yt.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe((0,_e.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){const yt=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!yt)return;const Et=`${this.id}-panel`;this._trackedModal&&(0,e.Ae)(this._trackedModal,"aria-owns",Et),(0,e.px)(yt,"aria-owns",Et),this._trackedModal=yt}_clearFromModal(){this._trackedModal&&((0,e.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel)return void this._detachOverlay();this._cleanupDetach?.(),this._cleanupDetach=()=>{Et(),clearTimeout(rt),this._cleanupDetach=void 0};const yt=this.panel.nativeElement,Et=this._renderer.listen(yt,"animationend",Mn=>{"_mat-select-exit"===Mn.animationName&&(this._cleanupDetach?.(),this._detachOverlay())}),rt=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);yt.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(yt){this._assignValue(yt)}registerOnChange(yt){this._onChange=yt}registerOnTouched(yt){this._onTouched=yt}setDisabledState(yt){this.disabled=yt,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const yt=this._selectionModel.selected.map(Et=>Et.viewValue);return this._isRtl()&&yt.reverse(),yt.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(yt){this.disabled||(this.panelOpen?this._handleOpenKeydown(yt):this._handleClosedKeydown(yt))}_handleClosedKeydown(yt){const Et=yt.keyCode,rt=Et===M.n6||Et===M.i7||Et===M.UQ||Et===M.LE,Mn=Et===M.Fm||Et===M.t6,qt=this._keyManager;if(!qt.isTyping()&&Mn&&!(0,F.rp)(yt)||(this.multiple||yt.altKey)&&rt)yt.preventDefault(),this.open();else if(!this.multiple){const S=this.selected;qt.onKeydown(yt);const Xt=this.selected;Xt&&S!==Xt&&this._liveAnnouncer.announce(Xt.viewValue,1e4)}}_handleOpenKeydown(yt){const Et=this._keyManager,rt=yt.keyCode,Mn=rt===M.n6||rt===M.i7,qt=Et.isTyping();if(Mn&&yt.altKey)yt.preventDefault(),this.close();else if(qt||rt!==M.Fm&&rt!==M.t6||!Et.activeItem||(0,F.rp)(yt))if(!qt&&this._multiple&&rt===M.A&&yt.ctrlKey){yt.preventDefault();const S=this.options.some(Xt=>!Xt.disabled&&!Xt.selected);this.options.forEach(Xt=>{Xt.disabled||(S?Xt.select():Xt.deselect())})}else{const S=Et.activeItemIndex;Et.onKeydown(yt),this._multiple&&Mn&&yt.shiftKey&&Et.activeItem&&Et.activeItemIndex!==S&&Et.activeItem._selectViaInteraction()}else yt.preventDefault(),Et.activeItem._selectViaInteraction()}_handleOverlayKeydown(yt){yt.keyCode===M._f&&!(0,F.rp)(yt)&&(yt.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_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(yt){if(this.options.forEach(Et=>Et.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&yt)Array.isArray(yt),yt.forEach(Et=>this._selectOptionByValue(Et)),this._sortValues();else{const Et=this._selectOptionByValue(yt);Et?this._keyManager.updateActiveItem(Et):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(yt){const Et=this.options.find(rt=>{if(this._selectionModel.isSelected(rt))return!1;try{return(null!=rt.value||this.canSelectNullableOptions)&&this._compareWith(rt.value,yt)}catch{return!1}});return Et&&this._selectionModel.select(Et),Et}_assignValue(yt){return!!(yt!==this._value||this._multiple&&Array.isArray(yt))&&(this.options&&this._setSelectionByValue(yt),this._value=yt,!0)}_skipPredicate=yt=>!this.panelOpen&&yt.disabled;_getOverlayWidth(yt){return"auto"===this.panelWidth?(yt instanceof i.$Q?yt.elementRef:yt||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const yt of this.options)yt._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new d.A(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const yt=(0,ee.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ye.Q)(yt)).subscribe(Et=>{this._onSelect(Et.source,Et.isUserInput),Et.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ee.h)(...this.options.map(Et=>Et._stateChanges)).pipe((0,ye.Q)(yt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(yt,Et){const rt=this._selectionModel.isSelected(yt);this.canSelectNullableOptions||null!=yt.value||this._multiple?(rt!==yt.selected&&(yt.selected?this._selectionModel.select(yt):this._selectionModel.deselect(yt)),Et&&this._keyManager.setActiveItem(yt),this.multiple&&(this._sortValues(),Et&&this.focus())):(yt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(yt.value)),rt!==this._selectionModel.isSelected(yt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const yt=this.options.toArray();this._selectionModel.sort((Et,rt)=>this.sortComparator?this.sortComparator(Et,rt,yt):yt.indexOf(Et)-yt.indexOf(rt)),this.stateChanges.next()}}_propagateChanges(yt){let Et;Et=this.multiple?this.selected.map(rt=>rt.value):this.selected?this.selected.value:yt,this._value=Et,this.valueChange.emit(Et),this._onChange(Et),this.selectionChange.emit(this._getChangeEvent(Et)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let yt=-1;for(let Et=0;Et0&&!!this._overlayDir}focus(yt){this._elementRef.nativeElement.focus(yt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const yt=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(yt?yt+" ":"")+this.ariaLabelledby:yt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let yt=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(yt+=" "+this.ariaLabelledby),yt||(yt=this._valueId),yt}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(yt){yt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",yt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(Et){return new(Et||$e)};static \u0275cmp=p.VBU({type:$e,selectors:[["mat-select"]],contentQueries:function(Et,rt,Mn){if(1&Et&&(p.wni(Mn,ve,5),p.wni(Mn,L.wT,5),p.wni(Mn,L.QC,5)),2&Et){let qt;p.mGM(qt=p.lsd())&&(rt.customTrigger=qt.first),p.mGM(qt=p.lsd())&&(rt.options=qt),p.mGM(qt=p.lsd())&&(rt.optionGroups=qt)}},viewQuery:function(Et,rt){if(1&Et&&(p.GBs(T,5),p.GBs(P,5),p.GBs(i.WB,5)),2&Et){let Mn;p.mGM(Mn=p.lsd())&&(rt.trigger=Mn.first),p.mGM(Mn=p.lsd())&&(rt.panel=Mn.first),p.mGM(Mn=p.lsd())&&(rt._overlayDir=Mn.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(Et,rt){1&Et&&p.bIt("keydown",function(qt){return rt._handleKeydown(qt)})("focus",function(){return rt._onFocus()})("blur",function(){return rt._onBlur()}),2&Et&&(p.BMQ("id",rt.id)("tabindex",rt.disabled?-1:rt.tabIndex)("aria-controls",rt.panelOpen?rt.id+"-panel":null)("aria-expanded",rt.panelOpen)("aria-label",rt.ariaLabel||null)("aria-required",rt.required.toString())("aria-disabled",rt.disabled.toString())("aria-invalid",rt.errorState)("aria-activedescendant",rt._getAriaActiveDescendant()),p.AVh("mat-mdc-select-disabled",rt.disabled)("mat-mdc-select-invalid",rt.errorState)("mat-mdc-select-required",rt.required)("mat-mdc-select-empty",rt.empty)("mat-mdc-select-multiple",rt.multiple)("mat-select-open",rt.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",D.L39],disableRipple:[2,"disableRipple","disableRipple",D.L39],tabIndex:[2,"tabIndex","tabIndex",yt=>null==yt?0:(0,D.Udg)(yt)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",D.L39],placeholder:"placeholder",required:[2,"required","required",D.L39],multiple:[2,"multiple","multiple",D.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",D.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",D.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",D.L39]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[p.Jv_([{provide:pe.qT,useExisting:$e},{provide:L.is,useExisting:$e}]),p.OA$],ngContentSelectors:a,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(Et,rt){if(1&Et){const Mn=p.RV6();p.NAR(C),p.j41(0,"div",2,0),p.bIt("click",function(){return g.eBV(Mn),g.Njj(rt.open())}),p.j41(3,"div",3),p.nVh(4,x,2,1,"span",4)(5,U,3,1,"span",5),p.k0s(),p.j41(6,"div",6)(7,"div",7),g.qSk(),p.j41(8,"svg",8),p.nrm(9,"path",9),p.k0s()()()(),p.DNE(10,fe,3,10,"ng-template",10),p.bIt("detach",function(){return g.eBV(Mn),g.Njj(rt.close())})("backdropClick",function(){return g.eBV(Mn),g.Njj(rt.close())})("overlayKeydown",function(S){return g.eBV(Mn),g.Njj(rt._handleOverlayKeydown(S))})}if(2&Et){const Mn=p.sdS(1);p.R7$(3),p.BMQ("id",rt._valueId),p.R7$(),p.vxM(rt.empty?4:5),p.R7$(6),p.Y8G("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",rt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",rt._scrollStrategy)("cdkConnectedOverlayOrigin",rt._preferredOverlayOrigin||Mn)("cdkConnectedOverlayPositions",rt._positions)("cdkConnectedOverlayWidth",rt._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[i.$Q,i.WB,se.YU],styles:['@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}\n'],encapsulation:2,changeDetection:0})}return $e})(),be=(()=>{class $e{static \u0275fac=function(Et){return new(Et||$e)};static \u0275dir=p.FsC({type:$e,selectors:[["mat-select-trigger"]],features:[p.Jv_([{provide:ve,useExisting:$e}])]})}return $e})(),nt=(()=>{class $e{static \u0275fac=function(Et){return new(Et||$e)};static \u0275mod=p.$C({type:$e});static \u0275inj=g.G2t({providers:[Me],imports:[i.z_,m.S,u.y,o.Gj,_.R,m.S,u.y]})}return $e})()},90882(ke,q,l){"use strict";l.d(q,{El:()=>he,LG:()=>Oe,US:()=>ge,vg:()=>ce});var i=l(76838),g=l(17094),p=l(61577),D=l(14085),o=l(67847),e=l(67336),A=l(10438),h=l(39842),d=l(5718),w=l(2615),f=l(73664),F=l(17705),M=l(21413),K=l(33726),j=l(57786),Z=l(70152),ee=l(5964),V=l(96354),Q=l(73703),$=l(99172),ie=l(96697),_e=l(56977),ye=l(31804),se=l(22466);const pe=["*"],Ee=["content"],L=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],t=["mat-drawer","mat-drawer-content","*"];function s(Me,ve){if(1&Me){const oe=f.RV6();f.j41(0,"div",1),f.bIt("click",function(){w.eBV(oe);const be=f.XpG();return w.Njj(be._onBackdropClicked())}),f.k0s()}if(2&Me){const oe=f.XpG();f.AVh("mat-drawer-shown",oe._isShowingBackdrop())}}function m(Me,ve){1&Me&&(f.j41(0,"mat-drawer-content"),f.SdG(1,2),f.k0s())}const u=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_=["mat-sidenav","mat-sidenav-content","*"];function T(Me,ve){if(1&Me){const oe=f.RV6();f.j41(0,"div",1),f.bIt("click",function(){w.eBV(oe);const be=f.XpG();return w.Njj(be._onBackdropClicked())}),f.k0s()}if(2&Me){const oe=f.XpG();f.AVh("mat-drawer-shown",oe._isShowingBackdrop())}}function P(Me,ve){1&Me&&(f.j41(0,"mat-sidenav-content"),f.SdG(1,2),f.k0s())}const x=new w.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function R(){return!1}}),Y=new w.nKC("MAT_DRAWER_CONTAINER");let U=(()=>{class Me extends d.uv{_platform=(0,w.WQX)(h.O);_changeDetectorRef=(0,w.WQX)(F.gRc);_container=(0,w.WQX)(re);constructor(){super((0,w.WQX)(f.aKT),(0,w.WQX)(d.R),(0,w.WQX)(f.SKi))}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;const{start:oe,end:Se}=this._container;return null!=oe&&"over"!==oe.mode&&oe.opened||null!=Se&&"over"!==Se.mode&&Se.opened}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=f.VBU({type:Me,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(Se,be){2&Se&&(f.xc7("margin-left",be._container._contentMargins.left,"px")("margin-right",be._container._contentMargins.right,"px"),f.AVh("mat-drawer-content-hidden",be._shouldBeHidden()))},features:[f.Jv_([{provide:d.uv,useExisting:Me}]),f.Vt3],ngContentSelectors:pe,decls:1,vars:0,template:function(Se,be){1&Se&&(f.NAR(),f.SdG(0))},encapsulation:2,changeDetection:0})}return Me})(),fe=(()=>{class Me{_elementRef=(0,w.WQX)(f.aKT);_focusTrapFactory=(0,w.WQX)(g.GX);_focusMonitor=(0,w.WQX)(i.FN);_platform=(0,w.WQX)(h.O);_ngZone=(0,w.WQX)(f.SKi);_renderer=(0,w.WQX)(f.sFG);_interactivityChecker=(0,w.WQX)(g.Z7);_doc=(0,w.WQX)(w.qQL);_container=(0,w.WQX)(Y,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;get position(){return this._position}set position(oe){(oe="end"===oe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(oe),this._position=oe,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(oe){this._mode=oe,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(oe){this._disableClose=(0,D.he)(oe)}_disableClose=!1;get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(oe){("true"===oe||"false"===oe||null==oe)&&(oe=(0,D.he)(oe)),this._autoFocus=oe}_autoFocus;get opened(){return this._opened()}set opened(oe){this.toggle((0,D.he)(oe))}_opened=(0,w.vPA)(!1);_openedVia;_animationStarted=new M.B;_animationEnd=new M.B;openedChange=new f.bkB(!0);_openedStream=this.openedChange.pipe((0,ee.p)(oe=>oe),(0,V.T)(()=>{}));openedStart=this._animationStarted.pipe((0,ee.p)(()=>this.opened),(0,Q.u)(void 0));_closedStream=this.openedChange.pipe((0,ee.p)(oe=>!oe),(0,V.T)(()=>{}));closedStart=this._animationStarted.pipe((0,ee.p)(()=>!this.opened),(0,Q.u)(void 0));_destroyed=new M.B;onPositionChanged=new f.bkB;_content;_modeChanged=new M.B;_injector=(0,w.WQX)(w.zZn);_changeDetectorRef=(0,w.WQX)(F.gRc);constructor(){this.openedChange.pipe((0,_e.Q)(this._destroyed)).subscribe(oe=>{oe?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{const oe=this._elementRef.nativeElement;(0,K.R)(oe,"keydown").pipe((0,ee.p)(Se=>Se.keyCode===A._f&&!this.disableClose&&!(0,e.rp)(Se)),(0,_e.Q)(this._destroyed)).subscribe(Se=>this._ngZone.run(()=>{this.close(),Se.stopPropagation(),Se.preventDefault()})),this._eventCleanups=[this._renderer.listen(oe,"transitionrun",this._handleTransitionEvent),this._renderer.listen(oe,"transitionend",this._handleTransitionEvent),this._renderer.listen(oe,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(oe,Se){this._interactivityChecker.isFocusable(oe)||(oe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const be=()=>{nt(),$e(),oe.removeAttribute("tabindex")},nt=this._renderer.listen(oe,"blur",be),$e=this._renderer.listen(oe,"mousedown",be)})),oe.focus(Se)}_focusByCssSelector(oe,Se){let be=this._elementRef.nativeElement.querySelector(oe);be&&this._forceFocus(be,Se)}_takeFocus(){if(!this._focusTrap)return;const oe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,f.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof oe.focus&&oe.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(oe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,oe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const oe=this._doc.activeElement;return!!oe&&this._elementRef.nativeElement.contains(oe)}ngAfterViewInit(){this._isAttached=!0,"end"===this._position&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(oe=>oe()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(oe){return this.toggle(!0,oe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(oe=!this.opened,Se){oe&&Se&&(this._openedVia=Se);const be=this._setOpen(oe,!oe&&this._isFocusWithinDrawer(),this._openedVia||"program");return oe||(this._openedVia=null),be}_setOpen(oe,Se,be){return oe===this.opened?Promise.resolve(oe?"open":"close"):(this._opened.set(oe),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",oe),!oe&&Se&&this._restoreFocus(be),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(nt=>{this.openedChange.pipe((0,ie.s)(1)).subscribe($e=>nt($e?"open":"close"))}))}_setIsAnimating(oe){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",oe)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(oe){if(!this._platform.isBrowser)return;const Se=this._elementRef.nativeElement,be=Se.parentNode;"end"===oe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),be.insertBefore(this._anchor,Se)),be.appendChild(Se)):this._anchor&&this._anchor.parentNode.insertBefore(Se,this._anchor)}_handleTransitionEvent=oe=>{oe.target===this._elementRef.nativeElement&&this._ngZone.run(()=>{"transitionrun"===oe.type?this._animationStarted.next(oe):("transitionend"===oe.type&&this._setIsAnimating(!1),this._animationEnd.next(oe))})};static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=f.VBU({type:Me,selectors:[["mat-drawer"]],viewQuery:function(Se,be){if(1&Se&&f.GBs(Ee,5),2&Se){let nt;f.mGM(nt=f.lsd())&&(be._content=nt.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(Se,be){2&Se&&(f.BMQ("align",null)("tabIndex","side"!==be.mode?"-1":null),f.xc7("visibility",be._container||be.opened?null:"hidden"),f.AVh("mat-drawer-end","end"===be.position)("mat-drawer-over","over"===be.mode)("mat-drawer-push","push"===be.mode)("mat-drawer-side","side"===be.mode))},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:pe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Se,be){1&Se&&(f.NAR(),f.j41(0,"div",1,0),f.SdG(2),f.k0s())},dependencies:[d.uv],encapsulation:2,changeDetection:0})}return Me})(),re=(()=>{class Me{_dir=(0,w.WQX)(p.dS,{optional:!0});_element=(0,w.WQX)(f.aKT);_ngZone=(0,w.WQX)(f.SKi);_changeDetectorRef=(0,w.WQX)(F.gRc);_animationDisabled=(0,ye.Rc)();_transitionsEnabled=!1;_allDrawers;_drawers=new f.rOR;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(oe){this._autosize=(0,D.he)(oe)}_autosize=(0,w.WQX)(x);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(oe){this._backdropOverride=null==oe?null:(0,D.he)(oe)}_backdropOverride;backdropClick=new f.bkB;_start;_end;_left;_right;_destroyed=new M.B;_doCheckSubject=new M.B;_contentMargins={left:null,right:null};_contentMarginChanges=new M.B;get scrollable(){return this._userContent||this._content}_injector=(0,w.WQX)(w.zZn);constructor(){const oe=(0,w.WQX)(h.O),Se=(0,w.WQX)(d.Xj);this._dir?.change.pipe((0,_e.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Se.change().pipe((0,_e.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&oe.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe((0,$.Z)(this._allDrawers),(0,_e.Q)(this._destroyed)).subscribe(oe=>{this._drawers.reset(oe.filter(Se=>!Se._container||Se._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,$.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(oe=>{this._watchDrawerToggle(oe),this._watchDrawerPosition(oe),this._watchDrawerMode(oe)}),(!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,_e.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(oe=>oe.open())}close(){this._drawers.forEach(oe=>oe.close())}updateContentMargins(){let oe=0,Se=0;if(this._left&&this._left.opened)if("side"==this._left.mode)oe+=this._left._getWidth();else if("push"==this._left.mode){const be=this._left._getWidth();oe+=be,Se-=be}if(this._right&&this._right.opened)if("side"==this._right.mode)Se+=this._right._getWidth();else if("push"==this._right.mode){const be=this._right._getWidth();Se+=be,oe-=be}oe=oe||null,Se=Se||null,(oe!==this._contentMargins.left||Se!==this._contentMargins.right)&&(this._contentMargins={left:oe,right:Se},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(oe){oe._animationStarted.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==oe.mode&&oe.openedChange.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(oe.opened))}_watchDrawerPosition(oe){oe.onPositionChanged.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>{(0,f.mal)({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(oe){oe._modeChanged.pipe((0,_e.Q)((0,j.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(oe){const Se=this._element.nativeElement.classList,be="mat-drawer-container-has-open";oe?Se.add(be):Se.remove(be)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(oe=>{"end"==oe.position?this._end=oe:this._start=oe}),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(oe=>oe&&!oe.disableClose&&this._drawerHasBackdrop(oe)).forEach(oe=>oe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(oe){return null!=oe&&oe.opened}_drawerHasBackdrop(oe){return null==this._backdropOverride?!!oe&&"side"!==oe.mode:this._backdropOverride}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=f.VBU({type:Me,selectors:[["mat-drawer-container"]],contentQueries:function(Se,be,nt){if(1&Se&&(f.wni(nt,U,5),f.wni(nt,fe,5)),2&Se){let $e;f.mGM($e=f.lsd())&&(be._content=$e.first),f.mGM($e=f.lsd())&&(be._allDrawers=$e)}},viewQuery:function(Se,be){if(1&Se&&f.GBs(U,5),2&Se){let nt;f.mGM(nt=f.lsd())&&(be._userContent=nt.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Se,be){2&Se&&f.AVh("mat-drawer-container-explicit-backdrop",be._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[f.Jv_([{provide:Y,useExisting:Me}])],ngContentSelectors:t,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Se,be){1&Se&&(f.NAR(L),f.nVh(0,s,1,2,"div",0),f.SdG(1),f.SdG(2,1),f.nVh(3,m,2,0,"mat-drawer-content")),2&Se&&(f.vxM(be.hasBackdrop?0:-1),f.R7$(3),f.vxM(be._content?-1:3))},dependencies:[U],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0})}return Me})(),he=(()=>{class Me extends U{static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=f.xGo(Me)))(be||Me)}})();static \u0275cmp=f.VBU({type:Me,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[f.Jv_([{provide:d.uv,useExisting:Me}]),f.Vt3],ngContentSelectors:pe,decls:1,vars:0,template:function(Se,be){1&Se&&(f.NAR(),f.SdG(0))},encapsulation:2,changeDetection:0})}return Me})(),Oe=(()=>{class Me extends fe{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(oe){this._fixedInViewport=(0,D.he)(oe)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(oe){this._fixedTopGap=(0,o.OE)(oe)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(oe){this._fixedBottomGap=(0,o.OE)(oe)}_fixedBottomGap=0;static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=f.xGo(Me)))(be||Me)}})();static \u0275cmp=f.VBU({type:Me,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(Se,be){2&Se&&(f.BMQ("tabIndex","side"!==be.mode?"-1":null)("align",null),f.xc7("top",be.fixedInViewport?be.fixedTopGap:null,"px")("bottom",be.fixedInViewport?be.fixedBottomGap:null,"px"),f.AVh("mat-drawer-end","end"===be.position)("mat-drawer-over","over"===be.mode)("mat-drawer-push","push"===be.mode)("mat-drawer-side","side"===be.mode)("mat-sidenav-fixed",be.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[f.Jv_([{provide:fe,useExisting:Me}]),f.Vt3],ngContentSelectors:pe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Se,be){1&Se&&(f.NAR(),f.j41(0,"div",1,0),f.SdG(2),f.k0s())},dependencies:[d.uv],encapsulation:2,changeDetection:0})}return Me})(),ge=(()=>{class Me extends re{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=f.xGo(Me)))(be||Me)}})();static \u0275cmp=f.VBU({type:Me,selectors:[["mat-sidenav-container"]],contentQueries:function(Se,be,nt){if(1&Se&&(f.wni(nt,he,5),f.wni(nt,Oe,5)),2&Se){let $e;f.mGM($e=f.lsd())&&(be._content=$e.first),f.mGM($e=f.lsd())&&(be._allDrawers=$e)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Se,be){2&Se&&f.AVh("mat-drawer-container-explicit-backdrop",be._backdropOverride)},exportAs:["matSidenavContainer"],features:[f.Jv_([{provide:Y,useExisting:Me},{provide:re,useExisting:Me}]),f.Vt3],ngContentSelectors:_,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Se,be){1&Se&&(f.NAR(u),f.nVh(0,T,1,2,"div",0),f.SdG(1),f.SdG(2,1),f.nVh(3,P,2,0,"mat-sidenav-content")),2&Se&&(f.vxM(be.hasBackdrop?0:-1),f.R7$(3),f.vxM(be._content?-1:3))},dependencies:[he],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0})}return Me})(),ce=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=f.$C({type:Me});static \u0275inj=w.G2t({imports:[se.y,d.Gj,d.Gj,se.y]})}return Me})()},30450(ke,q,l){"use strict";l.d(q,{mV:()=>Q,sG:()=>V});var i=l(2615),g=l(73664),p=l(17705),D=l(89417),o=l(76838),e=l(89726),A=l(88968),h=l(31804),d=l(32046),w=l(12496),f=l(53155),F=l(22466);const M=["switch"],K=["*"];function j($,ie){1&$&&(g.j41(0,"span",11),i.qSk(),g.j41(1,"svg",13),g.nrm(2,"path",14),g.k0s(),g.j41(3,"svg",15),g.nrm(4,"path",16),g.k0s()())}const Z=new i.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})});class ee{source;checked;constructor(ie,_e){this.source=ie,this.checked=_e}}let V=(()=>{class ${_elementRef=(0,i.WQX)(g.aKT);_focusMonitor=(0,i.WQX)(o.FN);_changeDetectorRef=(0,i.WQX)(p.gRc);defaults=(0,i.WQX)(Z);_onChange=_e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(_e){return new ee(this,_e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=(0,h.Rc)();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(_e){this._checked=_e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new g.bkB;toggleChange=new g.bkB;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){(0,i.WQX)(A.l).load(d.A);const _e=(0,i.WQX)(new p.ES_("tabindex"),{optional:!0}),ye=this.defaults;this.tabIndex=null==_e?0:parseInt(_e)||0,this.color=ye.color||"accent",this.id=this._uniqueId=(0,i.WQX)(e.g).getId("mat-mdc-slide-toggle-"),this.hideIcon=ye.hideIcon??!1,this.disabledInteractive=ye.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(_e=>{"keyboard"===_e||"program"===_e?(this._focused=!0,this._changeDetectorRef.markForCheck()):_e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(_e){_e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(_e){this.checked=!!_e}registerOnChange(_e){this._onChange=_e}registerOnTouched(_e){this._onTouched=_e}validate(_e){return this.required&&!0!==_e.value?{required:!0}:null}registerOnValidatorChange(_e){this._validatorOnChange=_e}setDisabledState(_e){this.disabled=_e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new ee(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(ye){return new(ye||$)};static \u0275cmp=g.VBU({type:$,selectors:[["mat-slide-toggle"]],viewQuery:function(ye,se){if(1&ye&&g.GBs(M,5),2&ye){let pe;g.mGM(pe=g.lsd())&&(se._switchElement=pe.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(ye,se){2&ye&&(g.Avn("id",se.id),g.BMQ("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),g.HbH(se.color?"mat-"+se.color:""),g.AVh("mat-mdc-slide-toggle-focused",se._focused)("mat-mdc-slide-toggle-checked",se.checked)("_mat-animation-noopable",se._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",p.L39],color:"color",disabled:[2,"disabled","disabled",p.L39],disableRipple:[2,"disableRipple","disableRipple",p.L39],tabIndex:[2,"tabIndex","tabIndex",_e=>null==_e?0:(0,p.Udg)(_e)],checked:[2,"checked","checked",p.L39],hideIcon:[2,"hideIcon","hideIcon",p.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",p.L39]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[g.Jv_([{provide:D.kq,useExisting:(0,i.Rfq)(()=>$),multi:!0},{provide:D.cz,useExisting:$,multi:!0}]),g.OA$],ngContentSelectors:K,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(ye,se){if(1&ye){const pe=g.RV6();g.NAR(),g.j41(0,"div",1)(1,"button",2,0),g.bIt("click",function(){return i.eBV(pe),i.Njj(se._handleClick())}),g.nrm(3,"div",3)(4,"span",4),g.j41(5,"span",5)(6,"span",6)(7,"span",7),g.nrm(8,"span",8),g.k0s(),g.j41(9,"span",9),g.nrm(10,"span",10),g.k0s(),g.nVh(11,j,5,0,"span",11),g.k0s()()(),g.j41(12,"label",12),g.bIt("click",function(L){return i.eBV(pe),i.Njj(L.stopPropagation())}),g.SdG(13),g.k0s()()}if(2&ye){const pe=g.sdS(2);g.Y8G("labelPosition",se.labelPosition),g.R7$(),g.AVh("mdc-switch--selected",se.checked)("mdc-switch--unselected",!se.checked)("mdc-switch--checked",se.checked)("mdc-switch--disabled",se.disabled)("mat-mdc-slide-toggle-disabled-interactive",se.disabledInteractive),g.Y8G("tabIndex",se.disabled&&!se.disabledInteractive?-1:se.tabIndex)("disabled",se.disabled&&!se.disabledInteractive),g.BMQ("id",se.buttonId)("name",se.name)("aria-label",se.ariaLabel)("aria-labelledby",se._getAriaLabelledBy())("aria-describedby",se.ariaDescribedby)("aria-required",se.required||null)("aria-checked",se.checked)("aria-disabled",se.disabled&&se.disabledInteractive?"true":null),g.R7$(9),g.Y8G("matRippleTrigger",pe)("matRippleDisabled",se.disableRipple||se.disabled)("matRippleCentered",!0),g.R7$(),g.vxM(se.hideIcon?-1:11),g.R7$(),g.Y8G("for",se.buttonId),g.BMQ("id",se._labelId)}},dependencies:[w.r6,f.t],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mat-slide-toggle-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mat-slide-toggle-track-height, 32px);border-radius:var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mat-slide-toggle-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-slide-toggle-track-outline-width, 2px);border-color:var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-slide-toggle-selected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mat-slide-toggle-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mat-slide-toggle-handle-width);height:var(--mat-slide-toggle-handle-height);border-radius:var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-slide-toggle-unselected-handle-size, 16px);height:var(--mat-slide-toggle-unselected-handle-size, 16px);margin:var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-slide-toggle-selected-handle-size, 24px);height:var(--mat-slide-toggle-selected-handle-size, 24px);margin:var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-slide-toggle-with-icon-handle-size, 24px);height:var(--mat-slide-toggle-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-slide-toggle-pressed-handle-size, 28px);height:var(--mat-slide-toggle-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mat-slide-toggle-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mat-slide-toggle-state-layer-size, 40px);height:var(--mat-slide-toggle-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mat-slide-toggle-unselected-icon-size, 16px);height:var(--mat-slide-toggle-unselected-icon-size, 16px);fill:var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mat-slide-toggle-selected-icon-size, 16px);height:var(--mat-slide-toggle-selected-icon-size, 16px);fill:var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-slide-toggle-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-slide-toggle-touch-target-size, 48px);width:100%;transform:translate(-50%, -50%);display:var(--mat-slide-toggle-touch-target-display, block)}[dir=rtl] .mat-mdc-slide-toggle-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],encapsulation:2,changeDetection:0})}return $})(),Q=(()=>{class ${static \u0275fac=function(ye){return new(ye||$)};static \u0275mod=g.$C({type:$});static \u0275inj=i.G2t({imports:[V,F.y,F.y]})}return $})()},95416(ke,q,l){"use strict";l.d(q,{UG:()=>T,_T:()=>C,x6:()=>_});var i=l(2615),g=l(73664),p=l(17705),D=l(21413),o=l(7673),e=l(88834),A=l(17094),h=l(89726),d=l(39842),w=l(76939),f=l(31804),F=l(99327),M=l(34330),K=l(49338),j=l(56977),Z=l(22466);function ee(x,Y){if(1&x){const R=g.RV6();g.j41(0,"div",1)(1,"button",2),g.bIt("click",function(){i.eBV(R);const fe=g.XpG();return i.Njj(fe.action())}),g.EFF(2),g.k0s()()}if(2&x){const R=g.XpG();g.R7$(2),g.SpI(" ",R.data.action," ")}}const V=["label"];function Q(x,Y){}const $=Math.pow(2,31)-1;class ie{_overlayRef;instance;containerInstance;_afterDismissed=new D.B;_afterOpened=new D.B;_onAction=new D.B;_durationTimeoutId;_dismissedByAction=!1;constructor(Y,R){this._overlayRef=R,this.containerInstance=Y,Y._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(Y){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(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}}const _e=new i.nKC("MatSnackBarData");class ye{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"}let se=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275dir=g.FsC({type:x,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return x})(),pe=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275dir=g.FsC({type:x,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return x})(),Ee=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275dir=g.FsC({type:x,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return x})(),L=(()=>{class x{snackBarRef=(0,i.WQX)(ie);data=(0,i.WQX)(_e);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(U){return new(U||x)};static \u0275cmp=g.VBU({type:x,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(U,fe){1&U&&(g.j41(0,"div",0),g.EFF(1),g.k0s(),g.nVh(2,ee,3,1,"div",1)),2&U&&(g.R7$(),g.SpI(" ",fe.data.message,"\n"),g.R7$(),g.vxM(fe.hasAction?2:-1))},dependencies:[e.$z,se,pe,Ee],styles:[".mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}\n"],encapsulation:2,changeDetection:0})}return x})();const t="_mat-snack-bar-enter",s="_mat-snack-bar-exit";let m=(()=>{class x extends w.lb{_ngZone=(0,i.WQX)(g.SKi);_elementRef=(0,i.WQX)(g.aKT);_changeDetectorRef=(0,i.WQX)(p.gRc);_platform=(0,i.WQX)(d.O);_animationsDisabled=(0,f.Rc)();snackBarConfig=(0,i.WQX)(ye);_document=(0,i.WQX)(i.qQL);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=(0,i.WQX)(i.zZn);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new D.B;_onExit=new D.B;_onEnter=new D.B;_animationState="void";_live;_label;_role;_liveElementId=(0,i.WQX)(h.g).getId("mat-snack-bar-container-live-");constructor(){super();const R=this.snackBarConfig;this._live="assertive"!==R.politeness||R.announcementMessage?"off"===R.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(R){this._assertNotAttached();const U=this._portalOutlet.attachComponentPortal(R);return this._afterPortalAttached(),U}attachTemplatePortal(R){this._assertNotAttached();const U=this._portalOutlet.attachTemplatePortal(R);return this._afterPortalAttached(),U}attachDomPortal=R=>{this._assertNotAttached();const U=this._portalOutlet.attachDomPortal(R);return this._afterPortalAttached(),U};onAnimationEnd(R){R===s?this._completeExit():R===t&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?(0,g.mal)(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(t)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(t)},200)))}exit(){return this._destroyed?(0,o.of)(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?(0,g.mal)(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(s)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(s),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const R=this._elementRef.nativeElement,U=this.snackBarConfig.panelClass;U&&(Array.isArray(U)?U.forEach(he=>R.classList.add(he)):R.classList.add(U)),this._exposeToModals();const fe=this._label.nativeElement,re="mdc-snackbar__label";fe.classList.toggle(re,!fe.querySelector(`.${re}`))}_exposeToModals(){const R=this._liveElementId,U=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let fe=0;fe{const U=R.getAttribute("aria-owns");if(U){const fe=U.replace(this._liveElementId,"").trim();fe.length>0?R.setAttribute("aria-owns",fe):R.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;const R=this._elementRef.nativeElement,U=R.querySelector("[aria-hidden]"),fe=R.querySelector("[aria-live]");if(U&&fe){let re=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&U.contains(document.activeElement)&&(re=document.activeElement),U.removeAttribute("aria-hidden"),fe.appendChild(U),re?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(U){return new(U||x)};static \u0275cmp=g.VBU({type:x,selectors:[["mat-snack-bar-container"]],viewQuery:function(U,fe){if(1&U&&(g.GBs(w.I3,7),g.GBs(V,7)),2&U){let re;g.mGM(re=g.lsd())&&(fe._portalOutlet=re.first),g.mGM(re=g.lsd())&&(fe._label=re.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(U,fe){1&U&&g.bIt("animationend",function(he){return fe.onAnimationEnd(he.animationName)})("animationcancel",function(he){return fe.onAnimationEnd(he.animationName)}),2&U&&g.AVh("mat-snack-bar-container-enter","visible"===fe._animationState)("mat-snack-bar-container-exit","hidden"===fe._animationState)("mat-snack-bar-container-animations-enabled",!fe._animationsDisabled)},features:[g.Vt3],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(U,fe){1&U&&(g.j41(0,"div",1)(1,"div",2,0)(3,"div",3),g.DNE(4,Q,0,0,"ng-template",4),g.k0s(),g.nrm(5,"div"),g.k0s()()),2&U&&(g.R7$(5),g.BMQ("aria-live",fe._live)("role",fe._role)("id",fe._liveElementId))},dependencies:[w.I3],styles:["@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}\n"],encapsulation:2})}return x})();const _=new i.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function u(){return new ye}});let T=(()=>{class x{_live=(0,i.WQX)(A.Ai);_injector=(0,i.WQX)(i.zZn);_breakpointObserver=(0,i.WQX)(M.Q);_parentSnackBar=(0,i.WQX)(x,{optional:!0,skipSelf:!0});_defaultConfig=(0,i.WQX)(_);_animationsDisabled=(0,f.Rc)();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=L;snackBarContainerComponent=m;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){const R=this._parentSnackBar;return R?R._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(R){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=R:this._snackBarRefAtThisLevel=R}constructor(){}openFromComponent(R,U){return this._attach(R,U)}openFromTemplate(R,U){return this._attach(R,U)}open(R,U="",fe){const re={...this._defaultConfig,...fe};return re.data={message:R,action:U},re.announcementMessage===R&&(re.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,re)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(R,U){const re=i.zZn.create({parent:U&&U.viewContainerRef&&U.viewContainerRef.injector||this._injector,providers:[{provide:ye,useValue:U}]}),he=new w.A8(this.snackBarContainerComponent,U.viewContainerRef,re),Oe=R.attach(he);return Oe.instance.snackBarConfig=U,Oe.instance}_attach(R,U){const fe={...new ye,...this._defaultConfig,...U},re=this._createOverlay(fe),he=this._attachSnackBarContainer(re,fe),Oe=new ie(he,re);if(R instanceof g.C4Q){const ge=new w.VA(R,null,{$implicit:fe.data,snackBarRef:Oe});Oe.instance=he.attachTemplatePortal(ge)}else{const ge=this._createInjector(fe,Oe),ce=new w.A8(R,void 0,ge),Re=he.attachComponentPortal(ce);Oe.instance=Re.instance}return this._breakpointObserver.observe(F.Rp.HandsetPortrait).pipe((0,j.Q)(re.detachments())).subscribe(ge=>{re.overlayElement.classList.toggle(this.handsetCssClass,ge.matches)}),fe.announcementMessage&&he._onAnnounce.subscribe(()=>{this._live.announce(fe.announcementMessage,fe.politeness)}),this._animateSnackBar(Oe,fe),this._openedSnackBarRef=Oe,this._openedSnackBarRef}_animateSnackBar(R,U){R.afterDismissed().subscribe(()=>{this._openedSnackBarRef==R&&(this._openedSnackBarRef=null),U.announcementMessage&&this._live.clear()}),U.duration&&U.duration>0&&R.afterOpened().subscribe(()=>R._dismissAfter(U.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{R.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):R.containerInstance.enter()}_createOverlay(R){const U=new K.rR;U.direction=R.direction;const fe=(0,K.uA)(this._injector),re="rtl"===R.direction,he="left"===R.horizontalPosition||"start"===R.horizontalPosition&&!re||"end"===R.horizontalPosition&&re,Oe=!he&&"center"!==R.horizontalPosition;return he?fe.left("0"):Oe?fe.right("0"):fe.centerHorizontally(),"top"===R.verticalPosition?fe.top("0"):fe.bottom("0"),U.positionStrategy=fe,U.disableAnimations=this._animationsDisabled,(0,K.Y$)(this._injector,U)}_createInjector(R,U){return i.zZn.create({parent:R&&R.viewContainerRef&&R.viewContainerRef.injector||this._injector,providers:[{provide:ie,useValue:U},{provide:_e,useValue:R.data}]})}static \u0275fac=function(U){return new(U||x)};static \u0275prov=i.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})(),C=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275mod=g.$C({type:x});static \u0275inj=i.G2t({providers:[T],imports:[K.z_,w.jc,e.Hl,Z.y,L,Z.y]})}return x})()},2042(ke,q,l){"use strict";l.d(q,{B4:()=>_e,NQ:()=>t,aE:()=>L});var i=l(2615),g=l(73664),p=l(17705),D=l(18617),o=l(76838),e=l(10438),A=l(21413),h=l(92771),d=l(57786),w=l(88968),f=l(31804),F=l(32046),M=l(22466);const K=["mat-sort-header",""],j=["*"];function Z(m,u){1&m&&(g.rj2(0,"div",2),i.qSk(),g.rj2(1,"svg",3),g.Hgh(2,"path",4),g.eux()())}const ie=new i.nKC("MAT_SORT_DEFAULT_OPTIONS");let _e=(()=>{class m{_defaultOptions;_initializedStream=new h.m(1);sortables=new Map;_stateChanges=new A.B;active;start="asc";get direction(){return this._direction}set direction(_){this._direction=_}_direction="";disableClear;disabled=!1;sortChange=new g.bkB;initialized=this._initializedStream;constructor(_){this._defaultOptions=_}register(_){this.sortables.set(_.id,_)}deregister(_){this.sortables.delete(_.id)}sort(_){this.active!=_.id?(this.active=_.id,this.direction=_.start?_.start:this.start):this.direction=this.getNextSortDirection(_),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(_){if(!_)return"";let P=function ye(m,u){let _=["asc","desc"];return"desc"==m&&_.reverse(),u||_.push(""),_}(_.start||this.start,_?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),C=P.indexOf(this.direction)+1;return C>=P.length&&(C=0),P[C]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(T){return new(T||m)(g.rXU(ie,8))};static \u0275dir=g.FsC({type:m,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",p.L39],disabled:[2,"matSortDisabled","disabled",p.L39]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[g.OA$]})}return m})(),se=(()=>{class m{changes=new A.B;static \u0275fac=function(T){return new(T||m)};static \u0275prov=i.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ee={provide:se,deps:[[new g.Xx1,new g.kdw,se]],useFactory:function pe(m){return m||new se}};let L=(()=>{class m{_intl=(0,i.WQX)(se);_sort=(0,i.WQX)(_e,{optional:!0});_columnDef=(0,i.WQX)("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=(0,i.WQX)(p.gRc);_focusMonitor=(0,i.WQX)(o.FN);_elementRef=(0,i.WQX)(g.aKT);_ariaDescriber=(0,i.WQX)(D.vr,{optional:!0});_renderChanges;_animationsDisabled=(0,f.Rc)();_recentlyCleared=(0,i.vPA)(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(_){this._updateSortActionDescription(_)}_sortActionDescription="Sort";disableClear;constructor(){(0,i.WQX)(w.l).load(F.A);const _=(0,i.WQX)(ie,{optional:!0});_?.arrowPosition&&(this.arrowPosition=_?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=(0,d.h)(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){const _=this._isSorted(),T=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(_&&!this._isSorted()?T:null)}}_handleKeydown(_){(_.keyCode===e.t6||_.keyCode===e.Fm)&&(_.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_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(_){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,_)),this._sortActionDescription=_}static \u0275fac=function(T){return new(T||m)};static \u0275cmp=g.VBU({type:m,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(T,P){1&T&&g.bIt("click",function(){return P._toggleOnInteraction()})("keydown",function(a){return P._handleKeydown(a)})("mouseleave",function(){return P._recentlyCleared.set(null)}),2&T&&(g.BMQ("aria-sort",P._getAriaSortAttribute()),g.AVh("mat-sort-header-disabled",P._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",p.L39],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",p.L39]},exportAs:["matSortHeader"],attrs:K,ngContentSelectors:j,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(T,P){1&T&&(g.NAR(),g.rj2(0,"div",0)(1,"div",1),g.SdG(2),g.eux(),g.nVh(3,Z,3,0,"div",2),g.eux()),2&T&&(g.AVh("mat-sort-header-sorted",P._isSorted())("mat-sort-header-position-before","before"===P.arrowPosition)("mat-sort-header-descending","desc"===P._sort.direction)("mat-sort-header-ascending","asc"===P._sort.direction)("mat-sort-header-recently-cleared-ascending","asc"===P._recentlyCleared())("mat-sort-header-recently-cleared-descending","desc"===P._recentlyCleared())("mat-sort-header-animations-disabled",P._animationsDisabled),g.BMQ("tabindex",P._isDisabled()?null:0)("role",P._isDisabled()?null:"button"),g.R7$(3),g.vxM(P._renderArrow()?3:-1))},styles:[".mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(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}\n"],encapsulation:2,changeDetection:0})}return m})(),t=(()=>{class m{static \u0275fac=function(T){return new(T||m)};static \u0275mod=g.$C({type:m});static \u0275inj=i.G2t({providers:[Ee],imports:[M.y]})}return m})()},36013(ke,q,l){"use strict";l.d(q,{F7:()=>Et,FR:()=>rt,M6:()=>yt,Ti:()=>Me,V5:()=>dt,aP:()=>Mn,xJ:()=>nt});var i=l(76939),g=l(97768),p=l(2615),D=l(73664),o=l(17705),e=l(76838),A=l(21413),h=l(18359),d=l(72200),w=l(49046),f=l(88968),F=l(12629),M=l(32046),K=l(12496),j=l(39842),Z=l(96354),ee=l(99172),V=l(25558),Q=l(56977),$=l(2709),ie=l(31804),_e=l(22466),ye=l(26881);const se=(S,Xt,de)=>({index:S,active:Xt,optional:de});function pe(S,Xt){if(1&S&&D.eu8(0,2),2&S){const de=D.XpG();D.Y8G("ngTemplateOutlet",de.iconOverrides[de.state])("ngTemplateOutletContext",D.sMw(2,se,de.index,de.active,de.optional))}}function Ee(S,Xt){if(1&S&&(D.j41(0,"span",7),D.EFF(1),D.k0s()),2&S){const de=D.XpG(2);D.R7$(),D.JRh(de._getDefaultTextForState(de.state))}}function L(S,Xt){if(1&S&&(D.j41(0,"span",8),D.EFF(1),D.k0s()),2&S){const de=D.XpG(3);D.R7$(),D.JRh(de._intl.completedLabel)}}function t(S,Xt){if(1&S&&(D.j41(0,"span",8),D.EFF(1),D.k0s()),2&S){const de=D.XpG(3);D.R7$(),D.JRh(de._intl.editableLabel)}}function s(S,Xt){if(1&S&&(D.nVh(0,L,2,1,"span",8)(1,t,2,1,"span",8),D.j41(2,"mat-icon",7),D.EFF(3),D.k0s()),2&S){const de=D.XpG(2);D.vxM("done"===de.state?0:"edit"===de.state?1:-1),D.R7$(3),D.JRh(de._getDefaultTextForState(de.state))}}function m(S,Xt){if(1&S&&D.nVh(0,Ee,2,1,"span",7)(1,s,4,2),2&S){let de;const ae=D.XpG();D.vxM("number"===(de=ae.state)?0:1)}}function u(S,Xt){1&S&&(D.j41(0,"div",4),D.eu8(1,9),D.k0s()),2&S&&(D.R7$(),D.Y8G("ngTemplateOutlet",Xt.template))}function _(S,Xt){if(1&S&&(D.j41(0,"div",4),D.EFF(1),D.k0s()),2&S){const de=D.XpG();D.R7$(),D.JRh(de.label)}}function T(S,Xt){if(1&S&&(D.j41(0,"div",5),D.EFF(1),D.k0s()),2&S){const de=D.XpG();D.R7$(),D.JRh(de._intl.optionalLabel)}}function P(S,Xt){if(1&S&&(D.j41(0,"div",6),D.EFF(1),D.k0s()),2&S){const de=D.XpG();D.R7$(),D.JRh(de.errorMessage)}}const C=["*"];function a(S,Xt){}function x(S,Xt){if(1&S&&(D.SdG(0),D.DNE(1,a,0,0,"ng-template",0)),2&S){const de=D.XpG();D.R7$(),D.Y8G("cdkPortalOutlet",de._portal)}}const Y=["animatedContainer"],R=S=>({step:S});function U(S,Xt){1&S&&D.SdG(0)}function fe(S,Xt){1&S&&D.nrm(0,"div",7)}function re(S,Xt){if(1&S&&(D.eu8(0,6),D.nVh(1,fe,1,0,"div",7)),2&S){const de=Xt.$implicit,ae=Xt.$index,me=Xt.$count;D.XpG(2);const Le=D.sdS(4);D.Y8G("ngTemplateOutlet",Le)("ngTemplateOutletContext",D.eq3(3,R,de)),D.R7$(),D.vxM(ae!==me-1?1:-1)}}function he(S,Xt){if(1&S&&(D.j41(0,"div",8,1),D.eu8(2,9),D.k0s()),2&S){const de=Xt.$implicit,ae=Xt.$index,me=D.XpG(2);D.HbH("mat-horizontal-stepper-content-"+me._getAnimationDirection(ae)),D.Y8G("id",me._getStepContentId(ae)),D.BMQ("aria-labelledby",me._getStepLabelId(ae))("inert",me.selectedIndex===ae?null:""),D.R7$(2),D.Y8G("ngTemplateOutlet",de.content)}}function Oe(S,Xt){if(1&S&&(D.j41(0,"div",2)(1,"div",3),D.Z7z(2,re,2,5,null,null,D.fX1),D.k0s(),D.j41(4,"div",4),D.Z7z(5,he,3,6,"div",5,D.fX1),D.k0s()()),2&S){const de=D.XpG();D.R7$(2),D.Dyx(de.steps),D.R7$(3),D.Dyx(de.steps)}}function ge(S,Xt){if(1&S&&(D.j41(0,"div",10),D.eu8(1,6),D.j41(2,"div",11,1)(4,"div",12)(5,"div",13),D.eu8(6,9),D.k0s()()()()),2&S){const de=Xt.$implicit,ae=Xt.$index,me=Xt.$index,Le=Xt.$count,et=D.XpG(2),tn=D.sdS(4);D.R7$(),D.Y8G("ngTemplateOutlet",tn)("ngTemplateOutletContext",D.eq3(10,R,de)),D.R7$(),D.AVh("mat-stepper-vertical-line",me!==Le-1)("mat-vertical-content-container-active",et.selectedIndex===ae),D.BMQ("inert",et.selectedIndex===ae?null:""),D.R7$(2),D.Y8G("id",et._getStepContentId(ae)),D.BMQ("aria-labelledby",et._getStepLabelId(ae)),D.R7$(2),D.Y8G("ngTemplateOutlet",de.content)}}function ce(S,Xt){if(1&S&&D.Z7z(0,ge,7,12,"div",10,D.fX1),2&S){const de=D.XpG();D.Dyx(de.steps)}}function Re(S,Xt){if(1&S){const de=D.RV6();D.j41(0,"mat-step-header",14),D.bIt("click",function(){const me=p.eBV(de).step;return p.Njj(me.select())})("keydown",function(me){p.eBV(de);const Le=D.XpG();return p.Njj(Le._onKeydown(me))}),D.k0s()}if(2&S){const de=Xt.step,ae=D.XpG();D.AVh("mat-horizontal-stepper-header","horizontal"===ae.orientation)("mat-vertical-stepper-header","vertical"===ae.orientation),D.Y8G("tabIndex",ae._getFocusIndex()===de.index()?0:-1)("id",ae._getStepLabelId(de.index()))("index",de.index())("state",de.indicatorType())("label",de.stepLabel||de.label)("selected",de.isSelected())("active",de.isNavigable())("optional",de.optional)("errorMessage",de.errorMessage)("iconOverrides",ae._iconOverrides)("disableRipple",ae.disableRipple||!de.isNavigable())("color",de.color||ae.color),D.BMQ("aria-posinset",de.index()+1)("aria-setsize",ae.steps.length)("aria-controls",ae._getStepContentId(de.index()))("aria-selected",de.isSelected())("aria-label",de.ariaLabel||null)("aria-labelledby",!de.ariaLabel&&de.ariaLabelledby?de.ariaLabelledby:null)("aria-disabled",!de.isNavigable()||null)}}let Me=(()=>{class S extends g.nb{static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275dir=D.FsC({type:S,selectors:[["","matStepLabel",""]],features:[D.Vt3]})}return S})(),ve=(()=>{class S{changes=new A.B;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(ae){return new(ae||S)};static \u0275prov=p.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();const Se={provide:ve,deps:[[new D.Xx1,new D.kdw,ve]],useFactory:function oe(S){return S||new ve}};let be=(()=>{class S extends g.oX{_intl=(0,p.WQX)(ve);_focusMonitor=(0,p.WQX)(e.FN);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();const de=(0,p.WQX)(f.l);de.load(M.A),de.load(w.Y);const ae=(0,p.WQX)(o.gRc);this._intlSubscription=this._intl.changes.subscribe(()=>ae.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(de,ae){de?this._focusMonitor.focusVia(this._elementRef,de,ae):this._elementRef.nativeElement.focus(ae)}_stringLabel(){return this.label instanceof Me?null:this.label}_templateLabel(){return this.label instanceof Me?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(de){return"number"==de?`${this.index+1}`:"edit"==de?"create":"error"==de?"warning":de}_hasEmptyLabel(){return!(this._stringLabel()||this._templateLabel()||this._hasOptionalLabel()||this._hasErrorLabel())}_hasOptionalLabel(){return this.optional&&"error"!==this.state}_hasErrorLabel(){return"error"===this.state}static \u0275fac=function(ae){return new(ae||S)};static \u0275cmp=D.VBU({type:S,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(ae,me){2&ae&&(D.HbH("mat-"+(me.color||"primary")),D.AVh("mat-step-header-empty-label",me._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[D.Vt3],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(ae,me){if(1&ae&&(D.nrm(0,"div",0),D.j41(1,"div")(2,"div",1),D.nVh(3,pe,1,6,"ng-container",2)(4,m,2,1),D.k0s()(),D.j41(5,"div",3),D.nVh(6,u,2,1,"div",4)(7,_,2,1,"div",4),D.nVh(8,T,2,1,"div",5),D.nVh(9,P,2,1,"div",6),D.k0s()),2&ae){let Le;D.Y8G("matRippleTrigger",me._getHostElement())("matRippleDisabled",me.disableRipple),D.R7$(),D.HbH(D.VkB("mat-step-icon-state-",me.state," mat-step-icon")),D.AVh("mat-step-icon-selected",me.selected),D.R7$(2),D.vxM(me.iconOverrides&&me.iconOverrides[me.state]?3:4),D.R7$(2),D.AVh("mat-step-label-active",me.active)("mat-step-label-selected",me.selected)("mat-step-label-error","error"==me.state),D.R7$(),D.vxM((Le=me._templateLabel())?6:me._stringLabel()?7:-1,Le),D.R7$(2),D.vxM(me._hasOptionalLabel()?8:-1),D.R7$(),D.vxM(me._hasErrorLabel()?9:-1)}},dependencies:[K.r6,d.T3,F.An],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.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{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.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;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.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}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}\n'],encapsulation:2,changeDetection:0})}return S})(),nt=(()=>{class S{templateRef=(0,p.WQX)(D.C4Q);name;constructor(){}static \u0275fac=function(ae){return new(ae||S)};static \u0275dir=D.FsC({type:S,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return S})(),$e=(()=>{class S{_template=(0,p.WQX)(D.C4Q);constructor(){}static \u0275fac=function(ae){return new(ae||S)};static \u0275dir=D.FsC({type:S,selectors:[["ng-template","matStepContent",""]]})}return S})(),dt=(()=>{class S extends g.VI{_errorStateMatcher=(0,p.WQX)($.e,{skipSelf:!0});_viewContainerRef=(0,p.WQX)(D.c1b);_isSelected=h.yU.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,V.n)(()=>this._stepper.selectionChange.pipe((0,Z.T)(de=>de.selectedStep===this),(0,ee.Z)(this._stepper.selected===this)))).subscribe(de=>{de&&this._lazyContent&&!this._portal&&(this._portal=new i.VA(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(de,ae){return this._errorStateMatcher.isErrorState(de,ae)||!!(de&&de.invalid&&this.interacted)}static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275cmp=D.VBU({type:S,selectors:[["mat-step"]],contentQueries:function(ae,me,Le){if(1&ae&&(D.wni(Le,Me,5),D.wni(Le,$e,5)),2&ae){let et;D.mGM(et=D.lsd())&&(me.stepLabel=et.first),D.mGM(et=D.lsd())&&(me._lazyContent=et.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[D.Jv_([{provide:$.e,useExisting:S},{provide:g.VI,useExisting:S}]),D.Vt3],ngContentSelectors:C,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ae,me){1&ae&&(D.NAR(),D.DNE(0,x,2,1,"ng-template"))},dependencies:[i.I3],encapsulation:2,changeDetection:0})}return S})(),yt=(()=>{class S extends g.Up{_ngZone=(0,p.WQX)(D.SKi);_renderer=(0,p.WQX)(D.sFG);_animationsDisabled=(0,ie.Rc)();_cleanupTransition;_isAnimating=(0,p.vPA)(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new D.rOR;_icons;animationDone=new D.bkB;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(de){this._animationDuration=/^\d+$/.test(de)?de+"ms":de}_animationDuration="";_isServer=!(0,p.WQX)(j.O).isBrowser;constructor(){super();const ae=(0,p.WQX)(D.aKT).nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ae?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:de,templateRef:ae})=>this._iconOverrides[de]=ae),this.steps.changes.pipe((0,Q.Q)(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe((0,Q.Q)(this._destroyed)).subscribe(()=>{const de=this._getAnimationDuration();"0ms"===de||"0s"===de?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),"function"==typeof queueMicrotask){let de=!1;this._animatedContainers.changes.pipe((0,ee.Z)(null),(0,Q.Q)(this._destroyed)).subscribe(()=>queueMicrotask(()=>{de||(de=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}_handleTransitionend=de=>{const ae=de.target;if(!ae)return;const me="horizontal"===this.orientation&&"transform"===de.propertyName&&ae.classList.contains("mat-horizontal-stepper-content-current"),Le="vertical"===this.orientation&&"grid-template-rows"===de.propertyName&&ae.classList.contains("mat-vertical-content-container-active");(me||Le)&&this._animatedContainers.find(tn=>tn.nativeElement===ae)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(ae){return new(ae||S)};static \u0275cmp=D.VBU({type:S,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ae,me,Le){if(1&ae&&(D.wni(Le,dt,5),D.wni(Le,nt,5)),2&ae){let et;D.mGM(et=D.lsd())&&(me._steps=et),D.mGM(et=D.lsd())&&(me._icons=et)}},viewQuery:function(ae,me){if(1&ae&&(D.GBs(be,5),D.GBs(Y,5)),2&ae){let Le;D.mGM(Le=D.lsd())&&(me._stepHeader=Le),D.mGM(Le=D.lsd())&&(me._animatedContainers=Le)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(ae,me){2&ae&&(D.BMQ("aria-orientation",me.orientation),D.xc7("--mat-stepper-animation-duration",me._getAnimationDuration()),D.AVh("mat-stepper-horizontal","horizontal"===me.orientation)("mat-stepper-vertical","vertical"===me.orientation)("mat-stepper-label-position-end","horizontal"===me.orientation&&"end"==me.labelPosition)("mat-stepper-label-position-bottom","horizontal"===me.orientation&&"bottom"==me.labelPosition)("mat-stepper-header-position-bottom","bottom"===me.headerPosition)("mat-stepper-animating",me._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[D.Jv_([{provide:g.Up,useExisting:S}]),D.Vt3],ngContentSelectors:C,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(ae,me){if(1&ae&&(D.NAR(),D.nVh(0,U,1,0),D.nVh(1,Oe,7,0,"div",2)(2,ce,2,0),D.DNE(3,Re,1,23,"ng-template",null,0,D.C5r)),2&ae){let Le;D.vxM(me._isServer?0:-1),D.R7$(),D.vxM("horizontal"===(Le=me.orientation)?1:"vertical"===Le?2:-1)}},dependencies:[d.T3,be],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.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-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 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-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}\n'],encapsulation:2,changeDetection:0})}return S})(),Et=(()=>{class S extends g.v5{static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275dir=D.FsC({type:S,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(ae,me){2&ae&&D.Avn("type",me.type)},features:[D.Vt3]})}return S})(),rt=(()=>{class S extends g.FK{static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275dir=D.FsC({type:S,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(ae,me){2&ae&&D.Avn("type",me.type)},features:[D.Vt3]})}return S})(),Mn=(()=>{class S{static \u0275fac=function(ae){return new(ae||S)};static \u0275mod=D.$C({type:S});static \u0275inj=p.G2t({providers:[Se,$.e],imports:[_e.y,i.jc,g.uY,F.m_,ye.p,yt,be,_e.y]})}return S})()},32046(ke,q,l){"use strict";l.d(q,{A:()=>g});var i=l(73664);let g=(()=>{class p{static \u0275fac=function(e){return new(e||p)};static \u0275cmp=i.VBU({type:p,selectors:[["structural-styles"]],decls:0,vars:0,template:function(e,A){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}\n'],encapsulation:2,changeDetection:0})}return p})()},19295(ke,q,l){"use strict";l.d(q,{$R:()=>He,YV:()=>Je,cC:()=>Ye,Qo:()=>it,Zq:()=>zt,iF:()=>At,xW:()=>We,KS:()=>st,tL:()=>gt,YZ:()=>St,ji:()=>we,NB:()=>fn,iL:()=>Lt,Zl:()=>ze,I6:()=>Li,tP:()=>In});var i=l(73664),g=l(2615),p=l(17705),D=l(14117),o=l(21413),e=l(84412),A=l(74402),h=l(7673),d=l(56977),f=function(kt){return kt[kt.REPLACED=0]="REPLACED",kt[kt.INSERTED=1]="INSERTED",kt[kt.MOVED=2]="MOVED",kt[kt.REMOVED=3]="REMOVED",kt}(f||{});const F=new g.nKC("_ViewRepeater");class K{applyChanges(Ot,Ze,Ge,Pt,Yt){Ot.forEachOperation((bn,$n,oi)=>{let Ii,Ei;if(null==bn.previousIndex){const Nt=Ge(bn,$n,oi);Ii=Ze.createEmbeddedView(Nt.templateRef,Nt.context,Nt.index),Ei=f.INSERTED}else null==oi?(Ze.remove($n),Ei=f.REMOVED):(Ii=Ze.get($n),Ze.move(Ii,oi),Ei=f.MOVED);Yt&&Yt({context:Ii?.context,operation:Ei,record:bn})})}detach(){}}var j=l(61577),Z=l(39842),ee=l(5718);const V=[[["caption"]],[["colgroup"],["col"]],"*"],Q=["caption","colgroup, col","*"];function $(kt,Ot){1&kt&&i.SdG(0,2)}function ie(kt,Ot){1&kt&&(i.j41(0,"thead",0),i.eu8(1,1),i.k0s(),i.j41(2,"tbody",0),i.eu8(3,2)(4,3),i.k0s(),i.j41(5,"tfoot",0),i.eu8(6,4),i.k0s())}function _e(kt,Ot){1&kt&&i.eu8(0,1)(1,2)(2,3)(3,4)}const pe=new g.nKC("CDK_TABLE");let L=(()=>{class kt{template=(0,g.WQX)(i.C4Q);constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkCellDef",""]]})}return kt})(),t=(()=>{class kt{template=(0,g.WQX)(i.C4Q);constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkHeaderCellDef",""]]})}return kt})(),s=(()=>{class kt{template=(0,g.WQX)(i.C4Q);constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkFooterCellDef",""]]})}return kt})(),m=(()=>{class kt{_table=(0,g.WQX)(pe,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(Ze){this._setNameInput(Ze)}_name;get sticky(){return this._sticky}set sticky(Ze){Ze!==this._sticky&&(this._sticky=Ze,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(Ze){Ze!==this._stickyEnd&&(this._stickyEnd=Ze,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){const Ze=this._hasStickyChanged;return this.resetStickyChanged(),Ze}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Ze){Ze&&(this._name=Ze,this.cssClassFriendlyName=Ze.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkColumnDef",""]],contentQueries:function(Ge,Pt,Yt){if(1&Ge&&(i.wni(Yt,L,5),i.wni(Yt,t,5),i.wni(Yt,s,5)),2&Ge){let bn;i.mGM(bn=i.lsd())&&(Pt.cell=bn.first),i.mGM(bn=i.lsd())&&(Pt.headerCell=bn.first),i.mGM(bn=i.lsd())&&(Pt.footerCell=bn.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",p.L39],stickyEnd:[2,"stickyEnd","stickyEnd",p.L39]},features:[i.Jv_([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:kt}])]})}return kt})();class u{constructor(Ot,Ze){Ze.nativeElement.classList.add(...Ot._columnCssClassName)}}let _=(()=>{class kt extends u{constructor(){super((0,g.WQX)(m),(0,g.WQX)(i.aKT))}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.Vt3]})}return kt})(),T=(()=>{class kt extends u{constructor(){const Ze=(0,g.WQX)(m),Ge=(0,g.WQX)(i.aKT);super(Ze,Ge);const Pt=Ze._table?._getCellRole();Pt&&Ge.nativeElement.setAttribute("role",Pt)}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.Vt3]})}return kt})(),P=(()=>{class kt extends u{constructor(){const Ze=(0,g.WQX)(m),Ge=(0,g.WQX)(i.aKT);super(Ze,Ge);const Pt=Ze._table?._getCellRole();Pt&&Ge.nativeElement.setAttribute("role",Pt)}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.Vt3]})}return kt})(),a=(()=>{class kt{template=(0,g.WQX)(i.C4Q);_differs=(0,g.WQX)(p._q3);columns;_columnsDiffer;constructor(){}ngOnChanges(Ze){if(!this._columnsDiffer){const Ge=Ze.columns&&Ze.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ge).create(),this._columnsDiffer.diff(Ge)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Ze){return this instanceof x?Ze.headerCell.template:this instanceof Y?Ze.footerCell.template:Ze.cell.template}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,features:[i.OA$]})}return kt})(),x=(()=>{class kt extends a{_table=(0,g.WQX)(pe,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(Ze){Ze!==this._sticky&&(this._sticky=Ze,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,g.WQX)(i.C4Q),(0,g.WQX)(p._q3))}ngOnChanges(Ze){super.ngOnChanges(Ze)}hasStickyChanged(){const Ze=this._hasStickyChanged;return this.resetStickyChanged(),Ze}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",p.L39]},features:[i.Vt3,i.OA$]})}return kt})(),Y=(()=>{class kt extends a{_table=(0,g.WQX)(pe,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(Ze){Ze!==this._sticky&&(this._sticky=Ze,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,g.WQX)(i.C4Q),(0,g.WQX)(p._q3))}ngOnChanges(Ze){super.ngOnChanges(Ze)}hasStickyChanged(){const Ze=this._hasStickyChanged;return this.resetStickyChanged(),Ze}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",p.L39]},features:[i.Vt3,i.OA$]})}return kt})(),R=(()=>{class kt extends a{_table=(0,g.WQX)(pe,{optional:!0});when;constructor(){super((0,g.WQX)(i.C4Q),(0,g.WQX)(p._q3))}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[i.Vt3]})}return kt})(),U=(()=>{class kt{_viewContainer=(0,g.WQX)(i.c1b);cells;context;static mostRecentCellOutlet=null;constructor(){kt.mostRecentCellOutlet=this}ngOnDestroy(){kt.mostRecentCellOutlet===this&&(kt.mostRecentCellOutlet=null)}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkCellOutlet",""]]})}return kt})(),fe=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),re=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),he=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),Oe=(()=>{class kt{templateRef=(0,g.WQX)(i.C4Q);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["ng-template","cdkNoDataRow",""]]})}return kt})();const ge=["top","bottom","left","right"];class ce{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(Ot=>this._updateCachedSizes(Ot)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(Ot,Ze,Ge=!0,Pt=!0,Yt,bn,$n){this._isNativeHtmlTable=Ot,this._stickCellCss=Ze,this._isBrowser=Ge,this._needsPositionStickyOnElement=Pt,this.direction=Yt,this._positionListener=bn,this._tableInjector=$n,this._borderCellCss={top:`${Ze}-border-elem-top`,bottom:`${Ze}-border-elem-bottom`,left:`${Ze}-border-elem-left`,right:`${Ze}-border-elem-right`}}clearStickyPositioning(Ot,Ze){(Ze.includes("left")||Ze.includes("right"))&&this._removeFromStickyColumnReplayQueue(Ot);const Ge=[];for(const Pt of Ot)Pt.nodeType===Pt.ELEMENT_NODE&&Ge.push(Pt,...Array.from(Pt.children));(0,i.mal)({write:()=>{for(const Pt of Ge)this._removeStickyStyle(Pt,Ze)}},{injector:this._tableInjector})}updateStickyColumns(Ot,Ze,Ge,Pt=!0,Yt=!0){if(!Ot.length||!this._isBrowser||!Ze.some(Un=>Un)&&!Ge.some(Un=>Un))return this._positionListener?.stickyColumnsUpdated({sizes:[]}),void this._positionListener?.stickyEndColumnsUpdated({sizes:[]});const bn=Ot[0],$n=bn.children.length,oi="rtl"===this.direction,Ii=oi?"right":"left",Ei=oi?"left":"right",Nt=Ze.lastIndexOf(!0),nn=Ge.indexOf(!0);let en,Nn,jn;Yt&&this._updateStickyColumnReplayQueue({rows:[...Ot],stickyStartStates:[...Ze],stickyEndStates:[...Ge]}),(0,i.mal)({earlyRead:()=>{en=this._getCellWidths(bn,Pt),Nn=this._getStickyStartColumnPositions(en,Ze),jn=this._getStickyEndColumnPositions(en,Ge)},write:()=>{for(const Un of Ot)for(let ui=0;ui<$n;ui++){const gn=Un.children[ui];Ze[ui]&&this._addStickyStyle(gn,Ii,Nn[ui],ui===Nt),Ge[ui]&&this._addStickyStyle(gn,Ei,jn[ui],ui===nn)}this._positionListener&&en.some(Un=>!!Un)&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Nt?[]:en.slice(0,Nt+1).map((Un,ui)=>Ze[ui]?Un:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===nn?[]:en.slice(nn).map((Un,ui)=>Ge[ui+nn]?Un:null).reverse()}))}},{injector:this._tableInjector})}stickRows(Ot,Ze,Ge){if(!this._isBrowser)return;const Pt="bottom"===Ge?Ot.slice().reverse():Ot,Yt="bottom"===Ge?Ze.slice().reverse():Ze,bn=[],$n=[],oi=[];(0,i.mal)({earlyRead:()=>{for(let Ii=0,Ei=0;Ii{const Ii=Yt.lastIndexOf(!0);for(let Ei=0;Ei{const Ge=Ot.querySelector("tfoot");Ge&&(Ze.some(Pt=>!Pt)?this._removeStickyStyle(Ge,["bottom"]):this._addStickyStyle(Ge,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(Ot,Ze){if(Ot.classList.contains(this._stickCellCss)){for(const Pt of Ze)Ot.style[Pt]="",Ot.classList.remove(this._borderCellCss[Pt]);ge.some(Pt=>-1===Ze.indexOf(Pt)&&Ot.style[Pt])?Ot.style.zIndex=this._getCalculatedZIndex(Ot):(Ot.style.zIndex="",this._needsPositionStickyOnElement&&(Ot.style.position=""),Ot.classList.remove(this._stickCellCss))}}_addStickyStyle(Ot,Ze,Ge,Pt){Ot.classList.add(this._stickCellCss),Pt&&Ot.classList.add(this._borderCellCss[Ze]),Ot.style[Ze]=`${Ge}px`,Ot.style.zIndex=this._getCalculatedZIndex(Ot),this._needsPositionStickyOnElement&&(Ot.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ot){const Ze={top:100,bottom:10,left:1,right:1};let Ge=0;for(const Pt of ge)Ot.style[Pt]&&(Ge+=Ze[Pt]);return Ge?`${Ge}`:""}_getCellWidths(Ot,Ze=!0){if(!Ze&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ge=[],Pt=Ot.children;for(let Yt=0;Yt0;Yt--)Ze[Yt]&&(Ge[Yt]=Pt,Pt+=Ot[Yt]);return Ge}_retrieveElementSize(Ot){const Ze=this._elemSizeCache.get(Ot);if(Ze)return Ze;const Ge=Ot.getBoundingClientRect(),Pt={width:Ge.width,height:Ge.height};return this._resizeObserver&&(this._elemSizeCache.set(Ot,Pt),this._resizeObserver.observe(Ot,{box:"border-box"})),Pt}_updateStickyColumnReplayQueue(Ot){this._removeFromStickyColumnReplayQueue(Ot.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(Ot)}_removeFromStickyColumnReplayQueue(Ot){const Ze=new Set(Ot);for(const Ge of this._updatedStickyColumnsParamsToReplay)Ge.rows=Ge.rows.filter(Pt=>!Ze.has(Pt));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(Ge=>!!Ge.rows.length)}_updateCachedSizes(Ot){let Ze=!1;for(const Ge of Ot){const Pt=Ge.borderBoxSize?.length?{width:Ge.borderBoxSize[0].inlineSize,height:Ge.borderBoxSize[0].blockSize}:{width:Ge.contentRect.width,height:Ge.contentRect.height};Pt.width!==this._elemSizeCache.get(Ge.target)?.width&&Re(Ge.target)&&(Ze=!0),this._elemSizeCache.set(Ge.target,Pt)}Ze&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(const Ge of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(Ge.rows,Ge.stickyStartStates,Ge.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}}function Re(kt){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(Ot=>kt.classList.contains(Ot))}const yt=new g.nKC("CDK_SPL");let rt=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._rowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","rowOutlet",""]]})}return kt})(),Mn=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._headerRowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","headerRowOutlet",""]]})}return kt})(),qt=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._footerRowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","footerRowOutlet",""]]})}return kt})(),S=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._noDataRowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","noDataRowOutlet",""]]})}return kt})(),Xt=(()=>{class kt{_differs=(0,g.WQX)(p._q3);_changeDetectorRef=(0,g.WQX)(p.gRc);_elementRef=(0,g.WQX)(i.aKT);_dir=(0,g.WQX)(j.dS,{optional:!0});_platform=(0,g.WQX)(Z.O);_viewRepeater=(0,g.WQX)(F);_viewportRuler=(0,g.WQX)(ee.Xj);_stickyPositioningListener=(0,g.WQX)(yt,{optional:!0,skipSelf:!0});_document=(0,g.WQX)(g.qQL);_data;_onDestroy=new o.B;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(void 0===this._cellRoleInternal){const Ze=this._elementRef.nativeElement.getAttribute("role");return"grid"===Ze||"treegrid"===Ze?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(Ze){this._trackByFn=Ze}_trackByFn;get dataSource(){return this._dataSource}set dataSource(Ze){this._dataSource!==Ze&&this._switchDataSource(Ze)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Ze){this._multiTemplateDataRows=Ze,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(Ze){this._fixedLayout=Ze,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new i.bkB;viewChange=new e.t({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=(0,g.WQX)(g.zZn);constructor(){(0,g.WQX)(new p.ES_("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName,this._dataDiffer=this._differs.find([]).create((Ge,Pt)=>this.trackBy?this.trackBy(Pt.dataIndex,Pt.data):Pt)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe((0,d.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Ze=>{Ze?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,D.y)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Ze=this._dataDiffer.diff(this._renderRows);if(!Ze)return this._updateNoDataRow(),void this.contentChanged.next();const Ge=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Ze,Ge,(Pt,Yt,bn)=>this._getEmbeddedViewArgs(Pt.item,bn),Pt=>Pt.item.data,Pt=>{Pt.operation===f.INSERTED&&Pt.context&&this._renderCellTemplateForItem(Pt.record.item.rowDef,Pt.context)}),this._updateRowIndexContext(),Ze.forEachIdentityChange(Pt=>{Ge.get(Pt.currentIndex).context.$implicit=Pt.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(Ze){this._customColumnDefs.add(Ze)}removeColumnDef(Ze){this._customColumnDefs.delete(Ze)}addRowDef(Ze){this._customRowDefs.add(Ze)}removeRowDef(Ze){this._customRowDefs.delete(Ze)}addHeaderRowDef(Ze){this._customHeaderRowDefs.add(Ze),this._headerRowDefChanged=!0}removeHeaderRowDef(Ze){this._customHeaderRowDefs.delete(Ze),this._headerRowDefChanged=!0}addFooterRowDef(Ze){this._customFooterRowDefs.add(Ze),this._footerRowDefChanged=!0}removeFooterRowDef(Ze){this._customFooterRowDefs.delete(Ze),this._footerRowDefChanged=!0}setNoDataRow(Ze){this._customNoDataRow=Ze}updateStickyHeaderRowStyles(){const Ze=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const Pt=ae(this._headerRowOutlet,"thead");Pt&&(Pt.style.display=Ze.length?"":"none")}const Ge=this._headerRowDefs.map(Pt=>Pt.sticky);this._stickyStyler.clearStickyPositioning(Ze,["top"]),this._stickyStyler.stickRows(Ze,Ge,"top"),this._headerRowDefs.forEach(Pt=>Pt.resetStickyChanged())}updateStickyFooterRowStyles(){const Ze=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const Pt=ae(this._footerRowOutlet,"tfoot");Pt&&(Pt.style.display=Ze.length?"":"none")}const Ge=this._footerRowDefs.map(Pt=>Pt.sticky);this._stickyStyler.clearStickyPositioning(Ze,["bottom"]),this._stickyStyler.stickRows(Ze,Ge,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Ge),this._footerRowDefs.forEach(Pt=>Pt.resetStickyChanged())}updateStickyColumnStyles(){const Ze=this._getRenderedRows(this._headerRowOutlet),Ge=this._getRenderedRows(this._rowOutlet),Pt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Ze,...Ge,...Pt],["left","right"]),this._stickyColumnStylesNeedReset=!1),Ze.forEach((Yt,bn)=>{this._addStickyColumnStyles([Yt],this._headerRowDefs[bn])}),this._rowDefs.forEach(Yt=>{const bn=[];for(let $n=0;$n{this._addStickyColumnStyles([Yt],this._footerRowDefs[bn])}),Array.from(this._columnDefsByName.values()).forEach(Yt=>Yt.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const Ge=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ge,this._forceRecalculateCellWidths=Ge,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()}_getAllRenderRows(){const Ze=[],Ge=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return Ze;for(let Pt=0;Pt{const $n=Pt&&Pt.has(bn)?Pt.get(bn):[];if($n.length){const oi=$n.shift();return oi.dataIndex=Ge,oi}return{data:Ze,rowDef:bn,dataIndex:Ge}})}_cacheColumnDefs(){this._columnDefsByName.clear(),de(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ge=>{this._columnDefsByName.has(Ge.name),this._columnDefsByName.set(Ge.name,Ge)})}_cacheRowDefs(){this._headerRowDefs=de(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=de(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=de(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Ze=this._rowDefs.filter(Ge=>!Ge.when);this._defaultRowDef=Ze[0]}_renderUpdatedColumns(){const Ze=(bn,$n)=>{const oi=!!$n.getColumnsDiff();return bn||oi},Ge=this._rowDefs.reduce(Ze,!1);Ge&&this._forceRenderDataRows();const Pt=this._headerRowDefs.reduce(Ze,!1);Pt&&this._forceRenderHeaderRows();const Yt=this._footerRowDefs.reduce(Ze,!1);return Yt&&this._forceRenderFooterRows(),Ge||Pt||Yt}_switchDataSource(Ze){this._data=[],(0,D.y)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Ze||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=Ze}_observeRenderChanges(){if(!this.dataSource)return;let Ze;(0,D.y)(this.dataSource)?Ze=this.dataSource.connect(this):(0,A.A)(this.dataSource)?Ze=this.dataSource:Array.isArray(this.dataSource)&&(Ze=(0,h.of)(this.dataSource)),this._renderChangeSubscription=Ze.pipe((0,d.Q)(this._onDestroy)).subscribe(Ge=>{this._data=Ge||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Ze,Ge)=>this._renderRow(this._headerRowOutlet,Ze,Ge)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Ze,Ge)=>this._renderRow(this._footerRowOutlet,Ze,Ge)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Ze,Ge){const Pt=Array.from(Ge?.columns||[]).map($n=>this._columnDefsByName.get($n)),Yt=Pt.map($n=>$n.sticky),bn=Pt.map($n=>$n.stickyEnd);this._stickyStyler.updateStickyColumns(Ze,Yt,bn,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Ze){const Ge=[];for(let Pt=0;Pt!Yt.when||Yt.when(Ge,Ze));else{let Yt=this._rowDefs.find(bn=>bn.when&&bn.when(Ge,Ze))||this._defaultRowDef;Yt&&Pt.push(Yt)}return Pt}_getEmbeddedViewArgs(Ze,Ge){return{templateRef:Ze.rowDef.template,context:{$implicit:Ze.data},index:Ge}}_renderRow(Ze,Ge,Pt,Yt={}){const bn=Ze.viewContainer.createEmbeddedView(Ge.template,Yt,Pt);return this._renderCellTemplateForItem(Ge,Yt),bn}_renderCellTemplateForItem(Ze,Ge){for(let Pt of this._getCellTemplates(Ze))U.mostRecentCellOutlet&&U.mostRecentCellOutlet._viewContainer.createEmbeddedView(Pt,Ge);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Ze=this._rowOutlet.viewContainer;for(let Ge=0,Pt=Ze.length;Ge{const Pt=this._columnDefsByName.get(Ge);return Ze.extractCellTemplate(Pt)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Ze=(Ge,Pt)=>Ge||Pt.hasStickyChanged();this._headerRowDefs.reduce(Ze,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Ze,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Ze,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ce(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,this._dir?this._dir.value:"ltr",this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.Q)(this._onDestroy)).subscribe(Ge=>{this._stickyStyler.direction=Ge,this.updateStickyColumnStyles()})}_getOwnDefs(Ze){return Ze.filter(Ge=>!Ge._table||Ge._table===this)}_updateNoDataRow(){const Ze=this._customNoDataRow||this._noDataRow;if(!Ze)return;const Ge=0===this._rowOutlet.viewContainer.length;if(Ge===this._isShowingNoDataRow)return;const Pt=this._noDataRowOutlet.viewContainer;if(Ge){const Yt=Pt.createEmbeddedView(Ze.templateRef),bn=Yt.rootNodes[0];if(1===Yt.rootNodes.length&&bn?.nodeType===this._document.ELEMENT_NODE){bn.setAttribute("role","row"),bn.classList.add(...Ze._contentClassNames);const $n=bn.querySelectorAll(Ze._cellSelector);for(let oi=0;oi<$n.length;oi++)$n[oi].classList.add(...Ze._cellClassNames)}}else Pt.clear();this._isShowingNoDataRow=Ge,this._changeDetectorRef.markForCheck()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Ge,Pt,Yt){if(1&Ge&&(i.wni(Yt,Oe,5),i.wni(Yt,m,5),i.wni(Yt,R,5),i.wni(Yt,x,5),i.wni(Yt,Y,5)),2&Ge){let bn;i.mGM(bn=i.lsd())&&(Pt._noDataRow=bn.first),i.mGM(bn=i.lsd())&&(Pt._contentColumnDefs=bn),i.mGM(bn=i.lsd())&&(Pt._contentRowDefs=bn),i.mGM(bn=i.lsd())&&(Pt._contentHeaderRowDefs=bn),i.mGM(bn=i.lsd())&&(Pt._contentFooterRowDefs=bn)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Ge,Pt){2&Ge&&i.AVh("cdk-table-fixed-layout",Pt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",p.L39],fixedLayout:[2,"fixedLayout","fixedLayout",p.L39]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i.Jv_([{provide:pe,useExisting:kt},{provide:F,useClass:K},{provide:yt,useValue:null}])],ngContentSelectors:Q,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ge,Pt){1&Ge&&(i.NAR(V),i.SdG(0),i.SdG(1,1),i.nVh(2,$,1,0),i.nVh(3,ie,7,0)(4,_e,4,0)),2&Ge&&(i.R7$(2),i.vxM(Pt._isServer?2:-1),i.R7$(),i.vxM(Pt._isNativeHtmlTable?3:4))},dependencies:[Mn,rt,S,qt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2})}return kt})();function de(kt,Ot){return kt.concat(Array.from(Ot))}function ae(kt,Ot){const Ze=Ot.toUpperCase();let Ge=kt.viewContainer.element.nativeElement;for(;Ge;){const Pt=1===Ge.nodeType?Ge.nodeName:null;if(Pt===Ze)return Ge;if("TABLE"===Pt)break;Ge=Ge.parentNode}return null}let et=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275mod=i.$C({type:kt});static \u0275inj=g.G2t({imports:[ee.E9]})}return kt})();var tn=l(22466),Vt=l(57786),hn=l(84572),En=l(67847),_n=l(96354);const tt=[[["caption"]],[["colgroup"],["col"]],"*"],Fe=["caption","colgroup, col","*"];function Pe(kt,Ot){1&kt&&i.SdG(0,2)}function Ue(kt,Ot){1&kt&&(i.j41(0,"thead",0),i.eu8(1,1),i.k0s(),i.j41(2,"tbody",2),i.eu8(3,3)(4,4),i.k0s(),i.j41(5,"tfoot",0),i.eu8(6,5),i.k0s())}function Qe(kt,Ot){1&kt&&i.eu8(0,1)(1,3)(2,4)(3,5)}let ze=(()=>{class kt extends Xt{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(Ge,Pt){2&Ge&&i.AVh("mdc-table-fixed-layout",Pt.fixedLayout)},exportAs:["matTable"],features:[i.Jv_([{provide:Xt,useExisting:kt},{provide:pe,useExisting:kt},{provide:F,useClass:K},{provide:yt,useValue:null}]),i.Vt3],ngContentSelectors:Fe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ge,Pt){1&Ge&&(i.NAR(tt),i.SdG(0),i.SdG(1,1),i.nVh(2,Pe,1,0),i.nVh(3,Ue,7,0)(4,Qe,4,0)),2&Ge&&(i.R7$(2),i.vxM(Pt._isServer?2:-1),i.R7$(),i.vxM(Pt._isNativeHtmlTable?3:4))},dependencies:[Mn,rt,S,qt],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}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}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\n"],encapsulation:2})}return kt})(),Je=(()=>{class kt extends L{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matCellDef",""]],features:[i.Jv_([{provide:L,useExisting:kt}]),i.Vt3]})}return kt})(),gt=(()=>{class kt extends t{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matHeaderCellDef",""]],features:[i.Jv_([{provide:t,useExisting:kt}]),i.Vt3]})}return kt})(),zt=(()=>{class kt extends s{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matFooterCellDef",""]],features:[i.Jv_([{provide:s,useExisting:kt}]),i.Vt3]})}return kt})(),Ye=(()=>{class kt extends m{get name(){return this._name}set name(Ze){this._setNameInput(Ze)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[i.Jv_([{provide:m,useExisting:kt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:kt}]),i.Vt3]})}return kt})(),st=(()=>{class kt extends _{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[i.Vt3]})}return kt})(),it=(()=>{class kt extends T{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[i.Vt3]})}return kt})(),He=(()=>{class kt extends P{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[i.Vt3]})}return kt})(),we=(()=>{class kt extends x{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",p.L39]},features:[i.Jv_([{provide:x,useExisting:kt}]),i.Vt3]})}return kt})(),We=(()=>{class kt extends Y{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",p.L39]},features:[i.Jv_([{provide:Y,useExisting:kt}]),i.Vt3]})}return kt})(),Lt=(()=>{class kt extends R{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[i.Jv_([{provide:R,useExisting:kt}]),i.Vt3]})}return kt})(),St=(()=>{class kt extends fe{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[i.Jv_([{provide:fe,useExisting:kt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),At=(()=>{class kt extends re{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[i.Jv_([{provide:re,useExisting:kt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),fn=(()=>{class kt extends he{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[i.Jv_([{provide:he,useExisting:kt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),In=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275mod=i.$C({type:kt});static \u0275inj=g.G2t({imports:[tn.y,et,tn.y]})}return kt})();class Li extends D.q{_data;_renderData=new e.t([]);_filter=new e.t("");_internalPageChanges=new o.B;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(Ot){Ot=Array.isArray(Ot)?Ot:[],this._data.next(Ot),this._renderChangesSubscription||this._filterData(Ot)}get filter(){return this._filter.value}set filter(Ot){this._filter.next(Ot),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ot){this._sort=Ot,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(Ot){this._paginator=Ot,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(Ot,Ze)=>{const Ge=Ot[Ze];if((0,En.o1)(Ge)){const Pt=Number(Ge);return Pt<9007199254740991?Pt:Ge}return Ge};sortData=(Ot,Ze)=>{const Ge=Ze.active,Pt=Ze.direction;return Ge&&""!=Pt?Ot.sort((Yt,bn)=>{let $n=this.sortingDataAccessor(Yt,Ge),oi=this.sortingDataAccessor(bn,Ge);const Ii=typeof $n,Ei=typeof oi;Ii!==Ei&&("number"===Ii&&($n+=""),"number"===Ei&&(oi+=""));let Nt=0;return null!=$n&&null!=oi?$n>oi?Nt=1:$n{const Ge=Ze.trim().toLowerCase();return Object.values(Ot).some(Pt=>`${Pt}`.toLowerCase().includes(Ge))};constructor(Ot=[]){super(),this._data=new e.t(Ot),this._updateChangeSubscription()}_updateChangeSubscription(){const Ot=this._sort?(0,Vt.h)(this._sort.sortChange,this._sort.initialized):(0,h.of)(null),Ze=this._paginator?(0,Vt.h)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,h.of)(null),Pt=(0,hn.z)([this._data,this._filter]).pipe((0,_n.T)(([$n])=>this._filterData($n))),Yt=(0,hn.z)([Pt,Ot]).pipe((0,_n.T)(([$n])=>this._orderData($n))),bn=(0,hn.z)([Yt,Ze]).pipe((0,_n.T)(([$n])=>this._pageData($n)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=bn.subscribe($n=>this._renderData.next($n))}_filterData(Ot){return this.filteredData=null==this.filter||""===this.filter?Ot:Ot.filter(Ze=>this.filterPredicate(Ze,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ot){return this.sort?this.sortData(Ot.slice(),this.sort):Ot}_pageData(Ot){if(!this.paginator)return Ot;const Ze=this.paginator.pageIndex*this.paginator.pageSize;return Ot.slice(Ze,Ze+this.paginator.pageSize)}_updatePaginator(Ot){Promise.resolve().then(()=>{const Ze=this.paginator;if(Ze&&(Ze.length=Ot,Ze.pageIndex>0)){const Ge=Math.ceil(Ze.length/Ze.pageSize)-1||0,Pt=Math.min(Ze.pageIndex,Ge);Pt!==Ze.pageIndex&&(Ze.pageIndex=Pt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}},96850(ke,q,l){"use strict";l.d(q,{Bu:()=>Ie,ES:()=>rt,Ql:()=>le,RI:()=>ze,T8:()=>Ue,hQ:()=>Ne,mq:()=>qt});var i=l(76838),g=l(89726),p=l(64123),D=l(61577),o=l(67336),e=l(10438),A=l(63610),h=l(39842),d=l(5718),w=l(2615),f=l(73664),F=l(17705),M=l(59295),K=l(71985),j=l(21413),Z=l(84412),ee=l(18359),V=l(57786),Q=l(7673),$=l(1807),ie=l(983),_e=l(70152),ye=l(5964),se=l(65245),pe=l(99172),Ee=l(25558),L=l(56977),t=l(31804),s=l(76939),m=l(88968),u=l(32046),_=l(72318),T=l(12496),P=l(22466);const C=["*"];function a(gt,zt){1>&&f.SdG(0)}const x=["tabListContainer"],Y=["tabList"],R=["tabListInner"],U=["nextPaginator"],fe=["previousPaginator"],re=["content"];function he(gt,zt){}const Oe=["tabBodyWrapper"],ge=["tabHeader"];function ce(gt,zt){}function Re(gt,zt){if(1>&&f.DNE(0,ce,0,0,"ng-template",12),2>){const Ye=f.XpG().$implicit;f.Y8G("cdkPortalOutlet",Ye.templateLabel)}}function Me(gt,zt){if(1>&&f.EFF(0),2>){const Ye=f.XpG().$implicit;f.JRh(Ye.textLabel)}}function ve(gt,zt){if(1>){const Ye=f.RV6();f.j41(0,"div",7,2),f.bIt("click",function(){const it=w.eBV(Ye),He=it.$implicit,Wt=it.$index,we=f.XpG(),We=f.sdS(1);return w.Njj(we._handleClick(He,We,Wt))})("cdkFocusChange",function(it){const He=w.eBV(Ye).$index,Wt=f.XpG();return w.Njj(Wt._tabFocusChanged(it,He))}),f.nrm(2,"span",8)(3,"div",9),f.j41(4,"span",10)(5,"span",11),f.nVh(6,Re,1,1,null,12)(7,Me,1,1),f.k0s()()()}if(2>){const Ye=zt.$implicit,st=zt.$index,it=f.sdS(1),He=f.XpG();f.HbH(Ye.labelClass),f.AVh("mdc-tab--active",He.selectedIndex===st),f.Y8G("id",He._getTabLabelId(Ye,st))("disabled",Ye.disabled)("fitInkBarToContent",He.fitInkBarToContent),f.BMQ("tabIndex",He._getTabIndex(st))("aria-posinset",st+1)("aria-setsize",He._tabs.length)("aria-controls",He._getTabContentId(st))("aria-selected",He.selectedIndex===st)("aria-label",Ye.ariaLabel||null)("aria-labelledby",!Ye.ariaLabel&&Ye.ariaLabelledby?Ye.ariaLabelledby:null),f.R7$(3),f.Y8G("matRippleTrigger",it)("matRippleDisabled",Ye.disabled||He.disableRipple),f.R7$(3),f.vxM(Ye.templateLabel?6:7)}}function oe(gt,zt){1>&&f.SdG(0)}function Se(gt,zt){if(1>){const Ye=f.RV6();f.j41(0,"mat-tab-body",13),f.bIt("_onCentered",function(){w.eBV(Ye);const it=f.XpG();return w.Njj(it._removeTabBodyWrapperHeight())})("_onCentering",function(it){w.eBV(Ye);const He=f.XpG();return w.Njj(He._setTabBodyWrapperHeight(it))})("_beforeCentering",function(it){w.eBV(Ye);const He=f.XpG();return w.Njj(He._bodyCentered(it))}),f.k0s()}if(2>){const Ye=zt.$implicit,st=zt.$index,it=f.XpG();f.HbH(Ye.bodyClass),f.Y8G("id",it._getTabContentId(st))("content",Ye.content)("position",Ye.position)("animationDuration",it.animationDuration)("preserveContent",it.preserveContent),f.BMQ("tabindex",null!=it.contentTabIndex&&it.selectedIndex===st?it.contentTabIndex:null)("aria-labelledby",it._getTabLabelId(Ye,st))("aria-hidden",it.selectedIndex!==st)}}const be=["mat-tab-nav-bar",""],nt=["mat-tab-link",""],$e=new w.nKC("MatTabContent");let dt=(()=>{class gt{template=(0,w.WQX)(f.C4Q);constructor(){}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,selectors:[["","matTabContent",""]],features:[f.Jv_([{provide:$e,useExisting:gt}])]})}return gt})();const yt=new w.nKC("MatTabLabel"),Et=new w.nKC("MAT_TAB");let rt=(()=>{class gt extends s.bV{_closestTab=(0,w.WQX)(Et,{optional:!0});static \u0275fac=(()=>{let Ye;return function(it){return(Ye||(Ye=f.xGo(gt)))(it||gt)}})();static \u0275dir=f.FsC({type:gt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[f.Jv_([{provide:yt,useExisting:gt}]),f.Vt3]})}return gt})();const Mn=new w.nKC("MAT_TAB_GROUP");let qt=(()=>{class gt{_viewContainerRef=(0,w.WQX)(f.c1b);_closestTabGroup=(0,w.WQX)(Mn,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(Ye){this._setTemplateLabelInput(Ye)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new j.B;position=null;origin=null;isActive=!1;constructor(){(0,w.WQX)(m.l).load(u.A)}ngOnChanges(Ye){(Ye.hasOwnProperty("textLabel")||Ye.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new s.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ye){Ye&&Ye._closestTab===this&&(this._templateLabel=Ye)}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab"]],contentQueries:function(st,it,He){if(1&st&&(f.wni(He,rt,5),f.wni(He,dt,7,f.C4Q)),2&st){let Wt;f.mGM(Wt=f.lsd())&&(it.templateLabel=Wt.first),f.mGM(Wt=f.lsd())&&(it._explicitContent=Wt.first)}},viewQuery:function(st,it){if(1&st&&f.GBs(f.C4Q,7),2&st){let He;f.mGM(He=f.lsd())&&(it._implicitContent=He.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(st,it){2&st&&f.BMQ("id",null)},inputs:{disabled:[2,"disabled","disabled",F.L39],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[f.Jv_([{provide:Et,useExisting:gt}]),f.OA$],ngContentSelectors:C,decls:1,vars:0,template:function(st,it){1&st&&(f.NAR(),f.PeT(0,a,1,0,"ng-template"))},encapsulation:2})}return gt})();const S="mdc-tab-indicator--active",Xt="mdc-tab-indicator--no-transition";class de{_items;_currentItem;constructor(zt){this._items=zt}hide(){this._items.forEach(zt=>zt.deactivateInkBar()),this._currentItem=void 0}alignToElement(zt){const Ye=this._items.find(it=>it.elementRef.nativeElement===zt),st=this._currentItem;if(Ye!==st&&(st?.deactivateInkBar(),Ye)){const it=st?.elementRef.nativeElement.getBoundingClientRect?.();Ye.activateInkBar(it),this._currentItem=Ye}}}let ae=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Ye){this._fitToContent!==Ye&&(this._fitToContent=Ye,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Ye){const st=this._elementRef.nativeElement;if(!Ye||!st.getBoundingClientRect||!this._inkBarContentElement)return void st.classList.add(S);const it=st.getBoundingClientRect(),He=Ye.width/it.width,Wt=Ye.left-it.left;st.classList.add(Xt),this._inkBarContentElement.style.setProperty("transform",`translateX(${Wt}px) scaleX(${He})`),st.getBoundingClientRect(),st.classList.remove(Xt),st.classList.add(S),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(S)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Ye=this._elementRef.nativeElement.ownerDocument||document,st=this._inkBarElement=Ye.createElement("span"),it=this._inkBarContentElement=Ye.createElement("span");st.className="mdc-tab-indicator",it.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",st.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",F.L39]}})}return gt})(),et=(()=>{class gt extends ae{elementRef=(0,w.WQX)(f.aKT);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let Ye;return function(it){return(Ye||(Ye=f.xGo(gt)))(it||gt)}})();static \u0275dir=f.FsC({type:gt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(st,it){2&st&&(f.BMQ("aria-disabled",!!it.disabled),f.AVh("mat-mdc-tab-disabled",it.disabled))},inputs:{disabled:[2,"disabled","disabled",F.L39]},features:[f.Vt3]})}return gt})();const tn={passive:!0};let En=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_changeDetectorRef=(0,w.WQX)(F.gRc);_viewportRuler=(0,w.WQX)(d.Xj);_dir=(0,w.WQX)(D.dS,{optional:!0});_ngZone=(0,w.WQX)(f.SKi);_platform=(0,w.WQX)(h.O);_sharedResizeObserver=(0,w.WQX)(A.a);_injector=(0,w.WQX)(w.zZn);_renderer=(0,w.WQX)(f.sFG);_animationsDisabled=(0,t.Rc)();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new j.B;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new j.B;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(Ye){const st=isNaN(Ye)?0:Ye;this._selectedIndex!=st&&(this._selectedIndexChanged=!0,this._selectedIndex=st,this._keyManager&&this._keyManager.updateActiveItem(st))}_selectedIndex=0;selectFocusedIndex=new f.bkB;indexFocused=new f.bkB;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),tn),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),tn))}ngAfterContentInit(){const Ye=this._dir?this._dir.change:(0,Q.of)("ltr"),st=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe((0,_e.B)(32),(0,L.Q)(this._destroyed)),it=this._viewportRuler.change(150).pipe((0,L.Q)(this._destroyed)),He=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new p.B(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),(0,f.mal)(He,{injector:this._injector}),(0,V.h)(Ye,it,st,this._items.changes,this._itemsResized()).pipe((0,L.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),He()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Wt=>{this.indexFocused.emit(Wt),this._setTabFocus(Wt)})}_itemsResized(){return"function"!=typeof ResizeObserver?ie.w:this._items.changes.pipe((0,pe.Z)(this._items),(0,Ee.n)(Ye=>new K.c(st=>this._ngZone.runOutsideAngular(()=>{const it=new ResizeObserver(He=>st.next(He));return Ye.forEach(He=>it.observe(He.elementRef.nativeElement)),()=>{it.disconnect()}}))),(0,se.i)(1),(0,ye.p)(Ye=>Ye.some(st=>st.contentRect.width>0&&st.contentRect.height>0)))}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._eventCleanups.forEach(Ye=>Ye()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ye){if(!(0,o.rp)(Ye))switch(Ye.keyCode){case e.Fm:case e.t6:if(this.focusIndex!==this.selectedIndex){const st=this._items.get(this.focusIndex);st&&!st.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Ye))}break;default:this._keyManager?.onKeydown(Ye)}}_onContentChanges(){const Ye=this._elementRef.nativeElement.textContent;Ye!==this._currentTextContent&&(this._currentTextContent=Ye||"",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(Ye){!this._isValidIndex(Ye)||this.focusIndex===Ye||!this._keyManager||this._keyManager.setActiveItem(Ye)}_isValidIndex(Ye){return!this._items||!!this._items.toArray()[Ye]}_setTabFocus(Ye){if(this._showPaginationControls&&this._scrollToLabel(Ye),this._items&&this._items.length){this._items.toArray()[Ye].focus();const st=this._tabListContainer.nativeElement;st.scrollLeft="ltr"==this._getLayoutDirection()?0:st.scrollWidth-st.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ye=this.scrollDistance,st="ltr"===this._getLayoutDirection()?-Ye:Ye;this._tabList.nativeElement.style.transform=`translateX(${Math.round(st)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Ye){this._scrollTo(Ye)}_scrollHeader(Ye){return this._scrollTo(this._scrollDistance+("before"==Ye?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ye){this._stopInterval(),this._scrollHeader(Ye)}_scrollToLabel(Ye){if(this.disablePagination)return;const st=this._items?this._items.toArray()[Ye]:null;if(!st)return;const it=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:He,offsetWidth:Wt}=st.elementRef.nativeElement;let we,We;"ltr"==this._getLayoutDirection()?(we=He,We=we+Wt):(We=this._tabListInner.nativeElement.offsetWidth-He,we=We-Wt);const Lt=this.scrollDistance,St=this.scrollDistance+it;weSt&&(this.scrollDistance+=Math.min(We-St,we-Lt))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const it=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;it||(this.scrollDistance=0),it!==this._showPaginationControls&&(this._showPaginationControls=it,this._changeDetectorRef.markForCheck())}}_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 Ye=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,st=Ye?Ye.elementRef.nativeElement:null;st?this._inkBar.alignToElement(st):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ye,st){st&&null!=st.button&&0!==st.button||(this._stopInterval(),(0,$.O)(650,100).pipe((0,L.Q)((0,V.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:it,distance:He}=this._scrollHeader(Ye);(0===He||He>=it)&&this._stopInterval()}))}_scrollTo(Ye){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const st=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(st,Ye)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:st,distance:this._scrollDistance}}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,inputs:{disablePagination:[2,"disablePagination","disablePagination",F.L39],selectedIndex:[2,"selectedIndex","selectedIndex",F.Udg]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return gt})(),_n=(()=>{class gt extends En{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new de(this._items),super.ngAfterContentInit()}_itemSelected(Ye){Ye.preventDefault()}static \u0275fac=(()=>{let Ye;return function(it){return(Ye||(Ye=f.xGo(gt)))(it||gt)}})();static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-header"]],contentQueries:function(st,it,He){if(1&st&&f.wni(He,et,4),2&st){let Wt;f.mGM(Wt=f.lsd())&&(it._items=Wt)}},viewQuery:function(st,it){if(1&st&&(f.GBs(x,7),f.GBs(Y,7),f.GBs(R,7),f.GBs(U,5),f.GBs(fe,5)),2&st){let He;f.mGM(He=f.lsd())&&(it._tabListContainer=He.first),f.mGM(He=f.lsd())&&(it._tabList=He.first),f.mGM(He=f.lsd())&&(it._tabListInner=He.first),f.mGM(He=f.lsd())&&(it._nextPaginator=He.first),f.mGM(He=f.lsd())&&(it._previousPaginator=He.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(st,it){2&st&&f.AVh("mat-mdc-tab-header-pagination-controls-enabled",it._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==it._getLayoutDirection())},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",F.L39]},features:[f.Vt3],ngContentSelectors:C,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(st,it){if(1&st){const He=f.RV6();f.NAR(),f.j41(0,"div",5,0),f.bIt("click",function(){return w.eBV(He),w.Njj(it._handlePaginatorClick("before"))})("mousedown",function(we){return w.eBV(He),w.Njj(it._handlePaginatorPress("before",we))})("touchend",function(){return w.eBV(He),w.Njj(it._stopInterval())}),f.nrm(2,"div",6),f.k0s(),f.j41(3,"div",7,1),f.bIt("keydown",function(we){return w.eBV(He),w.Njj(it._handleKeydown(we))}),f.j41(5,"div",8,2),f.bIt("cdkObserveContent",function(){return w.eBV(He),w.Njj(it._onContentChanges())}),f.j41(7,"div",9,3),f.SdG(9),f.k0s()()(),f.j41(10,"div",10,4),f.bIt("mousedown",function(we){return w.eBV(He),w.Njj(it._handlePaginatorPress("after",we))})("click",function(){return w.eBV(He),w.Njj(it._handlePaginatorClick("after"))})("touchend",function(){return w.eBV(He),w.Njj(it._stopInterval())}),f.nrm(12,"div",6),f.k0s()}2&st&&(f.AVh("mat-mdc-tab-header-pagination-disabled",it._disableScrollBefore),f.Y8G("matRippleDisabled",it._disableScrollBefore||it.disableRipple),f.R7$(3),f.AVh("_mat-animation-noopable",it._animationsDisabled),f.R7$(2),f.BMQ("aria-label",it.ariaLabel||null)("aria-labelledby",it.ariaLabelledby||null),f.R7$(5),f.AVh("mat-mdc-tab-header-pagination-disabled",it._disableScrollAfter),f.Y8G("matRippleDisabled",it._disableScrollAfter||it.disableRipple))},dependencies:[T.r6,_.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}\n"],encapsulation:2})}return gt})();const tt=new w.nKC("MAT_TABS_CONFIG");let Fe=(()=>{class gt extends s.I3{_host=(0,w.WQX)(Pe);_ngZone=(0,w.WQX)(f.SKi);_centeringSub=ee.yU.EMPTY;_leavingSub=ee.yU.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,pe.Z)(this._host._isCenterPosition())).subscribe(Ye=>{this._host._content&&Ye&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,selectors:[["","matTabBodyHost",""]],features:[f.Vt3]})}return gt})(),Pe=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_dir=(0,w.WQX)(D.dS,{optional:!0});_ngZone=(0,w.WQX)(f.SKi);_injector=(0,w.WQX)(w.zZn);_renderer=(0,w.WQX)(f.sFG);_diAnimationsDisabled=(0,t.Rc)();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ee.yU.EMPTY;_position;_previousPosition;_onCentering=new f.bkB;_beforeCentering=new f.bkB;_afterLeavingCenter=new f.bkB;_onCentered=new f.bkB(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(Ye){this._positionIndex=Ye,this._computePositionAnimationState()}constructor(){if(this._dir){const Ye=(0,w.WQX)(F.gRc);this._dirChangeSubscription=this._dir.change.subscribe(st=>{this._computePositionAnimationState(st),Ye.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),"center"===this._position&&(this._setActiveClass(!0),(0,f.mal)(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(Ye=>Ye()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{const Ye=this._elementRef.nativeElement,st=it=>{it.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),"transitionend"===it.type&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(Ye,"transitionstart",it=>{it.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(Ye,"transitionend",st),this._renderer.listen(Ye,"transitioncancel",st)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);const Ye="center"===this._position;this._beforeCentering.emit(Ye),Ye&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){"center"===this._position?this._onCentered.emit():"center"===this._previousPosition&&this._afterLeavingCenter.emit()}_setActiveClass(Ye){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",Ye)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(){return 0===this._positionIndex}_computePositionAnimationState(Ye=this._getLayoutDirection()){this._previousPosition=this._position,this._position=this._positionIndex<0?"ltr"==Ye?"left":"right":this._positionIndex>0?"ltr"==Ye?"right":"left":"center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&("center"===this._position||"center"===this._previousPosition)&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),(0,f.mal)(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||"0ms"===this.animationDuration||"0s"===this.animationDuration}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-body"]],viewQuery:function(st,it){if(1&st&&(f.GBs(Fe,5),f.GBs(re,5)),2&st){let He;f.mGM(He=f.lsd())&&(it._portalHost=He.first),f.mGM(He=f.lsd())&&(it._contentElement=He.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(st,it){2&st&&f.BMQ("inert","center"===it._position?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(st,it){1&st&&(f.j41(0,"div",1,0),f.DNE(2,he,0,0,"ng-template",2),f.k0s()),2&st&&f.AVh("mat-tab-body-content-left","left"===it._position)("mat-tab-body-content-right","right"===it._position)("mat-tab-body-content-can-animate","center"===it._position||"center"===it._previousPosition)},dependencies:[Fe,d.uv],styles:[".mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}\n"],encapsulation:2})}return gt})(),Ue=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_changeDetectorRef=(0,w.WQX)(F.gRc);_ngZone=(0,w.WQX)(f.SKi);_tabsSubscription=ee.yU.EMPTY;_tabLabelSubscription=ee.yU.EMPTY;_tabBodySubscription=ee.yU.EMPTY;_diAnimationsDisabled=(0,t.Rc)();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new f.rOR;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(Ye){this._fitInkBarToContent=Ye,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(Ye){this._indexToSelect=isNaN(Ye)?null:Ye}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(Ye){const st=Ye+"";this._animationDuration=/^\d+$/.test(st)?Ye+"ms":st}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Ye){this._contentTabIndex=isNaN(Ye)?null:Ye}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(Ye){const st=this._elementRef.nativeElement.classList;st.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ye&&st.add("mat-tabs-with-background",`mat-background-${Ye}`),this._backgroundColor=Ye}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new f.bkB;focusChange=new f.bkB;animationDone=new f.bkB;selectedTabChange=new f.bkB(!0);_groupId;_isServer=!(0,w.WQX)(h.O).isBrowser;constructor(){const Ye=(0,w.WQX)(tt,{optional:!0});this._groupId=(0,w.WQX)(g.g).getId("mat-tab-group-"),this.animationDuration=Ye&&Ye.animationDuration?Ye.animationDuration:"500ms",this.disablePagination=!(!Ye||null==Ye.disablePagination)&&Ye.disablePagination,this.dynamicHeight=!(!Ye||null==Ye.dynamicHeight)&&Ye.dynamicHeight,null!=Ye?.contentTabIndex&&(this.contentTabIndex=Ye.contentTabIndex),this.preserveContent=!!Ye?.preserveContent,this.fitInkBarToContent=!(!Ye||null==Ye.fitInkBarToContent)&&Ye.fitInkBarToContent,this.stretchTabs=!Ye||null==Ye.stretchTabs||Ye.stretchTabs,this.alignTabs=Ye&&null!=Ye.alignTabs?Ye.alignTabs:null}ngAfterContentChecked(){const Ye=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ye){const st=null==this._selectedIndex;if(!st){this.selectedTabChange.emit(this._createChangeEvent(Ye));const it=this._tabBodyWrapper.nativeElement;it.style.minHeight=it.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((it,He)=>it.isActive=He===Ye),st||(this.selectedIndexChange.emit(Ye),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((st,it)=>{st.position=it-Ye,null!=this._selectedIndex&&0==st.position&&!st.origin&&(st.origin=Ye-this._selectedIndex)}),this._selectedIndex!==Ye&&(this._selectedIndex=Ye,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Ye=this._clampTabIndex(this._indexToSelect);if(Ye===this._selectedIndex){const st=this._tabs.toArray();let it;for(let He=0;He{st[Ye].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ye))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,pe.Z)(this._allTabs)).subscribe(Ye=>{this._tabs.reset(Ye.filter(st=>st._closestTabGroup===this||!st._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Ye){const st=this._tabHeader;st&&(st.focusIndex=Ye)}_focusChanged(Ye){this._lastFocusedTabIndex=Ye,this.focusChange.emit(this._createChangeEvent(Ye))}_createChangeEvent(Ye){const st=new Qe;return st.index=Ye,this._tabs&&this._tabs.length&&(st.tab=this._tabs.toArray()[Ye]),st}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,V.h)(...this._tabs.map(Ye=>Ye._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Ye){return Math.min(this._tabs.length-1,Math.max(Ye||0,0))}_getTabLabelId(Ye,st){return Ye.id||`${this._groupId}-label-${st}`}_getTabContentId(Ye){return`${this._groupId}-content-${Ye}`}_setTabBodyWrapperHeight(Ye){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return void(this._tabBodyWrapperHeight=Ye);const st=this._tabBodyWrapper.nativeElement;st.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(st.style.height=Ye+"px")}_removeTabBodyWrapperHeight(){const Ye=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ye.clientHeight,Ye.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(Ye,st,it){st.focusIndex=it,Ye.disabled||(this.selectedIndex=it)}_getTabIndex(Ye){return Ye===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Ye,st){Ye&&"mouse"!==Ye&&"touch"!==Ye&&(this._tabHeader.focusIndex=st)}_bodyCentered(Ye){Ye&&this._tabBodies?.forEach((st,it)=>st._setActiveClass(it===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||"0"===this.animationDuration||"0ms"===this.animationDuration}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-group"]],contentQueries:function(st,it,He){if(1&st&&f.wni(He,qt,5),2&st){let Wt;f.mGM(Wt=f.lsd())&&(it._allTabs=Wt)}},viewQuery:function(st,it){if(1&st&&(f.GBs(Oe,5),f.GBs(ge,5),f.GBs(Pe,5)),2&st){let He;f.mGM(He=f.lsd())&&(it._tabBodyWrapper=He.first),f.mGM(He=f.lsd())&&(it._tabHeader=He.first),f.mGM(He=f.lsd())&&(it._tabBodies=He)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(st,it){2&st&&(f.BMQ("mat-align-tabs",it.alignTabs),f.HbH("mat-"+(it.color||"primary")),f.xc7("--mat-tab-animation-duration",it.animationDuration),f.AVh("mat-mdc-tab-group-dynamic-height",it.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===it.headerPosition)("mat-mdc-tab-group-stretch-tabs",it.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",F.L39],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",F.L39],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",F.L39],selectedIndex:[2,"selectedIndex","selectedIndex",F.Udg],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",F.Udg],disablePagination:[2,"disablePagination","disablePagination",F.L39],disableRipple:[2,"disableRipple","disableRipple",F.L39],preserveContent:[2,"preserveContent","preserveContent",F.L39],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[f.Jv_([{provide:Mn,useExisting:gt}])],ngContentSelectors:C,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(st,it){if(1&st){const He=f.RV6();f.NAR(),f.j41(0,"mat-tab-header",3,0),f.bIt("indexFocused",function(we){return w.eBV(He),w.Njj(it._focusChanged(we))})("selectFocusedIndex",function(we){return w.eBV(He),w.Njj(it.selectedIndex=we)}),f.Z7z(2,ve,8,17,"div",4,f.fX1),f.k0s(),f.nVh(4,oe,1,0),f.j41(5,"div",5,1),f.Z7z(7,Se,1,10,"mat-tab-body",6,f.fX1),f.k0s()}2&st&&(f.Y8G("selectedIndex",it.selectedIndex||0)("disableRipple",it.disableRipple)("disablePagination",it.disablePagination),f.jOp("aria-label",it.ariaLabel)("aria-labelledby",it.ariaLabelledby),f.R7$(2),f.Dyx(it._tabs),f.R7$(2),f.vxM(it._isServer?4:-1),f.R7$(),f.AVh("_mat-animation-noopable",it._animationsDisabled()),f.R7$(2),f.Dyx(it._tabs))},dependencies:[_n,et,i.vR,T.r6,s.I3,Pe],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}\n'],encapsulation:2})}return gt})();class Qe{index;tab}let Ie=(()=>{class gt extends En{_focusedItem=(0,w.vPA)(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(Ye){this._fitInkBarToContent.next(Ye),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new Z.t(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(Ye){const st=Ye+"";this._animationDuration=/^\d+$/.test(st)?Ye+"ms":st}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(Ye){const st=this._elementRef.nativeElement.classList;st.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ye&&st.add("mat-tabs-with-background",`mat-background-${Ye}`),this._backgroundColor=Ye}_backgroundColor;get disableRipple(){return this._disableRipple()}set disableRipple(Ye){this._disableRipple.set(Ye)}_disableRipple=(0,w.vPA)(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){const Ye=(0,w.WQX)(tt,{optional:!0});super(),this.disablePagination=!(!Ye||null==Ye.disablePagination)&&Ye.disablePagination,this.fitInkBarToContent=!(!Ye||null==Ye.fitInkBarToContent)&&Ye.fitInkBarToContent,this.stretchTabs=!Ye||null==Ye.stretchTabs||Ye.stretchTabs}_itemSelected(){}ngAfterContentInit(){this._inkBar=new de(this._items),this._items.changes.pipe((0,pe.Z)(null),(0,L.Q)(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe((0,pe.Z)(null),(0,L.Q)(this._destroyed)).subscribe(()=>this._focusedItem.set(this._keyManager?.activeItem||null))}ngAfterViewInit(){super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;const Ye=this._items.toArray();for(let st=0;st.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}\n"],encapsulation:2})}return gt})(),le=(()=>{class gt extends ae{_tabNavBar=(0,w.WQX)(Ie);elementRef=(0,w.WQX)(f.aKT);_focusMonitor=(0,w.WQX)(i.FN);_destroyed=new j.B;_isActive=!1;_tabIndex=(0,M.EW)(()=>this._tabNavBar._focusedItem()===this?this.tabIndex:-1);get active(){return this._isActive}set active(Ye){Ye!==this._isActive&&(this._isActive=Ye,this._tabNavBar.updateActiveLink())}disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(Ye){this._disableRipple.set(Ye)}_disableRipple=(0,w.vPA)(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=(0,w.WQX)(g.g).getId("mat-tab-link-");constructor(){super(),(0,w.WQX)(m.l).load(u.A);const Ye=(0,w.WQX)(T.$E,{optional:!0}),st=(0,w.WQX)(new F.ES_("tabindex"),{optional:!0});this.rippleConfig=Ye||{},this.tabIndex=null==st?0:parseInt(st)||0,(0,t.Rc)()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe((0,L.Q)(this._destroyed)).subscribe(it=>{this.fitInkBarToContent=it})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Ye){(Ye.keyCode===e.t6||Ye.keyCode===e.Fm)&&(this.disabled?Ye.preventDefault():this._tabNavBar.tabPanel&&(Ye.keyCode===e.t6&&Ye.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.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")}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(st,it){1&st&&f.bIt("focus",function(){return it._handleFocus()})("keydown",function(Wt){return it._handleKeydown(Wt)}),2&st&&(f.BMQ("aria-controls",it._getAriaControls())("aria-current",it._getAriaCurrent())("aria-disabled",it.disabled)("aria-selected",it._getAriaSelected())("id",it.id)("tabIndex",it._tabIndex())("role",it._getRole()),f.AVh("mat-mdc-tab-disabled",it.disabled)("mdc-tab--active",it.active))},inputs:{active:[2,"active","active",F.L39],disabled:[2,"disabled","disabled",F.L39],disableRipple:[2,"disableRipple","disableRipple",F.L39],tabIndex:[2,"tabIndex","tabIndex",Ye=>null==Ye?0:(0,F.Udg)(Ye)],id:"id"},exportAs:["matTabLink"],features:[f.Vt3],attrs:nt,ngContentSelectors:C,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(st,it){1&st&&(f.NAR(),f.nrm(0,"span",0)(1,"div",1),f.j41(2,"span",2)(3,"span",3),f.SdG(4),f.k0s()()),2&st&&(f.R7$(),f.Y8G("matRippleTrigger",it.elementRef.nativeElement)("matRippleDisabled",it.rippleDisabled))},dependencies:[T.r6],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}\n'],encapsulation:2,changeDetection:0})}return gt})(),Ne=(()=>{class gt{id=(0,w.WQX)(g.g).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(st,it){2&st&&f.BMQ("aria-labelledby",it._activeTabId)("id",it.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:C,decls:1,vars:0,template:function(st,it){1&st&&(f.NAR(),f.SdG(0))},encapsulation:2,changeDetection:0})}return gt})(),ze=(()=>{class gt{static \u0275fac=function(st){return new(st||gt)};static \u0275mod=f.$C({type:gt});static \u0275inj=w.G2t({imports:[P.y,P.y]})}return gt})()},55911(ke,q,l){"use strict";l.d(q,{KQ:()=>h,s5:()=>w});var i=l(2615),g=l(73664),p=l(39842),D=l(22466);const o=["*",[["mat-toolbar-row"]]],e=["*","mat-toolbar-row"];let A=(()=>{class f{static \u0275fac=function(K){return new(K||f)};static \u0275dir=g.FsC({type:f,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return f})(),h=(()=>{class f{_elementRef=(0,i.WQX)(g.aKT);_platform=(0,i.WQX)(p.O);_document=(0,i.WQX)(i.qQL);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static \u0275fac=function(K){return new(K||f)};static \u0275cmp=g.VBU({type:f,selectors:[["mat-toolbar"]],contentQueries:function(K,j,Z){if(1&K&&g.wni(Z,A,5),2&K){let ee;g.mGM(ee=g.lsd())&&(j._toolbarRows=ee)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(K,j){2&K&&(g.HbH(j.color?"mat-"+j.color:""),g.AVh("mat-toolbar-multiple-rows",j._toolbarRows.length>0)("mat-toolbar-single-row",0===j._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:e,decls:2,vars:0,template:function(K,j){1&K&&(g.NAR(o),g.SdG(0),g.SdG(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.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;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}\n"],encapsulation:2,changeDetection:0})}return f})(),w=(()=>{class f{static \u0275fac=function(K){return new(K||f)};static \u0275mod=g.$C({type:f});static \u0275inj=i.G2t({imports:[D.y,D.y]})}return f})()},86156(ke,q,l){"use strict";l.d(q,{u:()=>h});var i=l(2615),g=l(73664),p=l(17094),D=l(49338),o=l(5718),e=l(40455),A=l(22466);let h=(()=>{class d{static \u0275fac=function(F){return new(F||d)};static \u0275mod=g.$C({type:d});static \u0275inj=i.G2t({providers:[e.YZ],imports:[p.Pd,D.z_,A.y,A.y,o.Gj]})}return d})()},40455(ke,q,l){"use strict";l.d(q,{YZ:()=>pe,oV:()=>C});var i=l(56977),g=l(14085),p=l(67847),D=l(67336),o=l(10438),e=l(2615),A=l(73664),h=l(17705),d=l(72200),w=l(39842),f=l(83300),F=l(18617),M=l(76838),K=l(61577),j=l(49338),Z=l(5718),ee=l(76939),V=l(21413),Q=l(31804);const $=["tooltip"],ye=new e.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const x=(0,e.WQX)(e.zZn);return()=>(0,j.RH)(x,{scrollThrottle:20})}}),pe={provide:ye,deps:[],useFactory:function se(x){const Y=(0,e.WQX)(e.zZn);return()=>(0,j.RH)(Y,{scrollThrottle:20})}},L=new e.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Ee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),s="tooltip-panel",m=(0,f.B)({passive:!0});let C=(()=>{class x{_elementRef=(0,e.WQX)(A.aKT);_ngZone=(0,e.WQX)(A.SKi);_platform=(0,e.WQX)(w.O);_ariaDescriber=(0,e.WQX)(F.vr);_focusMonitor=(0,e.WQX)(M.FN);_dir=(0,e.WQX)(K.dS);_injector=(0,e.WQX)(e.zZn);_viewContainerRef=(0,e.WQX)(A.c1b);_animationsDisabled=(0,Q.Rc)();_defaultOptions=(0,e.WQX)(L,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=a;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(R){R!==this._position&&(this._position=R,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(R){this._positionAtOrigin=(0,g.he)(R),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(R){const U=(0,g.he)(R);this._disabled!==U&&(this._disabled=U,U?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(R){this._showDelay=(0,p.OE)(R)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(R){this._hideDelay=(0,p.OE)(R),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(R){const U=this._message;this._message=null!=R?String(R).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(U)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(R){this._tooltipClass=R,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new V.B;_isDestroyed=!1;constructor(){const R=this._defaultOptions;R&&(this._showDelay=R.showDelay,this._hideDelay=R.hideDelay,R.position&&(this.position=R.position),R.positionAtOrigin&&(this.positionAtOrigin=R.positionAtOrigin),R.touchGestures&&(this.touchGestures=R.touchGestures),R.tooltipClass&&(this.tooltipClass=R.tooltipClass)),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,i.Q)(this._destroyed)).subscribe(R=>{R?"keyboard"===R&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const R=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([U,fe])=>{R.removeEventListener(U,fe,m)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(R,this.message,"tooltip"),this._focusMonitor.stopMonitoring(R)}show(R=this.showDelay,U){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const fe=this._createOverlay(U);this._detach(),this._portal=this._portal||new ee.A8(this._tooltipComponent,this._viewContainerRef);const re=this._tooltipInstance=fe.attach(this._portal).instance;re._triggerElement=this._elementRef.nativeElement,re._mouseLeaveHideDelay=this._hideDelay,re.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),re.show(R)}hide(R=this.hideDelay){const U=this._tooltipInstance;U&&(U.isVisible()?U.hide(R):(U._cancelPendingAnimations(),this._detach()))}toggle(R){this._isTooltipVisible()?this.hide():this.show(void 0,R)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(R){if(this._overlayRef){const he=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!R)&&he._origin instanceof A.aKT)return this._overlayRef;this._detach()}const U=this._injector.get(Z.R).getAncestorScrollContainers(this._elementRef),fe=`${this._cssClassPrefix}-${s}`,re=(0,j.$M)(this._injector,this.positionAtOrigin&&R||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(U);return re.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(he=>{this._updateCurrentPositionClass(he.connectionPair),this._tooltipInstance&&he.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=(0,j.Y$)(this._injector,{direction:this._dir,positionStrategy:re,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,fe]:fe,scrollStrategy:this._injector.get(ye)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe(he=>{this._isTooltipVisible()&&he.keyCode===o._f&&!(0,D.rp)(he)&&(he.preventDefault(),he.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe((0,i.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(R){const U=R.getConfig().positionStrategy,fe=this._getOrigin(),re=this._getOverlayPosition();U.withPositions([this._addOffset({...fe.main,...re.main}),this._addOffset({...fe.fallback,...re.fallback})])}_addOffset(R){const fe=!this._dir||"ltr"==this._dir.value;return"top"===R.originY?R.offsetY=-8:"bottom"===R.originY?R.offsetY=8:"start"===R.originX?R.offsetX=fe?-8:8:"end"===R.originX&&(R.offsetX=fe?8:-8),R}_getOrigin(){const R=!this._dir||"ltr"==this._dir.value,U=this.position;let fe;"above"==U||"below"==U?fe={originX:"center",originY:"above"==U?"top":"bottom"}:"before"==U||"left"==U&&R||"right"==U&&!R?fe={originX:"start",originY:"center"}:("after"==U||"right"==U&&R||"left"==U&&!R)&&(fe={originX:"end",originY:"center"});const{x:re,y:he}=this._invertPosition(fe.originX,fe.originY);return{main:fe,fallback:{originX:re,originY:he}}}_getOverlayPosition(){const R=!this._dir||"ltr"==this._dir.value,U=this.position;let fe;"above"==U?fe={overlayX:"center",overlayY:"bottom"}:"below"==U?fe={overlayX:"center",overlayY:"top"}:"before"==U||"left"==U&&R||"right"==U&&!R?fe={overlayX:"end",overlayY:"center"}:("after"==U||"right"==U&&R||"left"==U&&!R)&&(fe={overlayX:"start",overlayY:"center"});const{x:re,y:he}=this._invertPosition(fe.overlayX,fe.overlayY);return{main:fe,fallback:{overlayX:re,overlayY:he}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,A.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(R){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=R,this._tooltipInstance._markForCheck())}_invertPosition(R,U){return"above"===this.position||"below"===this.position?"top"===U?U="bottom":"bottom"===U&&(U="top"):"end"===R?R="start":"start"===R&&(R="end"),{x:R,y:U}}_updateCurrentPositionClass(R){const{overlayY:U,originX:fe,originY:re}=R;let he;if(he="center"===U?this._dir&&"rtl"===this._dir.value?"end"===fe?"left":"right":"start"===fe?"left":"right":"bottom"===U&&"top"===re?"above":"below",he!==this._currentPosition){const Oe=this._overlayRef;if(Oe){const ge=`${this._cssClassPrefix}-${s}-`;Oe.removePanelClass(ge+this._currentPosition),Oe.addPanelClass(ge+he)}this._currentPosition=he}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",R=>{let U;this._setupPointerExitEventsIfNeeded(),void 0!==R.x&&void 0!==R.y&&(U=R),this.show(void 0,U)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",R=>{const U=R.targetTouches?.[0],fe=U?{x:U.clientX,y:U.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,fe)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const R=[];if(this._platformSupportsMouseEvents())R.push(["mouseleave",U=>{const fe=U.relatedTarget;(!fe||!this._overlayRef?.overlayElement.contains(fe))&&this.hide()}],["wheel",U=>this._wheelListener(U)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const U=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};R.push(["touchend",U],["touchcancel",U])}this._addListeners(R),this._passiveListeners.push(...R)}_addListeners(R){R.forEach(([U,fe])=>{this._elementRef.nativeElement.addEventListener(U,fe,m)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(R){if(this._isTooltipVisible()){const U=this._injector.get(e.qQL).elementFromPoint(R.clientX,R.clientY),fe=this._elementRef.nativeElement;U!==fe&&!fe.contains(U)&&this.hide()}}_disableNativeGesturesIfNecessary(){const R=this.touchGestures;if("off"!==R){const U=this._elementRef.nativeElement,fe=U.style;("on"===R||"INPUT"!==U.nodeName&&"TEXTAREA"!==U.nodeName)&&(fe.userSelect=fe.msUserSelect=fe.webkitUserSelect=fe.MozUserSelect="none"),("on"===R||!U.draggable)&&(fe.webkitUserDrag="none"),fe.touchAction="none",fe.webkitTapHighlightColor="transparent"}}_syncAriaDescription(R){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,R,"tooltip"),this._isDestroyed||(0,A.mal)({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(U){return new(U||x)};static \u0275dir=A.FsC({type:x,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(U,fe){2&U&&A.AVh("mat-mdc-tooltip-disabled",fe.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return x})(),a=(()=>{class x{_changeDetectorRef=(0,e.WQX)(h.gRc);_elementRef=(0,e.WQX)(A.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=(0,Q.Rc)();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new V.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(R){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},R)}hide(R){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},R)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:R}){(!R||!this._triggerElement.contains(R))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const R=this._elementRef.nativeElement.getBoundingClientRect();return R.height>24&&R.width>=200}_handleAnimationEnd({animationName:R}){(R===this._showAnimation||R===this._hideAnimation)&&this._finalizeAnimation(R===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(R){R?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(R){const U=this._tooltip.nativeElement,fe=this._showAnimation,re=this._hideAnimation;if(U.classList.remove(R?re:fe),U.classList.add(R?fe:re),this._isVisible!==R&&(this._isVisible=R,this._changeDetectorRef.markForCheck()),R&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const he=getComputedStyle(U);("0s"===he.getPropertyValue("animation-duration")||"none"===he.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}R&&this._onShow(),this._animationsDisabled&&(U.classList.add("_mat-animation-noopable"),this._finalizeAnimation(R))}static \u0275fac=function(U){return new(U||x)};static \u0275cmp=A.VBU({type:x,selectors:[["mat-tooltip-component"]],viewQuery:function(U,fe){if(1&U&&A.GBs($,7),2&U){let re;A.mGM(re=A.lsd())&&(fe._tooltip=re.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(U,fe){1&U&&A.bIt("mouseleave",function(he){return fe._handleMouseLeave(he)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(U,fe){if(1&U){const re=A.RV6();A.j41(0,"div",1,0),A.bIt("animationend",function(Oe){return e.eBV(re),e.Njj(fe._handleAnimationEnd(Oe))}),A.j41(2,"div",2),A.EFF(3),A.k0s()()}2&U&&(A.AVh("mdc-tooltip--multiline",fe._isMultiline),A.Y8G("ngClass",fe.tooltipClass),A.R7$(3),A.JRh(fe.message))},dependencies:[d.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}\n'],encapsulation:2,changeDetection:0})}return x})()},47358(ke,q,l){"use strict";l.d(q,{Zh:()=>ye,d6:()=>F,jH:()=>$,lQ:()=>ee,pO:()=>V,q1:()=>K,wx:()=>Z,yI:()=>M});var g=l(72279),p=l(2615),D=l(73664),o=l(17705),e=l(22466),A=l(14117),h=l(84412),d=l(57786),w=l(96354);let F=(()=>{class se extends g.xn{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(Ee){this._tabIndexInputBinding=Ee}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return function f(se){return!!se._isNoopTreeKeyManager}(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(Ee){this.isDisabled=Ee}constructor(){super();const Ee=(0,p.WQX)(new o.ES_("tabindex"),{optional:!0});this.tabIndexInputBinding=Number(Ee)||this.defaultTabIndex}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(L){return new(L||se)};static \u0275dir=D.FsC({type:se,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(L,t){1&L&&D.bIt("click",function(){return t._focusItem()}),2&L&&(D.Avn("tabIndex",t._getTabindexAttribute()),D.BMQ("aria-expanded",t._getAriaExpanded())("aria-level",t.level+1)("aria-posinset",t._getPositionInSet())("aria-setsize",t._getSetSize()))},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",Ee=>null==Ee?0:(0,o.Udg)(Ee)],disabled:[2,"disabled","disabled",o.L39]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[D.Jv_([{provide:g.xn,useExisting:se}]),D.Vt3]})}return se})(),M=(()=>{class se extends g.Sz{data;static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275dir=D.FsC({type:se,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[D.Jv_([{provide:g.Sz,useExisting:se}]),D.Vt3]})}return se})(),K=(()=>{class se extends g.s3{node;get disabled(){return this.isDisabled}set disabled(Ee){this.isDisabled=Ee}get tabIndex(){return this.isDisabled?-1:this._tabIndex}set tabIndex(Ee){this._tabIndex=Ee}_tabIndex;ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275dir=D.FsC({type:se,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[0,"matNestedTreeNode","node"],disabled:[2,"disabled","disabled",o.L39],tabIndex:[2,"tabIndex","tabIndex",Ee=>null==Ee?0:(0,o.Udg)(Ee)]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matNestedTreeNode"],features:[D.Jv_([{provide:g.s3,useExisting:se},{provide:g.xn,useExisting:se},{provide:g.kZ,useExisting:se}]),D.Vt3]})}return se})(),Z=(()=>{class se{viewContainer=(0,p.WQX)(D.c1b);_node=(0,p.WQX)(g.kZ,{optional:!0});static \u0275fac=function(L){return new(L||se)};static \u0275dir=D.FsC({type:se,selectors:[["","matTreeNodeOutlet",""]],features:[D.Jv_([{provide:g.a$,useExisting:se}])]})}return se})(),ee=(()=>{class se extends g.NL{_nodeOutlet=void 0;static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275cmp=D.VBU({type:se,selectors:[["mat-tree"]],viewQuery:function(L,t){if(1&L&&D.GBs(Z,7),2&L){let s;D.mGM(s=D.lsd())&&(t._nodeOutlet=s.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[D.Jv_([{provide:g.NL,useExisting:se}]),D.Vt3],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(L,t){1&L&&D.eu8(0,0)},dependencies:[Z],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2})}return se})(),V=(()=>{class se extends g.Hy{static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275dir=D.FsC({type:se,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[D.Jv_([{provide:g.Hy,useExisting:se}]),D.Vt3]})}return se})(),$=(()=>{class se{static \u0275fac=function(L){return new(L||se)};static \u0275mod=D.$C({type:se});static \u0275inj=p.G2t({imports:[g.Dc,e.y,e.y]})}return se})();class ye extends A.q{get data(){return this._data.value}set data(pe){this._data.next(pe)}_data=new h.t([]);connect(pe){return(0,d.h)(pe.viewChange,this._data).pipe((0,w.T)(()=>this.data))}disconnect(){}}},93393(ke,q,l){"use strict";l.d(q,{CI:()=>M,EU:()=>A,Hl:()=>D,Q5:()=>e,jd:()=>o,mE:()=>L});var i=l(2615),g=l(57303),p=l(73664);class D{_doc;constructor(a){this._doc=a}manager}let o=(()=>{class C extends D{constructor(x){super(x)}supports(x){return!0}addEventListener(x,Y,R,U){return x.addEventListener(Y,R,U),()=>this.removeEventListener(x,Y,R,U)}removeEventListener(x,Y,R,U){return x.removeEventListener(Y,R,U)}static \u0275fac=function(Y){return new(Y||C)(i.KVO(i.qQL))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();const e=new i.nKC("");let A=(()=>{class C{_zone;_plugins;_eventNameToPlugin=new Map;constructor(x,Y){this._zone=Y,x.forEach(fe=>{fe.manager=this});const R=x.filter(fe=>!(fe instanceof o));this._plugins=R.slice().reverse();const U=x.find(fe=>fe instanceof o);U&&this._plugins.push(U)}addEventListener(x,Y,R,U){return this._findPluginFor(Y).addEventListener(x,Y,R,U)}getZone(){return this._zone}_findPluginFor(x){let Y=this._eventNameToPlugin.get(x);if(Y)return Y;if(Y=this._plugins.find(U=>U.supports(x)),!Y)throw new i.buA(5101,!1);return this._eventNameToPlugin.set(x,Y),Y}static \u0275fac=function(Y){return new(Y||C)(i.KVO(e),i.KVO(p.SKi))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();const h="ng-app-id";function d(C){for(const a of C)a.remove()}function w(C,a){const x=a.createElement("style");return x.textContent=C,x}function F(C,a){const x=a.createElement("link");return x.setAttribute("rel","stylesheet"),x.setAttribute("href",C),x}let M=(()=>{class C{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(x,Y,R,U={}){this.doc=x,this.appId=Y,this.nonce=R,function f(C,a,x,Y){const R=C.head?.querySelectorAll(`style[${h}="${a}"],link[${h}="${a}"]`);if(R)for(const U of R)U.removeAttribute(h),U instanceof HTMLLinkElement?Y.set(U.href.slice(U.href.lastIndexOf("/")+1),{usage:0,elements:[U]}):U.textContent&&x.set(U.textContent,{usage:0,elements:[U]})}(x,Y,this.inline,this.external),this.hosts.add(x.head)}addStyles(x,Y){for(const R of x)this.addUsage(R,this.inline,w);Y?.forEach(R=>this.addUsage(R,this.external,F))}removeStyles(x,Y){for(const R of x)this.removeUsage(R,this.inline);Y?.forEach(R=>this.removeUsage(R,this.external))}addUsage(x,Y,R){const U=Y.get(x);U?U.usage++:Y.set(x,{usage:1,elements:[...this.hosts].map(fe=>this.addElement(fe,R(x,this.doc)))})}removeUsage(x,Y){const R=Y.get(x);R&&(R.usage--,R.usage<=0&&(d(R.elements),Y.delete(x)))}ngOnDestroy(){for(const[,{elements:x}]of[...this.inline,...this.external])d(x);this.hosts.clear()}addHost(x){this.hosts.add(x);for(const[Y,{elements:R}]of this.inline)R.push(this.addElement(x,w(Y,this.doc)));for(const[Y,{elements:R}]of this.external)R.push(this.addElement(x,F(Y,this.doc)))}removeHost(x){this.hosts.delete(x)}addElement(x,Y){return this.nonce&&Y.setAttribute("nonce",this.nonce),x.appendChild(Y)}static \u0275fac=function(Y){return new(Y||C)(i.KVO(i.qQL),i.KVO(p.sZ2),i.KVO(p.BIS,8),i.KVO(p.Agw))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();const K={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},j=/%COMP%/g,V="%COMP%",Q=`_nghost-${V}`,$=`_ngcontent-${V}`,_e=new i.nKC("",{providedIn:"root",factory:()=>!0});function pe(C,a){return a.map(x=>x.replace(j,C))}let L=(()=>{class C{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(x,Y,R,U,fe,re,he=null,Oe=null){this.eventManager=x,this.sharedStylesHost=Y,this.appId=R,this.removeStylesOnCompDestroy=U,this.doc=fe,this.ngZone=re,this.nonce=he,this.tracingService=Oe,this.platformIsServer=!1,this.defaultRenderer=new t(x,fe,re,this.platformIsServer,this.tracingService)}createRenderer(x,Y){if(!x||!Y)return this.defaultRenderer;const R=this.getOrCreateRenderer(x,Y);return R instanceof P?R.applyToHost(x):R instanceof T&&R.applyStyles(),R}getOrCreateRenderer(x,Y){const R=this.rendererByCompId;let U=R.get(Y.id);if(!U){const fe=this.doc,re=this.ngZone,he=this.eventManager,Oe=this.sharedStylesHost,ge=this.removeStylesOnCompDestroy,ce=this.platformIsServer,Re=this.tracingService;switch(Y.encapsulation){case p.gXe.Emulated:U=new P(he,Oe,Y,this.appId,ge,fe,re,ce,Re);break;case p.gXe.ShadowDom:return new _(he,Oe,x,Y,fe,re,this.nonce,ce,Re);default:U=new T(he,Oe,Y,ge,fe,re,ce,Re)}R.set(Y.id,U)}return U}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(x){this.rendererByCompId.delete(x)}static \u0275fac=function(Y){return new(Y||C)(i.KVO(A),i.KVO(M),i.KVO(p.sZ2),i.KVO(_e),i.KVO(i.qQL),i.KVO(p.SKi),i.KVO(p.BIS),i.KVO(p.a8H,8))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();class t{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(a,x,Y,R,U){this.eventManager=a,this.doc=x,this.ngZone=Y,this.platformIsServer=R,this.tracingService=U}destroy(){}destroyNode=null;createElement(a,x){return x?this.doc.createElementNS(K[x]||x,a):this.doc.createElement(a)}createComment(a){return this.doc.createComment(a)}createText(a){return this.doc.createTextNode(a)}appendChild(a,x){(u(a)?a.content:a).appendChild(x)}insertBefore(a,x,Y){a&&(u(a)?a.content:a).insertBefore(x,Y)}removeChild(a,x){x.remove()}selectRootElement(a,x){let Y="string"==typeof a?this.doc.querySelector(a):a;if(!Y)throw new i.buA(-5104,!1);return x||(Y.textContent=""),Y}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,x,Y,R){if(R){x=R+":"+x;const U=K[R];U?a.setAttributeNS(U,x,Y):a.setAttribute(x,Y)}else a.setAttribute(x,Y)}removeAttribute(a,x,Y){if(Y){const R=K[Y];R?a.removeAttributeNS(R,x):a.removeAttribute(`${Y}:${x}`)}else a.removeAttribute(x)}addClass(a,x){a.classList.add(x)}removeClass(a,x){a.classList.remove(x)}setStyle(a,x,Y,R){R&(p.czy.DashCase|p.czy.Important)?a.style.setProperty(x,Y,R&p.czy.Important?"important":""):a.style[x]=Y}removeStyle(a,x,Y){Y&p.czy.DashCase?a.style.removeProperty(x):a.style[x]=""}setProperty(a,x,Y){null!=a&&(a[x]=Y)}setValue(a,x){a.nodeValue=x}listen(a,x,Y,R){if("string"==typeof a&&!(a=(0,g.rb)().getGlobalEventTarget(this.doc,a)))throw new i.buA(5102,!1);let U=this.decoratePreventDefault(Y);return this.tracingService?.wrapEventListener&&(U=this.tracingService.wrapEventListener(a,x,U)),this.eventManager.addEventListener(a,x,U,R)}decoratePreventDefault(a){return x=>{if("__ngUnwrap__"===x)return a;!1===a(x)&&x.preventDefault()}}}function u(C){return"TEMPLATE"===C.tagName&&void 0!==C.content}class _ extends t{sharedStylesHost;hostEl;shadowRoot;constructor(a,x,Y,R,U,fe,re,he,Oe){super(a,U,fe,he,Oe),this.sharedStylesHost=x,this.hostEl=Y,this.shadowRoot=Y.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let ge=R.styles;ge=pe(R.id,ge);for(const Re of ge){const Me=document.createElement("style");re&&Me.setAttribute("nonce",re),Me.textContent=Re,this.shadowRoot.appendChild(Me)}const ce=R.getExternalStyles?.();if(ce)for(const Re of ce){const Me=F(Re,U);re&&Me.setAttribute("nonce",re),this.shadowRoot.appendChild(Me)}}nodeOrShadowRoot(a){return a===this.hostEl?this.shadowRoot:a}appendChild(a,x){return super.appendChild(this.nodeOrShadowRoot(a),x)}insertBefore(a,x,Y){return super.insertBefore(this.nodeOrShadowRoot(a),x,Y)}removeChild(a,x){return super.removeChild(null,x)}parentNode(a){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(a)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class T extends t{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(a,x,Y,R,U,fe,re,he,Oe){super(a,U,fe,re,he),this.sharedStylesHost=x,this.removeStylesOnCompDestroy=R;let ge=Y.styles;this.styles=Oe?pe(Oe,ge):ge,this.styleUrls=Y.getExternalStyles?.(Oe)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&0===p.DUP.size&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class P extends T{contentAttr;hostAttr;constructor(a,x,Y,R,U,fe,re,he,Oe){const ge=R+"-"+Y.id;super(a,x,Y,U,fe,re,he,Oe,ge),this.contentAttr=function ye(C){return $.replace(j,C)}(ge),this.hostAttr=function se(C){return Q.replace(j,C)}(ge)}applyToHost(a){this.applyStyles(),this.setAttribute(a,this.hostAttr,"")}createElement(a,x){const Y=super.createElement(a,x);return super.setAttribute(Y,this.contentAttr,""),Y}}},345(ke,q,l){"use strict";l.d(q,{fM:()=>R,hE:()=>pe,up:()=>U});var $=l(2615),ie=l(73664),_e=l(93393);let pe=(()=>{class nt{_doc;constructor(dt){this._doc=dt}getTitle(){return this._doc.title}setTitle(dt){this._doc.title=dt||""}static \u0275fac=function(yt){return new(yt||nt)($.KVO($.qQL))};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();const P={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},C=new $.nKC(""),a=new $.nKC("");let x=(()=>{class nt{events=[];overrides={};options;buildHammer(dt){const yt=new Hammer(dt,this.options);yt.get("pinch").set({enable:!0}),yt.get("rotate").set({enable:!0});for(const Et in this.overrides)yt.get(Et).set(this.overrides[Et]);return yt}static \u0275fac=function(yt){return new(yt||nt)};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac})}return nt})(),Y=(()=>{class nt extends _e.Hl{_config;_injector;loader;_loaderPromise=null;constructor(dt,yt,Et,rt){super(dt),this._config=yt,this._injector=Et,this.loader=rt}supports(dt){return!(!P.hasOwnProperty(dt.toLowerCase())&&!this.isCustomEvent(dt)||!window.Hammer&&!this.loader)}addEventListener(dt,yt,Et){const rt=this.manager.getZone();if(yt=yt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||rt.runOutsideAngular(()=>this.loader());let Mn=!1,qt=()=>{Mn=!0};return rt.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Mn||(qt=this.addEventListener(dt,yt,Et)):qt=()=>{}}).catch(()=>{qt=()=>{}})),()=>{qt()}}return rt.runOutsideAngular(()=>{const Mn=this._config.buildHammer(dt),qt=function(S){rt.runGuarded(function(){Et(S)})};return Mn.on(yt,qt),()=>{Mn.off(yt,qt),"function"==typeof Mn.destroy&&Mn.destroy()}})}isCustomEvent(dt){return this._config.events.indexOf(dt)>-1}static \u0275fac=function(yt){return new(yt||nt)($.KVO($.qQL),$.KVO(C),$.KVO($.zZn),$.KVO(a,8))};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac})}return nt})(),R=(()=>{class nt{static \u0275fac=function(yt){return new(yt||nt)};static \u0275mod=ie.$C({type:nt});static \u0275inj=$.G2t({providers:[{provide:_e.Q5,useClass:Y,multi:!0,deps:[$.qQL,C,$.zZn,[new ie.Xx1,a]]},{provide:C,useClass:x}]})}return nt})(),U=(()=>{class nt{static \u0275fac=function(yt){return new(yt||nt)};static \u0275prov=$.jDH({token:nt,factory:function(yt){let Et=null;return Et=yt?new(yt||nt):$.KVO(fe),Et},providedIn:"root"})}return nt})(),fe=(()=>{class nt extends U{_doc;constructor(dt){super(),this._doc=dt}sanitize(dt,yt){if(null==yt)return null;switch(dt){case ie.WPN.NONE:return yt;case ie.WPN.HTML:return(0,ie.iWE)(yt,"HTML")?(0,ie.aCM)(yt):(0,ie.wr$)(this._doc,String(yt)).toString();case ie.WPN.STYLE:return(0,ie.iWE)(yt,"Style")?(0,ie.aCM)(yt):yt;case ie.WPN.SCRIPT:if((0,ie.iWE)(yt,"Script"))return(0,ie.aCM)(yt);throw new $.buA(5200,!1);case ie.WPN.URL:return(0,ie.iWE)(yt,"URL")?(0,ie.aCM)(yt):(0,ie.gil)(String(yt));case ie.WPN.RESOURCE_URL:if((0,ie.iWE)(yt,"ResourceURL"))return(0,ie.aCM)(yt);throw new $.buA(5201,!1);default:throw new $.buA(5202,!1)}}bypassSecurityTrustHtml(dt){return(0,ie.PYC)(dt)}bypassSecurityTrustStyle(dt){return(0,ie.rAh)(dt)}bypassSecurityTrustScript(dt){return(0,ie.p2i)(dt)}bypassSecurityTrustUrl(dt){return(0,ie.B1s)(dt)}bypassSecurityTrustResourceUrl(dt){return(0,ie.RPW)(dt)}static \u0275fac=function(yt){return new(yt||nt)($.KVO($.qQL))};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})()},43694(ke,q,l){"use strict";l.d(q,{nX:()=>vt,Pu:()=>ao,Zp:()=>cn,nU:()=>hn,wU:()=>Nn,c1:()=>hs,XR:()=>Xs,j5:()=>Kn,wF:()=>gn,L6:()=>Xn,lW:()=>ci,mo:()=>kn,Z:()=>ui,J2:()=>ro,J_:()=>wo,bw:()=>mo,gx:()=>dn,tD:()=>zo,Ix:()=>Wo,D$:()=>So,n3:()=>ds,OY:()=>_a,Sd:()=>Vt,bK:()=>$r,gk:()=>wl,Lg:()=>Ss,wO:()=>fn,Us:()=>fi,we:()=>fs});var i=l(2615),g=l(57303),p=l(73664),D=l(17705),o=l(59295),e=l(74402),A=l(22806),h=l(7673),d=l(84412),w=l(84572),f=l(9350),F=l(28793),M=l(59030),K=l(71203),j=l(18810),Z=l(983),ee=l(30017),V=l(21413),Q=l(71985),$=l(18359),ie=l(96354),_e=l(25558),ye=l(96697),se=l(99172),pe=l(5964),Ee=l(31397),L=l(61594),t=l(70274),s=l(88141),m=l(99437),u=l(31943),_=l(39901),T=l(39974),P=l(54360);function C(Te){return Te<=0?()=>Z.w:(0,T.N)((je,Be)=>{let Ke=[];je.subscribe((0,P._)(Be,bt=>{Ke.push(bt),Te{for(const bt of Ke)Be.next(bt);Be.complete()},void 0,()=>{Ke=null}))})}var a=l(93774),x=l(33669),R=l(70980),U=l(99898),fe=l(56977),re=l(345);const he="primary",Oe=Symbol("RouteTitle");class ge{params;constructor(je){this.params=je||{}}has(je){return Object.prototype.hasOwnProperty.call(this.params,je)}get(je){if(this.has(je)){const Be=this.params[je];return Array.isArray(Be)?Be[0]:Be}return null}getAll(je){if(this.has(je)){const Be=this.params[je];return Array.isArray(Be)?Be:[Be]}return[]}get keys(){return Object.keys(this.params)}}function ce(Te){return new ge(Te)}function Re(Te,je,Be){const Ke=Be.path.split("/");if(Ke.length>Te.length||"full"===Be.pathMatch&&(je.hasChildren()||Ke.lengthKe[Ht]===bt)}return Te===je}function be(Te){return Te.length>0?Te[Te.length-1]:null}function nt(Te){return(0,e.A)(Te)?Te:(0,p.yLl)(Te)?(0,A.H)(Promise.resolve(Te)):(0,h.of)(Te)}const $e={exact:function rt(Te,je,Be){if(!et(Te.segments,je.segments)||!Xt(Te.segments,je.segments,Be)||Te.numberOfChildren!==je.numberOfChildren)return!1;for(const Ke in je.children)if(!Te.children[Ke]||!rt(Te.children[Ke],je.children[Ke],Be))return!1;return!0},subset:qt},dt={exact:function Et(Te,je){return ve(Te,je)},subset:function Mn(Te,je){return Object.keys(je).length<=Object.keys(Te).length&&Object.keys(je).every(Be=>Se(Te[Be],je[Be]))},ignored:()=>!0};function yt(Te,je,Be){return $e[Be.paths](Te.root,je.root,Be.matrixParams)&&dt[Be.queryParams](Te.queryParams,je.queryParams)&&!("exact"===Be.fragment&&Te.fragment!==je.fragment)}function qt(Te,je,Be){return S(Te,je,je.segments,Be)}function S(Te,je,Be,Ke){if(Te.segments.length>Be.length){const bt=Te.segments.slice(0,Be.length);return!(!et(bt,Be)||je.hasChildren()||!Xt(bt,Be,Ke))}if(Te.segments.length===Be.length){if(!et(Te.segments,Be)||!Xt(Te.segments,Be,Ke))return!1;for(const bt in je.children)if(!Te.children[bt]||!qt(Te.children[bt],je.children[bt],Ke))return!1;return!0}{const bt=Be.slice(0,Te.segments.length),Ht=Be.slice(Te.segments.length);return!!(et(Te.segments,bt)&&Xt(Te.segments,bt,Ke)&&Te.children[he])&&S(Te.children[he],je,Ht,Ke)}}function Xt(Te,je,Be){return je.every((Ke,bt)=>dt[Be](Te[bt].parameters,Ke.parameters))}class de{root;queryParams;fragment;_queryParamMap;constructor(je=new ae([],{}),Be={},Ke=null){this.root=je,this.queryParams=Be,this.fragment=Ke}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return En.serialize(this)}}class ae{segments;children;parent=null;constructor(je,Be){this.segments=je,this.children=Be,Object.values(Be).forEach(Ke=>Ke.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _n(this)}}class me{path;parameters;_parameterMap;constructor(je,Be){this.path=je,this.parameters=Be}get parameterMap(){return this._parameterMap??=ce(this.parameters),this._parameterMap}toString(){return Ne(this)}}function et(Te,je){return Te.length===je.length&&Te.every((Be,Ke)=>Be.path===je[Ke].path)}let Vt=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>new hn,providedIn:"root"})}return Te})();class hn{parse(je){const Be=new We(je);return new de(Be.parseRootSegment(),Be.parseQueryParams(),Be.parseFragment())}serialize(je){const Be=`/${tt(je.root,!0)}`,Ke=function Je(Te){const je=Object.entries(Te).map(([Be,Ke])=>Array.isArray(Ke)?Ke.map(bt=>`${Pe(Be)}=${Pe(bt)}`).join("&"):`${Pe(Be)}=${Pe(Ke)}`).filter(Be=>Be);return je.length?`?${je.join("&")}`:""}(je.queryParams);return`${Be}${Ke}${"string"==typeof je.fragment?`#${function Ue(Te){return encodeURI(Te)}(je.fragment)}`:""}`}}const En=new hn;function _n(Te){return Te.segments.map(je=>Ne(je)).join("/")}function tt(Te,je){if(!Te.hasChildren())return _n(Te);if(je){const Be=Te.children[he]?tt(Te.children[he],!1):"",Ke=[];return Object.entries(Te.children).forEach(([bt,Ht])=>{bt!==he&&Ke.push(`${bt}:${tt(Ht,!1)}`)}),Ke.length>0?`${Be}(${Ke.join("//")})`:Be}{const Be=function tn(Te,je){let Be=[];return Object.entries(Te.children).forEach(([Ke,bt])=>{Ke===he&&(Be=Be.concat(je(bt,Ke)))}),Object.entries(Te.children).forEach(([Ke,bt])=>{Ke!==he&&(Be=Be.concat(je(bt,Ke)))}),Be}(Te,(Ke,bt)=>bt===he?[tt(Te.children[he],!1)]:[`${bt}:${tt(Ke,!1)}`]);return 1===Object.keys(Te.children).length&&null!=Te.children[he]?`${_n(Te)}/${Be[0]}`:`${_n(Te)}/(${Be.join("//")})`}}function Fe(Te){return encodeURIComponent(Te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pe(Te){return Fe(Te).replace(/%3B/gi,";")}function Qe(Te){return Fe(Te).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ie(Te){return decodeURIComponent(Te)}function le(Te){return Ie(Te.replace(/\+/g,"%20"))}function Ne(Te){return`${Qe(Te.path)}${function ze(Te){return Object.entries(Te).map(([je,Be])=>`;${Qe(je)}=${Qe(Be)}`).join("")}(Te.parameters)}`}const gt=/^[^\/()?;#]+/;function zt(Te){const je=Te.match(gt);return je?je[0]:""}const Ye=/^[^\/()?;=#]+/,it=/^[^=?&#]+/,Wt=/^[^&#]+/;class We{url;remaining;constructor(je){this.url=je,this.remaining=je}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const je={};if(this.consumeOptional("?"))do{this.parseQueryParam(je)}while(this.consumeOptional("&"));return je}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const je=[];for(this.peekStartsWith("(")||je.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),je.push(this.parseSegment());let Be={};this.peekStartsWith("/(")&&(this.capture("/"),Be=this.parseParens(!0));let Ke={};return this.peekStartsWith("(")&&(Ke=this.parseParens(!1)),(je.length>0||Object.keys(Be).length>0)&&(Ke[he]=new ae(je,Be)),Ke}parseSegment(){const je=zt(this.remaining);if(""===je&&this.peekStartsWith(";"))throw new i.buA(4009,!1);return this.capture(je),new me(Ie(je),this.parseMatrixParams())}parseMatrixParams(){const je={};for(;this.consumeOptional(";");)this.parseParam(je);return je}parseParam(je){const Be=function st(Te){const je=Te.match(Ye);return je?je[0]:""}(this.remaining);if(!Be)return;this.capture(Be);let Ke="";if(this.consumeOptional("=")){const bt=zt(this.remaining);bt&&(Ke=bt,this.capture(Ke))}je[Ie(Be)]=Ie(Ke)}parseQueryParam(je){const Be=function He(Te){const je=Te.match(it);return je?je[0]:""}(this.remaining);if(!Be)return;this.capture(Be);let Ke="";if(this.consumeOptional("=")){const sn=function we(Te){const je=Te.match(Wt);return je?je[0]:""}(this.remaining);sn&&(Ke=sn,this.capture(Ke))}const bt=le(Be),Ht=le(Ke);if(je.hasOwnProperty(bt)){let sn=je[bt];Array.isArray(sn)||(sn=[sn],je[bt]=sn),sn.push(Ht)}else je[bt]=Ht}parseParens(je){const Be={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ke=zt(this.remaining),bt=this.remaining[Ke.length];if("/"!==bt&&")"!==bt&&";"!==bt)throw new i.buA(4010,!1);let Ht;Ke.indexOf(":")>-1?(Ht=Ke.slice(0,Ke.indexOf(":")),this.capture(Ht),this.capture(":")):je&&(Ht=he);const sn=this.parseChildren();Be[Ht??he]=1===Object.keys(sn).length&&sn[he]?sn[he]:new ae([],sn),this.consumeOptional("//")}return Be}peekStartsWith(je){return this.remaining.startsWith(je)}consumeOptional(je){return!!this.peekStartsWith(je)&&(this.remaining=this.remaining.substring(je.length),!0)}capture(je){if(!this.consumeOptional(je))throw new i.buA(4011,!1)}}function Lt(Te){return Te.segments.length>0?new ae([],{[he]:Te}):Te}function St(Te){const je={};for(const[Ke,bt]of Object.entries(Te.children)){const Ht=St(bt);if(Ke===he&&0===Ht.segments.length&&Ht.hasChildren())for(const[sn,Rn]of Object.entries(Ht.children))je[sn]=Rn;else(Ht.segments.length>0||Ht.hasChildren())&&(je[Ke]=Ht)}return function At(Te){if(1===Te.numberOfChildren&&Te.children[he]){const je=Te.children[he];return new ae(Te.segments.concat(je.segments),je.children)}return Te}(new ae(Te.segments,je))}function fn(Te){return Te instanceof de}function It(Te){let je;const bt=Lt(function Be(Ht){const sn={};for(const di of Ht.children){const ji=Be(di);sn[di.outlet]=ji}const Rn=new ae(Ht.url,sn);return Ht===Te&&(je=Rn),Rn}(Te.root));return je??bt}function wn(Te,je,Be,Ke){let bt=Te;for(;bt.parent;)bt=bt.parent;if(0===je.length)return Li(bt,bt,bt,Be,Ke);const Ht=function Ze(Te){if("string"==typeof Te[0]&&1===Te.length&&"/"===Te[0])return new Ot(!0,0,Te);let je=0,Be=!1;const Ke=Te.reduce((bt,Ht,sn)=>{if("object"==typeof Ht&&null!=Ht){if(Ht.outlets){const Rn={};return Object.entries(Ht.outlets).forEach(([di,ji])=>{Rn[di]="string"==typeof ji?ji.split("/"):ji}),[...bt,{outlets:Rn}]}if(Ht.segmentPath)return[...bt,Ht.segmentPath]}return"string"!=typeof Ht?[...bt,Ht]:0===sn?(Ht.split("/").forEach((Rn,di)=>{0==di&&"."===Rn||(0==di&&""===Rn?Be=!0:".."===Rn?je++:""!=Rn&&bt.push(Rn))}),bt):[...bt,Ht]},[]);return new Ot(Be,je,Ke)}(je);if(Ht.toRoot())return Li(bt,bt,new ae([],{}),Be,Ke);const sn=function Pt(Te,je,Be){if(Te.isAbsolute)return new Ge(je,!0,0);if(!Be)return new Ge(je,!1,NaN);if(null===Be.parent)return new Ge(Be,!0,0);const Ke=In(Te.commands[0])?0:1;return function Yt(Te,je,Be){let Ke=Te,bt=je,Ht=Be;for(;Ht>bt;){if(Ht-=bt,Ke=Ke.parent,!Ke)throw new i.buA(4005,!1);bt=Ke.segments.length}return new Ge(Ke,!1,bt-Ht)}(Be,Be.segments.length-1+Ke,Te.numberOfDoubleDots)}(Ht,bt,Te),Rn=sn.processChildren?oi(sn.segmentGroup,sn.index,Ht.commands):$n(sn.segmentGroup,sn.index,Ht.commands);return Li(bt,sn.segmentGroup,Rn,Be,Ke)}function In(Te){return"object"==typeof Te&&null!=Te&&!Te.outlets&&!Te.segmentPath}function ei(Te){return"object"==typeof Te&&null!=Te&&Te.outlets}function Li(Te,je,Be,Ke,bt){let sn,Ht={};Ke&&Object.entries(Ke).forEach(([di,ji])=>{Ht[di]=Array.isArray(ji)?ji.map(Ia=>`${Ia}`):`${ji}`}),sn=Te===je?Be:kt(Te,je,Be);const Rn=Lt(St(sn));return new de(Rn,Ht,bt)}function kt(Te,je,Be){const Ke={};return Object.entries(Te.children).forEach(([bt,Ht])=>{Ke[bt]=Ht===je?Be:kt(Ht,je,Be)}),new ae(Te.segments,Ke)}class Ot{isAbsolute;numberOfDoubleDots;commands;constructor(je,Be,Ke){if(this.isAbsolute=je,this.numberOfDoubleDots=Be,this.commands=Ke,je&&Ke.length>0&&In(Ke[0]))throw new i.buA(4003,!1);const bt=Ke.find(ei);if(bt&&bt!==be(Ke))throw new i.buA(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ge{segmentGroup;processChildren;index;constructor(je,Be,Ke){this.segmentGroup=je,this.processChildren=Be,this.index=Ke}}function $n(Te,je,Be){if(Te??=new ae([],{}),0===Te.segments.length&&Te.hasChildren())return oi(Te,je,Be);const Ke=function Ii(Te,je,Be){let Ke=0,bt=je;const Ht={match:!1,pathIndex:0,commandIndex:0};for(;bt=Be.length)return Ht;const sn=Te.segments[bt],Rn=Be[Ke];if(ei(Rn))break;const di=`${Rn}`,ji=Ke0&&void 0===di)break;if(di&&ji&&"object"==typeof ji&&void 0===ji.outlets){if(!en(di,ji,sn))return Ht;Ke+=2}else{if(!en(di,{},sn))return Ht;Ke++}bt++}return{match:!0,pathIndex:bt,commandIndex:Ke}}(Te,je,Be),bt=Be.slice(Ke.commandIndex);if(Ke.match&&Ke.pathIndexHt!==he)&&Te.children[he]&&1===Te.numberOfChildren&&0===Te.children[he].segments.length){const Ht=oi(Te.children[he],je,Be);return new ae(Te.segments,Ht.children)}return Object.entries(Ke).forEach(([Ht,sn])=>{"string"==typeof sn&&(sn=[sn]),null!==sn&&(bt[Ht]=$n(Te.children[Ht],je,sn))}),Object.entries(Te.children).forEach(([Ht,sn])=>{void 0===Ke[Ht]&&(bt[Ht]=sn)}),new ae(Te.segments,bt)}}function Ei(Te,je,Be){const Ke=Te.segments.slice(0,je);let bt=0;for(;bt{"string"==typeof Ke&&(Ke=[Ke]),null!==Ke&&(je[Be]=Ei(new ae([],{}),0,Ke))}),je}function nn(Te){const je={};return Object.entries(Te).forEach(([Be,Ke])=>je[Be]=`${Ke}`),je}function en(Te,je,Be){return Te==Be.path&&ve(je,Be.parameters)}const Nn="imperative";var jn=function(Te){return Te[Te.NavigationStart=0]="NavigationStart",Te[Te.NavigationEnd=1]="NavigationEnd",Te[Te.NavigationCancel=2]="NavigationCancel",Te[Te.NavigationError=3]="NavigationError",Te[Te.RoutesRecognized=4]="RoutesRecognized",Te[Te.ResolveStart=5]="ResolveStart",Te[Te.ResolveEnd=6]="ResolveEnd",Te[Te.GuardsCheckStart=7]="GuardsCheckStart",Te[Te.GuardsCheckEnd=8]="GuardsCheckEnd",Te[Te.RouteConfigLoadStart=9]="RouteConfigLoadStart",Te[Te.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",Te[Te.ChildActivationStart=11]="ChildActivationStart",Te[Te.ChildActivationEnd=12]="ChildActivationEnd",Te[Te.ActivationStart=13]="ActivationStart",Te[Te.ActivationEnd=14]="ActivationEnd",Te[Te.Scroll=15]="Scroll",Te[Te.NavigationSkipped=16]="NavigationSkipped",Te}(jn||{});class Un{id;url;constructor(je,Be){this.id=je,this.url=Be}}class ui extends Un{type=jn.NavigationStart;navigationTrigger;restoredState;constructor(je,Be,Ke="imperative",bt=null){super(je,Be),this.navigationTrigger=Ke,this.restoredState=bt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gn extends Un{urlAfterRedirects;type=jn.NavigationEnd;constructor(je,Be,Ke){super(je,Be),this.urlAfterRedirects=Ke}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var zn=function(Te){return Te[Te.Redirect=0]="Redirect",Te[Te.SupersededByNewNavigation=1]="SupersededByNewNavigation",Te[Te.NoDataFromResolver=2]="NoDataFromResolver",Te[Te.GuardRejected=3]="GuardRejected",Te[Te.Aborted=4]="Aborted",Te}(zn||{}),kn=function(Te){return Te[Te.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",Te[Te.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",Te}(kn||{});class Kn extends Un{reason;code;type=jn.NavigationCancel;constructor(je,Be,Ke,bt){super(je,Be),this.reason=Ke,this.code=bt}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ci extends Un{reason;code;type=jn.NavigationSkipped;constructor(je,Be,Ke,bt){super(je,Be),this.reason=Ke,this.code=bt}}class Xn extends Un{error;target;type=jn.NavigationError;constructor(je,Be,Ke,bt){super(je,Be),this.error=Ke,this.target=bt}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aa extends Un{urlAfterRedirects;state;type=jn.RoutesRecognized;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sa extends Un{urlAfterRedirects;state;type=jn.GuardsCheckStart;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ma extends Un{urlAfterRedirects;state;shouldActivate;type=jn.GuardsCheckEnd;constructor(je,Be,Ke,bt,Ht){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt,this.shouldActivate=Ht}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ua extends Un{urlAfterRedirects;state;type=jn.ResolveStart;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dn extends Un{urlAfterRedirects;state;type=jn.ResolveEnd;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ln{route;type=jn.RouteConfigLoadStart;constructor(je){this.route=je}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zn{route;type=jn.RouteConfigLoadEnd;constructor(je){this.route=je}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hi{snapshot;type=jn.ChildActivationStart;constructor(je){this.snapshot=je}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gn{snapshot;type=jn.ChildActivationEnd;constructor(je){this.snapshot=je}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jn{snapshot;type=jn.ActivationStart;constructor(je){this.snapshot=je}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bi{snapshot;type=jn.ActivationEnd;constructor(je){this.snapshot=je}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _a{routerEvent;position;anchor;type=jn.Scroll;constructor(je,Be,Ke){this.routerEvent=je,this.position=Be,this.anchor=Ke}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Sa{}class un{url;navigationBehaviorOptions;constructor(je,Be){this.url=je,this.navigationBehaviorOptions=Be}}function fi(Te){switch(Te.type){case jn.ActivationEnd:return`ActivationEnd(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.ActivationStart:return`ActivationStart(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.ChildActivationEnd:return`ChildActivationEnd(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.ChildActivationStart:return`ChildActivationStart(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.GuardsCheckEnd:return`GuardsCheckEnd(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state}, shouldActivate: ${Te.shouldActivate})`;case jn.GuardsCheckStart:return`GuardsCheckStart(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.NavigationCancel:return`NavigationCancel(id: ${Te.id}, url: '${Te.url}')`;case jn.NavigationSkipped:return`NavigationSkipped(id: ${Te.id}, url: '${Te.url}')`;case jn.NavigationEnd:return`NavigationEnd(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}')`;case jn.NavigationError:return`NavigationError(id: ${Te.id}, url: '${Te.url}', error: ${Te.error})`;case jn.NavigationStart:return`NavigationStart(id: ${Te.id}, url: '${Te.url}')`;case jn.ResolveEnd:return`ResolveEnd(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.ResolveStart:return`ResolveStart(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.RouteConfigLoadEnd:return`RouteConfigLoadEnd(path: ${Te.route.path})`;case jn.RouteConfigLoadStart:return`RouteConfigLoadStart(path: ${Te.route.path})`;case jn.RoutesRecognized:return`RoutesRecognized(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.Scroll:return`Scroll(anchor: '${Te.anchor}', position: '${Te.position?`${Te.position[0]}, ${Te.position[1]}`:null}')`}}function lt(Te){return Te.outlet||he}function ht(Te){if(!Te)return null;if(Te.routeConfig?._injector)return Te.routeConfig._injector;for(let je=Te.parent;je;je=je.parent){const Be=je.routeConfig;if(Be?._loadedInjector)return Be._loadedInjector;if(Be?._injector)return Be._injector}return null}class Gt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ht(this.route?.snapshot)??this.rootInjector}constructor(je){this.rootInjector=je,this.children=new cn(this.rootInjector)}}let cn=(()=>{class Te{rootInjector;contexts=new Map;constructor(Be){this.rootInjector=Be}onChildOutletCreated(Be,Ke){const bt=this.getOrCreateContext(Be);bt.outlet=Ke,this.contexts.set(Be,bt)}onChildOutletDestroyed(Be){const Ke=this.getContext(Be);Ke&&(Ke.outlet=null,Ke.attachRef=null)}onOutletDeactivated(){const Be=this.contexts;return this.contexts=new Map,Be}onOutletReAttached(Be){this.contexts=Be}getOrCreateContext(Be){let Ke=this.getContext(Be);return Ke||(Ke=new Gt(this.rootInjector),this.contexts.set(Be,Ke)),Ke}getContext(Be){return this.contexts.get(Be)||null}static \u0275fac=function(Ke){return new(Ke||Te)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();class si{_root;constructor(je){this._root=je}get root(){return this._root.value}parent(je){const Be=this.pathFromRoot(je);return Be.length>1?Be[Be.length-2]:null}children(je){const Be=pi(je,this._root);return Be?Be.children.map(Ke=>Ke.value):[]}firstChild(je){const Be=pi(je,this._root);return Be&&Be.children.length>0?Be.children[0].value:null}siblings(je){const Be=Oi(je,this._root);return Be.length<2?[]:Be[Be.length-2].children.map(bt=>bt.value).filter(bt=>bt!==je)}pathFromRoot(je){return Oi(je,this._root).map(Be=>Be.value)}}function pi(Te,je){if(Te===je.value)return je;for(const Be of je.children){const Ke=pi(Te,Be);if(Ke)return Ke}return null}function Oi(Te,je){if(Te===je.value)return[je];for(const Be of je.children){const Ke=Oi(Te,Be);if(Ke.length)return Ke.unshift(je),Ke}return[]}class la{value;children;constructor(je,Be){this.value=je,this.children=Be}toString(){return`TreeNode(${this.value})`}}function mn(Te){const je={};return Te&&Te.children.forEach(Be=>je[Be.value.outlet]=Be),je}class li extends si{snapshot;constructor(je,Be){super(je),this.snapshot=Be,va(this,je)}toString(){return this.snapshot.toString()}}function Ce(Te){const je=function xt(Te){const Ht=new Wn([],{},{},"",{},he,Te,null,{});return new Yi("",new la(Ht,[]))}(Te),Be=new d.t([new me("",{})]),Ke=new d.t({}),bt=new d.t({}),Ht=new d.t({}),sn=new d.t(""),Rn=new vt(Be,Ke,Ht,sn,bt,he,Te,je.root);return Rn.snapshot=je.root,new li(new la(Rn,[]),je)}class vt{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(je,Be,Ke,bt,Ht,sn,Rn,di){this.urlSubject=je,this.paramsSubject=Be,this.queryParamsSubject=Ke,this.fragmentSubject=bt,this.dataSubject=Ht,this.outlet=sn,this.component=Rn,this._futureSnapshot=di,this.title=this.dataSubject?.pipe((0,ie.T)(ji=>ji[Oe]))??(0,h.of)(void 0),this.url=je,this.params=Be,this.queryParams=Ke,this.fragment=bt,this.data=Ht}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,ie.T)(je=>ce(je))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,ie.T)(je=>ce(je))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rn(Te,je,Be="emptyOnly"){let Ke;const{routeConfig:bt}=Te;return Ke=null===je||"always"!==Be&&""!==bt?.path&&(je.component||je.routeConfig?.loadComponent)?{params:{...Te.params},data:{...Te.data},resolve:{...Te.data,...Te._resolvedData??{}}}:{params:{...je.params,...Te.params},data:{...je.data,...Te.data},resolve:{...Te.data,...je.data,...bt?.data,...Te._resolvedData}},bt&&Ga(bt)&&(Ke.resolve[Oe]=bt.title),Ke}class Wn{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Oe]}constructor(je,Be,Ke,bt,Ht,sn,Rn,di,ji){this.url=je,this.params=Be,this.queryParams=Ke,this.fragment=bt,this.data=Ht,this.outlet=sn,this.component=Rn,this.routeConfig=di,this._resolve=ji}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??=ce(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ke=>Ke.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yi extends si{url;constructor(je,Be){super(Be),this.url=je,va(this,Be)}toString(){return Va(this._root)}}function va(Te,je){je.value._routerState=Te,je.children.forEach(Be=>va(Te,Be))}function Va(Te){const je=Te.children.length>0?` { ${Te.children.map(Va).join(", ")} } `:"";return`${Te.value}${je}`}function $a(Te){if(Te.snapshot){const je=Te.snapshot,Be=Te._futureSnapshot;Te.snapshot=Be,ve(je.queryParams,Be.queryParams)||Te.queryParamsSubject.next(Be.queryParams),je.fragment!==Be.fragment&&Te.fragmentSubject.next(Be.fragment),ve(je.params,Be.params)||Te.paramsSubject.next(Be.params),function Me(Te,je){if(Te.length!==je.length)return!1;for(let Be=0;Beve(Be.parameters,je[Ke].parameters))}(Te.url,je.url);return Be&&!(!Te.parent!=!je.parent)&&(!Te.parent||ir(Te.parent,je.parent))}function Ga(Te){return"string"==typeof Te.title||null===Te.title}const Ar=new i.nKC("");let ds=(()=>{class Te{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=he;activateEvents=new p.bkB;deactivateEvents=new p.bkB;attachEvents=new p.bkB;detachEvents=new p.bkB;routerOutletData=(0,D.hFB)();parentContexts=(0,i.WQX)(cn);location=(0,i.WQX)(p.c1b);changeDetector=(0,i.WQX)(D.gRc);inputBinder=(0,i.WQX)(hs,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(Be){if(Be.name){const{firstChange:Ke,previousValue:bt}=Be.name;if(Ke)return;this.isTrackedInParentContexts(bt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(bt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Be){return this.parentContexts.getContext(Be)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Be=this.parentContexts.getContext(this.name);Be?.route&&(Be.attachRef?this.attach(Be.attachRef,Be.route):this.activateWith(Be.route,Be.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.buA(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.buA(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.buA(4012,!1);this.location.detach();const Be=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Be.instance),Be}attach(Be,Ke){this.activated=Be,this._activatedRoute=Ke,this.location.insert(Be.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(Be.instance)}deactivate(){if(this.activated){const Be=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Be)}}activateWith(Be,Ke){if(this.isActivated)throw new i.buA(4013,!1);this._activatedRoute=Be;const bt=this.location,sn=Be.snapshot.component,Rn=this.parentContexts.getOrCreateContext(this.name).children,di=new us(Be,Rn,bt.injector,this.routerOutletData);this.activated=bt.createComponent(sn,{index:bt.length,injector:di,environmentInjector:Ke}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275dir=p.FsC({type:Te,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[p.OA$]})}return Te})();class us{route;childContexts;parent;outletData;constructor(je,Be,Ke,bt){this.route=je,this.childContexts=Be,this.parent=Ke,this.outletData=bt}get(je,Be){return je===vt?this.route:je===cn?this.childContexts:je===Ar?this.outletData:this.parent.get(je,Be)}}const hs=new i.nKC("");let zo=(()=>{class Te{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(Be){this.unsubscribeFromRouteData(Be),this.subscribeToRouteData(Be)}unsubscribeFromRouteData(Be){this.outletDataSubscriptions.get(Be)?.unsubscribe(),this.outletDataSubscriptions.delete(Be)}subscribeToRouteData(Be){const{activatedRoute:Ke}=Be,bt=(0,w.z)([Ke.queryParams,Ke.params,Ke.data]).pipe((0,_e.n)(([Ht,sn,Rn],di)=>(Rn={...Ht,...sn,...Rn},0===di?(0,h.of)(Rn):Promise.resolve(Rn)))).subscribe(Ht=>{if(!Be.isActivated||!Be.activatedComponentRef||Be.activatedRoute!==Ke||null===Ke.component)return void this.unsubscribeFromRouteData(Be);const sn=(0,D.HJs)(Ke.component);if(sn)for(const{templateName:Rn}of sn.inputs)Be.activatedComponentRef.setInput(Rn,Ht[Rn]);else this.unsubscribeFromRouteData(Be)});this.outletDataSubscriptions.set(Be,bt)}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac})}return Te})(),fs=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275cmp=p.VBU({type:Te,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(Ke,bt){1&Ke&&p.nrm(0,"router-outlet")},dependencies:[ds],encapsulation:2})}return Te})();function ms(Te){const je=Te.children&&Te.children.map(ms),Be=je?{...Te,children:je}:{...Te};return!Be.component&&!Be.loadComponent&&(je||Be.loadChildren)&&Be.outlet&&Be.outlet!==he&&(Be.component=fs),Be}function Zr(Te,je,Be){if(Be&&Te.shouldReuseRoute(je.value,Be.value.snapshot)){const Ke=Be.value;Ke._futureSnapshot=je.value;const bt=function js(Te,je,Be){return je.children.map(Ke=>{for(const bt of Be.children)if(Te.shouldReuseRoute(Ke.value,bt.value.snapshot))return Zr(Te,Ke,bt);return Zr(Te,Ke)})}(Te,je,Be);return new la(Ke,bt)}{if(Te.shouldAttach(je.value)){const Ht=Te.retrieve(je.value);if(null!==Ht){const sn=Ht.route;return sn.value._futureSnapshot=je.value,sn.children=je.children.map(Rn=>Zr(Te,Rn)),sn}}const Ke=function Cs(Te){return new vt(new d.t(Te.url),new d.t(Te.params),new d.t(Te.queryParams),new d.t(Te.fragment),new d.t(Te.data),Te.outlet,Te.component,Te)}(je.value),bt=je.children.map(Ht=>Zr(Te,Ht));return new la(Ke,bt)}}class Ka{redirectTo;navigationBehaviorOptions;constructor(je,Be){this.redirectTo=je,this.navigationBehaviorOptions=Be}}const Pr="ngNavigationCancelingError";function Is(Te,je){const{redirectTo:Be,navigationBehaviorOptions:Ke}=fn(je)?{redirectTo:je,navigationBehaviorOptions:void 0}:je,bt=Wr(!1,zn.Redirect);return bt.url=Be,bt.navigationBehaviorOptions=Ke,bt}function Wr(Te,je){const Be=new Error(`NavigationCancelingError: ${Te||""}`);return Be[Pr]=!0,Be.cancellationCode=je,Be}function Js(Te){return!!Te&&Te[Pr]}class xo{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(je,Be,Ke,bt,Ht){this.routeReuseStrategy=je,this.futureState=Be,this.currState=Ke,this.forwardEvent=bt,this.inputBindingEnabled=Ht}activate(je){const Be=this.futureState._root,Ke=this.currState?this.currState._root:null;this.deactivateChildRoutes(Be,Ke,je),$a(this.futureState.root),this.activateChildRoutes(Be,Ke,je)}deactivateChildRoutes(je,Be,Ke){const bt=mn(Be);je.children.forEach(Ht=>{const sn=Ht.value.outlet;this.deactivateRoutes(Ht,bt[sn],Ke),delete bt[sn]}),Object.values(bt).forEach(Ht=>{this.deactivateRouteAndItsChildren(Ht,Ke)})}deactivateRoutes(je,Be,Ke){const bt=je.value,Ht=Be?Be.value:null;if(bt===Ht)if(bt.component){const sn=Ke.getContext(bt.outlet);sn&&this.deactivateChildRoutes(je,Be,sn.children)}else this.deactivateChildRoutes(je,Be,Ke);else Ht&&this.deactivateRouteAndItsChildren(Be,Ke)}deactivateRouteAndItsChildren(je,Be){je.value.component&&this.routeReuseStrategy.shouldDetach(je.value.snapshot)?this.detachAndStoreRouteSubtree(je,Be):this.deactivateRouteAndOutlet(je,Be)}detachAndStoreRouteSubtree(je,Be){const Ke=Be.getContext(je.value.outlet),bt=Ke&&je.value.component?Ke.children:Be,Ht=mn(je);for(const sn of Object.values(Ht))this.deactivateRouteAndItsChildren(sn,bt);if(Ke&&Ke.outlet){const sn=Ke.outlet.detach(),Rn=Ke.children.onOutletDeactivated();this.routeReuseStrategy.store(je.value.snapshot,{componentRef:sn,route:je,contexts:Rn})}}deactivateRouteAndOutlet(je,Be){const Ke=Be.getContext(je.value.outlet),bt=Ke&&je.value.component?Ke.children:Be,Ht=mn(je);for(const sn of Object.values(Ht))this.deactivateRouteAndItsChildren(sn,bt);Ke&&(Ke.outlet&&(Ke.outlet.deactivate(),Ke.children.onOutletDeactivated()),Ke.attachRef=null,Ke.route=null)}activateChildRoutes(je,Be,Ke){const bt=mn(Be);je.children.forEach(Ht=>{this.activateRoutes(Ht,bt[Ht.value.outlet],Ke),this.forwardEvent(new Bi(Ht.value.snapshot))}),je.children.length&&this.forwardEvent(new Gn(je.value.snapshot))}activateRoutes(je,Be,Ke){const bt=je.value,Ht=Be?Be.value:null;if($a(bt),bt===Ht)if(bt.component){const sn=Ke.getOrCreateContext(bt.outlet);this.activateChildRoutes(je,Be,sn.children)}else this.activateChildRoutes(je,Be,Ke);else if(bt.component){const sn=Ke.getOrCreateContext(bt.outlet);if(this.routeReuseStrategy.shouldAttach(bt.snapshot)){const Rn=this.routeReuseStrategy.retrieve(bt.snapshot);this.routeReuseStrategy.store(bt.snapshot,null),sn.children.onOutletReAttached(Rn.contexts),sn.attachRef=Rn.componentRef,sn.route=Rn.route.value,sn.outlet&&sn.outlet.attach(Rn.componentRef,Rn.route.value),$a(Rn.route.value),this.activateChildRoutes(je,null,sn.children)}else sn.attachRef=null,sn.route=bt,sn.outlet&&sn.outlet.activateWith(bt,sn.injector),this.activateChildRoutes(je,null,sn.children)}else this.activateChildRoutes(je,null,Ke)}}class Jr{path;route;constructor(je){this.path=je,this.route=this.path[this.path.length-1]}}class ps{component;route;constructor(je,Be){this.component=je,this.route=Be}}function lr(Te,je,Be){const Ke=Te._root;return Xr(Ke,je?je._root:null,Be,[Ke.value])}function ar(Te,je){const Be=Symbol(),Ke=je.get(Te,Be);return Ke===Be?"function"!=typeof Te||(0,i.muV)(Te)?je.get(Te):Te:Ke}function Xr(Te,je,Be,Ke,bt={canDeactivateChecks:[],canActivateChecks:[]}){const Ht=mn(je);return Te.children.forEach(sn=>{(function Kr(Te,je,Be,Ke,bt={canDeactivateChecks:[],canActivateChecks:[]}){const Ht=Te.value,sn=je?je.value:null,Rn=Be?Be.getContext(Te.value.outlet):null;if(sn&&Ht.routeConfig===sn.routeConfig){const di=function Ms(Te,je,Be){if("function"==typeof Be)return Be(Te,je);switch(Be){case"pathParamsChange":return!et(Te.url,je.url);case"pathParamsOrQueryParamsChange":return!et(Te.url,je.url)||!ve(Te.queryParams,je.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ir(Te,je)||!ve(Te.queryParams,je.queryParams);default:return!ir(Te,je)}}(sn,Ht,Ht.routeConfig.runGuardsAndResolvers);di?bt.canActivateChecks.push(new Jr(Ke)):(Ht.data=sn.data,Ht._resolvedData=sn._resolvedData),Xr(Te,je,Ht.component?Rn?Rn.children:null:Be,Ke,bt),di&&Rn&&Rn.outlet&&Rn.outlet.isActivated&&bt.canDeactivateChecks.push(new ps(Rn.outlet.component,sn))}else sn&&Hi(je,Rn,bt),bt.canActivateChecks.push(new Jr(Ke)),Xr(Te,null,Ht.component?Rn?Rn.children:null:Be,Ke,bt)})(sn,Ht[sn.value.outlet],Be,Ke.concat([sn.value]),bt),delete Ht[sn.value.outlet]}),Object.entries(Ht).forEach(([sn,Rn])=>Hi(Rn,Be.getContext(sn),bt)),bt}function Hi(Te,je,Be){const Ke=mn(Te),bt=Te.value;Object.entries(Ke).forEach(([Ht,sn])=>{Hi(sn,bt.component?je?je.children.getContext(Ht):null:je,Be)}),Be.canDeactivateChecks.push(new ps(bt.component&&je&&je.outlet&&je.outlet.isActivated?je.outlet.component:null,bt))}function Mr(Te){return"function"==typeof Te}function Aa(Te){return Te instanceof f.G||"EmptyError"===Te?.name}const Ha=Symbol("INITIAL_VALUE");function Za(){return(0,_e.n)(Te=>(0,w.z)(Te.map(je=>je.pipe((0,ye.s)(1),(0,se.Z)(Ha)))).pipe((0,ie.T)(je=>{for(const Be of je)if(!0!==Be){if(Be===Ha)return Ha;if(!1===Be||ks(Be))return Be}return!0}),(0,pe.p)(je=>je!==Ha),(0,ye.s)(1)))}function ks(Te){return fn(Te)||Te instanceof Ka}function vn(Te){return(0,K.F)((0,s.M)(je=>{if("boolean"!=typeof je)throw Is(0,je)}),(0,ie.T)(je=>!0===je))}class ca{segmentGroup;constructor(je){this.segmentGroup=je||null}}class Er extends Error{urlTree;constructor(je){super(),this.urlTree=je}}function Kt(Te){return(0,j.$)(new ca(Te))}function Vn(Te){return(0,j.$)(new i.buA(4e3,!1))}class xn{urlSerializer;urlTree;constructor(je,Be){this.urlSerializer=je,this.urlTree=Be}lineralizeSegments(je,Be){let Ke=[],bt=Be.root;for(;;){if(Ke=Ke.concat(bt.segments),0===bt.numberOfChildren)return(0,h.of)(Ke);if(bt.numberOfChildren>1||!bt.children[he])return Vn();bt=bt.children[he]}}applyRedirectCommands(je,Be,Ke,bt,Ht){return function Bn(Te,je,Be){if("string"==typeof Te)return(0,h.of)(Te);const Ke=Te,{queryParams:bt,fragment:Ht,routeConfig:sn,url:Rn,outlet:di,params:ji,data:Ia,title:rr}=je;return nt((0,i.N4e)(Be,()=>Ke({params:ji,data:Ia,queryParams:bt,fragment:Ht,routeConfig:sn,url:Rn,outlet:di,title:rr})))}(Be,bt,Ht).pipe((0,ie.T)(sn=>{if(sn instanceof de)throw new Er(sn);const Rn=this.applyRedirectCreateUrlTree(sn,this.urlSerializer.parse(sn),je,Ke);if("/"===sn[0])throw new Er(Rn);return Rn}))}applyRedirectCreateUrlTree(je,Be,Ke,bt){const Ht=this.createSegmentGroup(je,Be.root,Ke,bt);return new de(Ht,this.createQueryParams(Be.queryParams,this.urlTree.queryParams),Be.fragment)}createQueryParams(je,Be){const Ke={};return Object.entries(je).forEach(([bt,Ht])=>{if("string"==typeof Ht&&":"===Ht[0]){const Rn=Ht.substring(1);Ke[bt]=Be[Rn]}else Ke[bt]=Ht}),Ke}createSegmentGroup(je,Be,Ke,bt){const Ht=this.createSegments(je,Be.segments,Ke,bt);let sn={};return Object.entries(Be.children).forEach(([Rn,di])=>{sn[Rn]=this.createSegmentGroup(je,di,Ke,bt)}),new ae(Ht,sn)}createSegments(je,Be,Ke,bt){return Be.map(Ht=>":"===Ht.path[0]?this.findPosParam(je,Ht,bt):this.findOrReturn(Ht,Ke))}findPosParam(je,Be,Ke){const bt=Ke[Be.path.substring(1)];if(!bt)throw new i.buA(4001,!1);return bt}findOrReturn(je,Be){let Ke=0;for(const bt of Be){if(bt.path===je.path)return Be.splice(Ke),bt;Ke++}return je}}const wi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ea(Te,je,Be,Ke,bt){const Ht=ur(Te,je,Be);return Ht.matched?(Ke=function Dn(Te,je){return Te.providers&&!Te._injector&&(Te._injector=(0,p.Ol2)(Te.providers,je,`Route: ${Te.path}`)),Te._injector??je}(je,Ke),function Ni(Te,je,Be,Ke){const bt=je.canMatch;if(!bt||0===bt.length)return(0,h.of)(!0);const Ht=bt.map(sn=>{const Rn=ar(sn,Te);return nt(function Yr(Te){return Te&&Mr(Te.canMatch)}(Rn)?Rn.canMatch(je,Be):(0,i.N4e)(Te,()=>Rn(je,Be)))});return(0,h.of)(Ht).pipe(Za(),vn())}(Ke,je,Be).pipe((0,ie.T)(sn=>!0===sn?Ht:{...wi}))):(0,h.of)(Ht)}function ur(Te,je,Be){if("**"===je.path)return function eo(Te){return{matched:!0,parameters:Te.length>0?be(Te).parameters:{},consumedSegments:Te,remainingSegments:[],positionalParamSegments:{}}}(Be);if(""===je.path)return"full"===je.pathMatch&&(Te.hasChildren()||Be.length>0)?{...wi}:{matched:!0,consumedSegments:[],remainingSegments:Be,parameters:{},positionalParamSegments:{}};const bt=(je.matcher||Re)(Be,Te,je);if(!bt)return{...wi};const Ht={};Object.entries(bt.posParams??{}).forEach(([Rn,di])=>{Ht[Rn]=di.path});const sn=bt.consumed.length>0?{...Ht,...bt.consumed[bt.consumed.length-1].parameters}:Ht;return{matched:!0,consumedSegments:bt.consumed,remainingSegments:Be.slice(bt.consumed.length),parameters:sn,positionalParamSegments:bt.posParams??{}}}function Co(Te,je,Be,Ke){return Be.length>0&&function yl(Te,je,Be){return Be.some(Ke=>ts(Te,je,Ke)&<(Ke)!==he)}(Te,Be,Ke)?{segmentGroup:new ae(je,qo(Ke,new ae(Be,Te.children))),slicedSegments:[]}:0===Be.length&&function Sr(Te,je,Be){return Be.some(Ke=>ts(Te,je,Ke))}(Te,Be,Ke)?{segmentGroup:new ae(Te.segments,wr(Te,Be,Ke,Te.children)),slicedSegments:Be}:{segmentGroup:new ae(Te.segments,Te.children),slicedSegments:Be}}function wr(Te,je,Be,Ke){const bt={};for(const Ht of Be)if(ts(Te,je,Ht)&&!Ke[lt(Ht)]){const sn=new ae([],{});bt[lt(Ht)]=sn}return{...Ke,...bt}}function qo(Te,je){const Be={};Be[he]=je;for(const Ke of Te)if(""===Ke.path&<(Ke)!==he){const bt=new ae([],{});Be[lt(Ke)]=bt}return Be}function ts(Te,je,Be){return(!(Te.hasChildren()||je.length>0)||"full"!==Be.pathMatch)&&""===Be.path}class Eo{}class Bl{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(je,Be,Ke,bt,Ht,sn,Rn){this.injector=je,this.configLoader=Be,this.rootComponentType=Ke,this.config=bt,this.urlTree=Ht,this.paramsInheritanceStrategy=sn,this.urlSerializer=Rn,this.applyRedirects=new xn(this.urlSerializer,this.urlTree)}noMatchError(je){return new i.buA(4002,`'${je.segmentGroup}'`)}recognize(){const je=Co(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(je).pipe((0,ie.T)(({children:Be,rootSnapshot:Ke})=>{const bt=new la(Ke,Be),Ht=new Yi("",bt),sn=function mt(Te,je,Be=null,Ke=null){return wn(It(Te),je,Be,Ke)}(Ke,[],this.urlTree.queryParams,this.urlTree.fragment);return sn.queryParams=this.urlTree.queryParams,Ht.url=this.urlSerializer.serialize(sn),{state:Ht,tree:sn}}))}match(je){const Be=new Wn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),he,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,je,he,Be).pipe((0,ie.T)(Ke=>({children:Ke,rootSnapshot:Be})),(0,m.W)(Ke=>{if(Ke instanceof Er)return this.urlTree=Ke.urlTree,this.match(Ke.urlTree.root);throw Ke instanceof ca?this.noMatchError(Ke):Ke}))}processSegmentGroup(je,Be,Ke,bt,Ht){return 0===Ke.segments.length&&Ke.hasChildren()?this.processChildren(je,Be,Ke,Ht):this.processSegment(je,Be,Ke,Ke.segments,bt,!0,Ht).pipe((0,ie.T)(sn=>sn instanceof la?[sn]:[]))}processChildren(je,Be,Ke,bt){const Ht=[];for(const sn of Object.keys(Ke.children))"primary"===sn?Ht.unshift(sn):Ht.push(sn);return(0,A.H)(Ht).pipe((0,t.H)(sn=>{const Rn=Ke.children[sn],di=function an(Te,je){const Be=Te.filter(Ke=>lt(Ke)===je);return Be.push(...Te.filter(Ke=>lt(Ke)!==je)),Be}(Be,sn);return this.processSegmentGroup(je,di,Rn,sn,bt)}),(0,u.S)((sn,Rn)=>(sn.push(...Rn),sn)),(0,_.U)(null),function Y(Te,je){const Be=arguments.length>=2;return Ke=>Ke.pipe(Te?(0,pe.p)((bt,Ht)=>Te(bt,Ht,Ke)):x.D,C(1),Be?(0,_.U)(je):(0,a.v)(()=>new f.G))}(),(0,Ee.Z)(sn=>{if(null===sn)return Kt(Ke);const Rn=vi(sn);return function hr(Te){Te.sort((je,Be)=>je.value.outlet===he?-1:Be.value.outlet===he?1:je.value.outlet.localeCompare(Be.value.outlet))}(Rn),(0,h.of)(Rn)}))}processSegment(je,Be,Ke,bt,Ht,sn,Rn){return(0,A.H)(Be).pipe((0,t.H)(di=>this.processSegmentAgainstRoute(di._injector??je,Be,di,Ke,bt,Ht,sn,Rn).pipe((0,m.W)(ji=>{if(ji instanceof ca)return(0,h.of)(null);throw ji}))),(0,L.$)(di=>!!di),(0,m.W)(di=>{if(Aa(di))return function Mo(Te,je,Be){return 0===je.length&&!Te.children[Be]}(Ke,bt,Ht)?(0,h.of)(new Eo):Kt(Ke);throw di}))}processSegmentAgainstRoute(je,Be,Ke,bt,Ht,sn,Rn,di){return lt(Ke)===sn||sn!==he&&ts(bt,Ht,Ke)?void 0===Ke.redirectTo?this.matchSegmentAgainstRoute(je,bt,Ke,Ht,sn,di):this.allowRedirects&&Rn?this.expandSegmentAgainstRouteUsingRedirect(je,bt,Be,Ke,Ht,sn,di):Kt(bt):Kt(bt)}expandSegmentAgainstRouteUsingRedirect(je,Be,Ke,bt,Ht,sn,Rn){const{matched:di,parameters:ji,consumedSegments:Ia,positionalParamSegments:rr,remainingSegments:Fr}=ur(Be,bt,Ht);if(!di)return Kt(Be);"string"==typeof bt.redirectTo&&"/"===bt.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const nl=new Wn(Ht,ji,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Go(bt),lt(bt),bt.component??bt._loadedComponent??null,bt,fl(bt)),as=rn(nl,Rn,this.paramsInheritanceStrategy);return nl.params=Object.freeze(as.params),nl.data=Object.freeze(as.data),this.applyRedirects.applyRedirectCommands(Ia,bt.redirectTo,rr,nl,je).pipe((0,_e.n)(lo=>this.applyRedirects.lineralizeSegments(bt,lo)),(0,Ee.Z)(lo=>this.processSegment(je,Ke,Be,lo.concat(Fr),sn,!1,Rn)))}matchSegmentAgainstRoute(je,Be,Ke,bt,Ht,sn){const Rn=Ea(Be,Ke,bt,je);return"**"===Ke.path&&(Be.children={}),Rn.pipe((0,_e.n)(di=>di.matched?this.getChildConfig(je=Ke._injector??je,Ke,bt).pipe((0,_e.n)(({routes:ji})=>{const Ia=Ke._loadedInjector??je,{parameters:rr,consumedSegments:Fr,remainingSegments:nl}=di,as=new Wn(Fr,rr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Go(Ke),lt(Ke),Ke.component??Ke._loadedComponent??null,Ke,fl(Ke)),oo=rn(as,sn,this.paramsInheritanceStrategy);as.params=Object.freeze(oo.params),as.data=Object.freeze(oo.data);const{segmentGroup:lo,slicedSegments:Sl}=Co(Be,Fr,nl,ji);if(0===Sl.length&&lo.hasChildren())return this.processChildren(Ia,ji,lo,as).pipe((0,ie.T)(ql=>new la(as,ql)));if(0===ji.length&&0===Sl.length)return(0,h.of)(new la(as,[]));const mc=lt(Ke)===Ht;return this.processSegment(Ia,ji,lo,Sl,mc?he:Ht,!0,as).pipe((0,ie.T)(ql=>new la(as,ql instanceof la?[ql]:[])))})):Kt(Be)))}getChildConfig(je,Be,Ke){return Be.children?(0,h.of)({routes:Be.children,injector:je}):Be.loadChildren?void 0!==Be._loadedRoutes?(0,h.of)({routes:Be._loadedRoutes,injector:Be._loadedInjector}):function Rt(Te,je,Be,Ke){const bt=je.canLoad;if(void 0===bt||0===bt.length)return(0,h.of)(!0);const Ht=bt.map(sn=>{const Rn=ar(sn,Te);return nt(function qr(Te){return Te&&Mr(Te.canLoad)}(Rn)?Rn.canLoad(je,Be):(0,i.N4e)(Te,()=>Rn(je,Be)))});return(0,h.of)(Ht).pipe(Za(),vn())}(je,Be,Ke).pipe((0,Ee.Z)(bt=>bt?this.configLoader.loadChildren(je,Be).pipe((0,s.M)(Ht=>{Be._loadedRoutes=Ht.routes,Be._loadedInjector=Ht.injector})):function _t(){return(0,j.$)(Wr(!1,zn.GuardRejected))}())):(0,h.of)({routes:[],injector:je})}}function ns(Te){const je=Te.value.routeConfig;return je&&""===je.path}function vi(Te){const je=[],Be=new Set;for(const Ke of Te){if(!ns(Ke)){je.push(Ke);continue}const bt=je.find(Ht=>Ke.value.routeConfig===Ht.value.routeConfig);void 0!==bt?(bt.children.push(...Ke.children),Be.add(bt)):je.push(Ke)}for(const Ke of Be){const bt=vi(Ke.children);je.push(new la(Ke.value,bt))}return je.filter(Ke=>!Be.has(Ke))}function Go(Te){return Te.data||{}}function fl(Te){return Te.resolve||{}}function fo(Te){const je=Te.children.map(Be=>fo(Be)).flat();return[Te,...je]}function fr(Te){return(0,_e.n)(je=>{const Be=Te(je);return Be?(0,A.H)(Be).pipe((0,ie.T)(()=>je)):(0,h.of)(je)})}let Cl=(()=>{class Te{buildTitle(Be){let Ke,bt=Be.root;for(;void 0!==bt;)Ke=this.getResolvedTitleForRoute(bt)??Ke,bt=bt.children.find(Ht=>Ht.outlet===he);return Ke}getResolvedTitleForRoute(Be){return Be.data[Oe]}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(to),providedIn:"root"})}return Te})(),to=(()=>{class Te extends Cl{title;constructor(Be){super(),this.title=Be}updateTitle(Be){const Ke=this.buildTitle(Be);void 0!==Ke&&this.title.setTitle(Ke)}static \u0275fac=function(Ke){return new(Ke||Te)(i.KVO(re.hE))};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();const wo=new i.nKC("",{providedIn:"root",factory:()=>({})}),mo=new i.nKC("");let So=(()=>{class Te{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,i.WQX)(p.Ql9);loadComponent(Be,Ke){if(this.componentLoaders.get(Ke))return this.componentLoaders.get(Ke);if(Ke._loadedComponent)return(0,h.of)(Ke._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Ke);const bt=nt((0,i.N4e)(Be,()=>Ke.loadComponent())).pipe((0,ie.T)(no),(0,_e.n)(Ml),(0,s.M)(sn=>{this.onLoadEndListener&&this.onLoadEndListener(Ke),Ke._loadedComponent=sn}),(0,R.j)(()=>{this.componentLoaders.delete(Ke)})),Ht=new ee.G(bt,()=>new V.B).pipe((0,U.B)());return this.componentLoaders.set(Ke,Ht),Ht}loadChildren(Be,Ke){if(this.childrenLoaders.get(Ke))return this.childrenLoaders.get(Ke);if(Ke._loadedRoutes)return(0,h.of)({routes:Ke._loadedRoutes,injector:Ke._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ke);const Ht=function jo(Te,je,Be,Ke){return nt((0,i.N4e)(Be,()=>Te.loadChildren())).pipe((0,ie.T)(no),(0,_e.n)(Ml),(0,Ee.Z)(bt=>bt instanceof p.PYt||Array.isArray(bt)?(0,h.of)(bt):(0,A.H)(je.compileModuleAsync(bt))),(0,ie.T)(bt=>{Ke&&Ke(Te);let Ht,sn,Rn=!1;return Array.isArray(bt)?(sn=bt,!0):(Ht=bt.create(Be).injector,sn=Ht.get(mo,[],{optional:!0,self:!0}).flat()),{routes:sn.map(ms),injector:Ht}}))}(Ke,this.compiler,Be,this.onLoadEndListener).pipe((0,R.j)(()=>{this.childrenLoaders.delete(Ke)})),sn=new ee.G(Ht,()=>new V.B).pipe((0,U.B)());return this.childrenLoaders.set(Ke,sn),sn}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();function no(Te){return function ml(Te){return Te&&"object"==typeof Te&&"default"in Te}(Te)?Te.default:Te}function Ml(Te){return(0,h.of)(Te)}let io=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(El),providedIn:"root"})}return Te})(),El=(()=>{class Te{shouldProcessUrl(Be){return!0}extract(Be){return Be}merge(Be,Ke){return Be}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();const ao=new i.nKC(""),$r=new i.nKC("");function Ss(Te,je,Be){const Ke=Te.get($r),bt=Te.get(i.qQL);if(!bt.startViewTransition||Ke.skipNextTransition)return Ke.skipNextTransition=!1,new Promise(ji=>setTimeout(ji));let Ht;const sn=new Promise(ji=>{Ht=ji}),Rn=bt.startViewTransition(()=>(Ht(),function mi(Te){return new Promise(je=>{(0,p.mal)({read:()=>setTimeout(je)},{injector:Te})})}(Te)));Rn.ready.catch(ji=>{});const{onViewTransitionCreated:di}=Ke;return di&&(0,i.N4e)(Te,()=>di({transition:Rn,from:je,to:Be})),sn}const Xs=new i.nKC("");let ro=(()=>{class Te{currentNavigation=(0,i.vPA)(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new V.B;transitionAbortWithErrorSubject=new V.B;configLoader=(0,i.WQX)(So);environmentInjector=(0,i.WQX)(i.uvJ);destroyRef=(0,i.WQX)(i.abz);urlSerializer=(0,i.WQX)(Vt);rootContexts=(0,i.WQX)(cn);location=(0,i.WQX)(g.aZ);inputBindingEnabled=null!==(0,i.WQX)(hs,{optional:!0});titleStrategy=(0,i.WQX)(Cl);options=(0,i.WQX)(wo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,i.WQX)(io);createViewTransition=(0,i.WQX)(ao,{optional:!0});navigationErrorHandler=(0,i.WQX)(Xs,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,h.of)(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=bt=>this.events.next(new Zn(bt)),this.configLoader.onLoadStartListener=bt=>this.events.next(new Ln(bt)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(Be){const Ke=++this.navigationId;(0,o.O8)(()=>{this.transitions?.next({...Be,extractedUrl:this.urlHandlingStrategy.extract(Be.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:Ke})})}setupNavigations(Be){return this.transitions=new d.t(null),this.transitions.pipe((0,pe.p)(Ke=>null!==Ke),(0,_e.n)(Ke=>{let bt=!1;return(0,h.of)(Ke).pipe((0,_e.n)(Ht=>{if(this.navigationId>Ke.id)return this.cancelNavigationTransition(Ke,"",zn.SupersededByNewNavigation),Z.w;this.currentTransition=Ke,this.currentNavigation.set({id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,targetBrowserUrl:"string"==typeof Ht.extras.browserUrl?this.urlSerializer.parse(Ht.extras.browserUrl):Ht.extras.browserUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null,abort:()=>Ht.abortController.abort()});const sn=!Be.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!sn&&"reload"!==(Ht.extras.onSameUrlNavigation??Be.onSameUrlNavigation))return this.events.next(new ci(Ht.id,this.urlSerializer.serialize(Ht.rawUrl),"",kn.IgnoredSameUrlNavigation)),Ht.resolve(!1),Z.w;if(this.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return(0,h.of)(Ht).pipe((0,_e.n)(di=>(this.events.next(new ui(di.id,this.urlSerializer.serialize(di.extractedUrl),di.source,di.restoredState)),di.id!==this.navigationId?Z.w:Promise.resolve(di))),function ws(Te,je,Be,Ke,bt,Ht){return(0,Ee.Z)(sn=>function bl(Te,je,Be,Ke,bt,Ht,sn="emptyOnly"){return new Bl(Te,je,Be,Ke,bt,sn,Ht).recognize()}(Te,je,Be,Ke,sn.extractedUrl,bt,Ht).pipe((0,ie.T)(({state:Rn,tree:di})=>({...sn,targetSnapshot:Rn,urlAfterRedirects:di}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Be.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,s.M)(di=>{Ke.targetSnapshot=di.targetSnapshot,Ke.urlAfterRedirects=di.urlAfterRedirects,this.currentNavigation.update(Ia=>(Ia.finalUrl=di.urlAfterRedirects,Ia));const ji=new aa(di.id,this.urlSerializer.serialize(di.extractedUrl),this.urlSerializer.serialize(di.urlAfterRedirects),di.targetSnapshot);this.events.next(ji)}));if(sn&&this.urlHandlingStrategy.shouldProcessUrl(Ht.currentRawUrl)){const{id:di,extractedUrl:ji,source:Ia,restoredState:rr,extras:Fr}=Ht,nl=new ui(di,this.urlSerializer.serialize(ji),Ia,rr);this.events.next(nl);const as=Ce(this.rootComponentType).snapshot;return this.currentTransition=Ke={...Ht,targetSnapshot:as,urlAfterRedirects:ji,extras:{...Fr,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.update(oo=>(oo.finalUrl=ji,oo)),(0,h.of)(Ke)}return this.events.next(new ci(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),"",kn.IgnoredByUrlHandlingStrategy)),Ht.resolve(!1),Z.w}),(0,s.M)(Ht=>{const sn=new sa(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot);this.events.next(sn)}),(0,ie.T)(Ht=>(this.currentTransition=Ke={...Ht,guards:lr(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)},Ke)),function Rs(Te,je){return(0,Ee.Z)(Be=>{const{targetSnapshot:Ke,currentSnapshot:bt,guards:{canActivateChecks:Ht,canDeactivateChecks:sn}}=Be;return 0===sn.length&&0===Ht.length?(0,h.of)({...Be,guardsResult:!0}):function Nr(Te,je,Be,Ke){return(0,A.H)(Te).pipe((0,Ee.Z)(bt=>function Ve(Te,je,Be,Ke,bt){const Ht=je&&je.routeConfig?je.routeConfig.canDeactivate:null;if(!Ht||0===Ht.length)return(0,h.of)(!0);const sn=Ht.map(Rn=>{const di=ht(je)??bt,ji=ar(Rn,di);return nt(function es(Te){return Te&&Mr(Te.canDeactivate)}(ji)?ji.canDeactivate(Te,je,Be,Ke):(0,i.N4e)(di,()=>ji(Te,je,Be,Ke))).pipe((0,L.$)())});return(0,h.of)(sn).pipe(Za())}(bt.component,bt.route,Be,je,Ke)),(0,L.$)(bt=>!0!==bt,!0))}(sn,Ke,bt,Te).pipe((0,Ee.Z)(Rn=>Rn&&function gs(Te){return"boolean"==typeof Te}(Rn)?function Ws(Te,je,Be,Ke){return(0,A.H)(je).pipe((0,t.H)(bt=>(0,F.x)(function Es(Te,je){return null!==Te&&je&&je(new hi(Te)),(0,h.of)(!0)}(bt.route.parent,Ke),function Qr(Te,je){return null!==Te&&je&&je(new Jn(Te)),(0,h.of)(!0)}(bt.route,Ke),function pt(Te,je,Be){const Ke=je[je.length-1],Ht=je.slice(0,je.length-1).reverse().map(sn=>function dr(Te){const je=Te.routeConfig?Te.routeConfig.canActivateChild:null;return je&&0!==je.length?{node:Te,guards:je}:null}(sn)).filter(sn=>null!==sn).map(sn=>(0,M.v)(()=>{const Rn=sn.guards.map(di=>{const ji=ht(sn.node)??Be,Ia=ar(di,ji);return nt(function _s(Te){return Te&&Mr(Te.canActivateChild)}(Ia)?Ia.canActivateChild(Ke,Te):(0,i.N4e)(ji,()=>Ia(Ke,Te))).pipe((0,L.$)())});return(0,h.of)(Rn).pipe(Za())}));return(0,h.of)(Ht).pipe(Za())}(Te,bt.path,Be),function ct(Te,je,Be){const Ke=je.routeConfig?je.routeConfig.canActivate:null;if(!Ke||0===Ke.length)return(0,h.of)(!0);const bt=Ke.map(Ht=>(0,M.v)(()=>{const sn=ht(je)??Be,Rn=ar(Ht,sn);return nt(function Pa(Te){return Te&&Mr(Te.canActivate)}(Rn)?Rn.canActivate(je,Te):(0,i.N4e)(sn,()=>Rn(je,Te))).pipe((0,L.$)())}));return(0,h.of)(bt).pipe(Za())}(Te,bt.route,Be))),(0,L.$)(bt=>!0!==bt,!0))}(Ke,Ht,Te,je):(0,h.of)(Rn)),(0,ie.T)(Rn=>({...Be,guardsResult:Rn})))})}(this.environmentInjector,Ht=>this.events.next(Ht)),(0,s.M)(Ht=>{if(Ke.guardsResult=Ht.guardsResult,Ht.guardsResult&&"boolean"!=typeof Ht.guardsResult)throw Is(0,Ht.guardsResult);const sn=new ma(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.events.next(sn)}),(0,pe.p)(Ht=>!!Ht.guardsResult||(this.cancelNavigationTransition(Ht,"",zn.GuardRejected),!1)),fr(Ht=>{if(0!==Ht.guards.canActivateChecks.length)return(0,h.of)(Ht).pipe((0,s.M)(sn=>{const Rn=new ua(sn.id,this.urlSerializer.serialize(sn.extractedUrl),this.urlSerializer.serialize(sn.urlAfterRedirects),sn.targetSnapshot);this.events.next(Rn)}),(0,_e.n)(sn=>{let Rn=!1;return(0,h.of)(sn).pipe(function Ho(Te,je){return(0,Ee.Z)(Be=>{const{targetSnapshot:Ke,guards:{canActivateChecks:bt}}=Be;if(!bt.length)return(0,h.of)(Be);const Ht=new Set(bt.map(di=>di.route)),sn=new Set;for(const di of Ht)if(!sn.has(di))for(const ji of fo(di))sn.add(ji);let Rn=0;return(0,A.H)(sn).pipe((0,t.H)(di=>Ht.has(di)?function xl(Te,je,Be,Ke){const bt=Te.routeConfig,Ht=Te._resolve;return void 0!==bt?.title&&!Ga(bt)&&(Ht[Oe]=bt.title),(0,M.v)(()=>(Te.data=rn(Te,Te.parent,Be).resolve,function zl(Te,je,Be,Ke){const bt=oe(Te);if(0===bt.length)return(0,h.of)({});const Ht={};return(0,A.H)(bt).pipe((0,Ee.Z)(sn=>function za(Te,je,Be,Ke){const bt=ht(je)??Ke,Ht=ar(Te,bt);return nt(Ht.resolve?Ht.resolve(je,Be):(0,i.N4e)(bt,()=>Ht(je,Be)))}(Te[sn],je,Be,Ke).pipe((0,L.$)(),(0,s.M)(Rn=>{if(Rn instanceof Ka)throw Is(new hn,Rn);Ht[sn]=Rn}))),C(1),(0,ie.T)(()=>Ht),(0,m.W)(sn=>Aa(sn)?Z.w:(0,j.$)(sn)))}(Ht,Te,je,Ke).pipe((0,ie.T)(sn=>(Te._resolvedData=sn,Te.data={...Te.data,...sn},null)))))}(di,Ke,Te,je):(di.data=rn(di,di.parent,Te).resolve,(0,h.of)(void 0))),(0,s.M)(()=>Rn++),C(1),(0,Ee.Z)(di=>Rn===sn.size?(0,h.of)(Be):Z.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,s.M)({next:()=>Rn=!0,complete:()=>{Rn||this.cancelNavigationTransition(sn,"",zn.NoDataFromResolver)}}))}),(0,s.M)(sn=>{const Rn=new dn(sn.id,this.urlSerializer.serialize(sn.extractedUrl),this.urlSerializer.serialize(sn.urlAfterRedirects),sn.targetSnapshot);this.events.next(Rn)}))}),fr(Ht=>{const sn=Rn=>{const di=[];if(Rn.routeConfig?.loadComponent){const ji=ht(Rn)??this.environmentInjector;di.push(this.configLoader.loadComponent(ji,Rn.routeConfig).pipe((0,s.M)(Ia=>{Rn.component=Ia}),(0,ie.T)(()=>{})))}for(const ji of Rn.children)di.push(...sn(ji));return di};return(0,w.z)(sn(Ht.targetSnapshot.root)).pipe((0,_.U)(null),(0,ye.s)(1))}),fr(()=>this.afterPreactivation()),(0,_e.n)(()=>{const{currentSnapshot:Ht,targetSnapshot:sn}=Ke,Rn=this.createViewTransition?.(this.environmentInjector,Ht.root,sn.root);return Rn?(0,A.H)(Rn).pipe((0,ie.T)(()=>Ke)):(0,h.of)(Ke)}),(0,ie.T)(Ht=>{const sn=function bo(Te,je,Be){const Ke=Zr(Te,je._root,Be?Be._root:void 0);return new li(Ke,je)}(Be.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return this.currentTransition=Ke={...Ht,targetRouterState:sn},this.currentNavigation.update(Rn=>(Rn.targetRouterState=sn,Rn)),Ke}),(0,s.M)(()=>{this.events.next(new Sa)}),((Te,je,Be,Ke)=>(0,ie.T)(bt=>(new xo(je,bt.targetRouterState,bt.currentRouterState,Be,Ke).activate(Te),bt)))(this.rootContexts,Be.routeReuseStrategy,Ht=>this.events.next(Ht),this.inputBindingEnabled),(0,ye.s)(1),(0,fe.Q)(new Q.c(Ht=>{const sn=Ke.abortController.signal,Rn=()=>Ht.next();return sn.addEventListener("abort",Rn),()=>sn.removeEventListener("abort",Rn)}).pipe((0,pe.p)(()=>!bt&&!Ke.targetRouterState),(0,s.M)(()=>{this.cancelNavigationTransition(Ke,Ke.abortController.signal.reason+"",zn.Aborted)}))),(0,s.M)({next:Ht=>{bt=!0,this.lastSuccessfulNavigation=(0,o.O8)(this.currentNavigation),this.events.next(new gn(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects))),this.titleStrategy?.updateTitle(Ht.targetRouterState.snapshot),Ht.resolve(!0)},complete:()=>{bt=!0}}),(0,fe.Q)(this.transitionAbortWithErrorSubject.pipe((0,s.M)(Ht=>{throw Ht}))),(0,R.j)(()=>{bt||this.cancelNavigationTransition(Ke,"",zn.SupersededByNewNavigation),this.currentTransition?.id===Ke.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),(0,m.W)(Ht=>{if(this.destroyed)return Ke.resolve(!1),Z.w;if(bt=!0,Js(Ht))this.events.next(new Kn(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),Ht.message,Ht.cancellationCode)),function Uo(Te){return Js(Te)&&fn(Te.url)}(Ht)?this.events.next(new un(Ht.url,Ht.navigationBehaviorOptions)):Ke.resolve(!1);else{const sn=new Xn(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),Ht,Ke.targetSnapshot??void 0);try{const Rn=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(sn));if(!(Rn instanceof Ka))throw this.events.next(sn),Ht;{const{message:di,cancellationCode:ji}=Is(0,Rn);this.events.next(new Kn(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),di,ji)),this.events.next(new un(Rn.redirectTo,Rn.navigationBehaviorOptions))}}catch(Rn){this.options.resolveNavigationPromiseOnError?Ke.resolve(!1):Ke.reject(Rn)}}return Z.w}))}))}cancelNavigationTransition(Be,Ke,bt){const Ht=new Kn(Be.id,this.urlSerializer.serialize(Be.extractedUrl),Ke,bt);this.events.next(Ht),Be.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const Be=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),Ke=(0,o.O8)(this.currentNavigation),bt=Ke?.targetBrowserUrl??Ke?.extractedUrl;return Be.toString()!==bt?.toString()&&!Ke?.extras.skipLocationChange}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();function Os(Te){return Te!==Nn}let so=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(Ul),providedIn:"root"})}return Te})();class el{shouldDetach(je){return!1}store(je,Be){}shouldAttach(je){return!1}retrieve(je){return null}shouldReuseRoute(je,Be){return je.routeConfig===Be.routeConfig}}let Ul=(()=>{class Te extends el{static \u0275fac=(()=>{let Be;return function(bt){return(Be||(Be=p.xGo(Te)))(bt||Te)}})();static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})(),To=(()=>{class Te{urlSerializer=(0,i.WQX)(Vt);options=(0,i.WQX)(wo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=(0,i.WQX)(g.aZ);urlHandlingStrategy=(0,i.WQX)(io);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new de;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:Be,initialUrl:Ke,targetBrowserUrl:bt}){const Ht=void 0!==Be?this.urlHandlingStrategy.merge(Be,Ke):Ke,sn=bt??Ht;return sn instanceof de?this.urlSerializer.serialize(sn):sn}commitTransition({targetRouterState:Be,finalUrl:Ke,initialUrl:bt}){Ke&&Be?(this.currentUrlTree=Ke,this.rawUrlTree=this.urlHandlingStrategy.merge(Ke,bt),this.routerState=Be):this.rawUrlTree=bt}routerState=Ce(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:Be}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Be??this.rawUrlTree)}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(Zl),providedIn:"root"})}return Te})(),Zl=(()=>{class Te extends To{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(Be){return this.location.subscribe(Ke=>{"popstate"===Ke.type&&setTimeout(()=>{Be(Ke.url,Ke.state,"popstate")})})}handleRouterEvent(Be,Ke){Be instanceof ui?this.updateStateMemento():Be instanceof ci?this.commitTransition(Ke):Be instanceof aa?"eager"===this.urlUpdateStrategy&&(Ke.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(Ke),Ke)):Be instanceof Sa?(this.commitTransition(Ke),"deferred"===this.urlUpdateStrategy&&!Ke.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(Ke),Ke)):Be instanceof Kn&&Be.code!==zn.SupersededByNewNavigation&&Be.code!==zn.Redirect?this.restoreHistory(Ke):Be instanceof Xn?this.restoreHistory(Ke,!0):Be instanceof gn&&(this.lastSuccessfulId=Be.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Be,{extras:Ke,id:bt}){const{replaceUrl:Ht,state:sn}=Ke;if(this.location.isCurrentPathEqualTo(Be)||Ht){const Rn=this.browserPageId,di={...sn,...this.generateNgRouterState(bt,Rn)};this.location.replaceState(Be,"",di)}else{const Rn={...sn,...this.generateNgRouterState(bt,this.browserPageId+1)};this.location.go(Be,"",Rn)}}restoreHistory(Be,Ke=!1){if("computed"===this.canceledNavigationResolution){const Ht=this.currentPageId-this.browserPageId;0!==Ht?this.location.historyGo(Ht):this.getCurrentUrlTree()===Be.finalUrl&&0===Ht&&(this.resetInternalState(Be),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Ke&&this.resetInternalState(Be),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Be,Ke){return"computed"===this.canceledNavigationResolution?{navigationId:Be,\u0275routerPageId:Ke}:{navigationId:Be}}static \u0275fac=(()=>{let Be;return function(bt){return(Be||(Be=p.xGo(Te)))(bt||Te)}})();static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();function wl(Te,je){Te.events.pipe((0,pe.p)(Be=>Be instanceof gn||Be instanceof Kn||Be instanceof Xn||Be instanceof ci),(0,ie.T)(Be=>Be instanceof gn||Be instanceof ci?0:Be instanceof Kn&&(Be.code===zn.Redirect||Be.code===zn.SupersededByNewNavigation)?2:1),(0,pe.p)(Be=>2!==Be),(0,ye.s)(1)).subscribe(()=>{je()})}const is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Jl={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wo=(()=>{class Te{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(p.C7A);stateManager=(0,i.WQX)(To);options=(0,i.WQX)(wo,{optional:!0})||{};pendingTasks=(0,i.WQX)(i.rev);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,i.WQX)(ro);urlSerializer=(0,i.WQX)(Vt);location=(0,i.WQX)(g.aZ);urlHandlingStrategy=(0,i.WQX)(io);injector=(0,i.WQX)(i.uvJ);_events=new V.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(so);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(mo,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,i.WQX)(hs,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:Be=>{this.console.warn(Be)}}),this.subscribeToNavigationEvents()}eventsSubscription=new $.yU;subscribeToNavigationEvents(){const Be=this.navigationTransitions.events.subscribe(Ke=>{try{const bt=this.navigationTransitions.currentTransition,Ht=(0,o.O8)(this.navigationTransitions.currentNavigation);if(null!==bt&&null!==Ht)if(this.stateManager.handleRouterEvent(Ke,Ht),Ke instanceof Kn&&Ke.code!==zn.Redirect&&Ke.code!==zn.SupersededByNewNavigation)this.navigated=!0;else if(Ke instanceof gn)this.navigated=!0;else if(Ke instanceof un){const sn=Ke.navigationBehaviorOptions,Rn=this.urlHandlingStrategy.merge(Ke.url,bt.currentRawUrl),di={browserUrl:bt.extras.browserUrl,info:bt.extras.info,skipLocationChange:bt.extras.skipLocationChange,replaceUrl:bt.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Os(bt.source),...sn};this.scheduleNavigation(Rn,Nn,null,di,{resolve:bt.resolve,reject:bt.reject,promise:bt.promise})}(function Sn(Te){return!(Te instanceof Sa||Te instanceof un)})(Ke)&&this._events.next(Ke)}catch(bt){this.navigationTransitions.transitionAbortWithErrorSubject.next(bt)}});this.eventsSubscription.add(Be)}resetRootComponentType(Be){this.routerState.root.component=Be,this.navigationTransitions.rootComponentType=Be}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Nn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((Be,Ke,bt)=>{this.navigateToSyncWithBrowser(Be,bt,Ke)})}navigateToSyncWithBrowser(Be,Ke,bt){const Ht={replaceUrl:!0},sn=bt?.navigationId?bt:null;if(bt){const di={...bt};delete di.navigationId,delete di.\u0275routerPageId,0!==Object.keys(di).length&&(Ht.state=di)}const Rn=this.parseUrl(Be);this.scheduleNavigation(Rn,Ke,sn,Ht).catch(di=>{this.disposed||this.injector.get(i.ZTf)(di)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return(0,o.O8)(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Be){this.config=Be.map(ms),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(Be,Ke={}){const{relativeTo:bt,queryParams:Ht,fragment:sn,queryParamsHandling:Rn,preserveFragment:di}=Ke,ji=di?this.currentUrlTree.fragment:sn;let rr,Ia=null;switch(Rn??this.options.defaultQueryParamsHandling){case"merge":Ia={...this.currentUrlTree.queryParams,...Ht};break;case"preserve":Ia=this.currentUrlTree.queryParams;break;default:Ia=Ht||null}null!==Ia&&(Ia=this.removeEmptyProps(Ia));try{rr=It(bt?bt.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Be[0]||"/"!==Be[0][0])&&(Be=[]),rr=this.currentUrlTree.root}return wn(rr,Be,Ia,ji??null)}navigateByUrl(Be,Ke={skipLocationChange:!1}){const bt=fn(Be)?Be:this.parseUrl(Be),Ht=this.urlHandlingStrategy.merge(bt,this.rawUrlTree);return this.scheduleNavigation(Ht,Nn,null,Ke)}navigate(Be,Ke={skipLocationChange:!1}){return function tl(Te){for(let je=0;je(null!=Ht&&(Ke[bt]=Ht),Ke),{})}scheduleNavigation(Be,Ke,bt,Ht,sn){if(this.disposed)return Promise.resolve(!1);let Rn,di,ji;sn?(Rn=sn.resolve,di=sn.reject,ji=sn.promise):ji=new Promise((rr,Fr)=>{Rn=rr,di=Fr});const Ia=this.pendingTasks.add();return wl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Ia))}),this.navigationTransitions.handleNavigationRequest({source:Ke,restoredState:bt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Be,extras:Ht,resolve:Rn,reject:di,promise:ji,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ji.catch(rr=>Promise.reject(rr))}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})()},38132(ke,q,l){"use strict";l.d(q,{Wk:()=>C,iI:()=>hn,wQ:()=>a});var Q=l(10467),$=l(57303),ie=l(60177),_e=l(72200),ye=l(17705),se=l(2615),pe=l(73664),Ee=l(59295),L=l(43694),t=l(21413),s=l(22806),m=l(7673),u=l(70274),_=l(5964),T=l(26365),P=l(31397);let C=(()=>{class Ie{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=(0,se.vPA)(null);get href(){return(0,Ee.O8)(this.reactiveHref)}set href(Ne){this.reactiveHref.set(Ne)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new t.B;applicationErrorHandler=(0,se.WQX)(se.ZTf);options=(0,se.WQX)(L.J_,{optional:!0});constructor(Ne,ze,Je,gt,zt,Ye){this.router=Ne,this.route=ze,this.tabIndexAttribute=Je,this.renderer=gt,this.el=zt,this.locationStrategy=Ye,this.reactiveHref.set((0,se.WQX)(new ye.ES_("href"),{optional:!0}));const st=zt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===st||"area"===st||!("object"!=typeof customElements||!customElements.get(st)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(void 0!==this.subscription||!this.isAnchorElement)return;let Ne=this.preserveFragment;const ze=Je=>"merge"===Je||"preserve"===Je;Ne||=ze(this.queryParamsHandling),Ne||=!this.queryParamsHandling&&!ze(this.options?.defaultQueryParamsHandling),Ne&&(this.subscription=this.router.events.subscribe(Je=>{Je instanceof L.wF&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(Ne){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Ne)}ngOnChanges(Ne){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(Ne){null==Ne?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=(0,L.wO)(Ne)||Array.isArray(Ne)?Ne:[Ne],this.setTabIndexIfNotOnNativeEl("0"))}onClick(Ne,ze,Je,gt,zt){const Ye=this.urlTree;if(null===Ye||this.isAnchorElement&&(0!==Ne||ze||Je||gt||zt||"string"==typeof this.target&&"_self"!=this.target))return!0;const st={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(Ye,st)?.catch(it=>{this.applicationErrorHandler(it)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const Ne=this.urlTree;this.reactiveHref.set(null!==Ne&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(Ne))??"":null)}applyAttributeValue(Ne,ze){const Je=this.renderer,gt=this.el.nativeElement;null!==ze?Je.setAttribute(gt,Ne,ze):Je.removeAttribute(gt,Ne)}get urlTree(){return null===this.routerLinkInput?null:(0,L.wO)(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(ze){return new(ze||Ie)(pe.rXU(L.Ix),pe.rXU(L.nX),pe.kS0("tabindex"),pe.rXU(pe.sFG),pe.rXU(pe.aKT),pe.rXU($.hb))};static \u0275dir=pe.FsC({type:Ie,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(ze,Je){1&ze&&pe.bIt("click",function(zt){return Je.onClick(zt.button,zt.ctrlKey,zt.shiftKey,zt.altKey,zt.metaKey)}),2&ze&&pe.BMQ("href",Je.reactiveHref(),pe.n$t)("target",Je.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ye.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ye.L39],replaceUrl:[2,"replaceUrl","replaceUrl",ye.L39],routerLink:"routerLink"},features:[pe.OA$]})}return Ie})(),a=(()=>{class Ie{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new pe.bkB;constructor(Ne,ze,Je,gt,zt){this.router=Ne,this.element=ze,this.renderer=Je,this.cdr=gt,this.link=zt,this.routerEventsSubscription=Ne.events.subscribe(Ye=>{Ye instanceof L.wF&&this.update()})}ngAfterContentInit(){(0,m.of)(this.links.changes,(0,m.of)(null)).pipe((0,T.U)()).subscribe(Ne=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const Ne=[...this.links.toArray(),this.link].filter(ze=>!!ze).map(ze=>ze.onChanges);this.linkInputChangesSubscription=(0,s.H)(Ne).pipe((0,T.U)()).subscribe(ze=>{this._isActive!==this.isLinkActive(this.router)(ze)&&this.update()})}set routerLinkActive(Ne){const ze=Array.isArray(Ne)?Ne:Ne.split(" ");this.classes=ze.filter(Je=>!!Je)}ngOnChanges(Ne){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const Ne=this.hasActiveLinks();this.classes.forEach(ze=>{Ne?this.renderer.addClass(this.element.nativeElement,ze):this.renderer.removeClass(this.element.nativeElement,ze)}),Ne&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==Ne&&(this._isActive=Ne,this.cdr.markForCheck(),this.isActiveChange.emit(Ne))})}isLinkActive(Ne){const ze=function x(Ie){return!!Ie.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Je=>{const gt=Je.urlTree;return!!gt&&Ne.isActive(gt,ze)}}hasActiveLinks(){const Ne=this.isLinkActive(this.router);return this.link&&Ne(this.link)||this.links.some(Ne)}static \u0275fac=function(ze){return new(ze||Ie)(pe.rXU(L.Ix),pe.rXU(pe.aKT),pe.rXU(pe.sFG),pe.rXU(ye.gRc),pe.rXU(C,8))};static \u0275dir=pe.FsC({type:Ie,selectors:[["","routerLinkActive",""]],contentQueries:function(ze,Je,gt){if(1&ze&&pe.wni(gt,C,5),2&ze){let zt;pe.mGM(zt=pe.lsd())&&(Je.links=zt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[pe.OA$]})}return Ie})();class Y{}let fe=(()=>{class Ie{router;injector;preloadingStrategy;loader;subscription;constructor(Ne,ze,Je,gt){this.router=Ne,this.injector=ze,this.preloadingStrategy=Je,this.loader=gt}setUpPreloading(){this.subscription=this.router.events.pipe((0,_.p)(Ne=>Ne instanceof L.wF),(0,u.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Ne,ze){const Je=[];for(const gt of ze){gt.providers&&!gt._injector&&(gt._injector=(0,pe.Ol2)(gt.providers,Ne,`Route: ${gt.path}`));const zt=gt._injector??Ne,Ye=gt._loadedInjector??zt;(gt.loadChildren&&!gt._loadedRoutes&&void 0===gt.canLoad||gt.loadComponent&&!gt._loadedComponent)&&Je.push(this.preloadConfig(zt,gt)),(gt.children||gt._loadedRoutes)&&Je.push(this.processRoutes(Ye,gt.children??gt._loadedRoutes))}return(0,s.H)(Je).pipe((0,T.U)())}preloadConfig(Ne,ze){return this.preloadingStrategy.preload(ze,()=>{let Je;Je=ze.loadChildren&&void 0===ze.canLoad?this.loader.loadChildren(Ne,ze):(0,m.of)(null);const gt=Je.pipe((0,P.Z)(zt=>null===zt?(0,m.of)(void 0):(ze._loadedRoutes=zt.routes,ze._loadedInjector=zt.injector,this.processRoutes(zt.injector??Ne,zt.routes))));if(ze.loadComponent&&!ze._loadedComponent){const zt=this.loader.loadComponent(Ne,ze);return(0,s.H)([gt,zt]).pipe((0,T.U)())}return gt})}static \u0275fac=function(ze){return new(ze||Ie)(se.KVO(L.Ix),se.KVO(se.uvJ),se.KVO(Y),se.KVO(L.D$))};static \u0275prov=se.jDH({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})();const re=new se.nKC("");let he=(()=>{class Ie{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=L.wU;restoredId=0;store={};constructor(Ne,ze,Je,gt,zt={}){this.urlSerializer=Ne,this.transitions=ze,this.viewportScroller=Je,this.zone=gt,this.options=zt,zt.scrollPositionRestoration||="disabled",zt.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(Ne=>{Ne instanceof L.Z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Ne.navigationTrigger,this.restoredId=Ne.restoredState?Ne.restoredState.navigationId:0):Ne instanceof L.wF?(this.lastId=Ne.id,this.scheduleScrollEvent(Ne,this.urlSerializer.parse(Ne.urlAfterRedirects).fragment)):Ne instanceof L.lW&&Ne.code===L.mo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Ne,this.urlSerializer.parse(Ne.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Ne=>{if(!(Ne instanceof L.OY))return;const ze={behavior:"instant"};Ne.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0],ze):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Ne.position,ze):Ne.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Ne.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(Ne,ze){var Je=this;this.zone.runOutsideAngular((0,Q.A)(function*(){yield new Promise(gt=>{setTimeout(gt),typeof requestAnimationFrame<"u"&&requestAnimationFrame(gt)}),Je.zone.run(()=>{Je.transitions.events.next(new L.OY(Ne,"popstate"===Je.lastSource?Je.store[Je.restoredId]:null,ze))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(ze){pe.QTQ()};static \u0275prov=se.jDH({token:Ie,factory:Ie.\u0275fac})}return Ie})();function ve(Ie,le){return{\u0275kind:Ie,\u0275providers:le}}function $e(){const Ie=(0,se.WQX)(se.zZn);return le=>{const Ne=Ie.get(pe.o8S);if(le!==Ne.components[0])return;const ze=Ie.get(L.Ix),Je=Ie.get(dt);1===Ie.get(yt)&&ze.initialNavigation(),Ie.get(qt,null,{optional:!0})?.setUpPreloading(),Ie.get(re,null,{optional:!0})?.init(),ze.resetRootComponentType(Ne.componentTypes[0]),Je.closed||(Je.next(),Je.complete(),Je.unsubscribe())}}const dt=new se.nKC("",{factory:()=>new t.B}),yt=new se.nKC("",{providedIn:"root",factory:()=>1}),qt=new se.nKC("");function S(Ie){return ve(0,[{provide:qt,useExisting:fe},{provide:Y,useExisting:Ie}])}function Le(Ie){return(0,pe._jY)("NgRouterViewTransitions"),ve(9,[{provide:L.Pu,useValue:L.Lg},{provide:L.bK,useValue:{skipNextTransition:!!Ie?.skipInitialTransition,...Ie}}])}const Vt=[$.aZ,{provide:L.Sd,useClass:L.nU},L.Ix,L.Zp,{provide:L.nX,useFactory:function Me(Ie){return Ie.routerState.root},deps:[L.Ix]},L.D$,[]];let hn=(()=>{class Ie{constructor(){}static forRoot(Ne,ze){return{ngModule:Ie,providers:[Vt,[],{provide:L.bw,multi:!0,useValue:Ne},[],ze?.errorHandler?{provide:L.XR,useValue:ze.errorHandler}:[],{provide:L.J_,useValue:ze||{}},ze?.useHash?{provide:$.hb,useClass:_e.fw}:{provide:$.hb,useClass:$.Sm},{provide:re,useFactory:()=>{const Ie=(0,se.WQX)(ie.Xr),le=(0,se.WQX)(pe.SKi),Ne=(0,se.WQX)(L.J_),ze=(0,se.WQX)(L.J2),Je=(0,se.WQX)(L.Sd);return Ne.scrollOffset&&Ie.setOffset(Ne.scrollOffset),new he(Je,ze,Ie,le,Ne)}},ze?.preloadingStrategy?S(ze.preloadingStrategy).\u0275providers:[],ze?.initialNavigation?Pe(ze):[],ze?.bindToComponentInputs?ve(8,[L.tD,{provide:L.c1,useExisting:L.tD}]).\u0275providers:[],ze?.enableViewTransitions?Le().\u0275providers:[],[{provide:Ue,useFactory:$e},{provide:pe.iLQ,multi:!0,useExisting:Ue}]]}}static forChild(Ne){return{ngModule:Ie,providers:[{provide:L.bw,multi:!0,useValue:Ne}]}}static \u0275fac=function(ze){return new(ze||Ie)};static \u0275mod=pe.$C({type:Ie});static \u0275inj=se.G2t({})}return Ie})();function Pe(Ie){return["disabled"===Ie.initialNavigation?ve(3,[(0,pe.phd)(()=>{(0,se.WQX)(L.Ix).setUpLocationChangeListener()}),{provide:yt,useValue:2}]).\u0275providers:[],"enabledBlocking"===Ie.initialNavigation?ve(2,[{provide:pe.tvf,useValue:!0},{provide:yt,useValue:0},(0,pe.phd)(()=>{const le=(0,se.WQX)(se.zZn);return le.get($.hj,Promise.resolve()).then(()=>new Promise(ze=>{const Je=le.get(L.Ix),gt=le.get(dt);(0,L.gk)(Je,()=>{ze(!0)}),le.get(L.J2).afterPreactivation=()=>(ze(!0),gt.closed?(0,m.of)(void 0):gt),Je.initialNavigation()}))})]).\u0275providers:[]]}const Ue=new se.nKC("")},20060(ke,q,l){"use strict";l.d(q,{aY:()=>t1,dX:()=>A2});var i=l(2615),g=l(73664),p=l(17705),D=l(59295),o=l(345);function e(qe,Dt){(null==Dt||Dt>qe.length)&&(Dt=qe.length);for(var wt=0,Ft=Array(Dt);wt=qe.length?{done:!0}:{done:!1,value:qe[Ft++]}},e:function(Mt){throw Mt},f:ln}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var An,On=!0,ai=!1;return{s:function(){wt=wt.call(qe)},n:function(){var Mt=wt.next();return On=Mt.done,Mt},e:function(Mt){ai=!0,An=Mt},f:function(){try{On||null==wt.return||wt.return()}finally{if(ai)throw An}}}}function M(qe,Dt,wt){return(Dt=pe(Dt))in qe?Object.defineProperty(qe,Dt,{value:wt,enumerable:!0,configurable:!0,writable:!0}):qe[Dt]=wt,qe}function Q(qe,Dt){var wt=Object.keys(qe);if(Object.getOwnPropertySymbols){var Ft=Object.getOwnPropertySymbols(qe);Dt&&(Ft=Ft.filter(function(ln){return Object.getOwnPropertyDescriptor(qe,ln).enumerable})),wt.push.apply(wt,Ft)}return wt}function $(qe){for(var Dt=1;Dt0;)Dt+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Dt}function Aa(qe){for(var Dt=[],wt=(qe||[]).length>>>0;wt--;)Dt[wt]=qe[wt];return Dt}function Ha(qe){return qe.classList?Aa(qe.classList):(qe.getAttribute("class")||"").split(" ").filter(function(Dt){return Dt})}function Za(qe){return"".concat(qe).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Rs(qe){return Object.keys(qe||{}).reduce(function(Dt,wt){return Dt+"".concat(wt,": ").concat(qe[wt].trim(),";")},"")}function Nr(qe){return qe.size!==Pa.size||qe.x!==Pa.x||qe.y!==Pa.y||qe.rotate!==Pa.rotate||qe.flipX||qe.flipY}function ct(){var Dt=Yi,wt=Hi.cssPrefix,Ft=Hi.replacementClass,ln=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";\n --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";\n --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";\n --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";\n --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";\n --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";\n --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";\n --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";\n --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";\n --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";\n --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";\n --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";\n --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";\n --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\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.0714285714em;\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.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\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: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\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 transform: scale(var(--fa-counter-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it\'s vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\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.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\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 animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\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 animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\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 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 transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\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-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 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.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}';if("fa"!==wt||Ft!==Dt){var An=new RegExp("\\.".concat("fa","\\-"),"g"),On=new RegExp("\\--".concat("fa","\\-"),"g"),ai=new RegExp("\\.".concat(Dt),"g");ln=ln.replace(An,".".concat(wt,"-")).replace(On,"--".concat(wt,"-")).replace(ai,".".concat(Ft))}return ln}var pt=!1;function Ve(){Hi.autoAddCss&&!pt&&(function _s(qe){if(qe&&re){var Dt=Y.createElement("style");Dt.setAttribute("type","text/css"),Dt.innerHTML=qe;for(var wt=Y.head.childNodes,Ft=null,ln=wt.length-1;ln>-1;ln--){var An=wt[ln],On=(An.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(On)>-1&&(Ft=An)}Y.head.insertBefore(Dt,Ft)}}(ct()),pt=!0)}var Rt={mixout:function(){return{dom:{css:ct,insertCss:Ve}}},hooks:function(){return{beforeDOMElementCreation:function(){Ve()},beforeI2svg:function(){Ve()}}}},vn=x||{};vn[vt]||(vn[vt]={}),vn[vt].styles||(vn[vt].styles={}),vn[vt].hooks||(vn[vt].hooks={}),vn[vt].shims||(vn[vt].shims=[]);var Ni=vn[vt],ca=[],Er=function(){Y.removeEventListener("DOMContentLoaded",Er),Kt=1,ca.map(function(Dt){return Dt()})},Kt=!1;function _t(qe){var Dt=qe.tag,wt=qe.attributes,Ft=void 0===wt?{}:wt,ln=qe.children,An=void 0===ln?[]:ln;return"string"==typeof qe?Za(qe):"<".concat(Dt," ").concat(function ks(qe){return Object.keys(qe||{}).reduce(function(Dt,wt){return Dt+"".concat(wt,'="').concat(Za(qe[wt]),'" ')},"").trim()}(Ft),">").concat(An.map(_t).join(""),"")}function xn(qe,Dt,wt){if(qe&&qe[Dt]&&qe[Dt][wt])return{prefix:Dt,iconName:wt,icon:qe[Dt][wt]}}re&&((Kt=(Y.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Y.readyState))||Y.addEventListener("DOMContentLoaded",Er));var wi=function(Dt,wt,Ft,ln){var Mt,zi,Wi,An=Object.keys(Dt),On=An.length,ai=void 0!==ln?function(Dt,wt){return function(Ft,ln,An,On){return Dt.call(wt,Ft,ln,An,On)}}(wt,ln):wt;for(void 0===Ft?(Mt=1,Wi=Dt[An[0]]):(Mt=0,Wi=Ft);Mt2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,ln=void 0!==Ft&&Ft,An=ur(Dt);"function"!=typeof Ni.hooks.addPack||ln?Ni.styles[qe]=$($({},Ni.styles[qe]||{}),An):Ni.hooks.addPack(qe,ur(Dt)),"fas"===qe&&eo("fa",Dt)}var Sr=Ni.styles,ts=Ni.shims,Mo=Object.keys(Ka),Eo=Mo.reduce(function(qe,Dt){return qe[Dt]=Object.keys(Ka[Dt]),qe},{}),bl=null,hl={},Bl={},hr={},ns={},vi={};var fl=function(){var Dt=function(An){return wi(Sr,function(On,ai,Mt){return On[Mt]=wi(ai,An,{}),On},{})};hl=Dt(function(ln,An,On){return An[3]&&(ln[An[3]]=On),An[2]&&An[2].filter(function(Mt){return"number"==typeof Mt}).forEach(function(Mt){ln[Mt.toString(16)]=On}),ln}),Bl=Dt(function(ln,An,On){return ln[On]=On,An[2]&&An[2].filter(function(Mt){return"string"==typeof Mt}).forEach(function(Mt){ln[Mt]=On}),ln}),vi=Dt(function(ln,An,On){var ai=An[2];return ln[On]=On,ai.forEach(function(Mt){ln[Mt]=On}),ln});var wt="far"in Sr||Hi.autoFetchSvg,Ft=wi(ts,function(ln,An){var On=An[0],ai=An[1],Mt=An[2];return"far"===ai&&!wt&&(ai="fas"),"string"==typeof On&&(ln.names[On]={prefix:ai,iconName:Mt}),"number"==typeof On&&(ln.unicodes[On.toString(16)]={prefix:ai,iconName:Mt}),ln},{names:{},unicodes:{}});hr=Ft.names,ns=Ft.unicodes,bl=to(Hi.styleDefault,{family:Hi.familyDefault})};function ws(qe,Dt){return(hl[qe]||{})[Dt]}function fo(qe,Dt){return(vi[qe]||{})[Dt]}function xl(qe){return hr[qe]||{prefix:null,iconName:null}}function za(){return bl}function to(qe){var wt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,Ft=void 0===wt?oe:wt;return Ft!==Se||qe?js[Ft][qe]||js[Ft][bo[Ft][qe]]||(qe in Ni.styles?qe:null)||null:"fad"}function mo(qe){return qe.sort().filter(function(Dt,wt,Ft){return Ft.indexOf(Dt)===wt})}(function gs(qe){Mr.push(qe)})(function(qe){bl=to(qe.styleDefault,{family:Hi.familyDefault})}),fl();var So=pi.concat(Lt);function jo(qe){var wt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,Ft=void 0!==wt&&wt,ln=null,An=mo(qe.filter(function(Fa){return So.includes(Fa)})),On=mo(qe.filter(function(Fa){return!So.includes(Fa)})),zi=_e(An.filter(function(Fa){return ln=Fa,!ve.includes(Fa)}),1)[0],Wi=void 0===zi?null:zi,Zi=function Cl(qe){var Dt=oe,wt=Mo.reduce(function(Ft,ln){return Ft[ln]="".concat(Hi.cssPrefix,"-").concat(ln),Ft},{});return st.forEach(function(Ft){(qe.includes(wt[Ft])||qe.some(function(ln){return Eo[Ft].includes(ln)}))&&(Dt=Ft)}),Dt}(An),Ja=$($({},function wo(qe){var Dt=[],wt=null;return qe.forEach(function(Ft){var ln=function Go(qe,Dt){var wt=Dt.split("-"),Ft=wt[0],ln=wt.slice(1).join("-");return Ft!==qe||""===ln||function Vo(qe){return~ps.indexOf(qe)}(ln)?null:ln}(Hi.cssPrefix,Ft);ln?wt=ln:Ft&&Dt.push(Ft)}),{iconName:wt,rest:Dt}}(On)),{},{prefix:to(Wi,{family:Zi})});return $($($({},Ja),function io(qe){var Dt=qe.values,wt=qe.family,Ft=qe.canonical,ln=qe.givenPrefix,An=void 0===ln?"":ln,On=qe.styles,ai=void 0===On?{}:On,Mt=qe.config,zi=void 0===Mt?{}:Mt,Wi=wt===Se,Zi=Dt.includes("fa-duotone")||Dt.includes("fad");if(!Wi&&(Zi||"duotone"===zi.familyDefault||("fad"===Ft.prefix||"fa-duotone"===Ft.prefix))&&(Ft.prefix="fad"),(Dt.includes("fa-brands")||Dt.includes("fab"))&&(Ft.prefix="fab"),!Ft.prefix&&no.includes(wt)&&(Object.keys(ai).find(function(vr){return Ml.includes(vr)})||zi.autoFetchSvg)){var _r=we.get(wt).defaultShortPrefixId;Ft.prefix=_r,Ft.iconName=fo(Ft.prefix,Ft.iconName)||Ft.iconName}return("fa"===Ft.prefix||"fa"===An)&&(Ft.prefix=za()||"fas"),Ft}({values:qe,family:Zi,styles:Sr,config:Hi,canonical:Ja,givenPrefix:ln})),function ml(qe,Dt,wt){var Ft=wt.prefix,ln=wt.iconName;if(qe||!Ft||!ln)return{prefix:Ft,iconName:ln};var An="fa"===Dt?xl(ln):{},On=fo(Ft,ln);return"far"===(Ft=An.prefix||Ft)&&!Sr.far&&Sr.fas&&!Hi.autoFetchSvg&&(Ft="fas"),{prefix:Ft,iconName:ln=An.iconName||On||ln}}(Ft,ln,Ja))}var no=st.filter(function(qe){return qe!==oe||qe!==Se}),Ml=Object.keys(cn).filter(function(qe){return qe!==oe}).map(function(qe){return Object.keys(cn[qe])}).flat(),El=function(){return function f(qe,Dt,wt){return Dt&&w(qe.prototype,Dt),wt&&w(qe,wt),Object.defineProperty(qe,"prototype",{writable:!1}),qe}(function qe(){(function d(qe,Dt){if(!(qe instanceof Dt))throw new TypeError("Cannot call a class as a function")})(this,qe),this.definitions={}},[{key:"add",value:function(){for(var wt=this,Ft=arguments.length,ln=new Array(Ft),An=0;An0&&Wi.forEach(function(Zi){"string"==typeof Zi&&(wt[ai][Zi]=zi)}),wt[ai][Mt]=zi}),wt}}])}(),ao=[],$r={},Ss={},mi=Object.keys(Ss);function ro(qe,Dt){for(var wt=arguments.length,Ft=new Array(wt>2?wt-2:0),ln=2;ln1?Dt-1:0),Ft=1;Ft0&&void 0!==arguments[0]?arguments[0]:{};return re?(Os("beforeI2svg",Dt),so("pseudoElements2svg",Dt),so("i2svg",Dt)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var Dt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},wt=Dt.autoReplaceSvgRoot;!1===Hi.autoReplaceSvg&&(Hi.autoReplaceSvg=!0),Hi.observeMutations=!0,function Vn(qe){re&&(Kt?setTimeout(qe,0):ca.push(qe))}(function(){Jl({autoReplaceSvgRoot:wt}),Os("watch",Dt)})}},is={noAuto:function(){Hi.autoReplaceSvg=!1,Hi.observeMutations=!1,Os("noAuto")},config:Hi,dom:Zl,parse:{icon:function(Dt){if(null===Dt)return null;if("object"===Ee(Dt)&&Dt.prefix&&Dt.iconName)return{prefix:Dt.prefix,iconName:fo(Dt.prefix,Dt.iconName)||Dt.iconName};if(Array.isArray(Dt)&&2===Dt.length){var wt=0===Dt[1].indexOf("fa-")?Dt[1].slice(3):Dt[1],Ft=to(Dt[0]);return{prefix:Ft,iconName:fo(Ft,wt)||wt}}if("string"==typeof Dt&&(Dt.indexOf("".concat(Hi.cssPrefix,"-"))>-1||Dt.match(Wr))){var ln=jo(Dt.split(" "),{skipLookups:!0});return{prefix:ln.prefix||za(),iconName:fo(ln.prefix,ln.iconName)||ln.iconName}}if("string"==typeof Dt){var An=za();return{prefix:An,iconName:fo(An,Dt)||Dt}}}},library:Ul,findIconDefinition:el,toHtml:_t},Jl=function(){var wt=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,Ft=void 0===wt?Y:wt;(Object.keys(Ni.styles).length>0||Hi.autoFetchSvg)&&re&&Hi.autoReplaceSvg&&is.dom.i2svg({node:Ft})};function Wo(qe,Dt){return Object.defineProperty(qe,"abstract",{get:Dt}),Object.defineProperty(qe,"html",{get:function(){return qe.abstract.map(function(Ft){return _t(Ft)})}}),Object.defineProperty(qe,"node",{get:function(){if(re){var Ft=Y.createElement("div");return Ft.innerHTML=qe.html,Ft.children}}}),qe}function Be(qe){var Dt=qe.icons,wt=Dt.main,Ft=Dt.mask,ln=qe.prefix,An=qe.iconName,On=qe.transform,ai=qe.symbol,Mt=qe.maskId,zi=qe.extra,Wi=qe.watchable,Zi=void 0!==Wi&&Wi,Ja=Ft.found?Ft:wt,Fa=Ja.width,Ts=Ja.height,_r=[Hi.replacementClass,An?"".concat(Hi.cssPrefix,"-").concat(An):""].filter(function(rc){return-1===zi.classes.indexOf(rc)}).filter(function(rc){return""!==rc||!!rc}).concat(zi.classes).join(" "),vr={children:[],attributes:$($({},zi.attributes),{},{"data-prefix":ln,"data-icon":An,class:_r,role:zi.attributes.role||"img",viewBox:"0 0 ".concat(Fa," ").concat(Ts)})};!function je(qe){return["aria-label","aria-labelledby","title","role"].some(function(wt){return wt in qe})}(zi.attributes)&&!zi.attributes["aria-hidden"]&&(vr.attributes["aria-hidden"]="true"),Zi&&(vr.attributes[va]="");var yr=$($({},vr),{},{prefix:ln,iconName:An,main:wt,mask:Ft,maskId:Mt,transform:On,symbol:ai,styles:$({},zi.styles)}),Bs=Ft.found&&wt.found?so("generateAbstractMask",yr)||{children:[],attributes:{}}:so("generateAbstractIcon",yr)||{children:[],attributes:{}},Ys=Bs.attributes;return yr.children=Bs.children,yr.attributes=Ys,ai?function Te(qe){var wt=qe.iconName,Ft=qe.children,ln=qe.attributes,An=qe.symbol,On=!0===An?"".concat(qe.prefix,"-").concat(Hi.cssPrefix,"-").concat(wt):An;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:$($({},ln),{},{id:On}),children:Ft}]}]}(yr):function tl(qe){var Dt=qe.children,wt=qe.main,Ft=qe.mask,ln=qe.attributes,An=qe.styles,On=qe.transform;if(Nr(On)&&wt.found&&!Ft.found){var zi={x:wt.width/wt.height/2,y:.5};ln.style=Rs($($({},An),{},{"transform-origin":"".concat(zi.x+On.x/16,"em ").concat(zi.y+On.y/16,"em")}))}return[{tag:"svg",attributes:ln,children:Dt}]}(yr)}function Ke(qe){var Dt=qe.content,wt=qe.width,Ft=qe.height,ln=qe.transform,An=qe.extra,On=qe.watchable,ai=void 0!==On&&On,Mt=$($({},An.attributes),{},{class:An.classes.join(" ")});ai&&(Mt[va]="");var zi=$({},An.styles);Nr(ln)&&(zi.transform=function Qr(qe){var Dt=qe.transform,wt=qe.width,ln=qe.height,An=void 0===ln?16:ln,On=qe.startCentered,ai=void 0!==On&&On,Mt="";return Mt+=ai&&he?"translate(".concat(Dt.x/16-(void 0===wt?16:wt)/2,"em, ").concat(Dt.y/16-An/2,"em) "):ai?"translate(calc(-50% + ".concat(Dt.x/16,"em), calc(-50% + ").concat(Dt.y/16,"em)) "):"translate(".concat(Dt.x/16,"em, ").concat(Dt.y/16,"em) "),(Mt+="scale(".concat(Dt.size/16*(Dt.flipX?-1:1),", ").concat(Dt.size/16*(Dt.flipY?-1:1),") "))+"rotate(".concat(Dt.rotate,"deg) ")}({transform:ln,startCentered:!0,width:wt,height:Ft}),zi["-webkit-transform"]=zi.transform);var Wi=Rs(zi);Wi.length>0&&(Mt.style=Wi);var Zi=[];return Zi.push({tag:"span",attributes:Mt,children:[Dt]}),Zi}var Ht=Ni.styles;function sn(qe){var Dt=qe[0],wt=qe[1],An=_e(qe.slice(4),1)[0];return{found:!0,width:Dt,height:wt,icon:Array.isArray(An)?{tag:"g",attributes:{class:"".concat(Hi.cssPrefix,"-").concat(Jr_GROUP)},children:[{tag:"path",attributes:{class:"".concat(Hi.cssPrefix,"-").concat(Jr_SECONDARY),fill:"currentColor",d:An[0]}},{tag:"path",attributes:{class:"".concat(Hi.cssPrefix,"-").concat(Jr_PRIMARY),fill:"currentColor",d:An[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:An}}}}var Rn={found:!1,width:512,height:512};function ji(qe,Dt){var wt=Dt;return"fa"===Dt&&null!==Hi.styleDefault&&(Dt=za()),new Promise(function(Ft,ln){if("fa"===wt){var An=xl(qe)||{};qe=An.iconName||qe,Dt=An.prefix||Dt}if(qe&&Dt&&Ht[Dt]&&Ht[Dt][qe])return Ft(sn(Ht[Dt][qe]));(function di(qe,Dt){!zo&&!Hi.showMissingIcons&&qe&&console.error('Icon with name "'.concat(qe,'" and prefix "').concat(Dt,'" is missing.'))})(qe,Dt),Ft($($({},Rn),{},{icon:Hi.showMissingIcons&&qe&&so("missingIconAbstract")||{}}))})}var Ia=function(){},rr=Hi.measurePerformance&&U&&U.mark&&U.measure?U:{mark:Ia,measure:Ia},Fr='FA "7.1.0"',oo_begin=function(Dt){return rr.mark("".concat(Fr," ").concat(Dt," begins")),function(){return function(Dt){rr.mark("".concat(Fr," ").concat(Dt," ends")),rr.measure("".concat(Fr," ").concat(Dt),"".concat(Fr," ").concat(Dt," begins"),"".concat(Fr," ").concat(Dt," ends"))}(Dt)}},lo=function(){};function Sl(qe){return"string"==typeof(qe.getAttribute?qe.getAttribute(va):null)}function qc(qe){return Y.createElementNS("http://www.w3.org/2000/svg",qe)}function po(qe){return Y.createElement(qe)}function pc(qe){var wt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,Ft=void 0===wt?"svg"===qe.tag?qc:po:wt;if("string"==typeof qe)return Y.createTextNode(qe);var ln=Ft(qe.tag);return Object.keys(qe.attributes||[]).forEach(function(On){ln.setAttribute(On,qe.attributes[On])}),(qe.children||[]).forEach(function(On){ln.appendChild(pc(On,{ceFn:Ft}))}),ln}var Ps={replace:function(Dt){var wt=Dt[0];if(wt.parentNode)if(Dt[1].forEach(function(ln){wt.parentNode.insertBefore(pc(ln),wt)}),null===wt.getAttribute(va)&&Hi.keepOriginalSource){var Ft=Y.createComment(function gc(qe){var Dt=" ".concat(qe.outerHTML," ");return"".concat(Dt,"Font Awesome fontawesome.com ")}(wt));wt.parentNode.replaceChild(Ft,wt)}else wt.remove()},nest:function(Dt){var wt=Dt[0],Ft=Dt[1];if(~Ha(wt).indexOf(Hi.replacementClass))return Ps.replace(Dt);var ln=new RegExp("".concat(Hi.cssPrefix,"-.*"));if(delete Ft[0].attributes.id,Ft[0].attributes.class){var An=Ft[0].attributes.class.split(" ").reduce(function(ai,Mt){return Mt===Hi.replacementClass||Mt.match(ln)?ai.toSvg.push(Mt):ai.toNode.push(Mt),ai},{toNode:[],toSvg:[]});Ft[0].attributes.class=An.toSvg.join(" "),0===An.toNode.length?wt.removeAttribute("class"):wt.setAttribute("class",An.toNode.join(" "))}var On=Ft.map(function(ai){return _t(ai)}).join("\n");wt.setAttribute(va,""),wt.innerHTML=On}};function Do(qe){qe()}function e1(qe,Dt){var wt="function"==typeof Dt?Dt:lo;if(0===qe.length)wt();else{var Ft=Do;"async"===Hi.mutateApproach&&(Ft=x.requestAnimationFrame||Do),Ft(function(){var ln=function Tl(){return!0===Hi.autoReplaceSvg?Ps.replace:Ps[Hi.autoReplaceSvg]||Ps.replace}(),An=oo_begin("mutate");qe.map(ln),An(),wt()})}}var Ao=!1;function kc(){Ao=!0}function pl(){Ao=!1}var il=null;function Lo(qe){if(R&&Hi.observeMutations){var Dt=qe.treeCallback,wt=void 0===Dt?lo:Dt,Ft=qe.nodeCallback,ln=void 0===Ft?lo:Ft,An=qe.pseudoElementsCallback,On=void 0===An?lo:An,ai=qe.observeMutationsRoot,Mt=void 0===ai?Y:ai;il=new R(function(zi){if(!Ao){var Wi=za();Aa(zi).forEach(function(Zi){if("childList"===Zi.type&&Zi.addedNodes.length>0&&!Sl(Zi.addedNodes[0])&&(Hi.searchPseudoElements&&On(Zi.target),wt(Zi.target)),"attributes"===Zi.type&&Zi.target.parentNode&&Hi.searchPseudoElements&&On([Zi.target],!0),"attributes"===Zi.type&&Sl(Zi.target)&&~xo.indexOf(Zi.attributeName))if("class"===Zi.attributeName&&function mc(qe){var Dt=qe.getAttribute?qe.getAttribute(ir):null,wt=qe.getAttribute?qe.getAttribute(Ga):null;return Dt&&wt}(Zi.target)){var Ja=jo(Ha(Zi.target)),Ts=Ja.iconName;Zi.target.setAttribute(ir,Ja.prefix||Wi),Ts&&Zi.target.setAttribute(Ga,Ts)}else(function ql(qe){return qe&&qe.classList&&qe.classList.contains&&qe.classList.contains(Hi.replacementClass)})(Zi.target)&&ln(Zi.target)})}}),re&&il.observe(Mt,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Io(qe){var Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},wt=function Gl(qe){var Dt=qe.getAttribute("data-prefix"),wt=qe.getAttribute("data-icon"),Ft=void 0!==qe.innerText?qe.innerText.trim():"",ln=jo(Ha(qe));return ln.prefix||(ln.prefix=za()),Dt&&wt&&(ln.prefix=Dt,ln.iconName=wt),ln.iconName&&ln.prefix||(ln.prefix&&Ft.length>0&&(ln.iconName=function Ho(qe,Dt){return(Bl[qe]||{})[Dt]}(ln.prefix,qe.innerText)||ws(ln.prefix,Ea(qe.innerText))),!ln.iconName&&Hi.autoFetchSvg&&qe.firstChild&&qe.firstChild.nodeType===Node.TEXT_NODE&&(ln.iconName=qe.firstChild.data)),ln}(qe),Ft=wt.iconName,ln=wt.prefix,An=wt.rest,On=function Hl(qe){return Aa(qe.attributes).reduce(function(wt,Ft){return"class"!==wt.name&&"style"!==wt.name&&(wt[Ft.name]=Ft.value),wt},{})}(qe),ai=ro("parseNodeAttributes",{},qe),Mt=Dt.styleParser?function Vl(qe){var Dt=qe.getAttribute("style"),wt=[];return Dt&&(wt=Dt.split(";").reduce(function(Ft,ln){var An=ln.split(":"),On=An[0],ai=An.slice(1);return On&&ai.length>0&&(Ft[On]=ai.join(":").trim()),Ft},{})),wt}(qe):[];return $({iconName:Ft,prefix:ln,transform:Pa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:An,styles:Mt,attributes:On}},ai)}var ko=Ni.styles;function jl(qe){var Dt="nest"===Hi.autoReplaceSvg?Io(qe,{styleParser:!1}):Io(qe);return~Dt.extra.classes.indexOf(Uo)?so("generateLayersText",qe,Dt):so("generateSvgReplacementMutation",qe,Dt)}function Tr(qe){var Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!re)return Promise.resolve();var wt=Y.documentElement.classList,Ft=function(Zi){return wt.add("".concat(Ar,"-").concat(Zi))},ln=function(Zi){return wt.remove("".concat(Ar,"-").concat(Zi))},An=Hi.autoFetchSvg?function rs(){return[].concat(ye(Lt),ye(pi))}():ve.concat(Object.keys(ko));An.includes("fa")||An.push("fa");var On=[".".concat(Uo,":not([").concat(va,"])")].concat(An.map(function(Wi){return".".concat(Wi,":not([").concat(va,"])")})).join(", ");if(0===On.length)return Promise.resolve();var ai=[];try{ai=Aa(qe.querySelectorAll(On))}catch{}if(!(ai.length>0))return Promise.resolve();Ft("pending"),ln("complete");var Mt=oo_begin("onTree"),zi=ai.reduce(function(Wi,Zi){try{var Ja=jl(Zi);Ja&&Wi.push(Ja)}catch(Fa){zo||"MissingIcon"===Fa.name&&console.error(Fa)}return Wi},[]);return new Promise(function(Wi,Zi){Promise.all(zi).then(function(Ja){e1(Ja,function(){Ft("active"),Ft("complete"),ln("pending"),"function"==typeof Dt&&Dt(),Mt(),Wi()})}).catch(function(Ja){Mt(),Zi(Ja)})})}function Bt(qe){var Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;jl(qe).then(function(wt){wt&&e1([wt],Dt)})}var Tt=function(Dt){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ft=wt.transform,ln=void 0===Ft?Pa:Ft,An=wt.symbol,On=void 0!==An&&An,ai=wt.mask,Mt=void 0===ai?null:ai,zi=wt.maskId,Wi=void 0===zi?null:zi,Zi=wt.classes,Ja=void 0===Zi?[]:Zi,Fa=wt.attributes,Ts=void 0===Fa?{}:Fa,_r=wt.styles,vr=void 0===_r?{}:_r;if(Dt){var yr=Dt.prefix,Bs=Dt.iconName,rl=Dt.icon;return Wo($({type:"icon"},Dt),function(){return Os("beforeDOMElementCreation",{iconDefinition:Dt,params:wt}),Be({icons:{main:sn(rl),mask:Mt?sn(Mt.icon):{found:!1,width:null,height:null,icon:{}}},prefix:yr,iconName:Bs,transform:$($({},Pa),ln),symbol:On,maskId:Wi,extra:{attributes:Ts,styles:vr,classes:Ja}})})}},on={mixout:function(){return{icon:(qe=Tt,function(Dt){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ft=(Dt||{}).icon?Dt:el(Dt||{}),ln=wt.mask;return ln&&(ln=(ln||{}).icon?ln:el(ln||{})),qe(Ft,$($({},wt),{},{mask:ln}))})};var qe},hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.treeCallback=Tr,wt.nodeCallback=Bt,wt}}},provides:function(Dt){Dt.i2svg=function(wt){var Ft=wt.node,An=wt.callback;return Tr(void 0===Ft?Y:Ft,void 0===An?function(){}:An)},Dt.generateSvgReplacementMutation=function(wt,Ft){var ln=Ft.iconName,An=Ft.prefix,On=Ft.transform,ai=Ft.symbol,Mt=Ft.mask,zi=Ft.maskId,Wi=Ft.extra;return new Promise(function(Zi,Ja){Promise.all([ji(ln,An),Mt.iconName?ji(Mt.iconName,Mt.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Fa){var Ts=_e(Fa,2);Zi([wt,Be({icons:{main:Ts[0],mask:Ts[1]},prefix:An,iconName:ln,transform:On,symbol:ai,maskId:zi,extra:Wi,watchable:!0})])}).catch(Ja)})},Dt.generateAbstractIcon=function(wt){var zi,Ft=wt.children,ln=wt.attributes,An=wt.main,On=wt.transform,Mt=Rs(wt.styles);return Mt.length>0&&(ln.style=Mt),Nr(On)&&(zi=so("generateAbstractTransformGrouping",{main:An,transform:On,containerWidth:An.width,iconWidth:An.width})),Ft.push(zi||An.icon),{children:Ft,attributes:ln}}}},Hn={mixout:function(){return{layer:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ln=Ft.classes,An=void 0===ln?[]:ln;return Wo({type:"layer"},function(){Os("beforeDOMElementCreation",{assembler:wt,params:Ft});var On=[];return wt(function(ai){Array.isArray(ai)?ai.map(function(Mt){On=On.concat(Mt.abstract)}):On=On.concat(ai.abstract)}),[{tag:"span",attributes:{class:["".concat(Hi.cssPrefix,"-layers")].concat(ye(An)).join(" ")},children:On}]})}}}},ni={mixout:function(){return{counter:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ln=Ft.title,An=void 0===ln?null:ln,On=Ft.classes,ai=void 0===On?[]:On,Mt=Ft.attributes,zi=void 0===Mt?{}:Mt,Wi=Ft.styles,Zi=void 0===Wi?{}:Wi;return Wo({type:"counter",content:wt},function(){return Os("beforeDOMElementCreation",{content:wt,params:Ft}),function bt(qe){var Dt=qe.content,wt=qe.extra,Ft=$($({},wt.attributes),{},{class:wt.classes.join(" ")}),ln=Rs(wt.styles);ln.length>0&&(Ft.style=ln);var An=[];return An.push({tag:"span",attributes:Ft,children:[Dt]}),An}({content:wt.toString(),title:An,extra:{attributes:zi,styles:Zi,classes:["".concat(Hi.cssPrefix,"-layers-counter")].concat(ye(ai))}})})}}}},Mi={mixout:function(){return{text:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ln=Ft.transform,An=void 0===ln?Pa:ln,On=Ft.classes,ai=void 0===On?[]:On,Mt=Ft.attributes,zi=void 0===Mt?{}:Mt,Wi=Ft.styles,Zi=void 0===Wi?{}:Wi;return Wo({type:"text",content:wt},function(){return Os("beforeDOMElementCreation",{content:wt,params:Ft}),Ke({content:wt,transform:$($({},Pa),An),extra:{attributes:zi,styles:Zi,classes:["".concat(Hi.cssPrefix,"-layers-text")].concat(ye(ai))}})})}}},provides:function(Dt){Dt.generateLayersText=function(wt,Ft){var ln=Ft.transform,An=Ft.extra,On=null,ai=null;if(he){var Mt=parseInt(getComputedStyle(wt).fontSize,10),zi=wt.getBoundingClientRect();On=zi.width/Mt,ai=zi.height/Mt}return Promise.resolve([wt,Ke({content:wt.innerHTML,width:On,height:ai,transform:ln,extra:An,watchable:!0})])}}},ki=new RegExp('"',"ug"),$i=[1105920,1112319],ra=$($($($({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),ba=Object.keys(ra).reduce(function(qe,Dt){return qe[Dt.toLowerCase()]=ra[Dt],qe},{}),oa=Object.keys(ba).reduce(function(qe,Dt){var wt=ba[Dt];return qe[Dt]=wt[900]||ye(Object.entries(wt))[0][1],qe},{});function Ns(qe,Dt){var wt="".concat("data-fa-pseudo-element-pending").concat(Dt.replace(":","-"));return new Promise(function(Ft,ln){if(null!==qe.getAttribute(wt))return Ft();var On=Aa(qe.children).filter(function(sl){return sl.getAttribute(Va)===Dt})[0],ai=x.getComputedStyle(qe,Dt),Mt=ai.getPropertyValue("font-family"),zi=Mt.match(Js),Wi=ai.getPropertyValue("font-weight"),Zi=ai.getPropertyValue("content");if(On&&!zi)return qe.removeChild(On),Ft();if(zi&&"none"!==Zi&&""!==Zi){var Ja=ai.getPropertyValue("content"),Fa=function bi(qe,Dt){var wt=qe.replace(/^['"]|['"]$/g,"").toLowerCase(),Ft=parseInt(Dt),ln=isNaN(Ft)?"normal":Ft;return(ba[wt]||{})[ln]||oa[wt]}(Mt,Wi),Ts=function mr(qe){return Ea(ye(qe.replace(ki,""))[0]||"")}(Ja),_r=zi[0].startsWith("FontAwesome"),vr=function Lr(qe){var Dt=qe.getPropertyValue("font-feature-settings").includes("ss01"),Ft=qe.getPropertyValue("content").replace(ki,""),ln=Ft.codePointAt(0);return ln>=$i[0]&&ln<=$i[1]||2===Ft.length&&Ft[0]===Ft[1]||Dt}(ai),yr=ws(Fa,Ts),Bs=yr;if(_r){var rl=function zl(qe){var Dt=ns[qe],wt=ws("fas",qe);return Dt||(wt?{prefix:"fas",iconName:wt}:null)||{prefix:null,iconName:null}}(Ts);rl.iconName&&rl.prefix&&(yr=rl.iconName,Fa=rl.prefix)}if(!yr||vr||On&&On.getAttribute(ir)===Fa&&On.getAttribute(Ga)===Bs)Ft();else{qe.setAttribute(wt,Bs),On&&qe.removeChild(On);var Ys=function Al(){return{iconName:null,prefix:null,transform:Pa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),rc=Ys.extra;rc.attributes[Va]=Dt,ji(yr,Fa).then(function(sl){var Sh=Be($($({},Ys),{},{icons:{main:sl,mask:{prefix:null,iconName:null,rest:[]}},prefix:Fa,iconName:Bs,extra:rc,watchable:!0})),xc=Y.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===Dt?qe.insertBefore(xc,qe.firstChild):qe.appendChild(xc),xc.outerHTML=Sh.map(function(t0){return _t(t0)}).join("\n"),qe.removeAttribute(wt),Ft()}).catch(ln)}}else Ft()})}function Fs(qe){return Promise.all([Ns(qe,"::before"),Ns(qe,"::after")])}function Xo(qe){return!(qe.parentNode===document.head||~us.indexOf(qe.tagName.toUpperCase())||qe.getAttribute(Va)||qe.parentNode&&"svg"===qe.parentNode.tagName)}var Ro=function(Dt){return!!Dt&&hs.some(function(wt){return Dt.includes(wt)})},Ll=function(Dt){if(!Dt)return[];var An,wt=new Set,Ft=Dt.split(/,(?![^()]*\))/).map(function(Mt){return Mt.trim()}),ln=F(Ft=Ft.flatMap(function(Mt){return Mt.includes("(")?Mt:Mt.split(",").map(function(zi){return zi.trim()})}));try{for(ln.s();!(An=ln.n()).done;){var On=An.value;if(Ro(On)){var ai=hs.reduce(function(Mt,zi){return Mt.replace(zi,"")},On);""!==ai&&"*"!==ai&&wt.add(ai)}}}catch(Mt){ln.e(Mt)}finally{ln.f()}return wt};function gl(qe){if(re){var wt;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])wt=qe;else if(Hi.searchPseudoElementsFullScan)wt=qe.querySelectorAll("*");else{var An,Ft=new Set,ln=F(document.styleSheets);try{for(ln.s();!(An=ln.n()).done;){var On=An.value;try{var Mt,ai=F(On.cssRules);try{for(ai.s();!(Mt=ai.n()).done;){var Ja,Zi=F(Ll(Mt.value.selectorText));try{for(Zi.s();!(Ja=Zi.n()).done;)Ft.add(Ja.value)}catch(_r){Zi.e(_r)}finally{Zi.f()}}}catch(_r){ai.e(_r)}finally{ai.f()}}catch(_r){Hi.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(On.href," (").concat(_r.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(_r){ln.e(_r)}finally{ln.f()}if(!Ft.size)return;var Ts=Array.from(Ft).join(", ");try{wt=qe.querySelectorAll(Ts)}catch{}}return new Promise(function(_r,vr){var yr=Aa(wt).filter(Xo).map(Fs),Bs=oo_begin("searchPseudoElements");kc(),Promise.all(yr).then(function(){Bs(),pl(),_r()}).catch(function(){Bs(),pl(),vr()})})}}var ec=!1,ed=function(Dt){return Dt.toLowerCase().split(" ").reduce(function(Ft,ln){var An=ln.toLowerCase().split("-"),On=An[0],ai=An.slice(1).join("-");if(On&&"h"===ai)return Ft.flipX=!0,Ft;if(On&&"v"===ai)return Ft.flipY=!0,Ft;if(ai=parseFloat(ai),isNaN(ai))return Ft;switch(On){case"grow":Ft.size=Ft.size+ai;break;case"shrink":Ft.size=Ft.size-ai;break;case"left":Ft.x=Ft.x-ai;break;case"right":Ft.x=Ft.x+ai;break;case"up":Ft.y=Ft.y-ai;break;case"down":Ft.y=Ft.y+ai;break;case"rotate":Ft.rotate=Ft.rotate+ai}return Ft},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},_c={x:0,y:0,width:"100%",height:"100%"};function td(qe){return qe.attributes&&(qe.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(qe.attributes.fill="black"),qe}!function Xs(qe,Dt){var wt=Dt.mixoutsTo;ao=qe,$r={},Object.keys(Ss).forEach(function(Ft){-1===mi.indexOf(Ft)&&delete Ss[Ft]}),ao.forEach(function(Ft){var ln=Ft.mixout?Ft.mixout():{};if(Object.keys(ln).forEach(function(On){"function"==typeof ln[On]&&(wt[On]=ln[On]),"object"===Ee(ln[On])&&Object.keys(ln[On]).forEach(function(ai){wt[On]||(wt[On]={}),wt[On][ai]=ln[On][ai]})}),Ft.hooks){var An=Ft.hooks();Object.keys(An).forEach(function(On){$r[On]||($r[On]=[]),$r[On].push(An[On])})}Ft.provides&&Ft.provides(Ss)})}([Rt,on,Hn,ni,Mi,{hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.pseudoElementsCallback=gl,wt}}},provides:function(Dt){Dt.pseudoElements2svg=function(wt){var Ft=wt.node;Hi.searchPseudoElements&&gl(void 0===Ft?Y:Ft)}}},{mixout:function(){return{dom:{unwatch:function(){kc(),ec=!0}}}},hooks:function(){return{bootstrap:function(){Lo(ro("mutationObserverCallbacks",{}))},noAuto:function(){!function Dl(){il&&il.disconnect()}()},watch:function(wt){var Ft=wt.observeMutationsRoot;ec?pl():Lo(ro("mutationObserverCallbacks",{observeMutationsRoot:Ft}))}}}},{mixout:function(){return{parse:{transform:function(wt){return ed(wt)}}}},hooks:function(){return{parseNodeAttributes:function(wt,Ft){var ln=Ft.getAttribute("data-fa-transform");return ln&&(wt.transform=ed(ln)),wt}}},provides:function(Dt){Dt.generateAbstractTransformGrouping=function(wt){var Ft=wt.main,ln=wt.transform,On=wt.iconWidth,ai={transform:"translate(".concat(wt.containerWidth/2," 256)")},Mt="translate(".concat(32*ln.x,", ").concat(32*ln.y,") "),zi="scale(".concat(ln.size/16*(ln.flipX?-1:1),", ").concat(ln.size/16*(ln.flipY?-1:1),") "),Wi="rotate(".concat(ln.rotate," 0 0)"),Fa={outer:ai,inner:{transform:"".concat(Mt," ").concat(zi," ").concat(Wi)},path:{transform:"translate(".concat(On/2*-1," -256)")}};return{tag:"g",attributes:$({},Fa.outer),children:[{tag:"g",attributes:$({},Fa.inner),children:[{tag:Ft.icon.tag,children:Ft.icon.children,attributes:$($({},Ft.icon.attributes),Fa.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(wt,Ft){var ln=Ft.getAttribute("data-fa-mask"),An=ln?jo(ln.split(" ").map(function(On){return On.trim()})):{prefix:null,iconName:null,rest:[]};return An.prefix||(An.prefix=za()),wt.mask=An,wt.maskId=Ft.getAttribute("data-fa-mask-id"),wt}}},provides:function(Dt){Dt.generateAbstractMask=function(wt){var qe,Ft=wt.children,ln=wt.attributes,An=wt.main,On=wt.mask,ai=wt.maskId,Wi=An.icon,Ja=On.icon,Fa=function Ws(qe){var Dt=qe.transform,Ft=qe.iconWidth,ln={transform:"translate(".concat(qe.containerWidth/2," 256)")},An="translate(".concat(32*Dt.x,", ").concat(32*Dt.y,") "),On="scale(".concat(Dt.size/16*(Dt.flipX?-1:1),", ").concat(Dt.size/16*(Dt.flipY?-1:1),") "),ai="rotate(".concat(Dt.rotate," 0 0)");return{outer:ln,inner:{transform:"".concat(An," ").concat(On," ").concat(ai)},path:{transform:"translate(".concat(Ft/2*-1," -256)")}}}({transform:wt.transform,containerWidth:On.width,iconWidth:An.width}),Ts={tag:"rect",attributes:$($({},_c),{},{fill:"white"})},_r=Wi.children?{children:Wi.children.map(td)}:{},vr={tag:"g",attributes:$({},Fa.inner),children:[td($({tag:Wi.tag,attributes:$($({},Wi.attributes),Fa.path)},_r))]},yr={tag:"g",attributes:$({},Fa.outer),children:[vr]},Bs="mask-".concat(ai||Yr()),rl="clip-".concat(ai||Yr()),Ys={tag:"mask",attributes:$($({},_c),{},{id:Bs,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Ts,yr]},rc={tag:"defs",children:[{tag:"clipPath",attributes:{id:rl},children:(qe=Ja,"g"===qe.tag?qe.children:[qe])},Ys]};return Ft.push(rc,{tag:"rect",attributes:$({fill:"currentColor","clip-path":"url(#".concat(rl,")"),mask:"url(#".concat(Bs,")")},_c)}),{children:Ft,attributes:ln}}}},{provides:function(Dt){var wt=!1;x.matchMedia&&(wt=x.matchMedia("(prefers-reduced-motion: reduce)").matches),Dt.missingIconAbstract=function(){var Ft=[],ln={fill:"currentColor"},An={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Ft.push({tag:"path",attributes:$($({},ln),{},{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 On=$($({},An),{},{attributeName:"opacity"}),ai={tag:"circle",attributes:$($({},ln),{},{cx:"256",cy:"364",r:"28"}),children:[]};return wt||ai.children.push({tag:"animate",attributes:$($({},An),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:$($({},On),{},{values:"1;0;1;1;0;1;"})}),Ft.push(ai),Ft.push({tag:"path",attributes:$($({},ln),{},{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:$($({},On),{},{values:"1;0;0;0;0;1;"})}]}),wt||Ft.push({tag:"path",attributes:$($({},ln),{},{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:$($({},On),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Ft}}}},{hooks:function(){return{parseNodeAttributes:function(wt,Ft){var ln=Ft.getAttribute("data-fa-symbol");return wt.symbol=null!==ln&&(""===ln||ln),wt}}}}],{mixoutsTo:is});var Ra=is.config,De=is.dom,at=is.parse,gi=is.icon;const Eh=["*"];let nd=(()=>{class qe{defaultPrefix="fas";fallbackIcon=null;fixedWidth;set autoAddCss(wt){Ra.autoAddCss=wt,this._autoAddCss=wt}get autoAddCss(){return this._autoAddCss}_autoAddCss=!0;static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275prov=i.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})(),vc=(()=>{class qe{definitions={};addIcons(...wt){for(const Ft of wt){Ft.prefix in this.definitions||(this.definitions[Ft.prefix]={}),this.definitions[Ft.prefix][Ft.iconName]=Ft;for(const ln of Ft.icon[2])"string"==typeof ln&&(this.definitions[Ft.prefix][ln]=Ft)}}addIconPacks(...wt){for(const Ft of wt){const ln=Object.keys(Ft).map(An=>Ft[An]);this.addIcons(...ln)}}getIconDefinition(wt,Ft){return wt in this.definitions&&Ft in this.definitions[wt]?this.definitions[wt][Ft]:null}static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275prov=i.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();const Ko=qe=>null!=qe&&(90===qe||180===qe||270===qe||"90"===qe||"180"===qe||"270"===qe),J1=qe=>{const Dt=Ko(qe.rotate),wt={[`fa-${qe.animation}`]:null!=qe.animation&&!qe.animation.startsWith("spin"),"fa-spin":"spin"===qe.animation||"spin-reverse"===qe.animation,"fa-spin-pulse":"spin-pulse"===qe.animation||"spin-pulse-reverse"===qe.animation,"fa-spin-reverse":"spin-reverse"===qe.animation||"spin-pulse-reverse"===qe.animation,"fa-pulse":"spin-pulse"===qe.animation||"spin-pulse-reverse"===qe.animation,"fa-fw":qe.fixedWidth,"fa-border":qe.border,"fa-inverse":qe.inverse,"fa-layers-counter":qe.counter,"fa-flip-horizontal":"horizontal"===qe.flip||"both"===qe.flip,"fa-flip-vertical":"vertical"===qe.flip||"both"===qe.flip,[`fa-${qe.size}`]:null!==qe.size,[`fa-rotate-${qe.rotate}`]:Dt,"fa-rotate-by":null!=qe.rotate&&!Dt,[`fa-pull-${qe.pull}`]:null!==qe.pull,[`fa-stack-${qe.stackItemSize}`]:null!=qe.stackItemSize};return Object.keys(wt).map(Ft=>wt[Ft]?Ft:null).filter(Ft=>null!=Ft)},Br=new WeakSet,uo="fa-auto-css";let Il=(()=>{class qe{stackItemSize=(0,p.hFB)("1x");size=(0,p.hFB)();_effect=(0,D.QZ)(()=>{if(this.size())throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')});static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275dir=g.FsC({type:qe,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:[1,"stackItemSize"],size:[1,"size"]}})}return qe})(),yd=(()=>{class qe{size=(0,p.hFB)();classes=(0,D.EW)(()=>{const wt=this.size();return{...wt?{[`fa-${wt}`]:!0}:{},"fa-stack":!0}});static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275cmp=g.VBU({type:qe,selectors:[["fa-stack"]],hostVars:2,hostBindings:function(Ft,ln){2&Ft&&g.HbH(ln.classes())},inputs:{size:[1,"size"]},ngContentSelectors:Eh,decls:1,vars:0,template:function(Ft,ln){1&Ft&&(g.NAR(),g.SdG(0))},encapsulation:2,changeDetection:0})}return qe})(),t1=(()=>{class qe{icon=(0,p.geq)();title=(0,p.geq)();animation=(0,p.geq)();mask=(0,p.geq)();flip=(0,p.geq)();size=(0,p.geq)();pull=(0,p.geq)();border=(0,p.geq)();inverse=(0,p.geq)();symbol=(0,p.geq)();rotate=(0,p.geq)();fixedWidth=(0,p.geq)();transform=(0,p.geq)();a11yRole=(0,p.geq)();renderedIconHTML=(0,D.EW)(()=>{const wt=this.icon()??this.config.fallbackIcon;if(!wt)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})(),"";const Ft=this.findIconDefinition(wt);if(!Ft)return"";const ln=this.buildParams();!function bc(qe,Dt){if(!Dt.autoAddCss||Br.has(qe))return;if(null!=qe.getElementById(uo))return Dt.autoAddCss=!1,void Br.add(qe);const wt=qe.createElement("style");wt.setAttribute("type","text/css"),wt.setAttribute("id",uo),wt.innerHTML=De.css();const Ft=qe.head.childNodes;let ln=null;for(let An=Ft.length-1;An>-1;An--){const On=Ft[An],ai=On.nodeName.toUpperCase();["STYLE","LINK"].indexOf(ai)>-1&&(ln=On)}qe.head.insertBefore(wt,ln),Dt.autoAddCss=!1,Br.add(qe)}(this.document,this.config);const An=gi(Ft,ln);return this.sanitizer.bypassSecurityTrustHtml(An.html.join("\n"))});document=(0,i.WQX)(i.qQL);sanitizer=(0,i.WQX)(o.up);config=(0,i.WQX)(nd);iconLibrary=(0,i.WQX)(vc);stackItem=(0,i.WQX)(Il,{optional:!0});stack=(0,i.WQX)(yd,{optional:!0});constructor(){null!=this.stack&&null==this.stackItem&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}findIconDefinition(wt){const Ft=((qe,Dt)=>(qe=>void 0!==qe.prefix&&void 0!==qe.iconName)(qe)?qe:Array.isArray(qe)&&2===qe.length?{prefix:qe[0],iconName:qe[1]}:{prefix:Dt,iconName:qe})(wt,this.config.defaultPrefix);return"icon"in Ft?Ft:this.iconLibrary.getIconDefinition(Ft.prefix,Ft.iconName)??((qe=>{throw new Error(`Could not find icon with iconName=${qe.iconName} and prefix=${qe.prefix} in the icon library.`)})(Ft),null)}buildParams(){const wt=this.fixedWidth(),Ft={flip:this.flip(),animation:this.animation(),border:this.border(),inverse:this.inverse(),size:this.size(),pull:this.pull(),rotate:this.rotate(),fixedWidth:"boolean"==typeof wt?wt:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize():void 0},ln=this.transform(),An="string"==typeof ln?at.transform(ln):ln,On=this.mask(),ai=null!=On?this.findIconDefinition(On):null,Mt={},zi=this.a11yRole();null!=zi&&(Mt.role=zi);const Wi={};return null!=Ft.rotate&&!Ko(Ft.rotate)&&(Wi["--fa-rotate-angle"]=`${Ft.rotate}`),{title:this.title(),transform:An,classes:J1(Ft),mask:ai??void 0,symbol:this.symbol(),attributes:Mt,styles:Wi}}static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275cmp=g.VBU({type:qe,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Ft,ln){2&Ft&&(g.Avn("innerHTML",ln.renderedIconHTML(),g.npT),g.BMQ("title",ln.title()??void 0))},inputs:{icon:[1,"icon"],title:[1,"title"],animation:[1,"animation"],mask:[1,"mask"],flip:[1,"flip"],size:[1,"size"],pull:[1,"pull"],border:[1,"border"],inverse:[1,"inverse"],symbol:[1,"symbol"],rotate:[1,"rotate"],fixedWidth:[1,"fixedWidth"],transform:[1,"transform"],a11yRole:[1,"a11yRole"]},outputs:{icon:"iconChange",title:"titleChange",animation:"animationChange",mask:"maskChange",flip:"flipChange",size:"sizeChange",pull:"pullChange",border:"borderChange",inverse:"inverseChange",symbol:"symbolChange",rotate:"rotateChange",fixedWidth:"fixedWidthChange",transform:"transformChange",a11yRole:"a11yRoleChange"},decls:0,vars:0,template:function(Ft,ln){},encapsulation:2,changeDetection:0})}return qe})(),A2=(()=>{class qe{static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275mod=g.$C({type:qe});static \u0275inj=i.G2t({})}return qe})()},45383(ke,q,l){"use strict";l.d(q,{$$g:()=>qa,$Fj:()=>E4,$sC:()=>Xb,BA1:()=>zn,C8j:()=>n1,CQO:()=>a2,Ccf:()=>gr,D6w:()=>t8,DW4:()=>Mh,EvL:()=>x,FYJ:()=>We,GR4:()=>ae,GRI:()=>A8,HEq:()=>Pi,If6:()=>en,Int:()=>m6,JKM:()=>od,Kcb:()=>Rp,M29:()=>ub,McB:()=>Nb,Mf0:()=>mc,MjD:()=>vn,Oh6:()=>cx,QLR:()=>Rm,TBz:()=>jb,Tq9:()=>sr,Vpi:()=>F,VwO:()=>w8,W1p:()=>ym,WKo:()=>es,WxX:()=>Yl,Xbc:()=>Vn,_eQ:()=>wo,_qq:()=>E8,aAJ:()=>yo,aFw:()=>P6,cbP:()=>gd,dB:()=>o2,e4L:()=>E6,eGi:()=>Uf,f6_:()=>R4,gdJ:()=>d1,hb3:()=>dc,iW_:()=>xx,iy8:()=>Zo,jPR:()=>oy,jTw:()=>$0,k02:()=>ht,k6j:()=>dg,knH:()=>cf,ld_:()=>Su,njF:()=>qb,nsx:()=>Ub,o97:()=>Oi,pCJ:()=>It,pS3:()=>Te,peG:()=>Np,qFF:()=>Ku,qIE:()=>wx,s5m:()=>U0,vfE:()=>a7,xiI:()=>Vp,ymQ:()=>J,zPk:()=>cd,zjW:()=>S0,zm_:()=>gy,zpE:()=>F_});var F={prefix:"fas",iconName:"dollar-sign",icon:[320,512,[128178,61781,"dollar","usd"],"24","M136 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 56 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-114.9 0c-24.9 0-45.1 20.2-45.1 45.1 0 22.5 16.5 41.5 38.7 44.7l91.6 13.1c53.8 7.7 93.7 53.7 93.7 108 0 60.3-48.9 109.1-109.1 109.1l-10.9 0 0 40c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-40-72 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l130.9 0c24.9 0 45.1-20.2 45.1-45.1 0-22.5-16.5-41.5-38.7-44.7l-91.6-13.1C55.9 273.5 16 227.4 16 173.1 16 112.9 64.9 64 125.1 64l10.9 0 0-40z"]},x={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M64 160c0-53 43-96 96-96s96 43 96 96c0 42.7-27.9 78.9-66.5 91.4-28.4 9.2-61.5 35.3-61.5 76.6l0 24c0 17.7 14.3 32 32 32s32-14.3 32-32l0-24c0-1.7 .6-4.1 3.5-7.3 3-3.3 7.9-6.5 13.7-8.4 64.3-20.7 110.8-81 110.8-152.3 0-88.4-71.6-160-160-160S0 71.6 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm96 352c22.1 0 40-17.9 40-40s-17.9-40-40-40-40 17.9-40 40 17.9 40 40 40z"]},ae={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3l0 294.7 160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-384 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288L584.4 320 512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9zM126.8 195.8L54.4 320 199.3 320 126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9S11.7 382 .9 337.1z"]},We={prefix:"fas",iconName:"indian-rupee-sign",icon:[320,512,["indian-rupee","inr"],"e1bc","M0 64C0 46.3 14.3 32 32 32l264 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-76.7 0c17.7 19.8 30.1 44.6 34.7 72l42 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-42 0c-10.4 62.2-60.8 110.9-123.8 118.9L274.6 422c14.4 10.3 17.7 30.3 7.4 44.6s-30.3 17.7-44.6 7.4L13.4 314C2.1 306-2.7 291.5 1.5 278.2S18.1 256 32 256l80 0c35.8 0 66.1-23.5 76.3-56L24 200c-13.3 0-24-10.7-24-24s10.7-24 24-24l164.3 0c-10.2-32.5-40.5-56-76.3-56L32 96C14.3 96 0 81.7 0 64z"]},It={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M286 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L78 512c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3l59.4 0zM585.7 105.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L522.1 274.9c-4.2 5.7-10.7 9.4-17.7 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7zM256.3 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},en={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[448,512,[],"e4c1","M265.4-6.6c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L285.3 64 352 64c53 0 96 43 96 96l0 32c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-32c0-17.7-14.3-32-32-32l-66.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-80zm-82.7 272l80 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.3L162.7 400 96 400c-17.7 0-32 14.3-32 32l0 32c0 17.7-14.3 32-32 32S0 481.7 0 464l0-32c0-53 43-96 96-96l66.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM320 368a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM64 160a64 64 0 1 1 0-128 64 64 0 1 1 0 128z"]},zn={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64L72 128c-13.3 0-24-10.7-24-24S58.7 80 72 80l384 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L64 32zM416 256a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},ht={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"]},Oi={prefix:"fas",iconName:"bars-staggered",icon:[512,512,["reorder","stream"],"f550","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},es={prefix:"fas",iconName:"percent",icon:[448,512,[62101,62785,"percentage"],"25","M192 128a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM448 384a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM438.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-384 384c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l384-384z"]},vn={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 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Vn={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm80-24c0 32.8-19.7 61-48 73.3l0 70.7 176 0c26.5 0 48-21.5 48-48l0-22.7c-28.3-12.3-48-40.5-48-73.3 0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3l0 22.7c0 61.9-50.1 112-112 112l-176 0 0 70.7c28.3 12.3 48 40.5 48 73.3 0 44.2-35.8 80-80 80S0 476.2 0 432c0-32.8 19.7-61 48-73.3l0-205.3C19.7 141 0 112.8 0 80 0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM80 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},wo={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M480.5 10.3L259.1 158c-29.1 19.4-47.6 50.9-50.6 85.3 62.3 12.8 111.4 61.9 124.3 124.3 34.5-3 65.9-21.5 85.3-50.6L565.7 95.5c6.7-10.1 10.3-21.9 10.3-34.1 0-33.9-27.5-61.4-61.4-61.4-12.1 0-24 3.6-34.1 10.3zM288 400c0-61.9-50.1-112-112-112S64 338.1 64 400c0 3.9 .2 7.8 .6 11.6 1.8 17.5-10.2 36.4-27.8 36.4L32 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0c61.9 0 112-50.1 112-112z"]},Te={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},mc={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.6S384 14.6 384 24l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6l-40.4-34.6-40.4 34.6c-9 7.7-22.2 7.7-31.2 0l-40.4-34.6-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 488L0 24C0 14.6 5.5 6.1 14 2.2zM104 136c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0zM80 352c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24-120c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"]},Pi={prefix:"fas",iconName:"unlock-keyhole",icon:[384,512,["unlock-alt"],"f13e","M192 32c-35.3 0-64 28.7-64 64l0 64 192 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l0-64c0-70.7 57.3-128 128-128 63.5 0 116.1 46.1 126.2 106.7 2.9 17.4-8.8 33.9-26.3 36.9s-33.9-8.8-36.9-26.3C250 55.1 223.7 32 192 32zm40 328c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0z"]},n1={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 256c0-88.4 71.6-160 160-160 50.4 0 97.8 23.7 128 64l32 42.7 32-42.7c30.2-40.3 77.6-64 128-64 88.4 0 160 71.6 160 160S568.4 416 480 416c-50.4 0-97.8-23.7-128-64l-32-42.7-32 42.7c-30.2 40.3-77.6 64-128 64-88.4 0-160-71.6-160-160zm280 0l-43.2-57.6c-18.1-24.2-46.6-38.4-76.8-38.4-53 0-96 43-96 96s43 96 96 96c30.2 0 58.7-14.2 76.8-38.4L280 256zm80 0l43.2 57.6c18.1 24.2 46.6 38.4 76.8 38.4 53 0 96-43 96-96s-43-96-96-96c-30.2 0-58.7 14.2-76.8 38.4L360 256z"]},d1={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},qa={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M404 0c19.2 0 37.6 7.6 51.1 21.2l35.7 35.7C504.4 70.4 512 88.8 512 108s-7.6 37.6-21.2 51.1L445.9 204 308 66.1 352.9 21.2C366.4 7.6 384.8 0 404 0zM58.9 315.1L274.1 100 412 237.9 196.9 453.1c-10.7 10.7-24.1 18.5-38.7 22.6L30.4 511.1c-8.3 2.3-17.3 0-23.4-6.2s-8.5-15.1-6.2-23.4L36.4 353.8c4.1-14.6 11.8-27.9 22.6-38.7zM225.4 80.8L80.8 225.4 11.7 156.3c-15.6-15.6-15.6-40.9 0-56.6l88-88c15.6-15.6 40.9-15.6 56.6 0l5.9 5.9-56.3 56.3c-7.8 7.8-7.8 20.5 0 28.3s20.5 7.8 28.3 0l56.3-56.3 34.9 34.9zM431.2 286.6l34.9 34.9-56.3 56.3c-7.8 7.8-7.8 20.5 0 28.3s20.5 7.8 28.3 0l56.3-56.3 5.9 5.9c15.6 15.6 15.6 40.9 0 56.6l-88 88c-15.6 15.6-40.9 15.6-56.6 0l-69.1-69.1 144.6-144.6z"]},od={prefix:"fas",iconName:"won-sign",icon:[512,512,[8361,"krw","won"],"f159","M62.4 53.9C56.8 37.1 38.7 28.1 21.9 33.6S-3.9 57.4 1.7 74.1L56.9 240 32 240c-13.3 0-24 10.7-24 24s10.7 24 24 24l40.9 0 56.7 170.1c4.5 13.5 17.4 22.4 31.6 21.9s26.4-10.4 29.8-24.2L233 288 279 288 321 455.8c3.4 13.8 15.6 23.7 29.8 24.2s27.1-8.4 31.6-21.9L439.1 288 480 288c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24.9 0 55.3-165.9c5.6-16.8-3.5-34.9-20.2-40.5s-34.9 3.5-40.5 20.2l-62 186.1-54.6 0-45.9-183.8C283.5 42 270.7 32 256 32s-27.5 10-31 24.2L179 240 124.4 240 62.4 53.9zm78 234.1l26.6 0-11.4 45.6-15.2-45.6zM245 240l11-44.1 11 44.1-22 0zm100 48l26.6 0-15.2 45.6-11.4-45.6z"]},S0={prefix:"fas",iconName:"franc-sign",icon:[320,512,[],"e18f","M80 32C62.3 32 48 46.3 48 64l0 256-24 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 80c0 17.7 14.3 32 32 32s32-14.3 32-32l0-80 88 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-88 0 0-64 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-96 176 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},cf={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M256.4 0c-17.7 0-32 14.3-32 32l0 32-160 0c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l160 0 0 64-153.4 0c-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.7l153.4 0 0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96 160 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-160 0 0-64 153.4 0c4.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.7l-153.4 0 0-32c0-17.7-14.3-32-32-32z"]},dc={prefix:"fas",iconName:"turkish-lira-sign",icon:[448,512,["try","turkish-lira"],"e2bb","M160 32c17.7 0 32 14.3 32 32l0 43.6 121.4-34.7c12.7-3.6 26 3.7 29.7 16.5s-3.7 26-16.5 29.7l-134.6 38.5 0 46.1 121.4-34.7c12.7-3.6 26 3.7 29.7 16.5s-3.7 26-16.5 29.7l-134.6 38.5 0 162.5 72 0c53 0 96-43 96-96 0-17.7 14.3-32 32-32s32 14.3 32 32c0 88.4-71.6 160-160 160l-104 0c-17.7 0-32-14.3-32-32l0-176.2-25.4 7.3c-12.7 3.6-26-3.7-29.7-16.5s3.7-26 16.5-29.7l38.6-11 0-46.1-25.4 7.3c-12.7 3.6-26-3.7-29.7-16.5s3.7-26 16.5-29.7l38.6-11 0-61.9c0-17.7 14.3-32 32-32z"]},Su={prefix:"fas",iconName:"user-clock",icon:[576,512,[],"f4fd","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c3.9 0 7.9 .1 11.8 .4-16.2 28.2-25.5 60.8-25.5 95.6 0 41.8 13.4 80.5 36 112L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zM288 400a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},U0={prefix:"fas",iconName:"euro-sign",icon:[448,512,[8364,"eur","euro"],"f153","M73.3 192C100.8 99.5 186.5 32 288 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-65.6 0-122 39.5-146.7 96L272 192c13.3 0 24 10.7 24 24s-10.7 24-24 24l-143.2 0c-.5 5.3-.8 10.6-.8 16s.3 10.7 .8 16L272 272c13.3 0 24 10.7 24 24s-10.7 24-24 24l-130.7 0c24.7 56.5 81.1 96 146.7 96l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-101.5 0-187.2-67.5-214.7-160L40 320c-13.3 0-24-10.7-24-24s10.7-24 24-24l24.6 0c-.7-10.5-.7-21.5 0-32L40 240c-13.3 0-24-10.7-24-24s10.7-24 24-24l33.3 0z"]},cd={prefix:"fas",iconName:"yen-sign",icon:[384,512,[165,"cny","jpy","rmb","yen"],"f157","M74.9 46.7c-9.6-14.9-29.4-19.2-44.2-9.6S11.5 66.4 21.1 81.3L143.7 272 88 272c-13.3 0-24 10.7-24 24s10.7 24 24 24l72 0 0 32-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l72 0 0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48 72 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0 0-32 72 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-55.7 0 122.6-190.7c9.6-14.9 5.3-34.7-9.6-44.2s-34.7-5.3-44.2 9.6L192 228.8 74.9 46.7z"]},Yl={prefix:"fas",iconName:"angles-down",icon:[384,512,["angle-double-down"],"f103","M214.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 0L192 402.7 329.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 0L192 210.7 329.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},Uf={prefix:"fas",iconName:"network-wired",icon:[576,512,[],"f6ff","M248 88l80 0 0 48-80 0 0-48zm-8-56c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l16 0 0 32-224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-16 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-16 0 0-32 192 0 0 32-16 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-16 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-224 0 0-32 16 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-96 0zM448 376l8 0 0 48-80 0 0-48 72 0zm-256 0l8 0 0 48-80 0 0-48 72 0z"]},$0={prefix:"fas",iconName:"code",icon:[576,512,[],"f121","M360.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.6zm64.6 136.1c-12.5 12.5-12.5 32.8 0 45.3l73.4 73.4-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.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 0zm-274.7 0c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 150.6 182.6c12.5-12.5 12.5-32.8 0-45.3z"]},Ku={prefix:"fas",iconName:"diagram-project",icon:[512,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z"]},J={prefix:"fas",iconName:"money-bill-wave",icon:[512,512,[],"f53a","M0 419.6L0 109.5c0-23.2 24.1-38.6 46.3-32 87.7 26.2 149.7 5.5 212.1-15.3 64.5-21.5 129.4-43.1 223.3-13.1 18.5 5.9 30.3 23.8 30.3 43.3l0 310.1c0 23.2-24.1 38.6-46.2 32-87.7-26.2-149.8-5.5-212.1 15.3-64.5 21.5-129.4 43.1-223.3 13.1-18.5-5.9-30.3-23.8-30.3-43.3zM336 256c0-53-35.8-96-80-96s-80 43-80 96 35.8 96 80 96 80-43 80-96zM120 413.6c4.4 0 7.9-3.8 7.2-8.1-4.6-27.8-27-49.5-55.2-53-4.4-.5-8 3.1-8 7.5l0 39.9c0 3.6 2.4 6.8 6 7.7 17.9 4.2 34.3 6.1 50 6.1zm318.5-51.1c5 .8 9.5-3 9.5-8l0-42.6c0-4.4-3.6-8.1-8-7.5-25.2 3.1-45.9 20.9-53.2 44.6-1.4 4.7 2.3 9.1 7.2 9.2 14.2 .4 29 1.7 44.4 4.3zM448 152l0-39.9c0-3.6-2.5-6.8-6-7.7-17.9-4.2-34.3-6.1-50-6.1-4.4 0-7.9 3.8-7.2 8.1 4.6 27.8 27 49.5 55.2 53 4.4 .5 8-3.1 8-7.5zM125.2 162.9c1.4-4.7-2.3-9.1-7.2-9.2-14.2-.4-29-1.7-44.4-4.3-5-.8-9.5 3-9.5 8L64 200c0 4.4 3.6 8.1 8 7.5 25.2-3.1 45.9-20.9 53.2-44.6z"]},sr={prefix:"fas",iconName:"brazilian-real-sign",icon:[512,512,[],"e46c","M400 16c17.7 0 32 14.3 32 32l0 16 16 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-48.9 0c-26 0-47.1 21.1-47.1 47.1 0 22.5 15.9 41.8 37.9 46.2l32.8 6.6c51.9 10.4 89.3 56 89.3 109 0 50.6-33.8 93.3-80 106.7l0 20.4c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-16-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.9 0c26 0 47.1-21.1 47.1-47.1 0-22.5-15.9-41.8-37.9-46.2l-32.8-6.6c-51.9-10.4-89.3-56-89.3-109 0-50.6 33.8-93.2 80-106.7L368 48c0-17.7 14.3-32 32-32zM0 64C0 46.3 14.3 32 32 32l80 0c79.5 0 144 64.5 144 144 0 54.3-30 101.5-74.4 126.1l41 136.7c5.1 16.9-4.5 34.8-21.5 39.8s-34.8-4.5-39.8-21.5L120.1 319.8c-2.7 .1-5.4 .2-8.1 .2l-48 0 0 128c0 17.7-14.3 32-32 32S0 465.7 0 448L0 64zM64 256l48 0c44.2 0 80-35.8 80-80s-35.8-80-80-80l-48 0 0 160z"]},a2={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},o2={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z"]},yo={prefix:"fas",iconName:"user-lock",icon:[576,512,[],"f502","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c29.7 0 57.7 7.3 82.3 20.1l0 4.3c-19.6 17.6-32 43.1-32 71.5l0 96c0 5.5 .5 10.9 1.3 16.1L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zm301.7 .1c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 47.9 64 0 0-47.9zM352 400c0-20.9 13.4-38.7 32-45.3l0-50.6c0-44.2 35.8-80 80-80s80 35.8 80 80l0 50.6c18.6 6.6 32 24.4 32 45.3l0 96c0 26.5-21.5 48-48 48l-128 0c-26.5 0-48-21.5-48-48l0-96z"]},E4={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 64c0-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 80l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 112l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Rp={prefix:"fas",iconName:"baht-sign",icon:[320,512,[],"e0ac","M136 0c-13.3 0-24 10.7-24 24l0 40-74.4 0C16.8 64 0 80.8 0 101.6L0 406.3c0 23 18.7 41.7 41.7 41.7l70.3 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 48 0c61.9 0 112-50.1 112-112 0-40.1-21.1-75.3-52.7-95.1 13.1-18.3 20.7-40.7 20.7-64.9 0-61.9-50.1-112-112-112l-16 0 0-40c0-13.3-10.7-24-24-24zM112 128l0 96-48 0 0-96 48 0zm48 96l0-96 16 0c26.5 0 48 21.5 48 48s-21.5 48-48 48l-16 0zm-48 64l0 96-48 0 0-96 48 0zm48 96l0-96 48 0c26.5 0 48 21.5 48 48s-21.5 48-48 48l-48 0z"]},t8={prefix:"fas",iconName:"server",icon:[448,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Np={prefix:"fas",iconName:"arrows-turn-right",icon:[448,512,[],"e4c0","M313.4-6.6c12.5-12.5 32.8-12.5 45.3 0l80 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.3L338.7 128 128 128c-35.3 0-64 28.7-64 64l0 32c0 17.7-14.3 32-32 32S0 241.7 0 224l0-32C0 121.3 57.3 64 128 64l210.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l80 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 384 96 384c-17.7 0-32 14.3-32 32l0 32c0 17.7-14.3 32-32 32S0 465.7 0 448l0-32c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3z"]},Vp={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64 0-16.2-6-31.1-16-42.3l69.5-138.9c5.9-11.9 1.1-26.3-10.7-32.2s-26.3-1.1-32.2 10.7L261.1 288.2c-1.7-.1-3.4-.2-5.1-.2-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},E8={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M502.6 150.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9S352 236.9 352 224l0-64-320 0c-17.7 0-32-14.3-32-32S14.3 96 32 96l320 0 0-64c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c12.5 12.5 12.5 32.8 0 45.3zm-397.3 352l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c9.2-9.2 22.9-11.9 34.9-6.9S160 275.1 160 288l0 64 320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-320 0 0 64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9z"]},w8={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M96 112c0-26.5 21.5-48 48-48s48 21.5 48 48l0 112 256 0 0-112c0-26.5 21.5-48 48-48s48 21.5 48 48l0 16 16 0c26.5 0 48 21.5 48 48l0 48c17.7 0 32 14.3 32 32s-14.3 32-32 32l0 48c0 26.5-21.5 48-48 48l-16 0 0 16c0 26.5-21.5 48-48 48s-48-21.5-48-48l0-112-256 0 0 112c0 26.5-21.5 48-48 48s-48-21.5-48-48l0-16-16 0c-26.5 0-48-21.5-48-48l0-48c-17.7 0-32-14.3-32-32s14.3-32 32-32l0-48c0-26.5 21.5-48 48-48l16 0 0-16z"]},A8={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},R4={prefix:"fas",iconName:"ruble-sign",icon:[448,512,[8381,"rouble","rub","ruble"],"f158","M112 32C94.3 32 80 46.3 80 64l0 208-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 48-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 32c0 17.7 14.3 32 32 32s32-14.3 32-32l0-32 152 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-152 0 0-48 112 0c79.5 0 144-64.5 144-144S335.5 32 256 32L112 32zM256 256l-112 0 0-160 112 0c44.2 0 80 35.8 80 80s-35.8 80-80 80z"]},m6={prefix:"fas",iconName:"clock-rotate-left",icon:[576,512,["history"],"f1da","M288 64c106 0 192 86 192 192S394 448 288 448c-65.2 0-122.9-32.5-157.6-82.3-10.1-14.5-30.1-18-44.6-7.9s-18 30.1-7.9 44.6C124.1 468.6 201 512 288 512 429.4 512 544 397.4 544 256S429.4 0 288 0C202.3 0 126.5 42.1 80 106.7L80 80c0-17.7-14.3-32-32-32S16 62.3 16 80l0 112c0 17.7 14.3 32 32 32l24.6 0c.5 0 1 0 1.5 0l86 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-38.3 0C154.9 102.6 217 64 288 64zm24 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 104c0 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-65 0-94.1z"]},ym={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M512.4 240l-176 0c-17.7 0-32-14.3-32-32l0-176c0-17.7 14.4-32.2 31.9-29.9 107 14.2 191.8 99 206 206 2.3 17.5-12.2 31.9-29.9 31.9zM222.6 37.2c18.1-3.8 33.8 11 33.8 29.5l0 197.3c0 5.6 2 11 5.5 15.3L394 438.7c11.7 14.1 9.2 35.4-6.9 44.1-34.1 18.6-73.2 29.2-114.7 29.2-132.5 0-240-107.5-240-240 0-115.5 81.5-211.9 190.2-234.8zM477.8 288l64 0c18.5 0 33.3 15.7 29.5 33.8-10.2 48.4-35 91.4-69.6 124.2-12.3 11.7-31.6 9.2-42.4-3.9L374.9 340.4c-17.3-20.9-2.4-52.4 24.6-52.4l78.2 0z"]},E6={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M461.2 18.9C472.7 24 480 35.4 480 48l0 416c0 12.6-7.3 24-18.8 29.1s-24.8 3.2-34.3-5.1l-46.6-40.7c-43.6-38.1-98.7-60.3-156.4-63l0 95.7c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-96C57.3 384 0 326.7 0 256S57.3 128 128 128l84.5 0c61.8-.2 121.4-22.7 167.9-63.3l46.6-40.7c9.4-8.3 22.9-10.2 34.3-5.1zM224 320l0 .2c70.3 2.7 137.8 28.5 192 73.4l0-275.3c-54.2 44.9-121.7 70.7-192 73.4L224 320z"]},F_={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},Mh={prefix:"fas",iconName:"lock",icon:[384,512,[128274],"f023","M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]},P6={prefix:"fas",iconName:"window-restore",icon:[576,512,[],"f2d2","M512 96L160 96c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-64 48 0 0-192zM0 224c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224zm64 40c0 13.3 10.7 24 24 24l240 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L88 240c-13.3 0-24 10.7-24 24z"]},gd={prefix:"fas",iconName:"download",icon:[448,512,[],"f019","M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},Rm={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},oy={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z"]},gr={prefix:"fas",iconName:"money-bill-1",icon:[512,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm192 80a112 112 0 1 1 0 224 112 112 0 1 1 0-224zM64 184l0-48c0-4.4 3.6-8 8-8l48 0c4.4 0 8.1 3.6 7.5 8-3.6 29-26.6 51.9-55.5 55.5-4.4 .5-8-3.1-8-7.5zm0 144c0-4.4 3.6-8.1 8-7.5 29 3.6 51.9 26.6 55.5 55.5 .5 4.4-3.1 8-7.5 8l-48 0c-4.4 0-8-3.6-8-8l0-48zM440 191.5c-29-3.6-51.9-26.6-55.5-55.5-.5-4.4 3.1-8 7.5-8l48 0c4.4 0 8 3.6 8 8l0 48c0 4.4-3.6 8.1-8 7.5zM448 328l0 48c0 4.4-3.6 8-8 8l-48 0c-4.4 0-8.1-3.6-7.5-8 3.6-29 26.6-51.9 55.5-55.5 4.4-.5 8 3.1 8 7.5zM240 188c-11 0-20 9-20 20 0 9.7 6.9 17.7 16 19.6l0 48.4-4 0c-11 0-20 9-20 20s9 20 20 20l48 0c11 0 20-9 20-20s-9-20-20-20l-4 0 0-68c0-11-9-20-20-20l-16 0z"]},Zo=gr,dg={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},gy={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M338.8-9.9c11.9 8.6 16.3 24.2 10.9 37.8L271.3 224 416 224c13.5 0 25.5 8.4 30.1 21.1s.7 26.9-9.6 35.5l-288 240c-11.3 9.4-27.4 9.9-39.3 1.3s-16.3-24.2-10.9-37.8L176.7 288 32 288c-13.5 0-25.5-8.4-30.1-21.1s-.7-26.9 9.6-35.5l288-240c11.3-9.4 27.4-9.9 39.3-1.3z"]},ub={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7S-2.3 28 4.2 37.6l112 163.3-99.6 32.3C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4-52.9 100.6c-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.1l-52.9-100.6 103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8l-106.5-34.5 25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7-34.5-106.5C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6L200.9 116.2 37.6 4.2z"]},Nb={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M256.5 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM226.7 304l59.4 0 1.5 0c-12.9 26.8-7.8 58.2 11.5 79.5-20.2 22.3-24.8 55.8-9.4 83.4l22.5 40.4c.9 1.6 1.9 3.2 2.9 4.7l-237 0c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3zm205.9-56.4c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 6.1c0 18.9 24.1 32.8 40.5 23.4l5-2.9c11.6-6.7 26.5-2.6 33 9.1l22.4 40.2c6.2 11.2 2.6 25.2-8.2 32l-4.7 2.9c-16.2 10.1-16.2 39.9 0 50.1l4.6 2.9c10.8 6.8 14.5 20.8 8.3 32L607 483.8c-6.5 11.7-21.4 15.9-33 9.1l-4.9-2.9c-16.4-9.5-40.5 4.5-40.5 23.4l0 6.1c0 13.3-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24l0-5.9c0-19-24.2-33-40.7-23.5l-4.8 2.8c-11.6 6.7-26.4 2.6-33-9.1l-22.6-40.4c-6.2-11.2-2.6-25.3 8.3-32.1l4.4-2.7c16.3-10.1 16.3-40.1 0-50.2l-4.5-2.8c-10.9-6.8-14.5-20.9-8.3-32.1l22.5-40.3c6.5-11.7 21.4-15.8 32.9-9.1l4.8 2.8c16.5 9.5 40.7-4.5 40.7-23.5l0-5.9zm99.9 136.2a52 52 0 1 0 -104 0 52 52 0 1 0 104 0z"]},Ub={prefix:"fas",iconName:"screwdriver-wrench",icon:[576,512,["tools"],"f7d9","M70.8-6.7c5.4-5.4 13.8-6.2 20.2-2L209.9 70.5c8.9 5.9 14.2 15.9 14.2 26.6l0 49.6 90.8 90.8c33.3-15 73.9-8.9 101.2 18.5L542.2 382.1c18.7 18.7 18.7 49.1 0 67.9l-60.1 60.1c-18.7 18.7-49.1 18.7-67.9 0L288.1 384c-27.4-27.4-33.5-67.9-18.5-101.2l-90.8-90.8-49.6 0c-10.7 0-20.7-5.3-26.6-14.2L23.4 58.9c-4.2-6.3-3.4-14.8 2-20.2L70.8-6.7zm145 303.5c-6.3 36.9 2.3 75.9 26.2 107.2l-94.9 95c-28.1 28.1-73.7 28.1-101.8 0s-28.1-73.7 0-101.8l135.4-135.5 35.2 35.1zM384.1 0c20.1 0 39.4 3.7 57.1 10.5 10 3.8 11.8 16.5 4.3 24.1L388.8 91.3c-3 3-4.7 7.1-4.7 11.3l0 41.4c0 8.8 7.2 16 16 16l41.4 0c4.2 0 8.3-1.7 11.3-4.7l56.7-56.7c7.6-7.5 20.3-5.7 24.1 4.3 6.8 17.7 10.5 37 10.5 57.1 0 43.2-17.2 82.3-45 111.1l-49.1-49.1c-33.1-33-78.5-45.7-121.1-38.4l-56.8-56.8 0-29.7-.2-5c-.8-12.4-4.4-24.3-10.5-34.9 29.4-35 73.4-57.2 122.7-57.3z"]},jb={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Xb={prefix:"fas",iconName:"angles-up",icon:[384,512,["angle-double-up"],"f102","M214.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 0L192 109.3 329.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 0L192 301.3 329.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},qb={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 320L48 320c-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-48l352 0c26.5 0 48 21.5 48 48s-21.5 48-48 48L48 480c-26.5 0-48-21.5-48-48z"]},cx={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M0 64C0 46.3 14.3 32 32 32l448 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96L0 64zM32 176l448 0 0 240c0 35.3-28.7 64-64 64L96 480c-35.3 0-64-28.7-64-64l0-240zm152 64c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]},a7={prefix:"fas",iconName:"sterling-sign",icon:[384,512,[163,"gbp","pound-sign"],"f154","M91.3 288l-34.8 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l21.4 0C37.3 147.3 105.1 42 207.6 42l8.2 0c33.6 0 66.2 11.3 92.5 32.2l16.1 12.7c13.9 11 16.2 31.1 5.2 45s-31.1 16.2-45 5.2l-16.1-12.7c-15-11.9-33.6-18.4-52.8-18.4l-8.2 0c-57.3 0-94.7 59.9-69.7 111.4 3.6 7.4 6.6 14.9 9.1 22.6l149.5 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-141.2 0c1 35.3-8.7 70.6-28.9 100.9l-18.1 27.1 212.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-272 0c-11.8 0-22.6-6.5-28.2-16.9s-5-23 1.6-32.9l51.2-76.8c13.1-19.6 19.2-42.6 18.2-65.4z"]},xx={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},wx={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M232.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 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.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 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.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 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z"]}},11747(ke,q,l){"use strict";l.d(q,{En:()=>Re,Vm:()=>Pe,EH:()=>C,gp:()=>Me});var i=l(57786),g=l(71985),p=l(21413),D=l(73557),o=l(983),e=l(7673),A=l(18810),h=l(98071);class w{constructor(Ne,ze,Je){this.kind=Ne,this.value=ze,this.error=Je,this.hasValue="N"===Ne}observe(Ne){return f(this,Ne)}do(Ne,ze,Je){const{kind:gt,value:zt,error:Ye}=this;return"N"===gt?Ne?.(zt):"E"===gt?ze?.(Ye):Je?.()}accept(Ne,ze,Je){var gt;return(0,h.T)(null===(gt=Ne)||void 0===gt?void 0:gt.next)?this.observe(Ne):this.do(Ne,ze,Je)}toObservable(){const{kind:Ne,value:ze,error:Je}=this,gt="N"===Ne?(0,e.of)(ze):"E"===Ne?(0,A.$)(()=>Je):"C"===Ne?o.w:0;if(!gt)throw new TypeError(`Unexpected notification kind ${Ne}`);return gt}static createNext(Ne){return new w("N",Ne)}static createError(Ne){return new w("E",void 0,Ne)}static createComplete(){return w.completeNotification}}function f(le,Ne){var ze,Je,gt;const{kind:zt,value:Ye,error:st}=le;if("string"!=typeof zt)throw new TypeError('Invalid notification, missing "kind"');"N"===zt?null===(ze=Ne.next)||void 0===ze||ze.call(Ne,Ye):"E"===zt?null===(Je=Ne.error)||void 0===Je||Je.call(Ne,st):null===(gt=Ne.complete)||void 0===gt||gt.call(Ne)}w.completeNotification=new w("C");var F=l(39974),M=l(54360),j=l(96354),Z=l(99437),ee=l(5964),V=l(58750);function Q(le,Ne,ze,Je){return(0,F.N)((gt,zt)=>{let Ye;Ne&&"function"!=typeof Ne?({duration:ze,element:Ye,connector:Je}=Ne):Ye=Ne;const st=new Map,it=St=>{st.forEach(St),St(zt)},He=St=>it(At=>At.error(St));let Wt=0,we=!1;const We=new M.H(zt,St=>{try{const At=le(St);let fn=st.get(At);if(!fn){st.set(At,fn=Je?Je():new p.B);const mt=function Lt(St,At){const fn=new g.c(mt=>{Wt++;const It=At.subscribe(mt);return()=>{It.unsubscribe(),0===--Wt&&we&&We.unsubscribe()}});return fn.key=St,fn}(At,fn);if(zt.next(mt),ze){const It=(0,M._)(fn,()=>{fn.complete(),It?.unsubscribe()},void 0,void 0,()=>st.delete(At));We.add((0,V.Tg)(ze(mt)).subscribe(It))}}fn.next(Ye?Ye(St):St)}catch(At){He(At)}},()=>it(St=>St.complete()),He,()=>st.clear(),()=>(we=!0,0===Wt));gt.subscribe(We)})}var $=l(31397);function ie(le,Ne){return Ne?ze=>ze.pipe(ie((Je,gt)=>(0,V.Tg)(le(Je,gt)).pipe((0,j.T)((zt,Ye)=>Ne(Je,zt,gt,Ye))))):(0,F.N)((ze,Je)=>{let gt=0,zt=null,Ye=!1;ze.subscribe((0,M._)(Je,st=>{zt||(zt=(0,M._)(Je,void 0,()=>{zt=null,Ye&&Je.complete()}),(0,V.Tg)(le(st,gt++)).subscribe(zt))},()=>{Ye=!0,!zt&&Je.complete()}))})}var ye=l(96697),se=l(2615),pe=l(73664),Ee=l(59640);const T={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},P="__@ngrx/effects_create__";function C(le,Ne={}){const ze=Ne.functional?le:le(),Je={...T,...Ne};return Object.defineProperty(ze,P,{value:Je}),ze}function R(le){return Object.getPrototypeOf(le)}function fe(le){return"function"==typeof le}function re(le){return le.filter(fe)}function Oe(le,Ne,ze){const Je=R(le),zt=Je&&"Object"!==Je.constructor.name?Je.constructor.name:null,Ye=function Y(le){return function a(le){return Object.getOwnPropertyNames(le).filter(Je=>!(!le[Je]||!le[Je].hasOwnProperty(P))&&le[Je][P].hasOwnProperty("dispatch")).map(Je=>({propertyName:Je,...le[Je][P]}))}(le)}(le).map(({propertyName:st,dispatch:it,useEffectsErrorHandler:He})=>{const Wt="function"==typeof le[st]?le[st]():le[st],we=He?ze(Wt,Ne):Wt;return!1===it?we.pipe((0,D.w)()):we.pipe(function K(){return(0,F.N)((le,Ne)=>{le.subscribe((0,M._)(Ne,ze=>{Ne.next(w.createNext(ze))},()=>{Ne.next(w.createComplete()),Ne.complete()},ze=>{Ne.next(w.createError(ze)),Ne.complete()}))})}()).pipe((0,j.T)(Lt=>({effect:le[st],notification:Lt,propertyName:st,sourceName:zt,sourceInstance:le})))});return(0,i.h)(...Ye)}function ce(le,Ne,ze=10){return le.pipe((0,Z.W)(Je=>(Ne&&Ne.handleError(Je),ze<=1?le:ce(le,Ne,ze-1))))}let Re=(()=>{var le;class Ne extends g.c{constructor(Je){super(),Je&&(this.source=Je)}lift(Je){const gt=new Ne;return gt.source=this,gt.operator=Je,gt}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(Ee.sA))},this.\u0275prov=se.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}))}return le(),Ne})();function Me(...le){return(0,ee.p)(Ne=>le.some(ze=>"string"==typeof ze?ze===Ne.type:ze.type===Ne.type))}const ve=new se.nKC("@ngrx/effects Internal Root Guard"),oe=new se.nKC("@ngrx/effects User Provided Effects"),Se=new se.nKC("@ngrx/effects Internal Root Effects"),be=new se.nKC("@ngrx/effects Internal Root Effects Instances"),nt=new se.nKC("@ngrx/effects Internal Feature Effects"),$e=new se.nKC("@ngrx/effects Internal Feature Effects Instance Groups"),dt=new se.nKC("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>ce}),yt="@ngrx/effects/init";function et(le){return tn(le,"ngrxOnInitEffects")}function tn(le,Ne){return le&&Ne in le&&"function"==typeof le[Ne]}(0,Ee.VP)(yt);let Vt=(()=>{var le;class Ne extends p.B{constructor(Je,gt){super(),this.errorHandler=Je,this.effectsErrorHandler=gt}addEffects(Je){this.next(Je)}toActions(){return this.pipe(Q(Je=>function U(le){return!!le.constructor&&"Object"!==le.constructor.name&&"Function"!==le.constructor.name}(Je)?R(Je):Je),(0,$.Z)(Je=>Je.pipe(Q(hn))),(0,$.Z)(Je=>{const gt=Je.pipe(ie(Ye=>function En(le,Ne){return ze=>{const Je=Oe(ze,le,Ne);return function me(le){return tn(le,"ngrxOnRunEffects")}(ze)?ze.ngrxOnRunEffects(Je):Je}}(this.errorHandler,this.effectsErrorHandler)(Ye)),(0,j.T)(Ye=>(function rt(le,Ne){if("N"===le.notification.kind){const ze=le.notification.value;!function Mn(le){return"function"!=typeof le&&le&&le.type&&"string"==typeof le.type}(ze)&&Ne.handleError(new Error(`Effect ${function qt({propertyName:le,sourceInstance:Ne,sourceName:ze}){const Je="function"==typeof Ne[le];return ze?`"${ze}.${String(le)}${Je?"()":""}"`:`"${String(le)}()"`}(le)} dispatched an invalid action: ${function S(le){try{return JSON.stringify(le)}catch{return le}}(ze)}`))}}(Ye,this.errorHandler),Ye.notification)),(0,ee.p)(Ye=>"N"===Ye.kind&&null!=Ye.value),function _e(){return(0,F.N)((le,Ne)=>{le.subscribe((0,M._)(Ne,ze=>f(ze,Ne)))})}()),zt=Je.pipe((0,ye.s)(1),(0,ee.p)(et),(0,j.T)(Ye=>Ye.ngrxOnInitEffects()));return(0,i.h)(gt,zt)}))}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(se.zcH),se.KVO(dt))},this.\u0275prov=se.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}))}return le(),Ne})();function hn(le){return function de(le){return tn(le,"ngrxOnIdentifyEffects")}(le)?le.ngrxOnIdentifyEffects():""}let _n=(()=>{var le;class Ne{get isStarted(){return!!this.effectsSubscription}constructor(Je,gt){this.effectSources=Je,this.store=gt,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(Vt),se.KVO(Ee.il))},this.\u0275prov=se.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}))}return le(),Ne})(),tt=(()=>{var le;class Ne{constructor(Je,gt,zt,Ye,st,it,He){this.sources=Je,gt.start();for(const Wt of Ye)Je.addEffects(Wt);zt.dispatch({type:yt})}addEffects(Je){this.sources.addEffects(Je)}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(Vt),se.KVO(_n),se.KVO(Ee.il),se.KVO(be),se.KVO(Ee.wc,8),se.KVO(Ee.ae,8),se.KVO(ve,8))},this.\u0275mod=pe.$C({type:Ne}),this.\u0275inj=se.G2t({}))}return le(),Ne})(),Fe=(()=>{var le;class Ne{constructor(Je,gt,zt,Ye){const st=gt.flat();for(const it of st)Je.addEffects(it)}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(tt),se.KVO($e),se.KVO(Ee.wc,8),se.KVO(Ee.ae,8))},this.\u0275mod=pe.$C({type:Ne}),this.\u0275inj=se.G2t({}))}return le(),Ne})(),Pe=(()=>{var le;class Ne{static forFeature(...Je){const gt=Je.flat(),zt=re(gt);return{ngModule:Fe,providers:[zt,{provide:nt,multi:!0,useValue:gt},{provide:oe,multi:!0,useValue:[]},{provide:$e,multi:!0,useFactory:Ue,deps:[nt,oe]}]}}static forRoot(...Je){const gt=Je.flat(),zt=re(gt);return{ngModule:tt,providers:[zt,{provide:Se,useValue:[gt]},{provide:ve,useFactory:Qe},{provide:oe,multi:!0,useValue:[]},{provide:be,useFactory:Ue,deps:[Se,oe]}]}}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)},this.\u0275mod=pe.$C({type:Ne}),this.\u0275inj=se.G2t({}))}return le(),Ne})();function Ue(le,Ne){const ze=[];for(const Je of le)ze.push(...Je);for(const Je of Ne)ze.push(...Je);return ze.map(Je=>function he(le){return le instanceof se.nKC||fe(le)}(Je)?(0,se.WQX)(Je):Je)}function Qe(){const le=(0,se.WQX)(_n,{optional:!0,skipSelf:!0}),Ne=(0,se.WQX)(Se,{self:!0});if((1!==Ne.length||0!==Ne[0].length)&&le)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},59640(ke,q,l){"use strict";l.d(q,{SS:()=>u,Zz:()=>m,N_:()=>C,Bh:()=>Xt,QU:()=>S,sA:()=>Le,h1:()=>tn,il:()=>_n,ae:()=>Jn,md:()=>Bi,wc:()=>Gn,q6:()=>de,VP:()=>Q,UX:()=>In,vy:()=>Sa,Mz:()=>mt,on:()=>_a,xk:()=>$});var i=l(2615),g=l(73664),p=l(59295),D=l(17705),o=l(84412),e=l(71985),A=l(21413),h=l(47242),d=l(40941),w=l(53993),f=l(31943),F=l(96354),K=l(23294),j=l(89079);const ee={};function Q(un,Sn){if(ee[un]=(ee[un]||0)+1,"function"==typeof Sn)return _e(un,(...Dn)=>({...Sn(...Dn),type:un}));switch(Sn?Sn._as:"empty"){case"empty":return _e(un,()=>({type:un}));case"props":return _e(un,Dn=>({...Dn,type:un}));default:throw new Error("Unexpected config.")}}function $(){return{_as:"props",_p:void 0}}function _e(un,Sn){return Object.defineProperty(Sn,"type",{value:un,writable:!1})}const m="@ngrx/store/init";let u=(()=>{var un;class Sn extends o.t{constructor(){super({type:m})}next(Dn){if("function"==typeof Dn)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(typeof Dn>"u")throw new TypeError("Actions must be objects");if(typeof Dn.type>"u")throw new TypeError("Actions must have a type property");super.next(Dn)}complete(){}ngOnDestroy(){super.complete()}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const _=[u],T=new i.nKC("@ngrx/store Internal Root Guard"),P=new i.nKC("@ngrx/store Internal Initial State"),C=new i.nKC("@ngrx/store Initial State"),a=new i.nKC("@ngrx/store Reducer Factory"),x=new i.nKC("@ngrx/store Internal Reducer Factory Provider"),Y=new i.nKC("@ngrx/store Initial Reducers"),R=new i.nKC("@ngrx/store Internal Initial Reducers"),U=new i.nKC("@ngrx/store Store Features"),fe=new i.nKC("@ngrx/store Internal Store Reducers"),re=new i.nKC("@ngrx/store Internal Feature Reducers"),he=new i.nKC("@ngrx/store Internal Feature Configs"),Oe=new i.nKC("@ngrx/store Internal Store Features"),ge=new i.nKC("@ngrx/store Internal Feature Reducers Token"),ce=new i.nKC("@ngrx/store Feature Reducers"),Re=new i.nKC("@ngrx/store User Provided Meta Reducers"),Me=new i.nKC("@ngrx/store Meta Reducers"),ve=new i.nKC("@ngrx/store Internal Resolved Meta Reducers"),oe=new i.nKC("@ngrx/store User Runtime Checks Config"),Se=new i.nKC("@ngrx/store Internal User Runtime Checks Config"),be=new i.nKC("@ngrx/store Internal Runtime Checks"),nt=new i.nKC("@ngrx/store Check if Action types are unique"),$e=new i.nKC("@ngrx/store Root Store Provider"),dt=new i.nKC("@ngrx/store Feature State Provider");function yt(un,Sn={}){const fi=Object.keys(un),Dn={};for(let Ci=0;CiCi(ti),fi(Sn))}}function Mn(un,Sn){return Array.isArray(Sn)&&Sn.length>0&&(un=rt.apply(null,[...Sn,un])),(fi,Dn)=>{const ti=un(fi);return(Ci,Xi)=>ti(Ci=void 0===Ci?Dn:Ci,Xi)}}class S extends e.c{}class Xt extends u{}const de="@ngrx/store/update-reducers";let ae=(()=>{var un;class Sn extends o.t{get currentReducers(){return this.reducers}constructor(Dn,ti,Ci,Xi){super(Xi(Ci,ti)),this.dispatcher=Dn,this.initialState=ti,this.reducers=Ci,this.reducerFactory=Xi}addFeature(Dn){this.addFeatures([Dn])}addFeatures(Dn){const ti=Dn.reduce((Ci,{reducers:Xi,reducerFactory:Ma,metaReducers:lt,initialState:an,key:ht})=>{const Gt="function"==typeof Xi?function qt(un){const Sn=Array.isArray(un)&&un.length>0?rt(...un):fi=>fi;return(fi,Dn)=>(fi=Sn(fi),(ti,Ci)=>fi(ti=void 0===ti?Dn:ti,Ci))}(lt)(Xi,an):Mn(Ma,lt)(Xi,an);return Ci[ht]=Gt,Ci},{});this.addReducers(ti)}removeFeature(Dn){this.removeFeatures([Dn])}removeFeatures(Dn){this.removeReducers(Dn.map(ti=>ti.key))}addReducer(Dn,ti){this.addReducers({[Dn]:ti})}addReducers(Dn){this.reducers={...this.reducers,...Dn},this.updateReducers(Object.keys(Dn))}removeReducer(Dn){this.removeReducers([Dn])}removeReducers(Dn){Dn.forEach(ti=>{this.reducers=function Et(un,Sn){return Object.keys(un).filter(fi=>fi!==Sn).reduce((fi,Dn)=>Object.assign(fi,{[Dn]:un[Dn]}),{})}(this.reducers,ti)}),this.updateReducers(Dn)}updateReducers(Dn){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:de,features:Dn})}ngOnDestroy(){this.complete()}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(Xt),i.KVO(C),i.KVO(Y),i.KVO(a))},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const me=[ae,{provide:S,useExisting:ae},{provide:Xt,useExisting:u}];let Le=(()=>{var un;class Sn extends A.B{ngOnDestroy(){this.complete()}static#e=un=()=>(this.\u0275fac=(()=>{let Dn;return function(Ci){return(Dn||(Dn=g.xGo(Sn)))(Ci||Sn)}})(),this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const et=[Le];class tn extends e.c{}let Vt=(()=>{var un;class Sn extends o.t{constructor(Dn,ti,Ci,Xi){super(Xi);const ht=Dn.pipe((0,d.Q)(h.T)).pipe((0,w.E)(ti)).pipe((0,f.S)(hn,{state:Xi}));this.stateSubscription=ht.subscribe(({state:Gt,action:cn})=>{this.next(Gt),Ci.next(cn)}),this.state=(0,j.ot)(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static#e=un=()=>(this.INIT=m,this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(u),i.KVO(S),i.KVO(Le),i.KVO(C))},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();function hn(un={state:void 0},[Sn,fi]){const{state:Dn}=un;return{state:fi(Dn,Sn),action:Sn}}const En=[Vt,{provide:tn,useExisting:Vt}];let _n=(()=>{var un;class Sn extends e.c{constructor(Dn,ti,Ci,Xi){super(),this.actionsObserver=ti,this.reducerManager=Ci,this.injector=Xi,this.source=Dn,this.state=Dn.state}select(Dn,...ti){return Fe.call(null,Dn,...ti)(this)}selectSignal(Dn,ti){return(0,p.EW)(()=>Dn(this.state()),ti)}lift(Dn){const ti=new Sn(this,this.actionsObserver,this.reducerManager);return ti.operator=Dn,ti}dispatch(Dn,ti){if("function"==typeof Dn)return this.processDispatchFn(Dn,ti);this.actionsObserver.next(Dn)}next(Dn){this.actionsObserver.next(Dn)}error(Dn){this.actionsObserver.error(Dn)}complete(){this.actionsObserver.complete()}addReducer(Dn,ti){this.reducerManager.addReducer(Dn,ti)}removeReducer(Dn){this.reducerManager.removeReducer(Dn)}processDispatchFn(Dn,ti){!function pe(un,Sn){if(null==un)throw new Error(`${Sn} must be defined.`)}(this.injector,"Store Injector");const Ci=ti?.injector??function Pe(){try{return(0,i.WQX)(i.zZn)}catch{return}}()??this.injector;return(0,p.QZ)(()=>{const Xi=Dn();(0,p.O8)(()=>this.dispatch(Xi))},{injector:Ci})}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(tn),i.KVO(u),i.KVO(ae),i.KVO(i.zZn))},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const tt=[_n];function Fe(un,Sn,...fi){return function(ti){let Ci;if("string"==typeof un){const Xi=[Sn,...fi].filter(Boolean);Ci=ti.pipe(function M(...un){const Sn=un.length;if(0===Sn)throw new Error("list of properties cannot be empty.");return(0,F.T)(fi=>{let Dn=fi;for(let ti=0;tiun(Xi,Sn)))}return Ci.pipe((0,K.F)())}}const Ue="https://ngrx.io/guide/store/configuration/runtime-checks";function Qe(un){return void 0===un}function Ie(un){return null===un}function le(un){return Array.isArray(un)}function gt(un){return"object"==typeof un&&null!==un}function st(un){return"function"==typeof un}function Lt(un,Sn){return un===Sn}function fn(un,Sn=Lt,fi=Lt){let Ci,Dn=null,ti=null;return{memoized:function an(){if(void 0!==Ci)return Ci.result;if(!Dn)return ti=un.apply(null,arguments),Dn=arguments,ti;if(!function St(un,Sn,fi){for(let Dn=0;Dn"function"==typeof Sn)}(Dn[0])&&(Dn=function Li(un){const Sn=Object.values(un),fi=Object.keys(un);return[...Sn,(...ti)=>fi.reduce((Ci,Xi,Ma)=>({...Ci,[Xi]:ti[Ma]}),{})]}(Dn[0]));const ti=Dn.slice(0,Dn.length-1),Ci=Dn[Dn.length-1],Xi=ti.filter(ht=>ht.release&&"function"==typeof ht.release),Ma=un(function(...ht){return Ci.apply(null,ht)}),lt=fn(function(ht,Gt){return Sn.stateFn.apply(null,[ht,ti,Gt,Ma])});return Object.assign(lt.memoized,{release:function an(){lt.reset(),Ma.reset(),Xi.forEach(ht=>ht.release())},projector:Ma.memoized,setResult:lt.setResult,clearResult:lt.clearResult})}}(fn)(...un)}function It(un,Sn,fi,Dn){if(void 0===fi){const Ci=Sn.map(Xi=>Xi(un));return Dn.memoized.apply(null,Ci)}const ti=Sn.map(Ci=>Ci(un,fi));return Dn.memoized.apply(null,[...ti,fi])}function In(un){return mt(Sn=>{const fi=Sn[un];return(0,D.naY)()&&!(un in Sn)&&console.warn(`@ngrx/store: The feature name "${un}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${un}', ...) or StoreModule.forFeature('${un}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),fi},Sn=>Sn)}function Ge(un){return un instanceof i.nKC?(0,i.WQX)(un):un}function Pt(un,Sn){return Sn.map((fi,Dn)=>{if(un[Dn]instanceof i.nKC){const ti=(0,i.WQX)(un[Dn]);return{key:fi.key,reducerFactory:ti.reducerFactory?ti.reducerFactory:yt,metaReducers:ti.metaReducers?ti.metaReducers:[],initialState:ti.initialState}}return fi})}function Yt(un){return un.map(Sn=>Sn instanceof i.nKC?(0,i.WQX)(Sn):Sn)}function bn(un){return"function"==typeof un?un():un}function $n(un,Sn){return un.concat(Sn)}function oi(){if((0,i.WQX)(_n,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function Ei(un){Object.freeze(un);const Sn=st(un);return Object.getOwnPropertyNames(un).forEach(fi=>{if(!fi.startsWith("\u0275")&&function He(un,Sn){return Object.prototype.hasOwnProperty.call(un,Sn)}(un,fi)&&(!Sn||"caller"!==fi&&"callee"!==fi&&"arguments"!==fi)){const Dn=un[fi];(gt(Dn)||st(Dn))&&!Object.isFrozen(Dn)&&Ei(Dn)}}),un}function nn(un,Sn=[]){return(Qe(un)||Ie(un))&&0===Sn.length?{path:["root"],value:un}:Object.keys(un).reduce((Dn,ti)=>{if(Dn)return Dn;const Ci=un[ti];return function it(un){return st(un)&&un.hasOwnProperty("\u0275cmp")}(Ci)?Dn:!(Qe(Ci)||Ie(Ci)||function Je(un){return"number"==typeof un}(Ci)||function ze(un){return"boolean"==typeof un}(Ci)||function Ne(un){return"string"==typeof un}(Ci)||le(Ci))&&(function Ye(un){if(!function zt(un){return gt(un)&&!le(un)}(un))return!1;const Sn=Object.getPrototypeOf(un);return Sn===Object.prototype||null===Sn}(Ci)?nn(Ci,[...Sn,ti]):{path:[...Sn,ti],value:Ci})},!1)}function en(un,Sn){if(!1===un)return;const fi=un.path.join("."),Dn=new Error(`Detected unserializable ${Sn} at "${fi}". ${Ue}#strict${Sn}serializability`);throw Dn.value=un.value,Dn.unserializablePath=fi,Dn}function jn(un){return(0,D.naY)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...un}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Un({strictActionSerializability:un,strictStateSerializability:Sn}){return fi=>un||Sn?function Nt(un,Sn){return function(fi,Dn){Sn.action(Dn)&&en(nn(Dn),"action");const ti=un(fi,Dn);return Sn.state()&&en(nn(ti),"state"),ti}}(fi,{action:Dn=>un&&!gn(Dn),state:()=>Sn}):fi}function ui({strictActionImmutability:un,strictStateImmutability:Sn}){return fi=>un||Sn?function Ii(un,Sn){return function(fi,Dn){const ti=Sn.action(Dn)?Ei(Dn):Dn,Ci=un(fi,ti);return Sn.state()?Ei(Ci):Ci}}(fi,{action:Dn=>un&&!gn(Dn),state:()=>Sn}):fi}function gn(un){return un.type.startsWith("@ngrx")}function zn({strictActionWithinNgZone:un}){return Sn=>un?function Nn(un,Sn){return function(fi,Dn){if(Sn.action(Dn)&&!g.SKi.isInAngularZone())throw new Error(`Action '${Dn.type}' running outside NgZone. ${Ue}#strictactionwithinngzone`);return un(fi,Dn)}}(Sn,{action:fi=>un&&!gn(fi)}):Sn}function kn(un){return[{provide:Se,useValue:un},{provide:oe,useFactory:ci,deps:[Se]},{provide:be,deps:[oe],useFactory:jn},{provide:Me,multi:!0,deps:[be],useFactory:ui},{provide:Me,multi:!0,deps:[be],useFactory:Un},{provide:Me,multi:!0,deps:[be],useFactory:zn}]}function Kn(){return[{provide:nt,multi:!0,deps:[be],useFactory:Xn}]}function ci(un){return un}function Xn(un){if(!un.strictActionTypeUniqueness)return;const Sn=Object.entries(ee).filter(([,fi])=>fi>1).map(([fi])=>fi);if(Sn.length)throw new Error(`Action types are registered more than once, ${Sn.map(fi=>`"${fi}"`).join(", ")}. ${Ue}#strictactiontypeuniqueness`)}function sa(un={},Sn={}){return[{provide:T,useFactory:oi},{provide:P,useValue:Sn.initialState},{provide:C,useFactory:bn,deps:[P]},{provide:R,useValue:un},{provide:fe,useExisting:un instanceof i.nKC?un:R},{provide:Y,deps:[R,[new g.y_5(fe)]],useFactory:Ge},{provide:Re,useValue:Sn.metaReducers?Sn.metaReducers:[]},{provide:ve,deps:[Me,Re],useFactory:$n},{provide:x,useValue:Sn.reducerFactory?Sn.reducerFactory:yt},{provide:a,deps:[x,ve],useFactory:Mn},_,me,et,En,tt,kn(Sn.runtimeChecks),Kn()]}function hi(un,Sn,fi={}){return[{provide:he,multi:!0,useValue:un instanceof Object?{}:fi},{provide:U,multi:!0,useValue:{key:un instanceof Object?un.name:un,reducerFactory:fi instanceof i.nKC||!fi.reducerFactory?yt:fi.reducerFactory,metaReducers:fi instanceof i.nKC||!fi.metaReducers?[]:fi.metaReducers,initialState:fi instanceof i.nKC||!fi.initialState?void 0:fi.initialState}},{provide:Oe,deps:[he,U],useFactory:Pt},{provide:re,multi:!0,useValue:un instanceof Object?un.reducer:Sn},{provide:ge,multi:!0,useExisting:Sn instanceof i.nKC?Sn:re},{provide:ce,multi:!0,deps:[re,[new g.y_5(ge)]],useFactory:Yt},Kn()]}(0,i.BCV)(()=>(0,i.WQX)($e)),(0,i.BCV)(()=>(0,i.WQX)(dt));let Gn=(()=>{var un;class Sn{constructor(Dn,ti,Ci,Xi,Ma,lt){}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(u),i.KVO(S),i.KVO(Le),i.KVO(_n),i.KVO(T,8),i.KVO(nt,8))},this.\u0275mod=g.$C({type:Sn}),this.\u0275inj=i.G2t({}))}return un(),Sn})(),Jn=(()=>{var un;class Sn{constructor(Dn,ti,Ci,Xi,Ma){this.features=Dn,this.featureReducers=ti,this.reducerManager=Ci;const lt=Dn.map((an,ht)=>{const cn=ti.shift()[ht];return{...an,reducers:cn,initialState:bn(an.initialState)}});Ci.addFeatures(lt)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(Oe),i.KVO(ce),i.KVO(ae),i.KVO(Gn),i.KVO(nt,8))},this.\u0275mod=g.$C({type:Sn}),this.\u0275inj=i.G2t({}))}return un(),Sn})(),Bi=(()=>{var un;class Sn{static forRoot(Dn,ti){return{ngModule:Gn,providers:[...sa(Dn,ti)]}}static forFeature(Dn,ti,Ci={}){return{ngModule:Jn,providers:[...hi(Dn,ti,Ci)]}}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)},this.\u0275mod=g.$C({type:Sn}),this.\u0275inj=i.G2t({}))}return un(),Sn})();function _a(...un){return{reducer:un.pop(),types:un.map(Dn=>Dn.type)}}function Sa(un,...Sn){const fi=new Map;for(const Dn of Sn)for(const ti of Dn.types){const Ci=fi.get(ti);fi.set(ti,Ci?(Ma,lt)=>Dn.reducer(Ci(Ma,lt),lt):Dn.reducer)}return function(Dn=un,ti){const Ci=fi.get(ti.type);return Ci?Ci(Dn,ti):Dn}}},51993(ke,q,l){"use strict";l.d(q,{Dl:()=>bp,L8:()=>p4,dV:()=>mh});var i=l(73664),g=l(2615),p=l(17705),D=l(72200),o=l(60177),e=l(31635),A=l(76939),h=l(33726),d=l(70152),w=l(11514);function f(){}function F(v){return null==v?f:function(){return this.querySelector(v)}}function j(){return[]}function Z(v){return null==v?j:function(){return this.querySelectorAll(v)}}function Q(v){return function(){return this.matches(v)}}function $(v){return function(O){return O.matches(v)}}var ie=Array.prototype.find;function ye(){return this.firstElementChild}var pe=Array.prototype.filter;function Ee(){return Array.from(this.children)}function m(v){return new Array(v.length)}function _(v,O){this.ownerDocument=v.ownerDocument,this.namespaceURI=v.namespaceURI,this._next=null,this._parent=v,this.__data__=O}function P(v,O,E,y,B,G){for(var Xe,ue=0,Ut=O.length,Qt=G.length;ueO?1:v>=O?0:NaN}_.prototype={constructor:_,appendChild:function(v){return this._parent.insertBefore(v,this._next)},insertBefore:function(v,O){return this._parent.insertBefore(v,O)},querySelector:function(v){return this._parent.querySelector(v)},querySelectorAll:function(v){return this._parent.querySelectorAll(v)}};var Se="http://www.w3.org/1999/xhtml";const be={svg:"http://www.w3.org/2000/svg",xhtml:Se,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nt(v){var O=v+="",E=O.indexOf(":");return E>=0&&"xmlns"!==(O=v.slice(0,E))&&(v=v.slice(E+1)),be.hasOwnProperty(O)?{space:be[O],local:v}:v}function $e(v){return function(){this.removeAttribute(v)}}function dt(v){return function(){this.removeAttributeNS(v.space,v.local)}}function yt(v,O){return function(){this.setAttribute(v,O)}}function Et(v,O){return function(){this.setAttributeNS(v.space,v.local,O)}}function rt(v,O){return function(){var E=O.apply(this,arguments);null==E?this.removeAttribute(v):this.setAttribute(v,E)}}function Mn(v,O){return function(){var E=O.apply(this,arguments);null==E?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,E)}}function S(v){return v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView}function Xt(v){return function(){this.style.removeProperty(v)}}function de(v,O,E){return function(){this.style.setProperty(v,O,E)}}function ae(v,O,E){return function(){var y=O.apply(this,arguments);null==y?this.style.removeProperty(v):this.style.setProperty(v,y,E)}}function Le(v,O){return v.style.getPropertyValue(O)||S(v).getComputedStyle(v,null).getPropertyValue(O)}function et(v){return function(){delete this[v]}}function tn(v,O){return function(){this[v]=O}}function Vt(v,O){return function(){var E=O.apply(this,arguments);null==E?delete this[v]:this[v]=E}}function En(v){return v.trim().split(/^|\s+/)}function _n(v){return v.classList||new tt(v)}function tt(v){this._node=v,this._names=En(v.getAttribute("class")||"")}function Fe(v,O){for(var E=_n(v),y=-1,B=O.length;++y=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(v){return this._names.indexOf(v)>=0}};var nn=[null];function en(v,O){this._groups=v,this._parents=O}function Nn(){return new en([[document.documentElement]],nn)}en.prototype=Nn.prototype={constructor:en,select:function M(v){"function"!=typeof v&&(v=F(v));for(var O=this._groups,E=O.length,y=new Array(E),B=0;B=ta&&(ta=pa+1);!(Na=qn[ta])&&++ta=0;)(ue=y[B])&&(G&&4^ue.compareDocumentPosition(G)&&G.parentNode.insertBefore(ue,G),G=ue);return this},sort:function he(v){function O(Pn,Fn){return Pn&&Fn?v(Pn.__data__,Fn.__data__):!Pn-!Fn}v||(v=Oe);for(var E=this._groups,y=E.length,B=new Array(y),G=0;G1?this.each((null==O?Xt:"function"==typeof O?ae:de)(v,O,E??"")):Le(this.node(),v)},property:function hn(v,O){return arguments.length>1?this.each((null==O?et:"function"==typeof O?Vt:tn)(v,O)):this.node()[v]},classed:function le(v,O){var E=En(v+"");if(arguments.length<2){for(var y=_n(this.node()),B=-1,G=E.length;++B=0&&(E=O.slice(y+1),O=O.slice(0,y)),{type:O,name:E}})}(v+""),G=y.length;if(!(arguments.length<2)){for(Xe=O?Yt:Pt,B=0;B{}};function zn(){for(var y,v=0,O=arguments.length,E={};v=0&&(y=E.slice(B+1),E=E.slice(0,B)),E&&!O.hasOwnProperty(E))throw new Error("unknown type: "+E);return{type:E,name:y}})}(v+"",E),G=-1,ue=y.length;if(!(arguments.length<2)){if(null!=O&&"function"!=typeof O)throw new Error("invalid callback: "+O);for(;++G0)for(var B,G,E=new Array(B),y=0;y>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===E?la(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===E?la(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=Dn.exec(v))?new Ce(O[1],O[2],O[3],1):(O=ti.exec(v))?new Ce(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=Ci.exec(v))?la(O[1],O[2],O[3],O[4]):(O=Xi.exec(v))?la(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=Ma.exec(v))?Va(O[1],O[2]/100,O[3]/100,1):(O=lt.exec(v))?Va(O[1],O[2]/100,O[3]/100,O[4]):an.hasOwnProperty(v)?Oi(an[v]):"transparent"===v?new Ce(NaN,NaN,NaN,0):null}function Oi(v){return new Ce(v>>16&255,v>>8&255,255&v,1)}function la(v,O,E,y){return y<=0&&(v=O=E=NaN),new Ce(v,O,E,y)}function li(v,O,E,y){return 1===arguments.length?function mn(v){return v instanceof Jn||(v=pi(v)),v?new Ce((v=v.rgb()).r,v.g,v.b,v.opacity):new Ce}(v):new Ce(v,O,E,y??1)}function Ce(v,O,E,y){this.r=+v,this.g=+O,this.b=+E,this.opacity=+y}function xt(){return`#${va(this.r)}${va(this.g)}${va(this.b)}`}function rn(){const v=Wn(this.opacity);return`${1===v?"rgb(":"rgba("}${Yi(this.r)}, ${Yi(this.g)}, ${Yi(this.b)}${1===v?")":`, ${v})`}`}function Wn(v){return isNaN(v)?1:Math.max(0,Math.min(1,v))}function Yi(v){return Math.max(0,Math.min(255,Math.round(v)||0))}function va(v){return((v=Yi(v))<16?"0":"")+v.toString(16)}function Va(v,O,E,y){return y<=0?v=O=E=NaN:E<=0||E>=1?v=O=NaN:O<=0&&(v=NaN),new Ga(v,O,E,y)}function $a(v){if(v instanceof Ga)return new Ga(v.h,v.s,v.l,v.opacity);if(v instanceof Jn||(v=pi(v)),!v)return new Ga;if(v instanceof Ga)return v;var O=(v=v.rgb()).r/255,E=v.g/255,y=v.b/255,B=Math.min(O,E,y),G=Math.max(O,E,y),ue=NaN,Xe=G-B,Ut=(G+B)/2;return Xe?(ue=O===G?(E-y)/Xe+6*(E0&&Ut<1?0:ue,new Ga(ue,Xe,Ut,v.opacity)}function Ga(v,O,E,y){this.h=+v,this.s=+O,this.l=+E,this.opacity=+y}function Ar(v){return(v=(v||0)%360)<0?v+360:v}function ds(v){return Math.max(0,Math.min(1,v||0))}function us(v,O,E){return 255*(v<60?O+(E-O)*v/60:v<180?E:v<240?O+(E-O)*(240-v)/60:O)}function hs(v,O,E,y,B){var G=v*v,ue=G*v;return((1-3*v+3*G-ue)*O+(4-6*G+3*ue)*E+(1+3*v+3*G-3*ue)*y+ue*B)/6}hi(Jn,pi,{copy(v){return Object.assign(new this.constructor,this,v)},displayable(){return this.rgb().displayable()},hex:ht,formatHex:ht,formatHex8:function Gt(){return this.rgb().formatHex8()},formatHsl:function cn(){return $a(this).formatHsl()},formatRgb:si,toString:si}),hi(Ce,li,Gn(Jn,{brighter(v){return v=null==v?_a:Math.pow(_a,v),new Ce(this.r*v,this.g*v,this.b*v,this.opacity)},darker(v){return v=null==v?.7:Math.pow(.7,v),new Ce(this.r*v,this.g*v,this.b*v,this.opacity)},rgb(){return this},clamp(){return new Ce(Yi(this.r),Yi(this.g),Yi(this.b),Wn(this.opacity))},displayable(){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:xt,formatHex:xt,formatHex8:function vt(){return`#${va(this.r)}${va(this.g)}${va(this.b)}${va(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rn,toString:rn})),hi(Ga,function ir(v,O,E,y){return 1===arguments.length?$a(v):new Ga(v,O,E,y??1)},Gn(Jn,{brighter(v){return v=null==v?_a:Math.pow(_a,v),new Ga(this.h,this.s,this.l*v,this.opacity)},darker(v){return v=null==v?.7:Math.pow(.7,v),new Ga(this.h,this.s,this.l*v,this.opacity)},rgb(){var v=this.h%360+360*(this.h<0),O=isNaN(v)||isNaN(this.s)?0:this.s,E=this.l,y=E+(E<.5?E:1-E)*O,B=2*E-y;return new Ce(us(v>=240?v-240:v+120,B,y),us(v,B,y),us(v<120?v+240:v-120,B,y),this.opacity)},clamp(){return new Ga(Ar(this.h),ds(this.s),ds(this.l),Wn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const v=Wn(this.opacity);return`${1===v?"hsl(":"hsla("}${Ar(this.h)}, ${100*ds(this.s)}%, ${100*ds(this.l)}%${1===v?")":`, ${v})`}`}}));const ms=v=>()=>v;function Pr(v,O){var E=O-v;return E?function Zr(v,O){return function(E){return v+E*O}}(v,E):ms(isNaN(v)?O:v)}const Is=function v(O){var E=function Ka(v){return 1==(v=+v)?Pr:function(O,E){return E-O?function js(v,O,E){return v=Math.pow(v,E),O=Math.pow(O,E)-v,E=1/E,function(y){return Math.pow(v+y*O,E)}}(O,E,v):ms(isNaN(O)?E:O)}}(O);function y(B,G){var ue=E((B=li(B)).r,(G=li(G)).r),Xe=E(B.g,G.g),Ut=E(B.b,G.b),Qt=Pr(B.opacity,G.opacity);return function(pn){return B.r=ue(pn),B.g=Xe(pn),B.b=Ut(pn),B.opacity=Qt(pn),B+""}}return y.gamma=v,y}(1);function Wr(v){return function(O){var ue,Xe,E=O.length,y=new Array(E),B=new Array(E),G=new Array(E);for(ue=0;ue=1?(E=1,O-1):Math.floor(E*O),B=v[y],G=v[y+1];return hs((E-y/O)*O,y>0?v[y-1]:2*B-G,B,G,yE&&(G=O.slice(E,G),Xe[ue]?Xe[ue]+=G:Xe[++ue]=G),(y=y[0])===(B=B[0])?Xe[ue]?Xe[ue]+=B:Xe[++ue]=B:(Xe[++ue]=null,Ut.push({i:ue,x:lr(y,B)})),E=Xr.lastIndex;return E=0&&v._call.call(void 0,O),v=v._next;--es}()}finally{es=0,function Er(){for(var v,E,O=Za,y=1/0;O;)O._call?(y>O._time&&(y=O._time),v=O,O=O._next):(E=O._next,O._next=null,O=v?v._next=E:Za=E);ks=v,Kt(y)}(),Nr=0}}function ca(){var v=Qr.now(),O=v-Rs;O>1e3&&(Ws-=O,Rs=v)}function Kt(v){es||(Yr&&(Yr=clearTimeout(Yr)),v-Nr>24?(v<1/0&&(Yr=setTimeout(Ni,v-Qr.now()-Ws)),Aa&&(Aa=clearInterval(Aa))):(Aa||(Rs=Qr.now(),Aa=setInterval(ca,1e3)),es=1,Es(Ni)))}function Vn(v,O,E){var y=new Ve;return y.restart(B=>{y.stop(),v(B+O)},O=null==O?0:+O,E),y}Ve.prototype=Rt.prototype={constructor:Ve,restart:function(v,O,E){if("function"!=typeof v)throw new TypeError("callback is not a function");E=(null==E?ct():+E)+(null==O?0:+O),!this._next&&ks!==this&&(ks?ks._next=this:Za=this,ks=this),this._call=v,this._time=E,Kt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kt())}};var _t=aa("start","end","cancel","interrupt"),xn=[];function qo(v,O,E,y,B,G){var ue=v.__transition;if(ue){if(E in ue)return}else v.__transition={};!function Mo(v,O,E){var B,y=v.__transition;function ue(Qt){var pn,Pn,Fn,xi;if(1!==E.state)return Ut();for(pn in y)if((xi=y[pn]).name===E.name){if(3===xi.state)return Vn(ue);4===xi.state?(xi.state=6,xi.timer.stop(),xi.on.call("interrupt",v,v.__data__,xi.index,xi.group),delete y[pn]):+pn0)throw new Error("too late; already scheduled");return E}function Sr(v,O){var E=ts(v,O);if(E.state>3)throw new Error("too late; already running");return E}function ts(v,O){var E=v.__transition;if(!E||!(E=E[O]))throw new Error("transition not found");return E}var ns,hl=180/Math.PI,Bl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hr(v,O,E,y,B,G){var ue,Xe,Ut;return(ue=Math.sqrt(v*v+O*O))&&(v/=ue,O/=ue),(Ut=v*E+O*y)&&(E-=v*Ut,y-=O*Ut),(Xe=Math.sqrt(E*E+y*y))&&(E/=Xe,y/=Xe,Ut/=Xe),v*y180?pn+=360:pn-Qt>180&&(Qt+=360),Fn.push({i:Pn.push(B(Pn)+"rotate(",null,y)-2,x:lr(Qt,pn)})):pn&&Pn.push(B(Pn)+"rotate("+pn+y)}(Qt.rotate,pn.rotate,Pn,Fn),function Xe(Qt,pn,Pn,Fn){Qt!==pn?Fn.push({i:Pn.push(B(Pn)+"skewX(",null,y)-2,x:lr(Qt,pn)}):pn&&Pn.push(B(Pn)+"skewX("+pn+y)}(Qt.skewX,pn.skewX,Pn,Fn),function Ut(Qt,pn,Pn,Fn,xi,yi){if(Qt!==Pn||pn!==Fn){var Ji=xi.push(B(xi)+"scale(",null,",",null,")");yi.push({i:Ji-4,x:lr(Qt,Pn)},{i:Ji-2,x:lr(pn,Fn)})}else(1!==Pn||1!==Fn)&&xi.push(B(xi)+"scale("+Pn+","+Fn+")")}(Qt.scaleX,Qt.scaleY,pn.scaleX,pn.scaleY,Pn,Fn),Qt=pn=null,function(xi){for(var qn,yi=-1,Ji=Fn.length;++yi=0&&(O=O.slice(0,E)),!O||"start"===O})}(O)?yl:Sr;return function(){var ue=G(this,v),Xe=ue.on;Xe!==y&&(B=(y=Xe).copy()).on(O,E),ue.on=B}}(E,v,O))},attr:function jo(v,O){var E=nt(v),y="transform"===E?ws:za;return this.attrTween(v,"function"==typeof O?(E.local?So:mo)(E,y,zl(this,"attr."+v,O)):null==O?(E.local?Cl:fr)(E):(E.local?wo:to)(E,y,O))},attrTween:function El(v,O){var E="attr."+v;if(arguments.length<2)return(E=this.tween(E))&&E._value;if(null==O)return this.tween(E,null);if("function"!=typeof O)throw new Error;var y=nt(v);return this.tween(E,(y.local?Ml:io)(y,O))},style:function ji(v,O,E){var y="transform"==(v+="")?fl:za;return null==O?this.styleTween(v,function bt(v,O){var E,y,B;return function(){var G=Le(this,v),ue=(this.style.removeProperty(v),Le(this,v));return G===ue?null:G===E&&ue===y?B:B=O(E=G,y=ue)}}(v,y)).on("end.style."+v,Ht(v)):"function"==typeof O?this.styleTween(v,function Rn(v,O,E){var y,B,G;return function(){var ue=Le(this,v),Xe=E(this),Ut=Xe+"";return null==Xe&&(this.style.removeProperty(v),Ut=Xe=Le(this,v)),ue===Ut?null:ue===y&&Ut===B?G:(B=Ut,G=O(y=ue,Xe))}}(v,y,zl(this,"style."+v,O))).each(function di(v,O){var E,y,B,Xe,G="style."+O,ue="end."+G;return function(){var Ut=Sr(this,v),Qt=Ut.on,pn=null==Ut.value[G]?Xe||(Xe=Ht(O)):void 0;(Qt!==E||B!==pn)&&(y=(E=Qt).copy()).on(ue,B=pn),Ut.on=y}}(this._id,v)):this.styleTween(v,function sn(v,O,E){var y,G,B=E+"";return function(){var ue=Le(this,v);return ue===B?null:ue===y?G:G=O(y=ue,E)}}(v,y,O),E).on("end.style."+v,null)},styleTween:function Fr(v,O,E){var y="style."+(v+="");if(arguments.length<2)return(y=this.tween(y))&&y._value;if(null==O)return this.tween(y,null);if("function"!=typeof O)throw new Error;return this.tween(y,function rr(v,O,E){var y,B;function G(){var ue=O.apply(this,arguments);return ue!==B&&(y=(B=ue)&&function Ia(v,O,E){return function(y){this.style.setProperty(v,O.call(this,y),E)}}(v,ue,E)),y}return G._value=O,G}(v,O,E??""))},text:function oo(v){return this.tween("text","function"==typeof v?function as(v){return function(){var O=v(this);this.textContent=O??""}}(zl(this,"text",v)):function nl(v){return function(){this.textContent=v}}(null==v?"":v+""))},textTween:function mc(v){var O="text";if(arguments.length<1)return(O=this.tween(O))&&O._value;if(null==v)return this.tween(O,null);if("function"!=typeof v)throw new Error;return this.tween(O,function Sl(v){var O,E;function y(){var B=v.apply(this,arguments);return B!==E&&(O=(E=B)&&function lo(v){return function(O){this.textContent=v.call(this,O)}}(B)),O}return y._value=v,y}(v))},remove:function tl(){return this.on("end.remove",function Wo(v){return function(){var O=this.parentNode;for(var E in this.__transition)if(+E!==v)return;O&&O.removeChild(this)}}(this._id))},tween:function xl(v,O){var E=this._id;if(v+="",arguments.length<2){for(var ue,y=ts(this.node(),E).tween,B=0,G=y.length;B2&&y.state<5,y.state=6,y.timer.stop(),y.on.call(B?"interrupt":"cancel",v,v.__data__,y.index,y.group),delete E[ue]):G=!1;G&&delete v.__transition}}(this,v)})},Un.prototype.transition=function il(v){var O,E;v instanceof po?(O=v._id,v=v._name):(O=gc(),(E=kc).time=ct(),v=null==v?null:v+"");for(var y=this._groups,B=y.length,G=0;GO?1:v>=O?0:NaN}function ec(v,O){return null==v||null==O?NaN:Ov?1:O>=v?0:NaN}function Wl(v){let O,E,y;function B(Xe,Ut,Qt=0,pn=Xe.length){if(Qt>>1;E(Xe[Pn],Ut)<0?Qt=Pn+1:pn=Pn}while(QtKs(v(Xe),Ut),y=(Xe,Ut)=>v(Xe)-Ut):(O=v===Ks||v===ec?v:ed,E=v,y=v),{left:B,center:function ue(Xe,Ut,Qt=0,pn=Xe.length){const Pn=B(Xe,Ut,Qt,pn-1);return Pn>Qt&&y(Xe[Pn-1],Ut)>-y(Xe[Pn],Ut)?Pn-1:Pn},right:function G(Xe,Ut,Qt=0,pn=Xe.length){if(Qt>>1;E(Xe[Pn],Ut)<=0?Qt=Pn+1:pn=Pn}while(Qt=_d?10:G>=_c?5:G>=td?2:1;let Xe,Ut,Qt;return B<0?(Qt=Math.pow(10,-B)/ue,Xe=Math.round(v*Qt),Ut=Math.round(O*Qt),Xe/QtO&&--Ut,Qt=-Qt):(Qt=Math.pow(10,B)*ue,Xe=Math.round(v/Qt),Ut=Math.round(O/Qt),Xe*QtO&&--Ut),Ut(v(G=new Date(+G)),G),B.ceil=G=>(v(G=new Date(G-1)),O(G,1),v(G),G),B.round=G=>{const ue=B(G),Xe=B.ceil(G);return G-ue(O(G=new Date(+G),null==ue?1:Math.floor(ue)),G),B.range=(G,ue,Xe)=>{const Ut=[];if(G=B.ceil(G),Xe=null==Xe?1:Math.floor(Xe),!(G0))return Ut;let Qt;do{Ut.push(Qt=new Date(+G)),O(G,Xe),v(G)}while(QtPi(ue=>{if(ue>=ue)for(;v(ue),!G(ue);)ue.setTime(ue-1)},(ue,Xe)=>{if(ue>=ue)if(Xe<0)for(;++Xe<=0;)for(;O(ue,-1),!G(ue););else for(;--Xe>=0;)for(;O(ue,1),!G(ue););}),E&&(B.count=(G,ue)=>(Yn.setTime(+G),gi.setTime(+ue),v(Yn),v(gi),Math.floor(E(Yn,gi))),B.every=G=>(G=Math.floor(G),isFinite(G)&&G>0?G>1?B.filter(y?ue=>y(ue)%G===0:ue=>B.count(0,ue)%G===0):B:null)),B}const Wa=Pi(()=>{},(v,O)=>{v.setTime(+v+O)},(v,O)=>O-v);Wa.every=v=>(v=Math.floor(v),isFinite(v)&&v>0?v>1?Pi(O=>{O.setTime(Math.floor(O/v)*v)},(O,E)=>{O.setTime(+O+E*v)},(O,E)=>(E-O)/v):Wa:null);const La=Pi(v=>{v.setTime(v-v.getMilliseconds())},(v,O)=>{v.setTime(+v+O*ja)},(v,O)=>(O-v)/ja,v=>v.getUTCSeconds()),tr=Pi(v=>{v.setTime(v-v.getMilliseconds()-v.getSeconds()*ja)},(v,O)=>{v.setTime(+v+O*Ti)},(v,O)=>(O-v)/Ti,v=>v.getMinutes()),al=Pi(v=>{v.setUTCSeconds(0,0)},(v,O)=>{v.setTime(+v+O*Ti)},(v,O)=>(O-v)/Ti,v=>v.getUTCMinutes()),go=Pi(v=>{v.setTime(v-v.getMilliseconds()-v.getSeconds()*ja-v.getMinutes()*Ti)},(v,O)=>{v.setTime(+v+O*Ra)},(v,O)=>(O-v)/Ra,v=>v.getHours()),Z1=Pi(v=>{v.setUTCMinutes(0,0,0)},(v,O)=>{v.setTime(+v+O*Ra)},(v,O)=>(O-v)/Ra,v=>v.getUTCHours()),nd=Pi(v=>v.setHours(0,0,0,0),(v,O)=>v.setDate(v.getDate()+O),(v,O)=>(O-v-(O.getTimezoneOffset()-v.getTimezoneOffset())*Ti)/cr,v=>v.getDate()-1),Oo=Pi(v=>{v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCDate(v.getUTCDate()+O)},(v,O)=>(O-v)/cr,v=>v.getUTCDate()-1),Ko=Pi(v=>{v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCDate(v.getUTCDate()+O)},(v,O)=>(O-v)/cr,v=>Math.floor(v/cr));function Br(v){return Pi(O=>{O.setDate(O.getDate()-(O.getDay()+7-v)%7),O.setHours(0,0,0,0)},(O,E)=>{O.setDate(O.getDate()+7*E)},(O,E)=>(E-O-(E.getTimezoneOffset()-O.getTimezoneOffset())*Ti)/De)}const uo=Br(0),bc=Br(1),Il=(Br(2),Br(3),Br(4));function Dt(v){return Pi(O=>{O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-v)%7),O.setUTCHours(0,0,0,0)},(O,E)=>{O.setUTCDate(O.getUTCDate()+7*E)},(O,E)=>(E-O)/De)}Br(5),Br(6);const wt=Dt(0),Ft=Dt(1),On=(Dt(2),Dt(3),Dt(4)),vr=(Dt(5),Dt(6),Pi(v=>{v.setDate(1),v.setHours(0,0,0,0)},(v,O)=>{v.setMonth(v.getMonth()+O)},(v,O)=>O.getMonth()-v.getMonth()+12*(O.getFullYear()-v.getFullYear()),v=>v.getMonth())),Bs=Pi(v=>{v.setUTCDate(1),v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCMonth(v.getUTCMonth()+O)},(v,O)=>O.getUTCMonth()-v.getUTCMonth()+12*(O.getUTCFullYear()-v.getUTCFullYear()),v=>v.getUTCMonth()),Ys=Pi(v=>{v.setMonth(0,1),v.setHours(0,0,0,0)},(v,O)=>{v.setFullYear(v.getFullYear()+O)},(v,O)=>O.getFullYear()-v.getFullYear(),v=>v.getFullYear());Ys.every=v=>isFinite(v=Math.floor(v))&&v>0?Pi(O=>{O.setFullYear(Math.floor(O.getFullYear()/v)*v),O.setMonth(0,1),O.setHours(0,0,0,0)},(O,E)=>{O.setFullYear(O.getFullYear()+E*v)}):null;const sl=Pi(v=>{v.setUTCMonth(0,1),v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCFullYear(v.getUTCFullYear()+O)},(v,O)=>O.getUTCFullYear()-v.getUTCFullYear(),v=>v.getUTCFullYear());function xc(v,O,E,y,B,G){const ue=[[La,1,ja],[La,5,5e3],[La,15,15e3],[La,30,3e4],[G,1,Ti],[G,5,5*Ti],[G,15,15*Ti],[G,30,30*Ti],[B,1,Ra],[B,3,3*Ra],[B,6,6*Ra],[B,12,12*Ra],[y,1,cr],[y,2,2*cr],[E,1,De],[O,1,at],[O,3,3*at],[v,1,Jt]];function Ut(Qt,pn,Pn){const Fn=Math.abs(pn-Qt)/Pn,xi=Wl(([,,qn])=>qn).right(ue,Fn);if(xi===ue.length)return v.every(co(Qt/Jt,pn/Jt,Pn));if(0===xi)return Wa.every(Math.max(co(Qt,pn,Pn),1));const[yi,Ji]=ue[Fn/ue[xi-1][2]isFinite(v=Math.floor(v))&&v>0?Pi(O=>{O.setUTCFullYear(Math.floor(O.getUTCFullYear()/v)*v),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},(O,E)=>{O.setUTCFullYear(O.getUTCFullYear()+E*v)}):null;const[t0,Nm]=xc(sl,Bs,wt,Ko,Z1,al),[K4,n0]=xc(Ys,vr,uo,nd,go,tr);function i0(v){if(0<=v.y&&v.y<100){var O=new Date(-1,v.m,v.d,v.H,v.M,v.S,v.L);return O.setFullYear(v.y),O}return new Date(v.y,v.m,v.d,v.H,v.M,v.S,v.L)}function n1(v){if(0<=v.y&&v.y<100){var O=new Date(Date.UTC(-1,v.m,v.d,v.H,v.M,v.S,v.L));return O.setUTCFullYear(v.y),O}return new Date(Date.UTC(v.y,v.m,v.d,v.H,v.M,v.S,v.L))}function bd(v,O,E){return{y:v,m:O,d:E,H:0,M:0,S:0,L:0}}var L2={"-":"",_:" ",0:"0"},zs=/^\s*\d+/,I2=/^%/,Dh=/[\\^$*+?|[\]().{}]/g;function Xa(v,O,E){var y=v<0?"-":"",B=(y?-v:v)+"",G=B.length;return y+(G[O.toLowerCase(),E]))}function _o(v,O,E){var y=zs.exec(O.slice(E,E+1));return y?(v.w=+y[0],E+y[0].length):-1}function ss(v,O,E){var y=zs.exec(O.slice(E,E+1));return y?(v.u=+y[0],E+y[0].length):-1}function i1(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.U=+y[0],E+y[0].length):-1}function ol(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.V=+y[0],E+y[0].length):-1}function xd(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.W=+y[0],E+y[0].length):-1}function a1(v,O,E){var y=zs.exec(O.slice(E,E+4));return y?(v.y=+y[0],E+y[0].length):-1}function r1(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.y=+y[0]+(+y[0]>68?1900:2e3),E+y[0].length):-1}function R2(v,O,E){var y=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(E,E+6));return y?(v.Z=y[1]?0:-(y[2]+(y[3]||"00")),E+y[0].length):-1}function a0(v,O,E){var y=zs.exec(O.slice(E,E+1));return y?(v.q=3*y[0]-3,E+y[0].length):-1}function s1(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.m=y[0]-1,E+y[0].length):-1}function Mc(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.d=+y[0],E+y[0].length):-1}function O2(v,O,E){var y=zs.exec(O.slice(E,E+3));return y?(v.m=0,v.d=+y[0],E+y[0].length):-1}function r0(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.H=+y[0],E+y[0].length):-1}function Cd(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.M=+y[0],E+y[0].length):-1}function s0(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.S=+y[0],E+y[0].length):-1}function o0(v,O,E){var y=zs.exec(O.slice(E,E+3));return y?(v.L=+y[0],E+y[0].length):-1}function zr(v,O,E){var y=zs.exec(O.slice(E,E+6));return y?(v.L=Math.floor(y[0]/1e3),E+y[0].length):-1}function Ur(v,O,E){var y=I2.exec(O.slice(E,E+1));return y?E+y[0].length:-1}function Ah(v,O,E){var y=zs.exec(O.slice(E));return y?(v.Q=+y[0],E+y[0].length):-1}function Ta(v,O,E){var y=zs.exec(O.slice(E));return y?(v.s=+y[0],E+y[0].length):-1}function sc(v,O){return Xa(v.getDate(),O,2)}function Oc(v,O){return Xa(v.getHours(),O,2)}function o1(v,O){return Xa(v.getHours()%12||12,O,2)}function l1(v,O){return Xa(1+nd.count(Ys(v),v),O,3)}function kl(v,O){return Xa(v.getMilliseconds(),O,3)}function l0(v,O){return kl(v,O)+"000"}function c0(v,O){return Xa(v.getMonth()+1,O,2)}function P2(v,O){return Xa(v.getMinutes(),O,2)}function d0(v,O){return Xa(v.getSeconds(),O,2)}function u0(v){var O=v.getDay();return 0===O?7:O}function Lh(v,O){return Xa(uo.count(Ys(v)-1,v),O,2)}function N2(v){var O=v.getDay();return O>=4||0===O?Il(v):Il.ceil(v)}function Ih(v,O){return v=N2(v),Xa(Il.count(Ys(v),v)+(4===Ys(v).getDay()),O,2)}function F2(v){return v.getDay()}function B2(v,O){return Xa(bc.count(Ys(v)-1,v),O,2)}function Y4(v,O){return Xa(v.getFullYear()%100,O,2)}function Md(v,O){return Xa((v=N2(v)).getFullYear()%100,O,2)}function z2(v,O){return Xa(v.getFullYear()%1e4,O,4)}function c1(v,O){var E=v.getDay();return Xa((v=E>=4||0===E?Il(v):Il.ceil(v)).getFullYear()%1e4,O,4)}function U2(v){var O=v.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+Xa(O/60|0,"0",2)+Xa(O%60,"0",2)}function h0(v,O){return Xa(v.getUTCDate(),O,2)}function kh(v,O){return Xa(v.getUTCHours(),O,2)}function V2(v,O){return Xa(v.getUTCHours()%12||12,O,2)}function Q4(v,O){return Xa(1+Oo.count(sl(v),v),O,3)}function Rh(v,O){return Xa(v.getUTCMilliseconds(),O,3)}function Oh(v,O){return Rh(v,O)+"000"}function Ph(v,O){return Xa(v.getUTCMonth()+1,O,2)}function G2(v,O){return Xa(v.getUTCMinutes(),O,2)}function Nh(v,O){return Xa(v.getUTCSeconds(),O,2)}function H2(v){var O=v.getUTCDay();return 0===O?7:O}function Fh(v,O){return Xa(wt.count(sl(v)-1,v),O,2)}function d1(v){var O=v.getUTCDay();return O>=4||0===O?On(v):On.ceil(v)}function ad(v,O){return v=d1(v),Xa(On.count(sl(v),v)+(4===sl(v).getUTCDay()),O,2)}function Kl(v){return v.getUTCDay()}function j2(v,O){return Xa(Ft.count(sl(v)-1,v),O,2)}function Bh(v,O){return Xa(v.getUTCFullYear()%100,O,2)}function W2(v,O){return Xa((v=d1(v)).getUTCFullYear()%100,O,2)}function $4(v,O){return Xa(v.getUTCFullYear()%1e4,O,4)}function zh(v,O){var E=v.getUTCDay();return Xa((v=E>=4||0===E?On(v):On.ceil(v)).getUTCFullYear()%1e4,O,4)}function u1(){return"+0000"}function Ec(){return"%"}function Pc(v){return+v}function Ya(v){return Math.floor(+v/1e3)}function K2(v){return null===v?NaN:+v}!function Rl(v){(function Th(v){var O=v.dateTime,E=v.date,y=v.time,B=v.periods,G=v.days,ue=v.shortDays,Xe=v.months,Ut=v.shortMonths,Qt=Cc(B),pn=id(B),Pn=Cc(G),Fn=id(G),xi=Cc(ue),yi=id(ue),Ji=Cc(Xe),qn=id(Xe),Gi=Cc(Ut),pa=id(Ut),ta={a:function ls(na){return ue[na.getDay()]},A:function dl(na){return G[na.getDay()]},b:function cs(na){return Ut[na.getMonth()]},B:function or(na){return Xe[na.getMonth()]},c:null,d:sc,e:sc,f:l0,g:Md,G:c1,H:Oc,I:o1,j:l1,L:kl,m:c0,M:P2,p:function Hs(na){return B[+(na.getHours()>=12)]},q:function Ds(na){return 1+~~(na.getMonth()/3)},Q:Pc,s:Ya,S:d0,u:u0,U:Lh,V:Ih,w:F2,W:B2,x:null,X:null,y:Y4,Y:z2,Z:U2,"%":Ec},ga={a:function v2(na){return ue[na.getUTCDay()]},A:function Zc(na){return G[na.getUTCDay()]},b:function Qd(na){return Ut[na.getUTCMonth()]},B:function $d(na){return Xe[na.getUTCMonth()]},c:null,d:h0,e:h0,f:Oh,g:W2,G:zh,H:kh,I:V2,j:Q4,L:Rh,m:Ph,M:G2,p:function Fo(na){return B[+(na.getUTCHours()>=12)]},q:function Zd(na){return 1+~~(na.getUTCMonth()/3)},Q:Pc,s:Ya,S:Nh,u:H2,U:Fh,V:ad,w:Kl,W:j2,x:null,X:null,y:Bh,Y:$4,Z:u1,"%":Ec},Na={a:function xr(na,ka,Qa){var Ri=xi.exec(ka.slice(Qa));return Ri?(na.w=yi.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},A:function jr(na,ka,Qa){var Ri=Pn.exec(ka.slice(Qa));return Ri?(na.w=Fn.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},b:function Da(na,ka,Qa){var Ri=Gi.exec(ka.slice(Qa));return Ri?(na.m=pa.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},B:function Or(na,ka,Qa){var Ri=Ji.exec(ka.slice(Qa));return Ri?(na.m=qn.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},c:function nr(na,ka,Qa){return Rr(na,O,ka,Qa)},d:Mc,e:Mc,f:zr,g:r1,G:a1,H:r0,I:r0,j:O2,L:o0,m:s1,M:Cd,p:function Po(na,ka,Qa){var Ri=Qt.exec(ka.slice(Qa));return Ri?(na.p=pn.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},q:a0,Q:Ah,s:Ta,S:s0,u:ss,U:i1,V:ol,w:_o,W:xd,x:function No(na,ka,Qa){return Rr(na,E,ka,Qa)},X:function bs(na,ka,Qa){return Rr(na,y,ka,Qa)},y:r1,Y:a1,Z:R2,"%":Ur};function qi(na,ka){return function(Qa){var $o,Ca,Ls,Ri=[],As=-1,Cr=0,ul=na.length;for(Qa instanceof Date||(Qa=new Date(+Qa));++As53)return null;"w"in Ri||(Ri.w=1),"Z"in Ri?(ul=(Cr=n1(bd(Ri.y,0,1))).getUTCDay(),Cr=ul>4||0===ul?Ft.ceil(Cr):Ft(Cr),Cr=Oo.offset(Cr,7*(Ri.V-1)),Ri.y=Cr.getUTCFullYear(),Ri.m=Cr.getUTCMonth(),Ri.d=Cr.getUTCDate()+(Ri.w+6)%7):(ul=(Cr=i0(bd(Ri.y,0,1))).getDay(),Cr=ul>4||0===ul?bc.ceil(Cr):bc(Cr),Cr=nd.offset(Cr,7*(Ri.V-1)),Ri.y=Cr.getFullYear(),Ri.m=Cr.getMonth(),Ri.d=Cr.getDate()+(Ri.w+6)%7)}else("W"in Ri||"U"in Ri)&&("w"in Ri||(Ri.w="u"in Ri?Ri.u%7:"W"in Ri?1:0),ul="Z"in Ri?n1(bd(Ri.y,0,1)).getUTCDay():i0(bd(Ri.y,0,1)).getDay(),Ri.m=0,Ri.d="W"in Ri?(Ri.w+6)%7+7*Ri.W-(ul+5)%7:Ri.w+7*Ri.U-(ul+6)%7);return"Z"in Ri?(Ri.H+=Ri.Z/100|0,Ri.M+=Ri.Z%100,n1(Ri)):i0(Ri)}}function Rr(na,ka,Qa,Ri){for(var $o,Ca,As=0,Cr=ka.length,ul=Qa.length;As=ul)return-1;if(37===($o=ka.charCodeAt(As++))){if($o=ka.charAt(As++),!(Ca=Na[$o in L2?ka.charAt(As++):$o])||(Ri=Ca(na,Qa,Ri))<0)return-1}else if($o!=Qa.charCodeAt(Ri++))return-1}return Ri}return ta.x=qi(E,ta),ta.X=qi(y,ta),ta.c=qi(O,ta),ga.x=qi(E,ga),ga.X=qi(y,ga),ga.c=qi(O,ga),{format:function(na){var ka=qi(na+="",ta);return ka.toString=function(){return na},ka},parse:function(na){var ka=kr(na+="",!1);return ka.toString=function(){return na},ka},utcFormat:function(na){var ka=qi(na+="",ga);return ka.toString=function(){return na},ka},utcParse:function(na){var ka=kr(na+="",!0);return ka.toString=function(){return na},ka}}})(v)}({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 Gh=Wl(Ks).right,p0=(Wl(K2),Gh);function Hh(v,O){return v=+v,O=+O,function(E){return Math.round(v*(1-E)+O*E)}}function Wh(v){return+v}var qa=[0,1];function wc(v){return v}function g0(v,O){return(O-=v=+v)?function(E){return(E-v)/O}:function jh(v){return function(){return v}}(isNaN(O)?NaN:.5)}function Ed(v,O,E){var y=v[0],B=v[1],G=O[0],ue=O[1];return BO&&(E=v,v=O,O=E),function(y){return Math.max(v,Math.min(O,y))}}(v[0],v[Fn-1])),Xe=Fn>2?Xh:Ed,Ut=Qt=null,Pn}function Pn(Fn){return null==Fn||isNaN(Fn=+Fn)?G:(Ut||(Ut=Xe(v.map(y),O,E)))(y(ue(Fn)))}return Pn.invert=function(Fn){return ue(B((Qt||(Qt=Xe(O,v.map(y),lr)))(Fn)))},Pn.domain=function(Fn){return arguments.length?(v=Array.from(Fn,Wh),pn()):v.slice()},Pn.range=function(Fn){return arguments.length?(O=Array.from(Fn),pn()):O.slice()},Pn.rangeRound=function(Fn){return O=Array.from(Fn),E=Hh,pn()},Pn.clamp=function(Fn){return arguments.length?(ue=!!Fn||wc,pn()):ue!==wc},Pn.interpolate=function(Fn){return arguments.length?(E=Fn,pn()):E},Pn.unknown=function(Fn){return arguments.length?(G=Fn,Pn):G},function(Fn,xi){return y=Fn,B=xi,pn()}}()(wc,wc)}function rd(v,O){switch(arguments.length){case 0:break;case 1:this.range(v);break;default:this.range(O).domain(v)}return this}var Yo,Yh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Nc(v){if(!(O=Yh.exec(v)))throw new Error("invalid format: "+v);var O;return new Sc({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 Sc(v){this.fill=void 0===v.fill?" ":v.fill+"",this.align=void 0===v.align?">":v.align+"",this.sign=void 0===v.sign?"-":v.sign+"",this.symbol=void 0===v.symbol?"":v.symbol+"",this.zero=!!v.zero,this.width=void 0===v.width?void 0:+v.width,this.comma=!!v.comma,this.precision=void 0===v.precision?void 0:+v.precision,this.trim=!!v.trim,this.type=void 0===v.type?"":v.type+""}function p1(v,O){if(!isFinite(v)||0===v)return null;var E=(v=O?v.toExponential(O-1):v.toExponential()).indexOf("e"),y=v.slice(0,E);return[y.length>1?y[0]+y.slice(2):y,+v.slice(E+1)]}function Tc(v){return(v=p1(Math.abs(v)))?v[1]:NaN}function Fc(v,O){var E=p1(v,O);if(!E)return v+"";var y=E[0],B=E[1];return B<0?"0."+new Array(-B).join("0")+y:y.length>B+1?y.slice(0,B+1)+"."+y.slice(B+1):y+new Array(B-y.length+2).join("0")}Nc.prototype=Sc.prototype,Sc.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 g1={"%":(v,O)=>(100*v).toFixed(O),b:v=>Math.round(v).toString(2),c:v=>v+"",d:function $2(v){return Math.abs(v=Math.round(v))>=1e21?v.toLocaleString("en").replace(/,/g,""):v.toString(10)},e:(v,O)=>v.toExponential(O),f:(v,O)=>v.toFixed(O),g:(v,O)=>v.toPrecision(O),o:v=>Math.round(v).toString(8),p:(v,O)=>Fc(100*v,O),r:Fc,s:function sd(v,O){var E=p1(v,O);if(!E)return Yo=void 0,v.toPrecision(O);var y=E[0],B=E[1],G=B-(Yo=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,ue=y.length;return G===ue?y:G>ue?y+new Array(G-ue+1).join("0"):G>0?y.slice(0,G)+"."+y.slice(G):"0."+new Array(1-G).join("0")+p1(v,Math.max(0,O+G-1))[0]},X:v=>Math.round(v).toString(16).toUpperCase(),x:v=>Math.round(v).toString(16)};function Qs(v){return v}var Ld,y0,$h,od=Array.prototype.map,q2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Jh(v){var O=v.domain;return v.ticks=function(E){var y=O();return function vd(v,O,E){if(!((E=+E)>0))return[];if((v=+v)===(O=+O))return[v];const y=O=B))return[];const Xe=G-B+1,Ut=new Array(Xe);if(y)if(ue<0)for(let Qt=0;Qt0;){if((Qt=nc(ue,Xe,E))===Ut)return y[B]=ue,y[G]=Xe,O(y);if(Qt>0)ue=Math.floor(ue/Qt)*Qt,Xe=Math.ceil(Xe/Qt)*Qt;else{if(!(Qt<0))break;ue=Math.ceil(ue*Qt)/Qt,Xe=Math.floor(Xe*Qt)/Qt}Ut=Qt}return v},v}function cc(){var v=f1();return v.copy=function(){return function wd(v,O){return O.domain(v.domain()).range(v.range()).interpolate(v.interpolate()).clamp(v.clamp()).unknown(v.unknown())}(v,cc())},rd.apply(v,arguments),Jh(v)}function eu(v,O,E){v=+v,O=+O,E=(B=arguments.length)<2?(O=v,v=0,1):B<3?1:+E;for(var y=-1,B=0|Math.max(0,Math.ceil((O-v)/E)),G=new Array(B);++y0&&Xe>0&&(Ut+Xe+1>y&&(Xe=Math.max(1,y-Ut)),G.push(E.substring(B-=Xe,B+Xe)),!((Ut+=Xe+1)>y));)Xe=v[ue=(ue+1)%v.length];return G.reverse().join(O)}}(od.call(v.grouping,Number),v.thousands+""),E=void 0===v.currency?"":v.currency[0]+"",y=void 0===v.currency?"":v.currency[1]+"",B=void 0===v.decimal?".":v.decimal+"",G=void 0===v.numerals?Qs:function v0(v){return function(O){return O.replace(/[0-9]/g,function(E){return v[+E]})}}(od.call(v.numerals,String)),ue=void 0===v.percent?"%":v.percent+"",Xe=void 0===v.minus?"\u2212":v.minus+"",Ut=void 0===v.nan?"NaN":v.nan+"";function Qt(Pn,Fn){var xi=(Pn=Nc(Pn)).fill,yi=Pn.align,Ji=Pn.sign,qn=Pn.symbol,Gi=Pn.zero,pa=Pn.width,ta=Pn.comma,ga=Pn.precision,Na=Pn.trim,qi=Pn.type;"n"===qi?(ta=!0,qi="g"):g1[qi]||(void 0===ga&&(ga=12),Na=!0,qi="g"),(Gi||"0"===xi&&"="===yi)&&(Gi=!0,xi="0",yi="=");var kr=(Fn&&void 0!==Fn.prefix?Fn.prefix:"")+("$"===qn?E:"#"===qn&&/[boxX]/.test(qi)?"0"+qi.toLowerCase():""),Rr=("$"===qn?y:/[%p]/.test(qi)?ue:"")+(Fn&&void 0!==Fn.suffix?Fn.suffix:""),Po=g1[qi],xr=/[defgprs%]/.test(qi);function jr(Da){var No,bs,ls,Or=kr,nr=Rr;if("c"===qi)nr=Po(Da)+nr,Da="";else{var dl=(Da=+Da)<0||1/Da<0;if(Da=isNaN(Da)?Ut:Po(Math.abs(Da),ga),Na&&(Da=function Qh(v){e:for(var B,O=v.length,E=1,y=-1;E0&&(y=0)}return y>0?v.slice(0,y)+v.slice(B+1):v}(Da)),dl&&0==+Da&&"+"!==Ji&&(dl=!1),Or=(dl?"("===Ji?Ji:Xe:"-"===Ji||"("===Ji?"":Ji)+Or,nr=("s"!==qi||isNaN(Da)||void 0===Yo?"":q2[8+Yo/3])+nr+(dl&&"("===Ji?")":""),xr)for(No=-1,bs=Da.length;++No(ls=Da.charCodeAt(No))||ls>57){nr=(46===ls?B+Da.slice(No+1):Da.slice(No))+nr,Da=Da.slice(0,No);break}}ta&&!Gi&&(Da=O(Da,1/0));var cs=Or.length+Da.length+nr.length,or=cs>1)+Or+Da+nr+or.slice(cs);break;default:Da=or+Or+Da+nr}return G(Da)}return ga=void 0===ga?6:/[gprs]/.test(qi)?Math.max(1,Math.min(21,ga)):Math.max(0,Math.min(20,ga)),jr.toString=function(){return Pn+""},jr}return{format:Qt,formatPrefix:function pn(Pn,Fn){var xi=3*Math.max(-8,Math.min(8,Math.floor(Tc(Fn)/3))),yi=Math.pow(10,-xi),Ji=Qt(((Pn=Nc(Pn)).type="f",Pn),{suffix:q2[8+xi/3]});return function(qn){return Ji(yi*qn)}}}}(v),y0=Ld.format,$h=Ld.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class tu extends Map{constructor(O,E=iu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),null!=O)for(const[y,B]of O)this.set(y,B)}get(O){return super.get(ld(this,O))}has(O){return super.has(ld(this,O))}set(O,E){return super.set(function Bc({_intern:v,_key:O},E){const y=O(E);return v.has(y)?v.get(y):(v.set(y,E),E)}(this,O),E)}delete(O){return super.delete(function v1({_intern:v,_key:O},E){const y=O(E);return v.has(y)&&(E=v.get(y),v.delete(y)),E}(this,O))}}function ld({_intern:v,_key:O},E){const y=O(E);return v.has(y)?v.get(y):E}function iu(v){return null!==v&&"object"==typeof v?v.valueOf():v}Set;const x0=Symbol("implicit");function y1(){var v=new tu,O=[],E=[],y=x0;function B(G){let ue=v.get(G);if(void 0===ue){if(y!==x0)return y;v.set(G,ue=O.push(G)-1)}return E[ue%E.length]}return B.domain=function(G){if(!arguments.length)return O.slice();O=[],v=new tu;for(const ue of G)v.has(ue)||v.set(ue,O.push(ue)-1);return B},B.range=function(G){return arguments.length?(E=Array.from(G),B):E.slice()},B.unknown=function(G){return arguments.length?(y=G,B):y},B.copy=function(){return y1(O,E).unknown(y)},rd.apply(B,arguments),B}function zc(){var G,ue,v=y1().unknown(void 0),O=v.domain,E=v.range,y=0,B=1,Xe=!1,Ut=0,Qt=0,pn=.5;function Pn(){var Fn=O().length,xi=B=1)return+E(v[y-1],y-1,v);var y,B=(y-1)*O,G=Math.floor(B),ue=+E(v[G],G,v);return ue+(+E(v[G+1],G+1,v)-ue)*(B-G)}}function kd(){var y,v=[],O=[],E=[];function B(){var ue=0,Xe=Math.max(1,O.length);for(E=new Array(Xe-1);++ue0?E[Xe-1]:v[0],Xe({model:v});function a3(v,O){}function yu(v,O){if(1&v&&(i.j41(0,"span"),i.DNE(1,a3,0,0,"ng-template",5),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngTemplateOutlet",E.template)("ngTemplateOutletContext",i.eq3(2,vu,E.context))}}function k0(v,O){if(1&v&&i.nrm(0,"span",6),2&v){const E=i.XpG();i.Y8G("innerHTML",E.title,i.npT)}}function R0(v,O){if(1&v&&(i.j41(0,"header",4)(1,"span",5),i.EFF(2),i.k0s()()),2&v){const E=i.XpG();i.R7$(2),i.JRh(E.title)}}function O0(v,O){if(1&v){const E=i.RV6();i.j41(0,"li",6)(1,"ngx-charts-legend-entry",7),i.bIt("select",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.labelClick.emit(B))})("activate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.activate(B))})("deactivate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.deactivate(B))}),i.k0s()()}if(2&v){const E=O.$implicit,y=i.XpG();i.R7$(),i.Y8G("label",E.label)("formattedLabel",E.formattedLabel)("color",E.color)("isActive",y.isActive(E))}}const P0=["*"];function uf(v,O){if(1&v&&i.nrm(0,"ngx-charts-scale-legend",4),2&v){const E=i.XpG();i.Y8G("horizontal",E.legendOptions&&E.legendOptions.position===E.LegendPosition.Below)("valueRange",E.legendOptions.domain)("colors",E.legendOptions.colors)("height",E.view[1])("width",E.legendWidth)}}function hf(v,O){if(1&v){const E=i.RV6();i.j41(0,"ngx-charts-legend",5),i.bIt("labelClick",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.legendLabelClick.emit(B))})("labelActivate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.legendLabelActivate.emit(B))})("labelDeactivate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.legendLabelDeactivate.emit(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("horizontal",E.legendOptions&&E.legendOptions.position===E.LegendPosition.Below)("data",E.legendOptions.domain)("title",E.legendOptions.title)("colors",E.legendOptions.colors)("height",E.view[1])("width",E.legendWidth)("activeEntries",E.activeEntries)}}const ff=["ngx-charts-axis-label",""],bu=["ticksel"],N0=["ngx-charts-x-axis-ticks",""];function mf(v,O){1&v&&(g.qSk(),i.eu8(0))}function M1(v,O){if(1&v&&(g.qSk(),i.j41(0,"tspan",12),i.EFF(1),i.k0s()),2&v){const E=O.$implicit;i.BMQ("y",12*O.index),i.R7$(),i.SpI(" ",E," ")}}function pf(v,O){if(1&v&&(g.qSk(),i.qex(0),i.DNE(1,M1,2,2,"tspan",11),i.bVm()),2&v){const E=O.ngIf;i.R7$(),i.Y8G("ngForOf",E)}}function E1(v,O){if(1&v&&i.DNE(0,pf,2,1,"ng-container",8),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.Y8G("ngIf",y.tickChunks(E))}}function w1(v,O){if(1&v&&i.EFF(0),2&v){const E=i.XpG().ngIf,y=i.XpG(2);i.SpI(" ",y.tickTrim(E)," ")}}function r3(v,O){if(1&v&&(g.qSk(),i.qex(0),i.j41(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",9),i.DNE(4,mf,1,0,"ng-container",10),i.k0s(),i.DNE(5,E1,1,1,"ng-template",null,1,i.C5r)(7,w1,1,1,"ng-template",null,2,i.C5r),i.bVm()),2&v){const E=O.ngIf,y=i.sdS(6),B=i.sdS(8),G=i.XpG(2);i.R7$(2),i.JRh(E),i.R7$(),i.BMQ("text-anchor",G.textAnchor)("transform",G.textTransform),i.R7$(),i.Y8G("ngIf",G.isWrapTicksSupported)("ngIfThen",y)("ngIfElse",B)}}function xu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",7),i.DNE(1,r3,9,6,"ng-container",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.tickTransform(E)),i.R7$(),i.Y8G("ngIf",y.tickFormat(E))}}function Od(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.nrm(1,"line",13),i.k0s()),2&v){const E=i.XpG(2);i.BMQ("transform",E.gridLineTransform()),i.R7$(),i.BMQ("y1",-E.gridLineHeight)}}function S1(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Od,2,2,"g",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.tickTransform(E)),i.R7$(),i.Y8G("ngIf",y.showGridLines)}}function gf(v,O){if(1&v&&(g.qSk(),i.nrm(0,"path",14)),2&v){const E=i.XpG();i.BMQ("d",E.referenceAreaPath)("transform",E.gridLineTransform())}}function F0(v,O){if(1&v&&(g.qSk(),i.j41(0,"g")(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",17),i.EFF(4),i.k0s()()),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.R7$(2),i.JRh(y.tickTrim(y.tickFormat(E.value))),i.R7$(2),i.SpI(" ",E.name," ")}}function _f(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.nrm(1,"line",16),i.DNE(2,F0,5,2,"g",8),i.k0s()),2&v){const E=i.XpG().$implicit,y=i.XpG();i.BMQ("transform",y.transform(E.value)),i.R7$(),i.BMQ("y2",25+y.gridLineHeight)("transform",y.gridLineTransform()),i.R7$(),i.Y8G("ngIf",y.showRefLabels)}}function T1(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",15),i.DNE(1,_f,3,4,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngIf",E.showRefLines)}}const vf=["ngx-charts-x-axis",""];function dc(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.emitTicksHeight(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("trimTicks",E.trimTicks)("rotateTicks",E.rotateTicks)("maxTickLength",E.maxTickLength)("tickFormatting",E.tickFormatting)("tickArguments",E.tickArguments)("tickStroke",E.tickStroke)("scale",E.xScale)("orient",E.xOrient)("showGridLines",E.showGridLines)("gridLineHeight",E.dims.height)("referenceLines",E.referenceLines)("showRefLines",E.showRefLines)("showRefLabels",E.showRefLabels)("width",E.dims.width)("tickValues",E.ticks)("wrapTicks",E.wrapTicks)}}function Gc(v,O){if(1&v&&(g.qSk(),i.nrm(0,"g",3)),2&v){const E=i.XpG();i.Y8G("label",E.labelText)("offset",E.labelOffset)("orient",E.orientation.Bottom)("height",E.dims.height)("width",E.dims.width)}}const s3=["ngx-charts-y-axis-ticks",""];function o3(v,O){1&v&&(g.qSk(),i.eu8(0))}function Pd(v,O){if(1&v&&(g.qSk(),i.j41(0,"tspan",13),i.EFF(1),i.k0s()),2&v){const E=O.$implicit,y=O.index,B=i.XpG(6);i.BMQ("y",y*(8+B.tickSpacing)),i.R7$(),i.SpI(" ",E," ")}}function yf(v,O){if(1&v&&(g.qSk(),i.qex(0),i.DNE(1,Pd,2,2,"tspan",12),i.bVm()),2&v){const E=i.XpG().ngIf;i.R7$(),i.Y8G("ngForOf",E)}}function Cu(v,O){if(1&v&&(g.qSk(),i.qex(0),i.DNE(1,yf,2,1,"ng-container",11),i.bVm()),2&v){const E=O.ngIf;i.XpG(2);const y=i.sdS(8);i.R7$(),i.Y8G("ngIf",E.length>1)("ngIfElse",y)}}function Mu(v,O){if(1&v&&i.DNE(0,Cu,2,2,"ng-container",8),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.Y8G("ngIf",y.tickChunks(E))}}function Eu(v,O){if(1&v&&i.EFF(0),2&v){const E=i.XpG().ngIf,y=i.XpG(2);i.SpI(" ",y.tickTrim(E)," ")}}function bf(v,O){if(1&v&&(g.qSk(),i.qex(0),i.j41(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",9),i.DNE(4,o3,1,0,"ng-container",10),i.k0s(),i.DNE(5,Mu,1,1,"ng-template",null,1,i.C5r)(7,Eu,1,1,"ng-template",null,2,i.C5r),i.bVm()),2&v){const E=O.ngIf,y=i.sdS(6),B=i.sdS(8),G=i.XpG(2);i.R7$(2),i.JRh(E),i.R7$(),i.xc7("font-size","12px"),i.BMQ("dy",G.dy)("x",G.x1)("y",G.y1)("text-anchor",G.textAnchor),i.R7$(),i.Y8G("ngIf",G.wrapTicks)("ngIfThen",y)("ngIfElse",B)}}function wu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",7),i.DNE(1,bf,9,10,"ng-container",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.transform(E)),i.R7$(),i.Y8G("ngIf",y.tickFormat(E))}}function xf(v,O){if(1&v&&(g.qSk(),i.nrm(0,"path",14)),2&v){const E=i.XpG();i.BMQ("d",E.referenceAreaPath)("transform",E.gridLineTransform())}}function Su(v,O){if(1&v&&(g.qSk(),i.nrm(0,"line",16)),2&v){const E=i.XpG(3);i.BMQ("x2",E.gridLineWidth)}}function Cf(v,O){if(1&v&&(g.qSk(),i.nrm(0,"line",16)),2&v){const E=i.XpG(3);i.BMQ("x2",-E.gridLineWidth)}}function B0(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Su,1,1,"line",15)(2,Cf,1,1,"line",15),i.k0s()),2&v){const E=i.XpG(2);i.BMQ("transform",E.gridLineTransform()),i.R7$(),i.Y8G("ngIf",E.orient===E.Orientation.Left),i.R7$(),i.Y8G("ngIf",E.orient===E.Orientation.Right)}}function Fm(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,B0,3,3,"g",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.transform(E)),i.R7$(),i.Y8G("ngIf",y.showGridLines)}}function Tu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g")(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",19),i.EFF(4),i.k0s()()),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.R7$(2),i.JRh(y.tickTrim(y.tickFormat(E.value))),i.R7$(),i.BMQ("dy",y.dy)("y",-6)("x",y.gridLineWidth)("text-anchor",y.textAnchor),i.R7$(),i.SpI(" ",E.name," ")}}function l3(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.nrm(1,"line",18),i.DNE(2,Tu,5,6,"g",8),i.k0s()),2&v){const E=i.XpG().$implicit,y=i.XpG();i.BMQ("transform",y.transform(E.value)),i.R7$(),i.BMQ("x2",y.gridLineWidth),i.R7$(),i.Y8G("ngIf",y.showRefLabels)}}function z0(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",17),i.DNE(1,l3,3,3,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngIf",E.showRefLines)}}const U0=["ngx-charts-y-axis",""];function ho(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.emitTicksWidth(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("trimTicks",E.trimTicks)("maxTickLength",E.maxTickLength)("tickFormatting",E.tickFormatting)("tickArguments",E.tickArguments)("tickValues",E.ticks)("tickStroke",E.tickStroke)("scale",E.yScale)("orient",E.yOrient)("showGridLines",E.showGridLines)("gridLineWidth",E.dims.width)("referenceLines",E.referenceLines)("showRefLines",E.showRefLines)("showRefLabels",E.showRefLabels)("height",E.dims.height)("wrapTicks",E.wrapTicks)}}function Du(v,O){if(1&v&&(g.qSk(),i.nrm(0,"g",3)),2&v){const E=i.XpG();i.Y8G("label",E.labelText)("offset",E.labelOffset)("orient",E.yOrient)("height",E.dims.height)("width",E.dims.width)}}const Mf=["ngx-charts-svg-linear-gradient",""];function cd(v,O){if(1&v&&(g.qSk(),i.nrm(0,"stop")),2&v){const E=O.$implicit;i.xc7("stop-color",E.color)("stop-opacity",E.opacity),i.BMQ("offset",E.offset+"%")}}const ku=["ngx-charts-grid-panel",""],Ru=["ngx-charts-grid-panel-series",""];function Hc(v,O){if(1&v&&(g.qSk(),i.nrm(0,"g",1)),2&v){const E=O.$implicit;i.AVh("grid-panel",!0)("odd","odd"===E.class)("even","even"===E.class),i.Y8G("height",E.height)("width",E.width)("x",E.x)("y",E.y)}}const Lf=["tooltipTemplate"],ud=(v,O)=>[v,O],Nu=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .node,.ngx-charts .link,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .node.active,.ngx-charts .node:hover,.ngx-charts .link.active,.ngx-charts .link:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .node:focus,.ngx-charts .link:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .node.hidden,.ngx-charts .link.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",Nf=["ngx-charts-bar",""];function Ff(v,O){if(1&v&&(g.qSk(),i.j41(0,"defs"),i.nrm(1,"g",2),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("orientation",E.orientation)("name",E.gradientId)("stops",E.gradientStops)}}const Bf=["ngx-charts-bar-label",""],q0=["ngx-charts-series-vertical",""];function e2(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("select",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.onClick(B))})("activate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.activate.emit(B))})("deactivate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.deactivate.emit(B))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("@animationState","active")("@.disabled",!y.animations)("width",E.width)("height",E.height)("x",E.x)("y",E.y)("fill",E.color)("stops",E.gradientStops)("data",E.data)("orientation",y.barOrientation.Vertical)("roundEdges",E.roundEdges)("gradient",y.gradient)("ariaLabel",E.ariaLabel)("isActive",y.isActive(E.data))("tooltipDisabled",y.tooltipDisabled)("tooltipPlacement",y.tooltipPlacement)("tooltipType",y.tooltipType)("tooltipTitle",y.tooltipTemplate?void 0:E.tooltipText)("tooltipTemplate",y.tooltipTemplate)("tooltipContext",E.data)("noBarWhenZero",y.noBarWhenZero)("animations",y.animations)}}function Vu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,e2,1,22,"g",1),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.bars)("ngForTrackBy",E.trackBy)}}function y3(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("select",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.onClick(B))})("activate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.activate.emit(B))})("deactivate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.deactivate.emit(B))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("width",E.width)("height",E.height)("x",E.x)("y",E.y)("fill",E.color)("stops",E.gradientStops)("data",E.data)("orientation",y.barOrientation.Vertical)("roundEdges",E.roundEdges)("gradient",y.gradient)("ariaLabel",E.ariaLabel)("isActive",y.isActive(E.data))("tooltipDisabled",y.tooltipDisabled)("tooltipPlacement",y.tooltipPlacement)("tooltipType",y.tooltipType)("tooltipTitle",y.tooltipTemplate?void 0:E.tooltipText)("tooltipTemplate",y.tooltipTemplate)("tooltipContext",E.data)("noBarWhenZero",y.noBarWhenZero)("animations",y.animations)}}function b3(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,y3,1,20,"g",1),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.bars)("ngForTrackBy",E.trackBy)}}function Gu(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",4),i.bIt("dimensionsChanged",function(B){const G=g.eBV(E).index,ue=i.XpG(2);return g.Njj(ue.dataLabelHeightChanged.emit({size:B,index:G}))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("barX",E.x)("barY",E.y)("barWidth",E.width)("barHeight",E.height)("value",E.total)("valueFormatting",y.dataLabelFormatting)("orientation",y.barOrientation.Vertical)}}function Hu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Gu,1,7,"g",3),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.barsForDataLabels)("ngForTrackBy",E.trackDataLabelBy)}}function ju(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",5),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateXAxisHeight(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("xScale",E.xScale)("dims",E.dims)("showGridLines",E.showGridLines)("showLabel",E.showXAxisLabel)("labelText",E.xAxisLabel)("trimTicks",E.trimXAxisTicks)("rotateTicks",E.rotateXAxisTicks)("maxTickLength",E.maxXAxisTickLength)("tickFormatting",E.xAxisTickFormatting)("ticks",E.xAxisTicks)("xAxisOffset",E.dataLabelMaxHeight.negative)("wrapTicks",E.wrapTicks)}}function x3(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",6),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateYAxisWidth(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("yScale",E.yScale)("dims",E.dims)("showGridLines",E.showGridLines)("showLabel",E.showYAxisLabel)("labelText",E.yAxisLabel)("trimTicks",E.trimYAxisTicks)("maxTickLength",E.maxYAxisTickLength)("tickFormatting",E.yAxisTickFormatting)("ticks",E.yAxisTicks)("referenceLines",E.referenceLines)("showRefLines",E.showRefLines)("showRefLabels",E.showRefLabels)("wrapTicks",E.wrapTicks)}}function Wu(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",6),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateXAxisHeight(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("xScale",E.groupScale)("dims",E.dims)("showLabel",E.showXAxisLabel)("labelText",E.xAxisLabel)("trimTicks",E.trimXAxisTicks)("rotateTicks",E.rotateXAxisTicks)("maxTickLength",E.maxXAxisTickLength)("tickFormatting",E.xAxisTickFormatting)("ticks",E.xAxisTicks)("xAxisOffset",E.dataLabelMaxHeight.negative)("wrapTicks",E.wrapTicks)}}function Xf(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",7),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateYAxisWidth(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("yScale",E.valueScale)("dims",E.dims)("showGridLines",E.showGridLines)("showLabel",E.showYAxisLabel)("labelText",E.yAxisLabel)("trimTicks",E.trimYAxisTicks)("maxTickLength",E.maxYAxisTickLength)("tickFormatting",E.yAxisTickFormatting)("ticks",E.yAxisTicks)("wrapTicks",E.wrapTicks)}}function Kf(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",9),i.bIt("select",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onClick(B,G))})("activate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onActivate(B,G))})("deactivate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onDeactivate(B,G))})("dataLabelHeightChanged",function(B){const G=g.eBV(E).index,ue=i.XpG(2);return g.Njj(ue.onDataLabelMaxHeightChanged(B,G))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("@animationState","active")("activeEntries",y.activeEntries)("xScale",y.innerScale)("yScale",y.valueScale)("colors",y.colors)("series",E.series)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("seriesName",E.name)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero),i.BMQ("transform",y.groupTransform(E))}}function Yf(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Kf,1,17,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.results)("ngForTrackBy",E.trackBy)}}function Xu(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",9),i.bIt("select",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onClick(B,G))})("activate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onActivate(B,G))})("deactivate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onDeactivate(B,G))})("dataLabelHeightChanged",function(B){const G=g.eBV(E).index,ue=i.XpG(2);return g.Njj(ue.onDataLabelMaxHeightChanged(B,G))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("activeEntries",y.activeEntries)("xScale",y.innerScale)("yScale",y.valueScale)("colors",y.colors)("series",E.series)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("seriesName",E.name)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero),i.BMQ("transform",y.groupTransform(E))}}function Ku(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Xu,1,16,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.results)("ngForTrackBy",E.trackBy)}}function o2(v,O,E){E=E||{};let y,B,G,ue=null,Xe=0;function Ut(){Xe=!1===E.leading?0:+new Date,ue=null,G=v.apply(y,B)}return function(){const Qt=+new Date;!Xe&&!1===E.leading&&(Xe=Qt);const pn=O-(Qt-Xe);return y=this,B=arguments,pn<=0?(clearTimeout(ue),ue=null,Xe=Qt,G=v.apply(y,B)):!ue&&!1!==E.trailing&&(ue=setTimeout(Ut,pn)),G}}function rp(v,O){return function(y,B,G){return{configurable:!0,enumerable:G.enumerable,get:function(){return Object.defineProperty(this,B,{configurable:!0,enumerable:G.enumerable,value:o2(G.value,v,O)}),this[B]}}}}var Ua=function(v){return v.Top="top",v.Bottom="bottom",v.Left="left",v.Right="right",v.Center="center",v}(Ua||{});function T3(v,O,E){return E===Ua.Top?v.top-7:E===Ua.Bottom?v.top+v.height-O.height+7:E===Ua.Center?v.top+v.height/2-O.height/2:void 0}function i4(v,O,E){return E===Ua.Left?v.left-7:E===Ua.Right?v.left+v.width-O.width+7:E===Ua.Center?v.left+v.width/2-O.width/2:void 0}class Qo{static calculateVerticalAlignment(O,E,y){let B=T3(O,E,y);return B+E.height>window.innerHeight&&(B=window.innerHeight-E.height),B}static calculateVerticalCaret(O,E,y,B){let G;B===Ua.Top&&(G=O.height/2-y.height/2+7),B===Ua.Bottom&&(G=E.height-O.height/2-y.height/2-7),B===Ua.Center&&(G=E.height/2-y.height/2);const ue=T3(O,E,B);return ue+E.height>window.innerHeight&&(G+=ue+E.height-window.innerHeight),G}static calculateHorizontalAlignment(O,E,y){let B=i4(O,E,y);return B+E.width>window.innerWidth&&(B=window.innerWidth-E.width),B}static calculateHorizontalCaret(O,E,y,B){let G;B===Ua.Left&&(G=O.width/2-y.width/2+7),B===Ua.Right&&(G=E.width-O.width/2-y.width/2-7),B===Ua.Center&&(G=E.width/2-y.width/2);const ue=i4(O,E,B);return ue+E.width>window.innerWidth&&(G+=ue+E.width-window.innerWidth),G}static shouldFlip(O,E,y,B){let G=!1;return y===Ua.Right&&O.left+O.width+E.width+B>window.innerWidth&&(G=!0),y===Ua.Left&&O.left-E.width-B<0&&(G=!0),y===Ua.Top&&O.top-E.height-B<0&&(G=!0),y===Ua.Bottom&&O.top+O.height+E.height+B>window.innerHeight&&(G=!0),G}static positionCaret(O,E,y,B,G){let ue=0,Xe=0;return O===Ua.Right?(Xe=-7,ue=Qo.calculateVerticalCaret(y,E,B,G)):O===Ua.Left?(Xe=E.width,ue=Qo.calculateVerticalCaret(y,E,B,G)):O===Ua.Top?(ue=E.height,Xe=Qo.calculateHorizontalCaret(y,E,B,G)):O===Ua.Bottom&&(ue=-7,Xe=Qo.calculateHorizontalCaret(y,E,B,G)),{top:ue,left:Xe}}static positionContent(O,E,y,B,G){let ue=0,Xe=0;return O===Ua.Right?(Xe=y.left+y.width+B,ue=Qo.calculateVerticalAlignment(y,E,G)):O===Ua.Left?(Xe=y.left-E.width-B,ue=Qo.calculateVerticalAlignment(y,E,G)):O===Ua.Top?(ue=y.top-E.height-B,Xe=Qo.calculateHorizontalAlignment(y,E,G)):O===Ua.Bottom&&(ue=y.top+y.height+B,Xe=Qo.calculateHorizontalAlignment(y,E,G)),{top:ue,left:Xe}}static determinePlacement(O,E,y,B){if(Qo.shouldFlip(y,E,O,B)){if(O===Ua.Right)return Ua.Left;if(O===Ua.Left)return Ua.Right;if(O===Ua.Top)return Ua.Bottom;if(O===Ua.Bottom)return Ua.Top}return O}}let sp=(()=>{var v;class O{get cssClasses(){let y="ngx-charts-tooltip-content";return y+=` position-${this.placement}`,y+=` type-${this.type}`,y+=` ${this.cssClass}`,y}constructor(y,B,G){this.element=y,this.renderer=B,this.platformId=G}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,o.UE)(this.platformId))return;const y=this.element.nativeElement,B=this.host.nativeElement.getBoundingClientRect();if(!B.height&&!B.width)return;const G=y.getBoundingClientRect();this.checkFlip(B,G),this.positionContent(y,B,G),this.showCaret&&this.positionCaret(B,G),setTimeout(()=>this.renderer.addClass(y,"animate"),1)}positionContent(y,B,G){const{top:ue,left:Xe}=Qo.positionContent(this.placement,G,B,this.spacing,this.alignment);this.renderer.setStyle(y,"top",`${ue}px`),this.renderer.setStyle(y,"left",`${Xe}px`)}positionCaret(y,B){const G=this.caretElm.nativeElement,ue=G.getBoundingClientRect(),{top:Xe,left:Ut}=Qo.positionCaret(this.placement,B,y,ue,this.alignment);this.renderer.setStyle(G,"top",`${Xe}px`),this.renderer.setStyle(G,"left",`${Ut}px`)}checkFlip(y,B){this.placement=Qo.determinePlacement(this.placement,B,y,this.spacing)}onWindowResize(){this.position()}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-tooltip-content"]],viewQuery:function(B,G){if(1&B&&i.GBs(_u,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.caretElm=ue.first)}},hostVars:2,hostBindings:function(B,G){1&B&&i.bIt("resize",function(){return G.onWindowResize()},i.tSv),2&B&&i.HbH(G.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},standalone:!1,decls:6,vars:6,consts:[["caretElm",""],[3,"hidden"],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(B,G){1&B&&(i.j41(0,"div"),i.nrm(1,"span",1,0),i.j41(3,"div",2),i.DNE(4,yu,2,4,"span",3)(5,k0,1,1,"span",4),i.k0s()()),2&B&&(i.R7$(),i.HbH(i.VkB("tooltip-caret position-",G.placement)),i.Y8G("hidden",!G.showCaret),i.R7$(3),i.Y8G("ngIf",!G.title),i.R7$(),i.Y8G("ngIf",G.title))},dependencies:[D.bT,D.T3],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:#000000bf;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:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translateZ(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}))}return v(),(0,e.Cg)([rp(100)],O.prototype,"onWindowResize",null),O})();class D3{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,E){E=this.assignDefaults(E);const y=this.injectComponent(O,E);return this.register(O,y),y}destroy(O){const E=this.components.get(O.componentType);if(E&&E.length){const y=E.indexOf(O);y>-1&&(E[y].destroy(),E.splice(y,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const E=this.components.get(O);if(E&&E.length){let y=E.length-1;for(;y>=0;)this.destroy(E[y--])}}injectComponent(O,E){return this.injectionService.appendComponent(O,E)}assignDefaults(O){const E={...this.defaults.inputs},y={...this.defaults.outputs};return!O.inputs&&!O.outputs&&(O={inputs:O}),E&&(O.inputs={...E,...O.inputs}),y&&(O.outputs={...y,...O.outputs}),O}register(O,E){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(E)}}let Ju=(()=>{var v;class O{static setGlobalRootViewContainer(y){O.globalRootViewContainer=y}constructor(y,B){this.applicationRef=y,this.injector=B}getRootViewContainer(){if(this._container)return this._container;if(O.globalRootViewContainer)return O.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(y){this._container=y}getComponentRootNode(y){return function A3(v){return v.element}(y)?y.element.nativeElement:y.hostView&&y.hostView.rootNodes.length>0?y.hostView.rootNodes[0]:y.location.nativeElement}getRootViewContainerNode(y){return this.getComponentRootNode(y)}projectComponentBindings(y,B){if(B){if(void 0!==B.inputs){const G=Object.getOwnPropertyNames(B.inputs);for(const ue of G)y.instance[ue]=B.inputs[ue]}if(void 0!==B.outputs){const G=Object.getOwnPropertyNames(B.outputs);for(const ue of G)y.instance[ue]=B.outputs[ue]}}return y}appendComponent(y,B={},G){G||(G=this.getRootViewContainer());const ue=this.getComponentRootNode(G),Xe=new A.aI(ue,this.applicationRef,this.injector),Ut=new A.A8(y),Qt=Xe.attach(Ut);return this.projectComponentBindings(Qt,B),Qt}static#e=v=()=>(this.globalRootViewContainer=null,this.\u0275fac=function(B){return new(B||O)(g.KVO(i.o8S),g.KVO(g.zZn))},this.\u0275prov=g.jDH({token:O,factory:O.\u0275fac}))}return v(),O})(),l2=(()=>{var v;class O extends D3{constructor(y){super(y),this.type=sp}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(g.KVO(Ju))},this.\u0275prov=g.jDH({token:O,factory:O.\u0275fac}))}return v(),O})();var Ic=function(v){return v.Right="right",v.Below="below",v}(Ic||{}),c2=function(v){return v.ScaleLegend="scaleLegend",v.Legend="legend",v}(c2||{}),fa=function(v){return v.Time="time",v.Linear="linear",v.Ordinal="ordinal",v.Quantile="quantile",v}(fa||{});function jd(v){return v instanceof Date?v.toLocaleDateString():v.toLocaleString()}let a4=(()=>{var v;class O{constructor(){this.isActive=!1,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.toggle=new i.bkB}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(B,G){1&B&&i.bIt("mouseenter",function(){return G.onMouseEnter()})("mouseleave",function(){return G.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},standalone:!1,decls:4,vars:6,consts:[["tabindex","-1",3,"click","title"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(B,G){1&B&&(i.j41(0,"span",0),i.bIt("click",function(){return G.select.emit(G.formattedLabel)}),i.j41(1,"span",1),i.bIt("click",function(){return G.toggle.emit(G.formattedLabel)}),i.k0s(),i.j41(2,"span",2),i.EFF(3),i.k0s()()),2&B&&(i.AVh("active",G.isActive),i.Y8G("title",G.formattedLabel),i.R7$(),i.xc7("background-color",G.color),i.R7$(2),i.SpI(" ",G.trimmedLabel," "))},encapsulation:2,changeDetection:0}))}return v(),O})(),r4=(()=>{var v;class O{constructor(y){this.cd=y,this.horizontal=!1,this.labelClick=new i.bkB,this.labelActivate=new i.bkB,this.labelDeactivate=new i.bkB,this.legendEntries=[]}ngOnChanges(y){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const y=[];for(const B of this.data){const G=jd(B);-1===y.findIndex(Xe=>Xe.label===G)&&y.push({label:B,formattedLabel:G,color:this.colors.getColor(B)})}return y}isActive(y){return!!this.activeEntries&&void 0!==this.activeEntries.find(G=>y.label===G.name)}activate(y){this.labelActivate.emit(y)}deactivate(y){this.labelDeactivate.emit(y)}trackBy(y,B){return B.label}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(p.gRc))},this.\u0275cmp=i.VBU({type:O,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"},standalone:!1,features:[i.OA$],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,"select","activate","deactivate","label","formattedLabel","color","isActive"]],template:function(B,G){1&B&&(i.j41(0,"div"),i.DNE(1,R0,3,1,"header",0),i.j41(2,"div",1)(3,"ul",2),i.DNE(4,O0,2,4,"li",3),i.k0s()()()),2&B&&(i.xc7("width",G.width,"px"),i.R7$(),i.Y8G("ngIf",(null==G.title?null:G.title.length)>0),i.R7$(2),i.xc7("max-height",G.height-45,"px"),i.AVh("horizontal-legend",G.horizontal),i.R7$(),i.Y8G("ngForOf",G.legendEntries)("ngForTrackBy",G.trackBy))},dependencies:[D.Sq,D.bT,a4],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:#0000000d}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;-webkit-transition:.2s;-moz-transition:.2s;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}))}return v(),O})(),L3=(()=>{var v;class O{constructor(){this.horizontal=!1}ngOnChanges(y){const B=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${B})`}gradientString(y,B){B.push(1);const G=[];return y.reverse().forEach((ue,Xe)=>{G.push(`${ue} ${Math.round(100*B[Xe])}%`)}),G.join(", ")}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},standalone:!1,features:[i.OA$],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(B,G){1&B&&(i.j41(0,"div",0)(1,"div",1)(2,"span"),i.EFF(3),i.k0s()(),i.nrm(4,"div",2),i.j41(5,"div",1)(6,"span"),i.EFF(7),i.k0s()()()),2&B&&(i.xc7("height",G.horizontal?void 0:G.height,"px")("width",G.width,"px"),i.AVh("horizontal-legend",G.horizontal),i.R7$(3),i.JRh(G.valueRange[1].toLocaleString()),i.R7$(),i.xc7("background",G.gradient),i.R7$(3),i.JRh(G.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}))}return v(),O})(),s4=(()=>{var v;class O{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new i.bkB,this.legendLabelActivate=new i.bkB,this.legendLabelDeactivate=new i.bkB,this.LegendPosition=Ic,this.LegendType=c2}ngOnChanges(y){this.update()}update(){let y=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Ic.Right)&&(y=this.legendType===c2.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-y)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Ic.Right?this.chartWidth:Math.floor(this.view[0]*y/12)}getLegendType(){return this.legendOptions.scaleType===fa.Linear?c2.ScaleLegend:c2.Legend}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},standalone:!1,features:[i.Jv_([l2]),i.OA$],ngContentSelectors:P0,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"labelClick","labelActivate","labelDeactivate","horizontal","data","title","colors","height","width","activeEntries"]],template:function(B,G){1&B&&(i.NAR(),i.j41(0,"div",0),g.qSk(),i.j41(1,"svg",1),i.SdG(2),i.k0s(),i.DNE(3,uf,1,5,"ngx-charts-scale-legend",2)(4,hf,1,7,"ngx-charts-legend",3),i.k0s()),2&B&&(i.xc7("width",G.view[0],"px")("height",G.view[1],"px"),i.R7$(),i.BMQ("width",G.chartWidth)("height",G.view[1]),i.R7$(2),i.Y8G("ngIf",G.showLegend&&G.legendType===G.LegendType.ScaleLegend),i.R7$(),i.Y8G("ngIf",G.showLegend&&G.legendType===G.LegendType.Legend))},dependencies:[D.bT,r4,L3],encapsulation:2,changeDetection:0}))}return v(),O})(),o4=(()=>{var v;class O{constructor(y,B){this.element=y,this.zone=B,this.visible=new i.bkB,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const y=()=>{if(!this.element)return;const{offsetHeight:B,offsetWidth:G}=this.element.nativeElement;B&&G?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>y(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>y())})}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT),i.rXU(i.SKi))},this.\u0275dir=i.FsC({type:O,selectors:[["visibility-observer"]],outputs:{visible:"visible"},standalone:!1}))}return v(),O})();function eh(v){return"[object Date]"===toString.call(v)}let d2=(()=>{var v;class O{constructor(y,B,G,ue){this.chartElement=y,this.zone=B,this.cd=G,this.platformId=ue,this.scheme="cool",this.schemeType=fa.Ordinal,this.animations=!0,this.select=new i.bkB}ngOnInit(){(0,o.Vy)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new o4(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(y){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 y=this.getContainerDims();y&&(this.width=y.width,this.height=y.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 y,B;const G=this.chartElement.nativeElement;if((0,o.UE)(this.platformId)&&null!==G.parentNode){const ue=G.parentNode.getBoundingClientRect();y=ue.width,B=ue.height}return y&&B?{width:y,height:B}:null}formatDates(){for(let y=0;y{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=B}cloneData(y){const B=[];for(const G of y){const ue={};if(void 0!==G.name&&(ue.name=G.name),void 0!==G.value&&(ue.value=G.value),void 0!==G.series){ue.series=[];for(const Xe of G.series){const Ut=Object.assign({},Xe);ue.series.push(Ut)}}void 0!==G.extra&&(ue.extra=JSON.parse(JSON.stringify(G.extra))),void 0!==G.source&&(ue.source=G.source),void 0!==G.target&&(ue.target=G.target),B.push(ue)}return B}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(p.gRc),i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},standalone:!1,features:[i.OA$],decls:1,vars:0,template:function(B,G){1&B&&i.nrm(0,"div")},encapsulation:2}))}return v(),O})();var Hr=function(v){return v.Top="top",v.Bottom="bottom",v.Left="left",v.Right="right",v}(Hr||{});let I3=(()=>{var v;class O{constructor(y){this.textHeight=25,this.margin=5,this.element=y.nativeElement}ngOnChanges(y){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Hr.Top:case Hr.Bottom:this.y=this.offset,this.x=this.width/2;break;case Hr.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Hr.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},standalone:!1,features:[i.OA$],attrs:ff,decls:2,vars:6,template:function(B,G){1&B&&(g.qSk(),i.j41(0,"text"),i.EFF(1),i.k0s()),2&B&&(i.BMQ("stroke-width",G.strokeWidth)("x",G.x)("y",G.y)("text-anchor",G.textAnchor)("transform",G.transform),i.R7$(),i.SpI(" ",G.label," "))},encapsulation:2,changeDetection:0}))}return v(),O})();function l4(v,O=16){return"string"!=typeof v?"number"==typeof v?v+"":"":(v=v.trim()).length<=O?v:`${v.slice(0,O)}...`}function k3(v,O){if(v.length>O){const E=[],y=Math.floor(v.length/O);for(let B=0;B{const Xe=(G.pop()||"")+" ";return Xe.length+ue.length>O?[...G,Xe.trim(),ue.trim()]:[...G,Xe+ue]},[]);else{let G=0;for(;GE&&(B=B.splice(0,E),B[B.length-1]+="..."),B}var vl=function(v){return v.Start="start",v.Middle="middle",v.End="end",v}(vl||{});function fc(v,O,E,y,B,[G,ue,Xe,Ut]){let Qt="";return Qt=`M${[v+B,O]}`,Qt+="h"+((E=0===(E=Math.floor(E))?1:E)-2*B),Qt+=ue?`a${[B,B]} 0 0 1 ${[B,B]}`:`h${B}v${B}`,Qt+="v"+((y=0===(y=Math.floor(y))?1:y)-2*B),Qt+=Ut?`a${[B,B]} 0 0 1 ${[-B,B]}`:`v${B}h${-B}`,Qt+="h"+(2*B-E),Qt+=Xe?`a${[B,B]} 0 0 1 ${[-B,-B]}`:`h${-B}v${-B}`,Qt+="v"+(2*B-y),Qt+=G?`a${[B,B]} 0 0 1 ${[B,-B]}`:`v${-B}h${B}`,Qt+="z",Qt}let th=(()=>{var v;class O{get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}constructor(y){this.platformId=y,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new i.bkB,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=vl.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16,this.referenceLineLength=0}ngOnChanges(y){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,o.UE)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const y=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);y!==this.height&&(this.height=y,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const y=this.scale;this.adjustedScale=this.scale.bandwidth?function(ue){return this.scale(ue)+.5*this.scale.bandwidth()}:this.scale,this.ticks=this.getTicks();const B=this.orient===Hr.Top||this.orient===Hr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.orient){case Hr.Bottom:this.transform=function(ue){return"translate("+this.adjustedScale(ue)+",0)"},this.textAnchor=vl.Middle,this.x2=this.innerTickSize*B,this.x1=this.tickSpacing*B,this.dx=B<0?"0em":".71em";break;case Hr.Left:this.transform=function(ue){return"translate(0,"+this.adjustedScale(ue)+")"},this.textAnchor=vl.End,this.y2=this.innerTickSize*-B,this.y1=this.tickSpacing*-B,this.dx=".32em";break;case Hr.Top:this.transform=function(ue){return"translate("+this.adjustedScale(ue)+",0)"},this.textAnchor=vl.Middle,this.y2=this.innerTickSize*B,this.y1=this.tickSpacing*B,this.dx=B<0?"0em":".71em";break;case Hr.Right:this.transform=function(ue){return"translate(0,"+this.adjustedScale(ue)+")"},this.textAnchor=vl.Start,this.x2=this.innerTickSize*-B,this.x1=this.tickSpacing*-B,this.dx=".32em"}this.tickFormat=this.tickFormatting?this.tickFormatting:y.tickFormat?y.tickFormat.apply(y,this.tickArguments):function(ue){return"Date"===ue.constructor.name?ue.toLocaleDateString():ue.toLocaleString()};const G=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.textTransform="",G&&0!==G?(this.textTransform=`rotate(${G})`,this.textAnchor=vl.End,this.verticalSpacing=10):this.textAnchor=vl.Middle,setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(y=>y.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(y=>y.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=fc(this.refMax,25-this.gridLineHeight,this.refMin-this.refMax,this.gridLineHeight,0,[!1,!1,!1,!1])}getRotationAngle(y){let B=0;this.maxTicksLength=0;for(let Fn=0;Fnthis.maxTicksLength&&(this.maxTicksLength=yi)}const Xe=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Ut=Xe;const Qt=Math.floor(this.width/y.length);for(;Ut>Qt&&B>-90;)B-=30,Ut=Math.cos(B*(Math.PI/180))*Xe;let pn=14;if(this.isWrapTicksSupported){const Fn=this.ticks.reduce((yi,Ji)=>Ji.length>yi.length?Ji:yi,"");pn=14*(this.tickChunks(Fn).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(Fn)}const Pn=0!==B?Math.max(Math.abs(Math.sin(B*Math.PI/180))*this.maxTickLength*7,10):pn;return this.approxHeight=Math.min(Pn,200),this.showRefLines&&this.referenceLines&&this.setReferencelines(),B}getTicks(){let y;const B=this.getMaxTicks(20),G=this.getMaxTicks(100);return this.tickValues?y=this.tickValues:this.scale.ticks?y=this.scale.ticks.apply(this.scale,[G]):(y=this.scale.domain(),y=k3(y,B)),y}getMaxTicks(y){return Math.floor(this.width/y)}tickTransform(y){return"translate("+this.adjustedScale(y)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(y){return this.trimTicks?l4(y,this.maxTickLength):y}getMaxPossibleLengthForTick(y){if(this.scale.bandwidth){const G=Math.floor(this.scale.bandwidth()/7),ue=y.slice(0,G);return Math.max(ue.length,this.maxTickLength)}return this.maxTickLength}tickChunks(y){if(y.toString().length>this.maxTickLength&&this.scale.bandwidth){let G=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(G<=1)return[this.tickTrim(y)];let ue=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return(0,o.UE)(this.platformId)||(ue=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),G=Math.min(G,5),c4(y,ue,G<1?1:G)}return[this.tickTrim(y)]}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(B,G){if(1&B&&i.GBs(bu,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksElement=ue.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",wrapTicks:"wrapTicks",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:N0,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"],[1,"reference-area"],[1,"ref-line"],["y1","25",1,"refline-path","gridline-path-vertical"],["transform","rotate(-270) translate(5, -5)",1,"refline-label"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g",null,0),i.DNE(2,xu,2,2,"g",3),i.k0s(),i.DNE(3,S1,2,2,"g",4)(4,gf,1,2,"path",5)(5,T1,2,1,"g",6)),2&B&&(i.R7$(2),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngIf",G.referenceLineLength>1&&G.refMax&&G.refMin&&G.showRefLines),i.R7$(),i.Y8G("ngForOf",G.referenceLines))},dependencies:[D.Sq,D.bT],encapsulation:2,changeDetection:0}))}return v(),O})(),nh=(()=>{var v;class O{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Hr.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=Hr}ngOnChanges(y){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:y}){const B=y+25+5;B!==this.labelOffset&&(this.labelOffset=B,setTimeout(()=>{this.dimensionsChanged.emit({height:y})},0))}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(B,G){if(1&B&&i.GBs(th,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksComponent=ue.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",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:vf,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"dimensionsChanged","trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g"),i.DNE(1,dc,1,16,"g",0)(2,Gc,1,5,"g",1),i.k0s()),2&B&&(i.BMQ("class",G.xAxisClassName)("transform",G.transform),i.R7$(),i.Y8G("ngIf",G.xScale),i.R7$(),i.Y8G("ngIf",G.showLabel))},dependencies:[D.bT,I3,th],encapsulation:2,changeDetection:0}))}return v(),O})(),d4=(()=>{var v;class O{constructor(y){this.platformId=y,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=vl.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Hr}ngOnChanges(y){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,o.UE)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const y=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);y!==this.width&&(this.width=y,this.dimensionsChanged.emit({width:y}),setTimeout(()=>this.updateDims()))}update(){const y=this.scale,B=this.orient===Hr.Top||this.orient===Hr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:y.tickFormat?y.tickFormat.apply(y,this.tickArguments):function(G){return"Date"===G.constructor.name?G.toLocaleDateString():G.toLocaleString()},this.adjustedScale=y.bandwidth?G=>{const ue=y(G)+.5*y.bandwidth();if(this.wrapTicks&&G.toString().length>this.maxTickLength){const Xe=this.tickChunks(G).length;if(1===Xe)return ue;const pn=.5*y.bandwidth()-8*Xe*.5;return y(G)+pn}return ue}:y,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Hr.Top:case Hr.Bottom:this.transform=function(G){return"translate("+this.adjustedScale(G)+",0)"},this.textAnchor=vl.Middle,this.y2=this.innerTickSize*B,this.y1=this.tickSpacing*B,this.dy=B<0?"0em":".71em";break;case Hr.Left:this.transform=function(G){return"translate(0,"+this.adjustedScale(G)+")"},this.textAnchor=vl.End,this.x2=this.innerTickSize*-B,this.x1=this.tickSpacing*-B,this.dy=".32em";break;case Hr.Right:this.transform=function(G){return"translate(0,"+this.adjustedScale(G)+")"},this.textAnchor=vl.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(y=>y.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(y=>y.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=fc(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let y;const B=this.getMaxTicks(20),G=this.getMaxTicks(50);return this.tickValues?y=this.tickValues:this.scale.ticks?y=this.scale.ticks.apply(this.scale,[G]):(y=this.scale.domain(),y=k3(y,B)),y}getMaxTicks(y){return Math.floor(this.height/y)}tickTransform(y){return`translate(${this.adjustedScale(y)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(y){return this.trimTicks?l4(y,this.maxTickLength):y}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(G=>this.tickTrim(this.tickFormat(G)).length))}tickChunks(y){if(y.toString().length>this.maxTickLength&&this.scale.bandwidth){const B=this.maxTickLength,G=Math.floor(this.scale.bandwidth()/15);return G<=1?[this.tickTrim(y)]:c4(y,B,Math.min(G,5))}return[this.tickFormat(y)]}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(B,G){if(1&B&&i.GBs(bu,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksElement=ue.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",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:s3,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],[1,"ref-line"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g",null,0),i.DNE(2,wu,2,2,"g",3),i.k0s(),i.DNE(3,xf,1,2,"path",4)(4,Fm,2,2,"g",5)(5,z0,2,1,"g",6)),2&B&&(i.R7$(2),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngIf",G.referenceLineLength>1&&G.refMax&&G.refMin&&G.showRefLines),i.R7$(),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngForOf",G.referenceLines))},dependencies:[D.Sq,D.bT],encapsulation:2,changeDetection:0}))}return v(),O})(),u4=(()=>{var v;class O{constructor(){this.showGridLines=!1,this.yOrient=Hr.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(y){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Hr.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:y}){y!==this.labelOffset&&this.yOrient===Hr.Right?(this.labelOffset=y+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:y})},0)):y!==this.labelOffset&&(this.labelOffset=y,setTimeout(()=>{this.dimensionsChanged.emit({width:y})},0))}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(B,G){if(1&B&&i.GBs(d4,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksComponent=ue.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",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:U0,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","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"dimensionsChanged","trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g"),i.DNE(1,ho,1,15,"g",0)(2,Du,1,5,"g",1),i.k0s()),2&B&&(i.BMQ("class",G.yAxisClassName)("transform",G.transform),i.R7$(),i.Y8G("ngIf",G.yScale),i.R7$(),i.Y8G("ngIf",G.showLabel))},dependencies:[D.bT,I3,d4],encapsulation:2,changeDetection:0}))}return v(),O})(),R3=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[D.MD]}))}return v(),O})();var U1=function(v){return v.popover="popover",v.tooltip="tooltip",v}(U1||{}),Wd=function(v){return v[v.all="all"]="all",v[v.focus="focus"]="focus",v[v.mouseover="mouseover"]="mouseover",v}(Wd||{});let u2=(()=>{var v;class O{get listensForFocus(){return this.tooltipShowEvent===Wd.all||this.tooltipShowEvent===Wd.focus}get listensForHover(){return this.tooltipShowEvent===Wd.all||this.tooltipShowEvent===Wd.mouseover}constructor(y,B,G){this.tooltipService=y,this.viewContainerRef=B,this.renderer=G,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ua.Top,this.tooltipAlignment=Ua.Center,this.tooltipType=U1.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Wd.all,this.tooltipImmediateExit=!1,this.show=new i.bkB,this.hide=new i.bkB}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(y){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(y))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(y){if(this.component||this.tooltipDisabled)return;const B=y?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const G=this.createBoundOptions();this.component=this.tooltipService.create(G),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},B)}addHideListeners(y){this.mouseEnterContentEvent=this.renderer.listen(y,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(y,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",B=>{y.contains(B.target)||this.hideTooltip()}))}hideTooltip(y=!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),y?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}}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(l2),i.rXU(i.c1b),i.rXU(i.sFG))},this.\u0275dir=i.FsC({type:O,selectors:[["","ngx-tooltip",""]],hostBindings:function(B,G){1&B&&i.bIt("focusin",function(){return G.onFocus()})("blur",function(){return G.onBlur()})("mouseenter",function(){return G.onMouseEnter()})("mouseleave",function(Xe){return G.onMouseLeave(Xe.target)})("click",function(){return G.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"},standalone:!1}))}return v(),O})(),h4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({providers:[Ju,l2],imports:[D.MD]}))}return v(),O})();const h2={};function f2(){let v=("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4);return v=`a${v}`,h2[v]?f2():(h2[v]=!0,v)}var $s=function(v){return v.Vertical="vertical",v.Horizontal="horizontal",v}($s||{});let V1=(()=>{var v;class O{constructor(){this.orientation=$s.Vertical}ngOnChanges(y){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===$s.Horizontal?this.x2="100%":this.orientation===$s.Vertical&&(this.y1="100%")}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},standalone:!1,features:[i.OA$],attrs:Mf,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"linearGradient",0),i.DNE(1,cd,1,5,"stop",1),i.k0s()),2&B&&(i.Y8G("id",G.name),i.BMQ("x1",G.x1)("y1",G.y1)("x2",G.x2)("y2",G.y2),i.R7$(),i.Y8G("ngForOf",G.stops))},dependencies:[D.Sq],encapsulation:2,changeDetection:0}))}return v(),O})(),Xd=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},standalone:!1,attrs:ku,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(B,G){1&B&&(g.qSk(),i.nrm(0,"rect",0)),2&B&&i.BMQ("height",G.height)("width",G.width)("x",G.x)("y",G.y)},encapsulation:2,changeDetection:0}))}return v(),O})();var Qc=function(v){return v.Odd="odd",v.Even="even",v}(Qc||{});let rh,P3=(()=>{var v;class O{ngOnChanges(y){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(y=>{let B,G,ue,Xe,Ut,Qt=Qc.Odd;if(this.orient===$s.Vertical){const pn=this.xScale(y.name);Number.parseInt((pn/this.xScale.step()).toString(),10)%2==1&&(Qt=Qc.Even),B=this.xScale.bandwidth()*this.xScale.paddingInner(),G=this.xScale.bandwidth()+B,ue=this.dims.height,Xe=this.xScale(y.name)-B/2,Ut=0}else if(this.orient===$s.Horizontal){const pn=this.yScale(y.name);Number.parseInt((pn/this.yScale.step()).toString(),10)%2==1&&(Qt=Qc.Even),B=this.yScale.bandwidth()*this.yScale.paddingInner(),G=this.dims.width,ue=this.yScale.bandwidth()+B,Xe=0,Ut=this.yScale(y.name)-B/2}return{name:y.name,class:Qt,height:ue,width:G,x:Xe,y:Ut}})}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},standalone:!1,features:[i.OA$],attrs:Ru,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(B,G){1&B&&i.DNE(0,Hc,1,10,"g",0),2&B&&i.Y8G("ngForOf",G.gridPanels)},dependencies:[D.Sq,Xd],encapsulation:2,changeDetection:0}))}return v(),O})();typeof window<"u"?rh=window:typeof global<"u"&&(rh=global);let cl=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[D.MD,R3,h4,D.MD,R3,h4]}))}return v(),O})();function B3({width:v,height:O,margins:E,showXAxis:y=!1,showYAxis:B=!1,xAxisHeight:G=0,yAxisWidth:ue=0,showXLabel:Xe=!1,showYLabel:Ut=!1,showLegend:Qt=!1,legendType:pn=fa.Ordinal,legendPosition:Pn=Ic.Right,columns:Fn=12}){let xi=E[3],yi=v,Ji=O-E[0]-E[2];return Qt&&Pn===Ic.Right&&(Fn-=pn===fa.Ordinal?2:1),yi=yi*Fn/12,yi=yi-E[1]-E[3],y&&(Ji-=5,Ji-=G,Xe&&(Ji-=30)),B&&(yi-=5,yi-=ue,xi+=ue,xi+=10,Ut&&(yi-=30,xi+=30)),yi=Math.max(0,yi),Ji=Math.max(0,Ji),{width:Math.floor(yi),height:Math.floor(Ji),xOffset:Math.floor(xi)}}const hp=[{name:"vivid",selectable:!0,group:fa.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:fa.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:fa.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:fa.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:fa.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:fa.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:fa.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:fa.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:fa.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:fa.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:fa.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:fa.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:fa.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:fa.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:fa.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class lh{constructor(O,E,y,B){"string"==typeof O&&(O=hp.find(G=>G.name===O)),this.colorDomain=O.domain,this.scaleType=E,this.domain=y,this.customColors=B,this.scale=this.generateColorScheme(O,E,this.domain)}generateColorScheme(O,E,y){let B;switch("string"==typeof O&&(O=hp.find(G=>G.name===O)),E){case fa.Quantile:B=kd().range(O.domain).domain(y);break;case fa.Ordinal:B=y1().range(O.domain).domain(y);break;case fa.Linear:{const G=[...O.domain];1===G.length&&(G.push(G[0]),this.colorDomain=G);const ue=eu(0,1,1/G.length);B=cc().range(G).domain(ue)}}return B}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===fa.Linear){const E=cc().domain(this.domain).range([0,1]);return this.scale(E(O))}{if("function"==typeof this.customColors)return this.customColors(O);const E=O.toString();let y;return this.customColors&&this.customColors.length>0&&(y=this.customColors.find(B=>B.name.toLowerCase()===E.toLowerCase())),y?y.value:this.scale(O)}}getLinearGradientStops(O,E){void 0===E&&(E=this.domain[0]);const y=cc().domain(this.domain).range([0,1]),B=zc().domain(this.colorDomain).range([0,1]),G=this.getColor(O),ue=y(E),Xe=this.getColor(E),Ut=y(O);let Qt=1,pn=ue;const Pn=[];for(Pn.push({color:Xe,offset:ue,originalOffset:ue,opacity:1});pn=(Ut-B.bandwidth()).toFixed(4))break;Pn.push({color:Fn,offset:xi,opacity:1}),pn=xi,Qt++}}if(Pn[Pn.length-1].offset<100&&Pn.push({color:G,offset:Ut,opacity:1}),Ut===ue)Pn[0].offset=0,Pn[1].offset=100;else if(100!==Pn[Pn.length-1].offset)for(const Fn of Pn)Fn.offset=(Fn.offset-ue)/(Ut-ue)*100;return Pn}}let U3=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),V3=(()=>{var v;class O{constructor(y){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.hasGradient=!1,this.hideBar=!1,this.element=y.nativeElement}ngOnChanges(y){y.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+f2().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 y=ui(this.element).select(".bar"),B=this.getPath();this.animations?y.transition().duration(500).attr("d",B):y.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,y=this.getRadius();return this.roundEdges?this.orientation===$s.Vertical?(y=Math.min(this.height,y),B=fc(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===$s.Horizontal&&(y=Math.min(this.width,y),B=fc(this.x,this.y,1,this.height,0,this.edges)):this.orientation===$s.Vertical?B=fc(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===$s.Horizontal&&(B=fc(this.x,this.y,1,this.height,0,this.edges)),B}getPath(){let B,y=this.getRadius();return this.roundEdges?this.orientation===$s.Vertical?(y=Math.min(this.height,y),B=fc(this.x,this.y,this.width,this.height,y,this.edges)):this.orientation===$s.Horizontal&&(y=Math.min(this.width,y),B=fc(this.x,this.y,this.width,this.height,y,this.edges)):B=fc(this.x,this.y,this.width,this.height,y,this.edges),B}getRadius(){let y=0;return this.roundEdges&&this.height>5&&this.width>5&&(y=Math.floor(Math.min(5,this.height/2,this.width/2))),y}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let y=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===$s.Vertical?y=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===$s.Horizontal&&(y=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),y}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===$s.Vertical&&0===this.height||this.orientation===$s.Horizontal&&0===this.width)}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(B,G){1&B&&i.bIt("mouseenter",function(){return G.onMouseEnter()})("mouseleave",function(){return G.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"},standalone:!1,features:[i.OA$],attrs:Nf,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(B,G){1&B&&(i.DNE(0,Ff,2,3,"defs",0),g.qSk(),i.j41(1,"path",1),i.bIt("click",function(){return G.select.emit(G.data)}),i.k0s()),2&B&&(i.Y8G("ngIf",G.hasGradient),i.R7$(),i.AVh("active",G.isActive)("hidden",G.hideBar),i.BMQ("d",G.path)("aria-label",G.ariaLabel)("fill",G.hasGradient?G.gradientFill:G.fill))},dependencies:[D.bT,V1],encapsulation:2,changeDetection:0}))}return v(),O})();var $c=function(v){return v.Standard="standard",v.Normalized="normalized",v.Stacked="stacked",v}($c||{}),md=function(v){return v.positive="positive",v.negative="negative",v}(md||{});let ch=(()=>{var v;class O{constructor(y){this.dimensionsChanged=new i.bkB,this.horizontalPadding=2,this.verticalPadding=5,this.element=y.nativeElement}ngOnChanges(y){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):jd(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})`)}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:Bf,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"text",0),i.EFF(1),i.k0s()),2&B&&(i.BMQ("text-anchor",G.textAnchor)("transform",G.transform)("x",G.x)("y",G.y),i.R7$(),i.SpI(" ",G.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}))}return v(),O})(),G3=(()=>{var v;class O{constructor(y){this.platformId=y,this.type=$c.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.dataLabelHeightChanged=new i.bkB,this.barsForDataLabels=[],this.barOrientation=$s,this.isSSR=!1}ngOnInit(){(0,o.Vy)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}update(){let y;this.updateTooltipSettings(),this.series.length&&(y=this.xScale.bandwidth()),y=Math.round(y);const B=Math.max(this.yScale.domain()[0],0),G={[md.positive]:0,[md.negative]:0};let Xe,ue=md.positive;this.type===$c.Normalized&&(Xe=this.series.map(Ut=>Ut.value).reduce((Ut,Qt)=>Ut+Qt,0)),this.bars=this.series.map((Ut,Qt)=>{let pn=Ut.value;const Pn=this.getLabel(Ut),Fn=jd(Pn);ue=pn>0?md.positive:md.negative;const yi={value:pn,label:Pn,roundEdges:this.roundEdges,data:Ut,width:y,formattedLabel:Fn,height:0,x:0,y:0};if(this.type===$c.Standard)yi.height=Math.abs(this.yScale(pn)-this.yScale(B)),yi.x=this.xScale(Pn),yi.y=this.yScale(pn<0?0:pn);else if(this.type===$c.Stacked){const qn=G[ue],Gi=qn+pn;G[ue]+=pn,yi.height=this.yScale(qn)-this.yScale(Gi),yi.x=0,yi.y=this.yScale(Gi),yi.offset0=qn,yi.offset1=Gi}else if(this.type===$c.Normalized){let qn=G[ue],Gi=qn+pn;G[ue]+=pn,Xe>0?(qn=100*qn/Xe,Gi=100*Gi/Xe):(qn=0,Gi=0),yi.height=this.yScale(qn)-this.yScale(Gi),yi.x=0,yi.y=this.yScale(Gi),yi.offset0=qn,yi.offset1=Gi,pn=(Gi-qn).toFixed(2)+"%"}this.colors.scaleType===fa.Ordinal?yi.color=this.colors.getColor(Pn):this.type===$c.Standard?(yi.color=this.colors.getColor(pn),yi.gradientStops=this.colors.getLinearGradientStops(pn)):(yi.color=this.colors.getColor(yi.offset1),yi.gradientStops=this.colors.getLinearGradientStops(yi.offset1,yi.offset0));let Ji=Fn;return yi.ariaLabel=Fn+" "+pn.toLocaleString(),null!=this.seriesName&&(Ji=`${this.seriesName} \u2022 ${Fn}`,yi.data.series=this.seriesName,yi.ariaLabel=this.seriesName+" "+yi.ariaLabel),yi.tooltipText=this.tooltipDisabled?void 0:`\n ${function qu(v){return v.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[O]))}(Ji)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(pn):pn.toLocaleString()}\n `,yi}),this.updateDataLabels()}updateDataLabels(){if(this.type===$c.Stacked){this.barsForDataLabels=[];const y={};y.series=this.seriesName;const B=this.series.map(ue=>ue.value).reduce((ue,Xe)=>Xe>0?ue+Xe:ue,0),G=this.series.map(ue=>ue.value).reduce((ue,Xe)=>Xe<0?ue+Xe:ue,0);y.total=B+G,y.x=0,y.y=0,y.height=this.yScale(y.total>0?B:G),y.width=this.xScale.bandwidth(),this.barsForDataLabels.push(y)}else this.barsForDataLabels=this.series.map(y=>{const B={};return B.series=this.seriesName??y.label,B.total=y.value,B.x=this.xScale(y.label),B.y=this.yScale(0),B.height=this.yScale(B.total)-this.yScale(0),B.width=this.xScale.bandwidth(),B})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Ua.Top,this.tooltipType=this.tooltipDisabled?void 0:U1.tooltip}isActive(y){return!!this.activeEntries&&void 0!==this.activeEntries.find(G=>y.name===G.name&&y.value===G.value)}onClick(y){this.select.emit(y)}getLabel(y){return y.label?y.label:y.name}trackBy(y,B){return B.label}trackDataLabelBy(y,B){return y+"#"+B.series+"#"+B.total}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,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"},standalone:!1,features:[i.OA$],attrs:q0,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,"select","activate","deactivate","width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"dimensionsChanged","barX","barY","barWidth","barHeight","value","valueFormatting","orientation"]],template:function(B,G){1&B&&i.DNE(0,Vu,2,2,"g",0)(1,b3,2,2,"g",0)(2,Hu,2,2,"g",0),2&B&&(i.Y8G("ngIf",!G.isSSR),i.R7$(),i.Y8G("ngIf",G.isSSR),i.R7$(),i.Y8G("ngIf",G.showDataLabel))},dependencies:[D.Sq,D.bT,u2,V3,ch],encapsulation:2,data:{animation:[(0,w.hZ)("animationState",[(0,w.kY)(":leave",[(0,w.iF)({opacity:1}),(0,w.i0)(500,(0,w.iF)({opacity:0}))])])]},changeDetection:0}))}return v(),O})(),p4=(()=>{var v;class O extends d2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ic.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.wrapTicks=!1,this.activate=new i.bkB,this.deactivate=new i.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}ngOnChanges(){this.update()}update(){if(super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=B3({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})`,this.showRefLines){const y=ui(this.chartElement.nativeElement).select(".bar-chart").node();ui(this.chartElement.nativeElement).selectAll(".ref-line").nodes().forEach(G=>y.appendChild(G))}}getXScale(){this.xDomain=this.getXDomain();const y=this.xDomain.length/(this.dims.width/this.barPadding+1);return zc().range([0,this.dims.width]).paddingInner(y).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const y=cc().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?y.nice():y}getXDomain(){return this.results.map(y=>y.label)}getYDomain(){const y=this.results.map(ue=>ue.value);let B=this.yScaleMin?Math.min(this.yScaleMin,...y):Math.min(0,...y);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(B=Math.min(B,...this.yAxisTicks));let G=this.yScaleMax?Math.max(this.yScaleMax,...y):Math.max(0,...y);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(G=Math.max(G,...this.yAxisTicks)),[B,G]}onClick(y){this.select.emit(y)}setColors(){let y;y=this.schemeType===fa.Ordinal?this.xDomain:this.yDomain,this.colors=new lh(this.scheme,this.schemeType,y,this.customColors)}getLegendOptions(){const y={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return y.scaleType===fa.Ordinal?(y.domain=this.xDomain,y.colors=this.colors,y.title=this.legendTitle):(y.domain=this.yDomain,y.colors=this.colors.scale),y}updateYAxisWidth({width:y}){this.yAxisWidth=y,this.update()}updateXAxisHeight({height:y}){this.xAxisHeight=y,this.update()}onDataLabelMaxHeightChanged(y){y.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,y.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,y.size.height),y.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(y,B=!1){y=this.results.find(ue=>B?ue.label===y.name:ue.name===y.name),!(this.activeEntries.findIndex(ue=>ue.name===y.name&&ue.value===y.value&&ue.series===y.series)>-1)&&(this.activeEntries=[y,...this.activeEntries],this.activate.emit({value:y,entries:this.activeEntries}))}onDeactivate(y,B=!1){y=this.results.find(ue=>B?ue.label===y.name:ue.name===y.name);const G=this.activeEntries.findIndex(ue=>ue.name===y.name&&ue.value===y.value&&ue.series===y.series);this.activeEntries.splice(G,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:y,entries:this.activeEntries})}static#e=v=()=>(this.\u0275fac=(()=>{let y;return function(G){return(y||(y=i.xGo(O)))(G||O)}})(),this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(B,G,ue){if(1&B&&i.wni(ue,Lf,5),2&B){let Xe;i.mGM(Xe=i.lsd())&&(G.tooltipTemplate=Xe.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",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",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.Vt3,i.OA$],decls:5,vars:25,consts:[[3,"legendLabelClick","legendLabelActivate","legendLabelDeactivate","view","showLegend","legendOptions","activeEntries","animations"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activate","deactivate","select","dataLabelHeightChanged","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks"]],template:function(B,G){1&B&&(i.j41(0,"ngx-charts-chart",0),i.bIt("legendLabelClick",function(Xe){return G.onClick(Xe)})("legendLabelActivate",function(Xe){return G.onActivate(Xe,!0)})("legendLabelDeactivate",function(Xe){return G.onDeactivate(Xe,!0)}),g.qSk(),i.j41(1,"g",1),i.DNE(2,ju,1,12,"g",2)(3,x3,1,13,"g",3),i.j41(4,"g",4),i.bIt("activate",function(Xe){return G.onActivate(Xe)})("deactivate",function(Xe){return G.onDeactivate(Xe)})("select",function(Xe){return G.onClick(Xe)})("dataLabelHeightChanged",function(Xe){return G.onDataLabelMaxHeightChanged(Xe)}),i.k0s()()()),2&B&&(i.Y8G("view",i.l_i(22,ud,G.width,G.height))("showLegend",G.legend)("legendOptions",G.legendOptions)("activeEntries",G.activeEntries)("animations",G.animations),i.R7$(),i.BMQ("transform",G.transform),i.R7$(),i.Y8G("ngIf",G.xAxis),i.R7$(),i.Y8G("ngIf",G.yAxis),i.R7$(),i.Y8G("xScale",G.xScale)("yScale",G.yScale)("colors",G.colors)("series",G.results)("dims",G.dims)("gradient",G.gradient)("tooltipDisabled",G.tooltipDisabled)("tooltipTemplate",G.tooltipTemplate)("showDataLabel",G.showDataLabel)("dataLabelFormatting",G.dataLabelFormatting)("activeEntries",G.activeEntries)("roundEdges",G.roundEdges)("animations",G.animations)("noBarWhenZero",G.noBarWhenZero))},dependencies:[D.bT,nh,u4,s4,G3],styles:[Nu],encapsulation:2,changeDetection:0}))}return v(),O})(),bp=(()=>{var v;class O extends d2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ic.Right,this.tooltipDisabled=!1,this.scaleType=fa.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.schemeType=fa.Ordinal,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.wrapTicks=!1,this.activate=new i.bkB,this.deactivate=new i.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=$s,this.trackBy=(y,B)=>B.name}ngOnInit(){(0,o.Vy)(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=B3({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(y,B){y.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,y.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,y.size.height),B===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const y=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return zc().rangeRound([0,this.dims.width]).paddingInner(y).paddingOuter(y/2).domain(this.groupDomain)}getInnerScale(){const y=this.groupScale.bandwidth(),B=this.innerDomain.length/(y/this.barPadding+1);return zc().rangeRound([0,y]).paddingInner(B).domain(this.innerDomain)}getValueScale(){const y=cc().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?y.nice():y}getGroupDomain(){const y=[];for(const B of this.results)y.includes(B.label)||y.push(B.label);return y}getInnerDomain(){const y=[];for(const B of this.results)for(const G of B.series)y.includes(G.label)||y.push(G.label);return y}getValueDomain(){const y=[];for(const ue of this.results)for(const Xe of ue.series)y.includes(Xe.value)||y.push(Xe.value);return[Math.min(0,...y),this.yScaleMax?Math.max(this.yScaleMax,...y):Math.max(0,...y)]}groupTransform(y){return`translate(${this.groupScale(y.label)}, 0)`}onClick(y,B){B&&(y.series=B.name),this.select.emit(y)}setColors(){let y;y=this.schemeType===fa.Ordinal?this.innerDomain:this.valueDomain,this.colors=new lh(this.scheme,this.schemeType,y,this.customColors)}getLegendOptions(){const y={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return y.scaleType===fa.Ordinal?(y.domain=this.innerDomain,y.colors=this.colors,y.title=this.legendTitle):(y.domain=this.valueDomain,y.colors=this.colors.scale),y}updateYAxisWidth({width:y}){this.yAxisWidth=y,this.update()}updateXAxisHeight({height:y}){this.xAxisHeight=y,this.update()}onActivate(y,B,G=!1){const ue=Object.assign({},y);B&&(ue.series=B.name);const Xe=this.results.map(Ut=>Ut.series).flat().filter(Ut=>G?Ut.label===ue.name:Ut.name===ue.name&&Ut.series===ue.series);this.activeEntries=[...Xe],this.activate.emit({value:ue,entries:this.activeEntries})}onDeactivate(y,B,G=!1){const ue=Object.assign({},y);B&&(ue.series=B.name),this.activeEntries=this.activeEntries.filter(Xe=>G?Xe.label!==ue.name:!(Xe.name===ue.name&&Xe.series===ue.series)),this.deactivate.emit({value:ue,entries:this.activeEntries})}static#e=v=()=>(this.\u0275fac=(()=>{let y;return function(G){return(y||(y=i.xGo(O)))(G||O)}})(),this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(B,G,ue){if(1&B&&i.wni(ue,Lf,5),2&B){let Xe;i.mGM(Xe=i.lsd())&&(G.tooltipTemplate=Xe.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",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.Vt3],decls:7,vars:18,consts:[[3,"legendLabelActivate","legendLabelDeactivate","legendLabelClick","view","showLegend","legendOptions","activeEntries","animations"],[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","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks"],["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,"select","activate","deactivate","dataLabelHeightChanged","activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero"]],template:function(B,G){1&B&&(i.j41(0,"ngx-charts-chart",0),i.bIt("legendLabelActivate",function(Xe){return G.onActivate(Xe,void 0,!0)})("legendLabelDeactivate",function(Xe){return G.onDeactivate(Xe,void 0,!0)})("legendLabelClick",function(Xe){return G.onClick(Xe)}),g.qSk(),i.j41(1,"g",1),i.nrm(2,"g",2),i.DNE(3,Wu,1,11,"g",3)(4,Xf,1,10,"g",4)(5,Yf,2,2,"g",5)(6,Ku,2,2,"g",5),i.k0s()()),2&B&&(i.Y8G("view",i.l_i(15,ud,G.width,G.height))("showLegend",G.legend)("legendOptions",G.legendOptions)("activeEntries",G.activeEntries)("animations",G.animations),i.R7$(),i.BMQ("transform",G.transform),i.R7$(),i.Y8G("xScale",G.groupScale)("yScale",G.valueScale)("data",G.results)("dims",G.dims)("orient",G.barOrientation.Vertical),i.R7$(),i.Y8G("ngIf",G.xAxis),i.R7$(),i.Y8G("ngIf",G.yAxis),i.R7$(),i.Y8G("ngIf",!G.isSSR),i.R7$(),i.Y8G("ngIf",G.isSSR))},dependencies:[D.Sq,D.bT,nh,u4,s4,P3,G3],styles:[Nu],encapsulation:2,data:{animation:[(0,w.hZ)("animationState",[(0,w.kY)(":leave",[(0,w.iF)({opacity:1,transform:"*"}),(0,w.i0)(500,(0,w.iF)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}))}return v(),O})(),H3=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),g4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),_4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),y4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),Sp=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})();Math;let pd=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),Tp=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl,pd,Sp]}))}return v(),O})(),yo=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),C4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),M4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl,pd,H3]}))}return v(),O})(),Yd=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),mh=(()=>{var v;class O{constructor(){!function E4(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl,U3,H3,g4,_4,y4,Yd,Sp,Tp,yo,pd,C4,M4]}))}return v(),O})()},38288(ke,q,l){"use strict";l.d(q,{Um:()=>M,XK:()=>K});var i=l(10467),g=l(72200),p=l(2615),D=l(73664),o=l(17705),e=l(68314);function A(j,Z){if(1&j&&D.nrm(0,"canvas",1),2&j){const ee=D.XpG();D.HbH(ee.styleClass),D.Y8G("qrCode",ee.value)("qrCodeErrorCorrectionLevel",ee.errorCorrectionLevel)("qrCodeCenterImageSrc",ee.centerImageSrc)("qrCodeCenterImageWidth",ee.centerImageSize)("qrCodeCenterImageHeight",ee.centerImageSize)("qrCodeMargin",ee.margin)("qrScale",ee.scale)("qrCodeMaskPattern",ee.maskPattern)("width",ee.size)("height",ee.size)("ngStyle",ee.style)("darkColor",ee.darkColor)("lightColor",ee.lightColor)}}const h=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/,d=/^[0-9.]+$/;let w=(()=>{var j;class Z{constructor(V){this.viewContainerRef=V,this.errorCorrectionLevel=Z.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var V=this;return(0,i.A)(function*(){if(!V.value)return;V.version&&V.version>40?(console.warn("[qrCode] max version is 40, clamping"),V.version=40):V.version&&V.version<1?(console.warn("[qrCode] min version is 1, clamping"),V.version=1):void 0!==V.version&&isNaN(V.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),V.version=void 0);const Q=V.viewContainerRef.element.nativeElement;if(!Q)return;const $=Q.getContext("2d");$&&$.clearRect(0,0,$.canvas.width,$.canvas.height);const ie=V.errorCorrectionLevel??Z.DEFAULT_ERROR_CORRECTION_LEVEL,_e=V.darkColor&&h.test(V.darkColor)?V.darkColor:void 0,ye=V.lightColor&&h.test(V.lightColor)?V.lightColor:void 0;(0,o.naY)()&&(!_e&&V.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ye&&V.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield e.toCanvas(Q,V.value,{version:V.version,errorCorrectionLevel:ie,width:f(V.width),margin:V.margin,scale:V.qrScale,maskPattern:V.qrCodeMaskPattern,color:{dark:_e,light:ye}});const se=V.centerImageSrc,pe=F(V.centerImageWidth,Z.DEFAULT_CENTER_IMAGE_SIZE),Ee=F(V.centerImageHeight,Z.DEFAULT_CENTER_IMAGE_SIZE);if(se&&$){V.centerImage||(V.centerImage=new Image(pe,Ee));const L=V.centerImage;se!==V.centerImage.src&&(L.src=se),pe!==V.centerImage.width&&(L.width=pe),Ee!==V.centerImage.height&&(L.height=Ee);const t=()=>{$.drawImage(L,Q.width/2-pe/2,Q.height/2-Ee/2,pe,Ee)};L.onload=t,L.complete&&t()}})()}static#e=j=()=>(this.DEFAULT_ERROR_CORRECTION_LEVEL="M",this.DEFAULT_CENTER_IMAGE_SIZE=40,this.\u0275fac=function(Q){return new(Q||Z)(D.rXU(D.c1b))},this.\u0275dir=D.FsC({type:Z,selectors:[["canvas","qrCode",""]],inputs:{value:[0,"qrCode","value"],version:[0,"qrCodeVersion","version"],errorCorrectionLevel:[0,"qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:[0,"qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:[0,"qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:[0,"qrCodeCenterImageHeight","centerImageHeight"],margin:[0,"qrCodeMargin","margin"],qrScale:"qrScale",qrCodeMaskPattern:"qrCodeMaskPattern"},features:[D.OA$]}))}return j(),Z})();function f(j){if(void 0!==j&&""!==j){if("string"==typeof j){if(!d.test(j))throw new Error(`'${j}' is not a valid number`);return parseFloat(j)}return j}}function F(j,Z){return void 0===j||""===j?Z:f(j)}let M=(()=>{var j;class Z{static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)},this.\u0275cmp=D.VBU({type:Z,selectors:[["qr-code"]],inputs:{value:"value",size:"size",style:"style",styleClass:"styleClass",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin",scale:"scale",maskPattern:"maskPattern"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","qrScale","qrCodeMaskPattern","width","height","class","ngStyle","darkColor","lightColor"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","qrScale","qrCodeMaskPattern","width","height","ngStyle","darkColor","lightColor"]],template:function(Q,$){1&Q&&D.nVh(0,A,1,15,"canvas",0),2&Q&&D.vxM($.value?0:-1)},dependencies:[w,g.MD,g.B3],encapsulation:2}))}return j(),Z})(),K=(()=>{var j;class Z{static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)},this.\u0275mod=D.$C({type:Z}),this.\u0275inj=p.G2t({imports:[g.MD,M]}))}return j(),Z})()},10497(ke,q,l){"use strict";l.d(q,{kU:()=>ze,ZF:()=>it,Ld:()=>st,U$:()=>Wt});var i=l(21413),g=l(33726),p=l(57786),D=l(13798),o=l(56977),e=l(23294),A=l(73703),h=l(73664),d=l(17705),w=l(2615),f=l(72200),F=l(60177);function M(we){return getComputedStyle(we)}function K(we,We){for(var Lt in We){var St=We[Lt];"number"==typeof St&&(St+="px"),we.style[Lt]=St}return we}function j(we){var We=document.createElement("div");return We.className=we,We}var Z=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function ee(we,We){if(!Z)throw new Error("No element matching method supported");return Z.call(we,We)}function V(we){we.remove?we.remove():we.parentNode&&we.parentNode.removeChild(we)}function Q(we,We){return Array.prototype.filter.call(we.children,function(Lt){return ee(Lt,We)})}var $_element_thumb=function(we){return"ps__thumb-"+we},$_element_rail=function(we){return"ps__rail-"+we},$_element_consuming="ps__child--consume",$_state_focus="ps--focus",$_state_clicking="ps--clicking",$_state_active=function(we){return"ps--active-"+we},$_state_scrolling=function(we){return"ps--scrolling-"+we},ie={x:null,y:null};function _e(we,We){var Lt=we.element.classList,St=$_state_scrolling(We);Lt.contains(St)?clearTimeout(ie[We]):Lt.add(St)}function ye(we,We){ie[We]=setTimeout(function(){return we.isAlive&&we.element.classList.remove($_state_scrolling(We))},we.settings.scrollingThreshold)}var pe=function(We){this.element=We,this.handlers={}},Ee={isEmpty:{configurable:!0}};pe.prototype.bind=function(We,Lt){typeof this.handlers[We]>"u"&&(this.handlers[We]=[]),this.handlers[We].push(Lt),this.element.addEventListener(We,Lt,!1)},pe.prototype.unbind=function(We,Lt){var St=this;this.handlers[We]=this.handlers[We].filter(function(At){return!(!Lt||At===Lt)||(St.element.removeEventListener(We,At,!1),!1)})},pe.prototype.unbindAll=function(){for(var We in this.handlers)this.unbind(We)},Ee.isEmpty.get=function(){var we=this;return Object.keys(this.handlers).every(function(We){return 0===we.handlers[We].length})},Object.defineProperties(pe.prototype,Ee);var L=function(){this.eventElements=[]};function t(we){if("function"==typeof window.CustomEvent)return new CustomEvent(we);var We=document.createEvent("CustomEvent");return We.initCustomEvent(we,!1,!1,void 0),We}function s(we,We,Lt,St,At){var fn;if(void 0===St&&(St=!0),void 0===At&&(At=!1),"top"===We)fn=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==We)throw new Error("A proper axis should be provided");fn=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function m(we,We,Lt,St,At){var fn=Lt[0],mt=Lt[1],It=Lt[2],wn=Lt[3],In=Lt[4],ei=Lt[5];void 0===St&&(St=!0),void 0===At&&(At=!1);var Li=we.element;we.reach[wn]=null,Li[It]<1&&(we.reach[wn]="start"),Li[It]>we[fn]-we[mt]-1&&(we.reach[wn]="end"),We&&(Li.dispatchEvent(t("ps-scroll-"+wn)),We<0?Li.dispatchEvent(t("ps-scroll-"+In)):We>0&&Li.dispatchEvent(t("ps-scroll-"+ei)),St&&function se(we,We){_e(we,We),ye(we,We)}(we,wn)),we.reach[wn]&&(We||At)&&Li.dispatchEvent(t("ps-"+wn+"-reach-"+we.reach[wn]))}(we,Lt,fn,St,At)}function u(we){return parseInt(we,10)||0}L.prototype.eventElement=function(We){var Lt=this.eventElements.filter(function(St){return St.element===We})[0];return Lt||(Lt=new pe(We),this.eventElements.push(Lt)),Lt},L.prototype.bind=function(We,Lt,St){this.eventElement(We).bind(Lt,St)},L.prototype.unbind=function(We,Lt,St){var At=this.eventElement(We);At.unbind(Lt,St),At.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(At),1)},L.prototype.unbindAll=function(){this.eventElements.forEach(function(We){return We.unbindAll()}),this.eventElements=[]},L.prototype.once=function(We,Lt,St){var At=this.eventElement(We),fn=function(mt){At.unbind(Lt,fn),St(mt)};At.bind(Lt,fn)};var P={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function C(we){var We=we.element,Lt=Math.floor(We.scrollTop),St=We.getBoundingClientRect();we.containerWidth=Math.round(St.width),we.containerHeight=Math.round(St.height),we.contentWidth=We.scrollWidth,we.contentHeight=We.scrollHeight,We.contains(we.scrollbarXRail)||(Q(We,$_element_rail("x")).forEach(function(At){return V(At)}),We.appendChild(we.scrollbarXRail)),We.contains(we.scrollbarYRail)||(Q(We,$_element_rail("y")).forEach(function(At){return V(At)}),We.appendChild(we.scrollbarYRail)),!we.settings.suppressScrollX&&we.containerWidth+we.settings.scrollXMarginOffset=we.railXWidth-we.scrollbarXWidth&&(we.scrollbarXLeft=we.railXWidth-we.scrollbarXWidth),we.scrollbarYTop>=we.railYHeight-we.scrollbarYHeight&&(we.scrollbarYTop=we.railYHeight-we.scrollbarYHeight),function x(we,We){var Lt={width:We.railXWidth},St=Math.floor(we.scrollTop);Lt.left=We.isRtl?We.negativeScrollAdjustment+we.scrollLeft+We.containerWidth-We.contentWidth:we.scrollLeft,We.isScrollbarXUsingBottom?Lt.bottom=We.scrollbarXBottom-St:Lt.top=We.scrollbarXTop+St,K(We.scrollbarXRail,Lt);var At={top:St,height:We.railYHeight};We.isScrollbarYUsingRight?At.right=We.isRtl?We.contentWidth-(We.negativeScrollAdjustment+we.scrollLeft)-We.scrollbarYRight-We.scrollbarYOuterWidth-9:We.scrollbarYRight-we.scrollLeft:At.left=We.isRtl?We.negativeScrollAdjustment+we.scrollLeft+2*We.containerWidth-We.contentWidth-We.scrollbarYLeft-We.scrollbarYOuterWidth:We.scrollbarYLeft+we.scrollLeft,K(We.scrollbarYRail,At),K(We.scrollbarX,{left:We.scrollbarXLeft,width:We.scrollbarXWidth-We.railBorderXWidth}),K(We.scrollbarY,{top:We.scrollbarYTop,height:We.scrollbarYHeight-We.railBorderYWidth})}(We,we),we.scrollbarXActive?We.classList.add($_state_active("x")):(We.classList.remove($_state_active("x")),we.scrollbarXWidth=0,we.scrollbarXLeft=0,We.scrollLeft=!0===we.isRtl?we.contentWidth:0),we.scrollbarYActive?We.classList.add($_state_active("y")):(We.classList.remove($_state_active("y")),we.scrollbarYHeight=0,we.scrollbarYTop=0,We.scrollTop=0)}function a(we,We){return we.settings.minScrollbarLength&&(We=Math.max(We,we.settings.minScrollbarLength)),we.settings.maxScrollbarLength&&(We=Math.min(We,we.settings.maxScrollbarLength)),We}function U(we,We){var Lt=We[0],St=We[1],At=We[2],fn=We[3],mt=We[4],It=We[5],wn=We[6],In=We[7],ei=We[8],Li=we.element,kt=null,Ot=null,Ze=null;function Ge(bn){bn.touches&&bn.touches[0]&&(bn[At]=bn.touches[0].pageY),Li[wn]=kt+Ze*(bn[At]-Ot),_e(we,In),C(we),bn.stopPropagation(),bn.type.startsWith("touch")&&bn.changedTouches.length>1&&bn.preventDefault()}function Pt(){ye(we,In),we[ei].classList.remove($_state_clicking),we.event.unbind(we.ownerDocument,"mousemove",Ge)}function Yt(bn,$n){kt=Li[wn],$n&&bn.touches&&(bn[At]=bn.touches[0].pageY),Ot=bn[At],Ze=(we[St]-we[Lt])/(we[fn]-we[It]),$n?we.event.bind(we.ownerDocument,"touchmove",Ge):(we.event.bind(we.ownerDocument,"mousemove",Ge),we.event.once(we.ownerDocument,"mouseup",Pt),bn.preventDefault()),we[ei].classList.add($_state_clicking),bn.stopPropagation()}we.event.bind(we[mt],"mousedown",function(bn){Yt(bn)}),we.event.bind(we[mt],"touchstart",function(bn){Yt(bn,!0)})}var ge={"click-rail":function Y(we){we.event.bind(we.scrollbarY,"mousedown",function(Lt){return Lt.stopPropagation()}),we.event.bind(we.scrollbarYRail,"mousedown",function(Lt){var St=Lt.pageY-window.pageYOffset-we.scrollbarYRail.getBoundingClientRect().top;we.element.scrollTop+=(St>we.scrollbarYTop?1:-1)*we.containerHeight,C(we),Lt.stopPropagation()}),we.event.bind(we.scrollbarX,"mousedown",function(Lt){return Lt.stopPropagation()}),we.event.bind(we.scrollbarXRail,"mousedown",function(Lt){var St=Lt.pageX-window.pageXOffset-we.scrollbarXRail.getBoundingClientRect().left;we.element.scrollLeft+=(St>we.scrollbarXLeft?1:-1)*we.containerWidth,C(we),Lt.stopPropagation()})},"drag-thumb":function R(we){U(we,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),U(we,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function fe(we){var We=we.element;we.event.bind(we.ownerDocument,"keydown",function(fn){if(!(fn.isDefaultPrevented&&fn.isDefaultPrevented()||fn.defaultPrevented)&&(ee(We,":hover")||ee(we.scrollbarX,":focus")||ee(we.scrollbarY,":focus"))){var mt=document.activeElement?document.activeElement:we.ownerDocument.activeElement;if(mt){if("IFRAME"===mt.tagName)mt=mt.contentDocument.activeElement;else for(;mt.shadowRoot;)mt=mt.shadowRoot.activeElement;if(function _(we){return ee(we,"input,[contenteditable]")||ee(we,"select,[contenteditable]")||ee(we,"textarea,[contenteditable]")||ee(we,"button,[contenteditable]")}(mt))return}var It=0,wn=0;switch(fn.which){case 37:It=fn.metaKey?-we.contentWidth:fn.altKey?-we.containerWidth:-30;break;case 38:wn=fn.metaKey?we.contentHeight:fn.altKey?we.containerHeight:30;break;case 39:It=fn.metaKey?we.contentWidth:fn.altKey?we.containerWidth:30;break;case 40:wn=fn.metaKey?-we.contentHeight:fn.altKey?-we.containerHeight:-30;break;case 32:wn=fn.shiftKey?we.containerHeight:-we.containerHeight;break;case 33:wn=we.containerHeight;break;case 34:wn=-we.containerHeight;break;case 36:wn=we.contentHeight;break;case 35:wn=-we.contentHeight;break;default:return}we.settings.suppressScrollX&&0!==It||we.settings.suppressScrollY&&0!==wn||(We.scrollTop-=wn,We.scrollLeft+=It,C(we),function At(fn,mt){var It=Math.floor(We.scrollTop);if(0===fn){if(!we.scrollbarYActive)return!1;if(0===It&&mt>0||It>=we.contentHeight-we.containerHeight&&mt<0)return!we.settings.wheelPropagation}var wn=We.scrollLeft;if(0===mt){if(!we.scrollbarXActive)return!1;if(0===wn&&fn<0||wn>=we.contentWidth-we.containerWidth&&fn>0)return!we.settings.wheelPropagation}return!0}(It,wn)&&fn.preventDefault())}})},wheel:function re(we){var We=we.element;function fn(mt){var It=function St(mt){var It=mt.deltaX,wn=-1*mt.deltaY;return(typeof It>"u"||typeof wn>"u")&&(It=-1*mt.wheelDeltaX/6,wn=mt.wheelDeltaY/6),mt.deltaMode&&1===mt.deltaMode&&(It*=10,wn*=10),It!=It&&wn!=wn&&(It=0,wn=mt.wheelDelta),mt.shiftKey?[-wn,-It]:[It,wn]}(mt),wn=It[0],In=It[1];if(!function At(mt,It,wn){if(!P.isWebKit&&We.querySelector("select:focus"))return!0;if(!We.contains(mt))return!1;for(var In=mt;In&&In!==We;){if(In.classList.contains($_element_consuming))return!0;var ei=M(In);if(wn&&ei.overflowY.match(/(scroll|auto)/)){var Li=In.scrollHeight-In.clientHeight;if(Li>0&&(In.scrollTop>0&&wn<0||In.scrollTop0))return!0}if(It&&ei.overflowX.match(/(scroll|auto)/)){var kt=In.scrollWidth-In.clientWidth;if(kt>0&&(In.scrollLeft>0&&It<0||In.scrollLeft0))return!0}In=In.parentNode}return!1}(mt.target,wn,In)){var ei=!1;we.settings.useBothWheelAxes?we.scrollbarYActive&&!we.scrollbarXActive?(In?We.scrollTop-=In*we.settings.wheelSpeed:We.scrollTop+=wn*we.settings.wheelSpeed,ei=!0):we.scrollbarXActive&&!we.scrollbarYActive&&(wn?We.scrollLeft+=wn*we.settings.wheelSpeed:We.scrollLeft-=In*we.settings.wheelSpeed,ei=!0):(We.scrollTop-=In*we.settings.wheelSpeed,We.scrollLeft+=wn*we.settings.wheelSpeed),C(we),ei=ei||function Lt(mt,It){var wn=Math.floor(We.scrollTop),In=0===We.scrollTop,ei=wn+We.offsetHeight===We.scrollHeight,Li=0===We.scrollLeft,kt=We.scrollLeft+We.offsetWidth===We.scrollWidth;return!(Math.abs(It)>Math.abs(mt)?In||ei:Li||kt)||!we.settings.wheelPropagation}(wn,In),ei&&!mt.ctrlKey&&(mt.stopPropagation(),mt.preventDefault())}}typeof window.onwheel<"u"?we.event.bind(We,"wheel",fn):typeof window.onmousewheel<"u"&&we.event.bind(We,"mousewheel",fn)},touch:function he(we){if(P.supportsTouch||P.supportsIePointer){var We=we.element,At={},fn=0,mt={},It=null;P.supportsTouch?(we.event.bind(We,"touchstart",ei),we.event.bind(We,"touchmove",kt),we.event.bind(We,"touchend",Ot)):P.supportsIePointer&&(window.PointerEvent?(we.event.bind(We,"pointerdown",ei),we.event.bind(We,"pointermove",kt),we.event.bind(We,"pointerup",Ot)):window.MSPointerEvent&&(we.event.bind(We,"MSPointerDown",ei),we.event.bind(We,"MSPointerMove",kt),we.event.bind(We,"MSPointerUp",Ot)))}function St(Ze,Ge){We.scrollTop-=Ge,We.scrollLeft-=Ze,C(we)}function wn(Ze){return Ze.targetTouches?Ze.targetTouches[0]:Ze}function In(Ze){return!(Ze.pointerType&&"pen"===Ze.pointerType&&0===Ze.buttons||!(Ze.targetTouches&&1===Ze.targetTouches.length||Ze.pointerType&&"mouse"!==Ze.pointerType&&Ze.pointerType!==Ze.MSPOINTER_TYPE_MOUSE))}function ei(Ze){if(In(Ze)){var Ge=wn(Ze);At.pageX=Ge.pageX,At.pageY=Ge.pageY,fn=(new Date).getTime(),null!==It&&clearInterval(It)}}function kt(Ze){if(In(Ze)){var Ge=wn(Ze),Pt={pageX:Ge.pageX,pageY:Ge.pageY},Yt=Pt.pageX-At.pageX,bn=Pt.pageY-At.pageY;if(function Li(Ze,Ge,Pt){if(!We.contains(Ze))return!1;for(var Yt=Ze;Yt&&Yt!==We;){if(Yt.classList.contains($_element_consuming))return!0;var bn=M(Yt);if(Pt&&bn.overflowY.match(/(scroll|auto)/)){var $n=Yt.scrollHeight-Yt.clientHeight;if($n>0&&(Yt.scrollTop>0&&Pt<0||Yt.scrollTop<$n&&Pt>0))return!0}if(Ge&&bn.overflowX.match(/(scroll|auto)/)){var oi=Yt.scrollWidth-Yt.clientWidth;if(oi>0&&(Yt.scrollLeft>0&&Ge<0||Yt.scrollLeft0))return!0}Yt=Yt.parentNode}return!1}(Ze.target,Yt,bn))return;St(Yt,bn),At=Pt;var $n=(new Date).getTime(),oi=$n-fn;oi>0&&(mt.x=Yt/oi,mt.y=bn/oi,fn=$n),function Lt(Ze,Ge){var Pt=Math.floor(We.scrollTop),Yt=We.scrollLeft,bn=Math.abs(Ze),$n=Math.abs(Ge);if($n>bn){if(Ge<0&&Pt===we.contentHeight-we.containerHeight||Ge>0&&0===Pt)return 0===window.scrollY&&Ge>0&&P.isChrome}else if(bn>$n&&(Ze<0&&Yt===we.contentWidth-we.containerWidth||Ze>0&&0===Yt))return!0;return!0}(Yt,bn)&&Ze.preventDefault()}}function Ot(){we.settings.swipeEasing&&(clearInterval(It),It=setInterval(function(){we.isInitialized?clearInterval(It):mt.x||mt.y?Math.abs(mt.x)<.01&&Math.abs(mt.y)<.01?clearInterval(It):we.element?(St(30*mt.x,30*mt.y),mt.x*=.8,mt.y*=.8):clearInterval(It):clearInterval(It)},10))}}},ce=function(We,Lt){var St=this;if(void 0===Lt&&(Lt={}),"string"==typeof We&&(We=document.querySelector(We)),!We||!We.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var At in this.element=We,We.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},Lt)this.settings[At]=Lt[At];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var ei,In,fn=function(){return We.classList.add($_state_focus)},mt=function(){return We.classList.remove($_state_focus)};this.isRtl="rtl"===M(We).direction,!0===this.isRtl&&We.classList.add("ps__rtl"),this.isNegativeScroll=(In=We.scrollLeft,We.scrollLeft=-1,ei=We.scrollLeft<0,We.scrollLeft=In,ei),this.negativeScrollAdjustment=this.isNegativeScroll?We.scrollWidth-We.clientWidth:0,this.event=new L,this.ownerDocument=We.ownerDocument||document,this.scrollbarXRail=j($_element_rail("x")),We.appendChild(this.scrollbarXRail),this.scrollbarX=j($_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",fn),this.event.bind(this.scrollbarX,"blur",mt),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var It=M(this.scrollbarXRail);this.scrollbarXBottom=parseInt(It.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=u(It.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=u(It.borderLeftWidth)+u(It.borderRightWidth),K(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=u(It.marginLeft)+u(It.marginRight),K(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=j($_element_rail("y")),We.appendChild(this.scrollbarYRail),this.scrollbarY=j($_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",fn),this.event.bind(this.scrollbarY,"blur",mt),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var wn=M(this.scrollbarYRail);this.scrollbarYRight=parseInt(wn.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=u(wn.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function T(we){var We=M(we);return u(We.width)+u(We.paddingLeft)+u(We.paddingRight)+u(We.borderLeftWidth)+u(We.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=u(wn.borderTopWidth)+u(wn.borderBottomWidth),K(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=u(wn.marginTop)+u(wn.marginBottom),K(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:We.scrollLeft<=0?"start":We.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:We.scrollTop<=0?"start":We.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(In){return ge[In](St)}),this.lastScrollTop=Math.floor(We.scrollTop),this.lastScrollLeft=We.scrollLeft,this.event.bind(this.element,"scroll",function(In){return St.onScroll(In)}),C(this)};ce.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,K(this.scrollbarXRail,{display:"block"}),K(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=u(M(this.scrollbarXRail).marginLeft)+u(M(this.scrollbarXRail).marginRight),this.railYMarginHeight=u(M(this.scrollbarYRail).marginTop)+u(M(this.scrollbarYRail).marginBottom),K(this.scrollbarXRail,{display:"none"}),K(this.scrollbarYRail,{display:"none"}),C(this),s(this,"top",0,!1,!0),s(this,"left",0,!1,!0),K(this.scrollbarXRail,{display:""}),K(this.scrollbarYRail,{display:""}))},ce.prototype.onScroll=function(We){this.isAlive&&(C(this),s(this,"top",this.element.scrollTop-this.lastScrollTop),s(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},ce.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),V(this.scrollbarX),V(this.scrollbarY),V(this.scrollbarXRail),V(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},ce.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(We){return!We.match(/^ps([-_].+|)$/)}).join(" ")};const Re=ce;var Me=function(){if(typeof Map<"u")return Map;function we(We,Lt){var St=-1;return We.some(function(At,fn){return At[0]===Lt&&(St=fn,!0)}),St}return function(){function We(){this.__entries__=[]}return Object.defineProperty(We.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),We.prototype.get=function(Lt){var St=we(this.__entries__,Lt),At=this.__entries__[St];return At&&At[1]},We.prototype.set=function(Lt,St){var At=we(this.__entries__,Lt);~At?this.__entries__[At][1]=St:this.__entries__.push([Lt,St])},We.prototype.delete=function(Lt){var St=this.__entries__,At=we(St,Lt);~At&&St.splice(At,1)},We.prototype.has=function(Lt){return!!~we(this.__entries__,Lt)},We.prototype.clear=function(){this.__entries__.splice(0)},We.prototype.forEach=function(Lt,St){void 0===St&&(St=null);for(var At=0,fn=this.__entries__;At0},we.prototype.connect_=function(){!ve||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yt?(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)},we.prototype.disconnect_=function(){!ve||!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)},we.prototype.onTransitionEnd_=function(We){var Lt=We.propertyName,St=void 0===Lt?"":Lt;dt.some(function(fn){return!!~St.indexOf(fn)})&&this.refresh()},we.getInstance=function(){return this.instance_||(this.instance_=new we),this.instance_},we.instance_=null,we}(),rt=function(we,We){for(var Lt=0,St=Object.keys(We);Lt"u")&&Element instanceof Object){if(!(We instanceof Mn(We).Element))throw new TypeError('parameter 1 is not of type "Element".');var Lt=this.observations_;Lt.has(We)||(Lt.set(We,new En(We)),this.controller_.addObserver(this),this.controller_.refresh())}},we.prototype.unobserve=function(We){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(We instanceof Mn(We).Element))throw new TypeError('parameter 1 is not of type "Element".');var Lt=this.observations_;Lt.has(We)&&(Lt.delete(We),Lt.size||this.controller_.removeObserver(this))}},we.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},we.prototype.gatherActive=function(){var We=this;this.clearActive(),this.observations_.forEach(function(Lt){Lt.isActive()&&We.activeObservations_.push(Lt)})},we.prototype.broadcastActive=function(){if(this.hasActive()){var We=this.callbackCtx_,Lt=this.activeObservations_.map(function(St){return new _n(St.target,St.broadcastRect())});this.callback_.call(We,Lt,We),this.clearActive()}},we.prototype.clearActive=function(){this.activeObservations_.splice(0)},we.prototype.hasActive=function(){return this.activeObservations_.length>0},we}(),Fe=typeof WeakMap<"u"?new WeakMap:new Me,Pe=function(){return function we(We){if(!(this instanceof we))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Lt=Et.getInstance(),St=new tt(We,Lt,this);Fe.set(this,St)}}();["observe","unobserve","disconnect"].forEach(function(we){Pe.prototype[we]=function(){var We;return(We=Fe.get(this))[we].apply(We,arguments)}});const Qe=typeof oe.ResizeObserver<"u"?oe.ResizeObserver:Pe,le=["*"];function Ne(we,We){if(1&we&&(h.j41(0,"div",3),h.nrm(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),h.k0s()),2&we){const Lt=h.XpG();h.AVh("ps-at-top",Lt.states.top)("ps-at-left",Lt.states.left)("ps-at-right",Lt.states.right)("ps-at-bottom",Lt.states.bottom),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorY&&Lt.interaction),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorX&&Lt.interaction),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorX&&Lt.interaction),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorY&&Lt.interaction)}}const ze=new w.nKC("PERFECT_SCROLLBAR_CONFIG");class Je{constructor(We,Lt,St,At){this.x=We,this.y=Lt,this.w=St,this.h=At}}class gt{constructor(We,Lt){this.x=We,this.y=Lt}}const zt=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Ye{constructor(We={}){this.assign(We)}assign(We={}){for(const Lt in We)this[Lt]=We[Lt]}}let st=(()=>{class we{constructor(Lt,St,At,fn,mt){this.zone=Lt,this.differs=St,this.elementRef=At,this.platformId=fn,this.defaults=mt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new i.B,this.disabled=!1,this.psScrollY=new h.bkB,this.psScrollX=new h.bkB,this.psScrollUp=new h.bkB,this.psScrollDown=new h.bkB,this.psScrollLeft=new h.bkB,this.psScrollRight=new h.bkB,this.psYReachEnd=new h.bkB,this.psYReachStart=new h.bkB,this.psXReachEnd=new h.bkB,this.psXReachStart=new h.bkB}ngOnInit(){if(!this.disabled&&(0,F.UE)(this.platformId)){const Lt=new Ye(this.defaults);Lt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Re(this.elementRef.nativeElement,Lt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Qe(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{zt.forEach(St=>{const At=St.replace(/([A-Z])/g,fn=>`-${fn.toLowerCase()}`);(0,g.R)(this.elementRef.nativeElement,At).pipe((0,D.Z)(20),(0,o.Q)(this.ngDestroy)).subscribe(fn=>{this[St].emit(fn)})})})}}ngOnDestroy(){(0,F.UE)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,F.UE)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Lt){Lt.disabled&&!Lt.disabled.isFirstChange()&&(0,F.UE)(this.platformId)&&Lt.disabled.currentValue!==Lt.disabled.previousValue&&(!0===Lt.disabled.currentValue?this.ngOnDestroy():!1===Lt.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(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{}},0))}geometry(Lt="scroll"){return new Je(this.elementRef.nativeElement[Lt+"Left"],this.elementRef.nativeElement[Lt+"Top"],this.elementRef.nativeElement[Lt+"Width"],this.elementRef.nativeElement[Lt+"Height"])}position(Lt=!1){return!Lt&&this.instance?new gt(this.instance.reach.x||0,this.instance.reach.y||0):new gt(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Lt="any"){const St=this.elementRef.nativeElement;return"any"===Lt?St.classList.contains("ps--active-x")||St.classList.contains("ps--active-y"):"both"===Lt?St.classList.contains("ps--active-x")&&St.classList.contains("ps--active-y"):St.classList.contains("ps--active-"+Lt)}scrollTo(Lt,St,At){this.disabled||(null==St&&null==At?this.animateScrolling("scrollTop",Lt,At):(null!=Lt&&this.animateScrolling("scrollLeft",Lt,At),null!=St&&this.animateScrolling("scrollTop",St,At)))}scrollToX(Lt,St){this.animateScrolling("scrollLeft",Lt,St)}scrollToY(Lt,St){this.animateScrolling("scrollTop",Lt,St)}scrollToTop(Lt,St){this.animateScrolling("scrollTop",Lt||0,St)}scrollToLeft(Lt,St){this.animateScrolling("scrollLeft",Lt||0,St)}scrollToRight(Lt,St){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Lt||0),St)}scrollToBottom(Lt,St){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Lt||0),St)}scrollToElement(Lt,St,At){if("string"==typeof Lt&&(Lt=this.elementRef.nativeElement.querySelector(Lt)),Lt){const fn=Lt.getBoundingClientRect(),mt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",fn.left-mt.left+this.elementRef.nativeElement.scrollLeft+(St||0),At),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",fn.top-mt.top+this.elementRef.nativeElement.scrollTop+(St||0),At)}}animateScrolling(Lt,St,At){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!At||typeof window>"u")this.elementRef.nativeElement[Lt]=St;else if(St!==this.elementRef.nativeElement[Lt]){let fn=0,mt=0,It=performance.now(),wn=this.elementRef.nativeElement[Lt];const In=(wn-St)/2,ei=Li=>{mt+=Math.PI/(At/(Li-It)),fn=Math.round(St+In+In*Math.cos(mt)),this.elementRef.nativeElement[Lt]===wn&&(mt>=Math.PI?this.animateScrolling(Lt,St,0):(this.elementRef.nativeElement[Lt]=fn,wn=this.elementRef.nativeElement[Lt],It=Li,this.animation=window.requestAnimationFrame(ei)))};window.requestAnimationFrame(ei)}}}return we.\u0275fac=function(Lt){return new(Lt||we)(h.rXU(h.SKi),h.rXU(d.MKu),h.rXU(h.aKT),h.rXU(h.Agw),h.rXU(ze,8))},we.\u0275dir=h.FsC({type:we,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:[0,"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"],standalone:!1,features:[h.OA$]}),we})(),it=(()=>{class we{constructor(Lt,St,At){this.zone=Lt,this.cdRef=St,this.platformId=At,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new i.B,this.stateUpdate=new i.B,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new h.bkB,this.psScrollX=new h.bkB,this.psScrollUp=new h.bkB,this.psScrollDown=new h.bkB,this.psScrollLeft=new h.bkB,this.psScrollRight=new h.bkB,this.psYReachEnd=new h.bkB,this.psYReachStart=new h.bkB,this.psXReachEnd=new h.bkB,this.psXReachStart=new h.bkB}ngOnInit(){(0,F.UE)(this.platformId)&&(this.stateUpdate.pipe((0,o.Q)(this.ngDestroy),(0,e.F)((Lt,St)=>Lt===St&&!this.stateTimeout)).subscribe(Lt=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===Lt||"y"===Lt?(this.interaction=!1,"x"===Lt?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===Lt&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===Lt||"right"===Lt?(this.states.left=!1,this.states.right=!1,this.states[Lt]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===Lt||"bottom"===Lt)&&(this.states.top=!1,this.states.bottom=!1,this.states[Lt]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const Lt=this.directiveRef.elementRef.nativeElement;(0,g.R)(Lt,"wheel").pipe((0,o.Q)(this.ngDestroy)).subscribe(St=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(St,St.deltaX,St.deltaY)}),(0,g.R)(Lt,"touchmove").pipe((0,o.Q)(this.ngDestroy)).subscribe(St=>{if(!this.disabled&&this.autoPropagation){const At=St.touches[0].clientX,fn=St.touches[0].clientY;this.checkPropagation(St,At-this.scrollPositionX,fn-this.scrollPositionY),this.scrollPositionX=At,this.scrollPositionY=fn}}),(0,p.h)((0,g.R)(Lt,"ps-scroll-x").pipe((0,A.u)("x")),(0,g.R)(Lt,"ps-scroll-y").pipe((0,A.u)("y")),(0,g.R)(Lt,"ps-x-reach-end").pipe((0,A.u)("right")),(0,g.R)(Lt,"ps-y-reach-end").pipe((0,A.u)("bottom")),(0,g.R)(Lt,"ps-x-reach-start").pipe((0,A.u)("left")),(0,g.R)(Lt,"ps-y-reach-start").pipe((0,A.u)("top"))).pipe((0,o.Q)(this.ngDestroy)).subscribe(St=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(St)})}}),window.setTimeout(()=>{zt.forEach(Lt=>{this.directiveRef&&(this.directiveRef[Lt]=this[Lt])})},0))}ngOnDestroy(){(0,F.UE)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,F.UE)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const Lt=this.directiveRef.elementRef.nativeElement;this.usePropagationX=Lt.classList.contains("ps--active-x"),this.usePropagationY=Lt.classList.contains("ps--active-y")}}checkPropagation(Lt,St,At){this.interaction=!0;const fn=St<0?-1:1,mt=At<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==fn)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==mt))&&(Lt.preventDefault(),Lt.stopPropagation()),St&&(this.scrollDirectionX=fn),At&&(this.scrollDirectionY=mt),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return we.\u0275fac=function(Lt){return new(Lt||we)(h.rXU(h.SKi),h.rXU(d.gRc),h.rXU(h.Agw))},we.\u0275cmp=h.VBU({type:we,selectors:[["perfect-scrollbar"]],viewQuery:function(Lt,St){if(1&Lt&&h.GBs(st,7),2&Lt){let At;h.mGM(At=h.lsd())&&(St.directiveRef=At.first)}},hostVars:4,hostBindings:function(Lt,St){2&Lt&&h.AVh("ps-show-limits",St.autoPropagation)("ps-show-active",St.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],standalone:!1,ngContentSelectors:le,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(Lt,St){1&Lt&&(h.NAR(),h.j41(0,"div",0)(1,"div",1),h.SdG(2),h.k0s(),h.DNE(3,Ne,5,16,"div",2),h.k0s()),2&Lt&&(h.AVh("ps",St.usePSClass),h.Y8G("perfectScrollbar",St.config)("disabled",St.disabled),h.R7$(3),h.Y8G("ngIf",St.scrollIndicators))},dependencies:[st,f.bT],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-width:0;min-height:0}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit}perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{position:absolute;opacity:0;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y,perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y,perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:linear-gradient(to bottom,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:linear-gradient(to top,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:linear-gradient(to right,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:linear-gradient(to left,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(to bottom,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(to top,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(to right,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(to left,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show{opacity:1}\n",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0px;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n"],encapsulation:2}),we})(),Wt=(()=>{class we{}return we.\u0275fac=function(Lt){return new(Lt||we)},we.\u0275mod=h.$C({type:we}),we.\u0275inj=w.G2t({imports:[[f.MD],f.MD]}),we})()},10467(ke,q,l){"use strict";function i(p,D,o,e,A,h,d){try{var w=p[h](d),f=w.value}catch(F){return void o(F)}w.done?D(f):Promise.resolve(f).then(e,A)}function g(p){return function(){var D=this,o=arguments;return new Promise(function(e,A){var h=p.apply(D,o);function d(f){i(h,e,A,d,w,"next",f)}function w(f){i(h,e,A,d,w,"throw",f)}d(void 0)})}}l.d(q,{A:()=>g})},31635(ke,q,l){"use strict";function o(Y,R,U,fe){var Oe,re=arguments.length,he=re<3?R:null===fe?fe=Object.getOwnPropertyDescriptor(R,U):fe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)he=Reflect.decorate(Y,R,U,fe);else for(var ge=Y.length-1;ge>=0;ge--)(Oe=Y[ge])&&(he=(re<3?Oe(he):re>3?Oe(R,U,he):Oe(R,U))||he);return re>3&&he&&Object.defineProperty(R,U,he),he}function F(Y,R,U,fe){return new(U||(U=Promise))(function(he,Oe){function ge(Me){try{Re(fe.next(Me))}catch(ve){Oe(ve)}}function ce(Me){try{Re(fe.throw(Me))}catch(ve){Oe(ve)}}function Re(Me){Me.done?he(Me.value):function re(he){return he instanceof U?he:new U(function(Oe){Oe(he)})}(Me.value).then(ge,ce)}Re((fe=fe.apply(Y,R||[])).next())})}function ie(Y){return this instanceof ie?(this.v=Y,this):new ie(Y)}function _e(Y,R,U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var re,fe=U.apply(Y,R||[]),he=[];return re=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),ge("next"),ge("throw"),ge("return",function Oe(Se){return function(be){return Promise.resolve(be).then(Se,ve)}}),re[Symbol.asyncIterator]=function(){return this},re;function ge(Se,be){fe[Se]&&(re[Se]=function(nt){return new Promise(function($e,dt){he.push([Se,nt,$e,dt])>1||ce(Se,nt)})},be&&(re[Se]=be(re[Se])))}function ce(Se,be){try{!function Re(Se){Se.value instanceof ie?Promise.resolve(Se.value.v).then(Me,ve):oe(he[0][2],Se)}(fe[Se](be))}catch(nt){oe(he[0][3],nt)}}function Me(Se){ce("next",Se)}function ve(Se){ce("throw",Se)}function oe(Se,be){Se(be),he.shift(),he.length&&ce(he[0][0],he[0][1])}}function se(Y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,R=Y[Symbol.asyncIterator];return R?R.call(Y):(Y=function Z(Y){var R="function"==typeof Symbol&&Symbol.iterator,U=R&&Y[R],fe=0;if(U)return U.call(Y);if(Y&&"number"==typeof Y.length)return{next:function(){return Y&&fe>=Y.length&&(Y=void 0),{value:Y&&Y[fe++],done:!Y}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")}(Y),U={},fe("next"),fe("throw"),fe("return"),U[Symbol.asyncIterator]=function(){return this},U);function fe(he){U[he]=Y[he]&&function(Oe){return new Promise(function(ge,ce){!function re(he,Oe,ge,ce){Promise.resolve(ce).then(function(Re){he({value:Re,done:ge})},Oe)}(ge,ce,(Oe=Y[he](Oe)).done,Oe.value)})}}}l.d(q,{AQ:()=>_e,Cg:()=>o,N3:()=>ie,sH:()=>F,xN:()=>se}),"function"==typeof SuppressedError&&SuppressedError},3219(ke){"use strict";ke.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"}}')},62951(ke){"use strict";ke.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/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"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"}}')},64589(ke){"use strict";ke.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"}')},23241(ke){"use strict";ke.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"}}')},1636(ke){"use strict";ke.exports={rE:"6.6.1"}},15579(ke){"use strict";ke.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"}')}},ke=>{ke(ke.s=67947)}]); \ No newline at end of file diff --git a/frontend/runtime.1a5e832d27ebe619.js b/frontend/runtime.83748f1197fe7ea8.js similarity index 59% rename from frontend/runtime.1a5e832d27ebe619.js rename to frontend/runtime.83748f1197fe7ea8.js index ef75aa88..95427f90 100644 --- a/frontend/runtime.1a5e832d27ebe619.js +++ b/frontend/runtime.83748f1197fe7ea8.js @@ -1 +1 @@ -(()=>{"use strict";var e,b={},h={};function r(e){var f=h[e];if(void 0!==f)return f.exports;var t=h[e]={id:e,loaded:!1,exports:{}};return b[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=b,e=[],r.O=(f,t,i,o)=>{if(!t){var a=1/0;for(n=0;n=o)&&Object.keys(r.O).every(v=>r.O[v](t[d]))?t.splice(d--,1):(s=!1,o0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,i,o]},r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>e+"."+{17:"6019ad086792cc08",190:"2c3aaa03801c7b66",193:"b6974b544ca80922",853:"8e8db9dc1adcdad0"}[e]+".js",r.miniCssF=e=>{},r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="RTLApp:";r.l=(t,i,o,n)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var g=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),g&&g.forEach(_=>_(v)),m)return m(v)},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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,o)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)o.push(n[2]);else if(121!=i){var a=new Promise((l,c)=>n=e[i]=[l,c]);o.push(n[2]=a);var s=r.p+r.u(i),d=new Error;r.l(s,l=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;d.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",d.name="ChunkLoadError",d.type=c,d.request=p,n[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var f=(i,o)=>{var d,u,[n,a,s]=o,l=0;if(n.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(s)var c=s(r)}for(i&&i(o);l{"use strict";var e,b={},h={};function r(e){var f=h[e];if(void 0!==f)return f.exports;var t=h[e]={id:e,loaded:!1,exports:{}};return b[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=b,e=[],r.O=(f,t,i,o)=>{if(!t){var a=1/0;for(n=0;n=o)&&Object.keys(r.O).every(v=>r.O[v](t[l]))?t.splice(l--,1):(s=!1,o0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,i,o]},r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>e+"."+{17:"6019ad086792cc08",190:"496d0a0b94483d54",193:"b6974b544ca80922",853:"8e8db9dc1adcdad0"}[e]+".js",r.miniCssF=e=>{},r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="RTLApp:";r.l=(t,i,o,n)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var g=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),g&&g.forEach(_=>_(v)),m)return m(v)},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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,o)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)o.push(n[2]);else if(121!=i){var a=new Promise((u,c)=>n=e[i]=[u,c]);o.push(n[2]=a);var s=r.p+r.u(i),l=new Error;r.l(s,u=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var c=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",l.name="ChunkLoadError",l.type=c,l.request=p,n[1](l)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var f=(i,o)=>{var l,d,[n,a,s]=o,u=0;if(n.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(s)var c=s(r)}for(i&&i(o);u { if (trans_type === '1') { options.form.target_conf = trans_type_value; } else if (trans_type === '2') { - options.form.sat_per_byte = trans_type_value; + options.form.sat_per_vbyte = trans_type_value; } if (commitment_type) { options.form.commitment_type = commitment_type; @@ -167,7 +167,7 @@ export const closeChannel = (req, res, next) => { const channelpoint = req.params.channelPoint?.replace(':', '/'); options.url = req.session.selectedNode.settings.lnServerUrl + '/v1/channels/' + channelpoint + '?force=' + req.query.force; if (req.query.target_conf) { options.url = options.url + '&target_conf=' + req.query.target_conf; } - if (req.query.sat_per_byte) { options.url = options.url + '&sat_per_byte=' + req.query.sat_per_byte; } + if (req.query.sat_per_vbyte) { options.url = options.url + '&sat_per_vbyte=' + req.query.sat_per_vbyte; } logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Channels', msg: 'Closing Channel Options URL', data: options.url }); request.delete(options); logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Channels', msg: 'Channel Close Requested' }); diff --git a/server/controllers/lnd/transactions.ts b/server/controllers/lnd/transactions.ts index d92ea3ea..7a47e369 100644 --- a/server/controllers/lnd/transactions.ts +++ b/server/controllers/lnd/transactions.ts @@ -28,7 +28,7 @@ export const postTransactions = (req, res, next) => { options.form = { amount: amount, addr: address, - sat_per_byte: fees, + sat_per_vbyte: fees, target_conf: blocks }; if (sendAll) { options.form.send_all = sendAll; } diff --git a/server/controllers/lnd/wallet.ts b/server/controllers/lnd/wallet.ts index 2782cd56..b585bf83 100644 --- a/server/controllers/lnd/wallet.ts +++ b/server/controllers/lnd/wallet.ts @@ -110,7 +110,7 @@ export const getUTXOs = (req, res, next) => { }; export const bumpFee = (req, res, next) => { - const { txid, outputIndex, targetConf, satPerByte } = req.body; + const { txid, outputIndex, targetConf, satPerVByte } = req.body; logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Wallet', msg: 'Bumping Fee..' }); options = common.getOptions(req); if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } @@ -122,8 +122,8 @@ export const bumpFee = (req, res, next) => { }; if (targetConf) { options.form.target_conf = targetConf; - } else if (satPerByte) { - options.form.sat_per_byte = satPerByte; + } else if (satPerVByte) { + options.form.sat_per_vbyte = satPerVByte; } options.form = JSON.stringify(options.form); request.post(options).then((body) => { diff --git a/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.ts b/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.ts index 3e2af124..129a47a6 100644 --- a/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.ts +++ b/src/app/lnd/peers-channels/channels/close-channel-modal/close-channel.component.ts @@ -71,7 +71,7 @@ export class CloseChannelComponent implements OnInit, OnDestroy { closeChannelParams.targetConf = this.blocks; } if (this.fees) { - closeChannelParams.satPerByte = this.fees; + closeChannelParams.satPerVByte = this.fees; } this.store.dispatch(closeChannel({ payload: closeChannelParams })); this.dialogRef.close(false); diff --git a/src/app/lnd/store/lnd.effects.ts b/src/app/lnd/store/lnd.effects.ts index a8493af8..5ce32b9e 100644 --- a/src/app/lnd/store/lnd.effects.ts +++ b/src/app/lnd/store/lnd.effects.ts @@ -345,8 +345,8 @@ export class LNDEffects implements OnDestroy { if (action.payload.targetConf) { reqUrl = reqUrl + '&target_conf=' + action.payload.targetConf; } - if (action.payload.satPerByte) { - reqUrl = reqUrl + '&sat_per_byte=' + action.payload.satPerByte; + if (action.payload.satPerVByte) { + reqUrl = reqUrl + '&sat_per_vbyte=' + action.payload.satPerVByte; } return this.httpClient.delete(reqUrl).pipe( map((postRes: any) => { diff --git a/src/app/shared/models/lndModels.ts b/src/app/shared/models/lndModels.ts index a3f3c21f..a654bb05 100644 --- a/src/app/shared/models/lndModels.ts +++ b/src/app/shared/models/lndModels.ts @@ -534,7 +534,7 @@ export interface CloseChannel { channelPoint: string; forcibly: boolean; targetConf?: number; - satPerByte?: number; + satPerVByte?: number; } export interface FetchInvoices { diff --git a/src/app/shared/services/data.service.ts b/src/app/shared/services/data.service.ts index e60e4097..7f19707f 100644 --- a/src/app/shared/services/data.service.ts +++ b/src/app/shared/services/data.service.ts @@ -171,14 +171,14 @@ export class DataService implements OnDestroy { })); } - bumpFee(txid: string, outputIndex: number, targetConf: number | null, satPerByte: number | null) { + bumpFee(txid: string, outputIndex: number, targetConf: number | null, satPerVByte: number | null) { return this.lnImplementationUpdated.pipe(first(), mergeMap((updatedLnImplementation) => { const bumpFeeBody: any = { txid: txid, outputIndex: outputIndex }; if (targetConf) { bumpFeeBody.targetConf = targetConf; } - if (satPerByte) { - bumpFeeBody.satPerByte = satPerByte; + if (satPerVByte) { + bumpFeeBody.satPerVByte = satPerVByte; } this.store.dispatch(openSpinner({ payload: UI_MESSAGES.BUMP_FEE })); return this.httpClient.post(this.APIUrl + '/' + updatedLnImplementation + API_END_POINTS.WALLET_API + '/bumpfee', bumpFeeBody).pipe( diff --git a/src/app/shared/test-helpers/mock-services.ts b/src/app/shared/test-helpers/mock-services.ts index 45233d78..33057fbc 100644 --- a/src/app/shared/test-helpers/mock-services.ts +++ b/src/app/shared/test-helpers/mock-services.ts @@ -98,7 +98,7 @@ export class mockDataService { return of(mockResponseData.verifyMessage); }; - bumpFee(txid: string, outputIndex: number, targetConf: number, satPerByte: number) { + bumpFee(txid: string, outputIndex: number, targetConf: number, satPerVByte: number) { return of(mockResponseData.bumpFee); };